/* Sine Wave shell for Games Vault titles that share the standard menu.
   Activated with body.vault-tide. Game pieces (dice, number tiles) stay. */

body.vault-tide {
  --sea-0: #07141e;
  --sea-1: #0c2233;
  --foam: #f6f1e6;
  --foam-2: #fffdf8;
  --ink: #14202b;
  --ink-soft: #5c6b76;
  --line: #e4d9c8;
  --crest: #1f8f78;
  --crest-soft: #d7f4ec;
  --brass: #b6832f;
  --brass-2: #e4c27a;
  --brass-soft: #fff1d4;
  --coral: #c24b46;
  --tide-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --game-primary: #14202b;
  --game-secondary: #e4c27a;
  --game-text-primary: #f6f1e6;
  --game-text-muted: #b7c4cc;
  --primary: #14202b;
  --secondary: #b6832f;
  --card-bg: #fffdf8;
  --text-primary: #14202b;
  --text-secondary: #5c6b76;
  --card-border: #e4d9c8;
  --light: #f6f1e6;
  --primary-color: #14202b;
  --primary-hover: #0c2233;
  --success-color: #1f8f78;
  --bg-white: #fffdf8;
  --bg-light: #f6f1e6;
  --text-dark: #14202b;
  --border-color: #e4d9c8;
  --shadow: 0 18px 40px rgba(7, 20, 30, 0.18);
  color-scheme: dark;
  color: var(--foam);
  background:
    radial-gradient(900px 480px at 50% -10%, #1c4d6b 0%, transparent 58%),
    linear-gradient(180deg, #0e2940 0%, var(--sea-0) 42%, #061018 100%);
  font-family: var(--sans);
}

body.vault-tide,
body.vault-tide.game-menu-active,
body.vault-tide.countdown-page,
body.vault-tide .game-menu-screen,
body.vault-tide .game-menu-container,
body.vault-tide .game-screen,
body.vault-tide .game-container,
body.vault-tide:not(.arcade-cab) .game-menu-screen *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands),
body.vault-tide:not(.arcade-cab) .game-screen *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands),
body.vault-tide:not(.arcade-cab) .game-container *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: var(--sans) !important;
}

body.vault-tide::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 50% -10%, #1c4d6b 0%, transparent 58%),
    linear-gradient(180deg, #0e2940 0%, #07141e 42%, #061018 100%);
}

body.vault-tide::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

body.vault-tide .game-menu-screen::before,
body.vault-tide .game-menu-screen::after {
  display: none;
}

body.vault-tide .game-menu-screen {
  --game-primary: #14202b;
  --game-secondary: #e4c27a;
  background: transparent;
  color: var(--foam);
}

body.vault-tide .game-menu-container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 20px 36px;
  min-height: 0;
}

body.vault-tide .game-menu-container:has(.game-menu-hero) {
  max-width: 1160px;
  display: grid;
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  gap: 16px 22px;
  grid-template-areas:
    "nav"
    "legal"
    "hero"
    "board"
    "poster"
    "note"
    "log"
    "badges";
}

body.vault-tide .game-menu-topnav { grid-area: nav; }
body.vault-tide .game-menu-legal { grid-area: legal; margin: 0 !important; }
body.vault-tide .game-menu-hero { grid-area: hero; }
body.vault-tide .game-menu-actions,
body.vault-tide .game-menu-options { grid-area: board; }
body.vault-tide .game-menu-preview { grid-area: poster; }
body.vault-tide .countdown-highlight-card { grid-area: note; }
body.vault-tide .game-menu-stats-wrap { grid-area: log; }
body.vault-tide .badge-display-section { grid-area: badges; }

@media (min-width: 1041px) {
  body.vault-tide .game-menu-container:has(.game-menu-hero) {
    grid-template-columns: minmax(200px, 260px) minmax(280px, 1fr) minmax(200px, 250px);
    align-items: start;
    grid-template-areas:
      "nav nav nav"
      "legal legal legal"
      "hero hero hero"
      "poster board log"
      "note board log"
      "badges badges badges";
  }
  body.vault-tide .game-menu-preview,
  body.vault-tide .game-menu-stats-wrap {
    position: sticky;
    top: 16px;
  }

  body.vault-tide .game-menu-container:has(.game-menu-hero):not(:has(.game-menu-stats-wrap)) {
    grid-template-columns: minmax(220px, 280px) minmax(280px, 1fr);
    grid-template-areas:
      "nav nav"
      "legal legal"
      "hero hero"
      "poster board"
      "note board"
      "badges badges";
  }
}

body.vault-tide .game-menu-topnav__back,
body.vault-tide .game-menu-topnav__close,
body.vault-tide .game-menu-topnav__auth .gv-login-btn {
  background: transparent !important;
  border: 1px solid rgba(246, 241, 230, 0.22) !important;
  border-radius: 999px !important;
  color: var(--foam) !important;
  box-shadow: none !important;
}

body.vault-tide .game-menu-topnav__mark {
  color: var(--brass-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}

body.vault-tide .game-menu-legal a {
  color: #93a6b2 !important;
  text-decoration: none;
}

body.vault-tide .game-menu-hero {
  align-items: flex-start;
  text-align: left;
  padding: 4px 0 0;
  gap: 6px;
}

body.vault-tide .game-menu-hero::before {
  content: "Games Vault";
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--brass-2);
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif !important;
}

body.vault-tide .countdown-menu .game-menu-hero::before { content: "Daily numbers"; }
body.vault-tide .pidle-menu .game-menu-hero::before { content: "Irrational targets"; }
body.vault-tide .yahtzee-menu .game-menu-hero::before { content: "Five dice"; }
body.vault-tide .sudoku-menu .game-menu-hero::before { content: "Today's grid"; }
body.vault-tide .beetle-menu .game-menu-hero::before { content: "Today's drive"; }
body.vault-tide .pwordle-menu .game-menu-hero::before { content: "Five digits"; }
body.vault-tide .mathdle-menu .game-menu-hero::before { content: "Five letters"; }
body.vault-tide .connections-menu .game-menu-hero::before { content: "Four groups"; }
body.vault-tide .shutthebox-menu .game-menu-hero::before { content: "The box"; }
body.vault-tide .farkle-menu .game-menu-hero::before { content: "Six dice"; }
body.vault-tide .pig-menu .game-menu-hero::before { content: "The pig"; }
body.vault-tide .dicebox-menu .game-menu-hero::before { content: "The cup"; }
body.vault-tide .tetris-menu .game-menu-hero::before { content: "Forty lines"; }
body.vault-tide .minesweeper-menu .game-menu-hero::before { content: "Daily field"; }
body.vault-tide .hangmaths-menu .game-menu-hero::before { content: "The gallows"; }
body.vault-tide .twentyq-menu .game-menu-hero::before { content: "Twenty questions"; }
body.vault-tide .nim21-menu .game-menu-hero::before { content: "Twenty-one"; }
body.vault-tide .numbernectar-menu .game-menu-hero::before { content: "The garden"; }
body.vault-tide .marketmayhem-menu .game-menu-hero::before { content: "The stall"; }
body.vault-tide .primehunters-menu .game-menu-hero::before { content: "The duel"; }
body.vault-tide .equationelevator-menu .game-menu-hero::before { content: "The lift"; }
body.vault-tide .estimationstation-menu .game-menu-hero::before { content: "The departure"; }
body.vault-tide .fractionforge-menu .game-menu-hero::before { content: "The anvil"; }
body.vault-tide .patternpulse-menu .game-menu-hero::before { content: "The beat"; }
body.vault-tide .symmetrystudio-menu .game-menu-hero::before { content: "The studio"; }
body.vault-tide .vectorvoyage-menu .game-menu-hero::before { content: "The chart"; }
body.vault-tide .oddsevensduel-menu .game-menu-hero::before { content: "The table"; }

body.vault-tide .game-menu-hero__icon { display: none; }

body.vault-tide .game-menu-hero__title,
body.vault-tide.countdown-page .countdown-menu .game-menu-hero__title {
  justify-content: flex-start !important;
  width: auto !important;
}

body.vault-tide .game-menu-hero h1,
body.vault-tide .game-top-bar .game-title-header,
body.vault-tide:has(.yahtzee-menu) .game-top-bar .game-title-header,
body.vault-tide:has(.countdown-menu) .game-top-bar .game-title-header,
body.vault-tide .selection-card h2,
body.vault-tide .scorecard-title,
body.vault-tide .target-number,
body.vault-tide .choice-number,
body.vault-tide .number-tile,
body.vault-tide .stat-value,
body.vault-tide .modal-content h2,
body.vault-tide .game-menu-preview__date {
  font-family: var(--serif) !important;
  font-weight: 560 !important;
  letter-spacing: -0.03em !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

body.vault-tide .game-menu-hero h1,
body.vault-tide.countdown-page .countdown-menu .game-menu-hero__title h1 {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  background: none !important;
  color: var(--foam) !important;
  font-size: clamp(40px, 5vw, 58px) !important;
  line-height: 0.86 !important;
  text-indent: 0 !important;
  overflow: visible !important;
}

body.vault-tide .game-menu-button {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
}

body.vault-tide .game-menu-button-text { flex: 1 1 auto; }
body.vault-tide .game-menu-button-subtext {
  flex: 1 0 100%;
  padding-left: 34px;
}

body.vault-tide .game-menu-hero__subtitle {
  margin: 0;
  max-width: 38rem;
  color: #d5dde3;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
}

body.vault-tide .game-menu-hero__meta { display: none; }

body.vault-tide .game-menu-title {
  margin: 8px 0 0;
  font-size: clamp(40px, 5vw, 58px) !important;
  line-height: 0.86 !important;
  color: var(--foam) !important;
  text-shadow: none !important;
}

body.vault-tide .game-menu-subtitle {
  margin: 8px 0 0;
  max-width: 38rem;
  color: #d5dde3;
  font-size: 16px;
  line-height: 1.45;
}

body.vault-tide .game-menu-actions,
body.vault-tide .game-menu-options {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(180deg, var(--foam-2), var(--foam));
  color: var(--ink);
  color-scheme: light;
  border-radius: 22px;
  padding: 18px 16px 16px;
  box-shadow: var(--tide-shadow);
}

body.vault-tide .game-menu-button {
  width: 100%;
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  background: transparent !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  padding: 10px 14px !important;
  transform: none !important;
  text-align: left;
}

body.vault-tide .game-menu-button:hover {
  border-color: var(--brass) !important;
  background: var(--brass-soft) !important;
  transform: none !important;
}

body.vault-tide .game-menu-button.primary {
  background: var(--ink) !important;
  color: var(--foam) !important;
  border-color: var(--ink) !important;
}

/* 20Q paints every menu button white with an id selector. Cream rows need ink. */
body.vault-tide#twentyq-page .game-menu-button:not(.primary),
body.vault-tide#twentyq-page .game-menu-button:not(.primary) .game-menu-button-text {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
}

body.vault-tide#twentyq-page .game-menu-button:not(.primary) .game-menu-button-subtext {
  color: var(--ink-soft) !important;
  -webkit-text-fill-color: var(--ink-soft);
}

body.vault-tide .game-menu-button.primary:hover {
  background: #243646 !important;
}

body.vault-tide .game-menu-button.outline {
  background: transparent !important;
}

body.vault-tide .game-menu-button-icon {
  color: var(--brass);
}

body.vault-tide .game-menu-button.primary .game-menu-button-icon {
  color: var(--brass-2);
}

body.vault-tide .game-menu-button-text {
  font-size: 15px;
}

body.vault-tide .game-menu-button-subtext {
  color: var(--ink-soft) !important;
  font-size: 13px;
}

body.vault-tide .game-menu-button.primary .game-menu-button-subtext {
  color: #c5d4de !important;
}

body.vault-tide .yahtzee-menu .game-menu-preview,
body.vault-tide .game-menu-preview {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  grid-template-columns: none !important;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(228, 194, 122, 0.16), transparent 52%),
    linear-gradient(180deg, #14344a 0%, #0c2233 100%) !important;
  border: 1px solid rgba(228, 194, 122, 0.45) !important;
  border-left: 1px solid rgba(228, 194, 122, 0.45) !important;
  border-radius: 18px !important;
  padding: 28px 22px 20px !important;
  box-shadow: var(--tide-shadow);
  color: var(--foam);
  position: relative;
}

body.vault-tide .game-menu-preview::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(228, 194, 122, 0.28);
  border-radius: 12px;
  pointer-events: none;
}

body.vault-tide .game-menu-preview__badge,
body.vault-tide .yahtzee-menu .game-menu-preview__badge {
  position: relative;
  background: transparent !important;
  color: var(--brass-2) !important;
  border: 0 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 0;
}

body.vault-tide .game-menu-preview__date,
body.vault-tide .yahtzee-menu .game-menu-preview__date {
  position: relative;
  color: var(--foam) !important;
  font-size: 34px !important;
  line-height: 0.95;
}

body.vault-tide .game-menu-preview__countdown,
body.vault-tide .game-menu-preview__status,
body.vault-tide .yahtzee-menu .game-menu-preview__status,
body.vault-tide .yahtzee-menu .game-menu-preview__extras li,
body.vault-tide .yahtzee-menu .game-menu-preview__extras li strong {
  position: relative;
  color: #d5dde3 !important;
  background: transparent !important;
  border: 0 !important;
}

body.vault-tide .countdown-highlight-card {
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(228, 194, 122, 0.1), transparent 52%),
    rgba(8, 24, 36, 0.72) !important;
  border: 1px solid rgba(246, 241, 230, 0.1) !important;
  box-shadow: none !important;
  color: var(--foam);
}

body.vault-tide .countdown-highlight-card .highlight-body h2 {
  font-family: var(--serif) !important;
  font-weight: 560;
  color: var(--foam);
}

body.vault-tide .countdown-highlight-card .highlight-body p,
body.vault-tide .highlight-status,
body.vault-tide .meta-label {
  color: #b7c4cc;
}

body.vault-tide .highlight-badge,
body.vault-tide .meta-value {
  color: var(--brass-2);
  background: transparent;
  border: 1px solid rgba(228, 194, 122, 0.45);
}

body.vault-tide:not(.arcade-cab) .game-menu-screen *:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.mt-card[data-deck="disasters"] *),
body.vault-tide:not(.arcade-cab) .game-screen *:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.mt-card[data-deck="disasters"] *),
body.vault-tide:not(.arcade-cab) .game-container *:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.mt-card[data-deck="disasters"] *) {
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif !important;
}

body.vault-tide:not(.arcade-cab) .game-menu-screen h1:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.mt-card[data-deck="disasters"] *),
body.vault-tide:not(.arcade-cab) .game-menu-screen h2:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.mt-card[data-deck="disasters"] *),
body.vault-tide:not(.arcade-cab) .game-screen h1:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.mt-card[data-deck="disasters"] *),
body.vault-tide:not(.arcade-cab) .game-screen h2:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.mt-card[data-deck="disasters"] *),
body.vault-tide .game-container h1:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.mt-card[data-deck="disasters"] *),
body.vault-tide .game-container .target-number:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.mt-card[data-deck="disasters"] *),
body.vault-tide .game-container .choice-number:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.mt-card[data-deck="disasters"] *),
body.vault-tide .game-container .number-tile:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.mt-card[data-deck="disasters"] *),
body.vault-tide .game-menu-screen .stat-value:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.mt-card[data-deck="disasters"] *),
body.vault-tide .game-menu-screen .game-menu-preview__date:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.mt-card[data-deck="disasters"] *),
body.vault-tide .game-container .scorecard-title:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.mt-card[data-deck="disasters"] *),
body.vault-tide .game-title-header:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.mt-card[data-deck="disasters"] *) {
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
}

body.vault-tide .game-menu-stats-wrap,
body.vault-tide .game-menu-stats {
  display: block;
}

body.vault-tide .game-menu-stats {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(8, 24, 36, 0.72);
  border: 1px solid rgba(246, 241, 230, 0.1);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(8px);
}

body.vault-tide .game-menu-stats::before {
  content: "Your log";
  grid-column: 1 / -1;
  font-family: var(--serif) !important;
  font-weight: 560;
  font-size: 28px;
  line-height: 1;
  color: var(--foam);
  margin-bottom: 4px;
}

body.vault-tide .yahtzee-menu .game-menu-stats .stat-card,
body.vault-tide .game-menu-stats .stat-card,
body.vault-tide .game-menu-screen .stat-card {
  background: rgba(246, 241, 230, 0.05) !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  padding: 8px 10px !important;
  text-align: left;
  transform: none !important;
}

body.vault-tide .game-menu-stats .stat-value,
body.vault-tide .yahtzee-menu .game-menu-stats .stat-value {
  color: var(--foam) !important;
  font-size: 26px !important;
  line-height: 1;
}

body.vault-tide .game-menu-stats .stat-label {
  color: #b7c4cc !important;
  letter-spacing: 0.04em;
  text-transform: none;
}

body.vault-tide .game-menu-stats .stat-card i {
  display: none;
}

/* In-game chrome */
body.vault-tide .game-top-bar {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 0;
}

body.vault-tide .game-header-scoreboard {
  display: none !important;
}

body.vault-tide .game-top-bar .game-title-header,
body.vault-tide:has(.yahtzee-menu) .game-top-bar .game-title-header,
body.vault-tide:has(.countdown-menu) .game-top-bar .game-title-header,
body.vault-tide.with-game-header .game-top-bar h1.game-title-header,
body.vault-tide:has(.game-menu-screen) .game-top-bar h1.game-title-header {
  color: #f6f1e6 !important;
  -webkit-text-fill-color: #f6f1e6;
  font-size: clamp(32px, 4vw, 44px) !important;
  line-height: 0.9;
  text-shadow: none !important;
}

body.vault-tide .game-top-bar .game-title-header img { display: none; }

body.vault-tide .game-top-bar .top-bar-btn,
body.vault-tide .game-header-mobile-nav .top-bar-btn {
  background: transparent !important;
  border: 1px solid rgba(246, 241, 230, 0.22) !important;
  border-radius: 999px !important;
  color: var(--foam) !important;
}

body.vault-tide .game-container .btn,
body.vault-tide .dice-controls .btn {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--foam);
  box-shadow: none;
}

body.vault-tide .game-container .btn-secondary,
body.vault-tide .dice-controls .btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

body.vault-tide .game-container .btn-success {
  background: var(--crest);
  color: #fff;
}

body.vault-tide .game-container .btn-danger {
  background: var(--coral);
  color: #fff;
}

body.vault-tide .game-container .btn-primary:hover,
body.vault-tide .dice-controls .btn-primary:hover {
  background: #243646;
  transform: none;
  box-shadow: none;
}

body.vault-tide .selection-card,
body.vault-tide .numbers-card,
body.vault-tide .operations-card,
body.vault-tide .current-calc-card,
body.vault-tide .history-card,
body.vault-tide .stats-card,
body.vault-tide .control-buttons-column,
body.vault-tide .scorecard-section,
body.vault-tide .dice-section {
  background: linear-gradient(180deg, var(--foam-2), var(--foam)) !important;
  color: var(--ink) !important;
  color-scheme: light;
  border: 0 !important;
  border-radius: 22px !important;
  box-shadow: var(--tide-shadow) !important;
}

body.vault-tide .selection-card h2,
body.vault-tide .numbers-card h3,
body.vault-tide .operations-card h3,
body.vault-tide .current-calc-card h3,
body.vault-tide .history-card h3,
body.vault-tide .stats-card h3,
body.vault-tide .scorecard-title,
body.vault-tide .category-group-title {
  color: var(--ink) !important;
}

body.vault-tide .instruction-text { color: var(--ink-soft) !important; }

body.vault-tide .number-choice-btn {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  color: var(--ink) !important;
}

body.vault-tide .number-choice-btn.selected {
  background: var(--crest-soft) !important;
  border-color: #b7e6da !important;
  color: var(--crest) !important;
}

body.vault-tide .choice-number,
body.vault-tide .number-choice-btn.selected .choice-number,
body.vault-tide .number-choice-btn.selected .choice-label {
  color: inherit !important;
}

body.vault-tide .number-tile {
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  font-size: 28px !important;
}

body.vault-tide .number-tile.selected {
  background: var(--crest) !important;
  color: #fff !important;
  border-color: var(--crest) !important;
}

body.vault-tide .operation-btn {
  background: var(--brass-soft) !important;
  color: var(--brass) !important;
  border-radius: 12px !important;
}

body.vault-tide .operation-btn.selected {
  background: var(--ink) !important;
  color: var(--foam) !important;
}

body.vault-tide .target-card {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.vault-tide .target-label {
  color: var(--brass-2) !important;
  letter-spacing: 0.16em;
}

body.vault-tide .target-number {
  color: var(--foam) !important;
  font-size: clamp(56px, 8vw, 84px) !important;
  line-height: 0.86 !important;
  animation: none !important;
  text-shadow: none !important;
}

body.vault-tide .scorecard-row {
  border-color: var(--line);
}

body.vault-tide .scorecard-row.optimal,
body.vault-tide .scorecard-row.clickable:hover {
  background: var(--crest-soft);
  border-color: #b7e6da;
}

body.vault-tide .dice-container-game.held::after {
  border-color: var(--crest);
}

body.vault-tide .lock-overlay {
  background: var(--crest);
}

body.vault-tide .scorecard-grand-total-bar {
  background: #102838 !important;
  border-top: 1px solid rgba(228, 194, 122, 0.45) !important;
  color: var(--foam);
}

body.vault-tide .modal {
  background: rgba(5, 12, 18, 0.72);
}

body.vault-tide .modal-content,
body.vault-tide .dialog-card {
  background: var(--foam) !important;
  color: var(--ink) !important;
  color-scheme: light;
  border-radius: 18px !important;
  font-family: var(--sans) !important;
}

body.vault-tide .modal-content h2,
body.vault-tide .modal-content h3 {
  color: var(--ink);
}

body.vault-tide .game-message {
  color: var(--ink-soft);
}

@media (max-width: 1040px) {
  body.vault-tide .game-menu-hero { align-items: flex-start; }
  body.vault-tide .game-menu-stats { grid-template-columns: 1fr 1fr !important; }
}
