body[data-game=jewels]{--hot:#ffe4a0;--frame:#84734d;--deck:#142332;--room-edge:#8d7a50;--bronze:#d3a35f;--glaze:#e5cb91;--board-light:#415569;background:radial-gradient(ellipse at center 0,#1b393d,transparent 68%),#0b131e}
body[data-game=jewels] main{max-width:575px;padding-inline:clamp(8px,3vw,17px)}
body[data-game=jewels] .play-shell{position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--room-edge);border-radius:19px;background:#111a26;padding:clamp(7px,2.5vw,13px);box-shadow:0 13px 32px #030910aa}
body[data-game=jewels] .play-shell::before{content:"";position:absolute;inset:0 0 auto;height:300px;z-index:-1;background-image:linear-gradient(0deg,#111a26 0%,#14222db8 35%,#0a182445 79%,#0a182464 100%),url('art/expedition-worlds.webp');background-size:100% 100%,max(200%,900px) auto;background-position:center,var(--world-x) var(--world-y);background-repeat:no-repeat}
body[data-game=jewels] .hero{min-height:clamp(84px,22vw,116px);background:none;border:0;border-radius:0;margin:0 0 7px;padding:3px 5px;align-items:end}
body[data-game=jewels] .hero::before{content:none}
body[data-game=jewels] .hero h1{font:700 clamp(2rem,7.6vw,3rem)/1 "DM Serif Text",Georgia,serif;letter-spacing:-.05em;color:#fff0cc;text-shadow:0 3px 9px #02070f}
body[data-game=jewels] .hero p{color:#ffe5a7;font-size:.69rem;letter-spacing:.16em}
body[data-game=jewels] .game-wallet{background:#141f2cd9;border-color:#877443;border-radius:9px}
body[data-game=jewels] .scoreboard div{background:linear-gradient(#2d3d4ae8,#17232de8);border-color:#8b794f;border-radius:9px;box-shadow:inset 0 1px 0 #ffe1a231}
body[data-game=jewels] .scoreboard strong{font-variant-numeric:tabular-nums}
body[data-game=jewels] .journey{max-width:none;gap:3px}
body[data-game=jewels] .journey strong{font-size:clamp(.71rem,2.85vw,.86rem)}
body[data-game=jewels] .checkpoints{max-width:none;margin-bottom:8px}
body[data-game=jewels] .checkpoints i{height:6px;background:#344d5d}
body[data-game=jewels] .checkpoints i[data-reached=true]{background:linear-gradient(90deg,#9c692d,#ffdb80);box-shadow:none}
.board-shell{position:relative;padding:clamp(5px,1.7vw,9px);border:1px solid var(--glaze);border-radius:13px;background:linear-gradient(152deg,#ffe8a3,#a56d36 20%,#573f2d 49%,#c48845 77%,#f5ce84);box-shadow:0 7px 14px #030b14, inset 0 0 0 2px #6a4a2b}
.board-shell::after{content:"";position:absolute;inset:3px;border:1px solid #fee6ad7a;border-radius:10px;pointer-events:none}
body[data-game=jewels] .gems{width:100%;max-width:none;background:#0b1522;border:1px solid #4c4233;border-radius:8px;margin:0;padding:4px;gap:3px;box-shadow:inset 0 0 0 2px #070e16}
body[data-game=jewels] .gem-slot{border:1px solid #5262745e;border-radius:6px;padding:3px;background:linear-gradient(140deg,#35465b,#182939 75%);box-shadow:inset 0 1px #c5daf333}
body[data-game=jewels] .gem-slot:nth-child(even){background:linear-gradient(140deg,#3c4b61,#1e3043 75%)}
body[data-game=jewels] .gem-slot[aria-pressed=true],body[data-game=jewels] .gem-slot.hint{border:2px solid #ffed98;background:#566559}
body[data-game=jewels] .gem-slot .gem-core{width:90%;height:90%;filter:none;color:#111c2a;box-shadow:inset 1px 1px 4px #fff8,inset -3px -5px 7px #100d33aa}
body[data-game=jewels] .gem-slot.clearing .gem-core{animation:facet-pop 100ms ease-out both}
@keyframes facet-pop{30%{opacity:1;scale:1.13}100%{opacity:.09;scale:.55}}
body[data-game=jewels] .boosts{max-width:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:8px}
body[data-game=jewels] .boosts button{min-width:0;font-size:clamp(.63rem,2.6vw,.78rem);padding:5px 2px;border-radius:7px}
body[data-game=jewels] button,body[data-game=jewels] header a{background:#20303e;border-color:#9a8458}
body[data-game=jewels] .reward button{background:var(--hot);color:#1d1722}
body[data-game=jewels].calm .play-shell::before{opacity:.3}
body[data-game=jewels].calm .gem-slot .gem-core{box-shadow:none}
body[data-game=jewels].calm .gem-slot.clearing .gem-core{animation:none}
@media(prefers-reduced-motion:reduce){body[data-game=jewels] .gem-slot.clearing .gem-core{animation:none}}
@media(max-width:360px){body[data-game=jewels] .gems{gap:2px;padding:3px}body[data-game=jewels] .gem-slot{padding:2px}}
