*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body.game-page {
  --top-h: 56px;
  --hud-h: 46px;
  --pad-h: 0px;
  background: radial-gradient(120% 70% at 50% 0%, #121633 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  display: flex; flex-direction: column;
}
@media (pointer: coarse), (max-width: 760px) { body.game-page { --pad-h: 150px; } }
/* district scene behind the whole page (blurred + dimmed so the board stays the focus) */
.g-backdrop {
  position: fixed; inset: -24px; z-index: -1; pointer-events: none;
  background: center / cover no-repeat; filter: blur(14px) saturate(1.1) brightness(.32);
  transition: background-image .6s ease;
}
body.game-page > header, body.game-page > main { position: relative; }

.g-top {
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(14px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-left));
}
.g-home { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 20px; letter-spacing: .02em; }
.g-home img { width: 40px; height: 40px; object-fit: contain; }
.g-btn-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--panel-line); color: var(--text); cursor: pointer;
}
.g-btn-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-btn-icon .spk { fill: currentColor; }
.g-btn-icon[aria-pressed="false"] .on { display: none; }
.g-btn-icon[aria-pressed="true"] .off { display: none; }
.g-btn-icon[aria-pressed="true"] { color: var(--green); border-color: rgba(61,255,110,.4); }

.g-main {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 0 8px max(8px, env(safe-area-inset-bottom));
  --stage-w: min(calc(100vw - 16px), calc((100dvh - var(--top-h) - var(--hud-h) - 24px - var(--pad-h) - var(--xp-h, 22px)) * 0.75), 640px);
}

.g-hud {
  width: var(--stage-w); height: var(--hud-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  font-family: var(--font-arcade);
}
.hud-cell { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hud-mid { align-items: center; }
.hud-right { align-items: flex-end; }
.hud-k { font-size: 8px; color: var(--muted); letter-spacing: .12em; }
.hud-v { font-size: clamp(11px, 2.6vw, 15px); color: var(--text); white-space: nowrap; }
.hud-left .hud-v { color: var(--green); text-shadow: 0 0 10px rgba(61,255,110,.45); }
.hud-right .hud-v { color: var(--gold); }
.hud-v.bump { animation: hudbump .35s var(--ease); }
@keyframes hudbump { 40% { transform: scale(1.18); } }

.g-stage {
  position: relative; width: var(--stage-w); aspect-ratio: 9 / 12;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(61,255,110,.25), 0 0 40px rgba(61,255,110,.12), 0 30px 80px rgba(0,0,0,.6);
  background: #070912;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
#game { display: block; width: 100%; height: 100%; }

.g-status { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; pointer-events: none; }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 5px; border-radius: 999px; font-family: var(--font-arcade); font-size: 8px; background: rgba(5,6,11,.75); border: 1px solid var(--panel-line); }
.st img { width: 20px; height: 20px; object-fit: contain; }
.st-shield { color: var(--blue); }
.st-speed { color: var(--gold); }

/* overlays */
.g-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(80% 60% at 50% 45%, rgba(5,6,11,.74), rgba(5,6,11,.93));
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility 0s linear .18s;
}
.g-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .18s ease; }
.ov-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(360px, 100%); min-width: 0; }
.ov-logo { width: min(62%, 260px); height: auto; filter: drop-shadow(0 10px 30px rgba(61,255,110,.25)); }
.ov-tag { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 5vw, 28px); line-height: 1.05; letter-spacing: .02em; }
.ov-hint { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.kb { font-family: var(--font-arcade); font-size: 9px; padding: 3px 6px; border: 1px solid var(--panel-line); border-radius: 6px; color: var(--text); }

.btn-arcade {
  font-family: var(--font-arcade); font-size: 14px; letter-spacing: .06em;
  color: #031006; background: linear-gradient(180deg, #7dff9c, var(--green) 45%, var(--green-deep));
  border: 0; border-radius: 14px; padding: 16px 26px; min-height: 52px; cursor: pointer;
  box-shadow: 0 6px 0 #0a6e27, 0 0 28px rgba(61,255,110,.45);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn-arcade:active { transform: translateY(4px); box-shadow: 0 2px 0 #0a6e27, 0 0 18px rgba(61,255,110,.35); }
.btn-arcade:focus-visible, .btn-ghost:focus-visible, .pad-btn:focus-visible, .g-btn-icon:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-ghost { color: var(--muted); font-family: var(--font-arcade); font-size: 10px; text-decoration: none; padding: 12px 16px; }
.btn-ghost:hover { color: var(--text); }

.ov-rekt-frog { width: 110px; height: auto; animation: spin-in .5s var(--ease) both; }
@keyframes spin-in { from { transform: rotate(-30deg) scale(.4); opacity: 0; } }
.rekt-title {
  margin: 0; font-family: var(--font-display); font-size: clamp(64px, 18vw, 104px); line-height: .9;
  color: var(--red); text-shadow: 0 0 24px rgba(255,59,59,.55), 0 5px 0 #6b0b0b;
  animation: slam .45s var(--ease) both;
}
@keyframes slam { from { transform: scale(2.2); opacity: 0; } }
.rekt-by { overflow-wrap: anywhere; margin: 0; font-family: var(--font-arcade); font-size: 10px; color: var(--muted); line-height: 1.6; }
.rekt-new { margin: 0; font-family: var(--font-arcade); font-size: 11px; color: var(--gold); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.rekt-stats { display: flex; gap: 24px; margin: 4px 0 6px; font-family: var(--font-arcade); }
.rekt-stats div { display: flex; flex-direction: column; gap: 6px; }
.rekt-stats dt { font-size: 8px; color: var(--muted); }
.rekt-stats dd { margin: 0; font-size: 16px; }

/* touch pad */
.g-pad {
  display: none; width: var(--stage-w); height: calc(var(--pad-h) - 8px); margin-top: 8px;
  grid-template-columns: 1fr 1.1fr 1fr .9fr; grid-template-rows: 1fr 1fr; gap: 8px;
  grid-template-areas: "l u r p" "l d r p";
}
@media (pointer: coarse), (max-width: 760px) { .g-pad { display: grid; } }
.pad-btn {
  border: 1px solid rgba(61,255,110,.28); border-radius: 18px; cursor: pointer;
  background: linear-gradient(180deg, rgba(30,36,64,.85), rgba(12,14,28,.92));
  color: var(--green); display: grid; place-items: center;
  touch-action: none; -webkit-user-select: none; user-select: none;
}
.pad-btn svg { width: 34px; height: 34px; fill: currentColor; filter: drop-shadow(0 0 8px rgba(61,255,110,.5)); }
.pad-btn.is-down { background: rgba(61,255,110,.22); transform: scale(.97); }
.pad-u { grid-area: u; } .pad-d { grid-area: d; } .pad-l { grid-area: l; } .pad-r { grid-area: r; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===================== progression UI ===================== */
.g-top-actions { display: flex; gap: 8px; align-items: center; }

/* MY PEPE entry: dark panel + neon border so it reads as a button, but stays
   secondary to the filled green PLAY button. */
.mp-btn {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 3px 10px 3px 3px; border-radius: 14px; cursor: pointer;
  color: var(--text); font: inherit;
  background: linear-gradient(180deg, rgba(22,52,30,.96), rgba(6,20,10,.96));
  border: 2px solid var(--green);
  box-shadow: 0 4px 0 #0a6e27, 0 0 16px rgba(61,255,110,.32), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.mp-btn:hover { border-color: #8dffa8; background: linear-gradient(180deg, rgba(30,70,40,.98), rgba(8,28,14,.98)); box-shadow: 0 5px 0 #0a6e27, 0 0 24px rgba(61,255,110,.5), inset 0 1px 0 rgba(255,255,255,.16); transform: translateY(-1px); }
.mp-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0a6e27, 0 0 12px rgba(61,255,110,.3); }
.mp-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.mp-btn-av { width: 38px; height: 38px; border-radius: 10px; background: rgba(3,16,6,.9); border: 1px solid rgba(61,255,110,.35); flex: none; }
.mp-btn-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1; }
.mp-btn-txt b { font-family: var(--font-arcade); font-size: 11px; font-weight: 400; color: var(--green); text-shadow: 0 0 10px rgba(61,255,110,.55); letter-spacing: .04em; white-space: nowrap; }
.mp-btn-txt em { font-style: normal; font-family: var(--font-arcade); font-size: 8px; color: #1a1200; background: var(--gold); border-radius: 5px; padding: 3px 5px 2px; }
.mp-btn-chev { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* one-time attention pulse on load (off for reduced motion) */
.mp-btn::after { content: ''; position: absolute; inset: -2px; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 0 rgba(61,255,110,.7); animation: mp-pulse 1.4s ease-out .8s 2 both; }
@keyframes mp-pulse { 0% { box-shadow: 0 0 0 0 rgba(61,255,110,.7); } 100% { box-shadow: 0 0 0 12px rgba(61,255,110,0); } }
@media (prefers-reduced-motion: reduce) { .mp-btn::after { animation: none; } .mp-btn, .btn-locker { transition: none; } }

.g-xp { width: var(--stage-w); height: 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-bottom: 4px; font-family: var(--font-arcade); }
.xp-lv { font-size: 10px; color: var(--gold); }
.xp-num { font-size: 8px; color: var(--muted); white-space: nowrap; }
.xp-bar { position: relative; display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; border: 1px solid rgba(255,201,60,.25); }
.xp-bar-lg { height: 12px; }
.xp-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--green), var(--gold)); box-shadow: 0 0 12px rgba(255,201,60,.6); transition: width .35s var(--ease); }

/* ---------- power widget ---------- */
.pw-icon { position: relative; display: grid; place-items: center; flex: none; }
.pw-icon img { position: relative; z-index: 1; object-fit: contain; }
.pw-ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(rgba(var(--pw, 255,201,60), .95) var(--p, 100%), rgba(255,255,255,.08) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
.pw {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; column-gap: 10px;
  align-items: center; min-width: 170px; padding: 8px 14px 8px 8px; border-radius: 16px; cursor: pointer; text-align: left;
  background: rgba(5,6,11,.82); border: 1px solid rgba(var(--pw, 255,201,60), .5); color: var(--text);
}
.pw .pw-icon { grid-row: 1 / span 2; width: 52px; height: 52px; }
.pw .pw-icon img { width: 36px; height: 36px; }
.pw-txt { display: flex; flex-direction: column; gap: 4px; }
.pw-txt b { font-family: var(--font-arcade); font-size: 9px; font-weight: 400; color: rgb(var(--pw, 255,201,60)); }
.pw-txt em { font-style: normal; font-family: var(--font-arcade); font-size: 8px; color: var(--muted); }
.pw-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.pw-bar span { display: block; height: 100%; width: 0; background: rgb(var(--pw, 255,201,60)); }
.pw kbd { position: absolute; right: -6px; top: -6px; font-family: var(--font-arcade); font-size: 8px; background: var(--gold); color: #1a1100; border-radius: 6px; padding: 3px 5px; }
.pw.is-ready, .pad-p.is-ready { box-shadow: 0 0 22px rgba(var(--pw, 255,201,60), .55); }
.pw.is-ready .pw-txt em, .pad-p.is-ready .pad-p-state { color: var(--green); }
.pw.is-active .pw-txt em, .pad-p.is-active .pad-p-state { color: rgb(var(--pw, 255,201,60)); }
.pw.is-cool img, .pad-p.is-cool img { filter: grayscale(1) brightness(.6); }
@media (pointer: coarse), (max-width: 760px) { .pw { display: none; } }

.pad-p { grid-area: p; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-color: rgba(var(--pw, 255,201,60), .45); }
.pad-p .pw-icon { width: 54px; height: 54px; }
.pad-p .pw-icon img { width: 38px; height: 38px; }
.pad-p-state { font-family: var(--font-arcade); font-size: 7.5px; color: var(--muted); text-align: center; line-height: 1.4; }
.pad-p.is-none { opacity: .55; }
.pad-p.is-none .pw-icon { display: none; }

.st-shield { color: var(--blue); padding-left: 9px; }
.st-speed { color: var(--gold); padding-left: 9px; }

/* ---------- title ---------- */
.ov-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-locker {
  font-family: var(--font-arcade); font-size: 12px; letter-spacing: .05em; cursor: pointer; min-height: 52px; padding: 14px 20px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--green); text-shadow: 0 0 10px rgba(61,255,110,.5);
  background: linear-gradient(180deg, rgba(22,52,30,.96), rgba(6,20,10,.96)); border: 2px solid var(--green);
  box-shadow: 0 5px 0 #0a6e27, 0 0 16px rgba(61,255,110,.28), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-locker:hover { border-color: #8dffa8; box-shadow: 0 6px 0 #0a6e27, 0 0 24px rgba(61,255,110,.45), inset 0 1px 0 rgba(255,255,255,.16); transform: translateY(-1px); }
.btn-locker:active { transform: translateY(4px); box-shadow: 0 1px 0 #0a6e27, 0 0 10px rgba(61,255,110,.25); }
.btn-locker:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-locker::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 3px 3px 0 0; transform: rotate(45deg); margin-left: 2px; }
.btn-locker-sm { min-height: 44px; padding: 10px 14px; font-size: 10px; }
.welcome { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 18px; border-radius: 14px; background: rgba(255,201,60,.08); border: 1px solid rgba(255,201,60,.4); }
.wb-k { font-family: var(--font-arcade); font-size: 9px; color: var(--gold); }
.wb-row { display: flex; gap: 12px; font-family: var(--font-display); font-size: 20px; }
.wb-row b { font-weight: 400; }
.wb-row b:last-child { color: var(--green); }
.wb-best { font-family: var(--font-arcade); font-size: 8.5px; }
.wb-next { font-family: var(--font-arcade); font-size: 8px; color: var(--muted); line-height: 1.6; text-align: center; }

/* ---------- celebration (one at a time) ---------- */
.g-celebrate {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(60% 45% at 50% 45%, rgba(61,255,110,.22), rgba(5,6,11,.78));
  text-align: center; padding: 16px; animation: cel-in .3s var(--ease); cursor: pointer;
}
.g-celebrate.is-district {
  background:
    radial-gradient(60% 45% at 50% 45%, color-mix(in srgb, var(--d-accent, #2ec8ff) 26%, transparent), rgba(5,6,11,.72)),
    var(--d-bg, none) center / cover no-repeat, #05060b;
}
.g-celebrate.is-minor { background: radial-gradient(60% 40% at 50% 45%, rgba(255,201,60,.16), rgba(5,6,11,.62)); }
@keyframes cel-in { from { opacity: 0; transform: scale(1.06); } }
.g-celebrate p { margin: 0; }
.cel-k { font-family: var(--font-arcade); font-size: clamp(9px, 2.6vw, 12px); color: var(--gold); letter-spacing: .1em; }
.cel-v { font-family: var(--font-display); font-size: clamp(38px, 11vw, 74px); line-height: .95; color: var(--green); text-shadow: 0 0 30px rgba(61,255,110,.6), 0 5px 0 #0a5e22; }
.is-district .cel-v { color: var(--text); text-shadow: 0 0 30px var(--d-accent, #2ec8ff), 0 5px 0 rgba(0,0,0,.5); }
.is-minor .cel-v { font-size: clamp(26px, 7vw, 44px); color: var(--gold); text-shadow: 0 0 24px rgba(255,201,60,.5), 0 4px 0 rgba(0,0,0,.5); }
.cel-u { font-family: var(--font-arcade); font-size: 9.5px; color: var(--text); line-height: 1.8; max-width: 92%; }
.cel-skip { position: absolute; bottom: 10px; font-family: var(--font-arcade); font-size: 7px; color: var(--muted); opacity: .7; }
.chip-share, .btn-share {
  font-family: var(--font-arcade); font-size: 10px; letter-spacing: .06em; cursor: pointer;
  color: var(--text); background: rgba(46,200,255,.12); border: 1px solid rgba(46,200,255,.6); border-radius: 12px; padding: 12px 16px; min-height: 44px;
}
.chip-share:hover, .btn-share:hover { background: rgba(46,200,255,.25); }
.btn-sm { padding: 10px 14px; min-height: 40px; font-size: 9px; }

/* ---------- rekt ---------- */
.ov-rekt { gap: 8px; }
.rekt-stats { gap: 18px; }
.rekt-district { margin: 0; font-family: var(--font-arcade); font-size: 9px; color: var(--muted); }
.rekt-goal { margin: 0; font-family: var(--font-arcade); font-size: 8.5px; line-height: 1.6; color: var(--green); padding: 6px 10px; border-radius: 10px; background: rgba(61,255,110,.08); }
.rekt-goal:empty { display: none; }
.rekt-hl { list-style: none; margin: 2px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; width: 100%; max-height: 116px; overflow: auto; }
.rekt-hl li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 10px; background: rgba(255,201,60,.08); border: 1px solid rgba(255,201,60,.25); font-family: var(--font-arcade); font-size: 8.5px; color: var(--gold); text-align: left; line-height: 1.5; }
.rekt-hl li button { flex: none; min-height: 32px; padding: 6px 10px; font-size: 8px; }
.rekt-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.rekt-links { display: flex; gap: 8px; align-items: center; }
.ov-card .btn-ghost { background: none; border: 0; cursor: pointer; }

/* ===================== modals ===================== */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 12px; background: rgba(3,4,8,.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card {
  position: relative; width: min(760px, 100%); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, #121530, #0a0c18); border: 1px solid rgba(61,255,110,.3); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 40px rgba(61,255,110,.1); padding: 20px;
}
.modal-x { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--panel-line); background: var(--panel); color: var(--text); font-size: 24px; cursor: pointer; z-index: 3; }
.modal h2 { font-family: var(--font-display); font-weight: 400; margin: 0; font-size: 34px; }

/* ---------- evolution reveal ---------- */
.reveal { z-index: 60; background: radial-gradient(70% 60% at 50% 45%, rgba(20,60,30,.92), rgba(3,4,8,.96)); }
.reveal-card { position: relative; width: min(520px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; }
.reveal-rays { position: absolute; left: 50%; top: 42%; width: 620px; height: 620px; transform: translate(-50%, -50%); pointer-events: none; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255,201,60,.16) 0 8deg, transparent 8deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%);
  animation: rays 14s linear infinite; }
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
/* tiers: each evolution reveal is a step up from the last */
.reveal.tier-1 .reveal-rays { animation-duration: 14s; }
.reveal.tier-2 { background: radial-gradient(70% 60% at 50% 45%, rgba(20,50,90,.93), rgba(3,4,8,.96)); }
.reveal.tier-2 .reveal-rays { background: repeating-conic-gradient(from 0deg, rgba(46,200,255,.2) 0 7deg, transparent 7deg 18deg); animation-duration: 10s; }
.reveal.tier-2 .reveal-name { color: #8fe4ff; text-shadow: 0 0 34px rgba(46,200,255,.7), 0 5px 0 #0b3b6e; }
.reveal.tier-3 { background: radial-gradient(70% 60% at 50% 45%, rgba(80,58,8,.94), rgba(3,4,8,.97)); }
.reveal.tier-3 .reveal-rays { width: 760px; height: 760px; background: repeating-conic-gradient(from 0deg, rgba(255,201,60,.28) 0 6deg, transparent 6deg 15deg); animation-duration: 8s; }
.reveal.tier-3 .reveal-name { color: var(--gold); text-shadow: 0 0 40px rgba(255,201,60,.8), 0 5px 0 #6b4a00; }
.reveal.tier-4 { background: radial-gradient(70% 60% at 50% 45%, rgba(70,20,90,.94), rgba(3,4,8,.97)); }
.reveal.tier-4 .reveal-rays { width: 860px; height: 860px; animation-duration: 6s;
  background: repeating-conic-gradient(from 0deg, rgba(255,61,139,.26) 0 5deg, transparent 5deg 10deg, rgba(255,201,60,.26) 10deg 15deg, transparent 15deg 20deg, rgba(61,255,110,.26) 20deg 25deg, transparent 25deg 30deg, rgba(46,200,255,.26) 30deg 35deg, transparent 35deg 40deg); }
.reveal.tier-4 .reveal-name { background: linear-gradient(90deg, #ff3d8b, #ffc93c, #3dff6e, #2ec8ff, #a24dff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 18px rgba(255,201,60,.6)) drop-shadow(0 5px 0 rgba(0,0,0,.6)); }
@media (prefers-reduced-motion: reduce) { .reveal-rays { animation: none !important; } }
.reveal-k { margin: 0; font-family: var(--font-arcade); font-size: 13px; line-height: 1.7; letter-spacing: .14em; color: var(--gold); animation: cel-in .4s var(--ease) both; }
.reveal-canvas { width: min(360px, 78vw, 44dvh); height: auto; aspect-ratio: 1; }
.reveal-name { font-family: var(--font-display); font-weight: 400; margin: 0; font-size: clamp(40px, 11vw, 66px) !important; line-height: .95; color: var(--green); text-shadow: 0 0 34px rgba(61,255,110,.6), 0 5px 0 #0a5e22; animation: slam .5s var(--ease) both .15s; }
.reveal-sub { margin: 0; font-family: var(--font-arcade); font-size: 12px; letter-spacing: .2em; color: var(--text); }
.reveal-desc { margin: 2px 0 8px; color: var(--muted); font-size: 15px; }
.reveal-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.reveal .chip-share { margin-top: 6px; min-height: 40px; padding: 8px 14px; font-size: 9px; }
@keyframes slam { from { transform: scale(1.8); opacity: 0; } }

/* ---------- MY PEPE locker ---------- */
.locker { width: min(1000px, 100%); display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 20px; padding: 18px; }
.lk-stage {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px 14px;
  border-radius: 18px; background: radial-gradient(80% 55% at 50% 38%, rgba(61,255,110,.18), rgba(5,6,11,.5) 70%), rgba(5,6,11,.4);
  border: 1px solid var(--panel-line); align-self: start; position: sticky; top: 0;
}
.lk-title { font-family: var(--font-arcade) !important; font-size: 11px !important; color: var(--muted); letter-spacing: .14em; }
.lk-pepe { width: 100%; max-width: 300px; height: auto; aspect-ratio: 1; }
.lk-evo { margin: -6px 0 0; font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--green); text-shadow: 0 0 18px rgba(61,255,110,.45); }
.lk-level { width: 100%; display: flex; justify-content: space-between; font-family: var(--font-arcade); font-size: 9px; }
.lk-level span:first-child { color: var(--gold); }
.lk-level span:last-child { color: var(--muted); }
.lk-stage .xp-bar { width: 100%; }
.lk-goal { margin: 2px 0 0; font-family: var(--font-arcade); font-size: 8.5px; line-height: 1.6; color: var(--green); }
.lk-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0; }
.lk-stats div { min-width: 0; padding: 7px 6px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--panel-line); }
.lk-stats dt { font-family: var(--font-arcade); font-size: 6.5px; color: var(--muted); margin-bottom: 5px; }
.lk-stats dd { margin: 0; font-family: var(--font-display); font-size: 15px; line-height: 1.1; overflow-wrap: anywhere; }
.lk-side { min-width: 0; display: flex; flex-direction: column; padding-top: 44px; }
.lk-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.lk-tabs button { flex: none; font-family: var(--font-arcade); font-size: 9px; padding: 11px 12px; min-height: 42px; border-radius: 10px; cursor: pointer; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--panel-line); }
.lk-tabs button[aria-selected="true"] { color: #031006; background: var(--green); border-color: var(--green); }
.lk-tabs button[data-tab="achievements"] { margin-left: auto; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; text-align: center; background: rgba(255,255,255,.035); border: 1px solid var(--panel-line); }
.item.is-equipped { border-color: var(--green); box-shadow: 0 0 18px rgba(61,255,110,.22); background: rgba(61,255,110,.06); }
.item-art { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: rgba(5,6,11,.45); }
.item.is-locked .item-art > :not(.lock-badge) { opacity: .35; filter: grayscale(.6); }
.item-art canvas, .item-art img { width: 78%; height: 78%; object-fit: contain; }
.item-art .orb { width: 56%; height: 56%; border-radius: 50%; }
.item-q { font-family: var(--font-display); font-size: 42px; color: var(--muted); }
.lock-badge { position: absolute; top: 6px; left: 6px; font-family: var(--font-arcade); font-size: 7px; padding: 5px 6px; border-radius: 6px; background: rgba(5,6,11,.9); color: var(--muted); border: 1px solid var(--panel-line); }
.item-name { font-family: var(--font-arcade); font-size: 8.5px; line-height: 1.5; }
.item-sub { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.item button, .item .tag { font-family: var(--font-arcade); font-size: 7.5px; line-height: 1.5; min-height: 36px; padding: 8px; border-radius: 10px; width: 100%; margin-top: auto; }
.item button { cursor: pointer; color: #031006; background: var(--green); border: 0; }
.item button.is-on { background: transparent; color: var(--green); border: 1px solid var(--green); }
.item button:disabled { cursor: default; }
.item .tag { display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--panel-line); }
.item .tag.soon { color: var(--gold); border-color: rgba(255,201,60,.4); }
.ach { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--panel-line); margin-bottom: 8px; }
.ach.is-done { border-color: rgba(255,201,60,.5); }
.ach b { font-family: var(--font-arcade); font-size: 9px; font-weight: 400; color: var(--gold); }
.ach.is-locked b { color: var(--muted); }
.ach span { font-size: 14px; color: var(--muted); }
.ach em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-family: var(--font-arcade); font-size: 8px; color: var(--muted); text-align: right; }
.prof-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--panel-line); margin-bottom: 8px; font-weight: 600; }
.prof-row small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.soon-tag { font-family: var(--font-arcade); font-size: 8px; color: var(--gold); border: 1px solid rgba(255,201,60,.4); border-radius: 8px; padding: 7px 9px; white-space: nowrap; }
.mp-h { font-family: var(--font-arcade); font-size: 9px; color: var(--muted); margin: 16px 0 8px; font-weight: 400; }
.mp-note { color: var(--muted); font-size: 13px; margin: 8px 0 0; grid-column: 1 / -1; }

/* ---------- share ---------- */
.sh { width: min(680px, 100%); text-align: center; }
.sh-card { width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 14px; margin: 14px 0; border: 1px solid var(--panel-line); }
.sh-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sh-btn { display: grid; place-items: center; min-height: 50px; border-radius: 12px; font-family: var(--font-arcade); font-size: 9.5px; text-decoration: none; cursor: pointer; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--panel-line); }
.sh-x { background: #000; border-color: #444; }
.sh-tg { background: #1d8fd6; border-color: #1d8fd6; }
.sh-btn:hover { filter: brightness(1.15); }
.sh-note { color: var(--muted); font-size: 13px; margin: 12px 0 0; }

@media (max-width: 820px) {
  .locker { grid-template-columns: 1fr; padding: 14px 12px; gap: 12px; }
  .lk-stage { position: static; padding: 12px 10px; }
  .lk-pepe { max-width: 210px; }
  .lk-side { padding-top: 0; }
  .lk-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 12px; padding: 0 12px 4px; position: sticky; top: -14px; z-index: 2; background: #0e1124; }
  .lk-tabs::-webkit-scrollbar { display: none; }
  .lk-tabs button[data-tab="achievements"] { margin-left: 0; }
}
@media (max-width: 560px) {
  .modal { padding: 0; }
  .modal-card { max-height: 100dvh; border-radius: 0; min-height: 100dvh; }
  .modal h2 { font-size: 26px; }
  .mp-grid { grid-template-columns: repeat(2, 1fr); }
  .sh-btns { grid-template-columns: 1fr 1fr; }
  .g-home span { display: none; }
  .sh { min-height: auto; border-radius: 18px; margin: 10px; }
}

/* ---------- small screens: board first ---------- */
@media (max-height: 700px) and (pointer: coarse), (max-height: 700px) and (max-width: 760px) {
  body.game-page { --pad-h: 118px; --top-h: 50px; }
  .mp-btn { min-height: 44px; }
  .mp-btn-av { width: 34px; height: 34px; }
  .ov-logo { width: min(40%, 140px); }
  .ov-hint { display: none; }
  .ov-tag { font-size: 18px; }
  .ov-card { gap: 8px; }
  .btn-arcade, .btn-locker { padding: 12px 18px; min-height: 46px; }
  .welcome { padding: 8px 12px; gap: 4px; }
  .wb-row { font-size: 16px; }
  .pad-p .pw-icon { width: 42px; height: 42px; }
  .pad-p .pw-icon img { width: 30px; height: 30px; }
}
@media (max-height: 600px) and (pointer: coarse), (max-height: 600px) and (max-width: 760px) {
  body.game-page { --pad-h: 104px; --top-h: 46px; --hud-h: 34px; --xp-h: 18px; }
  .hud-k { font-size: 7px; }
  .hud-v { font-size: 11px; }
  .g-xp { height: 16px; margin-bottom: 2px; }
  .xp-num { display: none; }
  .welcome .wb-next, .welcome .wb-best { display: none; }
  .ov-logo { width: min(32%, 110px); }
  .mp-btn-txt b { font-size: 10px; }
}

/* result screen must always fit the board: scroll inside, compact on phones */
.g-overlay { overflow-y: auto; overscroll-behavior: contain; place-items: start center; }
.g-overlay > .ov-card { margin: auto 0; }
@media (pointer: coarse), (max-width: 760px) {
  .ov-rekt { gap: 6px; }
  .rekt-title { font-size: clamp(44px, 13vw, 64px); }
  .rekt-stats { margin: 0; gap: 14px; }
  .rekt-stats dd { font-size: 13px; }
  .rekt-hl { max-height: 76px; }
  .rekt-btns .btn-arcade { padding: 12px 16px; min-height: 46px; font-size: 12px; }
  .rekt-btns .btn-share { min-height: 46px; }
}
@media (max-width: 820px) and (max-height: 760px) {
  .lk-pepe { max-width: 150px; }
  .lk-evo { font-size: 24px; margin-top: -10px; }
  .lk-stage { gap: 6px; padding: 10px; }
  .lk-stats dd { font-size: 13px; }
  .lk-title { display: none; }
}

/* ===================== Stage 02: COMPETE ===================== */
.btn-compete {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 52px; padding: 10px 18px; border-radius: 14px; cursor: pointer; font-family: var(--font-arcade);
  color: #e9f8ff; background: linear-gradient(180deg, rgba(20,60,96,.96), rgba(6,18,36,.96)); border: 2px solid var(--blue);
  box-shadow: 0 5px 0 #0b3b6e, 0 0 16px rgba(46,200,255,.3), inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-compete b { font-weight: 400; font-size: 12px; letter-spacing: .05em; color: var(--blue); text-shadow: 0 0 10px rgba(46,200,255,.55); }
.btn-compete em { font-style: normal; font-size: 7px; letter-spacing: .14em; color: #1a1200; background: var(--gold); border-radius: 4px; padding: 2px 4px 1px; }
.btn-compete:hover { border-color: #8fe4ff; transform: translateY(-1px); box-shadow: 0 6px 0 #0b3b6e, 0 0 24px rgba(46,200,255,.5), inset 0 1px 0 rgba(255,255,255,.16); }
.btn-compete:active { transform: translateY(4px); box-shadow: 0 1px 0 #0b3b6e; }
.btn-compete:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-compete:disabled, .btn-compete.is-busy { opacity: .6; cursor: progress; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn-compete { transition: none; } }
.ov-online { margin: 0; max-width: 320px; font-family: var(--font-arcade); font-size: 8.5px; line-height: 1.7; color: var(--gold); text-align: center; }
.ov-lb { font-family: var(--font-arcade); font-size: 9px; color: var(--blue); text-decoration: none; padding: 10px 12px; letter-spacing: .06em; }
.ov-lb:hover, .ov-lb:focus-visible { text-decoration: underline; }
.st-compete { color: var(--blue); }
.rekt-verify { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 12px; margin: 2px 0 6px;
  border: 1px solid rgba(46,200,255,.45); background: rgba(46,200,255,.08); font-family: var(--font-arcade); text-align: center; }
.rekt-verify b { font-weight: 400; font-size: 12px; color: var(--blue); letter-spacing: .04em; }
.rekt-verify { max-width: 100%; }
.rekt-verify span { font-size: 8px; color: var(--text); line-height: 1.6; overflow-wrap: anywhere; }
.rekt-verify a { font-size: 8px; color: var(--gold); padding: 6px 8px; }
.rekt-verify small { font-family: var(--font-body); font-size: 11px; color: var(--muted); max-width: 260px; }
.rekt-verify.is-verifying b { animation: vblink 1s steps(2) infinite; }
.rekt-verify.is-verified { border-color: rgba(61,255,110,.6); background: rgba(61,255,110,.08); }
.rekt-verify.is-verified b { color: var(--green); font-size: 14px; }
.rekt-verify.is-error { border-color: rgba(255,80,80,.6); background: rgba(255,80,80,.08); }
.rekt-verify.is-error b { color: #ff6b6b; }
@keyframes vblink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .rekt-verify.is-verifying b { animation: none; } }
.online .on-name { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; }
.online .on-name label { font-family: var(--font-arcade); font-size: 8px; color: var(--muted); }
.online .on-name div { display: flex; gap: 8px; }
.online .on-name input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 2px solid rgba(46,200,255,.5); background: rgba(5,6,11,.8); color: var(--text); font-family: var(--font-arcade); font-size: 12px; text-transform: uppercase; }
.online .on-name input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.online .on-name small { font-size: 12px; color: var(--gold); min-height: 1em; }
.online .on-stats { margin: 0 0 12px; }
.online .on-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.online a.btn-locker, .online .btn-arcade { text-decoration: none; margin: 0 8px 8px 0; }
@media (max-height: 700px) and (pointer: coarse), (max-height: 700px) and (max-width: 760px) {
  .btn-compete { min-height: 46px; padding: 8px 14px; }
  .ov-lb { padding: 6px 10px; }
}
@media (max-height: 600px) and (pointer: coarse), (max-height: 600px) and (max-width: 760px) {
  .ov-tag { display: none; }
  .ov-lb { padding: 4px 8px; }
}

/* ===================== Stage 03: identity + INVITE FROGS ===================== */
.on-identity { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.id-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--panel-line); background: rgba(14,17,32,.6); }
.id-row b { display: block; font-family: var(--font-arcade); font-size: 10px; font-weight: 400; color: var(--text); margin-bottom: 4px; }
.id-row small { color: var(--muted); font-size: 12px; }
.id-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.id-acts button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.invite .inv-count { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.invite .inv-count b { font-family: var(--font-display); font-weight: 400; font-size: 34px; color: var(--green); line-height: 1; }
.invite .inv-count span { font-family: var(--font-arcade); font-size: 9px; color: var(--gold); line-height: 1.6; }
.invite .on-stats { margin-top: 12px; }
.invite .inv-link input { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 2px solid rgba(61,255,110,.5); background: rgba(5,6,11,.85); color: var(--text); font-family: var(--font-arcade); font-size: 10px; }
.invite .inv-link input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.invite .on-btns { margin-top: 10px; }
.invite .on-btns a { text-decoration: none; }
.invite .inv-msg { display: block; min-height: 1em; color: var(--gold); font-size: 12px; margin-top: 4px; }
.inv-tiers { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.inv-tiers li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 12px; border-radius: 10px; border: 1px dashed var(--panel-line); font-family: var(--font-arcade); font-size: 8.5px; color: var(--muted); line-height: 1.5; }
.inv-tiers li.got { border-style: solid; border-color: rgba(61,255,110,.6); color: var(--green); background: rgba(61,255,110,.07); }
.inv-tiers .chip-share { min-height: 32px; padding: 6px 10px; font-size: 8px; }

/* ---------------- invite rewards (server-granted referral cosmetics) ---------------- */
.lk-legend { margin: 2px 0 0; font-family: var(--font-arcade); font-size: 9px; letter-spacing: .08em; padding: 6px 10px; border-radius: 8px;
  color: #1a1000; background: linear-gradient(90deg, #ffe58a, #ffc93c 40%, #fff6c8 55%, #e09a1c); background-size: 220% 100%;
  box-shadow: 0 0 18px rgba(255,201,60,.45); animation: legend-shine 3.2s linear infinite; }
@keyframes legend-shine { from { background-position: 100% 0; } to { background-position: -120% 0; } }
.lk-rewards { width: 100%; margin: 2px 0 8px; }
.lk-rw-head { display: block; width: 100%; margin: 0 0 6px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--font-arcade); font-size: 7.5px; line-height: 1.7; letter-spacing: .1em; color: var(--gold); }
.lk-rw-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lk-rw { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 7px; min-width: 0; cursor: pointer;
  border-radius: 10px; background: rgba(255,255,255,.035); border: 1px dashed var(--panel-line); color: var(--muted); }
.lk-rw img, .lk-rw canvas { width: 100%; max-width: 54px; aspect-ratio: 1; height: auto; object-fit: contain; opacity: .38; filter: grayscale(.75); }
.lk-rw span { font-family: var(--font-arcade); font-size: 6.5px; line-height: 1.3; }
.lk-rw.is-got { border-style: solid; border-color: rgba(61,255,110,.65); background: rgba(61,255,110,.08); color: var(--green); box-shadow: 0 0 14px rgba(61,255,110,.18); }
.lk-rw.is-got img, .lk-rw.is-got canvas { opacity: 1; filter: drop-shadow(0 0 8px rgba(255,201,60,.45)); }
.lk-rw.is-legend.is-got { border-color: var(--gold); background: rgba(255,201,60,.1); color: var(--gold); box-shadow: 0 0 18px rgba(255,201,60,.35); }
.lk-rw:focus-visible, .lk-rw-head:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.item.is-ref { border-color: rgba(255,201,60,.35); background: linear-gradient(180deg, rgba(255,201,60,.07), rgba(255,255,255,.02)); }
.item.is-ref .item-sub { color: var(--gold); }
.item.is-ref.is-epic { border-color: rgba(255,61,139,.45); background: linear-gradient(180deg, rgba(255,61,139,.08), rgba(46,200,255,.04)); }
.item.is-ref.is-legend { border-color: rgba(255,201,60,.65); box-shadow: 0 0 16px rgba(255,201,60,.18); }
.item.is-ref.is-equipped { border-color: var(--green); }

.inv-tiers li { justify-content: flex-start; align-items: center; gap: 10px; padding: 8px 10px; font-family: var(--font-body); font-size: 13px; }
.inv-pic { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; background: rgba(5,6,11,.45); }
.inv-pic img, .inv-pic canvas { width: 46px; height: 46px; object-fit: contain; opacity: .4; filter: grayscale(.7); }
.inv-tiers li.got .inv-pic img, .inv-tiers li.got .inv-pic canvas { opacity: 1; filter: none; }
.inv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.inv-txt small { font-family: var(--font-arcade); font-size: 7px; color: var(--muted); letter-spacing: .06em; }
.inv-txt b { font-family: var(--font-display); font-size: 17px; line-height: 1.05; color: var(--text); }
.inv-txt span { font-size: 12px; line-height: 1.35; color: var(--muted); }
.inv-tiers li.got .inv-txt small { color: var(--green); }
.inv-tiers li.is-legend.got { border-color: var(--gold); background: rgba(255,201,60,.08); }
.inv-tiers li.is-legend.got .inv-txt b { color: var(--gold); }
.inv-acts { flex: none; display: flex; flex-direction: column; gap: 6px; }
.inv-acts .is-on { color: #031006; background: var(--green); border-color: var(--green); }
@media (max-width: 560px) { .inv-tiers li { flex-wrap: wrap; } .inv-acts { flex-direction: row; width: 100%; justify-content: flex-end; } }

/* the reveal, reused for invite rewards */
.reveal.is-reward .reveal-k { color: var(--green); }
.reveal.is-reward.tier-2 { background: radial-gradient(70% 60% at 50% 45%, rgba(10,70,30,.94), rgba(3,4,8,.97)); }
.reveal.is-reward.tier-2 .reveal-rays { background: repeating-conic-gradient(from 0deg, rgba(61,255,110,.22) 0 7deg, transparent 7deg 18deg); }
.reveal.is-reward.tier-2 .reveal-name { color: var(--green); text-shadow: 0 0 34px rgba(61,255,110,.7), 0 5px 0 #0b4a1e; }
@media (prefers-reduced-motion: reduce) { .lk-legend { animation: none; } }

/* ---------------- MOVE MY PEPE + local progress ---------------- */
.mv-box { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--panel-line); }
.mv-check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 10px; font-size: 13px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.mv-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.mv-out { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.mv-code { display: block; margin: 4px 0 6px; padding: 14px 12px; border-radius: 12px; text-align: center; overflow-wrap: anywhere;
  font-family: var(--font-arcade); font-size: 15px; letter-spacing: .08em; line-height: 1.5; color: #031006; background: var(--green); box-shadow: 0 0 22px rgba(61,255,110,.35); user-select: all; }
.mv-code.is-dead { color: var(--muted); background: rgba(255,255,255,.06); box-shadow: none; text-decoration: line-through; }
.mv-exp { display: block; margin-bottom: 8px; font-family: var(--font-arcade); font-size: 8px; color: var(--gold); letter-spacing: .08em; }
.mv-steps { margin: 10px 0 6px; padding-left: 20px; color: var(--text); }
.mv-steps li { margin: 3px 0; }
.mv-warn { margin: 6px 0 0; font-size: 12px; color: var(--gold); }
.mv-form { display: flex; gap: 8px; }
.mv-form input { flex: 1; min-width: 0; min-height: 42px; padding: 8px 12px; border-radius: 10px; font-family: var(--font-arcade); font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text); background: rgba(5,6,11,.6); border: 1px solid var(--panel-line); }
.mv-form input:focus-visible, .mv-text:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.mv-ok { margin: 0 0 8px; font-family: var(--font-arcade); font-size: 9px; line-height: 1.6; color: var(--green); }
.mv-choice { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--panel-line); }
.mv-choice p { margin: 0; font-size: 12px; color: var(--text); }
.mv-text { width: 100%; min-height: 84px; resize: vertical; padding: 8px; border-radius: 10px; font: 11px/1.4 ui-monospace, monospace; color: var(--text); background: rgba(5,6,11,.6); border: 1px solid var(--panel-line); overflow-wrap: anywhere; }
.mv-banner { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; padding: 12px; border-radius: 12px; background: rgba(255,201,60,.1); border: 1px solid rgba(255,201,60,.5); }
.mv-banner b { font-family: var(--font-arcade); font-size: 9px; color: var(--gold); line-height: 1.6; }
.mv-banner span { font-size: 13px; color: var(--text); }
.mv-banner a { align-self: flex-start; }
.ov-move { margin: 4px auto 0; padding: 8px 12px; min-height: 36px; border-radius: 10px; cursor: pointer; font-family: var(--font-arcade); font-size: 8px; line-height: 1.5; letter-spacing: .06em;
  color: #1a1000; background: var(--gold); border: 0; box-shadow: 0 0 16px rgba(255,201,60,.4); }
.ov-move:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
@media (max-width: 560px) { .mv-form { flex-direction: column; } .mv-code { font-size: 12px; } }
