:root{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#f3e8c7;background:#09281f;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 50% 35%,#285640 0,#123e2e 48%,#08291f 100%);background-attachment:fixed}body:before{content:'';position:fixed;inset:0;opacity:.16;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.6' d='M0 0h150v150H0z'/%3E%3C/svg%3E");z-index:-1}body:after{content:'';position:fixed;inset:0;pointer-events:none;border:9px solid #624324;box-shadow:inset 0 0 0 2px #b58f50,inset 0 0 0 5px #392616,inset 0 0 30px 12px #0007;z-index:10}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #eed187;outline-offset:4px}header{max-width:980px;margin:auto;padding:30px 30px 8px;display:flex;justify-content:center;align-items:center;position:relative}.brand{text-decoration:none;color:#f6df9e;display:block;text-align:center;font-family:Georgia,'Times New Roman',serif;font-size:clamp(27px,4.8vw,48px);font-weight:400;text-shadow:0 3px 3px #0008;letter-spacing:-1px}.brand:before{content:'✧';display:block;font-size:23px;font-weight:400;color:#d7b360;line-height:.8;margin:0 0 6px}.brand b{font-weight:400}.brand small{display:none}.brandicon{display:none}.round{position:absolute;right:28px;top:39px;border:1px solid #c4a360;background:radial-gradient(circle at 35% 20%,#387356,#16422f);box-shadow:0 3px 5px #0007,inset 0 0 0 3px #1c4833;width:44px;height:44px;border-radius:50%;font-size:24px;color:#eed49b}main{max-width:920px;margin:auto;padding:0 36px}.intro{display:none}.eyebrow{font-size:9px;letter-spacing:2px;color:#d1bd84;font-weight:500}h2{font-family:Georgia,serif;font-size:24px;margin:5px 0;color:#f4e3bc;font-weight:400}.game{position:relative}.gametop{display:flex;flex-direction:column;gap:16px;text-align:center;padding:10px 0 12px}.gametop>div:first-child{border:1px solid #d3ae62;min-width:170px;padding:8px 25px;border-radius:35px;background:linear-gradient(#123c2b,#082b1f);box-shadow:0 3px 7px #0005,inset 0 0 0 2px #23563b}.gametop .eyebrow{font-size:7px;letter-spacing:1.7px}.gametop h2{margin:3px 0;font-size:21px}.startext{display:block;font-family:system-ui;font-size:15px;letter-spacing:4px;color:#f3c45e;height:19px;margin-top:3px}.startext:empty:before{content:'☆ ☆ ☆';font-size:15px;color:#b29149}.stats{display:flex;justify-content:center;gap:0;width:100%;border:1px solid #64885d66;background:#05291fc7;border-radius:13px;box-shadow:0 4px 9px #0002;padding:12px}.stats div{flex:1;text-align:center;border-right:1px solid #d4b8766b}.stats div:last-child{border-right:0}.stats small{display:block;font-size:11px;color:#d9d3ae;letter-spacing:1px}.stats b{display:block;font-family:Georgia,serif;font-size:23px;font-weight:400;margin-top:4px;font-variant-numeric:tabular-nums;color:#f7eac6}.playmat{padding:28px 13% 20px;position:relative}.playmat:before,.playmat:after{content:'';position:absolute;width:190px;height:240px;background:url('botanical.svg') center/contain no-repeat;pointer-events:none;opacity:.8;z-index:-1;top:-250px;left:-62px;transform:rotate(-18deg)}.playmat:after{left:auto;right:-62px;transform:scaleX(-1) rotate(-18deg)}.matdecor{position:absolute;color:#c2aa5a60;font-size:27px;right:5%;bottom:9%}#board{position:relative;width:100%;aspect-ratio:8/6.4;isolation:isolate}.tile{position:absolute;width:12%;height:14.1%;border:1px solid #e5d2a3;border-bottom:5px solid #b99a62;border-right:3px solid #cab582;border-radius:9px;background:linear-gradient(135deg,#fff7df 0,#f1e3c2 47%,#e7d6ac 100%);box-shadow:2px 4px 0 #183528bb,3px 6px 8px #071a1780,inset 1px 1px 0 1px #fff9e1;padding:5px 6px;transition:transform .16s,filter .16s,box-shadow .16s,opacity .16s;will-change:transform}.tile svg{width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 1px 0 #fff8)}.tile.blocked{filter:brightness(.88)}.tile.selected{transform:translateY(-5px);background:linear-gradient(135deg,#fffae5,#fbe3a3);box-shadow:0 0 0 2px #f9cd56,0 0 22px #e9b6388a,2px 8px 8px #071a1780}.tile.hinted{animation:glow .75s infinite alternate;box-shadow:0 0 0 2px #f9cd56,0 0 18px #e9b63880}.tile:hover:not(.blocked){filter:brightness(1.06);transform:translateY(-3px)}@keyframes glow{to{filter:brightness(1.12);transform:translateY(-4px)}}.tile.vanishing{animation:match .2s ease-out forwards}@keyframes match{to{transform:translateY(-14px) scale(.85);opacity:0}}.gamestatus{min-height:33px;padding:8px 6px;display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:10px;color:#cfcfae}.gamestatus #moves{white-space:nowrap;color:#d9bd79}.tools{display:flex;gap:14px;margin:13px auto 8px;padding:0 8px;max-width:700px}.tools button{flex:1;min-width:0;background:linear-gradient(130deg,#fff5d6,#e4ce9d);border:2px solid #ceab65;border-bottom:5px solid #9a763f;border-radius:18px;padding:12px 8px 8px;display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:6px;box-shadow:0 5px 10px #0005,inset 0 0 0 3px #fff2cc88;color:#5d421f;position:relative;transition:transform .15s}.tools button:hover{transform:translateY(-2px);background:linear-gradient(130deg,#fff9e5,#ebd9af)}.tools button:disabled{opacity:.6}.tools button>span{font-size:28px;color:#8d6b34;line-height:1.2}.tools b{font-family:Georgia,serif;font-size:17px;font-weight:400;white-space:nowrap}.tools small{grid-column:1/-1;font-size:9px;margin:8px -6px -2px;padding-top:7px;border-top:1px solid #b4975f55;font-family:system-ui;color:#826432}.bottomline{padding:12px 0 10px;border-top:1px solid #b79a5055;display:flex;gap:20px;align-items:center;margin-top:17px}.bottomline button,footer button{border:0;background:none;font-size:12px;color:#e0cf9f;padding:5px}.bottomline>span{font-size:9px;color:#93ad8c;margin-left:auto}.footnote{text-align:center;color:#bbb895;font-family:Georgia,serif;font-size:13px;margin:15px 0}.footnote span{color:#ceab65;padding-right:6px}footer{display:flex;align-items:center;gap:18px;color:#93ad8c;font-size:10px;padding:8px 4px 24px}.pill{margin-left:auto;font-size:8px;color:#c2ba8e;border:1px solid #8ca27855;border-radius:20px;padding:6px 9px}dialog{border:2px solid #bea169;border-radius:20px;padding:28px;max-width:440px;width:calc(100% - 36px);box-shadow:0 30px 100px #0008;color:#3c492e;background:linear-gradient(135deg,#fff9e7,#f2e9cf)}dialog::backdrop{background:#061e18bb;backdrop-filter:blur(5px)}dialog h2{color:#2e5038;font-size:25px;margin-top:8px}dialog h3{font-size:15px;color:#425436;margin:20px 0 5px}dialog p{line-height:1.7;color:#6b7256;font-size:13px}dialog .eyebrow{color:#9c8659}.close{float:right;font-size:26px;background:none;border:0;margin:-15px -8px 0 0}.primary{display:block;width:100%;background:linear-gradient(#38644a,#214b35);color:#fff5dc;border:1px solid #988449;border-bottom:3px solid #163826;border-radius:11px;padding:13px;margin-top:18px}.secondary{display:block;width:100%;border:1px solid #cfc5a4;background:#f6efd9;border-radius:11px;padding:11px;margin-top:10px}.levelgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:20px;max-height:340px;overflow:auto}.levelgrid button{border:1px solid #c7bd95;background:#f7efd9;border-radius:8px;padding:10px;font-size:13px;color:#3a5233}.levelgrid button:disabled{opacity:.4}.levelgrid small{display:block;color:#aa8543;font-size:10px;margin-top:3px}.victory{text-align:center;font-size:48px;color:#b38f46}.toggle{display:flex;gap:10px;align-items:center;padding:12px 0;font-size:14px}.note{padding:12px;background:#e6dec5;border-radius:10px;font-size:12px;color:#697254;line-height:1.7}@media(min-width:950px){body{padding:10px 0}.playmat{padding-left:18%;padding-right:18%}.tools{max-width:620px}.gametop{padding-top:4px}.stats{max-width:640px}main{max-width:860px}.brand{font-size:43px}header{padding-top:20px}.round{top:32px}#board{max-height:450px}.playmat{padding-top:20px}}@media(max-width:650px){body:after{border-width:5px;box-shadow:inset 0 0 0 1px #b58f50,inset 0 0 0 3px #392616,inset 0 0 15px 6px #0005}header{padding:23px 50px 4px}.brand{font-size:29px;letter-spacing:-.8px}.brand:before{font-size:17px;margin-bottom:6px}.round{top:33px;right:15px;width:34px;height:34px;font-size:20px}main{padding:0 18px}.gametop{gap:10px;padding:9px 0 6px}.gametop>div:first-child{padding:5px 20px;min-width:142px}.gametop h2{font-size:18px}.gametop .eyebrow{font-size:6px}.startext{height:17px;font-size:13px;margin-top:0}.stats{padding:8px}.stats small{font-size:9px}.stats b{font-size:20px;margin-top:1px}.playmat{padding:24px 0 14px}.playmat:before{width:120px;height:160px;left:-30px;top:-175px;opacity:.55}.playmat:after{width:120px;height:160px;right:-30px;top:-175px;opacity:.55}.tile{border-radius:6px;padding:3px 3px;border-bottom-width:4px;border-right-width:2px;box-shadow:1px 3px 0 #173226bb,2px 4px 5px #071a1777}.gamestatus{padding:7px 0;font-size:9px;line-height:1.5}.tools{gap:8px;padding:0;margin-top:9px}.tools button{padding:10px 5px 7px;border-radius:12px;column-gap:2px;border-width:1px;border-bottom-width:3px}.tools button>span{font-size:22px}.tools b{font-size:13px}.tools small{font-size:8px;margin:7px -3px 0;padding-top:5px}.bottomline{padding:9px 0;gap:8px;margin-top:13px}.bottomline button{font-size:10px}.bottomline>span{font-size:8px;max-width:95px;text-align:right}.footnote{font-size:10px;margin:10px 0}footer{gap:8px;font-size:8px;padding-bottom:22px}.pill{font-size:7px;padding:5px 6px}.matdecor{display:none}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:360px){main{padding:0 12px}.brand{font-size:26px}.tools b{font-size:11px}.tools button>span{font-size:20px}}
/* Artwork-backed production style, aligned to the approved concept. */
body{max-width:1040px;margin:0 auto;min-height:100vh;background:#092b20 var(--table-artwork,none) center top/100% 100% no-repeat;position:relative;padding:16px 0 0}html{background:#081f17}body:before,body:after,.playmat:before,.playmat:after{display:none}header{padding:16px 75px 6px;max-width:980px}.brand{font-size:clamp(32px,5.3vw,54px);letter-spacing:-1.8px;color:#f9e5b3;font-weight:500}.brand:before{content:'❧';font-size:27px;line-height:.8;transform:rotate(-12deg);margin-bottom:8px}.brand:after{content:'';display:block;width:62%;height:9px;border-bottom:1px solid #d7b05c;border-radius:50%;margin:1px auto 0}.round{top:39px;right:32px;width:49px;height:49px;font-size:25px}main{max-width:1024px;padding:0 36px}.gametop{gap:16px;padding:8px 0 8px}.gametop>div:first-child{padding:5px 22px;min-width:183px;border-radius:26px;border-color:#e1b973;box-shadow:0 3px 7px #0007,inset 0 0 0 2px #406745;}.gametop .eyebrow{display:none}.gametop h2{font-size:25px}.startext{font-size:23px;line-height:1.2;height:26px;margin-top:2px;color:#edbd4e;text-shadow:0 2px 0 #ac7136,0 4px 4px #0005}.startext:empty:before{font-size:23px;content:'★ ★ ★';color:#9c8d5277}.stats{max-width:810px;padding:11px 12px;border-radius:11px;border-color:#54795980;background:linear-gradient(#083522de,#04291cdb)}.stats small{font-family:Georgia,serif;font-size:16px;letter-spacing:0;color:#ede3c5}.stats b{font-size:29px;margin-top:1px;line-height:1.1}.playmat{padding:24px 0 12px}.tile{border:0;border-bottom:6px solid #a68b53;border-right:2px solid #bc9f67;box-shadow:1px 3px 0 #496044,3px 5px 5px #001c15bb,inset 0 0 0 1px #fff4c6;background:#ecddbd;border-radius:9px;padding:0;overflow:visible}.tileface{position:absolute;inset:0;display:block;pointer-events:none;background-image:var(--tile-atlas,none);background-size:600% 600%;border-radius:8px;box-shadow:inset 0 0 0 1px #fff4cb,inset 0 -2px 3px #a78c4933}.tile.blocked{filter:brightness(.94)}.tile.selected .tileface{box-shadow:inset 0 0 0 2px #ffe491,inset 0 0 12px #e8b64d55}.tile.selected,.tile.hinted{box-shadow:0 0 0 2px #f6cf56,0 0 19px #edbe5d9a,3px 5px 8px #001c15bb;background:#edcf87}.tools{max-width:865px;gap:17px;padding:0 30px;margin-top:16px}.tools button{padding:16px 13px 8px;border-radius:20px;column-gap:9px;background:linear-gradient(125deg,#fff5dc,#ecdabb 50%,#e4cda1);border:2px solid #f2d194;border-bottom:5px solid #ad884e;box-shadow:0 0 0 2px #9c753a,0 6px 8px #0007,inset 0 0 0 3px #fff4d199,inset 0 0 14px #d6ba7d44}.tools button:before{content:'❧';position:absolute;bottom:10px;left:10px;font-family:Georgia,serif;font-size:26px;color:#c3a77966;transform:rotate(-35deg);pointer-events:none}.tools button:after{content:'❧';position:absolute;bottom:10px;right:10px;font-family:Georgia,serif;font-size:26px;color:#c3a77966;transform:scaleX(-1) rotate(-35deg);pointer-events:none}.tools button>span{width:39px;display:block;color:#95783f}.tools svg{display:block;width:100%;height:39px;fill:currentColor;filter:drop-shadow(0 1px 0 #fff8)}.tools b{font-size:23px;letter-spacing:-.5px}.tools small{font-size:11px;color:#77612f;border-color:#b8a17055;padding-top:8px;margin-top:8px;z-index:1}.gamestatus{justify-content:center;font-family:Georgia,serif;font-size:13px;text-align:center;color:#eee0b8;min-height:32px;padding:7px 12px}.gamestatus #moves{display:none}.bottomline{max-width:865px;padding:13px 25px 8px;justify-content:center;gap:28px;margin:20px auto 0;border-top:1px solid #c0a26880}.bottomline button{font-family:Georgia,serif;font-size:19px;white-space:nowrap}.bottomline #restart{font-size:12px;color:#b8bf93}.bottomline>span{display:none}.footnote{display:none}footer{max-width:865px;margin:auto;padding:10px 24px 23px;font-size:8px;color:#9faf85}.pill{font-size:8px} @media(min-width:950px){body{max-width:800px}header{padding-top:10px}.brand{font-size:42px}main{padding:0 35px}.playmat{padding:23px 2% 12px}#board{max-height:none}.tools{padding:0 15px}.tools b{font-size:20px}.gametop{gap:12px}.stats{max-width:690px}.stats b{font-size:24px}.stats small{font-size:13px}.gametop h2{font-size:22px}.startext{font-size:19px;height:23px}.tools button{padding:13px 10px 8px}.round{top:31px;width:43px;height:43px}}@media(max-width:650px){body{padding-top:9px}header{padding:13px 43px 2px}.brand{font-size:clamp(28px,6.8vw,38px);letter-spacing:-1px}.brand:before{font-size:18px;margin-bottom:5px}.brand:after{height:5px}.round{top:29px;right:15px;width:33px;height:33px;font-size:19px}main{padding:0 16px}.gametop{gap:11px;padding:6px 0 3px}.gametop>div:first-child{padding:4px 18px;min-width:130px;border-radius:21px}.gametop h2{font-size:17px}.startext,.startext:empty:before{font-size:16px;height:18px;margin-top:0}.stats{padding:8px 7px;max-width:90%;border-radius:9px}.stats small{font-size:11px}.stats b{font-size:20px}.playmat{padding:24px 0 7px}.tile{border-radius:5px;border-bottom-width:4px;border-right-width:1px;box-shadow:1px 2px 0 #536647,2px 3px 3px #001c15aa}.tileface{border-radius:5px}.tools{gap:8px;padding:0 4px;margin-top:11px}.tools button{padding:11px 5px 6px;border-radius:12px;column-gap:3px;border-width:1px;border-bottom-width:3px;box-shadow:0 0 0 1px #9c753a,0 4px 5px #0007,inset 0 0 0 2px #fff4d1aa}.tools button>span{width:24px}.tools svg{height:25px}.tools b{font-size:clamp(11px,3.1vw,16px);letter-spacing:-.3px}.tools small{font-size:8px;padding-top:5px;margin-top:6px}.tools button:before,.tools button:after{font-size:16px;bottom:5px;left:5px}.tools button:after{left:auto;right:5px}.gamestatus{font-size:10px;min-height:30px;padding:6px 4px;line-height:1.4}.bottomline{margin-top:14px;padding:12px 3px 6px;gap:16px}.bottomline button{font-size:15px}.bottomline #restart{font-size:9px}footer{padding:8px 5px 21px;font-size:7px;gap:6px}.pill{font-size:6px;padding:4px 6px}}@media(max-width:360px){main{padding:0 13px}.tools button>span{width:20px}.tools svg{height:22px}.tools b{font-size:11px}.brand{font-size:27px}.bottomline button{font-size:13px}}
.fullscreen-button{right:auto;left:32px;font-family:system-ui;font-size:27px;line-height:1}html.fullview{overflow-y:auto;background:#08271c}html.fullview body{max-width:none;width:100%;min-height:100dvh;margin:0;padding-top:max(8px,env(safe-area-inset-top));background-size:100% 100%;}html.fullview main{max-width:1100px}html.fullview header{max-width:1100px}html.fullview footer{padding-bottom:max(16px,env(safe-area-inset-bottom))}@media(max-width:650px){.fullscreen-button{left:15px;font-size:24px}}@media(orientation:landscape){html.fullview header{padding:8px 80px 5px;max-width:none;height:66px}html.fullview .brand{font-size:29px}html.fullview .brand:before,html.fullview .brand:after{display:none}html.fullview .round{top:12px;height:40px;width:40px}html.fullview main{max-width:1500px;padding:0 25px}html.fullview .game{display:grid;grid-template-columns:minmax(0,1fr) min(30vw,260px);grid-template-areas:'board stats' 'board status' 'board tools' 'board nav';column-gap:22px;align-items:start}html.fullview .playmat{grid-area:board;padding:12px 0 8px;display:flex;justify-content:center;align-items:center}html.fullview #board{width:min(100%,calc((100dvh - 110px)*1.1));margin:0 auto;max-height:none}html.fullview .gametop{grid-area:stats;padding:9px 0 0;gap:9px}html.fullview .gametop>div:first-child{min-width:135px}html.fullview .gametop h2{font-size:18px}html.fullview .startext{font-size:16px;height:20px}html.fullview .stats{width:100%;max-width:none;padding:8px}html.fullview .stats small{font-size:10px}html.fullview .stats b{font-size:20px}html.fullview .gamestatus{grid-area:status;font-size:10px;padding:9px 0}html.fullview .tools{grid-area:tools;padding:0;margin:0;gap:9px;flex-direction:column;width:100%}html.fullview .tools button{padding:7px 16px 5px;grid-template-columns:30px 1fr;border-radius:12px}html.fullview .tools b{font-size:17px}html.fullview .tools button>span{width:27px}html.fullview .tools svg{height:27px}html.fullview .tools small{margin-top:3px;padding-top:3px;font-size:9px}html.fullview .bottomline{grid-area:nav;flex-wrap:wrap;gap:6px 10px;margin-top:10px;padding:8px 0 0}html.fullview .bottomline button{font-size:13px}html.fullview footer{display:none}}@media(orientation:landscape) and (max-height:500px){html.fullview header{height:49px;padding-top:5px}html.fullview .brand{font-size:22px}html.fullview .round{top:6px;width:32px;height:32px;font-size:20px}html.fullview main{padding:0 17px}html.fullview .game{column-gap:14px;grid-template-columns:minmax(0,1fr) 190px}html.fullview #board{width:min(100%,calc((100dvh - 72px)*1.1))}html.fullview .playmat{padding:6px 0 0}html.fullview .gametop{gap:5px;padding-top:0}html.fullview .gametop>div:first-child{padding:2px 15px;min-width:115px}html.fullview .gametop h2{font-size:15px;margin:0}html.fullview .startext{font-size:13px;height:16px}html.fullview .stats{padding:5px}html.fullview .stats small{font-size:9px}html.fullview .stats b{font-size:17px}html.fullview .gamestatus{padding:5px 0;font-size:9px;min-height:20px}html.fullview .tools{gap:5px}html.fullview .tools button{padding:4px 10px 3px;border-bottom-width:3px}html.fullview .tools b{font-size:14px}html.fullview .tools button>span{width:22px}html.fullview .tools svg{height:22px}html.fullview .tools small{font-size:8px;margin-top:1px;padding-top:1px}html.fullview .bottomline{padding-top:5px;margin-top:7px;gap:3px 8px}html.fullview .bottomline button{font-size:11px}}
/* Make the height of the actual stacks visible instead of blending their faces. */
.gametop .eyebrow{display:block;font-family:system-ui;font-size:9px;letter-spacing:1.2px;color:#dac78e;padding:1px 0 3px;text-transform:uppercase}.tile[data-layer="0"] .tileface{filter:brightness(.9)}.tile[data-layer="1"] .tileface{filter:brightness(.96)}.tile[data-layer="2"] .tileface,.tile[data-layer="3"] .tileface{filter:brightness(1.035)}.tile[data-layer="1"],.tile[data-layer="2"],.tile[data-layer="3"]{border-bottom-width:7px;box-shadow:2px 4px 0 #8b7249,3px 7px 1px #1f3d2ccc,5px 10px 9px #00190ec9}.tile[data-layer="2"],.tile[data-layer="3"]{border-bottom-color:#c4a36b;box-shadow:2px 4px 0 #b09861,3px 8px 1px #133822dd,6px 12px 10px #00180ecc}.tile[data-layer="1"] .tileface,.tile[data-layer="2"] .tileface,.tile[data-layer="3"] .tileface{box-shadow:inset 0 0 0 1px #fff7da,inset 0 2px 2px #fff9e1b0}.tile.selected,.tile.hinted{box-shadow:0 0 0 2px #f6cf56,0 0 19px #edbe5d9a,3px 7px 8px #001c15dd}.legacy-layers{display:flex;justify-content:center;gap:8px;align-items:center;flex-wrap:wrap;padding:8px;color:#e2cd9b;font-size:11px;line-height:1.5;text-align:center}.legacy-layers[hidden]{display:none}.legacy-layers button{background:#e5d0a4;border:1px solid #b99c5b;border-radius:8px;padding:7px 12px;color:#544526;font-size:11px}@media(max-width:650px){.gametop .eyebrow{font-size:7px;letter-spacing:.8px}.tile[data-layer="1"],.tile[data-layer="2"],.tile[data-layer="3"]{border-bottom-width:5px;box-shadow:1px 3px 0 #a38a54,2px 5px 0 #163425dd,3px 7px 6px #001809cc}.tile[data-layer="2"],.tile[data-layer="3"]{border-bottom-color:#d1b582;box-shadow:1px 3px 0 #b69a65,2px 6px 0 #153523dd,3px 8px 7px #00190bcc}.tile.selected,.tile.hinted{box-shadow:0 0 0 2px #f6cf56,0 0 14px #edbe5d9a,2px 5px 5px #001c15cc}.legacy-layers{font-size:9px}}html.fullview .legacy-layers{grid-column:1/-1}@media(orientation:landscape) and (max-height:500px){html.fullview .gametop .eyebrow{font-size:7px;padding-bottom:1px}}
.shop-pack{display:flex;justify-content:space-between;align-items:center;border:1px solid #c8ac6b;background:#f1e5c3;border-radius:14px;padding:21px 18px;margin:18px 0}.shop-pack strong{font-size:20px;color:#49603b}.shop-pack b{font-family:Georgia,serif;font-size:31px;color:#9c793a}.primary:disabled{opacity:.55;cursor:default}.shop-catalog{display:flex;flex-direction:column;gap:10px;margin:20px 0}.shop-item{border:1px solid #cfbd8c;border-radius:11px;background:#f6edd4;display:grid;grid-template-columns:1fr auto;gap:5px;text-align:left;padding:15px 14px;color:#485c37}.shop-item b{font-size:16px}.shop-item span{font-size:12px;color:#8e835f;grid-column:1}.shop-item strong{font-size:22px;grid-column:2;grid-row:1/3;align-self:center;color:#9c793a}.shop-item:hover{background:#efe0b8}

/* Keep all stones readable before artwork arrives, or if image delivery fails. */
.tileface{top:0;right:0;bottom:0;left:0}.tileface svg{display:none}

html:not(.artwork-ready) #board{visibility:hidden}.artwork-status{position:absolute;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;color:#e8d5a4;font-size:13px;text-align:center;padding:25px}.artwork-status[hidden]{display:none}.artwork-status button{border:1px solid #c8aa60;border-radius:9px;padding:10px 15px;color:#3a4a2d;background:#f0dfb8}.artwork-status button[hidden]{display:none}
.coin-wallet{border:0;background:none;flex:1;color:inherit;padding:0;text-align:center}.coin-wallet small{display:block;font-family:Georgia,serif;color:#ede3c5}.coin-wallet b{display:block;font-family:Georgia,serif;color:#f5d78c;font-weight:400;font-variant-numeric:tabular-nums}.coin-wallet:hover{filter:brightness(1.15)}.secondary:disabled{opacity:.5;cursor:default}
.hard-level-tag{display:inline-block;color:#ffe0aa;background:#813b2b;border:1px solid #cf9960;border-radius:7px;padding:3px 9px;font-size:9px;font-family:system-ui;letter-spacing:1.3px;margin:3px 0}.hard-level-tag[hidden]{display:none}.hard-level-card{background:#f1dbc1!important;border-color:#b56f45!important}.hard-card-label{display:block;font-size:7px;letter-spacing:1px;color:#985634;margin-top:3px}.hard-reward{background:#f2e4c0;border:1px solid #c8a359;border-radius:12px;text-align:center;padding:14px;margin:16px 0;color:#775c25}.hard-reward b{font-size:15px}.hard-reward p{margin:7px 0;color:#745d31}.hard-reward small{font-size:11px}.tile[data-layer="4"]{border-bottom-width:7px;border-bottom-color:#d1b37b;box-shadow:2px 5px 0 #9b7d46,4px 10px 1px #133822dd,7px 14px 10px #00180ecc}.tile[data-layer="4"] .tileface{filter:brightness(1.045)}@media(max-width:650px){.tile[data-layer="4"]{border-bottom-width:5px;box-shadow:1px 3px 0 #b69a65,2px 6px 0 #153523dd,3px 8px 7px #00190bcc}.hard-level-tag{font-size:7px;padding:2px 7px}.hard-reward b{font-size:13px}}

.section-name{display:block;font-size:10px;color:#dfc78d;margin-bottom:5px}.section-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0}.section-tabs button{padding:10px;border-radius:12px;border:1px solid #8b7542;background:#163d2e;color:#eedeb5;font-size:12px;text-align:left}.section-tabs button.active{border-color:#efd48a;background:#36573a;box-shadow:inset 0 0 0 1px #efd48a}.section-tabs small{display:block;opacity:.7;margin-top:4px}

[hidden]{display:none!important}.at-welcome:after{display:none}.welcome{max-width:1024px;margin:auto;background:#03291e;color:#ffe2a0;min-height:100vh}.welcome-hero{height:31.8vw;max-height:326px;background:url('assets/welcome.webp') center top/100% auto no-repeat}.welcome-preview{position:relative;height:55.7vw;max-height:570px;background:url('assets/welcome.webp') center -31.8vw/100% auto no-repeat;border-radius:22px;overflow:hidden}.welcome-hud{position:absolute;top:3.8%;left:3.5%;right:3.5%;display:flex;justify-content:space-between;gap:8px;background:#062b20;border:1px solid #b99b56;border-radius:24px;padding:8px 12px;font-family:Georgia,serif;font-size:clamp(9px,2vw,21px);color:#f9dfa0}.welcome-actions{padding:12px 11% 22px;background:linear-gradient(#042a1f,#022117)}#welcomeUser{text-align:center;font-size:12px;color:#b9c69a;margin:0 0 8px}.welcome-play,.welcome-account{width:100%;display:flex;align-items:center;justify-content:center;gap:24px;border:2px solid #d2b45a;border-radius:28px;padding:17px 12px;color:#fff0bb;box-shadow:0 5px 6px #0008,inset 0 0 0 3px #07291799;text-shadow:0 2px 3px #0008}.welcome-play{background:linear-gradient(#18872b,#056318 50%,#00441b);border-color:#a2c955;margin-bottom:18px}.welcome-account{background:linear-gradient(#07382a,#02261e);margin-bottom:18px}.welcome-play>span:first-child,.welcome-account>span:first-child{font-size:clamp(28px,5vw,57px);color:#ffdc81}.welcome-actions b{display:block;font:700 clamp(17px,3.7vw,40px) Georgia,serif}.welcome-actions small{display:block;font-size:clamp(10px,2.3vw,24px);margin-top:5px}.welcome-note{display:flex;align-items:center;gap:18px;padding:12px 18px;border:1px solid #967239;border-radius:18px;background:#01281c}.welcome-note>span{font-size:35px;color:#fbd775}.welcome-note p{font-size:clamp(11px,2.15vw,22px);line-height:1.55;margin:0}#accountStatus{text-align:center;min-height:20px;font-size:11px;color:#c9d0a7}.welcome-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #927940;padding:15px 12px;border-radius:10px}.welcome-bottom button{background:none;border:0;color:#f4d18a;font-size:clamp(18px,4vw,36px);padding:0}.welcome-bottom button span{font-size:clamp(10px,1.9vw,20px)}.welcome-language{font-size:clamp(10px,1.9vw,20px);white-space:nowrap}.welcome-bottom button[aria-pressed="false"]{opacity:.5}#accountForm label{display:block;margin:12px 0;color:#ead5a1;font-size:13px}#accountForm input{display:block;box-sizing:border-box;width:100%;padding:13px;margin-top:6px;border:1px solid #b29860;border-radius:10px;background:#0b3024;color:#fff1ce;font:inherit;font-size:16px}.form-error{color:#ffc0a0!important;min-height:18px}.recovery-code{display:block;padding:15px;overflow-wrap:anywhere;user-select:all;border:1px solid #b29860;border-radius:12px;background:#092b20;color:#fff0bd;margin:15px 0}.text-button{background:none;border:0;color:#ddc482;text-decoration:underline;margin:15px 0}.at-welcome header,.at-welcome main{display:none}@media(min-width:1024px){.welcome-preview{background-position:center -326px}}@media(max-width:480px){.welcome-actions{padding:12px 7% 18px}.welcome-play,.welcome-account{border-radius:20px;gap:12px;padding:14px 9px}.welcome-note{gap:10px;padding:10px}.welcome-bottom{padding:12px 8px}}

/* Account forms: cream fields on a dark green panel, with explicit contrast. */
dialog.account-dialog{background:linear-gradient(135deg,#123e2e,#062a20);color:#fff1ce;border-color:#d2b36d;color-scheme:light}dialog.account-dialog h2{color:#ffedb8}dialog.account-dialog p{color:#dce4ce}dialog.account-dialog .eyebrow{color:#e2cb94}dialog.account-dialog .close{color:#ffedb8}.account-dialog label,#accountForm label{color:#f5e4b9;font-size:15px;font-weight:600}.account-dialog input,#accountForm input{box-sizing:border-box;display:block;width:100%;background:#fff7e0;color:#183b2d;border:2px solid #d4b775;border-radius:10px;padding:13px;margin-top:7px;font:inherit;font-size:16px;caret-color:#183b2d}.account-dialog input::placeholder{color:#66735a;opacity:1}.account-dialog input:focus{outline:3px solid #f1d589;outline-offset:2px;border-color:#6f8b53}.account-dialog .primary{background:linear-gradient(#ffe3a2,#e9c67b);color:#183b2d;border-color:#dab76b;border-bottom-color:#997941;font-weight:600}.account-dialog .secondary{background:#174b37;color:#fff1ce;border-color:#d2b36d}.account-dialog .text-button{color:#ffe3a2}.account-dialog .form-error{color:#ffd0b8!important;font-weight:500}.account-dialog .recovery-code{background:#fff7e0;color:#183b2d;border-color:#d4b775;font-size:15px}
/* Cherry temple theme — the approved welcome scene now continues into play. */
body{max-width:1024px;padding:0;background:#03291e}#gameScreen{max-width:1024px;margin:auto;background:radial-gradient(ellipse at top,#104f35,#03291e 70%);padding-bottom:12px}#gameScreen header{position:relative;box-sizing:border-box;width:100%;max-width:none;height:min(31.8vw,326px);padding:0;background:url('assets/welcome.webp') center top/100% auto no-repeat}#gameScreen .brand{position:absolute;inset:0;display:block;font-size:0;color:transparent;text-shadow:none;letter-spacing:0}#gameScreen .brand:before,#gameScreen .brand:after{display:none}#gameScreen .round{top:auto;bottom:12px;right:20px;z-index:2;width:42px;height:42px;border-color:#f0ce82;background:linear-gradient(#164d35,#052c21);box-shadow:0 2px 5px #0009,inset 0 0 0 2px #a48a4e44;color:#ffdc89}#gameScreen .fullscreen-button{left:20px;right:auto}#gameScreen main{max-width:none;padding:0 12px}#gameScreen .game{padding:18px 20px 14px;border-radius:24px;background:#043325 url('assets/cherry-table-v1.webp') center/100% 100% no-repeat;box-shadow:0 5px 18px #0007;display:grid;grid-template-columns:minmax(0,1fr) 90px;grid-template-areas:'top top' 'board tools' 'status status' 'legacy legacy' 'nav nav';gap:8px 16px}#gameScreen .gametop{grid-area:top;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:0 0 8px}#gameScreen .gametop>div:first-child{padding:8px 13px;min-width:0;flex:1;border:1px solid #c7ab64;background:#032b20ed;border-radius:18px;box-shadow:inset 0 0 0 2px #886e3433;text-align:left}#gameScreen .section-name{font-size:10px;color:#ead49b;line-height:1.4}#gameScreen .gametop .eyebrow{font-size:8px;padding:2px 0;color:#d5c798}#gameScreen .gametop h2{font-size:22px;margin:3px 0;color:#ffe6a7}#gameScreen .startext{display:inline-block;margin-left:12px;font-size:15px;letter-spacing:1px;height:auto}#gameScreen .startext:empty:before{font-size:15px}#gameScreen .stats{flex:1.3;max-width:none;width:auto;background:#03291eed;border:1px solid #c7ab64;border-radius:18px;padding:12px 8px;box-shadow:inset 0 0 0 2px #886e3433}#gameScreen .stats small{font:12px system-ui;color:#ead9b0}#gameScreen .stats b{font-size:25px;color:#ffe6a7}#gameScreen .stats div{border-color:#c6a45355}#gameScreen .playmat{grid-area:board;padding:6px 0 12px;align-self:center;min-width:0}#gameScreen .matdecor{display:none}#gameScreen .tools{grid-area:tools;align-self:center;display:flex;flex-direction:column;gap:12px;padding:0;margin:6px 0;width:100%}#gameScreen .tools button{border:1px solid #e9c67b;border-bottom:3px solid #997637;background:linear-gradient(#11462f,#043024);box-shadow:0 3px 5px #0009,inset 0 0 0 2px #d2ab5933;border-radius:18px;color:#ffe3a1;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:10px 5px 8px;min-height:90px}#gameScreen .tools button:before,#gameScreen .tools button:after{display:none}#gameScreen .tools button>span{width:35px;color:#ffce62}#gameScreen .tools svg{height:35px;filter:drop-shadow(0 1px 2px #0009)}#gameScreen .tools b{font:12px Georgia,serif;white-space:normal;color:#ffebba;letter-spacing:0}#gameScreen .tools small{font:10px system-ui;color:#ead295;line-height:1.3;border:0;margin:0;padding:2px 0 0;text-align:center}#gameScreen .tools button:hover:not(:disabled){background:linear-gradient(#266844,#10452f);filter:brightness(1.06)}#gameScreen .tools [data-action='hint']{order:0}#gameScreen .tools [data-action='shuffle']{order:1}#gameScreen .tools [data-action='undo']{order:2}#gameScreen .gamestatus{grid-area:status;margin:0;padding:7px 12px;background:#042c21de;border-radius:12px;font-size:13px;color:#f7e7c1}#gameScreen .legacy-layers{grid-area:legacy}#gameScreen .bottomline{grid-area:nav;margin:0;padding:8px 4px 0;border-color:#d7b26588;gap:20px;flex-wrap:wrap;max-width:none}#gameScreen .bottomline button{color:#ffe4a1;font-size:16px}#gameScreen .bottomline #restart{font-size:12px;color:#e0d3ad}#gameScreen footer{max-width:none;margin:0;padding:12px 16px;color:#c3ccad}#gameScreen .pill{color:#d5cc9a;border-color:#a7914b77}
@media(max-width:650px){#gameScreen main{padding:0 8px}#gameScreen .round{bottom:6px;width:30px;height:30px;font-size:18px;right:12px}#gameScreen .fullscreen-button{left:12px}#gameScreen .game{padding:13px 13px 12px;grid-template-columns:minmax(0,1fr);grid-template-areas:'top' 'board' 'tools' 'status' 'legacy' 'nav';gap:4px;border-radius:17px}#gameScreen .gametop{gap:7px;padding-bottom:4px}#gameScreen .gametop>div:first-child{padding:6px 8px;border-radius:12px}#gameScreen .gametop h2{font-size:17px}#gameScreen .section-name{font-size:8px}#gameScreen .gametop .eyebrow{font-size:7px}#gameScreen .startext,#gameScreen .startext:empty:before{font-size:12px;margin-left:5px}#gameScreen .stats{padding:8px 3px;border-radius:12px;flex:1.4}#gameScreen .stats small{font-size:9px}#gameScreen .stats b{font-size:18px}#gameScreen .playmat{padding:10px 0 7px}#gameScreen .tools{flex-direction:row;gap:8px;margin:5px 0 4px}#gameScreen .tools button{flex:1;min-width:0;min-height:75px;border-radius:13px;padding:8px 3px 7px}#gameScreen .tools button>span{width:28px}#gameScreen .tools svg{height:28px}#gameScreen .tools b{font-size:12px}#gameScreen .tools small{font-size:9px}#gameScreen .gamestatus{font-size:11px;padding:8px 5px;line-height:1.5}#gameScreen .bottomline{gap:8px 15px;padding-top:9px}#gameScreen .bottomline button{font-size:14px}#gameScreen .bottomline #restart{font-size:10px}#gameScreen footer{padding:10px 13px 18px;font-size:8px;flex-wrap:wrap}}
@media(orientation:landscape){html.fullview body{padding:0}html.fullview #gameScreen{max-width:none;min-height:100dvh}html.fullview #gameScreen header{height:54px;padding:8px 75px;background:linear-gradient(#12472f,#062d20);display:flex;align-items:center;justify-content:center}html.fullview #gameScreen .brand{position:relative;inset:auto;font-size:27px;color:#ffe5a0;text-shadow:0 2px 3px #0008}html.fullview #gameScreen .round{top:9px;bottom:auto;width:35px;height:35px}html.fullview #gameScreen main{padding:0 10px;max-width:1500px;margin:auto}html.fullview #gameScreen .game{grid-template-columns:minmax(0,1fr) min(29vw,230px);grid-template-areas:'board top' 'board tools' 'board status' 'board nav';column-gap:15px;padding:13px 18px;align-items:start}html.fullview #gameScreen .gametop{flex-direction:column;gap:5px}html.fullview #gameScreen .gametop>div:first-child{width:100%;box-sizing:border-box;text-align:center;padding:3px 7px}html.fullview #gameScreen .stats{width:100%;box-sizing:border-box;padding:6px 3px}html.fullview #gameScreen .gametop h2{font-size:15px}html.fullview #gameScreen .stats b{font-size:17px}html.fullview #gameScreen .stats small{font-size:9px}html.fullview #gameScreen .tools{flex-direction:column;margin:0;gap:5px}html.fullview #gameScreen .tools button{flex-direction:row;flex-wrap:wrap;min-height:40px;padding:4px 6px;border-radius:10px;column-gap:8px}html.fullview #gameScreen .tools small{flex-basis:100%;font-size:8px;padding:0}html.fullview #gameScreen .tools button>span{width:20px}html.fullview #gameScreen .tools svg{height:20px}html.fullview #gameScreen .tools b{font-size:12px}html.fullview #gameScreen .playmat{padding:0;display:flex;align-items:center;justify-content:center}html.fullview #gameScreen .gamestatus{font-size:9px;padding:5px}html.fullview #gameScreen .bottomline{padding-top:5px;gap:4px 8px}html.fullview #gameScreen .bottomline button{font-size:11px}html.fullview #gameScreen footer{display:none}}
