*{box-sizing:border-box}[hidden]{display:none!important}
:root{font-family:Arial,'Segoe UI',sans-serif;font-synthesis:none;-webkit-font-smoothing:antialiased}
body{margin:0;min-width:0;--paper:#fff;--ink:#212922;--muted:#7d827e;--line:#e1e4df;--accent:#347454;--cell:#e8eee7;--cell-alt:#e8eee7;--seam:#c3cfc1;background:var(--paper);color:var(--ink)}
button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}a{color:inherit}svg{display:block}button svg{pointer-events:none}
.app{max-width:650px;padding:0 32px 115px;margin:auto}.game-header{height:83px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.identity{display:flex;align-items:center;gap:11px}.identity h1{font-size:27px;letter-spacing:-1px;font-weight:700;margin:0}#brand-symbol{width:28px;height:28px}#brand-symbol svg{width:100%;height:100%}.icon-button{border:1px solid #cfd5cd;background:none;border-radius:50%;height:27px;width:27px;font-size:15px;font-weight:600}.mode-switch{display:flex;justify-content:center;gap:28px;margin:21px 0 26px}.mode-switch button{background:none;border:0;border-bottom:2px solid transparent;padding:6px 0 9px;font-size:12px;color:var(--muted)}.mode-switch button[aria-pressed=true]{color:var(--ink);border-color:var(--ink);font-weight:600}
.game-layout{width:384px;max-width:100%;margin:auto;display:grid;grid-template-columns:minmax(0,1fr);gap:17px}.puzzle-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.eyebrow{display:block;font-size:9px;letter-spacing:.12em;font-weight:600;color:var(--muted);line-height:1.5}.puzzle-heading h2{font-size:18px;font-weight:500;letter-spacing:-.4px;line-height:1.3;margin:5px 0 0}.puzzle-heading>span{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.stats{display:flex;gap:15px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.stat{flex:1;min-width:0}.stat>span:first-child{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.stat strong{display:block;font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.15;letter-spacing:-.6px}.stat small{font-size:11px;font-weight:400;color:var(--muted)}.stat-note{display:none;font-size:9px;color:var(--muted);margin-top:6px}.play-area{min-width:0}.board-frame{position:relative}.board-stage{width:100%;aspect-ratio:1;position:relative;isolation:isolate;overflow:hidden;background:#fff;border:1px solid var(--seam)}.board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));gap:0;aspect-ratio:1;width:100%;height:100%;position:relative;z-index:1}
/* Cells always touch and stay square. Scale, surface, lighting and objects vary. */
.tile{min-width:0;min-height:0;width:100%;height:100%;aspect-ratio:1;position:relative;display:grid;place-items:center;isolation:isolate;padding:0;border:0;border-right:1px solid var(--seam);border-bottom:1px solid var(--seam);border-radius:0;background:var(--cell);box-shadow:none;opacity:1!important}.tile:nth-child(even){background:var(--cell-alt)}.tile:nth-child(5n){border-right:0}.tile:nth-child(n+21){border-bottom:0}.tile::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none}.tile.available:hover{background:#dae5d8}.tile.available::after{content:'';width:5px;height:5px;border-radius:50%;background:#6c8a69;position:absolute;bottom:8px;left:calc(50% - 2.5px);pointer-events:none}.tile.gone,.tile.empty{background:transparent!important;border-color:#eef0ec;pointer-events:none;box-shadow:none}.tile.gone::before,.tile.empty::before{display:none}.tile.double::before{inset:5px;border:1px solid #8fa98a}.tile .use-count{font-size:9px;font-weight:700;line-height:1;color:#587653;position:absolute;right:7px;bottom:7px;z-index:5}.tile.finish{background:#347454!important}.tile.finish .tile-icon{width:48%;height:48%;color:#fff}.tile-icon{width:45%;height:45%;color:var(--ink)}.tile .collectible{width:29%;height:29%;color:#c58d27}.tile .portal-icon{width:51%;height:51%;color:#6b6baf}.player{width:49%;height:49%;position:absolute;inset:25.5%;z-index:4}.player svg{width:100%;height:100%;overflow:visible}.tile.current .collectible{display:none}.tile.current{background:#dde7d8}.game-controls{display:flex;align-items:center;justify-content:space-between;margin-top:13px;gap:10px}.control-button{display:flex;align-items:center;gap:6px;min-height:36px;padding:5px 0;background:none;border:0;font-size:11px;color:#5c675c}.control-button>span{font-size:18px;line-height:1}.board-caption{font-size:9px;letter-spacing:.15em;color:#99a192}.status{font-size:10px;line-height:1.7;color:var(--muted);text-align:center;margin:10px 0 0;min-height:18px}.status.warning{color:#a16531}.inventory{border-top:1px solid var(--line);padding-top:17px}.inventory>h3{font-size:10px;font-weight:600;margin:0 0 14px}.quick-legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.quick-item{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:9px;color:var(--muted)}.quick-swatch{height:27px;width:27px;display:grid;place-items:center;color:var(--ink)}.quick-swatch svg{width:100%;height:100%}.quick-swatch.double{background:var(--cell);border:1px solid var(--seam);font-size:10px;color:var(--accent)}#inventory-note{font-size:10px;line-height:1.7;color:var(--muted);margin:17px 0 0;text-align:center}.next-button{margin:15px auto 0;display:flex;gap:20px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:5px;min-height:38px;background:transparent;padding:7px 16px;font-size:11px;color:#485447}.next-button:hover{background:#f2f5ef}.play-hint{display:flex;align-items:center;justify-content:center;gap:3px;font-size:9px;color:#939a8d;margin:25px 0}.play-hint kbd{font:9px Arial,sans-serif;border:1px solid #dfe3d9;padding:1px 4px;border-radius:3px}.play-hint kbd:last-of-type{margin-right:4px}.play-hint>span{margin:0 6px}.site-credit{display:flex;justify-content:center;align-items:center;gap:4px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:20px;margin-top:22px;font-size:9px;color:var(--muted)}.site-credit a{text-decoration:none}.site-credit>span{flex-basis:100%;text-align:center;font-size:8px;opacity:.7;margin-top:3px}
.start-overlay{position:absolute;inset:0;z-index:10;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:22px;background:#fffffff2;backdrop-filter:blur(3px)}#start-token{width:37px;height:37px;margin-bottom:14px}#start-token svg{width:100%;height:100%}.start-overlay h3{font-size:26px;letter-spacing:-.8px;line-height:1.1;margin:11px 0 12px}.start-overlay p{font-size:11px;color:var(--muted);line-height:1.7;margin:0 0 19px}.primary{background:var(--ink);color:#fff;border:0;border-radius:5px;min-height:44px;padding:12px 19px;font-size:11px;font-weight:600;display:flex;gap:17px;align-items:center}.start-overlay small{font-size:8px;line-height:1.6;color:var(--muted);margin-top:14px}.result{background:#f4f7ef;border:1px solid #cad6c1;border-radius:7px;padding:17px;margin-top:14px;font-size:11px;line-height:1.9;text-align:center}.result strong{display:block;font-size:23px;letter-spacing:-.6px}.result small{display:block;font-size:9px;color:var(--muted)}
dialog{width:min(480px,calc(100% - 30px));max-height:calc(100svh - 55px);overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);padding:28px;box-shadow:0 15px 60px #12201733}dialog::backdrop{background:#1d2d2644;backdrop-filter:blur(5px)}dialog h2{font-size:27px;letter-spacing:-.8px;margin:10px 0 17px}dialog p{font-size:12px;color:var(--muted);line-height:1.8}.close-help{float:right;border:0;background:none;min-width:30px;min-height:30px;margin-top:-12px;color:var(--muted);font-size:25px}.legend{display:grid;gap:15px;margin:23px 0}.legend-item{display:flex;align-items:center;gap:12px;font-size:10px;color:var(--muted);line-height:1.5}.legend-item b{display:block;color:var(--ink);font-size:11px;margin-bottom:2px}.legend-tile{width:34px;height:34px;display:grid;place-items:center;flex:none;color:var(--ink);position:relative}.legend-tile svg{width:100%;height:100%}.legend-tile.double{border:1px solid var(--seam);background:var(--cell);font-weight:600;color:var(--accent)}details{border-top:1px solid var(--line);padding-top:14px;font-size:11px}summary{cursor:pointer}.direction-description{font-size:10px!important;font-style:italic}
.prototype-switcher{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:30;display:flex;align-items:center;gap:10px;padding:9px 10px;background:#252c27f5;color:#f6f7ef;border:1px solid #ffffff2a;border-radius:9px;box-shadow:0 7px 25px #19251a22;backdrop-filter:blur(10px);max-width:calc(100% - 20px)}.prototype-switcher>button{width:28px;min-height:33px;color:#e8ede5;background:none;border:1px solid #ffffff22;border-radius:4px;font-size:14px}.switcher-center>span{display:block;text-align:center;font-size:6px;letter-spacing:.18em;color:#b6bdb3;margin-bottom:5px}.theme-tabs{display:flex;gap:4px}.theme-tabs button{font:10px Arial,sans-serif;color:#bfc7bb;white-space:nowrap;border:0;background:none;border-radius:3px;padding:7px 11px}.theme-tabs button[aria-pressed=true]{background:#ffffff1c;color:#fff}
#move-effects{position:absolute;inset:0;z-index:6;pointer-events:none}.departure-particle{position:absolute;left:var(--px);top:var(--py);width:4px;height:4px;background:var(--accent);animation:scatter .4s ease-out forwards}
/* ABSTRACT: no texture, no simulated light, no cast shadow. */
[data-theme=abstract] .board-stage{border-color:#b7c6b2}
[data-theme=abstract] .tile::before{background:none}
[data-theme=abstract] .stat strong{font-size:26px}
[data-theme=abstract] .identity h1{letter-spacing:-1.2px}
/* PHYSICAL: large ceramic panels in a walnut tray. One consistent light source. */
[data-family=physical]{--paper:#f5f3ee;--ink:#30332e;--muted:#858578;--line:#dddcd2;--accent:#315a90;--cell:#e9e5d9;--cell-alt:#e8e4d9;--seam:#b1ad9e}
[data-family=physical] .app{max-width:910px;padding-left:42px;padding-right:42px}
[data-family=physical] .identity h1{font:400 31px Georgia,serif;letter-spacing:-1.2px}
[data-family=physical] .game-layout{width:100%;max-width:765px;grid-template-columns:175px minmax(0,470px);grid-template-areas:'heading heading' 'stats board' 'inventory board';gap:24px 45px;align-items:start}
[data-family=physical] .puzzle-heading{grid-area:heading;border-bottom:1px solid var(--line);padding-bottom:17px}
[data-family=physical] .puzzle-heading h2{font-family:Georgia,serif;font-size:23px}
[data-family=physical] .stats{grid-area:stats;display:grid;grid-template-columns:1fr 1fr;border-top:0;padding:0 0 18px;gap:21px 10px}
[data-family=physical] .remaining-stat{grid-column:1/-1}
[data-family=physical] .remaining-stat strong{font-size:56px;font-weight:400;letter-spacing:-2px}
[data-family=physical] .stat-note{display:block}
[data-family=physical] .coin-stat strong,[data-family=physical] .key-stat strong{font-size:27px;font-weight:400}
[data-family=physical] .play-area{grid-area:board}
[data-family=physical] .inventory{grid-area:inventory;border:0;padding:0}
[data-family=physical] .quick-legend{grid-template-columns:1fr;gap:14px}
[data-family=physical] .quick-item{flex-direction:row;gap:10px;font-size:10px}
[data-family=physical] .quick-swatch{width:32px;height:32px}
[data-family=physical] #inventory-note{text-align:left;font-size:10px;line-height:1.9}
[data-family=physical] .next-button{margin-left:0;background:#fbfaf5;border-color:#d0d0c3}
[data-family=physical] .board-frame{padding:13px;border-radius:4px;background:linear-gradient(100deg,#775039,#a2774f 14%,#936642 45%,#af855a 75%,#775437);box-shadow:inset 0 1px 0 #f7d4a18c,inset 0 -4px 0 #593e2d,0 5px 0 #513a29,0 16px 25px #47351d22}
[data-family=physical] .board-stage{border:1px solid #655238;background:#8a7255;box-shadow:inset 0 2px 5px #3c2b1d66}
[data-family=physical] .tile{background:linear-gradient(140deg,#f9f6eb,#e6e1d4 65%,#dbd6c8);border-right:1px solid #aaa695;border-bottom:1px solid #a7a38f;box-shadow:inset 1px 1px 0 #fff,inset -1px -2px 0 #c8c3b2}
[data-family=physical] .tile:nth-child(even){background:linear-gradient(140deg,#f9f6eb,#e6e1d4 65%,#dbd6c8)}
[data-family=physical] .tile::before{inset:0;border:3px solid transparent;border-image:linear-gradient(135deg,#ffffff8c,#ffffff00 55%,#8d877345) 1}
[data-family=physical] .tile.available:hover{filter:brightness(1.06)}
[data-family=physical] .tile.available::after{width:6px;height:6px;background:#67779a7a;bottom:8px;left:calc(50% - 3px);box-shadow:inset 0 1px 1px #273d6022}
[data-family=physical] .tile.current{background:linear-gradient(140deg,#fbf9ef,#e8e5da)}
[data-family=physical] .tile.gone,[data-family=physical] .tile.empty{background:transparent!important;border-color:transparent;box-shadow:none}
[data-family=physical] .tile.double::before{inset:5px;border:2px solid #aaa48a;border-image:none;box-shadow:1px 1px 0 #fff9,inset 0 1px 0 #ffffff88}
[data-family=physical] .tile .use-count{color:#8a8061;font:10px Georgia,serif}
[data-family=physical] .player{width:75%;height:91%;inset:1% 12.5% 8%;filter:drop-shadow(4px 6px 2px #50442355)}
[data-family=physical] .tile .collectible{height:44%;width:44%;filter:drop-shadow(2px 3px 1px #5e4b2d55)}
[data-family=physical] .tile .portal-icon{width:67%;height:67%;filter:drop-shadow(1px 2px 1px #554d3a44)}
[data-family=physical] .tile.finish{background:linear-gradient(135deg,#d3d9dd,#b3bec6)!important}
[data-family=physical] .tile.finish .tile-icon{width:72%;height:72%}
[data-family=physical] .game-controls{margin-top:18px}
[data-family=physical] .control-button{color:#666b61}
[data-family=physical] .start-overlay{background:#f9f7eff5}
[data-family=physical] #start-token{height:56px;width:46px;margin-bottom:8px}
[data-family=physical] .start-overlay h3{font:400 29px Georgia,serif;letter-spacing:-.7px}
/* TERRAIN: small flat map sprites; no soft shadows, texture shared with nothing else. */
[data-family=terrain]{--paper:#fbfcfd;--ink:#253746;--muted:#7c8a94;--line:#dce3e7;--accent:#2374a3;--cell:#cce8f1;--cell-alt:#d5ecf4;--seam:#93becf}
[data-family=terrain] .app{max-width:900px;padding-left:40px;padding-right:40px}
[data-family=terrain] .identity h1{font-size:27px;letter-spacing:-1.3px;font-weight:750}
[data-family=terrain] .game-layout{width:100%;max-width:700px;grid-template-columns:minmax(0,448px) minmax(120px,1fr);grid-template-areas:'heading stats' 'board stats' 'board inventory';gap:18px 30px;align-items:start}
[data-family=terrain] .puzzle-heading{grid-area:heading}
[data-family=terrain] .puzzle-heading h2{font-size:17px;font-weight:600}
[data-family=terrain] .stats{grid-area:stats;display:grid;grid-template-columns:1fr 1fr;gap:20px 9px;padding:16px;border:1px solid var(--line);border-radius:6px;background:#f0f5f7}
[data-family=terrain] .remaining-stat{grid-column:1/-1;padding-bottom:17px;border-bottom:1px solid #d5e0e5}
[data-family=terrain] .remaining-stat strong{font:600 38px 'Consolas','Courier New',monospace;letter-spacing:-2px;color:#235976}
[data-family=terrain] .stat strong{font:600 23px 'Consolas','Courier New',monospace;color:#27546c}
[data-family=terrain] .stat-note{display:block;font-size:8px}
[data-family=terrain] .play-area{grid-area:board}
[data-family=terrain] .inventory{grid-area:inventory;border:0;padding:0 5px}
[data-family=terrain] .inventory>h3{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#6d8290}
[data-family=terrain] .quick-legend{grid-template-columns:1fr;gap:13px}
[data-family=terrain] .quick-item{flex-direction:row;gap:10px;font-size:10px}
[data-family=terrain] .quick-swatch{width:28px;height:28px;image-rendering:pixelated}
[data-family=terrain] #inventory-note{text-align:left}
[data-family=terrain] .next-button{margin-left:0}
[data-family=terrain] .board-frame{padding:3px;border:1px solid #607a8b;border-radius:2px;background:#8ea0ac}
[data-family=terrain] .board-stage{border:0;background:#1c5a81}
[data-family=terrain] .board{grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(7,minmax(0,1fr))}
[data-family=terrain] .tile{border:0;border-right:1px solid #8db7cb;border-bottom:1px solid #8db7cb;background:#d2e9f1;box-shadow:none}
[data-family=terrain] .tile:nth-child(even){background:#c5e1ed}
[data-family=terrain] .tile::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h32v2H0zM0 2h2v30H0z' fill='%23edf9ff'/%3E%3Cpath d='m22 1-4 8 5 6-4 7m-1-13-7 2-2 5M2 29h10m9 0h8' fill='none' stroke='%239fc7da' stroke-width='1'/%3E%3Cpath d='M7 5h5v1H7zm15 20h5v1h-5z' fill='%23eef9ff'/%3E%3C/svg%3E");background-size:100% 100%;image-rendering:pixelated}
[data-family=terrain] .tile.available::after{width:5px;height:5px;border-radius:0;background:#6394ac;bottom:5px;left:calc(50% - 2.5px)}
[data-family=terrain] .tile.available:hover{background:#e1f5fa}
[data-family=terrain] .tile.gone,[data-family=terrain] .tile.empty{background:repeating-linear-gradient(0deg,#1d5a81 0 6px,#246b8d 6px 8px,#1d5a81 8px 14px)!important;border:0}
[data-family=terrain] .tile.gone::before,[data-family=terrain] .tile.empty::before{display:none}
[data-family=terrain] .tile.double{background:#aac3d0}
[data-family=terrain] .tile.double::before{inset:0;border:0;background:repeating-linear-gradient(0deg,transparent 0 7px,#7397ab88 7px 8px),repeating-linear-gradient(90deg,transparent 0 7px,#7397ab88 7px 8px);box-shadow:inset 0 0 0 3px #9cb7c7,inset 0 0 0 4px #638397}
[data-family=terrain] .tile .use-count{font:700 8px 'Consolas',monospace;color:#355d71;background:#d8e6ec;right:3px;bottom:3px;padding:1px 2px}
[data-family=terrain] .tile.finish{background:#a4c6ba!important}
[data-family=terrain] .tile.finish::before{background:repeating-conic-gradient(#93b8aa 0% 25%,#c2dbcf 0% 50%) 0 0/14px 14px}
[data-family=terrain] .tile.finish .tile-icon{width:87%;height:87%}
[data-family=terrain] .tile.portal{background:#89b7d3}
[data-family=terrain] .tile .portal-icon{height:84%;width:84%}
[data-family=terrain] .tile .collectible{height:60%;width:60%;filter:none}
[data-family=terrain] .tile .tile-icon:not(.collectible):not(.portal-icon){height:80%;width:80%}
[data-family=terrain] .player{width:94%;height:100%;inset:0 3%;filter:none}
.map-wall{position:relative;min-width:0;min-height:0;aspect-ratio:1;border-right:1px solid #697d89;border-bottom:1px solid #5d7684;background:#96abb6;box-shadow:inset 2px 2px 0 #c0d0d8,inset -2px -2px 0 #6e8795;image-rendering:pixelated}
.map-wall::before{content:'';position:absolute;inset:7px;background:#899fab;border:1px solid #7894a3;box-shadow:inset 1px 1px 0 #a8bdc8}
.map-wall::after{content:'';position:absolute;width:3px;height:3px;top:5px;left:5px;background:#c7d6dd;box-shadow:0 1px 0 #617e8c}
.map-wall.corner{background:#7b95a6}.map-wall.corner::before{background:#a0b8c5}
[data-family=terrain] .start-overlay{background:#f8fcfffa}
[data-family=terrain] #start-token{width:44px;height:44px;margin-bottom:10px}
@keyframes scatter{from{opacity:.8;transform:translate(0,0)}to{opacity:0;transform:translate(var(--dx),var(--dy))}}
@media(max-width:800px){[data-family=physical] .game-layout{grid-template-columns:140px minmax(0,470px);gap:22px 27px}[data-family=physical] .app,[data-family=terrain] .app{padding-left:26px;padding-right:26px}[data-family=terrain] .game-layout{grid-template-columns:minmax(0,1fr) 140px;gap:18px 22px}[data-family=terrain] .stats{padding:12px}[data-family=terrain] .remaining-stat strong{font-size:34px}}
@media(max-width:600px){.app,[data-family=physical] .app,[data-family=terrain] .app{padding:0 20px 105px;max-width:470px}.game-header{height:69px}.identity h1{font-size:25px}#brand-symbol{width:25px;height:25px}.icon-button{width:26px;height:26px;font-size:14px}.mode-switch{margin:17px 0 22px;gap:27px}.mode-switch button{font-size:11px;padding-bottom:8px}.game-layout,[data-family=physical] .game-layout,[data-family=terrain] .game-layout{display:flex;flex-direction:column;gap:17px;width:100%;max-width:384px}.puzzle-heading{width:100%}.puzzle-heading h2{font-size:18px}.eyebrow{font-size:8px}.puzzle-heading>span{font-size:9px}.stats{width:100%;padding:13px 0;gap:15px}.stat>span:first-child{font-size:9px}.stat strong{font-size:24px}.stat small{font-size:10px}.play-area{width:100%}.inventory{width:100%;padding-top:16px}.inventory>h3{font-size:10px}.quick-legend{gap:10px}.quick-item{font-size:8px}.quick-swatch{width:25px;height:25px}.status{font-size:9px}.board-caption{font-size:8px}.control-button{font-size:10px}.play-hint{font-size:8px;margin:22px 0}.play-hint kbd{font-size:8px;padding:1px 3px}.site-credit{font-size:8px}.site-credit>span{font-size:7px}.prototype-switcher{bottom:10px;gap:6px;padding:8px;max-width:calc(100% - 20px)}.prototype-switcher>button{width:26px;min-height:32px}.theme-tabs{gap:2px}.theme-tabs button{font-size:9px;padding:7px 9px}.switcher-center>span{font-size:5px}.start-overlay{padding:18px}.start-overlay h3{font-size:25px}.start-overlay p{font-size:10px}.primary{font-size:10px;min-height:42px}.start-overlay small{font-size:8px}#start-token{height:33px;width:33px;margin-bottom:10px}
[data-family=physical] .identity h1{font-size:28px}[data-family=physical] .puzzle-heading{border:0;padding:0}[data-family=physical] .puzzle-heading h2{font-size:22px}[data-family=physical] .stats{display:flex;gap:20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 0}[data-family=physical] .remaining-stat strong,[data-family=physical] .coin-stat strong,[data-family=physical] .key-stat strong{font-size:27px;font-weight:500;letter-spacing:-.7px}[data-family=physical] .stat-note{display:none}[data-family=physical] .board-frame{padding:10px}[data-family=physical] .inventory{border-top:1px solid var(--line);padding-top:17px}[data-family=physical] .quick-legend{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}[data-family=physical] .quick-item{flex-direction:column;gap:7px;font-size:8px}[data-family=physical] .quick-swatch{width:29px;height:29px}[data-family=physical] #inventory-note{text-align:center;line-height:1.7}[data-family=physical] .next-button{margin-left:auto}
[data-family=terrain] .stats{display:flex;gap:16px;border:1px solid var(--line);padding:12px 14px;width:100%}[data-family=terrain] .remaining-stat{padding:0;border:0}[data-family=terrain] .remaining-stat strong,[data-family=terrain] .stat strong{font-size:25px;letter-spacing:-1px}[data-family=terrain] .stat-note{display:none}[data-family=terrain] .inventory{border-top:1px solid var(--line);padding:17px 0 0}[data-family=terrain] .quick-legend{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}[data-family=terrain] .quick-item{flex-direction:column;gap:7px;font-size:8px}[data-family=terrain] .quick-swatch{width:27px;height:27px}[data-family=terrain] #inventory-note{text-align:center}[data-family=terrain] .next-button{margin-left:auto}.map-wall::before{inset:5px}.map-wall::after{top:4px;left:4px;width:2px;height:2px}[data-family=terrain] #start-token{width:38px;height:38px}
}
@media(max-width:360px){.app,[data-family=physical] .app,[data-family=terrain] .app{padding-left:14px;padding-right:14px}.game-header{height:63px}.mode-switch{margin:14px 0 19px}.game-layout,[data-family=physical] .game-layout,[data-family=terrain] .game-layout{gap:15px}.stat>span:first-child{font-size:8px}.stat strong{font-size:22px}.puzzle-heading h2{font-size:17px}.tile .use-count{font-size:8px;bottom:5px;right:5px}.tile.available::after{bottom:6px}.start-overlay{padding:12px}.start-overlay h3{font-size:22px;margin:8px 0 10px}.start-overlay p{font-size:9px;line-height:1.6;margin-bottom:14px}.primary{min-height:39px;padding:10px 14px;font-size:9px}.start-overlay small{font-size:7px;margin-top:11px}#start-token{width:28px;height:28px;margin-bottom:8px}.prototype-switcher{padding:6px;gap:4px;max-width:calc(100% - 12px)}.theme-tabs button{font-size:8px;padding:7px 8px}.prototype-switcher>button{width:24px}.switcher-center>span{font-size:5px;letter-spacing:.12em}.play-hint{font-size:7px}.play-hint kbd{font-size:7px}.play-hint>span{margin:0 3px}[data-family=physical] .board-frame{padding:8px}[data-family=physical] .stats{gap:14px}[data-family=terrain] .stats{padding:10px 12px;gap:11px}[data-family=terrain] .stat strong{font-size:22px}.map-wall::before{inset:4px}[data-family=terrain] .tile .use-count{font-size:6px;padding:1px;bottom:2px;right:2px}[data-family=physical] #start-token{height:44px;width:36px}[data-family=terrain] #start-token{height:32px;width:32px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
[data-theme=abstract] .quick-swatch.coin{color:#c58d27}
[data-family=physical] .quick-swatch.double{background:linear-gradient(140deg,#fcf9ee,#e1dccf);box-shadow:inset 1px 1px #fff,inset -1px -2px #bfb9a6;color:#8a8061}
[data-family=terrain] .quick-swatch.double{background:repeating-linear-gradient(0deg,transparent 0 5px,#779aaf66 5px 6px),repeating-linear-gradient(90deg,#c1d5df 0 5px,#779aaf66 5px 6px);border:2px solid #819fac;color:#355d71}

/* PHYSICAL II — optical glass and steel, rather than ceramic and wood. */
[data-theme=physical-alloy]{--paper:#f2f5f5;--ink:#263a43;--muted:#798b90;--line:#d5dfe0;--accent:#398372;--cell:#354c56;--cell-alt:#354c56;--seam:#203640}
[data-theme=physical-alloy] .identity h1{font:600 28px Arial,sans-serif;letter-spacing:-1px}
[data-theme=physical-alloy] .puzzle-heading h2{font:500 21px Arial,sans-serif;letter-spacing:-.6px}
[data-theme=physical-alloy] .board-frame{padding:12px;background:linear-gradient(125deg,#cbd9da,#8ea8b1 15%,#e5eeee 24%,#9fb6bd 60%,#6c8996);border:1px solid #7f9ba6;border-radius:4px;box-shadow:inset 0 1px 0 #fff,inset 0 -4px 0 #5e7b88,0 5px 0 #3d5967,0 16px 25px #304b5926}
[data-theme=physical-alloy] .board-stage{background:#122c36;border:1px solid #18333e;box-shadow:inset 0 1px 6px #071b26}
[data-theme=physical-alloy] .tile,[data-theme=physical-alloy] .tile:nth-child(even){background:linear-gradient(135deg,#49616b,#344c56 50%,#273f4b);border-right:1px solid #213944;border-bottom:1px solid #1b333f;box-shadow:inset 1px 1px 0 #93a9af55,inset -1px -2px 0 #172f3c}
[data-theme=physical-alloy] .tile::before{inset:0;border:0;border-image:none;box-shadow:none;background:repeating-linear-gradient(0deg,transparent 0 2px,#b5c8c906 2px 3px)}
[data-theme=physical-alloy] .tile.current{background:linear-gradient(135deg,#627f83,#3c6265 55%,#2b4d54)}
[data-theme=physical-alloy] .tile.available::after{background:#a1c5b7;box-shadow:inset 0 1px 1px #1d4a44}
[data-theme=physical-alloy] .tile.gone,[data-theme=physical-alloy] .tile.empty{background:transparent!important;box-shadow:none;border-color:#203844}
[data-theme=physical-alloy] .tile.double::before{inset:5px;border:1px solid #6d9298;box-shadow:inset 0 0 0 3px #294650,0 1px 0 #87a7a766;background:none}
[data-theme=physical-alloy] .tile .use-count{color:#c5dbcf}
[data-theme=physical-alloy] .player{filter:drop-shadow(4px 6px 2px #071b28aa)}
[data-theme=physical-alloy] .tile .collectible{filter:drop-shadow(2px 4px 1px #091c29aa)}
[data-theme=physical-alloy] .tile.finish{background:linear-gradient(135deg,#52736e,#31594f 60%,#274b45)!important}
[data-theme=physical-alloy] .quick-swatch.double{background:linear-gradient(135deg,#516a74,#304c57);color:#bdd7c9;border-color:#67828a;box-shadow:inset 1px 1px 0 #8ba1a766,inset -1px -2px 0 #172e3a}
[data-theme=physical-alloy] .next-button{background:#f7fbf9;border-color:#c6d8d2;color:#476d62}
[data-theme=physical-alloy] .start-overlay{background:#f1f6f4f7}
[data-theme=physical-alloy] .start-overlay h3{font:500 27px Arial,sans-serif;letter-spacing:-.9px}
[data-theme=physical-alloy] .primary{background:#315e54}

/* TERRAIN II — organic masonry, hand-drawn tools, and a human explorer. */
[data-theme=terrain-ruins]{--paper:#fafbf7;--ink:#354630;--muted:#7e8c73;--line:#dce2d1;--accent:#6d8551;--cell:#c6c6a0;--cell-alt:#d0cda8;--seam:#a4ac7a}
[data-theme=terrain-ruins] .identity h1{font:400 30px Georgia,serif;letter-spacing:-1.1px}
[data-theme=terrain-ruins] .puzzle-heading h2{font:500 20px Georgia,serif;letter-spacing:-.3px}
[data-theme=terrain-ruins] .stats{background:#f0f3e8;border-color:#d7dfc7}
[data-theme=terrain-ruins] .remaining-stat{border-color:#d5dec7}
[data-theme=terrain-ruins] .stat strong,[data-theme=terrain-ruins] .remaining-stat strong{font-family:Georgia,serif;color:#587047;letter-spacing:-1px}
[data-theme=terrain-ruins] .board-frame{background:#a3aa83;border-color:#657955;padding:4px;box-shadow:inset 0 1px #ced3ad}
[data-theme=terrain-ruins] .board-stage{background:#455538}
[data-theme=terrain-ruins] .tile{background:#c5c7a2;border-right:1px solid #9aa575;border-bottom:1px solid #9aa575;box-shadow:none}
[data-theme=terrain-ruins] .tile:nth-child(even){background:#ceccaa}
[data-theme=terrain-ruins] .tile::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='m3 7 10-3 38 1 9 8-2 39-9 8-39-3-7-12z' fill='%23d9d5b4' stroke='%23b0b48a' stroke-width='1.5'/%3E%3Cpath d='m6 10 5 6-3 13m45-18-6 7 4 9M10 53l14-2m22 2 8-8' stroke='%23b5b690' stroke-width='1' fill='none'/%3E%3Cpath d='m0 0 14 0-4 4 4 7-7 2-2 12-5-1zM64 64H43l5-4 6 1-1-10 6-5 5 3z' fill='%23869763'/%3E%3Cpath d='m3 4 5 2-3 7m50 45 4-6 2 7' stroke='%23a3b27b' stroke-width='2'/%3E%3C/svg%3E");background-size:100% 100%;image-rendering:auto}
[data-theme=terrain-ruins] .tile.available:hover{background:#dbdabb}
[data-theme=terrain-ruins] .tile.available::after{background:#648252;border-radius:50%}
[data-theme=terrain-ruins] .tile.gone,[data-theme=terrain-ruins] .tile.empty{background:radial-gradient(#77875b55 .7px,transparent 1px) 0 0/8px 7px,#445335!important;border:0}
[data-theme=terrain-ruins] .tile.double{background:#9da980}
[data-theme=terrain-ruins] .tile.double::before{inset:0;border:0;box-shadow:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='m4 4 56 1-2 54-53 1z' fill='%23c2c79e' stroke='%23829464' stroke-width='2'/%3E%3Cpath d='M1 7c32 15 8 28 37 49m24-50C31 24 42 31 12 62M4 34c18-9 35 14 57-4' stroke='%236e8054' stroke-width='5' fill='none'/%3E%3Cpath d='M1 6c32 15 8 28 37 49m24-50C31 23 42 30 12 61' stroke='%23a8b17d' stroke-width='2' fill='none'/%3E%3C/svg%3E");background-size:100% 100%}
[data-theme=terrain-ruins] .tile .use-count{color:#4b613a;background:#d7d8b5;font-family:Georgia,serif}
[data-theme=terrain-ruins] .tile.portal{background:#b4c3a0}
[data-theme=terrain-ruins] .tile.finish{background:#a3b28b!important}
[data-theme=terrain-ruins] .tile.finish::before{background:#a3b28b}
[data-theme=terrain-ruins] .map-wall{background:#8c9c72;border-right:1px solid #647a4d;border-bottom:1px solid #62764b;box-shadow:inset 2px 2px #b5c192,inset -2px -2px #697e50;image-rendering:auto}
[data-theme=terrain-ruins] .map-wall::before{inset:2px;border:0;box-shadow:none;background:linear-gradient(0deg,transparent 46%,#63774e 47% 50%,#acb98b 51% 53%,transparent 54%),linear-gradient(90deg,transparent 48%,#6c7e53 49% 51%,transparent 52%)}
[data-theme=terrain-ruins] .map-wall::after{top:5px;left:3px;width:25%;height:12%;border-radius:40%;background:#6c8c4a;box-shadow:16px 24px 0 #789a51,2px 38px 0 #839f58}
[data-theme=terrain-ruins] .map-wall.corner{background:#7a925e}
[data-theme=terrain-ruins] .map-wall.corner::before{background:linear-gradient(0deg,transparent 46%,#63774e 47% 50%,transparent 51%)}
[data-theme=terrain-ruins] .quick-swatch{image-rendering:auto}
[data-theme=terrain-ruins] .quick-swatch.double{background:repeating-linear-gradient(40deg,#c6cba2 0 6px,#84956a 6px 9px);border-color:#819364;color:#405733}
[data-theme=terrain-ruins] .inventory>h3{color:#73865d}
[data-theme=terrain-ruins] .next-button{color:#577046;border-color:#cedabc;background:#f5f8ee}
[data-theme=terrain-ruins] .start-overlay{background:#fbfcf4f7}
[data-theme=terrain-ruins] .start-overlay h3{font:400 28px Georgia,serif;letter-spacing:-.7px}
[data-theme=terrain-ruins] .primary{background:#4f6d40}
@media(min-width:601px){[data-theme=physical-alloy] .game-layout{grid-template-columns:175px minmax(0,442px)}[data-theme=terrain-ruins] .game-layout{grid-template-columns:minmax(0,432px) minmax(120px,1fr)}}
@media(min-width:601px) and (max-width:800px){[data-theme=physical-alloy] .game-layout{grid-template-columns:140px minmax(0,442px)}[data-theme=terrain-ruins] .game-layout{grid-template-columns:minmax(0,1fr) 140px}}
@media(max-width:600px){[data-theme=physical-alloy] .identity h1{font-size:25px}[data-theme=physical-alloy] .puzzle-heading h2{font-size:20px}[data-theme=physical-alloy] .board-frame{padding:9px}[data-theme=terrain-ruins] .identity h1{font-size:28px}[data-theme=terrain-ruins] .puzzle-heading h2{font-size:19px}[data-theme=terrain-ruins] .stat strong,[data-theme=terrain-ruins] .remaining-stat strong{font-size:26px}[data-theme=terrain-ruins] .map-wall::after{box-shadow:11px 17px 0 #789a51,1px 28px 0 #839f58}}
@media(max-width:360px){[data-theme=physical-alloy] .board-frame{padding:7px}[data-theme=terrain-ruins] .stat strong,[data-theme=terrain-ruins] .remaining-stat strong{font-size:23px}[data-theme=terrain-ruins] .map-wall::after{box-shadow:9px 14px 0 #789a51,1px 24px 0 #839f58}}
.level-navigation{display:flex;align-items:center;flex:none;color:var(--muted);font-size:10px}
#campaign-level{font:10px Arial,sans-serif;color:#5d7050;background:#f5f8ef;border:1px solid #d2ddc2;border-radius:5px;min-height:32px;padding:5px 8px;max-width:95px;cursor:pointer}
#campaign-level:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.portal-tag{position:absolute;bottom:2px;left:3px;font:700 12px Georgia,serif;line-height:1;color:#35584c;z-index:5;pointer-events:none}
[data-theme=terrain-ruins] .tile.portal::before{background:radial-gradient(ellipse at center,#d1d9b4 0 47%,#a8ba91 49% 62%,#80966f 64% 66%,#afbd98 68%);border:0;box-shadow:none}
@media(max-width:360px){#campaign-level{font-size:9px;padding:5px 6px;max-width:84px}.portal-tag{font-size:10px;bottom:1px;left:2px}}
body[data-theme=terrain-ruins] .app{padding-bottom:35px}

/* Selected Ruins refinement: weathered limestone, forest green and aged gold. */
[data-theme=terrain-ruins]{--paper:#fafbf7;--ink:#2d4436;--muted:#65745c;--accent:#54734b;--line:#d9dfd0}
[data-theme=terrain-ruins] .identity{gap:12px}
[data-theme=terrain-ruins] #brand-symbol{width:35px;height:39px}
[data-theme=terrain-ruins] .identity h1{font-size:31px;letter-spacing:-1.2px}
[data-theme=terrain-ruins] .puzzle-heading h2{font-size:22px;color:#2b4132}
[data-theme=terrain-ruins] .eyebrow{color:#7b7956;letter-spacing:.16em}
[data-theme=terrain-ruins] #level-category::before{content:'';display:inline-block;width:5px;height:5px;transform:rotate(45deg);background:#b59a60;margin-right:8px;vertical-align:1px}
[data-theme=terrain-ruins] .stats{background:#304e3e;border:1px solid #294334;border-radius:5px;box-shadow:inset 0 1px #64816a;padding:20px;gap:20px 12px;position:relative}
[data-theme=terrain-ruins] .stat>span:first-child{color:#ced8bf;font-size:11px}
[data-theme=terrain-ruins] .stat strong{font:500 27px Arial,sans-serif;letter-spacing:-.7px;color:#f2f0df}
[data-theme=terrain-ruins] .remaining-stat strong{font:400 47px Georgia,serif;color:#edd197;letter-spacing:-1.7px}
[data-theme=terrain-ruins] .remaining-stat{border:0;padding-bottom:0}
[data-theme=terrain-ruins] .remaining-stat::after{content:'';display:block;height:3px;border-radius:1px;background:linear-gradient(to right,#d8bb7d var(--cleared),#ffffff20 var(--cleared));margin-top:17px}
[data-theme=terrain-ruins] .stat small{color:#c1cfb5;font-size:12px;letter-spacing:0}
[data-theme=terrain-ruins] .stat-note{font-size:10px;color:#b4c4a6;margin-top:7px}
[data-theme=terrain-ruins] .board-frame{padding:5px;border:1px solid #465c40;background:#7d8a67;box-shadow:inset 0 1px #c7c7a0,0 3px 0 #3d513b,0 8px 15px #293c2510;border-radius:2px}
[data-theme=terrain-ruins] .board-stage{background:#3a4a36}
[data-theme=terrain-ruins] .board{grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(7,minmax(0,1fr))}
[data-theme=terrain-ruins] .tile,[data-theme=terrain-ruins] .tile:nth-child(even){background:#74805c;border:0;box-shadow:none}
[data-theme=terrain-ruins] .tile:not(.portal):not(.finish)::before{background:none;border:0;box-shadow:none}
.stone-surface,.wall-surface{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.stone-surface{z-index:-1}
[data-theme=terrain-ruins] .tile.gone,[data-theme=terrain-ruins] .tile.empty{background:radial-gradient(ellipse at 22% 24%,#7c866338 0 1px,transparent 1.5px),radial-gradient(ellipse at 68% 66%,#263a2b66 0 1.2px,transparent 1.8px),#3a4a36!important;background-size:19px 23px,29px 31px,auto!important;box-shadow:inset 0 2px 4px #192d2018}
[data-theme=terrain-ruins] .tile.available::after{height:4px;width:4px;left:50%;top:50%;bottom:auto;border-radius:0;transform:translate(-50%,-50%) rotate(45deg);background:#496f4d;box-shadow:0 0 0 1px #e3e0b977}
[data-theme=terrain-ruins] .tile.available:hover{filter:brightness(1.08)}
[data-theme=terrain-ruins] .tile:focus-visible{outline:2px solid #f4d591;outline-offset:-3px;z-index:2}
[data-theme=terrain-ruins] .tile .collectible{width:57%;height:57%;filter:drop-shadow(0 2px 1px #66512a22)}
[data-theme=terrain-ruins] .tile .use-count{font:700 9px Arial,sans-serif;color:#f1e5bd;background:#476043;border:1px solid #b5bc89;border-radius:2px;padding:2px 3px;bottom:3px;right:3px}
[data-theme=terrain-ruins] .map-wall,[data-theme=terrain-ruins] .map-wall.corner{aspect-ratio:auto;width:100%;height:100%;border:0;background:#617351;box-shadow:none}
[data-theme=terrain-ruins] .map-wall::before,[data-theme=terrain-ruins] .map-wall::after{display:none}
[data-theme=terrain-ruins] .tile.portal{background:#9aa982}
[data-theme=terrain-ruins] .tile.portal::before{background:radial-gradient(ellipse,#bcc6a0 0 48%,#8b9e7b 49% 62%,#526e55 64% 66%,#9aa982 68%)}
[data-theme=terrain-ruins] .portal-tag{font:700 12px Arial,sans-serif;color:#224f43;background:#c3cfab;border:1px solid #7e9976;border-radius:2px;padding:0 2px;bottom:2px;left:2px;line-height:1}
[data-theme=terrain-ruins] .tile.finish,[data-theme=terrain-ruins] .tile.finish::before{background:#587563!important}
[data-theme=terrain-ruins] .tile.finish::before{box-shadow:inset 0 0 0 2px #d8c596}
[data-theme=terrain-ruins] .player{filter:drop-shadow(0 2px 1px #31412e33)}
.rune-aura{animation:rune-breathe 3.6s ease-in-out infinite}
.rune-water{animation:rune-water 4s ease-in-out infinite}
.relic-glint{animation:relic-glint 6s ease-in-out infinite}
[data-stone="1"] .relic-glint{animation-delay:-2s}
[data-stone="2"] .relic-glint{animation-delay:-4s}
[data-theme=terrain-ruins] .game-controls{margin-top:15px}
[data-theme=terrain-ruins] .control-button{color:#53684e;font-size:12px}
[data-theme=terrain-ruins] .control-button:disabled{opacity:.45}
[data-theme=terrain-ruins] .board-caption{color:#8b805a;font-size:9px}
[data-theme=terrain-ruins] .status{color:#65745c;font-size:11px}
[data-theme=terrain-ruins] .status.warning{color:#a16536}
[data-theme=terrain-ruins] .inventory>h3{color:#7b7956;letter-spacing:.15em}
[data-theme=terrain-ruins] .quick-item{color:#586e52;font-size:11px}
[data-theme=terrain-ruins] .quick-swatch.double,[data-theme=terrain-ruins] .legend-tile.double{position:relative;isolation:isolate;background:none;border:0;box-shadow:none}
.root-use{position:absolute;bottom:1px;right:1px;padding:1px 2px;color:#f1e5bd;background:#476043;border:1px solid #b5bc89;font:700 7px Arial,sans-serif;line-height:1;border-radius:1px}
[data-theme=terrain-ruins] #inventory-note{color:#6a785f;line-height:1.8}
[data-theme=terrain-ruins] .next-button{border-color:#b3c19e;color:#355b40;background:#f1f5e9;box-shadow:0 1px 0 #d6dfc7;transition:background .15s}
[data-theme=terrain-ruins] .next-button:hover{background:#e6edd9}
[data-theme=terrain-ruins] .result{position:relative;border:1px solid #c2cdaa;border-top:2px solid #bba165;background:#f2f5e9;padding:20px 16px;color:#496047}
.completion-seal{width:45px;height:48px;margin:0 auto 9px}
.completion-seal svg{height:100%;width:100%}
[data-theme=terrain-ruins] .result strong{font:400 27px Georgia,serif;color:#304f3c;margin:5px 0}
[data-theme=terrain-ruins] .result small{line-height:1.7;margin-top:8px}
[data-theme=terrain-ruins] #start-token{width:52px;height:58px;margin-bottom:15px}
[data-theme=terrain-ruins] .start-overlay h3{color:#2e4d39}
[data-theme=terrain-ruins] .primary{background:#355b42;box-shadow:inset 0 1px #678367,0 2px 0 #203e2d;border:1px solid #294b34}
[data-theme=terrain-ruins] .primary:hover{background:#426c4d}
.stone-echo,.gate-ripple,.pickup-note,.unlock-flash{position:absolute;left:var(--x);top:var(--y);pointer-events:none;font-style:normal}
.stone-echo .stone-surface{z-index:0}
.stone-echo{animation:stone-sink .32s ease-in forwards}
.gate-ripple::before{content:'';position:absolute;inset:20% 8%;border:2px solid #c5f9d4;border-radius:50%;animation:gate-arrival .6s ease-out forwards}
.pickup-note{display:grid;place-items:center;font:700 18px Georgia,serif;color:#fff3b0;text-shadow:0 1px 2px #56411b;animation:pickup-rise .65s ease-out forwards}
.pickup-note.key-pickup{color:#dcebc8}
.unlock-flash{background:#ffedb3;animation:unlock .35s ease-out forwards}
@keyframes rune-breathe{0%,100%{opacity:.35}50%{opacity:.95}}
@keyframes rune-water{0%,100%{opacity:.65}50%{opacity:1}}
@keyframes relic-glint{0%,82%,100%{opacity:.15}90%{opacity:1}}
@keyframes stone-sink{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(12%) scale(.88)}}
@keyframes gate-arrival{from{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1.6)}}
@keyframes pickup-rise{0%{opacity:0;transform:translateY(-5%)}25%{opacity:1}100%{opacity:0;transform:translateY(-65%)}}
@keyframes unlock{from{opacity:.65}to{opacity:0}}
@media(max-width:800px) and (min-width:601px){[data-theme=terrain-ruins] .stats{padding:15px}}
@media(max-width:600px){
  [data-theme=terrain-ruins] #brand-symbol{width:30px;height:34px}
  [data-theme=terrain-ruins] .identity h1{font-size:28px}
  [data-theme=terrain-ruins] .puzzle-heading h2{font-size:20px}
  [data-theme=terrain-ruins] .stats{padding:13px 16px;gap:17px}
  [data-theme=terrain-ruins] .stat>span:first-child{font-size:10px}
  [data-theme=terrain-ruins] .stat strong,[data-theme=terrain-ruins] .remaining-stat strong{font:500 27px Arial,sans-serif;letter-spacing:-.7px}
  [data-theme=terrain-ruins] .remaining-stat strong{color:#edd197}
  [data-theme=terrain-ruins] .remaining-stat::after{display:none}
  [data-theme=terrain-ruins] .quick-item{font-size:9px}
  [data-theme=terrain-ruins] .status{font-size:10px}
  [data-theme=terrain-ruins] .control-button{font-size:11px}
  [data-theme=terrain-ruins] .tile .use-count{font-size:8px;padding:1px 2px;bottom:2px;right:2px}
}
@media(max-width:360px){
  [data-theme=terrain-ruins] .puzzle-heading h2{font-size:18px}
  [data-theme=terrain-ruins] .stats{padding:12px;gap:12px}
  [data-theme=terrain-ruins] .stat>span:first-child{font-size:9px}
  [data-theme=terrain-ruins] .stat strong,[data-theme=terrain-ruins] .remaining-stat strong{font-size:24px}
  [data-theme=terrain-ruins] #start-token{width:33px;height:37px;margin-bottom:8px}
  [data-theme=terrain-ruins] .portal-tag{font-size:9px;padding:0 1px}
  [data-theme=terrain-ruins] .tile .use-count{font-size:6px}
}

[data-theme=terrain-ruins] .tile.finish>.tile-icon{width:94%;height:94%}
