/* Ore Miner website. Colours and type come from the game itself:
   void, deep orbit, ore amber, ion cyan, nebula violet, starlight. */
:root {
  --void: #05060F;
  --orbit: #10173A;
  --panel: #1A2456;
  --panel-2: #2A3050;
  --star: #F1F2FA;
  --muted: #A3AAC4;
  --line: rgba(241, 242, 250, .14);
  --go: #3ECF8E;
  --violet: #5B3FA0;
  --danger: #FF6B6B;
  --accent: #F2A83C;
  --accent-rgb: 242, 168, 60;
  --glow: #4FD8E0;
  --accent-ink: #05060F;
  --accent-text: #F2A83C;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--void); color: var(--star);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--accent-text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, canvas, svg { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--star); color: var(--void); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* The sky: the game's radial glow in the current system's colour, plus stars. */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 75% at 50% 0%, rgba(var(--accent-rgb), .30) 0%, var(--orbit) 42%, var(--void) 100%); }
.sky canvas { width: 100%; height: 100%; display: block; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.band { padding-block: clamp(64px, 9vw, 120px); }
.band-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 48px); }
.band-head h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.band-head p { color: var(--muted); margin-top: 14px; font-size: 1.06rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 12px; border: 1.5px solid transparent;
  font: 700 1rem/1.1 var(--display); text-decoration: none; text-align: center;
  background: var(--accent); color: var(--accent-ink);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: rgba(241, 242, 250, .06); color: var(--star); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-text); filter: none; }
.btn-go { background: var(--go); color: var(--void); }
.btn-small { min-height: 42px; padding: 8px 16px; font-size: .92rem; border-radius: 10px; }
.btn[aria-disabled="true"] { background: var(--panel-2); color: var(--muted); cursor: default; border-color: var(--line); }
.btn[aria-disabled="true"]:hover { filter: none; }
.btn[aria-disabled="true"]:active { transform: none; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(5, 6, 15, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.2rem var(--display); color: var(--star); text-decoration: none; margin-right: auto; }
.brand svg { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { display: block; padding: 10px 14px; border-radius: 10px; color: var(--star); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { background: rgba(241, 242, 250, .08); }
.nav-links a[aria-current="page"] { color: var(--accent-text); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(241, 242, 250, .06); border: 1px solid var(--line); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--star); border-radius: 2px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px var(--gutter) 18px; background: rgba(5, 6, 15, .97); border-bottom: 1px solid var(--line); }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
  .nav-links .btn { margin-top: 6px; }
}

/* Hero */
.store-soon .hero-cta .btn-ghost { order: -1; background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.store-soon .hero-cta .btn-ghost:hover { filter: brightness(1.08); }
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(48px, 7vw, 96px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); letter-spacing: -.03em; }
.hero h1 span { display: block; }
.hero-lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: #D5D9EC; max-width: 34rem; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 36px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero-facts strong { display: block; font: 700 1.6rem/1.1 var(--display); color: var(--accent-text); }
.hero-phone { justify-self: center; }
.hero-phone-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 14px; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- The phone and the game screen ---------- */
.phone { width: 348px; max-width: 100%; height: 700px; padding: 10px; border-radius: 46px; background: #0B0E1F;
  box-shadow: 0 0 0 1.5px rgba(241, 242, 250, .22), 0 0 0 7px #05060F, 0 30px 80px -20px rgba(var(--accent-rgb), .55); }
.phone-game { width: 100%; height: 100%; border-radius: 37px; overflow: hidden; }
.g-screen { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; color: var(--star);
  background: radial-gradient(130% 80% at 50% 30%, rgba(var(--accent-rgb), .36) 0%, var(--orbit) 46%, var(--void) 100%); font-family: var(--body); }
.g-topzone { display: flex; flex-direction: column; align-items: center; padding: 34px 16px 10px; text-align: center; flex: none; position: relative; }
.g-system { font-size: .7rem; letter-spacing: .08em; color: var(--accent-text); order: 5; margin-top: 2px; }
.g-ore { font: 700 2.25rem/1.05 var(--display); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.g-rate { font-size: .85rem; color: var(--glow); margin-top: 2px; }
.g-combo { height: 20px; font: 700 .85rem/20px var(--display); color: #F2A83C; opacity: 0; transition: opacity .2s; margin-top: 4px; }
.g-combo.is-on { opacity: 1; }
.g-mine { width: 168px; height: 168px; padding: 0; border: 0; border-radius: 50%; background: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .1s ease; user-select: none; }
.g-mine canvas { width: 168px; height: 168px; display: block; pointer-events: none; }
.g-mine:active { transform: scale(1.07); }
.g-hint { height: 18px; margin-top: 4px; font-size: .78rem; line-height: 18px; color: var(--star); pointer-events: none; animation: hintpulse 1.6s ease-in-out infinite; }
.g-hint.is-off { visibility: hidden; animation: none; }
@keyframes hintpulse { 50% { opacity: .35; } }
.g-cores { font-size: .76rem; color: var(--muted); order: 6; margin-top: 3px; }
.g-launch { order: 7; margin-top: 10px; min-height: 40px; padding: 8px 18px; border: 0; border-radius: 20px; background: var(--violet); color: var(--star); font: 700 .74rem var(--display); letter-spacing: .03em; }
.g-launch:disabled { background: #4A4E63; color: #B4BAD0; cursor: default; }
.g-row { order: 8; display: flex; gap: 8px; margin-top: 10px; }
.g-chip { position: relative; min-height: 36px; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(26, 36, 86, .8); color: var(--star); font-size: .74rem; font-weight: 500; }
.g-chip:hover { border-color: var(--accent-text); }
.g-badge { display: inline-block; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 6px; border-radius: 10px; background: #F2A83C; color: var(--void); font: 700 .72rem/20px var(--display); text-align: center; vertical-align: middle; }
.g-badge-green { background: var(--go); }
.g-uphead { flex: none; margin: 4px 14px 6px; font: 700 .95rem var(--display); }
.g-upgrades { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 14px; display: flex; flex-direction: column; gap: 7px; scrollbar-width: thin; scrollbar-color: #4A4E63 transparent; }
.g-up { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-radius: 12px; background: rgba(26, 36, 86, .82); border: 1px solid rgba(241, 242, 250, .08); }
.g-upinfo { flex: 1; min-width: 0; font-size: .74rem; line-height: 1.35; }
.g-upinfo strong { display: block; font-size: .8rem; font-weight: 600; }
.g-upinfo span { color: var(--muted); }
.g-buy { flex: none; min-width: 58px; min-height: 38px; padding: 6px 12px; border: 0; border-radius: 8px; background: var(--go); color: var(--void); font: 700 .8rem var(--display); }
.g-buy:disabled { background: #4A4E63; color: #B4BAD0; cursor: default; }
.g-buy:not(:disabled):active { transform: scale(.94); }
.g-particle { position: absolute; z-index: 3; pointer-events: none; color: var(--go); font: 700 .85rem var(--display); transform: translate(-50%, -50%); animation: rise .7s ease-out forwards; }
@keyframes rise { to { transform: translate(calc(-50% + var(--drift, 0px)), -90px); opacity: 0; } }
.g-toast { position: absolute; left: 50%; top: 6px; z-index: 4; transform: translate(-50%, -8px); white-space: nowrap; max-width: 92%; padding: 3px 12px; border-radius: 999px; background: rgba(5, 6, 15, .92); border: 1px solid #F2A83C; color: #F2A83C; font: 700 .7rem var(--display); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: center; }
.g-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.g-dialog { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(5, 6, 15, .72); }
.g-card { width: 100%; max-height: 100%; display: flex; flex-direction: column; padding: 20px 18px 16px; border-radius: 18px; background: var(--panel); border: 1.5px solid #F2A83C; }
.g-card h3 { font-size: 1.05rem; color: #F2A83C; margin-bottom: 12px; }
.g-text p { font-size: .88rem; line-height: 1.5; margin-bottom: 10px; }
.g-list { overflow-y: auto; display: flex; flex-direction: column; gap: 7px; min-height: 0; }
.g-item { padding: 9px 12px; border-radius: 10px; background: rgba(5, 6, 15, .35); font-size: .76rem; line-height: 1.4; }
.g-item strong { display: block; font-size: .82rem; color: var(--muted); }
.g-item.is-done strong { color: var(--go); }
.g-item span { display: block; }
.g-item-row { display: flex; align-items: center; gap: 10px; }
.g-item-row > div { flex: 1; min-width: 0; }
.g-item-row strong { color: var(--star); }
.g-item-row span { color: var(--muted); }
.g-note { font-size: .74rem; color: var(--muted); padding-top: 4px; }
.g-cardfoot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; flex: none; }
.g-dbtn { min-height: 42px; padding: 9px 20px; border: 0; border-radius: 10px; background: var(--go); color: var(--void); font: 700 .84rem var(--display); text-decoration: none; display: inline-flex; align-items: center; }
.g-dbtn.is-quiet { background: #4A4E63; color: var(--star); }
@media (max-width: 420px) {
  .phone { width: 100%; height: 680px; border-radius: 34px; padding: 8px; }
  .phone-game { border-radius: 27px; }
}

/* How a run goes: a real sequence, so it is numbered. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 26px 26px 6px 0; position: relative; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font: 700 3.4rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--accent-text); margin-bottom: 18px; }
.steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0 18px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}

/* The route: ten systems, each in its own colour. */
.route { list-style: none; margin: 0; padding: 14px 4px 18px; display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #4A4E63 transparent; }
.route li { flex: 1 0 104px; position: relative; scroll-snap-align: center; }
.route li + li::before { content: ""; position: absolute; top: 27px; right: 50%; width: 100%; height: 2px; background: linear-gradient(90deg, var(--from), var(--dot)); opacity: .55; }
.route button { position: relative; width: 100%; padding: 6px 4px 8px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; line-height: 1.25; font-weight: 500; border-radius: 12px; }
.route i { display: block; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff 0%, var(--dot) 28%, rgba(5, 6, 15, .85) 120%); box-shadow: 0 0 0 4px var(--void), 0 0 0 5px rgba(241, 242, 250, .16); transition: transform .15s ease, box-shadow .15s ease; }
.route button:hover i { transform: scale(1.08); }
.route button[aria-pressed="true"] { color: var(--star); }
.route button[aria-pressed="true"] i { transform: scale(1.18); box-shadow: 0 0 0 4px var(--void), 0 0 0 6px var(--dot), 0 0 28px 4px var(--dot); }
.route small { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; }
.system-panel { margin-top: 18px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(22px, 3.5vw, 40px); border-radius: 22px; border: 1px solid rgba(var(--accent-rgb), .45); background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(26, 36, 86, .55) 55%); }
.system-panel canvas { width: 200px; height: 200px; display: block; }
.system-panel h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--accent-text); }
.system-panel .sub { color: var(--muted); margin-top: 6px; }
.system-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; margin: 22px 0 0; }
.system-stats dt { font-size: .86rem; color: var(--muted); }
.system-stats dd { margin: 3px 0 0; font: 700 1.25rem/1.2 var(--display); }
.system-stats dd small { display: block; font: 400 .84rem/1.4 var(--body); color: var(--muted); margin-top: 3px; }
@media (max-width: 760px) {
  .system-panel { grid-template-columns: minmax(0, 1fr); }
  .system-panel canvas { width: 130px; height: 130px; }
  .system-stats { grid-template-columns: 1fr; }
}

/* Between launches: small things you can try on the page. */
.board { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { padding: clamp(20px, 2.6vw, 30px); border-radius: 20px; background: rgba(16, 23, 58, .72); border: 1px solid var(--line); min-width: 0; }
.tile h3 { font-size: 1.35rem; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .98rem; }
.tile-combo { grid-column: span 7; } .tile-daily { grid-column: span 5; }
.tile-spin { grid-column: span 4; } .tile-skill { grid-column: span 4; } .tile-stack { grid-column: span 4; display: grid; gap: 16px; padding: 0; background: none; border: 0; }
.tile-stack .tile { height: 100%; }
@media (max-width: 980px) {
  .tile-combo, .tile-daily { grid-column: span 12; }
  .tile-spin, .tile-skill { grid-column: span 6; } .tile-stack { grid-column: span 12; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tile-spin, .tile-skill { grid-column: span 12; } .tile-stack { grid-template-columns: 1fr; }
}
.combo-try { display: flex; align-items: center; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
.combo-pad { flex: none; width: 104px; height: 104px; border-radius: 50%; border: 2px solid var(--accent); background: radial-gradient(circle at 35% 30%, rgba(var(--accent-rgb), .5), rgba(var(--accent-rgb), .12)); color: var(--star); font: 700 .95rem/1.15 var(--display); touch-action: manipulation; transition: transform .08s; user-select: none; }
.combo-pad:active { transform: scale(1.08); }
.combo-read { flex: 1; min-width: 180px; }
.combo-read output { display: block; font: 700 2.6rem/1 var(--display); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.combo-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 12px; }
.combo-bar span { height: 12px; border-radius: 3px; background: rgba(241, 242, 250, .12); }
.combo-bar span.is-on { background: var(--accent); }
.daily { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; list-style: none; padding: 0; }
.daily li { padding: 12px 6px; border-radius: 10px; background: var(--panel); text-align: center; font-size: .78rem; color: var(--muted); }
.daily li strong { display: block; font: 700 1.02rem var(--display); color: var(--star); margin-top: 2px; }
.daily li:last-child { grid-column: span 2; background: var(--violet); border: 1.5px solid #F2A83C; color: var(--star); }
.daily li:last-child strong { color: #F2A83C; }
.wheel-wrap { position: relative; width: 190px; margin: 18px auto 14px; }
.wheel-wrap svg { display: block; width: 190px; height: 190px; transition: transform 2.8s cubic-bezier(.12, .62, .1, 1); }
.wheel-wrap::before { content: ""; position: absolute; left: 50%; top: -4px; z-index: 1; transform: translateX(-50%); border: 9px solid transparent; border-top: 15px solid var(--danger); }
.spin-foot { text-align: center; }
.spin-result { min-height: 1.6em; margin-top: 10px; font-weight: 600; color: var(--star) !important; }
.perks { list-style: none; padding: 0; margin: 16px 0 0; }
.perks li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .94rem; }
.perks li span { color: var(--muted); text-align: right; }

/* Screenshots (the whole section stays hidden until image files exist). */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.shots img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); display: block; }

/* Community */
.community { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.community .side { display: grid; gap: 16px; }
@media (max-width: 860px) { .community { grid-template-columns: minmax(0, 1fr); } }
.field { display: block; margin-top: 16px; }
.field > span { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 6px; }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(241, 242, 250, .22); background: rgba(5, 6, 15, .55); color: var(--star); }
.field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--star) 50%), linear-gradient(135deg, var(--star) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--orbit); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px rgba(79, 216, 224, .25); }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 16px 0 0; }
.kinds legend { font-weight: 600; font-size: .94rem; margin-bottom: 6px; padding: 0; }
.kinds label { position: relative; }
.kinds input { position: absolute; opacity: 0; inset: 0; }
.kinds span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid rgba(241, 242, 250, .22); font-weight: 500; font-size: .95rem; cursor: pointer; }
.kinds input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.kinds input:focus-visible + span { outline: 3px solid var(--glow); outline-offset: 3px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.form-status { font-size: .95rem; color: var(--star) !important; flex: 1; min-width: 200px; }
.form-status.is-error { color: #FFB1B1 !important; }
.form-status.is-ok { color: var(--go) !important; }
.inline-form { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 180px; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(241, 242, 250, .22); background: rgba(5, 6, 15, .55); }
.inline-form input:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px rgba(79, 216, 224, .25); }
.tile .btn { margin-top: 16px; }
.inline-form .btn { margin-top: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--muted); font-size: .94rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: var(--star); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- Play page ---------- */
.play { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 96px); }
.play-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.play .phone { width: 400px; height: min(800px, calc(100vh - 120px)); min-height: 620px; }
.play .g-mine, .play .g-mine canvas { width: 196px; height: 196px; }
.play-side h1 { font-size: clamp(2rem, 4vw, 3rem); }
.play-side > p { color: var(--muted); margin-top: 14px; max-width: 34rem; }
.readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.readout div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.readout dt { font-size: .86rem; color: var(--muted); }
.readout dd { margin: 2px 0 0; font: 700 1.35rem var(--display); font-variant-numeric: tabular-nums; }
.legs { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.legs li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; font-size: .96rem; }
.legs i { width: 18px; height: 18px; border-radius: 50%; background: var(--dot); opacity: .35; }
.legs li.is-here i { opacity: 1; box-shadow: 0 0 14px 2px var(--dot); }
.legs li.is-done i { opacity: 1; }
.legs li span:last-child { color: var(--muted); font-size: .86rem; }
.play-more { margin-top: 30px; }
.play-more h2 { font-size: 1.3rem; margin-bottom: 8px; }
.play-more ul { margin: 0; padding-left: 20px; color: var(--muted); }
.play-more li { margin-top: 4px; }
.play-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-danger { background: transparent; color: #FFB1B1; border-color: rgba(255, 107, 107, .5); }
.btn-danger:hover { background: rgba(255, 107, 107, .12); filter: none; }
@media (max-width: 900px) {
  .play-in { grid-template-columns: minmax(0, 1fr); }
  .play .phone { justify-self: center; width: min(400px, 100%); height: 720px; }
}
@media (max-width: 420px) {
  .play .phone { height: 690px; }
  .play .g-mine, .play .g-mine canvas { width: 168px; height: 168px; }
}

/* ---------- Guide page ---------- */
.guide { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 8vw, 110px); }
.guide-top h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.guide-top p { color: var(--muted); margin-top: 12px; max-width: 40rem; }
.guide-in { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); margin-top: 36px; align-items: start; }
.toc { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; }
.toc input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid rgba(241, 242, 250, .22); background: rgba(5, 6, 15, .55); }
.toc input:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px rgba(79, 216, 224, .25); }
.toc ol { list-style: none; padding: 0; margin: 14px 0 0; }
.toc a { display: block; padding: 8px 12px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; font-size: .95rem; }
.toc a:hover { color: var(--star); }
.toc a.is-here { color: var(--accent-text); border-left-color: var(--accent-text); }
.toc-empty { color: var(--muted); font-size: .94rem; margin-top: 14px; }
.doc section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.doc h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.doc p { max-width: 44rem; color: #D5D9EC; margin-top: 12px; }
.doc ul, .doc ol.plain { max-width: 44rem; color: #D5D9EC; padding-left: 22px; margin: 12px 0 0; }
.doc li { margin-top: 6px; }
.doc strong { color: var(--star); }
.doc code { font-family: var(--display); font-weight: 500; background: rgba(241, 242, 250, .09); padding: 2px 7px; border-radius: 6px; font-size: .95em; }
.table { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; }
.table table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font: 700 .86rem var(--display); color: var(--muted); background: rgba(16, 23, 58, .8); }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 9px; vertical-align: -1px; }
.calc { margin-top: 20px; padding: 20px; border-radius: 16px; background: rgba(16, 23, 58, .72); border: 1px solid var(--line); max-width: 44rem; }
.calc h4 { font-size: 1.08rem; margin-bottom: 4px; }
.calc .calc-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.calc label { flex: 1; min-width: 150px; font-size: .88rem; font-weight: 600; }
.calc input, .calc select { display: block; width: 100%; min-height: 46px; margin-top: 5px; padding: 9px 12px; border-radius: 10px; border: 1.5px solid rgba(241, 242, 250, .22); background: rgba(5, 6, 15, .55); font-weight: 400; }
.calc select option { background: var(--orbit); }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--glow); }
.calc output { display: block; margin-top: 14px; font: 700 1.3rem/1.3 var(--display); color: var(--accent-text); }
.calc output small { display: block; font: 400 .9rem/1.45 var(--body); color: var(--muted); margin-top: 3px; }
@media (max-width: 860px) {
  .guide-in { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
  .toc ol { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .toc a { white-space: nowrap; border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
  .toc a.is-here { border-color: var(--accent-text); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
