.screen > .bg-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  z-index: 0;
}
.screen-grade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 18% 6%, rgba(255, 225, 150, .20), transparent 54%),
    radial-gradient(150% 120% at 50% 122%, rgba(28, 12, 36, .50), transparent 60%),
    linear-gradient(180deg, rgba(58, 36, 68, .18), transparent 30%, transparent 70%, rgba(12, 40, 50, .34));
}
.screen .fx { z-index: 5; }
.screen .panel { z-index: 2; }

.screen-water {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(48px, 9vh, 92px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(30, 150, 160, 0) 0%, rgba(27, 107, 107, .5) 40%, var(--water-hi) 70%, var(--water-lo) 100%);
}
.screen-water::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 11px);
  opacity: .6;
}

.corner {
  position: absolute;
  z-index: 3;
  width: clamp(20px, 2.3vw, 30px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #fff 8%, var(--gem-c, var(--gem-aqua)) 52%, rgba(0, 0, 0, .5)),
    radial-gradient(circle at 50% 50%, var(--brass-hi), var(--brass-lo) 80%);
  background-size: 56% 56%, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat;
  box-shadow: 0 0 12px var(--gem-c, var(--gem-aqua)), inset 0 0 0 3px var(--brass-lo), 0 3px 6px rgba(0, 0, 0, .5);
}
.corner-tl { top: 4px; left: 4px; }
.corner-tr { top: 4px; right: 4px; }
.corner-bl { bottom: 4px; left: 4px; }
.corner-br { bottom: 4px; right: 4px; }

.console-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  margin-bottom: clamp(10px, 2.2vh, 22px);
}
.console-head .head-text { display: flex; flex-direction: column; min-width: 0; }
.console-head h2 { text-align: left; margin-bottom: 0; }
.console-head h2::after { display: none; }
.console-head .hint { text-align: left; margin: 4px 0 0; }

.medallion {
  flex: 0 0 auto;
  position: relative;
  width: clamp(44px, 4.7vw, 60px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, var(--brass-hi), var(--brass) 46%, var(--brass-lo) 88%);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, .45),
    inset 0 -4px 8px rgba(0, 0, 0, .5),
    0 0 0 3px var(--walnut-lo),
    0 0 18px rgba(var(--glow-warm), .4),
    0 6px 12px rgba(0, 0, 0, .5);
}
.medallion::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 78%, rgba(92, 224, 160, .25), transparent 42%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.medallion .engrave {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  overflow: hidden;
  background: conic-gradient(from 90deg, #2C1C0C 0 25%, #6B4A18 25% 50%, #2C1C0C 50% 75%, #6B4A18 75% 100%);
  background-size: 50% 50%;
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, .7),
    inset 0 -1px 1px rgba(255, 224, 154, .35),
    0 1px 0 rgba(255, 224, 154, .4);
}
.medallion .engrave::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff 8%, var(--gem-gold) 55%, rgba(0, 0, 0, .5));
  box-shadow: 0 0 8px var(--gem-gold), 0 0 14px var(--gem-gold);
  animation: gemShimmer 3.6s var(--zen-ease) infinite;
}

.gem-divider {
  position: relative;
  height: clamp(10px, 1.6vh, 16px);
  margin: clamp(10px, 2vh, 16px) 8px clamp(4px, 1vh, 8px);
  border-radius: 8px;
  background: repeating-linear-gradient(74deg, var(--rope) 0 5px, #8A6A30 5px 10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -2px 4px rgba(0, 0, 0, .5), 0 2px 5px rgba(0, 0, 0, .4);
  opacity: .92;
}
.gem-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #fff 8%, var(--gem-emerald) 52%, rgba(0, 0, 0, .5)),
    radial-gradient(circle, var(--brass-hi), var(--brass-lo) 82%);
  background-size: 54% 54%, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat;
  box-shadow: 0 0 14px var(--gem-emerald), inset 0 0 0 3px var(--brass-lo), 0 3px 6px rgba(0, 0, 0, .5);
}

.parchment-note {
  position: relative;
  margin: 14px 2px 0;
  padding: 13px 18px 13px 16px;
  border-radius: 7px 9px 6px 8px;
  transform: rotate(-.6deg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(12px, 1.4vw, 13.5px);
  line-height: 1.7;
  color: #5A3A1E;
  background: radial-gradient(120% 140% at 0% 0%, #F6E3B6, #E7CB92 60%, #D9B877 100%);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, .4),
    inset 0 0 0 1px rgba(120, 80, 30, .25),
    inset 0 0 40px rgba(150, 90, 40, .18);
}
.parchment-note::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 16px rgba(90, 50, 20, .55);
  -webkit-mask: radial-gradient(120% 120% at 50% 50%, transparent 60%, #000 92%);
  mask: radial-gradient(120% 120% at 50% 50%, transparent 60%, #000 92%);
  pointer-events: none;
}
.parchment-note::after {
  content: '';
  position: absolute;
  top: -5px;
  right: 22px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--firefly);
  box-shadow: 0 0 9px 2px rgba(255, 200, 90, .9);
  animation: fireflyPulse 2.6s ease-in-out infinite;
}
.parchment-note b {
  display: inline-block;
  margin: 0 1px;
  padding: 1px 7px;
  border-radius: 5px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92em;
  color: #3A2410;
  background: linear-gradient(180deg, #FFF3D2, #E4C385);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(80, 50, 20, .4);
}

.btn-gem {
  display: inline-block;
  width: clamp(14px, 1.6vw, 19px);
  aspect-ratio: 1;
  margin-right: 10px;
  vertical-align: -2px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff 8%, var(--gem-gold) 52%, #B5811F 100%);
  box-shadow:
    0 0 12px var(--gem-gold),
    0 0 26px rgba(255, 208, 90, .7),
    inset 0 1px 2px rgba(255, 255, 255, .9);
  animation: gemShimmer 3.6s var(--zen-ease) infinite;
}

#screen-setup { align-items: center; padding: 0; }
#screen-setup .panel { width: min(540px, 52vw); }
.setup-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0px, 1.5vw, 30px);
  width: 100%;
  max-width: 1040px;
  padding: 0 clamp(12px, 3vw, 40px);
  box-sizing: border-box;
  z-index: 2;
}
.setup-captain {
  position: relative;
  flex: 0 0 auto;
  align-self: flex-end;
  pointer-events: none;
}
.captain-peek {
  position: relative;
  display: block;
  width: clamp(120px, 19vw, 290px);
  height: auto;
  filter:
    drop-shadow(3px 0 0 rgba(255, 224, 154, .35))
    drop-shadow(0 22px 30px rgba(0, 0, 0, .55))
    saturate(1.04);
}
.captain-tag {
  position: absolute;
  left: 50%;
  bottom: 62%;
  transform: translateX(-50%) rotate(-3deg);
  z-index: 2;
  padding: 6px 16px 7px;
  border-radius: 11px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(12px, 1.4vw, 15px);
  color: #2A1A06;
  background: linear-gradient(180deg, var(--gold-hot), #C89A36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 4px 10px rgba(0, 0, 0, .5),
    0 0 0 1.5px var(--walnut-lo);
  pointer-events: none;
  white-space: nowrap;
}
.captain-tag .who {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5A3A10;
  opacity: .85;
}
.porthole-mini {
  position: absolute;
  top: max(clamp(14px, 4vh, 40px), env(safe-area-inset-top));
  right: max(clamp(14px, 3.5vw, 60px), env(safe-area-inset-right));
  width: clamp(64px, 9vw, 116px);
  z-index: 2;
  pointer-events: none;
}
.porthole-mini img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(var(--glow-warm), .42)) drop-shadow(0 6px 14px rgba(0, 0, 0, .5));
}
#screen-settings { align-items: center; padding: 0; }
#screen-settings .panel { width: min(500px, 48vw); }
.knob-dial {
  position: absolute;
  left: calc(50% + min(250px, 24vw) + clamp(8px, 2.5vw, 56px));
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(110px, 18vw, 240px);
  z-index: 1;
  pointer-events: none;
  text-align: center;
}
.knob-dial img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .6)) saturate(1.05);
}
.knob-dial::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 44%;
  width: 120%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--glow-warm), .24), transparent 66%);
  z-index: -1;
  filter: blur(4px);
}
.knob-dial .hub-gem {
  position: absolute;
  left: 50%;
  top: 44%;
  width: clamp(12px, 1.4vw, 18px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff 6%, var(--gem-gold) 52%, rgba(0, 0, 0, .5));
  box-shadow: 0 0 10px var(--gem-gold), 0 0 22px var(--gem-gold), inset 0 1px 2px rgba(255, 255, 255, .8);
  opacity: .88;
}
.knob-dial .dial-cap {
  margin-top: clamp(8px, 1.5vh, 14px);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rope);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
  opacity: .85;
}

#screen-daily .night-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(70% 56% at 50% 40%, transparent 0%, rgba(24, 12, 30, .28) 58%, rgba(14, 8, 20, .72) 100%),
    linear-gradient(180deg, rgba(58, 36, 68, .42) 0%, transparent 26%, transparent 60%, rgba(12, 40, 50, .58) 100%);
}
.leaf-corner {
  position: absolute;
  z-index: 1;
  width: clamp(120px, 19.5vw, 250px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)) saturate(.92) brightness(.86);
}
.leaf-corner-tl { top: -26px; left: -22px; }
.leaf-corner-tr { top: -26px; right: -22px; transform: scaleX(-1); }
.leaf-corner-bl { bottom: -34px; left: -30px; transform: scaleY(-1); opacity: .82; }
.leaf-corner-br { bottom: -34px; right: -30px; transform: scale(-1, -1); opacity: .82; }
.gift-reflect {
  position: absolute;
  z-index: 1;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(180px, 23vw, 300px);
  height: clamp(70px, 9.4vh, 120px);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 198, 96, .34), rgba(255, 170, 70, .12) 50%, transparent 74%);
  filter: blur(9px);
  pointer-events: none;
}
.gift-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(11px, 1.3vw, 13px);
  letter-spacing: .14em;
  color: var(--cream-warm);
  text-shadow: 0 1px 0 rgba(40, 24, 12, .8), 0 0 10px rgba(var(--glow-warm), .22);
  margin-bottom: 4px;
}
.gift-eyebrow::before,
.gift-eyebrow::after {
  content: '';
  width: clamp(22px, 2.6vw, 34px);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--rope) 60%, var(--brass-hi));
  box-shadow: 0 1px 0 rgba(40, 24, 12, .6);
}
.gift-eyebrow::after { transform: scaleX(-1); }
#screen-daily h2 b { color: var(--gem-gold); }
.chest-wrap {
  position: relative;
  margin: clamp(6px, 1.4vh, 14px) auto 2px;
  display: flex;
  justify-content: center;
}
.chest-aura {
  position: absolute;
  top: 46%;
  left: 50%;
  width: clamp(170px, 22vw, 286px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 205, 110, .40), rgba(255, 175, 70, .13) 42%, transparent 66%);
  filter: blur(4px);
  z-index: 0;
  animation: chestBreathe 4.4s var(--zen-ease) infinite;
}
.chest-img {
  position: relative;
  height: clamp(96px, 16vh, 188px);
  width: auto;
  display: block;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .55)) drop-shadow(0 0 22px rgba(255, 196, 96, .36));
}
.chest-rays {
  position: absolute;
  top: -12%;
  left: 50%;
  width: clamp(140px, 17vw, 220px);
  height: clamp(80px, 11vh, 130px);
  transform: translateX(-50%);
  background:
    conic-gradient(from 270deg at 50% 100%,
      transparent 0deg,
      rgba(255, 224, 150, 0) 18deg,
      rgba(255, 224, 150, .40) 30deg,
      rgba(255, 224, 150, 0) 42deg,
      transparent 58deg,
      rgba(255, 214, 130, .32) 74deg,
      rgba(255, 214, 130, 0) 86deg,
      transparent 110deg,
      rgba(255, 230, 160, .38) 124deg,
      rgba(255, 230, 160, 0) 138deg,
      transparent 360deg);
  -webkit-mask-image: radial-gradient(110% 90% at 50% 100%, #000 30%, transparent 78%);
  mask-image: radial-gradient(110% 90% at 50% 100%, #000 30%, transparent 78%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: rayShift 6s ease-in-out infinite;
}
.reward {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 4px 0 0;
}
.reward-amt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(38px, 5.6vh, 62px);
  line-height: 1;
  letter-spacing: -.01em;
  background: linear-gradient(180deg, #FFF3CC 6%, var(--gem-gold) 46%, #E2A12E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(58, 36, 20, .8)) drop-shadow(0 0 12px rgba(255, 200, 96, .30));
}
.tide-coin {
  position: relative;
  width: clamp(36px, 5vh, 56px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #FFF6D6 4%, var(--gem-gold) 30%, #C8881F 78%, #8A5A12 100%);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, .55),
    0 0 11px rgba(255, 200, 96, .32),
    inset 0 2px 3px rgba(255, 255, 255, .7),
    inset 0 -3px 5px rgba(120, 70, 14, .7);
}
.tide-coin::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 2px solid rgba(120, 74, 18, .55);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .4);
}
.tide-coin::after {
  content: '✦';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 2.2vh, 24px);
  color: #8A5A12;
  text-shadow: 0 1px 0 rgba(255, 240, 200, .5);
}
#screen-daily .parchment-note { margin: clamp(8px, 1.6vh, 14px) 2px 0; text-align: center; }

#screen-board { flex-direction: column; justify-content: flex-start; align-items: stretch; padding: clamp(12px, 3vh, 30px) clamp(14px, 4.2vw, 54px) clamp(10px, 2.6vh, 26px); gap: 0; }
.hall-grade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -8%, rgba(255, 205, 130, .22), transparent 52%),
    radial-gradient(90% 120% at 50% 120%, rgba(10, 6, 16, .78), transparent 64%),
    linear-gradient(180deg, rgba(20, 10, 28, .5), rgba(12, 8, 18, .18) 30%, rgba(8, 18, 24, .42) 92%);
}
#screen-board > .bg-plate { filter: saturate(1.02) brightness(.62) contrast(1.02); }
.hall-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.7vw, 22px);
  margin-bottom: clamp(8px, 1.8vh, 18px);
  flex: 0 0 auto;
}
.trophy-medallion {
  position: relative;
  flex: 0 0 auto;
  width: clamp(52px, 7.2vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #FBE6A6, var(--brass) 52%, var(--brass-lo) 84%, #4A330E);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, .6),
    inset 0 2px 3px rgba(255, 248, 210, .7),
    inset 0 -5px 10px rgba(40, 24, 6, .7);
}
.trophy-medallion::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 60% 75%, rgba(92, 224, 160, .16), transparent 46%),
    radial-gradient(circle at 40% 32%, rgba(255, 250, 220, .5), transparent 40%);
  box-shadow: inset 0 0 0 2px rgba(74, 51, 14, .55), inset 0 3px 8px rgba(40, 24, 6, .6);
}
.trophy-medallion img {
  position: absolute;
  inset: 22%;
  width: 56%;
  height: 56%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(40, 20, 0, .55)) drop-shadow(0 0 10px rgba(255, 200, 110, .45));
}
.crown-gem {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(13px, 1.3vw, 17px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff 8%, var(--gem-gold) 55%, rgba(80, 40, 0, .6));
  box-shadow:
    0 0 12px var(--gem-gold), 0 0 26px var(--gem-gold), 0 0 42px rgba(255, 208, 90, .55),
    inset 0 1px 2px rgba(255, 255, 255, .85);
  animation: gemShimmer 3.6s var(--zen-ease) infinite;
}
.hall-titles { flex: 1 1 auto; min-width: 0; }
.hall-eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(9px, 1vw, 11px);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gem-gold);
  opacity: .85;
  text-shadow: 0 0 12px rgba(255, 200, 90, .45);
  margin-bottom: 3px;
}
.hall-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(24px, 4.4vh, 46px);
  line-height: .98;
  color: var(--cream-warm);
  text-shadow:
    0 2px 0 rgba(58, 36, 20, .9),
    0 3px 1px rgba(0, 0, 0, .6),
    0 0 26px rgba(255, 196, 90, .34);
}
.hall-title em {
  font-style: normal;
  color: var(--gem-gold);
  text-shadow: 0 2px 0 rgba(58, 36, 20, .9), 0 0 30px rgba(255, 208, 90, .5);
}
#screen-board .panel {
  width: min(820px, 100%);
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-self: center;
}
#screen-board .panel #lb-list { flex: 1 1 auto; max-height: none; min-height: 0; }
#screen-board .hall-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(8px, 1.6vh, 16px);
  flex: 0 0 auto;
}
#screen-board .hall-foot .spacer { flex: 1 1 auto; }
.board-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  box-shadow: inset 0 0 200px 30px rgba(8, 5, 14, .55);
}

#screen-username .panel { z-index: 2; }
.welcome-capy {
  display: block;
  width: clamp(140px, 22vh, 210px);
  height: auto;
  margin: 0 auto 4px;
  filter:
    drop-shadow(-3px 0 0 rgba(255, 224, 154, .4))
    drop-shadow(0 14px 22px rgba(0, 0, 0, .5));
}

#screen-results:not(.hidden) { display: block; }
#screen-results .parallax {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
#screen-results .parallax img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
#screen-results .parallax .boats { opacity: .5; filter: saturate(.9) brightness(.92) hue-rotate(-6deg); }
#screen-results .parallax .palm { opacity: .96; filter: saturate(1.04) brightness(.86) contrast(1.04); }
.sunbeams {
  position: absolute;
  inset: -10% -20% 30% -20%;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(102deg, transparent 38%, rgba(255, 224, 154, .10) 46%, transparent 52%),
    linear-gradient(95deg, transparent 56%, rgba(255, 210, 120, .09) 62%, transparent 68%);
  filter: blur(2px);
  mix-blend-mode: screen;
}
.results-grade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 78% at 50% -8%, rgba(255, 222, 132, .30), transparent 52%),
    radial-gradient(90% 70% at 50% 40%, rgba(255, 154, 72, .12), transparent 60%),
    radial-gradient(150% 120% at 50% 122%, rgba(20, 10, 28, .55), transparent 58%),
    linear-gradient(180deg, rgba(58, 36, 68, .20), transparent 30%, transparent 70%, rgba(12, 40, 50, .34));
}

.crest-banner {
  position: absolute;
  top: clamp(8px, 4.2vh, 30px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.crest-eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(9px, 1.7vh, 12px);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-hot);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 0 14px rgba(255, 200, 90, .4);
  padding-left: .42em;
}
.crest-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 6.4vh, 46px);
  line-height: .96;
  margin-top: 2px;
  color: var(--cream-warm);
  text-shadow:
    0 2px 0 rgba(58, 36, 20, .9),
    0 3px 1px rgba(0, 0, 0, .55),
    0 0 26px rgba(255, 196, 90, .34);
}
.crest-banner::before,
.crest-banner::after {
  content: '';
  position: absolute;
  top: -30px;
  width: 3px;
  height: 40px;
  background: linear-gradient(var(--rope), rgba(200, 168, 96, 0));
  opacity: .65;
}
.crest-banner::before { left: 22%; transform: rotate(-9deg); }
.crest-banner::after { right: 22%; transform: rotate(9deg); }

.podium {
  position: absolute;
  left: 50%;
  bottom: clamp(120px, 31vh, 224px);
  transform: translateX(-50%);
  width: clamp(240px, 29vw, 372px);
  z-index: 2;
}
.podium-aura {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  width: 120%;
  aspect-ratio: 11 / 9;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 62%, rgba(255, 206, 116, .30), rgba(255, 180, 90, .10) 45%, transparent 70%);
  filter: blur(4px);
  z-index: 0;
  pointer-events: none;
}
.plinth {
  position: relative;
  width: 100%;
  height: clamp(64px, 16.4vh, 118px);
  border-radius: 16px 16px 12px 12px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .10) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, var(--walnut-hi) 0%, var(--walnut) 34%, var(--walnut-lo) 100%);
  box-shadow:
    0 26px 50px rgba(0, 0, 0, .55),
    inset 0 2px 0 rgba(255, 214, 140, .28),
    inset 0 -10px 22px rgba(0, 0, 0, .42);
}
.plinth::before {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  top: 40%;
  height: 19%;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--brass-hi) 0%, var(--brass) 42%, var(--brass-lo) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .6),
    inset 0 -3px 5px rgba(0, 0, 0, .45),
    0 1px 3px rgba(0, 0, 0, .4);
}
.plinth::after {
  content: '◆     ✦     ◆     ✦     ◆';
  position: absolute;
  left: 0;
  right: 0;
  top: 42%;
  text-align: center;
  font-size: clamp(9px, 1.7vh, 12px);
  letter-spacing: 2px;
  color: rgba(58, 36, 20, .55);
  text-shadow: 0 1px 0 rgba(255, 224, 154, .4);
}
.rune-ring {
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translateX(-50%);
  width: 60%;
  aspect-ratio: 4 / 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 208, 90, .55);
  box-shadow: 0 0 26px rgba(255, 200, 90, .5), inset 0 0 22px rgba(255, 200, 90, .32);
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 210, 120, .34), transparent 68%);
}

.badge {
  position: absolute;
  left: 50%;
  bottom: clamp(150px, 38.6vh, 278px);
  transform: translateX(-50%);
  width: clamp(108px, 27.2vh, 196px);
  aspect-ratio: 1;
  z-index: 3;
}
.badge-halo {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 208, 90, .45), rgba(255, 196, 90, .14) 46%, transparent 70%);
  animation: haloBreath 3.6s var(--zen-ease) infinite;
}
.badge-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, var(--brass-hi) 0%, var(--brass) 40%, var(--brass-lo) 86%, #4A3210 100%);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, .55),
    inset 0 3px 4px rgba(255, 255, 255, .55),
    inset 0 -8px 16px rgba(0, 0, 0, .5),
    0 0 36px rgba(255, 200, 90, .5);
}
.badge-disc::before {
  content: '';
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border: 3px dashed rgba(58, 36, 20, .5);
  box-shadow: inset 0 0 0 4px rgba(255, 224, 154, .22);
}
.badge-gem {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 61%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #FFFDF4 4%, #FFE89A 22%, var(--gem-gold) 52%, #E59A26 82%, #7A4A10 100%);
  box-shadow:
    0 0 22px var(--gem-gold),
    0 0 46px rgba(255, 208, 90, .7),
    inset 0 3px 6px rgba(255, 255, 255, .85),
    inset 0 -10px 18px rgba(120, 70, 16, .6);
  animation: gemShimmer 3.4s var(--zen-ease) infinite;
}
.badge-gem::after {
  content: '';
  position: absolute;
  left: 30%;
  top: 24%;
  width: 22%;
  height: 13%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), transparent 70%);
  transform: rotate(-24deg);
  filter: blur(.5px);
}
#res-place {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 6.9vh, 50px);
  line-height: 1;
  color: #4A2D08;
  text-shadow: 0 1px 0 rgba(255, 248, 231, .7), 0 2px 3px rgba(120, 70, 16, .5);
  z-index: 2;
  white-space: nowrap;
}

.results-nameplate {
  position: absolute;
  left: 50%;
  bottom: clamp(128px, 33.3vh, 240px);
  transform: translateX(-50%);
  z-index: 4;
  padding: clamp(5px, 1.2vh, 9px) clamp(18px, 2.3vw, 30px) clamp(7px, 1.5vh, 11px);
  border-radius: 9px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .10) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, var(--walnut-hi), var(--walnut) 55%, var(--walnut-lo));
  box-shadow:
    0 10px 22px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 214, 140, .32),
    inset 0 -4px 9px rgba(0, 0, 0, .4),
    0 0 0 2px var(--brass-lo),
    0 0 0 3px rgba(255, 224, 154, .2);
}
.results-nameplate::before,
.results-nameplate::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brass-hi), var(--brass-lo));
  box-shadow: 0 0 5px rgba(255, 200, 90, .6);
}
.results-nameplate::before { left: 10px; }
.results-nameplate::after { right: 10px; }
.results-nameplate .label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(16px, 3.9vh, 28px);
  color: var(--cream-warm);
  letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6), 0 0 16px rgba(255, 196, 90, .28);
}

#screen-results .res-stats {
  position: absolute;
  left: 50%;
  bottom: clamp(58px, 16.1vh, 116px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, clamp(112px, 12.3vw, 158px));
  gap: clamp(8px, 1.25vw, 16px);
  margin: 0;
  z-index: 5;
}
#screen-results .res-stat { padding: clamp(8px, 1.8vh, 15px) 10px clamp(7px, 1.6vh, 13px); }
.tile-gem {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff 6%, var(--gem-c, var(--gem-aqua)) 55%, rgba(0, 0, 0, .4));
  box-shadow: 0 0 9px var(--gem-c, var(--gem-aqua)), 0 0 18px var(--gem-c, var(--gem-aqua)), inset 0 1px 2px rgba(255, 255, 255, .7);
  z-index: 1;
}
#res-saving {
  position: absolute;
  left: 50%;
  bottom: clamp(44px, 12vh, 92px);
  transform: translateX(-50%);
  z-index: 5;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 243, 220, .6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  white-space: nowrap;
}

.results-capy {
  position: absolute;
  right: clamp(16px, 4.4vw, 56px);
  bottom: clamp(70px, 16.4vh, 118px);
  width: clamp(120px, 16.7vw, 214px);
  z-index: 6;
  pointer-events: none;
}
.results-capy img {
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(4deg);
  filter:
    drop-shadow(-3px 0 0 rgba(255, 224, 154, .35))
    drop-shadow(0 22px 30px rgba(0, 0, 0, .55));
}
.results-capy::before {
  content: '';
  position: absolute;
  left: 48%;
  bottom: 4%;
  width: 66%;
  height: 12%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--aura), transparent 70%);
  filter: blur(6px);
  z-index: -1;
}
.results-capy .pop {
  position: absolute;
  font-size: 14px;
  color: var(--gem-gold);
  text-shadow: 0 0 10px var(--gem-gold);
  animation: popTwinkle 2.6s var(--zen-ease) infinite;
}
.results-capy .pop-1 { top: 6%; left: -6%; }
.results-capy .pop-2 { top: 22%; right: -8%; animation-delay: -.9s; color: var(--gem-aqua); text-shadow: 0 0 10px var(--gem-aqua); }
.results-capy .pop-3 { top: 46%; left: -12%; animation-delay: -1.7s; }

.results-actions {
  position: absolute;
  left: 50%;
  bottom: clamp(8px, 4.7vh, 34px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.25vw, 16px);
  z-index: 7;
}
.btn-focal-plank {
  position: relative;
  width: clamp(180px, 19vw, 244px);
  aspect-ratio: 1024 / 215;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 0 22px rgba(255, 200, 90, .5)) drop-shadow(0 8px 16px rgba(0, 0, 0, .45));
  transition: transform var(--engine-dur) var(--engine-ease);
}
.btn-focal-plank:hover { transform: translateY(-2px); }
.btn-focal-plank:active { transform: translateY(0) scale(.99); }
.btn-focal-plank img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.btn-focal-plank .focal-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-left: 8%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--cream-warm);
  text-shadow: 0 1px 0 rgba(58, 36, 20, .9), 0 0 16px rgba(255, 210, 120, .45);
  pointer-events: none;
}
.btn-focal-plank .gem { left: 13%; top: 50%; }

.confetti {
  position: absolute;
  top: -16px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: .9;
  animation: confettiFall var(--cf-dur, 5.5s) linear var(--cf-delay, 0s) infinite;
}
.firework {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.firework::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--fw, var(--gem-gold)) 40%, transparent 72%);
  box-shadow: 0 0 18px var(--fw, var(--gem-gold));
  animation: fwCore 3.6s ease-out var(--fw-delay, 0s) infinite;
}
.firework::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--fw, var(--gem-gold)) 0deg 2deg, transparent 2deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 2%, rgba(0, 0, 0, .5) 30%, transparent 60%);
  mask: radial-gradient(circle, #000 2%, rgba(0, 0, 0, .5) 30%, transparent 60%);
  opacity: 0;
  animation: fwBurst 3.6s ease-out var(--fw-delay, 0s) infinite;
}
.coin-spin {
  position: absolute;
  width: clamp(20px, 2.3vw, 30px);
  animation: coinTumble var(--coin-dur, 2.4s) linear var(--coin-delay, 0s) infinite, coinFloat 6s ease-in-out var(--coin-delay, 0s) infinite;
}

@keyframes haloBreath { 0%, 100% { opacity: .7; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes popTwinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes fwCore {
  0%, 62% { transform: scale(.4); opacity: .55; }
  70% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(.4); opacity: 0; }
}
@keyframes fwBurst {
  0%, 62% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  72% { opacity: .9; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(540deg); }
}
@keyframes coinTumble { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }
@keyframes coinFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@keyframes chestBreathe {
  0%, 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}
@keyframes rayShift {
  0%, 100% { opacity: .7; transform: translateX(-50%) scaleX(1); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1.08); }
}

@media (max-width: 1020px), (orientation: landscape) and (max-height: 480px) {
  #screen-setup { padding: 0; }
  #screen-setup .panel { width: min(480px, 92vw); }
  .setup-captain { display: none; }
  .setup-row { padding: 0 12px; max-width: 100%; }
  #screen-settings { padding: 0; }
  #screen-settings .panel { width: min(480px, 92vw); }
  .knob-dial { display: none; }
}
@media (orientation: landscape) and (max-height: 480px) {
  .porthole-mini { width: clamp(48px, 7vw, 64px); }
  .leaf-corner { width: clamp(80px, 13vw, 120px); }
  .chest-img { height: clamp(72px, 14vh, 96px); }
  .hall-head { margin-bottom: 6px; }
  .trophy-medallion { width: 44px; }
  #screen-board { padding: 10px 14px 8px; }
}

@media (orientation: landscape) and (max-height: 480px) {
  .results-capy { display: none; }
  .crest-banner::before, .crest-banner::after { display: none; }
  .podium { bottom: 37vh; }
  .results-nameplate { bottom: 36vh; }
  #screen-results .res-stats { bottom: 14.5vh; }
  #res-saving { bottom: 11vh; }
  .results-actions { bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .chest-aura, .chest-rays, .crown-gem, .medallion .engrave::after, .btn-gem, .parchment-note::after,
  .confetti, .firework::before, .firework::after, .coin-spin, .badge-gem, .badge-halo,
  .results-capy .pop, .btn-focal-plank .gem { animation: none !important; }
  .confetti { display: none; }
}

/* ════════════ ONLINE: create / join / lobby / results ════════════ */
.or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 8px;
}
.or-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 224, 154, .35), transparent);
}
.or-divider em {
  font-size: 11px;
  letter-spacing: 2px;
  font-style: normal;
  color: rgba(255, 243, 220, .55);
}
.join-row { display: flex; gap: 8px; align-items: stretch; }
.code-input {
  flex: 1;
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 800;
  letter-spacing: 8px;
  text-align: center;
  text-transform: uppercase;
}
.join-row .btn { min-width: 0; white-space: nowrap; }
.online-msg {
  min-height: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--gem-ruby);
  margin-top: 10px;
  font-weight: 600;
}

/* ── Lobby ── */
.lobby-panel { max-width: min(760px, 94vw); width: 760px; }
.lobby-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.code-chip {
  font-size: 13px;
  letter-spacing: 1px;
  background: rgba(10, 16, 28, .5);
  border: 1px solid rgba(255, 224, 154, .28);
  border-radius: 12px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 243, 220, .7);
}
.code-chip b {
  font-size: 24px;
  letter-spacing: 7px;
  color: var(--gold-hot);
  text-shadow: 0 0 12px rgba(255, 208, 90, .45);
}
.code-chip button {
  background: rgba(255, 224, 154, .14);
  border: none;
  color: var(--cream);
  border-radius: 7px;
  padding: 4px 9px;
  cursor: pointer;
  font-size: 15px;
}
.code-chip button:hover { background: rgba(255, 224, 154, .28); }
#lobby-slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.slot {
  aspect-ratio: 3 / 4;
  min-height: 0;
  border-radius: 12px;
  border: 2px solid rgba(255, 224, 154, .16);
  background: rgba(10, 16, 28, .55);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.slot.empty {
  border-style: dashed;
  align-items: center;
  justify-content: center;
  color: rgba(255, 243, 220, .3);
  font-size: 26px;
  background: rgba(255, 255, 255, .03);
}
.slot.me { border-color: var(--gem-aqua); box-shadow: 0 0 0 2px rgba(88, 214, 224, .4), 0 0 16px rgba(88, 214, 224, .3); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .nm {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 14px 3px 4px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  color: var(--cream);
  background: linear-gradient(0deg, rgba(10, 16, 28, .94), transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot .badge {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: .5px;
  color: #2c2118;
}
.slot .badge.host { background: var(--gem-gold); }
.slot .badge.bot { background: #8a9aa6; color: #11202a; }
.slot .badge.you { background: var(--gem-aqua); left: auto; right: 4px; }
.slot.afk img { filter: grayscale(.85) brightness(.5); }
.slot .afk-tag {
  position: absolute;
  top: 46%;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  font-weight: 900;
  color: var(--gem-ruby);
  letter-spacing: 3px;
  text-shadow: 0 2px 6px #000;
}
.lobby-cfg { display: flex; gap: 18px; flex-wrap: wrap; }
.lobby-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.lobby-action-right { display: flex; gap: 8px; flex-wrap: wrap; }
.lobby-action-right .btn { min-width: 0; }

/* ── Online results ── */
#mp-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 14px; }
#mp-list .lb-row.afk .nm { color: var(--gem-ruby); opacity: .85; }

@media (max-width: 700px) {
  #lobby-slots { grid-template-columns: repeat(3, 1fr); }
  .lobby-panel { width: auto; }
}

/* ════════════ MOBILE GATE (landscape + fullscreen popup) ════════════ */
#mobile-gate {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(ellipse at center, rgba(10, 16, 28, .8), rgba(4, 7, 14, .95));
  backdrop-filter: blur(5px);
}
#mobile-gate.hidden { display: none; }
.mg-card {
  max-width: 440px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: clamp(22px, 5vw, 32px) clamp(20px, 5vw, 30px);
  border-radius: 22px;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(120, 78, 42, .96), rgba(58, 36, 20, .98));
  border: 1px solid rgba(255, 224, 154, .3);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, .25),
    inset 0 0 0 1px rgba(255, 224, 154, .12),
    0 24px 60px rgba(0, 0, 0, .6);
}
.mg-ico {
  font-size: clamp(46px, 12vw, 62px);
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5));
}
.mg-ico .mg-rot {
  font-size: .55em;
  color: var(--gold-hot);
  display: inline-block;
  animation: mgRot 2s var(--zen-ease) infinite;
}
@keyframes mgRot { 0%, 60% { transform: rotate(0); } 80%, 100% { transform: rotate(90deg); } }
.mg-card h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 6vw, 28px);
  color: var(--gold-hot);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .4), 0 0 18px rgba(240, 168, 48, .35);
  margin: 0;
}
.mg-card p {
  font-family: var(--font-body);
  font-size: clamp(13px, 3.6vw, 15px);
  line-height: 1.6;
  opacity: .88;
  margin: 0 0 6px;
}
.mg-card p b { color: var(--gold-hot); }
.mg-card .btn { width: 100%; }
.mg-card .btn.ghost { opacity: .8; }
