/* Ring Bluff site: the game's v2 stage (DESIGN.md > Web site). Tokens mirror Assets/Scripts/Core/Pal.cs. */
:root {
  --stage-hi: #3a6fdf;
  --stage: #2b5fd0;
  --stage-lo: #1a3aa6;
  --ink-0: #0b1a4f;
  --ink-1: #12266e;
  --ink-2: #1a3592;
  --line: #4a72e0;
  --outline: #0a1748;
  --text-hi: #fffdf7;
  --text-on: #eaf0ff;
  --text-lo: #c9d7ff;
  --paper: #eef2fa;
  --card: #fcfdff;
  --ink: #0b1a4f;
  --ink-soft: #3c4c80;
  --hair: #d3dcf0;
  --coral: #ff5a3c;
  --coral-ink: #c8381e;
  --green: #36d35c;
  --green-lip: #1f9a40;
  --gold: #ffc23d;
  --sky: #3f8cff;
  --radius-l: 32px;
  --radius-m: 22px;
  /* impeccable-disable bounce-easing: brand-mandated soft spring of the game's lipped buttons (DESIGN.md > MOTION) */
  --spring: cubic-bezier(.34, 1.25, .64, 1);
  --press: cubic-bezier(.3, 0, .7, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stage-lo);
  color: var(--text-hi);
  font: 500 17px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--coral); color: var(--text-hi); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the game's lettering: navy outline + hard drop shadow (Fonts.Stroke) */
.stroke {
  font-family: "Unbounded", sans-serif; font-weight: 800; color: var(--text-hi);
  text-shadow:
    0 -3px 0 var(--outline), 3px 0 0 var(--outline), -3px 0 0 var(--outline), 0 3px 0 var(--outline),
    2px 2px 0 var(--outline), -2px 2px 0 var(--outline), 2px -2px 0 var(--outline), -2px -2px 0 var(--outline),
    0 8px 0 var(--outline);
}
.stroke-s { text-shadow:
    0 -2px 0 var(--outline), 2px 0 0 var(--outline), -2px 0 0 var(--outline), 0 2px 0 var(--outline),
    1px 1px 0 var(--outline), -1px 1px 0 var(--outline), 1px -1px 0 var(--outline), -1px -1px 0 var(--outline),
    0 4px 0 var(--outline); }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 800 21px/1 "Unbounded", sans-serif; }
.brand-ring {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: conic-gradient(from 25deg, var(--coral) 0 290deg, transparent 290deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}
.top nav { display: flex; gap: 6px; }
.top nav a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 14px; border-radius: 999px; color: var(--text-on); }
.top nav a:hover { background: rgb(10 23 72 / .28); }
.top nav a.switch { background: rgb(10 23 72 / .34); }
.top nav a.switch:hover { background: rgb(10 23 72 / .5); }

/* ---------- hero: the stage ---------- */
.stage {
  background:
    radial-gradient(ellipse 60% 70% at 72% 42%, var(--stage-hi) 0%, transparent 70%),
    linear-gradient(180deg, var(--stage) 0%, var(--stage-lo) 100%);
  overflow: hidden;
}
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 28px 0 96px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.1; letter-spacing: .005em; margin: 0 0 26px; }
.hero .lead { font-size: 20px; line-height: 1.55; color: var(--text-on); max-width: 30ch; margin: 0 0 30px; font-weight: 600; }
.note { margin: 14px 0 0; font-size: 14px; color: var(--text-lo); }

/* store buttons: a quiet "coming soon" chip while in review, a chunky link once live (web.js paintStores) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 22px 0 16px;
  border-radius: 18px; color: var(--text-hi); text-decoration: none; text-align: left;
}
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: 12px; font-weight: 700; line-height: 1.25; color: var(--text-lo); }
.store b { display: block; font: 800 17px/1.2 "Manrope", sans-serif; }
.store.is-soon { background: rgb(10 23 72 / .34); }
.store.is-soon svg { color: var(--gold); }
a.store {
  background: var(--ink-0); box-shadow: 0 6px 0 var(--outline);
  transition: transform 180ms var(--spring), box-shadow 180ms var(--spring);
}
a.store svg { color: var(--green); }
a.store:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--outline); }
a.store:active { transform: translateY(6px); box-shadow: 0 0 0 transparent; transition-duration: 60ms; transition-timing-function: var(--press); }
a.store:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.show { position: relative; display: grid; place-items: center; min-height: 560px; }
.ring {
  position: absolute; width: min(500px, 92%); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--coral) 0 292deg, transparent 292deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 30px), #000 calc(100% - 29px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 30px), #000 calc(100% - 29px));
  filter: drop-shadow(0 14px 0 rgb(10 23 72 / .35));
  animation: turn 24s linear infinite;
}
.waves { position: absolute; width: min(760px, 140%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, transparent 35%, rgb(255 255 255 / .05) 35.4%, transparent 36%,
    transparent 47%, rgb(255 255 255 / .04) 47.4%, transparent 48%, transparent 60%, rgb(255 255 255 / .03) 60.4%, transparent 61%);
}
.phone {
  position: relative; width: min(290px, 64vw); border-radius: 42px; padding: 9px; background: var(--ink-0);
  box-shadow: 0 30px 60px -12px rgb(6 16 60 / .65);
  transform: rotate(4deg);
}
.phone img { border-radius: 34px; }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- paper band: screenshots dealt like cards ---------- */
.paper { background: var(--paper); color: var(--ink); }
.band { padding: 88px 0 96px; }
.band h2 { font: 800 clamp(28px, 4vw, 44px)/1.12 "Unbounded", sans-serif; margin: 0 0 14px; letter-spacing: .005em; }
.band .intro { max-width: 52ch; margin: 0 0 48px; color: var(--ink-soft); font-size: 18px; }
.deck { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.deck li:nth-child(even) { margin-top: 56px; }
.deck figure { margin: 0; }
.deck img { border-radius: 28px; border: 7px solid var(--ink-0); box-shadow: 0 18px 34px -16px rgb(11 26 79 / .55); }
.deck figcaption { margin-top: 18px; }
.deck strong { display: block; font: 800 17px/1.3 "Unbounded", sans-serif; margin-bottom: 6px; }
.deck span { color: var(--ink-soft); font-size: 16px; line-height: 1.5; }

/* ---------- closing band ---------- */
.deep { background: var(--ink-1); }
.close { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding: 88px 0; align-items: start; }
.close h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 0 0 18px; }
.close p { color: var(--text-on); margin: 0 0 14px; max-width: 46ch; }
.side { padding: 28px; border-radius: var(--radius-l); background: var(--ink-2); }
.side h3 { font: 800 20px/1.3 "Unbounded", sans-serif; margin: 0 0 14px; }
.side p { color: var(--text-on); margin: 0; }
.short {
  display: inline-block; margin-bottom: 14px; padding: 10px 16px; border-radius: 14px;
  background: var(--ink-0); color: var(--gold); font: 800 18px/1.3 "Manrope", sans-serif; text-decoration: none;
  box-shadow: 0 5px 0 var(--outline);
}
.short:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* chunky button: the face sinks onto its lip (brand-mandated, DESIGN.md > MOTION) */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 18px; font: 800 16px/1 "Manrope", sans-serif; text-decoration: none;
  transition: transform 180ms var(--spring), box-shadow 180ms var(--spring);
}
.btn svg { width: 20px; height: 20px; }
.btn.go { background: var(--green); color: var(--ink-0); box-shadow: 0 6px 0 var(--green-lip); }
.btn.quiet { background: rgb(255 255 255 / .1); color: var(--text-hi); box-shadow: 0 6px 0 rgb(6 16 60 / .45); }
.btn:hover { transform: translateY(-2px); }
.btn.go:hover { box-shadow: 0 8px 0 var(--green-lip); }
.btn.quiet:hover { box-shadow: 0 8px 0 rgb(6 16 60 / .45); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 transparent; transition-duration: 60ms; transition-timing-function: var(--press); }

.foot { border-top: 1px solid rgb(74 114 224 / .4); padding: 26px 0 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--text-lo); font-size: 14px; }
.foot a { color: var(--text-on); }

/* ---------- policy (Read mode) ---------- */
.doc-head { background: linear-gradient(180deg, var(--stage) 0%, var(--stage-lo) 100%); padding-bottom: 72px; }
.doc-head h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 28px 0 10px; }
.doc-head p { color: var(--text-on); margin: 0; }
.lang { display: flex; gap: 8px; margin-top: 22px; }
.lang a { text-decoration: none; font-weight: 800; font-size: 15px; padding: 10px 16px; border-radius: 999px; background: rgb(10 23 72 / .34); }
.lang a:hover { background: rgb(10 23 72 / .5); }
.doc-body { background: var(--paper); color: var(--ink); padding: 0 0 80px; }
.sheet {
  width: min(860px, 100% - 24px); margin: -44px auto 0; background: var(--card); border-radius: var(--radius-l);
  padding: clamp(24px, 5vw, 56px); box-shadow: 0 24px 50px -30px rgb(11 26 79 / .45);
}
.sheet + .sheet { margin-top: 28px; }
.sheet { scroll-margin-top: 20px; }
.sheet h2 { font: 800 clamp(26px, 3.6vw, 34px)/1.15 "Unbounded", sans-serif; margin: 0 0 8px; }
.sheet h3 { font: 800 18px/1.35 "Unbounded", sans-serif; margin: 40px 0 10px; }
.sheet p, .sheet li { max-width: 68ch; color: #22305e; }
.sheet ul { padding-left: 22px; }
.sheet li { margin-bottom: 8px; }
.sheet a { color: var(--coral-ink); }
.sheet .meta { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; }
.sheet code { font-size: .92em; background: var(--paper); padding: 2px 6px; border-radius: 6px; }
.table-scroll { overflow-x: auto; margin: 14px 0; border: 1px solid var(--hair); border-radius: var(--radius-m); }
.sheet table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--hair); color: #22305e; }
.sheet tr:last-child td { border-bottom: 0; }
.sheet th { background: var(--paper); color: var(--ink); font-weight: 800; }
.doc-foot { background: var(--paper); color: var(--ink-soft); }
.doc-foot .foot { color: var(--ink-soft); border-top-color: var(--hair); }
.doc-foot .foot a { color: var(--ink); }

/* ---------- 404 ---------- */
.miss { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
.miss main { display: grid; place-items: center; text-align: center; padding: 40px 0 80px; }
.miss h1 { font-size: clamp(56px, 12vw, 120px); line-height: 1; margin: 0 0 16px; }
.miss p { color: var(--text-on); margin: 0 0 28px; font-size: 19px; }

/* ---------- /get: one decision, one action (Operate) ---------- */
.get { min-height: 100svh; display: flex; flex-direction: column; }
.get-main {
  flex: 1; width: min(440px, 100% - 40px); margin: 0 auto; padding: 56px 0 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.get-icon { width: 96px; height: 96px; border-radius: 26px; box-shadow: 0 8px 0 var(--outline); margin-bottom: 26px; }
.get h1 { font-size: clamp(32px, 8vw, 44px); line-height: 1.12; margin: 0 0 14px; }
.get-lead { margin: 0 0 30px; color: var(--text-on); font-weight: 600; font-size: 18px; max-width: 30ch; }
.get-state { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.get-state[hidden] { display: none; }
.get-status { display: inline-flex; align-items: center; gap: 12px; margin: 0; font: 800 19px/1.3 "Manrope", sans-serif; }
.get-hint { margin: 0; color: var(--text-lo); font-size: 15px; max-width: 34ch; }
.get-clock { width: 24px; height: 24px; flex: none; color: var(--gold); }
.spin {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--coral) 0 290deg, transparent 290deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: turn .9s linear infinite;
}
.qr-card { margin: 0; padding: 20px 20px 16px; border-radius: var(--radius-l); background: var(--card); color: var(--ink); box-shadow: 0 10px 0 rgb(6 16 60 / .45); }
.qr-card img { width: 188px; height: 188px; margin: 0 auto 14px; }
.qr-card figcaption { font-weight: 700; font-size: 15px; }
.get-or { margin: 4px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-lo); }
.get .stores { justify-content: center; }
.get-back {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px 10px 10px;
  border-radius: 999px; color: var(--text-on); font-weight: 700; text-decoration: none;
}
.get-back:hover { background: rgb(10 23 72 / .28); }
.get-back svg { width: 18px; height: 18px; }
.get-fine { width: min(440px, 100% - 40px); margin: 0 auto; padding: 0 0 28px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--text-lo); }
.get-fine a { color: var(--text-on); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 12px; padding-bottom: 64px; }
  .show { min-height: 470px; }
  .close { grid-template-columns: 1fr; gap: 32px; padding: 64px 0; }
  .deck { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; padding-bottom: 14px; margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; scrollbar-color: var(--line) transparent; }
  .deck li { flex: 0 0 min(250px, 68vw); scroll-snap-align: start; }
  .deck li:nth-child(even) { margin-top: 0; }
  .band { padding: 64px 0 72px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .top nav a:not(:last-child) { display: none; }
  .hero .lead { font-size: 18px; }
  .stroke { text-shadow:
    0 -2px 0 var(--outline), 2px 0 0 var(--outline), -2px 0 0 var(--outline), 0 2px 0 var(--outline),
    2px 2px 0 var(--outline), -2px 2px 0 var(--outline), 2px -2px 0 var(--outline), -2px -2px 0 var(--outline),
    0 6px 0 var(--outline); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring, .spin { animation: none; }
  .btn, .btn:active, a.store, a.store:active { transition: none; }
}
