/* arcia — site & game chrome */
:root {
  --bg: #0b0f1c;
  --bg2: #0f1526;
  --panel: #121829;
  --panel2: #1a2138;
  --line: #232c45;
  --line2: #2e3a5e;
  --text: #e9edf5;
  --dim: #aab6cb;
  --faint: #5f6d88;
  --cyan: #35f0d0;
  --cyan-d: #1a9c8c;
  --gold: #f3c94b;
  --green: #5da84f;
  --violet: #a58ae0;
  --red: #c03a3a;
  --font-head: 'Press Start 2P', monospace;
  --font-body: 'VT323', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.35;
  -webkit-font-smoothing: none;
}
canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--cyan); text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--cyan); color: #0b0f1c; }

h1, h2, h3, .head { font-family: var(--font-head); line-height: 1.6; }
h2 { font-size: 22px; margin-bottom: 18px; }
h3 { font-size: 13px; }
.accent { color: var(--cyan); }
.gold { color: var(--gold); }
.dim { color: var(--dim); }

.px-border {
  position: relative;
  background: var(--panel);
  box-shadow: 0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line);
}
.px-border--lift { transition: transform .12s steps(2), box-shadow .12s steps(2); }
.px-border--lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 -4px 0 0 var(--line2), 0 4px 0 0 var(--line2), -4px 0 0 0 var(--line2), 4px 0 0 0 var(--line2);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  padding: 14px 22px;
  color: var(--text);
  background: var(--panel2);
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 -4px 0 0 var(--line2), 0 4px 0 0 var(--line2), -4px 0 0 0 var(--line2), 4px 0 0 0 var(--line2), 0 8px 0 0 rgba(0,0,0,.35);
  transition: transform .1s steps(2);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); }
.btn--cyan { background: var(--cyan); color: #06231e; box-shadow: 0 -4px 0 0 var(--cyan-d), 0 4px 0 0 var(--cyan-d), -4px 0 0 0 var(--cyan-d), 4px 0 0 0 var(--cyan-d), 0 8px 0 0 rgba(0,0,0,.35); }
.btn--gold { background: var(--gold); color: #2e2205; box-shadow: 0 -4px 0 0 #a97e2c, 0 4px 0 0 #a97e2c, -4px 0 0 0 #a97e2c, 4px 0 0 0 #a97e2c, 0 8px 0 0 rgba(0,0,0,.35); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn--sm { font-size: 9px; padding: 10px 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 22px;
  padding: 14px 22px;
  background: rgba(11,15,28,.94);
  border-bottom: 2px solid var(--line);
}
.nav .brand { font-family: var(--font-head); font-size: 14px; color: var(--text); letter-spacing: 2px; }
.nav .brand span { color: var(--cyan); }
.nav .links { display: flex; gap: 18px; margin-left: auto; }
.nav .links a { color: var(--dim); font-size: 19px; text-transform: uppercase; letter-spacing: 1px; }
.nav .links a:hover { color: var(--cyan); }
.nav .cta { margin-left: 8px; }
@media (max-width: 820px) { .nav .links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; }
.hero canvas.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,15,28,.25) 0%, rgba(11,15,28,0) 30%, rgba(11,15,28,0) 55%, rgba(11,15,28,.92) 100%);
  pointer-events: none;
}
.hero .inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; padding-bottom: 7vh;
}
.hero .logo-cv { width: min(480px, 84vw); height: auto; filter: drop-shadow(0 6px 0 rgba(0,0,0,.4)); }
.hero .tag { font-size: 26px; color: var(--dim); margin: 14px 0 6px; max-width: 640px; padding: 0 16px; }
.hero .tag b { color: var(--cyan); font-weight: normal; }
.hero .ctas { display: flex; gap: 16px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.hero .chain { margin-top: 22px; font-size: 18px; color: var(--faint); letter-spacing: 2px; text-transform: uppercase; }
.hero .chain b { color: var(--cyan); font-weight: normal; }

/* stats strip */
.strip {
  display: flex; justify-content: center; gap: clamp(18px, 6vw, 80px);
  padding: 22px 16px; background: var(--bg2);
  border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
  flex-wrap: wrap;
}
.strip .stat { text-align: center; }
.strip .stat b { display: block; font-family: var(--font-head); font-size: 16px; color: var(--gold); }
.strip .stat span { color: var(--dim); font-size: 18px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- sections ---------- */
.section { max-width: 1060px; margin: 0 auto; padding: 84px 22px; }
.section .kicker { font-family: var(--font-head); font-size: 10px; color: var(--cyan); letter-spacing: 3px; margin-bottom: 10px; text-transform: uppercase; }
.section p.lead { font-size: 24px; color: var(--dim); max-width: 720px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 36px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 36px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; } }
.tier--eternal .mult { color: var(--gold); }

/* tier cards */
.tier-card { padding: 26px 22px 24px; text-align: center; }
.tier-card .pic {
  width: 144px; height: 144px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2);
  box-shadow: inset 0 0 0 2px var(--line);
}
.tier-card canvas { width: 144px; height: 144px; }
.tier-card h3 { margin-bottom: 6px; }
.tier-card .mult { font-family: var(--font-head); font-size: 12px; margin: 8px 0; }
.tier-card .sub { color: var(--dim); font-size: 19px; min-height: 52px; }
.tier-card .meta { margin-top: 12px; display: flex; justify-content: space-between; color: var(--faint); font-size: 18px; border-top: 2px solid var(--line); padding-top: 10px; }
.tier--sprout .mult { color: var(--green); }
.tier--warden .mult { color: var(--cyan); }
.tier--ancient .mult { color: var(--violet); }

/* mechanics */
.mech { padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.mech .ico { flex: 0 0 56px; height: 56px; background: var(--bg2); box-shadow: inset 0 0 0 2px var(--line); display: flex; align-items: center; justify-content: center; }
.mech canvas { width: 48px; height: 48px; }
.mech h3 { margin-bottom: 6px; font-size: 12px; }
.mech p { color: var(--dim); font-size: 19px; }
.mech .pay { color: var(--gold); font-size: 18px; margin-top: 6px; }

/* token */
.token-bars { margin-top: 30px; }
.tbar { margin-bottom: 16px; }
.tbar .row { display: flex; justify-content: space-between; font-size: 19px; color: var(--dim); margin-bottom: 5px; }
.tbar .row b { color: var(--text); font-weight: normal; }
.tbar .bar { height: 18px; background: var(--bg2); box-shadow: inset 0 0 0 2px var(--line); }
.tbar .fill { height: 100%; image-rendering: pixelated; }

/* roadmap */
.roadmap { margin-top: 36px; display: grid; gap: 0; }
.phase { display: grid; grid-template-columns: 90px 26px 1fr; gap: 0 18px; }
.phase .tag2 { font-family: var(--font-head); font-size: 11px; color: var(--gold); padding-top: 2px; text-align: right; }
.phase .rail { position: relative; }
.phase .rail::before { content: ''; position: absolute; left: 10px; top: 4px; bottom: -4px; width: 4px; background: var(--line); }
.phase .rail::after { content: ''; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; background: var(--cyan); box-shadow: 0 0 0 3px var(--bg), 0 0 12px rgba(53,240,208,.6); }
.phase:last-child .rail::before { display: none; }
.phase.dim2 .rail::after { background: var(--line2); box-shadow: 0 0 0 3px var(--bg); }
.phase .body { padding-bottom: 38px; }
.phase h3 { margin-bottom: 6px; }
.phase p { color: var(--dim); font-size: 20px; max-width: 640px; }

/* footer */
.footer { border-top: 2px solid var(--line); padding: 40px 22px 60px; text-align: center; color: var(--faint); background: var(--bg2); }
.footer .brand { font-family: var(--font-head); font-size: 13px; color: var(--dim); margin-bottom: 10px; }
.footer .brand span { color: var(--cyan); }
.footer .links2 { display: flex; gap: 22px; justify-content: center; margin: 14px 0; font-size: 19px; }

/* ============================================================
   GAME PAGE
   ============================================================ */
body.game-page { overflow: hidden; height: 100svh; }
#stage { position: fixed; inset: 0; background: #000; }
#stage canvas#game { position: absolute; inset: 0; width: 100%; height: 100%; }

.hud { position: absolute; z-index: 10; user-select: none; -webkit-user-select: none; }
.hud-balance {
  top: 12px; left: 12px; display: flex; align-items: center; gap: 10px;
  background: rgba(11,15,28,.82); padding: 8px 14px 8px 8px;
  box-shadow: 0 0 0 2px var(--line);
}
.hud-balance canvas { width: 28px; height: 28px; }
.hud-balance .val { font-family: var(--font-head); font-size: 13px; color: var(--gold); }
.hud-balance .rate { font-size: 16px; color: var(--dim); display: block; margin-top: 3px; }
.hud-balance .cur { font-size: 15px; color: var(--faint); }

.hud-right { top: 12px; right: 12px; display: flex; gap: 8px; align-items: center; }
.hud-right .tierbox { display: flex; align-items: center; gap: 6px; background: rgba(11,15,28,.82); box-shadow: 0 0 0 2px var(--line); padding: 6px 10px; }
.hud-right .tierbox canvas { width: 28px; height: 28px; }
.hud-right .tierbox span { font-size: 17px; color: var(--dim); }
.hud-btn {
  width: 44px; height: 44px; font-family: var(--font-head); font-size: 12px;
  background: rgba(11,15,28,.82); color: var(--dim); border: 0; cursor: pointer;
  box-shadow: 0 0 0 2px var(--line);
}
.hud-btn:hover { color: var(--cyan); box-shadow: 0 0 0 2px var(--line2); }
.hud-btn.muted { color: var(--red); }

#prompt {
  bottom: 84px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head); font-size: 11px; color: var(--text);
  background: rgba(11,15,28,.85); padding: 10px 16px;
  box-shadow: 0 0 0 2px var(--cyan);
  opacity: 0; transition: opacity .15s; pointer-events: none;
  white-space: nowrap;
}
#prompt.on { opacity: 1; }

#toastStack { top: 108px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }

/* shared grove event banner */
#eventBanner {
  top: 64px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head); font-size: 11px;
  background: rgba(18,24,41,.94); padding: 10px 18px;
  box-shadow: 0 0 0 2px var(--gold);
  display: none; white-space: nowrap;
  animation: evPulse 1.6s steps(2) infinite;
}
#eventBanner.on { display: block; }
#eventBanner b { color: var(--gold); }
#eventBanner span { color: var(--dim); }
@keyframes evPulse { 50% { box-shadow: 0 0 0 2px var(--cyan); } }

/* leaderboard */
#topPanel {
  top: 96px; left: 12px; width: 250px; max-width: 80vw;
  background: rgba(11,15,28,.94); box-shadow: 0 0 0 2px var(--line);
  padding: 14px; display: none;
}
#topPanel.on { display: block; }
#topPanel h3 { color: var(--gold); font-size: 11px; margin-bottom: 10px; }
#topPanel ol { list-style: none; counter-reset: rank; }
#topPanel li { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 18px; counter-increment: rank; }
#topPanel li::before { content: counter(rank); color: var(--faint); width: 18px; font-size: 15px; }
#topPanel li .nm { flex: 1; }
#topPanel li b { color: var(--gold); font-weight: normal; }
#topPanel .nm.t-sprout { color: var(--green); } #topPanel .nm.t-warden { color: var(--cyan); }
#topPanel .nm.t-ancient { color: var(--violet); } #topPanel .nm.t-eternal { color: var(--gold); }

#chatLog .cm.em { font-style: italic; color: var(--faint); }
#chatLog .cm.em .nm { font-style: normal; }
.toast {
  font-family: var(--font-head); font-size: 10px; color: var(--text);
  background: rgba(18,24,41,.94); padding: 10px 16px;
  box-shadow: 0 0 0 2px var(--gold);
  animation: toastIn .18s steps(3);
  text-align: center;
}
.toast.out { opacity: 0; transition: opacity .4s; }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } }

#questPanel {
  top: 70px; right: 12px; width: 280px; max-width: 86vw;
  background: rgba(11,15,28,.94); box-shadow: 0 0 0 2px var(--line);
  padding: 14px; display: none;
}
#questPanel.on { display: block; }
#questPanel h3 { color: var(--cyan); font-size: 11px; margin-bottom: 10px; }
#questPanel ul { list-style: none; }
#questPanel li { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--dim); }
#questPanel li span { flex: 1; }
#questPanel li b { color: var(--text); font-weight: normal; }
#questPanel li i { color: var(--gold); font-style: normal; }
#questPanel li.done { color: var(--faint); text-decoration: line-through; }
#questPanel li.done b { color: var(--green); text-decoration: none; }

/* fishing */
#fishing {
  bottom: 140px; left: 50%; transform: translateX(-50%);
  width: min(420px, 86vw); display: none; text-align: center;
}
#fishing.on { display: block; }
#fishing .label { font-family: var(--font-head); font-size: 10px; color: var(--cyan); margin-bottom: 8px; text-shadow: 0 2px 0 #000; }
#fishing .track { position: relative; height: 26px; background: rgba(11,15,28,.9); box-shadow: 0 0 0 2px var(--line2); }
#fishing .zone { position: absolute; top: 0; bottom: 0; background: rgba(53,240,208,.45); box-shadow: inset 0 0 0 2px var(--cyan); }
#fishing .cursor { position: absolute; top: -4px; bottom: -4px; width: 6px; margin-left: -3px; background: var(--gold); box-shadow: 0 0 0 2px #2e2205; }

/* menu / tier select */
#menu {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(7,10,20,.82);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  overflow-y: auto;
}
#menu.off { display: none; }
#menu .panel { max-width: 780px; width: 100%; background: var(--panel); box-shadow: 0 0 0 3px var(--line), 0 14px 0 rgba(0,0,0,.4); padding: 30px 26px; text-align: center; }
#menu h1 { font-size: 18px; margin-bottom: 6px; }
#menu h1 span { color: var(--cyan); }
#menu .sub2 { color: var(--dim); margin-bottom: 22px; font-size: 20px; }
#menu .tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 760px) { #menu .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { #menu .tiers { grid-template-columns: 1fr; } }
.tsel { background: var(--bg2); box-shadow: 0 0 0 2px var(--line); padding: 14px 10px; cursor: pointer; transition: transform .1s steps(2); }
.tsel:hover { transform: translateY(-2px); }
.tsel.sel { box-shadow: 0 0 0 3px var(--cyan); }
.tsel canvas { width: 96px; height: 96px; }
.tsel { position: relative; }
.tsel.locked { opacity: .38; cursor: not-allowed; }
.tsel.locked:hover { transform: none; }
.tsel .own { font-family: var(--font-head); font-size: 8px; margin-top: 8px; color: var(--gold); }
.tsel.locked .own { color: var(--faint); }
.gate-demo { margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--line); }
.gate-status { margin-top: 14px; font-size: 18px; color: var(--dim); min-height: 24px; }
.gate-status.err { color: var(--red); }
.gate-status.ok { color: var(--green); }
.gate-msg { color: var(--dim); margin: 16px 0 12px; font-size: 20px; }
.gate-alt { color: var(--faint); margin: 18px 0 10px; font-size: 17px; }
#claimTx { width: 330px; max-width: 100%; font-size: 16px; }
#claimTier, #claimQty {
  font-family: var(--font-body); font-size: 18px; color: var(--text);
  background: var(--bg2); border: 0; box-shadow: 0 0 0 2px var(--line);
  padding: 10px 8px;
}
#claimQty { width: 70px; text-align: center; }
.tsel .nm { font-family: var(--font-head); font-size: 10px; margin-top: 6px; }
.tsel .x { font-size: 18px; color: var(--gold); }
.tsel .d { font-size: 16px; color: var(--faint); }
#menu .row2 { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
#menu input {
  font-family: var(--font-body); font-size: 22px; color: var(--text);
  background: var(--bg2); border: 0; box-shadow: 0 0 0 2px var(--line);
  padding: 10px 14px; width: 200px; text-align: center;
}
#menu input:focus { outline: none; box-shadow: 0 0 0 2px var(--cyan); }
#menu .note { margin-top: 16px; color: var(--faint); font-size: 17px; }
#menu .note b { color: var(--gold); font-weight: normal; }

/* touch controls */
#touch { display: none; }
body.touch #touch { display: block; }
#dpad { position: absolute; left: 18px; bottom: 24px; width: 150px; height: 150px; z-index: 12; }
#dpad button {
  position: absolute; width: 50px; height: 50px; border: 0;
  background: rgba(18,24,41,.75); box-shadow: 0 0 0 2px var(--line);
  color: var(--dim); font-size: 20px; font-family: var(--font-body);
  touch-action: none;
}
#dpad .up { left: 50px; top: 0; } #dpad .down { left: 50px; bottom: 0; }
#dpad .left { left: 0; top: 50px; } #dpad .right { right: 0; top: 50px; }
#btnE {
  position: absolute; right: 24px; bottom: 44px; width: 76px; height: 76px; z-index: 12;
  border: 0; background: rgba(53,240,208,.85); color: #06231e;
  font-family: var(--font-head); font-size: 18px;
  box-shadow: 0 0 0 3px var(--cyan-d), 0 6px 0 rgba(0,0,0,.4);
  touch-action: none;
}
#btnE:active { transform: translateY(3px); }

/* back link on game/mint pages */
.backlink { position: absolute; z-index: 20; top: 12px; left: 50%; transform: translateX(-50%); font-size: 17px; color: var(--faint); }
.backlink:hover { color: var(--cyan); }

/* grove chat */
#chatPanel {
  left: 12px; bottom: 12px; width: 300px; max-width: 84vw;
  background: rgba(11,15,28,.90); box-shadow: 0 0 0 2px var(--line);
  display: none; flex-direction: column;
}
#chatPanel.on { display: flex; }
#chatPanel .chat-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-bottom: 2px solid var(--line);
  font-family: var(--font-head); font-size: 9px; color: var(--cyan);
}
#chatPanel .chat-head b { margin-left: auto; color: var(--faint); font-weight: normal; font-family: var(--font-body); font-size: 15px; }
#chatPanel .chat-head button { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 18px; font-family: var(--font-body); padding: 0 2px; }
#chatPanel .chat-head button:hover { color: var(--red); }
#chatLog { height: 132px; overflow-y: auto; padding: 8px 10px; font-size: 17px; line-height: 1.3; scrollbar-width: thin; }
#chatLog .cm { margin-bottom: 3px; word-break: break-word; color: var(--dim); }
#chatLog .cm .nm { margin-right: 6px; }
#chatLog .cm .nm.t-sprout { color: var(--green); }
#chatLog .cm .nm.t-warden { color: var(--cyan); }
#chatLog .cm .nm.t-ancient { color: var(--violet); }
#chatLog .cm .nm.t-eternal { color: var(--gold); }
#chatLog .cm.me .nm { text-decoration: underline; }
#chatForm { display: flex; border-top: 2px solid var(--line); }
#chatForm input {
  flex: 1; min-width: 0; background: var(--bg2); border: 0; padding: 9px 10px;
  font-family: var(--font-body); font-size: 17px; color: var(--text);
}
#chatForm input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cyan); }
#chatForm button { width: 40px; background: var(--panel2); border: 0; color: var(--cyan); cursor: pointer; font-size: 16px; }
#chatForm button:hover { background: var(--line); }
body.touch #chatPanel { bottom: 200px; width: 260px; }
body.touch #chatLog { height: 100px; }

/* narrow screens: stack the HUD, drop the backlink */
@media (max-width: 700px) {
  .backlink { display: none; }
  .hud-balance { padding: 6px 10px 6px 6px; gap: 7px; }
  .hud-balance .val { font-size: 10px; }
  .hud-balance .rate { font-size: 14px; }
  .hud-right { flex-direction: column; align-items: flex-end; }
  .hud-right .tierbox span { font-size: 14px; }
  #prompt { bottom: 190px; }
  #toastStack { top: 110px; }
  #eventBanner { top: auto; bottom: 244px; font-size: 9px; padding: 8px 12px; max-width: 92vw; white-space: normal; text-align: center; }
  #topPanel { top: 96px; }
}

/* ============================================================
   MINT PAGE
   ============================================================ */
.mint-wrap { max-width: 1060px; margin: 0 auto; padding: 120px 22px 80px; }
.mint-head { text-align: center; margin-bottom: 40px; }
.mint-head .logo-cv { width: min(360px, 80vw); }
.mint-head p { color: var(--dim); font-size: 22px; margin-top: 10px; }
.mint-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
@media (max-width: 500px) { .mint-grid { grid-template-columns: 1fr; } }
.mint-card { padding: 24px 20px; text-align: center; cursor: pointer; }
.mint-card.sel { box-shadow: 0 -4px 0 0 var(--cyan), 0 4px 0 0 var(--cyan), -4px 0 0 0 var(--cyan), 4px 0 0 0 var(--cyan); }
.mint-card .pic { width: 132px; height: 132px; margin: 0 auto 12px; background: var(--bg2); box-shadow: inset 0 0 0 2px var(--line); display: flex; align-items: center; justify-content: center; }
.mint-card canvas { width: 128px; height: 128px; }
.mint-card .price { font-family: var(--font-head); font-size: 13px; color: var(--gold); margin: 10px 0 4px; }
.mint-card .yield2 { color: var(--cyan); font-size: 18px; }
.supply { margin-top: 12px; }
.supply .bar { height: 14px; background: var(--bg2); box-shadow: inset 0 0 0 2px var(--line); }
.supply .fill { height: 100%; background: var(--green); }
.supply span { font-size: 16px; color: var(--faint); }
.mint-panel { margin-top: 30px; padding: 26px; text-align: center; }
.mint-panel .qty { display: inline-flex; align-items: center; gap: 0; margin: 14px 0; }
.mint-panel .qty button { width: 44px; height: 44px; font-family: var(--font-head); font-size: 14px; background: var(--panel2); color: var(--text); border: 0; box-shadow: 0 0 0 2px var(--line); cursor: pointer; }
.mint-panel .qty b { width: 70px; font-family: var(--font-head); font-size: 16px; }
.mint-panel .total { font-size: 22px; color: var(--dim); margin-bottom: 16px; }
.mint-panel .total b { color: var(--gold); font-weight: normal; }
#mintStatus { margin-top: 14px; font-size: 19px; color: var(--dim); min-height: 26px; }
#mintStatus.err { color: var(--red); }
#mintStatus.ok { color: var(--green); }

/* scanline flavor on hero + game (no blend mode — it janks mobile GPUs) */
.scanlines::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 1px, transparent 1px 3px);
}
@media (prefers-reduced-motion: reduce) {
  .px-border--lift, .btn { transition: none; }
}

/* notched phones (viewport-fit=cover on the game page) */
.hud-balance { top: calc(12px + env(safe-area-inset-top, 0px)); left: calc(12px + env(safe-area-inset-left, 0px)); }
.hud-right { top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
#dpad { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); left: calc(18px + env(safe-area-inset-left, 0px)); }
#btnE { bottom: calc(44px + env(safe-area-inset-bottom, 0px)); right: calc(24px + env(safe-area-inset-right, 0px)); }
body.touch #chatPanel { bottom: calc(200px + env(safe-area-inset-bottom, 0px)); }

/* small-screen breathing room */
@media (max-width: 640px) {
  .section { padding: 56px 18px; }
  h2 { font-size: 17px; }
  .section p.lead { font-size: 21px; }
  .mint-wrap { padding: 96px 16px 56px; }
  .strip { gap: 18px; padding: 16px 10px; }
  .hero .tag { font-size: 22px; }
  #menu .panel { padding: 22px 14px; }
}
