@font-face {
  font-family: "VT323";
  src: url("/fonts/vt323.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* Palette D — Sunny Coastal (晴空碧海 · Bright 16-Bit Pixel Island Arcade) */
:root {
  --sky-bg: #ebf5fa;
  --sky-top: #d6eef9;
  --sky-head: rgba(235, 245, 250, 0.94);
  --panel: #dceef7;
  --panel-hi: #cde6f4;
  --surface: #ffffff;
  --surface-soft: #f5fbfe;
  --outline: #16384f;
  --outline-soft: #9dc3d8;
  --shadow-soft: #b2d3e5;
  --ink: #143145;
  --body: #274a63;
  --muted: #4b718a;
  --teal: #157a9c;
  --teal-bright: #2298bd;
  --mint: #249e82;
  --mint-soft: #e0f7f1;
  --tangerine: #ee7644;
  --tangerine-hi: #ffa67d;
  --tangerine-shadow: #b84a1e;
  --sun: #ffd670;
  --sun-deep: #c97a00;
  --pixel: "VT323", ui-monospace, monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--sky-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font: 17px/1.66 "DM Sans", system-ui, sans-serif;
  color: var(--body);
  background:
    radial-gradient(1080px 460px at 50% -100px, rgba(255, 214, 112, 0.28), transparent 64%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bg) 340px, #f4fafd 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-underline-offset: 3px;
  text-decoration-color: rgba(21, 122, 156, 0.42);
}

a:hover {
  color: var(--tangerine-shadow);
  text-decoration-color: var(--tangerine);
}

:focus-visible {
  outline: 3px solid var(--tangerine);
  outline-offset: 3px;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 30;
  padding: 6px 12px;
  background: var(--surface);
  border: 3px solid var(--outline);
  color: var(--ink);
}

/* ==========================================================================
   HEADER — Breezy Coastal Pixel Navigation Bar
   ========================================================================== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--sky-head);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--outline);
  box-shadow: 0 3px 0 rgba(22, 56, 79, 0.10);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 7px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 35px/1 var(--pixel);
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  text-shadow:
    -2px 0 rgba(71, 184, 214, 0.55),
    2px 0 rgba(238, 118, 68, 0.48);
}

.logo:hover {
  color: var(--teal);
}

.site-nav {
  display: flex;
  gap: 6px 18px;
  overflow-x: auto;
  padding: 0 0 9px;
  scrollbar-width: none;
}

.site-nav a {
  flex: none;
  font: 20px/1.25 var(--pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 1px 4px;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--tangerine);
}

/* ==========================================================================
   TACTILE 3D EXTRUDED SUNNY COASTAL BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  cursor: pointer;
  border: 3px solid var(--outline);
  border-radius: 7px;
  padding: 10px 22px 9px;
  font: 24px/1.08 var(--pixel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
}

/* Primary Warm Sunlit Tangerine CTA */
.btn-play {
  color: #ffffff;
  background: var(--tangerine);
  text-shadow: 1px 2px 0 var(--tangerine-shadow);
  box-shadow:
    inset 0 3px 0 var(--tangerine-hi),
    inset 0 -3px 0 var(--tangerine-shadow),
    0 5px 0 var(--outline);
}

.btn-play:hover {
  color: #ffffff;
  background: #f58251;
  transform: translateY(-1px);
  box-shadow:
    inset 0 3px 0 #ffc0a2,
    inset 0 -3px 0 var(--tangerine-shadow),
    0 6px 0 var(--outline);
}

.btn-play:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 0 var(--tangerine-hi),
    inset 0 -1px 0 var(--tangerine-shadow),
    0 2px 0 var(--outline);
}

/* Secondary Crisp White Coastal Button */
.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  box-shadow:
    inset 0 -3px 0 var(--panel-hi),
    0 5px 0 var(--outline);
}

.btn-ghost:hover {
  color: var(--teal);
  background: var(--surface-soft);
  transform: translateY(-1px);
  box-shadow:
    inset 0 -3px 0 #b8dfef,
    0 6px 0 var(--outline);
}

.btn-ghost:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 -1px 0 var(--panel-hi),
    0 2px 0 var(--outline);
}

.btn-small {
  flex: none;
  padding: 6px 14px 5px;
  font-size: 20px;
}

/* ==========================================================================
   CONTENT TYPOGRAPHY & CRISP PAPER/COASTAL PANELS
   ========================================================================== */
main {
  padding: 20px 0 50px;
}

.crumbs {
  font: 19px/1.2 var(--pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--teal);
}

h1,
h2,
h3 {
  font-family: var(--pixel);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.05em;
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(42px, 7vw, 62px);
  color: var(--ink);
  text-shadow: 2px 2px 0 rgba(71, 184, 214, 0.32);
}

h2 {
  margin: 44px 0 12px;
  font-size: 36px;
  color: var(--teal);
}

h3 {
  margin: 26px 0 6px;
  font-size: 27px;
  color: var(--ink);
}

p,
ul,
ol {
  margin: 0 0 16px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--panel);
  border: 1px solid var(--outline-soft);
  color: var(--ink);
  font-size: 0.9em;
}

.lede {
  font-size: 19.5px;
  color: var(--ink);
}

.note {
  padding: 14px 18px;
  border-radius: 8px;
  border: 3px solid var(--outline);
  border-left: 7px solid var(--mint);
  background: var(--surface);
  box-shadow: 0 4px 0 var(--shadow-soft);
}

/* ==========================================================================
   HOMEPAGE HERO — Bright 16-Bit Coastal Ocean Window
   ========================================================================== */
.hero {
  padding: 18px 0 22px;
  text-align: center;
}

.ocean-frame {
  position: relative;
  width: min(640px, 100%);
  margin: 0 auto 18px;
  padding: 7px;
  border-radius: 12px;
  background: var(--surface);
  border: 3px solid var(--outline);
  box-shadow:
    inset 0 -3px 0 var(--panel-hi),
    0 7px 0 var(--outline);
}

.ocean-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 300 / 168;
  border-radius: 6px;
  border: 2px solid var(--outline);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: pointer;
  background: #1c789c;
}

.ocean-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 6px 2px;
  font: 17px/1.1 var(--pixel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ocean-bar .mode-btn {
  padding: 4px 7px 3px;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.ocean-bar-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal);
}

.ocean-bar-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--tangerine);
  border: 1.5px solid var(--outline);
}

.hero-title {
  margin: 4px 0 6px;
  font: clamp(62px, 13vw, 114px)/0.95 var(--pixel);
  letter-spacing: 0.08em;
  color: var(--ink);
  text-shadow:
    -3px 0 rgba(71, 184, 214, 0.65),
    3px 0 rgba(238, 118, 68, 0.55),
    4px 4px 0 rgba(22, 56, 79, 0.14);
}

.hero-sub {
  margin: 0 auto 24px;
  max-width: 620px;
  font-size: 19.5px;
  color: var(--body);
}

.hero .btn-play {
  font-size: clamp(21px, 4.6vw, 31px);
  padding: 13px clamp(18px, 4vw, 30px) 11px;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-meta {
  margin-top: 18px;
  font: 19px/1.3 var(--pixel);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Crisp White Guide Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 15px;
  margin: 18px 0 10px;
}

.card {
  display: block;
  padding: 16px 18px;
  border-radius: 10px;
  color: var(--body);
  text-decoration: none;
  background: var(--surface);
  border: 3px solid var(--outline);
  box-shadow:
    inset 0 -3px 0 var(--panel),
    0 5px 0 var(--outline);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.14s ease;
}

.card:hover {
  color: var(--ink);
  background: var(--surface-soft);
  transform: translateY(-3px);
  box-shadow:
    inset 0 -3px 0 #bfe2f2,
    0 8px 0 var(--outline);
}

.card strong {
  display: block;
  margin-bottom: 5px;
  font: 25px/1.08 var(--pixel);
  letter-spacing: 0.06em;
  color: var(--teal);
}

/* Tables & Prompt Ladders */
table {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  border: 3px solid var(--outline);
  box-shadow: 0 5px 0 var(--outline);
}

th,
td {
  padding: 11px 12px 9px;
  text-align: left;
  vertical-align: top;
  border-bottom: 2px solid var(--panel);
}

thead th {
  font: 18px/1.2 var(--pixel);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--panel);
  border-bottom: 2px solid var(--outline);
}

tbody th {
  font: 23px/1.1 var(--pixel);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--tc, var(--ink));
  border-left: 6px solid var(--tc, var(--teal));
}

td.pts {
  font: 23px/1.1 var(--pixel);
  color: var(--tc, var(--ink));
  white-space: nowrap;
}

.ladder {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.ladder li {
  display: grid;
  grid-template-columns: 182px 1fr;
  gap: 12px;
  margin: 0;
  padding: 10px 14px 8px;
  border-radius: 7px;
  border: 2px solid var(--outline);
  border-left: 7px solid var(--tc, var(--teal));
  background: var(--surface);
  box-shadow: 0 3px 0 var(--shadow-soft);
}

.ladder li + li {
  margin-top: 7px;
}

.ladder .tier {
  font: 22px/1.15 var(--pixel);
  color: var(--tc, var(--teal));
}

.answer-tag {
  display: inline-block;
  padding: 2px 12px 1px;
  border-radius: 6px;
  border: 2px solid var(--outline);
  font: 26px/1.15 var(--pixel);
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--sun);
  box-shadow: 0 3px 0 var(--outline);
}

/* FAQ Accordions */
details {
  margin-bottom: 10px;
  padding: 13px 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 3px solid var(--outline);
  box-shadow: 0 4px 0 var(--shadow-soft);
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

details[open] {
  background: var(--surface-soft);
  box-shadow: 0 4px 0 var(--outline);
}

details[open] summary {
  color: var(--teal);
}

details p {
  margin: 10px 0 2px;
}

/* Call to Action Panel */
.cta {
  margin: 48px 0 10px;
  padding: 30px 22px;
  text-align: center;
  border-radius: 12px;
  background:
    radial-gradient(460px 180px at 50% 0, rgba(255, 214, 112, 0.34), transparent 72%),
    var(--panel);
  border: 3px solid var(--outline);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.8),
    0 7px 0 var(--outline);
}

.cta-kicker {
  margin: 0;
  font: 19px/1.2 var(--pixel);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.cta-title {
  margin: 6px 0 20px;
  font: 36px/1.08 var(--pixel);
  color: var(--ink);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cta-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Footer */
.site-foot {
  padding: 38px 0 50px;
  text-align: center;
  border-top: 3px solid var(--outline);
  background: var(--panel);
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 26px 0 16px;
}

.site-foot nav a {
  font: 20px/1.3 var(--pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body);
  text-decoration: none;
}

.site-foot nav a:hover {
  color: var(--tangerine-shadow);
}

.site-foot p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   PLAYABLE COASTAL ARCADE (/play/)
   ========================================================================== */
.play-head .head-row {
  flex-wrap: wrap;
  padding: 9px 0;
}

.mode-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mode-btn,
.util-btn {
  cursor: pointer;
  border: 2px solid var(--outline);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 5px 11px 4px;
  font: 19px/1.1 var(--pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--panel), 0 3px 0 var(--outline);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
}

.mode-btn:hover,
.util-btn:hover {
  background: var(--surface-soft);
  color: var(--teal);
}

.mode-btn.is-active {
  color: var(--ink);
  background: var(--sun);
  box-shadow: inset 0 2px 0 #ffebb0, inset 0 -2px 0 #e0a82e, 0 3px 0 var(--outline);
}

.head-utils {
  display: flex;
  gap: 8px;
  align-items: center;
}

.play-shell {
  padding: 12px 0 38px;
}

/* Live Together Community Bar */
.live-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 8px 14px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: var(--surface);
  border: 3px solid var(--outline);
  box-shadow: inset 0 -2px 0 var(--panel), 0 4px 0 var(--outline);
}

.live-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font: 20px/1.1 var(--pixel);
  letter-spacing: 0.08em;
  color: var(--muted);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}

.live-pill strong {
  color: var(--mint);
}

.live-sub strong {
  color: var(--teal);
}

.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  border: 1.5px solid var(--outline);
  box-shadow: 0 0 0 0 rgba(36, 158, 130, 0.55);
  animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(36, 158, 130, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(36, 158, 130, 0); }
  100% { box-shadow: 0 0 0 0 rgba(36, 158, 130, 0); }
}

.live-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.wave-btn {
  cursor: pointer;
  padding: 4px 11px 3px;
  border-radius: 6px;
  border: 2px solid var(--outline);
  background: var(--mint-soft);
  color: #12614f;
  font: 19px/1.1 var(--pixel);
  letter-spacing: 0.08em;
  box-shadow: 0 2px 0 var(--outline);
  transition: transform 0.08s ease, background 0.12s ease;
}

.wave-btn:hover {
  background: #c7f2e7;
  transform: translateY(-1px);
}

.wave-btn:active {
  transform: translateY(1px);
}

.diver-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 2px solid var(--outline);
  background: var(--surface-soft);
  font: 17px/1 var(--pixel);
  letter-spacing: 0.08em;
  color: var(--muted);
}

.diver-tag input {
  width: 106px;
  border: 0;
  border-bottom: 1.5px dashed var(--outline-soft);
  background: transparent;
  font: 19px/1 var(--pixel);
  letter-spacing: 0.05em;
  color: var(--ink);
  outline: none;
  padding: 1px 2px;
}

.diver-tag input:focus {
  border-bottom-color: var(--tangerine);
}

/* Friend Duel Challenge Banner */
.duel-banner {
  margin-bottom: 12px;
  padding: 9px 14px;
  text-align: center;
  border-radius: 8px;
  background: var(--sun);
  border: 3px solid var(--outline);
  box-shadow: 0 4px 0 var(--outline);
  font: 22px/1.15 var(--pixel);
  letter-spacing: 0.08em;
  color: var(--ink);
}

.duel-result {
  margin: 0 0 12px;
  padding: 8px 12px;
  text-align: center;
  border-radius: 7px;
  border: 2px solid var(--outline);
  background: var(--surface);
  font: 20px/1.2 var(--pixel);
  letter-spacing: 0.05em;
  color: var(--ink);
}

.duel-result.is-win {
  background: var(--mint-soft);
  color: #12614f;
}

/* Depth-Ruler Live Crowd Dots */
.ruler-crowd {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crowd-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 4px rgba(179, 244, 255, 0.9);
  transform: translate(-50%, -50%);
  transition: top 1.4s ease;
}

/* Live Activity Ticker Strip */
.live-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--surface-soft);
  border: 2px solid var(--outline-soft);
  font-size: 13.5px;
  color: var(--body);
  overflow: hidden;
}

.ticker-tag {
  flex: none;
  padding: 1px 6px 0;
  border-radius: 4px;
  background: var(--mint);
  color: #ffffff;
  font: 16px/1.1 var(--pixel);
  letter-spacing: 0.1em;
}

.ticker-text {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-text.is-pop {
  animation: tickerIn 0.28s ease;
}

@keyframes tickerIn {
  from { opacity: 0.25; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Daily Global Rank Banner, Histogram & Leaderboard */
.rank-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 2.5px solid var(--outline);
  box-shadow: 0 3px 0 var(--outline);
}

.rank-banner strong {
  font: 24px/1.1 var(--pixel);
  letter-spacing: 0.06em;
  color: var(--ink);
}

.rank-pct-pill {
  padding: 2px 9px 1px;
  border-radius: 5px;
  border: 2px solid var(--outline);
  background: var(--sun);
  font: 19px/1.1 var(--pixel);
  letter-spacing: 0.08em;
  color: var(--ink);
}

.dist-box {
  padding: 10px 12px 8px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 2px solid var(--outline);
}

.dist-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font: 16px/1 var(--pixel);
  letter-spacing: 0.1em;
  color: var(--muted);
}

.histogram {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  align-items: end;
}

.hist-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.hist-val {
  font: 14px/1 var(--pixel);
  color: var(--muted);
}

.hist-bar-wrap {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: flex-end;
  background: var(--surface-soft);
  border-radius: 4px;
  padding: 2px;
}

.hist-bar {
  width: 100%;
  border-radius: 2px;
  background: #8cc9e0;
  border: 1.5px solid var(--outline);
}

.hist-col.is-you .hist-bar {
  background: var(--tangerine);
}

.hist-col.is-you .hist-val {
  color: var(--tangerine-shadow);
  font-weight: 700;
}

.hist-lbl {
  font: 13px/1 var(--pixel);
  color: var(--muted);
}

/* Multi-Channel Viral Share Suite */
.share-suite {
  padding: 12px 13px 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 2.5px solid var(--outline);
  box-shadow: 0 3px 0 var(--outline);
}

.share-suite-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 9px;
  font: 17px/1.1 var(--pixel);
  letter-spacing: 0.1em;
  color: var(--teal);
}

.share-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 13px/1.2 "DM Sans", system-ui, sans-serif;
  letter-spacing: 0;
  color: var(--muted);
  cursor: pointer;
}

.share-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-grid .btn-small {
  flex: 1 1 118px;
  font-size: 18px;
  padding: 6px 10px 5px;
}

/* Daily Leaderboard Table */
.sum-details {
  margin-bottom: 10px;
  padding: 10px 12px;
}

.board-wrap {
  margin-top: 8px;
  max-height: 235px;
  overflow-y: auto;
}

.board-table {
  margin: 0;
  border-width: 2px;
  box-shadow: none;
  font-size: 14px;
}

.board-table th,
.board-table td {
  padding: 6px 8px;
}

.board-table .b-rank {
  font: 19px/1 var(--pixel);
  width: 52px;
}

.board-table .b-name {
  font-weight: 600;
  color: var(--ink);
}

.board-table .b-name em {
  font-style: normal;
  color: var(--tangerine-shadow);
  font-size: 12px;
}

.board-table .b-score {
  font: 21px/1 var(--pixel);
  text-align: right;
}

.board-table .b-depth {
  font: 17px/1 var(--pixel);
  color: var(--muted);
  text-align: right;
}

.board-table tr.is-player {
  background: #fff4d6;
}

.board-table tr.board-gap td {
  text-align: center;
  color: var(--muted);
  padding: 3px;
}

/* Homepage Live Divers Pill */
.home-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 14px 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--outline);
  box-shadow: 0 3px 0 var(--shadow-soft);
  font: 19px/1.1 var(--pixel);
  letter-spacing: 0.1em;
  color: var(--ink);
}

/* Top Telemetry Strip */
.arcade-hud {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.hud-cell {
  padding: 7px 10px 6px;
  text-align: center;
  border-radius: 8px;
  background: var(--surface);
  border: 3px solid var(--outline);
  box-shadow: inset 0 -2px 0 var(--panel), 0 4px 0 var(--outline);
}

.hud-label {
  display: block;
  font: 16px/1 var(--pixel);
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 2px;
}

.hud-val {
  display: block;
  font: 24px/1.05 var(--pixel);
  letter-spacing: 0.06em;
  color: var(--ink);
}

.hud-cyan {
  color: var(--teal);
}

.hud-gold {
  color: var(--sun-deep);
}

/* 2-Column Balanced Coastal Arcade Grid */
.arcade-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: start;
}

.arcade-grid > *,
.viewport-panel,
.console-panel {
  min-width: 0;
  max-width: 100%;
}

/* Left Column: Crisp 16-Bit Pixel Ocean Viewport + 7,000m Depth Ruler */
.viewport-panel {
  padding: 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 3px solid var(--outline);
  box-shadow:
    inset 0 -3px 0 var(--panel),
    0 7px 0 var(--outline);
}

.viewport-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: stretch;
}

.viewport-inner > * {
  min-width: 0;
}

.viewport-inner .ocean-canvas {
  aspect-ratio: 300 / 210;
}

/* Vertical Bathymetric Depth Ruler */
.depth-ruler {
  position: relative;
  border-radius: 6px;
  border: 2px solid var(--outline);
  background: linear-gradient(180deg, #56d4ef 0%, #2498bd 18%, #186493 48%, #103d66 78%, #0a2342 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  overflow: visible;
}

.ruler-ticks {
  position: absolute;
  inset: 16px 2px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.ruler-ticks span {
  display: block;
  text-align: center;
  font: 13px/1 var(--pixel);
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 1px 1px 0 var(--outline);
}

.ruler-marker {
  position: absolute;
  left: -4px;
  right: -4px;
  top: 86%;
  transform: translateY(-50%);
  height: 15px;
  border-radius: 4px;
  background: var(--tangerine);
  border: 2px solid var(--outline);
  box-shadow: 0 2px 6px rgba(22, 56, 79, 0.35), inset 0 2px 0 var(--tangerine-hi);
  transition: top 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.ruler-marker::after {
  content: "▲";
  display: block;
  text-align: center;
  font: 12px/12px var(--pixel);
  color: #ffffff;
}

.viewport-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 4px 2px;
  font: 18px/1.1 var(--pixel);
  letter-spacing: 0.08em;
  color: var(--muted);
}

.viewport-landmark {
  color: var(--teal);
}

/* Right Column: Coastal Specimen Console */
.console-panel {
  position: relative;
  padding: 20px 20px 22px;
  border-radius: 12px;
  background: var(--panel);
  border: 3px solid var(--outline);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.82),
    inset 0 -3px 0 #bddbeb,
    0 7px 0 var(--outline);
}

.panel-kicker {
  margin: 0 0 4px;
  font: 18px/1.2 var(--pixel);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  text-align: center;
}

.panel-title {
  margin: 0 0 10px;
  font: clamp(32px, 4.4vw, 44px)/1.02 var(--pixel);
  color: var(--ink);
  text-align: center;
}

.panel-copy {
  margin: 0 auto 18px;
  text-align: center;
  color: var(--body);
  font-size: 15.5px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

/* Burning Pixel Fuse Bar */
.fuse-track {
  height: 11px;
  margin-bottom: 14px;
  border-radius: 6px;
  background: var(--surface);
  border: 2px solid var(--outline);
  overflow: hidden;
}

.fuse-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--mint), #33b6d4);
  transition: width 0.95s linear, background 0.25s ease;
}

.fuse-fill.is-warn {
  background: linear-gradient(90deg, #f09c2b, var(--sun));
}

.fuse-fill.is-crit {
  background: linear-gradient(90deg, var(--tangerine-shadow), var(--tangerine));
}

.round-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.relic-cat {
  display: inline-block;
  padding: 2px 9px 1px;
  border-radius: 5px;
  border: 2px solid var(--outline);
  background: var(--mint-soft);
  font: 17px/1.1 var(--pixel);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #166e59;
}

.timer-pill {
  font: 21px/1.1 var(--pixel);
  letter-spacing: 0.1em;
  color: var(--muted);
}

.timer-pill strong {
  color: var(--tangerine-shadow);
  font-weight: 400;
  margin-left: 4px;
}

/* Crisp White Balatro Specimen Playing Card */
.relic-card {
  position: relative;
  margin: 0 auto 16px;
  padding: 22px 16px 20px;
  text-align: center;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  border: 3px solid var(--outline);
  box-shadow:
    inset 0 0 0 3px var(--panel),
    0 7px 0 var(--outline);
  animation: cardSway 4.2s ease-in-out infinite;
}

.relic-card.is-slam {
  animation: cardSlam 0.34s cubic-bezier(0.22, 1.4, 0.36, 1) forwards;
}

.card-pip {
  position: absolute;
  font: 17px/1 var(--pixel);
  letter-spacing: 0.06em;
  color: var(--tangerine);
}

.card-pip-tl {
  top: 8px;
  left: 11px;
}

.card-pip-br {
  bottom: 8px;
  right: 11px;
}

.relic-kicker {
  display: block;
  font: 17px/1.1 var(--pixel);
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 4px;
}

.relic-word {
  font: clamp(44px, 6.2vw, 60px)/0.96 var(--pixel);
  letter-spacing: 0.1em;
  color: var(--ink);
  text-shadow: 2px 2px 0 rgba(71, 184, 214, 0.28);
}

@keyframes cardSway {
  0%, 100% { transform: rotate(-0.6deg) translateY(0); }
  50% { transform: rotate(0.6deg) translateY(-3px); }
}

@keyframes cardSlam {
  0% { transform: scale(1.12) rotate(-2deg); }
  65% { transform: scale(0.97) rotate(0.6deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .relic-card { animation: none; }
}

.prompt-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 7px;
  font: 16px/1.4 "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  border: 3px solid var(--outline);
  box-shadow: inset 0 2px 0 rgba(22, 56, 79, 0.08);
  outline: none;
}

.prompt-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(34, 152, 189, 0.22);
}

.prompt-input::placeholder {
  color: #6a8ca3;
}

.prompt-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.char-count {
  font: 18px/1 var(--pixel);
  letter-spacing: 0.08em;
  color: var(--muted);
}

.leak-warn {
  font: 19px/1.1 var(--pixel);
  color: #c9332b;
}

.prompt-btns {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* Juicy Rank Stamp Verdict */
.verdict-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 3px solid var(--outline);
  border-left: 8px solid var(--tc, var(--sun-deep));
  box-shadow: 0 4px 0 var(--outline);
  animation: cardSlam 0.34s cubic-bezier(0.22, 1.4, 0.36, 1) forwards;
}

.verdict-badge {
  font: 30px/1 var(--pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tc, var(--sun-deep));
}

.verdict-pts {
  font: 25px/1 var(--pixel);
  letter-spacing: 0.06em;
  color: var(--tc, var(--teal));
}

.verdict-prompt {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.verdict-reason {
  color: var(--body);
  font-size: 15px;
  margin-bottom: 14px;
}

.verdict-examples {
  margin-bottom: 6px;
}

.verdict-examples .ladder {
  margin: 10px 0 0;
}

/* Summary */
.sum-rank {
  margin: 2px 0 12px;
  font: clamp(36px, 5vw, 48px)/1 var(--pixel);
  text-align: center;
  letter-spacing: 0.06em;
}

.sum-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.sum-stats > div {
  padding: 9px 10px;
  text-align: center;
  border-radius: 7px;
  background: var(--surface);
  border: 2px solid var(--outline);
}

.sum-stats span {
  display: block;
  font: 15px/1.1 var(--pixel);
  letter-spacing: 0.14em;
  color: var(--muted);
}

.sum-stats strong {
  font: 24px/1.15 var(--pixel);
  color: var(--ink);
}

.sum-list {
  list-style: none;
  margin: 12px 0 8px;
  padding: 0;
  display: grid;
  gap: 7px;
  max-height: 220px;
  overflow-y: auto;
}

.sum-list li {
  margin: 0;
  padding: 8px 11px;
  border-radius: 6px;
  background: var(--surface);
  border: 2px solid var(--outline);
  border-left: 6px solid var(--tc, var(--teal));
}

.sum-row-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 20px/1.1 var(--pixel);
}

.sum-word {
  color: var(--ink);
  letter-spacing: 0.06em;
}

.sum-pts {
  color: var(--tc, var(--teal));
}

.sum-prompt {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.share-feedback {
  margin: 10px 0 0;
  min-height: 18px;
  text-align: center;
  font: 18px/1.2 var(--pixel);
  letter-spacing: 0.08em;
  color: var(--teal);
}

/* Archive & Custom */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 9px;
  margin-top: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}

.archive-tile {
  cursor: pointer;
  text-align: left;
  padding: 10px 12px;
  border-radius: 7px;
  background: var(--surface);
  border: 2px solid var(--outline);
  color: var(--body);
  box-shadow: 0 3px 0 var(--outline);
  transition: transform 0.1s ease, background 0.12s ease;
}

.archive-tile:hover {
  background: var(--surface-soft);
  transform: translateY(-2px);
}

.archive-tile.is-done {
  border-left: 6px solid var(--tangerine);
}

.archive-tile strong {
  display: block;
  font: 21px/1.1 var(--pixel);
  letter-spacing: 0.06em;
  color: var(--ink);
}

.archive-tile span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}

.custom-form {
  max-width: 480px;
  margin: 0 auto;
}

/* Below-the-fold Quick Guide & FAQ strip inside /play/ */
.play-guide-band {
  margin-top: 46px;
  padding-top: 28px;
  border-top: 3px solid var(--outline);
}

.play-guide-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 18px;
  margin-bottom: 26px;
}

.play-guide-card {
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--surface);
  border: 3px solid var(--outline);
  box-shadow:
    inset 0 -3px 0 var(--panel),
    0 6px 0 var(--outline);
}

.play-guide-card h2,
.play-faq-block h2 {
  margin: 0 0 12px;
  font-size: 31px;
}

.play-guide-links {
  margin: 10px 0 0;
  font: 19px/1.3 var(--pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-ranks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.mini-ranks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 7px 11px 6px;
  border-radius: 6px;
  background: var(--surface-soft);
  border: 2px solid var(--outline);
  border-left: 6px solid var(--tc, var(--teal));
}

.mini-ranks strong {
  font: 21px/1.1 var(--pixel);
  font-weight: 400;
  color: var(--tc, var(--ink));
}

.mini-ranks span {
  font: 18px/1.1 var(--pixel);
  color: var(--muted);
}

.play-faq-block {
  width: 100%;
  margin: 0;
}

.play-faq-block details {
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .arcade-grid,
  .play-guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .viewport-inner .ocean-canvas {
    aspect-ratio: 300 / 168;
  }
}

@media (max-width: 680px) {
  .arcade-hud {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .logo {
    font-size: 28px;
  }
  .site-nav {
    mask-image: linear-gradient(90deg, #000 86%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent 100%);
    padding-right: 24px;
  }
  .btn-small {
    font-size: 17px;
    padding: 5px 11px 4px;
  }
  h2 {
    font-size: 30px;
  }
  .ladder li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  table {
    font-size: 13.5px;
    line-height: 1.45;
  }
  th,
  td {
    padding: 7px 5px 6px;
    overflow-wrap: anywhere;
  }
  thead th {
    font-size: 15px;
    letter-spacing: 0.06em;
  }
  tbody th,
  td.pts {
    font-size: 18px;
  }
  .ocean-bar {
    font-size: 14px;
    letter-spacing: 0.06em;
  }
  .console-panel {
    padding: 16px 14px 18px;
  }
  .sum-stats {
    grid-template-columns: 1fr;
  }
}
