/* adventure-equipment.css — "Expedition toy chest" pass for the play surface.
   Lagoon-teal enamel + polished brass + sunlit timber, coral for the one big
   action. Loads after adventure-skins.css. Prefix carries three attributes so it
   out-ranks adventure.css/adventure-skins.css, while every finish colour is read
   through the existing --sk-* tokens (default finish = fallbacks), so all seven
   board finishes keep their identity with the new geometry. Presentation only:
   no tile ::after (check/star/battle badges) is touched; grey misses stay grey. */

body[data-theme="adventure"] {
  /* Treasure enamel: the lagoon tokens now carry plum-magenta. */
  --eq-lagoon-hi: #ff7fc8; --eq-lagoon: #d6338f; --eq-lagoon-deep: #8a1667; --eq-lagoon-ink: #3a0631;
  --eq-teal-hi: #7ff3e4; --eq-teal: #19b9b0; --eq-teal-deep: #0a6f78;
  --eq-brass-hi: #fff2b0; --eq-brass: #f7c23c; --eq-brass-deep: #b97a10; --eq-brass-ink: #5a3300;
  --eq-coral-hi: #ffa38c; --eq-coral: #f2533f; --eq-coral-deep: #a3241c;
  --eq-paper: #fff4e6; --eq-paper-deep: #f6d49c;
  --eq-action-surface: linear-gradient(180deg, #99ed6a, #398c30 30%, #237b28 55%, #155d22);
  --eq-rivet: radial-gradient(circle at 35% 30%, #fffbe0 0 18%, var(--eq-brass) 45%, var(--eq-brass-deep) 80%);
  --eq-press: cubic-bezier(.3,1.6,.5,1);
  --eq-compass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23b97a10' stroke-opacity='.22'%3E%3Ccircle cx='100' cy='100' r='92' stroke-width='5'/%3E%3Ccircle cx='100' cy='100' r='78' stroke-width='2' stroke-dasharray='3 7'/%3E%3C/g%3E%3Cg fill='%23b97a10' fill-opacity='.16'%3E%3Cpath d='M100 6 114 100 100 194 86 100Z'/%3E%3Cpath d='M6 100 100 86 194 100 100 114Z'/%3E%3C/g%3E%3Cg fill='%23f2533f' fill-opacity='.18'%3E%3Cpath d='M100 6 114 100H86Z'/%3E%3C/g%3E%3Ccircle cx='100' cy='100' r='9' fill='%23b97a10' fill-opacity='.25'/%3E%3C/svg%3E");
  --eq-rope: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10'%3E%3Cpath d='M0 5c4-6 8-6 12 0s8 6 12 0' fill='none' stroke='%23fff2b0' stroke-width='3'/%3E%3Cpath d='M0 5c4-6 8-6 12 0s8 6 12 0' fill='none' stroke='%235a3300' stroke-width='1' stroke-dasharray='2 4'/%3E%3C/svg%3E");
}

@media (forced-colors: none) {

/* Default finish: plum cabinet, gold bezel, cream keys,
   turquoise gems. :where() keeps it below every earned [data-board-skin]. */
:where(html body[data-theme="adventure"]) #gameApp :is(.play-column, .results-section) {
  --sk-wood-hi: #b54fb8; --sk-wood: #7a2486; --sk-wood-deep: #521463; --sk-wood-ink: #2a0838;
  --sk-gold: #ffcb3a; --sk-inset-a: #fff4e8; --sk-inset-b: #fbdcc7;
  --sk-tile-a: #fffdf6; --sk-tile-b: #ffe6c2; --sk-tile-edge: #f0b45a; --sk-tile-shadow: #c26a1c; --sk-tile-text: #4a0f45;
  --sk-sel-a: #119b99; --sk-sel-b: #075b68; --sk-sel-deep: #043c49;
}
html body[data-theme="adventure"] { background-color: #5b1a74; }

/* ---------------- Masthead: brass-banded expedition sign ---------------- */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .brand {
  border-radius: 26px 26px 18px 18px;
  background:
    radial-gradient(110% 55% at 50% 0%, #ffffff60 0 40%, transparent 42%),
    linear-gradient(180deg, #e35bb0, var(--eq-lagoon) 50%, var(--eq-lagoon-deep));
  border: 4px solid var(--eq-brass);
  box-shadow: 0 0 0 3px var(--eq-lagoon-ink), inset 0 -6px 0 #3a063155, 0 7px 0 var(--eq-lagoon-ink), 0 16px 22px #2a083866;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .brand h1 { color: var(--eq-brass-hi); -webkit-text-stroke: 1.5px var(--eq-lagoon-ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--av-wood-ink), 0 6px 0 #3a1a0655; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .brand h1 span span { color: var(--eq-teal-hi); }

/* ---------------- Utility nav: enamel chips ---------------- */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp :is(.game-help-link, .sound-toggle, .btn-pin, .account-launcher) {
  min-height: 44px; font-family: var(--av-font); font-weight: 700; color: #fff8ef;
  background: linear-gradient(180deg, #ffffff55 0 3px, transparent 3px), linear-gradient(180deg, var(--eq-lagoon-hi), var(--eq-lagoon) 45%, var(--eq-lagoon-deep));
  border: 3px solid #ffe0f1; border-radius: 16px; text-shadow: 0 1px 0 #ffffff88;
  box-shadow: 0 0 0 2px var(--eq-lagoon-ink), 0 4px 0 var(--eq-lagoon-ink), 0 7px 8px #3a063140;
  transition: transform .14s var(--eq-press), box-shadow .14s ease;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .account-launcher {
  color: var(--eq-brass-ink); text-shadow: 0 1px 0 #fff8;
  background: linear-gradient(180deg, #ffffffaa 0 3px, transparent 3px), linear-gradient(180deg, var(--eq-brass-hi), var(--eq-brass));
  border-color: var(--eq-paper); box-shadow: 0 0 0 2px var(--eq-brass-deep), 0 4px 0 var(--eq-brass-ink), 0 7px 8px #3a063140;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp :is(.game-help-link, .sound-toggle, .btn-pin, .account-launcher):hover:not(:disabled) { transform: translateY(-2px); }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp :is(.game-help-link, .sound-toggle, .btn-pin, .account-launcher):active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 2px var(--eq-lagoon-ink), 0 1px 0 var(--eq-lagoon-ink); }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .sound-toggle[aria-pressed="false"] { background: linear-gradient(#e9e6ee, #c9c4d2); color: #3e3946; text-shadow: none; border-color: #f5f3f8; box-shadow: 0 0 0 2px #6d6878, 0 4px 0 #6d6878; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp :is(.sound-toggle, .account-launcher):disabled { opacity: .78; }

/* ---------------- HUD tray: lagoon enamel rail with brass rivets ---------------- */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .header {
  position: relative; border-radius: 28px;
  background:
    linear-gradient(180deg, #ffffff30 0 3px, transparent 3px),
    linear-gradient(180deg, #7a2486, #4a1060);
  border: 3px solid var(--eq-brass); padding-inline: 18px;
  box-shadow: 0 0 0 3px var(--eq-lagoon-ink), inset 0 -4px 0 #3a063155, 0 6px 0 var(--eq-lagoon-ink), 0 12px 16px #3a063144;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .balance-pill { box-shadow: 0 0 0 2px var(--eq-brass-deep), inset 0 -3px 0 #b97a1055, 0 3px 0 var(--eq-brass-ink); }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp #balance,
html body[data-theme="adventure"][data-theme][data-theme] #gameApp #brickBalance { font-variant-numeric: tabular-nums; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .level-pill { box-shadow: 0 0 0 2px var(--av-star-deep), inset 0 -3px 0 #0a1f4a55, 0 3px 0 #0a1f4a; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .level-details progress {
  appearance: none; -webkit-appearance: none; height: 10px; border-radius: 99px; border: 2px solid #0a1f4a; background: #0a1f4a66; overflow: hidden;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .level-details progress::-webkit-progress-bar { background: #0a1f4a66; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .level-details progress::-webkit-progress-value { background: linear-gradient(180deg, var(--eq-brass-hi), var(--eq-brass) 60%, var(--eq-brass-deep)); border-radius: 99px; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .level-details progress::-moz-progress-bar { background: linear-gradient(180deg, var(--eq-brass-hi), var(--eq-brass)); }

/* Missions uses the same rounded reward plaque as its neighbors. */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .daily-systems-launcher {
  border-radius: 22px 22px 18px 18px; border: 3px solid var(--av-gold);
  background: linear-gradient(180deg, #ffffffaa 0 3px, transparent 3px), linear-gradient(var(--av-cream), var(--av-cream-deep));
  padding-inline: 6px; box-shadow: 0 0 0 2px var(--av-wood-ink), 0 4px 0 var(--av-wood-ink), 0 8px 10px #06375a44;
  transition: transform .14s var(--eq-press);
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .daily-systems-launcher.daily-systems-is-ready {
  background: linear-gradient(180deg, #ffffffaa 0 3px, transparent 3px), linear-gradient(var(--eq-brass-hi), var(--eq-brass));
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .daily-systems-launcher:hover:not(:disabled) { transform: translateY(-1px); }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .daily-systems-launcher:focus-visible { outline: 4px solid var(--av-focus); outline-offset: 4px; }

/* ---------------- Reward rail: toy plaques ---------------- */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp :is(.btn-get-coins, .btn-bonus, #mapButton.map-button, #dailyCalendarOpen) {
  border-radius: 22px 22px 18px 18px;
  transition: transform .16s var(--eq-press), box-shadow .16s ease;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .btn-bonus:not(.is-cooling):not(:disabled),
html body[data-theme="adventure"][data-theme][data-theme] #gameApp #mapButton.map-button {
  background:
    radial-gradient(120% 50% at 50% 0%, #ffffffb0 0 30%, transparent 32%),
    linear-gradient(180deg, var(--eq-lagoon-hi), var(--eq-lagoon) 55%, var(--eq-lagoon-deep));
   color: var(--eq-lagoon-ink); text-shadow: 0 1px 0 #ffffff88;
  border-color: #ffe0f1; box-shadow: 0 0 0 2px var(--eq-lagoon-ink), 0 5px 0 var(--eq-lagoon-ink), 0 9px 12px #3a063150;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp #mapButton .map-button-copy strong { color: #fff8ef; text-shadow: 0 1px 0 var(--eq-lagoon-ink); }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp #mapButton .map-button-copy small { background: var(--eq-paper); color: var(--eq-lagoon-ink); border-radius: 99px; padding: 0 6px; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .btn-get-coins:not(:disabled) {
  background: radial-gradient(120% 50% at 50% 0%, #ffffffc0 0 30%, transparent 32%), linear-gradient(180deg, var(--eq-brass-hi), var(--eq-brass) 60%, var(--eq-brass-deep));
  box-shadow: 0 0 0 2px var(--eq-brass-ink), 0 5px 0 var(--eq-brass-ink), 0 9px 12px #3a063150;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp :is(.btn-get-coins, .btn-bonus, #mapButton.map-button):hover:not(:disabled) { transform: translateY(-3px) scale(1.02); }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp :is(.btn-get-coins, .btn-bonus, #mapButton.map-button):active:not(:disabled) { transform: translateY(4px) scale(.98); box-shadow: 0 0 0 2px var(--eq-lagoon-ink), 0 1px 0 var(--eq-lagoon-ink); }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .bonus-countdown {
  background: linear-gradient(180deg, var(--av-wood), var(--av-wood-deep)); border: 2px solid var(--eq-brass); border-radius: 10px;
  box-shadow: 0 2px 0 var(--av-wood-ink); font-variant-numeric: tabular-nums;
}

/* ---------------- Cabinet: timber chest, brass-banded, rope trimmed ---------------- */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .play-column {
  border-radius: 34px 34px 28px 28px;
  background:
    linear-gradient(180deg, #ffffff40 0 3px, transparent 3px),
    radial-gradient(120% 22% at 50% 0%, #ffffff55 0 40%, transparent 42%),
    linear-gradient(180deg, var(--sk-wood-hi, var(--av-wood-hi)), var(--sk-wood, var(--av-wood)) 40%, var(--sk-wood-deep, var(--av-wood-deep)));
  border-color: var(--sk-gold, var(--av-gold));
  box-shadow: 0 0 0 4px var(--sk-wood-ink, var(--av-wood-ink)), inset 0 4px 0 #ffe6cc66, inset 0 -8px 0 #0000003d, 0 10px 0 var(--sk-wood-ink, var(--av-wood-ink)), 0 13px 0 #3a063166, 0 26px 30px #3a063155;
  padding-bottom: 20px;
}

/* Board well: recessed parchment with a faint compass rose */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .board-section {
  position: relative; isolation: isolate; border-radius: 22px;
  background: var(--sk-detail, linear-gradient(transparent, transparent)), linear-gradient(180deg, var(--sk-inset-a, var(--av-cream)), var(--sk-inset-b, #fbe7bd));
  border-color: var(--sk-gold, var(--av-gold));
  box-shadow: 0 0 0 3px var(--sk-wood-ink, var(--av-wood-ink)), 0 3px 0 3px #ffffff33, inset 0 6px 10px #3a1a0a3a, inset 0 -3px 0 #fff;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .board-section::before {
  content: ""; display: block; position: absolute; inset: 10%; z-index: -1; pointer-events: none;
  background: var(--eq-compass) center / contain no-repeat; opacity: .45;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .number-grid { position: relative; z-index: 1; }

/* Tiles: chunky glossy toy keys */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp #numberGrid button.number {
  border-radius: 16px; font-size: 1.18rem; font-weight: 800; font-variant-numeric: tabular-nums;
  transition: transform .12s var(--eq-press), box-shadow .12s ease, filter .12s ease;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp #numberGrid button.number:not(.is-selected):not(.is-match):not(.is-drawn) {
  color: var(--sk-tile-text, var(--av-wood-ink));
  background:
    radial-gradient(90% 46% at 50% 6%, var(--sk-gloss, #ffffffe6) 0 40%, transparent 42%),
    linear-gradient(180deg, var(--sk-tile-a, #fffaf0), var(--sk-tile-b, #f6e4be));
  border: 2px solid var(--sk-tile-edge, #d8a75e);
  box-shadow: inset 0 -5px 0 #8a166722, inset 0 2px 0 #fff, 0 5px 0 var(--sk-tile-shadow, #b77a34), 0 7px 6px #3a063133;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp #numberGrid button.number:hover:not(:disabled):not(.is-disabled):not(.is-selected):not(.is-match):not(.is-drawn) {
  transform: translateY(-2px); filter: brightness(1.04);
  box-shadow: inset 0 -3px 0 #0000000f, 0 6px 0 var(--sk-tile-shadow, #b77a34), 0 8px 6px #3a1a0a2e;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp #numberGrid button.number:active:not(:disabled):not(.is-selected):not(.is-match):not(.is-drawn) {
  transform: translateY(3px); box-shadow: 0 1px 0 var(--sk-tile-shadow, #b77a34);
}
/* Selected: inset expedition gem, with the existing local selection badge. */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp #numberGrid button.number.is-selected:not(.is-match):not(.is-drawn) {
  color: #fff;
  background:
    radial-gradient(80% 40% at 50% 10%, #ffffff70 0 40%, transparent 42%),
    var(--sk-sel-stripe, linear-gradient(transparent, transparent)),
    linear-gradient(180deg, var(--sk-sel-a, #19b9b0), var(--sk-sel-b, #0a5f6a));
  border: 2px solid var(--sk-sel-deep, #033537);
  box-shadow: inset 0 3px 5px #3a063166, inset 0 -2px 0 #ffffff30, 0 0 0 2px #fff8, 0 1px 0 var(--sk-sel-deep, #033537);
  transform: translateY(3px);
}
/* Selected and drawn but not hit (in-flight state) keeps pick colour */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp #numberGrid button.number.is-match {
  background: radial-gradient(80% 44% at 50% 8%, #ffffffd0 0 38%, transparent 40%), radial-gradient(circle at 40% 30%, var(--av-gold-hi), var(--av-gold) 60%, var(--av-gold-deep));
  box-shadow: 0 0 0 2px var(--av-gold-hi), 0 0 0 4px var(--av-wood-ink), 0 3px 0 4px var(--av-wood-ink);
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp #numberGrid button.number.is-drawn:not(.is-match) {
  border-radius: 10px 15px 12px 9px; box-shadow: inset 0 2px 4px #0000001f; transform: translateY(2px);
}

/* ---------------- Control ledge ---------------- */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .controls-section {
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff40 0 3px, transparent 3px),
    linear-gradient(180deg, var(--sk-wood, var(--av-wood)), var(--sk-wood-deep, var(--av-wood-deep)));
  border-color: var(--sk-gold, var(--av-gold));
  box-shadow: inset 0 6px 10px #00000040, 0 0 0 2px var(--sk-wood-ink, var(--av-wood-ink));
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .bet-label { text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .btn-bet {
  min-height: 44px; border-radius: 50% / 46%; min-width: 58px; border: 3px solid var(--eq-paper);
  background: radial-gradient(70% 40% at 50% 12%, #ffffffd0 0 40%, transparent 42%), radial-gradient(circle at 50% 55%, transparent 0 58%, #c26a1c33 60% 64%, transparent 66%), linear-gradient(180deg, #fff3cf, #f3c86e);
  color: #4a0f45; font-weight: 800;
  box-shadow: 0 0 0 2px #2a0838, 0 4px 0 #8a4a10, 0 5px 0 2px #2a0838; font-variant-numeric: tabular-nums;
  transition: transform .12s var(--eq-press), box-shadow .12s ease;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .custom-bet-option { border-radius: 18px; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .btn-bet.is-active {
  background: radial-gradient(70% 40% at 50% 12%, #ffffffc0 0 40%, transparent 42%), linear-gradient(180deg, var(--eq-brass-hi), var(--eq-brass) 60%, var(--eq-brass-deep));
  color: var(--eq-brass-ink); border-color: #fff8d8;
  box-shadow: inset 0 3px 4px #5a330055, 0 0 0 2px var(--av-wood-ink), 0 1px 0 var(--av-wood-ink); transform: translateY(3px);
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .btn-bet:hover:not(:disabled):not(.is-active) { transform: translateY(-2px); }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .game-status:not(.sr-only) {
  background: linear-gradient(180deg, #ffffffa0 0 2px, transparent 2px), linear-gradient(var(--eq-paper), var(--eq-paper-deep));
  border: 2px solid var(--sk-gold, var(--av-gold)); border-radius: 14px; box-shadow: inset 0 2px 4px #3a1a0a22, 0 2px 0 var(--sk-wood-ink, var(--av-wood-ink));
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .action-panel > .selection-tracker {
  background: linear-gradient(180deg, var(--eq-lagoon-deep), #6e0f58); color: #fff; border: 2px solid #ffe0f1; box-shadow: 0 0 0 2px var(--eq-lagoon-ink); font-variant-numeric: tabular-nums;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .btn-action {
  border-radius: 18px; border-color: #ffe0f1; color: var(--eq-lagoon-ink); text-shadow: 0 1px 0 #ffffff88;
  background: radial-gradient(90% 44% at 50% 8%, #ffffff80 0 40%, transparent 42%), linear-gradient(180deg, var(--eq-teal-hi), var(--eq-teal) 55%, var(--eq-teal-deep));
  color: #073b46; text-shadow: 0 1px 0 #ffffff88; border-color: #e0fffb; font-weight: 800;
  box-shadow: 0 0 0 2px #023339, 0 5px 0 #023339, 0 8px 8px #00000033;
  transition: transform .12s var(--eq-press), box-shadow .12s ease;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .btn-clear {
  color: var(--av-wood-ink); text-shadow: 0 1px 0 #fff8; border-color: #fff;
  background: radial-gradient(90% 44% at 50% 8%, #ffffffd0 0 40%, transparent 42%), linear-gradient(180deg, var(--eq-paper), var(--eq-paper-deep));
  box-shadow: 0 0 0 2px var(--av-wood-ink), 0 5px 0 var(--av-wood-ink), 0 8px 8px #00000033;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .btn-action:hover:not(:disabled) { transform: translateY(-2px); }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .btn-action:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 2px var(--eq-lagoon-ink), 0 1px 0 var(--eq-lagoon-ink); }
/* PLAY: sculpted green enamel with a gold bezel and readable white lettering. */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .btn-play {
  position: relative; border-radius: 26px; border: 4px solid #ffe8dc;
  /* The longer DRAWING… label must also fit at enlarged phone text sizes. */
  white-space: normal; overflow-wrap: anywhere;
  background:
    radial-gradient(90% 40% at 50% 6%, #ffffffb0 0 40%, transparent 42%),
    var(--eq-action-surface);
  border-color: #eaffcf; color: #fff; text-shadow: 0 2px 0 #145c12, 0 3px 0 #0b3a09; letter-spacing: .06em;
  box-shadow: 0 0 0 3px #145c12, 0 0 0 7px var(--eq-brass), 0 0 0 9px var(--av-wood-ink), 0 9px 0 9px var(--av-wood-ink), 0 18px 18px 6px #2a0e0244;
  transition: transform .14s var(--eq-press), box-shadow .14s ease, filter .14s ease;
}
/* The bezel paints 9px outside PLAY; hover lifts it 2px. Reserve normal-flow
   headroom for the bezel/keyboard halo and a clear secondary-row gap. On phones,
   also separate the first action row's 5px depth from PLAY's raised bezel.
   The secondary row and section padding cover bottom depth and focus halos. */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .action-panel {
  padding-top: 14px; padding-bottom: 0; gap: 22px 14px; padding-inline: 8px;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .btn-play:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06) saturate(1.05); }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .btn-play:active:not(:disabled) {
  transform: translateY(7px);
  box-shadow: 0 0 0 3px #145c12, 0 0 0 7px var(--eq-brass), 0 0 0 9px var(--av-wood-ink), 0 2px 0 9px var(--av-wood-ink);
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp :is(.btn-play, .btn-action, .btn-bet):disabled { filter: saturate(.5); opacity: .85; }

/* ---------------- Results: brass-bound ball tray ---------------- */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp :is(.results-section, .paytable-section, .community-panel) {
  position: relative; border-radius: 26px;
  background:
    radial-gradient(120% 18% at 50% 0%, #fff 0 40%, transparent 42%), linear-gradient(180deg, var(--eq-paper), #fbe0c0);
  border: 4px solid var(--eq-brass);
  box-shadow: 0 0 0 3px #2a0838, inset 0 -5px 0 #f0b45a55, 0 8px 0 #2a0838, 0 18px 24px #2a083855;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp :is(.section-title, .community-panel h2) {
  display: block; width: fit-content; max-width: 100%; margin-inline: auto; padding: 4px 20px 6px; border-radius: 12px;
  color: var(--eq-brass-hi); -webkit-text-stroke: 1px var(--av-wood-ink); paint-order: stroke fill;
  text-shadow: 0 2px 0 var(--av-wood-ink);
  -webkit-text-stroke-color: var(--eq-lagoon-ink); text-shadow: 0 2px 0 var(--eq-lagoon-ink);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%); padding-inline: 26px;
  background: radial-gradient(100% 50% at 50% 0%, #ffffff55 0 40%, transparent 42%), linear-gradient(180deg, #e35bb0, var(--eq-lagoon) 55%, var(--eq-lagoon-deep));
  box-shadow: none; border-radius: 4px;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .community-panel-head { text-align: center; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .drawn-balls-container {
  border-radius: 20px; border-width: 4px;
  box-shadow: inset 0 6px 12px #1a0802aa, inset 0 -2px 0 #ffffff22, 0 0 0 2px var(--av-wood-ink), 0 3px 0 2px #ffffff55;
}
/* Decorative idle diorama only. The first live ball removes it synchronously;
   it never covers results, receives input or invents a reward. */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp #drawnList:not(:has(.draw-ball)) {
  background-image: url("adventure-assets/companion.webp"), url("adventure-assets/map.webp"),
    radial-gradient(ellipse at 50% 30%, #9ceee2, #44adba 72%, #1f708b);
  background-position: 16% 100%, 86% 68%, center;
  background-size: auto 92%, 43% auto, cover;
  background-repeat: no-repeat;
  box-shadow: inset 0 3px 9px #0d3c5940, inset 0 -3px 0 #ffffff44;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .draw-ball {
  font-variant-numeric: tabular-nums;
  background: radial-gradient(circle at 34% 26%, #fff 0 9%, var(--fx-ball-light) 10% 24%, var(--fx-ball-core) 62%, var(--fx-ball-dark));
  box-shadow: inset 0 -3px 0 #00000026, 0 3px 0 var(--fx-ball-shadow, #0005);
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .draw-ball.is-match {
  background: radial-gradient(circle at 34% 26%, #fff 0 9%, var(--fx-match-light) 10% 24%, var(--fx-match-core) 62%, var(--fx-match-dark));
  box-shadow: 0 0 0 2px var(--av-gold-hi), 0 3px 0 2px var(--av-wood-ink);
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .stat-box {
  border-radius: 16px; border: 3px solid #fff;
  background: radial-gradient(90% 40% at 50% 0%, #ffffff 0 40%, transparent 42%), linear-gradient(180deg, #fffaf0, var(--eq-paper-deep));
  box-shadow: 0 0 0 2px var(--av-wood-deep), 0 4px 0 var(--av-wood-deep);
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .stat-value { font-variant-numeric: tabular-nums; font-size: 1.35rem; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .stat-highlight { background: radial-gradient(90% 40% at 50% 0%, #fffbe0 0 40%, transparent 42%), linear-gradient(180deg, var(--eq-brass-hi), var(--eq-brass)); box-shadow: 0 0 0 2px var(--eq-brass-ink), 0 4px 0 var(--eq-brass-ink); }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .stat-bricks { background: radial-gradient(90% 40% at 50% 0%, #fff0f8 0 40%, transparent 42%), linear-gradient(180deg, #ffd2ec, #ff9fd2); box-shadow: 0 0 0 2px var(--av-berry-deep), 0 4px 0 var(--av-berry-deep); }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp :is(.reward-event-notice, .round-reward-label) { border-radius: 14px; box-shadow: 0 3px 0 var(--av-berry-deep); }

/* Paytable: ledger rows on brass rails */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .table-container { border-radius: 16px; }
/* Reserve space for match labels even with the longer coins-back header. */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .paytable { table-layout: fixed; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .paytable th {
  background: linear-gradient(180deg, #c2207a, var(--eq-lagoon-deep)); color: #fff; text-shadow: 0 1px 0 var(--eq-lagoon-ink);
  border-bottom: 3px solid var(--eq-brass);
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .paytable th:first-child { width: 48%; border-radius: 12px 0 0 12px; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .paytable th:last-child { border-radius: 0 12px 12px 0; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .paytable td { font-variant-numeric: tabular-nums; box-shadow: 0 2px 0 var(--eq-paper-deep); }
/* Enlarged text must wrap labels/large multipliers instead of making the
   whole 320px game scroll sideways. Values and type sizes stay unchanged. */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .paytable :is(th, td) { overflow-wrap: anywhere; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .paytable td:first-child { border-radius: 10px 0 0 10px; font-weight: 700; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .paytable td:last-child { border-radius: 0 10px 10px 0; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .paytable tr:not(.is-zero) td:last-child { color: var(--eq-lagoon-deep); font-weight: 700; }
@media (max-width: 500px) {
  html body[data-theme="adventure"][data-theme][data-theme] #gameApp .paytable :is(th, td) { padding-inline: 8px; }
}

/* Chat + community rows */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .community-feed { border: 3px solid #fff; box-shadow: 0 0 0 2px var(--eq-paper-deep), 0 3px 0 2px var(--eq-paper-deep); }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .community-list > * { border-radius: 12px; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .community-field { border-radius: 14px; box-shadow: inset 0 2px 4px #3a1a0a22; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .community-button,
html body[data-theme="adventure"][data-theme][data-theme] #gameApp #communityChatLock #communityChatSignIn.community-button {
  background: radial-gradient(90% 44% at 50% 8%, #ffffff60 0 40%, transparent 42%), linear-gradient(180deg, var(--eq-lagoon-hi), #a81577 40%, var(--eq-lagoon-deep));
  color: #fff8ef; text-shadow: 0 1px 0 var(--eq-lagoon-ink);
  border-color: #ffe0f1; box-shadow: 0 0 0 2px var(--eq-lagoon-ink), 0 4px 0 var(--eq-lagoon-ink); border-radius: 16px;
  transition: transform .12s var(--eq-press);
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .community-button:active:not(:disabled) { transform: translateY(3px); }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp #communityChatLock { border-radius: 16px; border: 3px dashed var(--av-wood); }

/* Footer plank */
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .footer-section {
  background: linear-gradient(180deg, #4a1060e6, #2a0838e6); color: var(--eq-paper); border: 3px solid var(--eq-brass); border-radius: 26px;
  box-shadow: 0 0 0 2px #2a0838, 0 6px 0 #2a0838;
}
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .legal-links a { color: var(--eq-brass-hi); background: #43104f; border: 2px solid var(--eq-brass); font-weight: 700; text-underline-offset: 3px; }
html body[data-theme="adventure"][data-theme][data-theme] #gameApp .footer-coin-value { background: #ffffff1a; color: var(--eq-paper); border-radius: 99px; font-weight: 700; }

/* ---------------- Bounded micro-interactions (on action only) ---------------- */
@media (prefers-reduced-motion: no-preference) {
  html body[data-theme="adventure"][data-theme][data-theme]:not(.fx-reduced-motion) #gameApp #numberGrid button.number.is-selected:not(.is-match):not(.is-drawn) { animation: eq-gem-set .26s var(--eq-press) 1; }
  html body[data-theme="adventure"][data-theme][data-theme]:not(.fx-reduced-motion) #gameApp #numberGrid button.number.is-match { animation: eq-hit-pop .42s var(--eq-press) 1; }
  html body[data-theme="adventure"][data-theme][data-theme]:not(.fx-reduced-motion) #gameApp .btn-bet.is-active { animation: eq-coin-set .24s var(--eq-press) 1; }
}
@media (prefers-reduced-motion: no-preference) {
  html body[data-theme="adventure"][data-theme][data-theme]:not(.fx-reduced-motion) #gameApp .draw-ball.is-match { animation: eq-hit-pop .38s var(--eq-press) 1; }
}
@keyframes eq-gem-set { 0% { transform: translateY(0) scale(1); } 50% { transform: translateY(4px) scale(.92); } 100% { transform: translateY(3px) scale(1); } }
@keyframes eq-hit-pop { 0% { transform: scale(.86); } 55% { transform: scale(1.12) rotate(-3deg); } 100% { transform: scale(1); } }
@keyframes eq-coin-set { 0% { transform: translateY(0); } 60% { transform: translateY(5px) scale(.95); } 100% { transform: translateY(3px); } }

} /* forced-colors: none */

/* App + OS reduced motion: drop press travel transitions, keep static states. */
@media (prefers-reduced-motion: reduce) {
  html body[data-theme="adventure"] #gameApp :is(button, .game-help-link) { transition: none !important; }
}
html body[data-theme="adventure"].fx-reduced-motion #gameApp :is(button, .game-help-link) { transition: none !important; animation: none; }
@media (max-width: 620px) {
  html body[data-theme="adventure"][data-theme][data-theme] #gameApp .header { padding-inline: 12px; }
  html body[data-theme="adventure"][data-theme][data-theme] #gameApp .action-panel {
    padding-inline: 10px;
    /* Keep ownership of the two selection columns even at enlarged text. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html body[data-theme="adventure"][data-theme][data-theme] #gameApp .btn-action { white-space: normal; overflow-wrap: anywhere; }
  html body[data-theme="adventure"][data-theme][data-theme] #gameApp .btn-play { grid-column: 1 / -1; grid-row: 3; }
  html body[data-theme="adventure"][data-theme][data-theme] #gameApp .draw-speed-controls { grid-column: 1 / -1; grid-row: 4; }
}

/* Terracotta brick fallback: no candy hue shift */
html body[data-theme="adventure"][data-theme][data-theme] :is(#gameApp, .candy-map) svg.icon-brick:not([data-adventure-art-ready="true"]) { filter: drop-shadow(0 2px 0 #4a1a0866); }
