* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }

:root {
  --panel: #c6c6c6;
  --panel-dark: #8b8b8b;
  --panel-light: #ffffff;
  --slot: #8b8b8b;
}

html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
body { font-family: 'VT323', monospace; font-size: 20px; color: #fff; }

#game { position: fixed; inset: 0; display: block; }

.hidden { display: none !important; }

.screen {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; }

#crosshair {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%);
  font-size: 26px; color: rgba(255,255,255,0.85); text-shadow: 0 0 3px #000;
  mix-blend-mode: difference;
}

#hudBottom {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}

#statusRow { display: flex; justify-content: space-between; width: 424px; }
#hearts, #food, #bubbles { display: flex; gap: 1px; }
#food { flex-direction: row-reverse; }
#bubbles { width: 424px; justify-content: flex-start; min-height: 20px; }
.heart, .bubble, .drum { font-size: 20px; text-shadow: 1px 1px 0 #000; line-height: 1; }
.heart { color: #e8271f; }
.heart.half { opacity: 0.9; }
.heart.empty { color: #3a3a3a; }
.drum { filter: saturate(1.1); }
.drum.half { opacity: 0.75; }
.drum.empty { filter: grayscale(1) brightness(0.4); opacity: 0.85; }
.bubble { color: #6fb8ff; }

#hotbar { display: flex; gap: 0; background: rgba(0,0,0,0.35); padding: 2px; border: 2px solid rgba(0,0,0,0.6); }
.hotbar-slot { width: 44px; height: 44px; }
.hotbar-slot.selected { outline: 3px solid #fff; outline-offset: -1px; z-index: 2; }

#itemTip {
  position: absolute; bottom: 78px; left: 50%; transform: translateX(-50%);
  font-size: 22px; text-shadow: 2px 2px 0 #000; opacity: 0; transition: opacity .4s;
  pointer-events: none;
}

#debug {
  position: absolute; top: 8px; left: 8px; font-size: 18px; line-height: 1.25;
  background: rgba(0,0,0,0.45); padding: 6px 10px; white-space: pre;
}

#waterOverlay { position: absolute; inset: 0; background: rgba(20, 60, 160, 0.28); }
#hurtOverlay { position: absolute; inset: 0; background: rgba(200, 0, 0, 0.35); opacity: 0; transition: opacity .12s; }

/* ---------- slots ---------- */
.slot {
  width: 44px; height: 44px; position: relative;
  background: var(--slot);
  border-top: 2px solid #545454; border-left: 2px solid #545454;
  border-bottom: 2px solid #fefefe; border-right: 2px solid #fefefe;
  image-rendering: pixelated;
  pointer-events: auto;
}
.slot img { width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.slot .count {
  position: absolute; right: 2px; bottom: 0; font-size: 19px; color: #fff;
  text-shadow: 2px 2px 0 #3f3f3f; pointer-events: none;
}
.slot .durbar {
  position: absolute; left: 4px; right: 4px; bottom: 4px; height: 3px; background: #2b2b2b;
}
.slot .durbar div { height: 100%; }
.slot.result { width: 52px; height: 52px; }

/* ---------- modal ---------- */
#modal { background: rgba(0,0,0,0.5); }
#modalPanel {
  background: var(--panel);
  border-top: 3px solid var(--panel-light); border-left: 3px solid var(--panel-light);
  border-bottom: 3px solid #555; border-right: 3px solid #555;
  padding: 14px 18px; color: #3f3f3f; min-width: 460px;
}
#modalPanel h2 { font-size: 24px; margin-bottom: 8px; font-weight: normal; }
#modalPanel .hint { font-size: 16px; color: #5a5a5a; margin-top: 8px; }

.inv-grid { display: grid; grid-template-columns: repeat(9, 44px); gap: 2px; margin-top: 10px; }
.inv-grid.hotrow { margin-top: 12px; }
.creative-grid { max-height: 320px; overflow-y: auto; pointer-events: auto; }

.craft-area { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.craft-grid { display: grid; gap: 2px; }
.craft-grid.w2 { grid-template-columns: repeat(2, 44px); }
.craft-grid.w3 { grid-template-columns: repeat(3, 44px); }
.arrow { font-size: 30px; color: #5a5a5a; }

.furnace-area { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.furnace-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.flame { width: 22px; height: 22px; background: #3f3f3f; position: relative; display: flex; align-items: flex-end; }
.flame-fill { width: 100%; background: linear-gradient(#ffc14d, #e25822); height: 0%; }
.smelt-progress { width: 70px; height: 14px; background: #3f3f3f; }
.smelt-fill { height: 100%; width: 0%; background: #fff; }

#cursorStack {
  position: fixed; z-index: 60; width: 40px; height: 40px; pointer-events: none;
  transform: translate(-50%, -50%);
}
#cursorStack img { width: 100%; height: 100%; image-rendering: pixelated; }
#cursorStack .count { position: absolute; right: -2px; bottom: -4px; font-size: 19px; text-shadow: 2px 2px 0 #3f3f3f; }

/* ================================================================
   ANSEMCRAFT — site (title screen): topbar nav · views · bottombar
   Black Bull theme: pure black + neon green + white/grey.
   (var names kept from the gold era — values are the green palette)
   ================================================================ */
:root {
  --ink: #050505;
  --gold: #3aff47;
  --gold-bright: #7dff85;
  --gold-pale: #c8ffcc;
  --gold-deep: #1fd12f;
  --gold-dark: #0c6e18;
  --cream: #f2f2f2;
  --cream-dim: #c7c7c7;
  --muted: #8f8f8f;
  --warn: #ffb347;
  --bull-red: #ff3b30;
  --card: rgba(6, 6, 6, 0.88);
  --card-line: rgba(58, 255, 71, 0.3);
  --hairline: rgba(58, 255, 71, 0.15);
  --box-line: #1d2b1d;
}

#titleScreen {
  flex-direction: column; justify-content: flex-start; align-items: stretch;
  overflow: hidden;
  background:
    linear-gradient(rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.3) 30%, rgba(5,5,5,0.3) 70%, rgba(5,5,5,0.62) 100%),
    radial-gradient(ellipse at 50% 44%, rgba(5,5,5,0.12) 0%, rgba(5,5,5,0.5) 100%);
}

/* ---- top bar ---- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 24px; flex: none;
  background: linear-gradient(rgba(5,5,5,0.92), rgba(5,5,5,0.65));
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(8px);
}
.tb-brand {
  display: flex; align-items: center; gap: 11px; flex: none;
  background: none; border: none; cursor: pointer; padding: 4px 6px 4px 0;
}
.tb-brand img { display: block; border-radius: 8px; border: 1px solid var(--hairline); }
.tb-brand span {
  font-family: 'Press Start 2P', monospace; font-size: 12px; letter-spacing: 1px;
  color: var(--gold); text-shadow: 0 2px 0 rgba(0,0,0,0.6);
}
.tb-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tb-nav::-webkit-scrollbar { display: none; }
.nav-link {
  font-family: 'Press Start 2P', monospace; font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase; white-space: nowrap;
  color: var(--cream-dim); background: transparent; cursor: pointer;
  border: 1px solid transparent; border-radius: 7px; padding: 10px 13px;
  transition: color .12s, background .12s, border-color .12s;
}
.nav-link:hover { color: var(--gold-bright); background: rgba(58,255,71,0.07); }
.nav-link.active { color: var(--gold); border-color: var(--card-line); background: rgba(58,255,71,0.09); }
.nav-link:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 1px; }
.tb-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.tb-buy {
  font-family: 'VT323', monospace; font-size: 19px; text-decoration: none; flex: none;
  color: var(--gold-bright); padding: 6px 16px; border-radius: 8px;
  border: 1px solid var(--card-line); background: rgba(58,255,71,0.07);
  transition: background .12s, border-color .12s;
}
.tb-buy:hover { background: rgba(58,255,71,0.15); border-color: rgba(58,255,71,0.55); }
.tb-x {
  font-size: 16px; line-height: 1; text-decoration: none; flex: none;
  color: var(--cream); padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--card-line); background: rgba(58,255,71,0.07);
  transition: background .12s, border-color .12s, color .12s;
}
.tb-x:hover { background: rgba(58,255,71,0.15); border-color: rgba(58,255,71,0.55); color: var(--gold-bright); }
.bb-x { color: var(--gold); text-decoration: none; }
.bb-x:hover { color: var(--gold-bright); text-decoration: underline; }

/* ---- views ---- */
.views { flex: 1; min-height: 0; display: flex; }
.view { flex: 1; min-width: 0; overflow-y: auto; padding: 34px 18px 46px; }
.view[hidden] { display: none !important; }
.view-center { display: flex; align-items: center; justify-content: center; padding: 20px 16px; }

.page { width: min(920px, 100%); margin: 0 auto; }
.page-wide { width: min(1080px, 100%); }
.page-panel {
  background: var(--card);
  border: 1px solid var(--card-line); border-radius: 16px;
  padding: 26px 30px 28px;
  backdrop-filter: blur(10px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.sec-label {
  font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px;
}
.page-title {
  font-family: 'Press Start 2P', monospace; font-weight: normal;
  font-size: 18px; letter-spacing: 1px; color: var(--gold);
  text-shadow: 0 3px 0 rgba(0,0,0,0.6); margin-bottom: 10px;
}
.page-sub { font-size: 18px; line-height: 1.4; color: var(--muted); margin-bottom: 20px; max-width: 640px; }

/* ---- hero (Play view) ---- */
.hero { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.hero-badge {
  width: clamp(96px, 14vw, 132px); height: auto; border-radius: 20px;
  border: 1px solid var(--hairline);
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6)) drop-shadow(0 0 34px rgba(58,255,71,0.14));
}
.hero-name {
  font-family: 'Press Start 2P', monospace; font-weight: normal;
  font-size: clamp(26px, 4.4vw, 42px); letter-spacing: 3px; color: var(--cream);
  text-shadow: 0 4px 0 rgba(0,0,0,0.6), 0 0 40px rgba(58,255,71,0.16);
}
.hero-name .hn-accent { color: var(--gold); }
.hero-sub { font-size: 20px; color: var(--cream-dim); text-shadow: 1px 1px 0 rgba(0,0,0,0.7); max-width: 560px; }

/* ---- play card ---- */
.play-card {
  width: min(478px, 92vw); margin-top: 10px;
  display: flex; flex-direction: column; gap: 10px; text-align: left;
  background: var(--card);
  border: 1px solid var(--card-line); border-radius: 16px;
  padding: 20px 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
}

.status-row {
  display: flex; align-items: flex-start; gap: 11px;
  padding-bottom: 12px; margin-bottom: 2px;
  border-bottom: 1px solid var(--hairline);
}
.status-row .dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px;
  background: var(--gold); box-shadow: 0 0 10px rgba(58,255,71,0.8);
  animation: dotPulse 1.8s ease-in-out infinite;
}
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.status-row .dot.warn { background: var(--warn); box-shadow: 0 0 10px rgba(255,179,71,0.8); }
.status-row .dot.err { background: #ff5a4a; box-shadow: 0 0 10px rgba(255,90,74,0.8); }
.status-text { min-width: 0; }
.status-main { font-size: 18px; color: var(--cream); min-height: 20px; }
.status-main.ok { color: #58ff6a; text-shadow: 0 0 12px rgba(88,255,106,0.35); }
.status-main.err { color: #ff7a68; }
.status-sub { font-size: 15px; line-height: 1.35; color: var(--muted); margin-top: 2px; }

.alt-row { display: flex; gap: 10px; }
.alt-row .mc-input { flex: 1; min-width: 0; }
.alt-row .mc-btn { width: auto; flex: none; padding-left: 22px; padding-right: 22px; }

/* ---- contract address ---- */
.ca-sec { border-top: 1px solid var(--hairline); padding-top: 13px; margin-top: 4px; }
.ca-sec-clear { border-top: none; padding-top: 0; margin: 0 0 20px; }
.ca-label {
  font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 9px;
}
.ca-box {
  display: flex; align-items: center; gap: 8px;
  background: rgba(3, 3, 3, 0.85); border: 1px solid var(--box-line);
  border-radius: 9px; padding: 9px 12px;
}
.ca-box code {
  font-family: 'VT323', monospace; font-size: 18px; color: var(--cream-dim);
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  user-select: text;
}
.ca-note-link { color: var(--gold-bright); cursor: pointer; text-decoration: underline; }
.ca-note-link:hover { color: var(--gold); }
.ca-box button {
  flex: none; width: 32px; height: 32px; cursor: pointer;
  font-size: 16px; color: var(--gold-bright); line-height: 1;
  background: rgba(58,255,71,0.08); border: 1px solid var(--card-line); border-radius: 7px;
  transition: background .12s;
}
.ca-box button:hover { background: rgba(58,255,71,0.16); }
.ca-box button:disabled { opacity: 0.35; cursor: not-allowed; }
.ca-note { font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: 8px; }

.mobile-note {
  font-size: 15px; line-height: 1.4; color: var(--warn);
  background: rgba(255,179,71,0.06); border: 1px solid rgba(255,179,71,0.38);
  border-radius: 9px; padding: 9px 12px;
}
.linklike {
  background: none; border: none; cursor: pointer;
  font-family: 'VT323', monospace; font-size: 17px; color: var(--muted);
  text-align: center; padding: 2px; margin-top: 2px; transition: color .12s;
}
.linklike:hover { color: var(--gold-bright); }
.linklike:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; border-radius: 4px; }
.noscript-note {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--gold); color: #041104; font-family: monospace;
  text-align: center; padding: 12px;
}

/* ---- chunky voxel buttons (also used by pause/death) ---- */
.mc-btn {
  font-family: 'VT323', monospace; font-size: 22px; letter-spacing: 0.5px;
  color: var(--cream); text-align: center; text-decoration: none; display: block;
  padding: 10px 16px; width: 100%; cursor: pointer; border-radius: 9px;
  background: linear-gradient(#1e1e1e 0%, #121212 100%);
  border: 2px solid #000;
  box-shadow: 0 4px 0 #000, inset 0 1px 0 rgba(255,255,255,0.08);
  transition: filter .12s, transform .06s, box-shadow .06s;
}
.mc-btn:hover { filter: brightness(1.3); }
.mc-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #000, inset 0 1px 0 rgba(255,255,255,0.08);
}
.mc-btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

.mc-btn.primary {
  color: #041104; text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  background: linear-gradient(#6dff70 0%, #2ce03e 100%);
  border-color: var(--gold-dark);
  box-shadow: 0 4px 0 var(--gold-dark), inset 0 1px 0 rgba(255,255,255,0.45);
}
.mc-btn.primary:hover { filter: brightness(1.07) saturate(1.05); }
.mc-btn.primary:active { box-shadow: 0 1px 0 var(--gold-dark), inset 0 1px 0 rgba(255,255,255,0.45); }

.mc-btn.primary.big {
  font-family: 'Press Start 2P', monospace; font-size: 16px; letter-spacing: 4px;
  text-transform: uppercase; padding: 17px 16px; border-radius: 11px;
}

.mc-btn.ghost {
  background: rgba(58, 255, 71, 0.07);
  border-color: rgba(58, 255, 71, 0.4);
  color: var(--gold-bright);
  box-shadow: 0 4px 0 rgba(0,0,0,0.45);
}
.mc-btn.ghost:hover { background: rgba(58, 255, 71, 0.14); filter: none; }
.mc-btn.ghost:active { box-shadow: 0 1px 0 rgba(0,0,0,0.45); }

.mc-btn.gold-edge { border-color: rgba(58,255,71,0.55); }

.mc-btn:disabled {
  cursor: not-allowed; opacity: 0.42; filter: grayscale(0.5);
}
.mc-btn:disabled:hover { filter: grayscale(0.5); }
.mc-btn:disabled:active { transform: none; }

.mc-input {
  font-family: 'VT323', monospace; font-size: 21px; color: var(--cream);
  background: rgba(8, 8, 8, 0.85); border: 2px solid #232323; border-radius: 9px;
  padding: 9px 14px; outline: none; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.mc-input::placeholder { color: #6f6f6f; }
.mc-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(58,255,71,0.18); }

/* ---- keycaps ---- */
.keycap {
  display: inline-block; font-family: 'VT323', monospace; font-weight: normal; font-style: normal;
  color: var(--gold-bright); font-size: 16px;
  background: #101010; padding: 0 7px; margin: 0 2px;
  border: 1px solid #262626; border-bottom-width: 3px; border-radius: 5px;
  line-height: 1.5;
}

/* ---- high scores (local records) ---- */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.rec-card {
  background: rgba(8, 8, 8, 0.7); border: 1px solid var(--box-line);
  border-radius: 12px; padding: 14px 16px;
}
.rec-label {
  font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px;
}
.rec-value { font-size: 27px; color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-empty { text-align: center; padding: 26px 0 10px; font-size: 21px; color: var(--cream-dim); }
.rec-empty-sub { font-size: 16px; color: var(--muted); margin-top: 6px; }
.rec-play-btn { width: auto; margin: 18px auto 0; padding-left: 34px; padding-right: 34px; }
#recNote { margin-top: 14px; }

/* ---- wiki ---- */
.wiki-wrap { display: flex; gap: 26px; align-items: flex-start; }
.wiki-side { flex: none; width: 200px; display: flex; flex-direction: column; gap: 3px; position: sticky; top: 0; }
.wiki-link {
  font-family: 'VT323', monospace; font-size: 19px; text-align: left;
  color: var(--cream-dim); background: transparent; cursor: pointer;
  border: 1px solid transparent; border-radius: 8px; padding: 7px 12px;
  transition: color .12s, background .12s, border-color .12s;
}
.wiki-link:hover { color: var(--gold-bright); background: rgba(58,255,71,0.06); }
.wiki-link.active { color: var(--gold); background: rgba(58,255,71,0.09); border-color: var(--card-line); }
.wiki-content { flex: 1; min-width: 0; }
.wiki-art h3 {
  font-family: 'Press Start 2P', monospace; font-weight: normal;
  font-size: 12px; letter-spacing: 1px; color: var(--gold-bright);
  margin-bottom: 14px; line-height: 1.6;
}
.wiki-art h4 {
  font-family: 'Press Start 2P', monospace; font-weight: normal; font-size: 9px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 9px;
}
.wiki-art p { font-size: 18px; line-height: 1.5; color: var(--cream-dim); margin-bottom: 12px; }
.wiki-art b { color: var(--cream); font-weight: normal; }
.wiki-steps, .wiki-list { margin: 4px 0 0 22px; display: flex; flex-direction: column; gap: 9px; }
.wiki-steps li, .wiki-list li { font-size: 18px; line-height: 1.45; color: var(--cream-dim); }
.wiki-tip {
  margin-top: 14px; padding: 10px 14px; font-size: 16px;
  background: rgba(58,255,71,0.05); border-left: 3px solid var(--gold-dark); border-radius: 0 8px 8px 0;
}

.ctl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 26px; }
.control-group { min-width: 0; }
.control-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 17px; color: var(--cream-dim); padding: 4px 0;
  border-bottom: 1px solid rgba(58,255,71,0.08);
}
.control-row > span:last-child { text-align: right; }

/* ---- tables ---- */
.wtab { width: 100%; border-collapse: collapse; margin: 6px 0 4px; }
.wtab th {
  font-family: 'Press Start 2P', monospace; font-weight: normal; font-size: 8px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold-deep);
  text-align: left; padding: 7px 10px 7px 2px; border-bottom: 1px solid var(--card-line);
}
.wtab td {
  font-size: 17px; color: var(--cream-dim); padding: 7px 10px 7px 2px;
  border-bottom: 1px solid rgba(58,255,71,0.08); line-height: 1.35;
}
.wtab td b { color: var(--cream); font-weight: normal; }
.wtab-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0 30px; align-items: start; }

/* ---- news ---- */
.news-item { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.news-item:last-child { border-bottom: none; padding-bottom: 4px; }
.news-date {
  font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px;
}
.news-item h3 {
  font-size: 24px; font-weight: normal; color: var(--cream); margin-bottom: 6px; line-height: 1.2;
}
.news-item p { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 700px; }

/* ---- token page ---- */
.tok-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.tok-step {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 18px; line-height: 1.45; color: var(--cream-dim);
  background: rgba(8, 8, 8, 0.65); border: 1px solid var(--box-line);
  border-radius: 12px; padding: 13px 16px;
}
.tok-step b { color: var(--cream); font-weight: normal; }
.tok-num {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Press Start 2P', monospace; font-size: 11px; color: #041104;
  background: linear-gradient(#6dff70, #2ce03e);
  box-shadow: 0 2px 0 var(--gold-dark);
}
.tok-buy { width: auto; display: inline-block; padding-left: 30px; padding-right: 30px; }
.airdrop-sec { border-top: 1px solid var(--hairline); padding-top: 16px; margin: 6px 0 20px; }
.tok-sub {
  font-family: 'Press Start 2P', monospace; font-weight: normal;
  font-size: 11px; letter-spacing: 1px; color: var(--gold-bright);
  margin-bottom: 12px; line-height: 1.6;
}
.tok-p { font-size: 18px; line-height: 1.5; color: var(--cream-dim); margin-bottom: 14px; max-width: 700px; }
.tok-p b { color: var(--cream); font-weight: normal; }

/* ---- airdrop countdown (big, token page) ---- */
.drop-timer {
  display: inline-block; text-align: center; margin: 0 0 18px;
  padding: 16px 30px; border-radius: 14px;
  background: radial-gradient(ellipse at 50% 0%, rgba(58,255,71,0.1), rgba(6,6,6,0.6));
  border: 1px solid var(--card-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 34px rgba(58,255,71,0.08);
}
.drop-timer-top { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 6px; }
.drop-timer-label {
  font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
}
.drop-timer-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px rgba(58,255,71,0.9);
  animation: dotPulse 1.6s ease-in-out infinite;
}
.drop-timer-clock {
  font-family: 'Press Start 2P', monospace; font-size: 34px; letter-spacing: 2px;
  color: var(--gold-bright); line-height: 1.1;
  text-shadow: 0 0 18px rgba(58,255,71,0.35), 0 3px 0 rgba(0,0,0,0.5);
  font-variant-numeric: tabular-nums;
}
.drop-timer-note { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---- airdrop countdown chip (compact, play card) ---- */
.drop-chip {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 2px; cursor: pointer;
  font-family: 'VT323', monospace; font-size: 18px; color: var(--cream-dim);
  background: rgba(58,255,71,0.05); border: 1px solid var(--hairline); border-radius: 9px;
  padding: 8px 12px; transition: background .12s, border-color .12s, color .12s;
}
.drop-chip:hover { background: rgba(58,255,71,0.1); border-color: var(--card-line); color: var(--cream); }
.drop-chip b {
  color: var(--gold-bright); font-weight: normal; font-variant-numeric: tabular-nums;
  min-width: 52px; text-align: left;
}
.drop-chip-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px rgba(58,255,71,0.8);
  animation: dotPulse 1.6s ease-in-out infinite;
}

/* ---- bottom bar ---- */
.bottombar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px 26px; flex: none;
  font-size: 15px; color: var(--muted);
  background: linear-gradient(rgba(5,5,5,0.5), rgba(5,5,5,0.85));
  border-top: 1px solid var(--hairline);
  backdrop-filter: blur(8px);
}
.ctl-line { color: var(--muted); }
.ctl-line b {
  display: inline-block; font-weight: normal; color: var(--gold-bright); font-size: 14px;
  background: #101010; padding: 0 6px; margin: 0 1px;
  border: 1px solid #262626; border-bottom-width: 2px; border-radius: 4px;
  line-height: 1.4;
}

/* ---------- pause / death (in-game, matches the theme) ---------- */
.panel {
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  min-width: 340px; padding: 28px 32px;
  background: var(--card);
  border: 1px solid var(--card-line); border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}
.panel h2 {
  font-family: 'Press Start 2P', monospace; font-size: 19px; font-weight: normal;
  color: var(--gold-bright); text-shadow: 0 3px 0 rgba(0,0,0,0.6);
  margin-bottom: 6px;
}
.panel .hint { font-size: 16px; color: var(--muted); min-height: 18px; }
#deathScreen { background: rgba(96, 8, 4, 0.5); }
.panel.death { border-color: rgba(255, 90, 74, 0.4); }
.panel.death h2 { color: #ff6b5e; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; }
  .tb-nav { order: 3; width: 100%; justify-content: flex-start; }
  .wiki-wrap { flex-direction: column; }
  .wiki-side { width: 100%; flex-direction: row; flex-wrap: wrap; position: static; }
  .ctl-cols { grid-template-columns: 1fr; }
  .wtab-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ctl-line { display: none; }
  .bottombar { justify-content: center; }
  .topbar { padding: 10px 14px; }
  .view { padding: 22px 12px 36px; }
  .page-panel { padding: 20px 18px 22px; }
  .play-card { padding: 16px 16px; }
  .tb-buy { display: none; }
}
@media (max-height: 760px) {
  .hero { gap: 8px; }
  .hero-badge { width: 84px; }
  .hero-sub { font-size: 18px; }
}
@media (max-height: 640px) {
  .hero-badge { display: none; }
}
