/* adventure-skins.css — district board finishes for the Adventure cabinet.
   Loads after adventure-layout.css. Active only when
   body[data-theme="adventure"][data-board-skin="<district id>"] names a known district;
   "default", empty or unknown ids fall through to adventure.css untouched.
   Every rule mirrors an adventure.css selector plus one [data-board-skin] attribute,
   so it out-ranks the original by exactly one attribute and changes nothing else.
   Tokens (--sk-*) are declared on the cabinet and result tray only — never on body,
   never on --av-* — so wallet, XP, Get Coins, map, Chat and scenery are unaffected.
   Wrapped in forced-colors:none so high-contrast mode keeps the system palette.
   Not touched: grid geometry, focus outlines, check/star ::after badges,
   grey dashed drawn misses, disabled saturation, transitions. */

@media (forced-colors: none) {

/* ---------- Token sets (scoped to cabinet + results tray) ---------- */
html body[data-theme="adventure"][data-theme][data-board-skin="gummy-grove"] #gameApp :is(.play-column, .results-section) {
  --sk-material: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23c5ec9b' opacity='.13'%3E%3Cpath d='M15 40Q2 8 38 9Q42 32 15 40ZM65 87Q43 64 81 48Q96 73 65 87Z'/%3E%3C/g%3E%3Cpath d='M12 46 29 19M62 92 78 59' stroke='%23e5f6c7' stroke-width='2' opacity='.1'/%3E%3C/svg%3E") 0 0 / 100px 100px;
  --sk-wood-hi: #719a65; --sk-wood: #356548; --sk-wood-deep: #244936; --sk-wood-ink: #122e25;
  --sk-gold: #ffc934; --sk-inset-a: #fff6e2; --sk-inset-b: #eaf6d6;
  --sk-detail: radial-gradient(circle at 12px 12px, #9dd68333 0 5px, transparent 6px) 0 0 / 36px 36px,
                radial-gradient(circle at 30px 28px, #ba8b3b26 0 4px, transparent 5px) 0 0 / 36px 36px;
  --sk-tile-a: #fffaf2; --sk-tile-b: #f1f7df; --sk-tile-edge: #9cc77d; --sk-tile-shadow: #5f9a4c; --sk-tile-text: #3f1f3a;
  --sk-sel-a: #167157; --sk-sel-b: #084a3c; --sk-sel-deep: #032e28;
  --sk-ball-light: #e8ffd9; --sk-ball-core: #72c95a; --sk-ball-dark: #2f7a2c; --sk-ball-text: #1f4a1a;
}
html body[data-theme="adventure"][data-theme][data-board-skin="lollipop-lane"] #gameApp :is(.play-column, .results-section) {
  --sk-material: repeating-linear-gradient(90deg, #0000 0 30px, #ffd24a26 30px 33px), linear-gradient(90deg, #ffffff10, #0000 50%, #ffffff10);
  --sk-wood-hi: #6075b5; --sk-wood: #34477f; --sk-wood-deep: #23335d; --sk-wood-ink: #101d3a;
  --sk-gold: #ffd24a; --sk-inset-a: #fff6ea; --sk-inset-b: #e4e9f6;
  --sk-detail: repeating-linear-gradient(-45deg, transparent 0 14px, #7083ba14 14px 22px, transparent 22px 30px, #c29d501f 30px 36px);
  --sk-tile-a: #fffaf6; --sk-tile-b: #e4eafa; --sk-tile-edge: #9caacb; --sk-tile-shadow: #5c709d; --sk-tile-text: #263151;
  --sk-sel-a: #573d95; --sk-sel-b: #322766; --sk-sel-deep: #1c1640;
  --sk-sel-stripe: repeating-linear-gradient(-45deg, #ffffff00 0 6px, #ffffff0a 6px 9px);
  --sk-ball-light: #f0f1ff; --sk-ball-core: #979ae8; --sk-ball-dark: #4b4a97; --sk-ball-text: #201942;
}
html body[data-theme="adventure"][data-theme][data-board-skin="chocolate-canyon"] #gameApp :is(.play-column, .results-section) {
  --sk-material: repeating-linear-gradient(176deg, #0000 0 18px, #ffb07a22 18px 22px, #0000 22px 40px, #3a120a26 40px 44px);
  --sk-wood-hi: #c98051; --sk-wood: #974d30; --sk-wood-deep: #602b23; --sk-wood-ink: #321713;
  --sk-gold: #f2b25a; --sk-inset-a: #fff3df; --sk-inset-b: #f3d8bd;
  --sk-detail: repeating-linear-gradient(178deg, transparent 0 22px, #be8e6c1f 22px 26px, transparent 26px 40px, #efaf711a 40px 42px);
  --sk-tile-a: #fff6ea; --sk-tile-b: #f1dcc4; --sk-tile-edge: #c49470; --sk-tile-shadow: #8a5a3e; --sk-tile-text: #3a1a12;
  --sk-sel-a: #a83a25; --sk-sel-b: #7b241b; --sk-sel-deep: #481712;
  --sk-ball-light: #ffe6c8; --sk-ball-core: #d08a50; --sk-ball-dark: #7a4024; --sk-ball-text: #3a1a0c;
}
html body[data-theme="adventure"][data-theme][data-board-skin="marshmallow-peaks"] #gameApp :is(.play-column, .results-section) {
  --sk-material: radial-gradient(60% 30% at 20% 105%, #ffffff40 0 60%, transparent 62%), radial-gradient(50% 26% at 80% 105%, #ffffff33 0 60%, transparent 62%), linear-gradient(160deg, #ffffff22, #0000 40%);
  --sk-wood-hi: #9fbacc; --sk-wood: #668ba5; --sk-wood-deep: #325471; --sk-wood-ink: #19364e;
  --sk-gold: #ffd56a; --sk-inset-a: #fffcf4; --sk-inset-b: #e9eefc;
  --sk-detail: radial-gradient(60% 40% at 15% 110%, #ffffffcc 0 60%, transparent 62%),
               radial-gradient(50% 36% at 85% 112%, #ffffffb0 0 60%, transparent 62%),
               radial-gradient(70% 50% at 50% 0%, #c5dafa55, transparent 70%);
  --sk-tile-a: #ffffff; --sk-tile-b: #eef0fb; --sk-tile-edge: #b9bfe3; --sk-tile-shadow: #8a8fbf; --sk-tile-text: #333660;
  --sk-sel-a: #406c9e; --sk-sel-b: #244970; --sk-sel-deep: #142e4a;
  --sk-ball-light: #ffffff; --sk-ball-core: #a2d4eb; --sk-ball-dark: #457a9c; --sk-ball-text: #17344a;
}
html body[data-theme="adventure"][data-theme][data-board-skin="caramel-coast"] #gameApp :is(.play-column, .results-section) {
  --sk-material: repeating-radial-gradient(circle at 50% 120%, #0000 0 22px, #7ae3ff22 22px 25px), repeating-linear-gradient(90deg, #0000 0 42px, #3a1a0a1a 42px 44px);
  --sk-wood-hi: #f0a25a; --sk-wood: #cf7434; --sk-wood-deep: #8e4524; --sk-wood-ink: #4a1e14;
  --sk-gold: #ffcf3e; --sk-inset-a: #fff4d4; --sk-inset-b: #ffe0b4;
  --sk-detail: linear-gradient(180deg, transparent 0 62%, #ee8c6014 62% 70%, #b9e6ef33 70% 100%);
  --sk-tile-a: #fffaea; --sk-tile-b: #fde3b6; --sk-tile-edge: #e2a660; --sk-tile-shadow: #b0702e; --sk-tile-text: #4a2210;
  --sk-sel-a: #087477; --sk-sel-b: #075356; --sk-sel-deep: #032f35;
  --sk-ball-light: #e6fbff; --sk-ball-core: #4fbcd0; --sk-ball-dark: #1a7088; --sk-ball-text: #0e3a48;
}
html body[data-theme="adventure"][data-theme][data-board-skin="licorice-lagoon"] #gameApp :is(.play-column, .results-section) {
  --sk-material: radial-gradient(circle at 15% 20%, #fff8 0 1.5px, transparent 2px) 0 0 / 38px 34px, radial-gradient(circle at 60% 70%, #9ff0e2aa 0 1.5px, transparent 2px) 0 0 / 52px 46px;
  --sk-wood-hi: #8d6a7c; --sk-wood: #5e4260; --sk-wood-deep: #3a2a4c; --sk-wood-ink: #1c1530;
  --sk-gold: #f5cf6a; --sk-inset-a: #fcf2e4; --sk-inset-b: #e6e2f4;
  --sk-detail: radial-gradient(circle at 8px 10px, #413c7033 0 1.5px, transparent 2.5px) 0 0 / 44px 40px,
               radial-gradient(circle at 30px 28px, #d897c840 0 2px, transparent 3px) 0 0 / 44px 40px;
  --sk-tile-a: #7468a1; --sk-tile-b: #39364f; --sk-tile-edge: #ada5d5; --sk-tile-shadow: #292338; --sk-tile-text: #fff5dd; --sk-gloss: #d9d5ff44;
  --sk-sel-a: #218080; --sk-sel-b: #0e5267; --sk-sel-deep: #102a42;
  --sk-ball-light: #eef4ff; --sk-ball-core: #72b8df; --sk-ball-dark: #2e5988; --sk-ball-text: #082742;
}

/* ---------- Cabinet (wood stain + trim) ---------- */
html body[data-theme="adventure"][data-theme][data-theme][data-theme]:is([data-board-skin="gummy-grove"],[data-board-skin="lollipop-lane"],[data-board-skin="chocolate-canyon"],[data-board-skin="marshmallow-peaks"],[data-board-skin="caramel-coast"],[data-board-skin="licorice-lagoon"]) #gameApp .play-column {
  background:
    radial-gradient(120% 22% at 50% 0%, #ffffff50 0 40%, transparent 42%),
    var(--sk-material, linear-gradient(transparent, transparent)),
    linear-gradient(180deg, var(--sk-wood-hi), var(--sk-wood) 40%, var(--sk-wood-deep));
  border-color: var(--sk-gold);
  box-shadow: 0 0 0 4px var(--sk-wood-ink), inset 0 4px 0 #ffffff40, inset 0 -8px 0 #0000003d, 0 10px 0 var(--sk-wood-ink), 0 24px 28px #2a083855;
}
html body[data-theme="adventure"][data-theme]:is([data-board-skin="gummy-grove"],[data-board-skin="lollipop-lane"],[data-board-skin="chocolate-canyon"],[data-board-skin="marshmallow-peaks"],[data-board-skin="caramel-coast"],[data-board-skin="licorice-lagoon"]) #gameApp .board-section {
  background: var(--sk-detail), linear-gradient(180deg, var(--sk-inset-a), var(--sk-inset-b));
  border-color: var(--sk-gold);
  box-shadow: 0 0 0 3px var(--sk-wood-ink), inset 0 4px 8px #3a1a0a2e, inset 0 -3px 0 #fff;
}
html body[data-theme="adventure"][data-theme]:is([data-board-skin="gummy-grove"],[data-board-skin="lollipop-lane"],[data-board-skin="chocolate-canyon"],[data-board-skin="marshmallow-peaks"],[data-board-skin="caramel-coast"],[data-board-skin="licorice-lagoon"]) #gameApp .controls-section {
  background: linear-gradient(180deg, #ffffff40 0 3px, transparent 3px), linear-gradient(180deg, var(--sk-wood), var(--sk-wood-deep));
  border-color: var(--sk-gold);
}

/* ---------- Tiles: idle face (drawn misses, picks, hits excluded) ---------- */
html body[data-theme="adventure"][data-theme]:is([data-board-skin="gummy-grove"],[data-board-skin="lollipop-lane"],[data-board-skin="chocolate-canyon"],[data-board-skin="marshmallow-peaks"],[data-board-skin="caramel-coast"],[data-board-skin="licorice-lagoon"]) #gameApp #numberGrid button.number:not(.is-selected):not(.is-match):not(.is-drawn) {
  color: var(--sk-tile-text);
  background: linear-gradient(180deg, #fff 0 2px, transparent 2px), linear-gradient(180deg, var(--sk-tile-a), var(--sk-tile-b));
  border-color: var(--sk-tile-edge);
  box-shadow: 0 3px 0 var(--sk-tile-shadow);
}
html body[data-theme="adventure"][data-theme]:is([data-board-skin="gummy-grove"],[data-board-skin="lollipop-lane"],[data-board-skin="chocolate-canyon"],[data-board-skin="marshmallow-peaks"],[data-board-skin="caramel-coast"],[data-board-skin="licorice-lagoon"]) #gameApp #numberGrid button.number:hover:not(:disabled):not(.is-disabled):not(.is-selected):not(.is-match):not(.is-drawn) {
  background: linear-gradient(#fff, var(--sk-tile-b));
}
html body[data-theme="adventure"][data-theme]:is([data-board-skin="gummy-grove"],[data-board-skin="lollipop-lane"],[data-board-skin="chocolate-canyon"],[data-board-skin="marshmallow-peaks"],[data-board-skin="caramel-coast"],[data-board-skin="licorice-lagoon"]) #gameApp #numberGrid button.number:active:not(:disabled):not(.is-selected):not(.is-match):not(.is-drawn) {
  box-shadow: 0 1px 0 var(--sk-tile-shadow);
}
html body[data-theme="adventure"][data-theme]:is([data-board-skin="gummy-grove"],[data-board-skin="lollipop-lane"],[data-board-skin="chocolate-canyon"],[data-board-skin="marshmallow-peaks"],[data-board-skin="caramel-coast"],[data-board-skin="licorice-lagoon"]) #gameApp #numberGrid button.number:is(:disabled, .is-disabled):not(.is-selected):not(.is-match):not(.is-drawn) {
  color: var(--sk-tile-text); opacity: .86;
}

/* ---------- Tiles: picks (district candy, checkmark ::after untouched) ---------- */
html body[data-theme="adventure"][data-theme]:is([data-board-skin="gummy-grove"],[data-board-skin="lollipop-lane"],[data-board-skin="chocolate-canyon"],[data-board-skin="marshmallow-peaks"],[data-board-skin="caramel-coast"],[data-board-skin="licorice-lagoon"]) #gameApp #numberGrid button.number.is-selected:not(.is-match):not(.is-drawn) {
  color: #fff;
  background: linear-gradient(180deg, #ffffff66 0 2px, transparent 2px), var(--sk-sel-stripe, linear-gradient(transparent, transparent)), linear-gradient(180deg, var(--sk-sel-a), var(--sk-sel-b));
  border-color: var(--sk-sel-deep);
  box-shadow: inset 0 3px 4px #1a0a2a55, 0 1px 0 var(--sk-sel-deep);
  text-shadow: 0 1px 0 var(--sk-sel-deep);
}

/* ---------- Results tray + drawn balls (match balls keep gold) ---------- */
html body[data-theme="adventure"][data-theme]:is([data-board-skin="gummy-grove"],[data-board-skin="lollipop-lane"],[data-board-skin="chocolate-canyon"],[data-board-skin="marshmallow-peaks"],[data-board-skin="caramel-coast"],[data-board-skin="licorice-lagoon"]) #gameApp .drawn-balls-container {
  --fx-ball-light: var(--sk-ball-light); --fx-ball-core: var(--sk-ball-core);
  --fx-ball-dark: var(--sk-ball-dark); --fx-ball-text: var(--sk-ball-text);
  background: linear-gradient(180deg, var(--sk-wood-deep), var(--sk-wood-ink));
  border-color: var(--sk-gold);
}

} /* forced-colors: none */

/* Keep the gallery's navigation and title separate when phone text is enlarged.
   This changes no game geometry, and applies to the default collection too. */
@media (max-width: 400px) {
  html body[data-theme="adventure"] #districtMap #mapSkins .skin-gallery-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  html body[data-theme="adventure"] #districtMap #mapSkins button.skin-gallery-back {
    min-width: 0; white-space: normal;
  }
}

@media (forced-colors: active) {
  /* adventure.css explicitly supplies system ButtonFace/Highlight paints.
     Preserve those system colors without Chromium's automatic white text
     backplate obscuring white numerals on the Highlight tile. */
  html body[data-theme="adventure"][data-theme] #gameApp #numberGrid button.number {
    forced-color-adjust: none;
  }
}
