:root {
  --bg: #030814;
  --surface: rgba(9, 17, 30, 0.8);
  --surface-strong: rgba(8, 14, 24, 0.94);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f4f7fb;
  --muted: #9db0c6;
  --accent: #7ef8dd;
  --accent-strong: #4cb5ff;
  --accent-warm: #ffd27d;
  --danger: #ff7f70;
  --success: #86ffb3;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  --radius-lg: 30px;
  --radius-md: 22px;
  --content-width: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 15% 18%, rgba(76, 181, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(126, 248, 221, 0.12), transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(255, 210, 125, 0.08), transparent 28%),
    linear-gradient(160deg, #04101d 0%, #020714 50%, #01040c 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 90%);
  opacity: 0.25;
}

body::after {
  background: radial-gradient(circle at center, transparent 0, transparent 55%, rgba(0, 0, 0, 0.36) 100%);
}

.page-shell {
  position: relative;
  isolation: isolate;
}

main {
  display: flex;
  flex-direction: column;
}

.site-header,
.hero,
.signal-grid,
.game-hub,
.launch-panel,
.site-footer {
  width: var(--content-width);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand,
.site-nav a,
.button,
.footer-link,
.game-select-card {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #ffffff, var(--accent) 60%, rgba(126, 248, 221, 0.08) 100%);
  box-shadow: 0 0 30px rgba(126, 248, 221, 0.5);
}

.brand-text,
.panel-label,
.scene-badge,
.scene-note,
.site-nav,
.language-label,
.metric-label,
.tool-label,
.game-chip,
.flow-list span {
  font-family: "Space Mono", monospace;
}

.brand-text {
  letter-spacing: 0.22em;
  font-size: 0.88rem;
}

.site-nav,
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 10, 19, 0.54);
}

.site-nav a {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a:hover,
.footer-link:hover {
  color: var(--text);
}

.language-label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.language-switch button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  min-width: 44px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.language-switch button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.language-switch button.is-active {
  color: #04111f;
  background: linear-gradient(135deg, var(--accent) 0%, #a5fff0 100%);
}

.panel-label,
.tool-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head h1,
.section-head h2,
.launch-copy h2,
.active-game-head h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.section-copy,
.signal-card p,
.launch-copy p,
.flow-list p,
.footer-title,
.selected-game-copy,
.control-copy p,
.game-placeholder p,
.game-loading p,
.binary-market-note {
  color: var(--muted);
  line-height: 1.8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.button-primary {
  color: #04111f;
  background: linear-gradient(135deg, var(--accent) 0%, #a5fff0 100%);
}

.button-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.button-binary-up {
  color: #f4f7fb;
  background: linear-gradient(135deg, #2f8cff 0%, #68c1ff 100%);
}

.button-binary-down {
  color: #fff4f2;
  background: linear-gradient(135deg, #d14a5f 0%, #ff8973 100%);
}

.game-hub {
  order: 1;
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.hero {
  order: 2;
  display: flex;
  justify-content: center;
  padding: 18px 0 8px;
}

.signal-grid {
  order: 3;
}

.launch-panel {
  order: 4;
}

.signal-grid,
.game-hub,
.launch-panel {
  margin-top: 32px;
}

.hero-scene {
  width: min(860px, 100%);
}

.signal-card,
.game-select-card,
.active-game-shell,
.metric-card,
.launch-panel,
.binary-card,
.binary-list-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%),
    var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.scene-card {
  padding: 20px 20px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 10%, rgba(90, 124, 165, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  box-shadow: var(--shadow);
}

.scene-meta,
.active-game-head,
.toolbar-row,
.binary-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.scene-badge,
.game-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scene-note {
  color: rgba(244, 247, 251, 0.46);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.game-chip.live {
  color: #04111f;
  background: linear-gradient(135deg, var(--accent) 0%, #a5fff0 100%);
  border-color: transparent;
}

.game-chip.soon {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.orbit-stage {
  position: relative;
  min-height: min(58vh, 580px);
  margin-top: 14px;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(98, 132, 181, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(8, 16, 28, 0.76) 0%, rgba(2, 6, 12, 0.98) 100%);
  cursor: grab;
  touch-action: none;
}

.orbit-stage.is-dragging {
  cursor: grabbing;
}

.orbit-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 420ms ease;
}

.orbit-stage.is-ready canvas {
  opacity: 1;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.section-head {
  padding: 16px 8px 0 0;
}

.signal-card,
.game-select-card,
.binary-card,
.binary-list-card {
  padding: 24px;
  border-radius: var(--radius-md);
}

.signal-card h3,
.game-select-card strong,
.game-placeholder h3,
.binary-list-card h3 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.signal-card p,
.game-select-card p {
  margin: 14px 0 0;
}

.game-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-select-card {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.game-select-card:hover {
  transform: translateY(-2px);
}

.game-select-card.is-selected {
  border-color: rgba(126, 248, 221, 0.45);
  background:
    linear-gradient(180deg, rgba(126, 248, 221, 0.08), transparent 40%),
    var(--surface);
}

.thumb,
.placeholder-thumb .thumb {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 15%, rgba(76, 181, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(15, 27, 44, 0.94), rgba(5, 10, 18, 0.98));
}

.thumb-minesweeper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  min-height: 118px;
  padding: 14px;
}

.thumb-minesweeper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #04111f;
  background: linear-gradient(180deg, #b5fff1 0%, #67cee8 100%);
  box-shadow: inset 0 -2px 0 rgba(7, 34, 48, 0.24);
}

.thumb-minesweeper .is-open {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.thumb-minesweeper .is-flag {
  color: #08111f;
  background: linear-gradient(180deg, #ffd998 0%, var(--accent-warm) 100%);
}

.thumb-minesweeper .n1 { color: #8be1ff; }
.thumb-minesweeper .n2 { color: #6dfde1; }
.thumb-minesweeper .n3 { color: #ffd27d; }

.thumb-binary,
.thumb-planet,
.thumb-management,
.thumb-fishing,
.thumb-solitaire {
  min-height: 118px;
}

.thumb-binary .binary-line {
  position: absolute;
  inset: 24px 18px 22px;
  background:
    linear-gradient(135deg, transparent 0 10%, rgba(76, 181, 255, 0.14) 10% 12%, transparent 12%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  clip-path: polygon(0 72%, 15% 66%, 32% 74%, 48% 44%, 63% 48%, 82% 18%, 100% 28%, 100% 100%, 0 100%);
}

.thumb-binary .binary-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(126, 248, 221, 0.44);
}

.thumb-binary .binary-dot.a { left: 34%; top: 60%; }
.thumb-binary .binary-dot.b { left: 58%; top: 34%; }
.thumb-binary .binary-dot.c { left: 80%; top: 24%; }

.thumb-binary .binary-pill {
  position: absolute;
  bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.thumb-binary .up {
  left: 16px;
  color: #04111f;
  background: linear-gradient(135deg, var(--success) 0%, #b5ffd1 100%);
}

.thumb-binary .down {
  right: 16px;
  color: #2a0d0a;
  background: linear-gradient(135deg, #ffb1a7 0%, var(--danger) 100%);
}

.thumb-planet .orbit,
.thumb-planet .planet-core,
.thumb-planet .planet-dot {
  position: absolute;
  border-radius: 999px;
}

.thumb-planet .orbit {
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.thumb-planet .orbit-a {
  inset: 18px 28px;
  transform: rotate(18deg);
}

.thumb-planet .orbit-b {
  inset: 30px 42px;
  transform: rotate(-24deg);
}

.thumb-planet .planet-core {
  inset: 34px 96px;
  background: radial-gradient(circle at 35% 35%, #ffffff, #88d5ff 42%, #1b4f7e 100%);
  box-shadow: 0 0 36px rgba(76, 181, 255, 0.34);
}

.thumb-planet .planet-dot {
  width: 12px;
  height: 12px;
  background: var(--accent-warm);
}

.thumb-planet .dot-a { left: 48px; top: 36px; }
.thumb-planet .dot-b { right: 56px; bottom: 26px; }

.thumb-management .bar,
.thumb-management .ledger {
  position: absolute;
  left: 18px;
  right: 18px;
  border-radius: 14px;
}

.thumb-management .ledger {
  top: 18px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.03);
}

.thumb-management .bar {
  bottom: 18px;
  width: 24px;
  right: auto;
  background: linear-gradient(180deg, rgba(126, 248, 221, 0.95), rgba(76, 181, 255, 0.72));
}

.thumb-management .bar-a { height: 28px; left: 38px; }
.thumb-management .bar-b { height: 44px; left: 78px; }
.thumb-management .bar-c { height: 66px; left: 118px; }
.thumb-management .bar-d { height: 88px; left: 158px; }

.thumb-fishing .sonar-ring,
.thumb-fishing .school-mark,
.thumb-fishing .sonar-sweep-line {
  position: absolute;
  border-radius: 999px;
}

.thumb-fishing .sonar-ring {
  border: 1px solid rgba(126, 248, 221, 0.2);
}

.thumb-fishing .ring-a {
  inset: 18px 52px;
}

.thumb-fishing .ring-b {
  inset: 32px 66px;
}

.thumb-fishing .ring-c {
  inset: 46px 80px;
}

.thumb-fishing .sonar-sweep-line {
  left: 50%;
  top: 18px;
  width: 2px;
  height: 82px;
  transform-origin: bottom center;
  transform: rotate(36deg);
  background: linear-gradient(180deg, rgba(126, 248, 221, 0), rgba(126, 248, 221, 0.82));
  box-shadow: 0 0 24px rgba(126, 248, 221, 0.22);
}

.thumb-fishing .school-mark {
  width: 11px;
  height: 11px;
  background: radial-gradient(circle at 30% 30%, #fff4d2, #ffd27d 55%, rgba(255, 210, 125, 0.25));
  box-shadow: 0 0 18px rgba(255, 210, 125, 0.36);
}

.thumb-fishing .mark-a { left: 52%; top: 32%; }
.thumb-fishing .mark-b { left: 60%; top: 42%; }
.thumb-fishing .mark-c { left: 68%; top: 36%; }

.thumb-solitaire .card {
  position: absolute;
  width: 76px;
  height: 96px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.thumb-solitaire .back {
  top: 20px;
  left: 28px;
  background:
    linear-gradient(135deg, rgba(126, 248, 221, 0.22), rgba(76, 181, 255, 0.28)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.08) 8px,
      transparent 8px,
      transparent 16px
    );
}

.thumb-solitaire .front {
  top: 16px;
  left: 92px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 236, 242, 0.96));
}

.thumb-solitaire .front::before,
.thumb-solitaire .front::after {
  content: "A";
  position: absolute;
  left: 12px;
  color: #0a1728;
  font-weight: 700;
}

.thumb-solitaire .front::before {
  top: 10px;
}

.thumb-solitaire .front::after {
  right: 12px;
  bottom: 10px;
  left: auto;
  transform: rotate(180deg);
}

.thumb-solitaire .top {
  top: 28px;
  left: 148px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(223, 230, 238, 0.94));
}

.active-game-shell,
.launch-panel {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.selected-game-copy {
  margin: 12px 0 0;
  max-width: 56ch;
}

.game-toolbar {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.game-toolbar[hidden] {
  display: none !important;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
}

.metric-card {
  padding: 18px 20px;
  border-radius: 18px;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
}

.difficulty-cluster {
  min-width: 270px;
}

.difficulty-picker,
.binary-pill-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.difficulty-picker button,
.binary-pill-row button {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.difficulty-picker button:hover,
.difficulty-picker button:focus-visible,
.binary-pill-row button:hover,
.binary-pill-row button:focus-visible {
  transform: translateY(-1px);
}

.difficulty-picker button.active,
.binary-pill-row button.active {
  color: #04111f;
  border-color: rgba(126, 248, 221, 0.4);
  background: linear-gradient(135deg, var(--accent) 0%, #a5fff0 100%);
}

.difficulty-picker button:disabled,
.binary-pill-row button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.toolbar-notes {
  align-items: end;
}

.control-copy {
  display: grid;
  gap: 8px;
}

.control-copy p {
  margin: 0;
}

.game-actions,
.binary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.game-actions {
  justify-content: flex-end;
}

.game-surface {
  position: relative;
  min-height: 340px;
  margin-top: 22px;
  padding: 20px;
  border-radius: calc(var(--radius-lg) - 8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 10%, rgba(76, 181, 255, 0.12), transparent 26%),
    radial-gradient(circle at 80% 88%, rgba(126, 248, 221, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(6, 18, 32, 0.84), rgba(2, 9, 18, 0.96));
}

.game-placeholder,
.game-loading,
.game-board-wrap,
.binary-panel,
.fishing-panel {
  min-height: 296px;
}

.game-placeholder,
.game-loading {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 14px;
}

.game-placeholder h3,
.game-loading strong {
  margin: 0;
}

.game-placeholder p,
.game-loading p {
  max-width: 44ch;
  margin: 0;
}

.placeholder-thumb {
  width: min(260px, 100%);
}

.placeholder-thumb .thumb {
  min-height: 150px;
  margin: 0 auto;
}

.game-placeholder[hidden],
.game-loading[hidden],
.game-board-wrap[hidden],
.binary-panel[hidden],
.fishing-panel[hidden] {
  display: none;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  animation: spin 900ms linear infinite;
}

.game-board-wrap {
  overflow-x: auto;
}

.board {
  --cols: 9;
  width: max-content;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--cols), 24px);
  gap: 4px;
}

.tile {
  width: 24px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-weight: 800;
  font-size: 0.74rem;
  cursor: pointer;
  color: #0c1724;
  background: linear-gradient(180deg, #b6fff1 0%, #68d0e8 100%);
  box-shadow:
    inset 0 -2px 0 rgba(6, 34, 48, 0.26),
    0 6px 14px rgba(0, 0, 0, 0.18);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.tile:hover {
  transform: translateY(-1px);
}

.tile:focus-visible {
  outline: 2px solid rgba(255, 210, 125, 0.88);
  outline-offset: 2px;
}

.tile.revealed,
.tile.mine,
.tile.exploded,
.tile.wrong-flag {
  cursor: default;
  transform: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tile.flagged {
  color: #08111f;
  background: linear-gradient(180deg, #ffd998 0%, var(--accent-warm) 100%);
  box-shadow:
    inset 0 -2px 0 rgba(92, 58, 0, 0.22),
    0 6px 14px rgba(0, 0, 0, 0.16);
}

.tile.mine,
.tile.exploded {
  background: linear-gradient(180deg, #ff9f8e 0%, var(--danger) 100%);
}

.tile.wrong-flag {
  color: #ffd9c3;
  background: rgba(140, 55, 35, 0.6);
}

.tile.n1 { color: #8be1ff; }
.tile.n2 { color: #6dfde1; }
.tile.n3 { color: #ffd27d; }
.tile.n4 { color: #d0b9ff; }
.tile.n5 { color: #ffb0a2; }
.tile.n6 { color: #b1ffe7; }
.tile.n7 { color: #f3f7fb; }
.tile.n8 { color: #c2d3e6; }

.binary-panel {
  display: grid;
  gap: 18px;
}

.fishing-panel {
  display: grid;
  gap: 18px;
}

.fishing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 14px;
}

.fishing-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%),
    rgba(6, 16, 28, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.fishing-card h3 {
  margin: 0;
  font-size: 1.16rem;
}

.fishing-panel-copy {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.sonar-stage {
  position: relative;
  min-height: 320px;
  margin-top: 18px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(126, 248, 221, 0.14);
  background:
    radial-gradient(circle at center, rgba(126, 248, 221, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(7, 24, 30, 0.95), rgba(1, 8, 14, 0.98));
}

.sonar-grid,
.sonar-crosshair,
.sonar-sweep,
.sonar-core,
.sonar-blip {
  position: absolute;
}

.sonar-grid {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(126, 248, 221, 0.16);
}

.sonar-grid.ring-a { width: 84%; height: 84%; }
.sonar-grid.ring-b { width: 62%; height: 62%; }
.sonar-grid.ring-c { width: 40%; height: 40%; }
.sonar-grid.ring-d { width: 18%; height: 18%; }

.sonar-crosshair {
  background: rgba(126, 248, 221, 0.1);
}

.sonar-crosshair.horizontal {
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
}

.sonar-crosshair.vertical {
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 1px;
}

.sonar-sweep {
  left: 50%;
  top: 50%;
  width: 48%;
  height: 48%;
  transform-origin: left top;
  background: linear-gradient(135deg, rgba(126, 248, 221, 0.34), rgba(126, 248, 221, 0));
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: 0.28;
}

.sonar-stage.is-scanning .sonar-sweep {
  animation: sonar-sweep 2.1s linear infinite;
}

.sonar-stage:not(.is-scanning) .sonar-sweep {
  transform: rotate(42deg);
}

.sonar-core {
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 35%, #ffffff, var(--accent) 60%, rgba(126, 248, 221, 0.2));
  box-shadow: 0 0 24px rgba(126, 248, 221, 0.36);
}

.sonar-stage.is-scanning .sonar-core {
  animation: sonar-core-pulse 1.2s ease-in-out infinite;
}

.sonar-blips {
  position: absolute;
  inset: 0;
}

.sonar-blip {
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fff6de, #ffd27d 56%, rgba(255, 210, 125, 0.2));
  box-shadow: 0 0 22px rgba(255, 210, 125, 0.3);
  animation: sonar-ping 1.8s ease-out infinite;
}

.sonar-blip.is-ghost {
  background: radial-gradient(circle at 35% 35%, rgba(126, 248, 221, 0.9), rgba(126, 248, 221, 0.25));
  box-shadow: 0 0 18px rgba(126, 248, 221, 0.22);
}

.sonar-stage.is-committed {
  border-color: rgba(255, 210, 125, 0.35);
}

.fishing-target-summary {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.fishing-target-summary strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.fishing-target-summary span {
  color: var(--muted);
  line-height: 1.7;
}

.fishing-signal-scale {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.fishing-signal-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.fishing-signal-item.is-active {
  border-color: rgba(126, 248, 221, 0.34);
  background:
    linear-gradient(180deg, rgba(126, 248, 221, 0.08), transparent 100%),
    rgba(255, 255, 255, 0.03);
}

.fishing-signal-rank {
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.fishing-signal-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.fishing-signal-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-warm) 100%);
}

.fishing-signal-item strong {
  grid-column: 2;
  font-size: 0.98rem;
}

.fishing-log-list li {
  display: grid;
  gap: 8px;
}

.fishing-log-top,
.fishing-log-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.fishing-log-top strong {
  font-size: 0.98rem;
}

.fishing-log-signal,
.fishing-log-bottom {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.binary-trade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.binary-card,
.binary-list-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%),
    rgba(6, 16, 28, 0.7);
}

.binary-input {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.binary-input span {
  color: var(--muted);
  font-size: 0.92rem;
}

.binary-input input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--text);
  font: inherit;
  background: rgba(255, 255, 255, 0.04);
}

.binary-start-button {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
}

.binary-market-note {
  margin: 0;
}

.binary-chart-card {
  overflow: hidden;
}

.binary-chart-shell {
  position: relative;
  margin-top: 16px;
  min-height: 220px;
  padding: 16px 16px 16px 56px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 18% 14%, rgba(76, 181, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.binary-chart {
  display: block;
  width: 100%;
  height: 188px;
}

.binary-chart-guide,
.binary-chart-future,
.binary-chart-path,
.binary-chart-progress {
  fill: none;
}

.binary-chart-guide {
  stroke: rgba(196, 214, 233, 0.1);
  stroke-width: 0.38;
  stroke-dasharray: 0.8 2.1;
}

.binary-chart-future {
  stroke: rgba(165, 184, 204, 0.18);
  stroke-width: 0.7;
  stroke-dasharray: 2.2 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.binary-chart-path {
  stroke: url(#binary-chart-gradient);
  stroke-width: 0.96;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 0 8px rgba(95, 169, 255, 0.16))
    drop-shadow(0 0 14px rgba(132, 241, 255, 0.08));
}

.binary-chart-progress {
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 0.42;
  stroke-dasharray: 0.9 2.7;
}

.binary-chart-point {
  fill: #f4fbff;
  stroke: rgba(95, 169, 255, 0.92);
  stroke-width: 0.48;
  filter:
    drop-shadow(0 0 8px rgba(95, 169, 255, 0.22))
    drop-shadow(0 0 14px rgba(132, 241, 255, 0.14));
}

.binary-chart-edge,
.binary-chart-meta span {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.binary-chart-edge {
  position: absolute;
  left: 14px;
}

.binary-chart-edge.top {
  top: 14px;
}

.binary-chart-edge.bottom {
  bottom: 14px;
}

.binary-chart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.binary-chart-meta strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.binary-chart-axis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.binary-chart-axis span:last-child {
  text-align: right;
}

.binary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.binary-card-head h3 {
  margin: 0;
  font-size: 1.16rem;
}

.binary-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.binary-list li {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.binary-line-top,
.binary-line-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.binary-symbol,
.binary-direction,
.binary-result {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.binary-direction.up,
.binary-result.won {
  color: var(--success);
}

.binary-direction.down,
.binary-result.lost {
  color: #ffb1a7;
}

.binary-result.draw {
  color: var(--accent-warm);
}

.binary-empty {
  color: var(--muted);
  text-align: center;
}

.launch-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  gap: 28px;
  align-items: start;
}

.flow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.flow-list li {
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.flow-list strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-warm);
  font-size: 1.15rem;
}

.flow-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.flow-list p {
  margin: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0 60px;
}

.footer-title {
  margin: 10px 0 0;
}

.footer-link {
  color: var(--accent);
  font-family: "Space Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fade-rise {
  animation: fade-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-scene.fade-rise {
  animation-delay: 180ms;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sonar-sweep {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes sonar-ping {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.92);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.22);
  }
}

@keyframes sonar-core-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.16);
  }
}

@media (max-width: 1180px) {
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .game-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .launch-panel,
  .binary-columns,
  .binary-trade-grid,
  .fishing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav,
  .language-switch {
    flex-wrap: wrap;
  }

  .game-stats,
  .difficulty-picker,
  .binary-pill-row {
    grid-template-columns: 1fr;
  }

  .toolbar-row,
  .active-game-head,
  .binary-line-top,
  .binary-line-bottom,
  .binary-chart-meta {
    flex-direction: column;
  }

  .difficulty-cluster {
    min-width: 0;
    width: 100%;
  }

  .game-actions,
  .binary-actions {
    width: 100%;
  }

  .game-actions .button,
  .binary-actions .button {
    width: 100%;
  }

  .binary-chart-axis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .binary-chart-axis span:nth-child(even) {
    text-align: right;
  }

  .binary-chart-shell {
    padding-left: 18px;
  }

  .sonar-stage {
    min-height: 280px;
  }

  .binary-chart-edge {
    position: static;
    display: inline-block;
    margin-bottom: 8px;
  }

  .active-game-shell,
  .launch-panel,
  .signal-card,
  .game-select-card,
  .scene-card,
  .binary-card,
  .binary-list-card {
    padding: 20px;
  }

  .orbit-stage {
    min-height: 420px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .fishing-log-top,
  .fishing-log-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .game-library {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-rise,
  .loading-spinner {
    animation: none;
  }

  .tile,
  .button,
  .difficulty-picker button,
  .binary-pill-row button,
  .language-switch button,
  .game-select-card {
    transition: none;
  }
}
