/* Approved sky-and-gold visual layer. Business state stays in next.js. */
:root{--ink:#412e22;--muted:#8c6448;--blue:#29498e;--gold:#ab7e35;--line:#f0e4cc;--cream:#fff2d7;--ease:cubic-bezier(.22,.8,.28,1)}
body{background:#faf6ee;min-width:320px}
body::before,body::after{display:none}
.sky-ambient{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:radial-gradient(ellipse at 68% 30%,#f5eddc 0,transparent 45%),linear-gradient(120deg,#f7f4e2 0%,#fbf7f0 44%,#f7f1e5 100%)}
.sky-sunlight{position:absolute;top:-30%;left:-15%;width:105%;height:170%;transform:rotate(-32deg);background:linear-gradient(90deg,transparent 16%,#fff4cca6 23%,#fff4dd6e 31%,transparent 38%,#ffffffe3 49%,#ffffff63 56%,transparent 61%);opacity:.72}
.sky-orbit{position:absolute;border:1px solid #dcd0bd33;border-radius:50%;right:-24%;top:-57%;width:95vw;height:95vw}
.sky-orbit-b{right:-12%;top:-47%}
.shell{max-width:1300px;padding:0 48px}
.topbar{height:105px;min-height:0;border-color:#ddd1bf52;gap:24px}
.brand{gap:12px;flex-shrink:0}
.brand-icon{width:49px;height:49px;flex-shrink:0;border-radius:17px;background:linear-gradient(135deg,#fff8db,#f6e4b0);border:1px solid #fff;box-shadow:0 3px 12px #b1a57617}
.brand-icon svg{display:block;width:82%;height:auto;aspect-ratio:185 / 157}
.brand-title{font-size:var(--fs-xl);font-weight:var(--fw-3);letter-spacing:1.2px;line-height:1.3}
.brand-subtitle{font-size:var(--fs-xs);letter-spacing:2px;margin-top:7px;color:var(--t-3)}
.top-actions{gap:10px;min-width:90px;justify-content:flex-end}
.preview-label{font-size:var(--fs-xs);color:var(--t-3)}
.preview-label::before{width:4px;height:4px;background:#adbfbb}
.app-nav{display:flex;gap:32px;align-self:stretch;align-items:center;margin:0;padding:0;border:0;overflow:visible}
.nav-button{height:100%;padding:3px 0 0;background:none;font-size:var(--fs-sm);color:var(--t-3);position:relative;white-space:nowrap;border:0}
.nav-button.active{color:var(--t-link);font-weight:var(--fw-2)}
.nav-button.active::after{height:3px;border-radius:2px;bottom:22px;background:#c79d48}
.profile{padding:6px 2px 6px 7px;border-radius:30px;gap:10px;background:transparent}
.profile strong{font-size:var(--fs-xs);color:var(--t-2);font-weight:var(--fw-2)}
.profile small{font-size:var(--fs-xs);color:var(--t-gold);margin-top:4px}
.portrait{border:2px solid #fff;box-shadow:0 0 0 1px #f2e7d1}
.scene{display:grid;grid-template-columns:minmax(320px,.84fr) minmax(0,1.16fr);grid-template-areas:"side board";gap:55px;align-items:center;min-height:690px;padding:49px 0 56px}
.side{grid-area:side;padding:12px 10px 15px 15px;max-width:420px;width:100%;min-width:0}
.board-scene{grid-area:board;position:relative;isolation:isolate;margin:0 8px 0 0;perspective:1300px;padding-bottom:10px;min-width:0}
.board{position:relative;z-index:2;background:linear-gradient(130deg,#fff6e3 2%,#fbfdfb 44%,#f8f2e7 100%);border:1px solid #fff;border-radius:32px;padding:25px 23px 15px;box-shadow:inset 0 0 0 1px #f0e3ca40,0 1px 0 #fff,0 17px 18px -17px #94694c66,0 30px 60px -24px #9c6f5144,3px 9px 0 -2px #f0e4cc;transform:rotate(-1.5deg);transition:transform .5s var(--ease),box-shadow .3s}
.board::before{display:none}
.board-cap{height:36px;display:flex;justify-content:space-between;align-items:flex-start;padding:0 9px;font-size:var(--fs-xs);color:var(--t-3);letter-spacing:1px}
.board-cap>span:first-child{display:flex;gap:8px;align-items:center}
.board-cap i{width:4px;height:4px;border-radius:50%;background:#d2b157}
.board-index{font:12px Georgia,serif;letter-spacing:2px;color:var(--t-3)}
.board-underside{position:absolute;left:7%;right:4%;bottom:-16px;height:70px;background:#956a4d20;filter:blur(28px);border-radius:50%;z-index:-1;transform:rotate(-3deg)}
.floating-seal{position:absolute;right:-19px;top:-24px;z-index:3;width:73px;height:73px;background:linear-gradient(135deg,#fffcdc,#fae5a7);border:1px solid #fff;box-shadow:0 9px 26px #8e8e6b15,inset 0 0 0 5px #fff1c5,inset 0 0 0 6px #d2b25d55;border-radius:50%;transform:rotate(13deg);display:flex;align-items:center;justify-content:center;gap:4px;color:#b58e3e;pointer-events:none}


.board-top{display:none}
body[data-mode=landing] #board-context,body[data-mode=auth] #board-context{display:none}
.box-grid{gap:13px}
.chest-cell{aspect-ratio:1/.94;border-radius:19px;background:linear-gradient(137deg,#f4f7f5,#f9f4e9 63%,#f6eedf);box-shadow:inset 0 1px 3px #dbcebb22,inset 0 -1px 0 #fff,0 1px 0 #fff;border:1px solid #f4ebd950;transition:background .25s,box-shadow .25s,border-color .25s}
.chest-cell::before{content:"";position:absolute;inset:3px;width:auto;height:auto;border-radius:16px;border:1px solid #fff8;background:none;box-shadow:none;transform:none;pointer-events:none;animation:none}
.chest-cell::after{inset:20% 8% 4%;background:radial-gradient(ellipse,#fff5c185,transparent 65%);opacity:0}
.cell-number{left:13px;top:10px;font-size:var(--fs-xs);color:var(--t-3);font-weight:var(--fw-2);z-index:3}
.chest-art,.chest-cell.opened:not(.winner) .chest-art{position:static;display:block;width:100%;height:100%;transform:none!important;pointer-events:none;animation:none!important}
.chest-svg{display:block;width:103%;height:100%;margin-left:-1.5%;overflow:visible;pointer-events:none;position:relative;z-index:1}
.chest-group{transform-origin:115px 171px;transition:transform .24s var(--ease)}
.box-lid{transform-origin:112px 88px;transition:transform .55s var(--ease)}
.inside-glow{opacity:0;transform:translateY(10px);transition:opacity .25s,transform .45s}
.chest-eyes{transform-origin:110px 123px}
.cell-status{bottom:5px;font-size:var(--fs-xs);letter-spacing:.5px;color:var(--t-gold);z-index:3;opacity:0;transform:translateY(3px);transition:opacity .2s,transform .2s;pointer-events:none}
.chest-cell.hop .chest-group{animation:sky-box-hop .65s var(--ease)}
.chest-cell.anticipating .chest-group{animation:sky-wiggle .38s ease-in-out infinite}
.chest-cell.winner{background:linear-gradient(140deg,#fff5c5,#f2eed6);border-color:#ecd29160;box-shadow:inset 0 0 0 1px #f0d28366,0 4px 16px #e0ab3014}
.chest-cell.winner::after{opacity:1}
.chest-cell.winner .box-lid{transform:translate(-7px,-27px) rotate(-14deg)}
.chest-cell.winner .inside-glow{opacity:1;transform:translateY(0)}
.chest-cell.winner .cell-status,.chest-cell.opened .cell-status{opacity:1;transform:none}
.chest-cell.winner.reveal .chest-group{animation:sky-box-hop .7s var(--ease)}
.chest-cell.winner.reveal .chest-eyes{animation:sky-happy .55s 2}
.chest-cell.opened:not(.winner){opacity:.55;background:linear-gradient(137deg,#f4f7f5,#f6eedf)}
.chest-cell.opened:not(.winner) .box-lid{transform:translate(-2px,-12px) rotate(-6deg)}
.chest-cell.suggested{border-color:#c2a152;background:linear-gradient(140deg,#fff6d4,#f9f5ec);box-shadow:inset 0 0 0 1px #f0d28388,0 2px 12px #ae8d4b16;animation:none}
.chest-cell.suggested::before{content:"";border:1px solid #fff8;background:none;inset:3px;width:auto;height:auto;border-radius:16px;transform:none;box-shadow:none;animation:none}
.chest-cell.suggested::after{opacity:0}
.chest-cell.suggested .cell-number{color:var(--t-link);font-weight:var(--fw-3)}
.chest-cell.suggested .cell-status{display:block;opacity:1;transform:none;bottom:auto;left:auto;right:7px;top:7px;width:auto;font-size:var(--fs-xs);letter-spacing:0;color:var(--t-gold);border-radius:20px;background:#f6e3a5;padding:4px 7px;line-height:1}
.chest-cell.suggested .cell-status::before{content:none;display:none}
.chest-cell.playable:not(:disabled){cursor:pointer}
@media(hover:hover){.chest-cell.playable:not(:disabled):hover .chest-group{transform:translateY(-5px)}.chest-cell.playable:not(:disabled):hover::after{opacity:1}}
.chest-cell.playable:not(:disabled):active .chest-group{transform:translateY(3px) scale(.98)}
.board-foot{justify-content:flex-start;padding:13px 7px 0;height:auto;min-height:30px;margin-top:0;font-size:var(--fs-xs);color:var(--t-3);line-height:1.8}
.board-foot svg{display:none}
.board-foot::after{content:"✦";margin-left:auto;color:#c7ab65;font-size:13px}
.eyebrow{gap:11px;color:var(--t-gold);font-size:var(--fs-xs);letter-spacing:3px;margin:0 0 24px}
.eyebrow::before{width:25px;background:#b89850}
.hero-title{font-size:clamp(40px,4.4vw,60px);font-weight:var(--fw-3);line-height:1.43;letter-spacing:-2.2px;margin:0}
.hero-title .accent{color:#274688;position:relative;display:inline-block}
.hero-title .accent::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:5px;background:linear-gradient(90deg,#efc55eaa,transparent);border-radius:50%;transform:rotate(-2deg)}
.greeting-slot{height:76px;max-width:350px}
.greeting{font-size:var(--fs-sm);color:var(--t-3);line-height:1.9}
.entry-buttons{display:grid;grid-template-columns:1fr;gap:12px;max-width:306px}
.button{border-radius:12px;font-size:var(--fs-sm);min-height:49px;padding:13px 21px;transition:transform .16s var(--ease),box-shadow .16s var(--ease),background .16s,color .16s}
.button.primary{background:linear-gradient(120deg,#284689,#2a4b91);border-color:#2a4b91;box-shadow:0 8px 18px #27458620,inset 0 1px 0 #ffffff40}
.button.primary:hover:not(:disabled){background:linear-gradient(120deg,#2b4c93,#3054a4);box-shadow:0 9px 23px #27458632}
.button.secondary{background:#ffffff9c;border-color:#e3dacc;color:var(--t-3)}
.button:disabled{opacity:.45;box-shadow:none;transform:none}
.entry-buttons .button{justify-content:flex-start;padding-left:24px;white-space:nowrap}
.entry-note{font-size:var(--fs-xs);color:var(--t-3);max-width:350px;margin:22px 0 0;line-height:1.9}
.entry-note strong{font-size:var(--fs-sm);color:var(--t-2);display:block;font-weight:var(--fw-2);margin-top:3px;line-height:1.9}
.scene.transitioning .board{transform:rotate(0) scale(.99)}
.scene.transitioning .side{animation:sky-panel-in .35s var(--ease)}
.auth-card{animation:sky-panel-in .3s var(--ease)}
.auth-card h1{font-size:var(--fs-title);font-weight:var(--fw-3);letter-spacing:-1px;margin-bottom:20px}
.auth-card .step-line{font-size:var(--fs-xs);color:var(--t-gold)}
.auth-lead{font-size:var(--fs-sm);line-height:1.8}
.field{font-size:var(--fs-sm);color:var(--t-3)}
.field input,.field textarea,.field select{border-color:#eee1c6;background:#ffffffb5;border-radius:11px;color:var(--t-2);padding:14px 16px;min-width:0;font-size:var(--fs-sm)}
.field input:focus,.field textarea:focus{outline:2px solid #c2ad8d66;border-color:#c7b396}
.text-btn{color:var(--t-3)}
.text-btn:hover{color:var(--t-link)}
body[data-mode=account] .board,body[data-mode=guest] .board{transform:none}
body[data-mode=auth] .board{transform:rotate(0) scale(.98)}
body[data-mode=account] .floating-seal,body[data-mode=guest] .floating-seal{opacity:.65;transform:rotate(8deg)}
.play-intro .eyebrow{margin-bottom:14px}
.play-title{font-size:var(--fs-title);line-height:1.4;letter-spacing:-1px;font-weight:var(--fw-3);margin:0 0 20px}
.play-intro #board-context{margin-bottom:0}
.role-toggle{display:flex;max-width:100%;width:auto;min-height:42px;gap:9px;padding:5px 11px 5px 6px;border-radius:24px;background:#ffffffc9;border:1px solid #f3e9d4;margin:0 0 20px;color:var(--t-3)}
.role-toggle .portrait{width:30px;height:30px}
.role-toggle strong{font-size:var(--fs-xs);font-weight:var(--fw-2)}
.role-toggle small{font-size:var(--fs-xs);line-height:1.5}
.guest-marker{font-size:var(--fs-xs);color:var(--t-3);margin:0 0 20px}
.floor-line{display:flex;flex-direction:column;align-items:stretch;gap:9px;margin:0 0 20px}
.floor-text{font-size:var(--fs-xs);color:var(--t-3)}
.floors{width:100%;gap:7px;max-width:340px}
.floors::before{display:none}
.floor-dot{height:4px;flex:1;border:0;background:#f1e6d0;border-radius:3px}
.floor-dot.done{background:#d5c7b2}
.floor-dot.current{background:#c8a04b;box-shadow:0 0 0 3px #e7d19b24}
.suggestion{display:flex;align-items:center;gap:12px;background:linear-gradient(110deg,#fff3d0,#fff9e1);border:1px solid #e3cf9a;border-radius:15px;padding:18px;margin:0 0 21px;box-shadow:0 8px 22px #c6b2710a;max-width:100%;min-height:74px}
.suggestion::before{content:"✧";width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;border:1px solid #e3c571;border-radius:10px;background:linear-gradient(135deg,#fff3be,#f5d57f);color:#a58435;font-size:22px;box-shadow:inset 0 0 0 3px #fff3cd}
.suggestion span{color:var(--t-gold);font-size:var(--fs-sm);font-weight:var(--fw-2)}
.suggestion b{margin-left:auto;color:var(--t-link);font-size:35px;font-weight:var(--fw-2);white-space:nowrap;line-height:1.2}
.suggestion.recorded b{font-size:var(--fs-sm);white-space:normal}
.suggestion.completed b{color:var(--t-gold)}
.play-lead{font-size:var(--fs-xs);line-height:1.9;color:var(--t-3);margin:0 0 18px}
.play-note{border:0;border-left:2px solid #d2b364;background:linear-gradient(90deg,#f4e9caaa,transparent);border-radius:0;padding:9px 12px;margin:0 0 20px;color:var(--t-gold)}
.play-note summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:10px;font-size:var(--fs-xs)}
.play-note summary::-webkit-details-marker{display:none}
.play-note summary::after{content:"＋"}
.play-note[open] summary::after{content:"−"}
.play-note p{font-size:var(--fs-xs);line-height:1.8;margin:9px 0 0}
.play-outro .round-path{margin:4px 0 18px;gap:6px}
.round-path span{height:28px;width:28px;min-width:0;border-color:#f1e6d0;border-radius:6px;font-size:var(--fs-xs);color:var(--t-3);background:#ffffff70}
.round-path span.unknown{color:var(--t-3);background:#ffffff55}
.play-controls{gap:11px}
.play-controls .button{min-width:0;font-size:var(--fs-sm)}
.play-controls .button.secondary{flex:0 0 84px;padding:10px}
.save-note{font-size:var(--fs-xs);color:var(--t-3);line-height:1.7;margin:14px 0 0}
.sub-actions{margin:8px 0 0}
.cta-card{background:transparent;border:0;border-top:1px solid #f0e4cc99;border-radius:0;padding:16px 0 0;margin:18px 0 0}
.cta-card h3{font-size:var(--fs-sm);color:var(--t-3);margin-bottom:7px}
.cta-card p{font-size:var(--fs-xs);line-height:1.8;margin-bottom:3px;color:var(--t-3)}
.workspace{padding:45px 0 58px;animation:sky-panel-in .3s var(--ease);min-height:650px}
.page-heading{align-items:flex-end;margin-bottom:32px}
.page-heading h1{font-size:var(--fs-title);font-weight:var(--fw-2);letter-spacing:-1.2px}
.page-heading p{font-size:var(--fs-sm);color:var(--t-3);margin-top:12px}
.page-heading .eyebrow{margin-bottom:15px}
.points-purse{display:flex;align-items:center;gap:22px;padding:17px 24px;border:1px solid #e5d4a6;background:linear-gradient(110deg,#fff3d0,#fff7de);border-radius:15px;min-width:220px}
.points-purse small{font-size:var(--fs-xs);color:var(--t-gold);display:block;line-height:1.5}
.points-purse strong{font:36px/1.1 Georgia,serif;color:var(--t-gold);display:flex;align-items:baseline;gap:8px;margin-top:3px}
.points-purse strong span{font-size:var(--fs-xs)}
.coin{width:42px;height:42px;border-radius:50%;background:linear-gradient(130deg,#ffefb2,#dcaa46);color:var(--t-gold);display:grid;place-items:center;border:1px solid #e9c774;box-shadow:inset 0 0 0 3px #fce6a1,0 3px 0 #d0a74c;font-size:var(--fs-lg)}
.shop-toolbar{margin:0 0 24px}
.shop-toolbar .filter-line{gap:25px}
.shop-toolbar .filter-button{border:0;border-radius:0;padding:9px 0;font-size:var(--fs-sm);color:var(--t-3);min-height:40px}
.shop-toolbar .filter-button.active{background:none;color:var(--t-2);box-shadow:inset 0 -2px #be9d4e}
.shop-count{font-size:var(--fs-xs);color:var(--t-3);white-space:nowrap}
.shop-grid{gap:26px;margin-top:0}
.shop-card{background:transparent;border:0;box-shadow:none;border-radius:0;overflow:visible;min-width:0}
.shop-card>.shop-art{border:8px solid #fff5e0;border-radius:15px;box-shadow:0 3px 0 #e2d8ca,0 12px 30px -14px #77543d3d;background:linear-gradient(150deg,#fff9e1,#f3f4ed);transition:transform .3s var(--ease),box-shadow .3s}
.shop-art img{border-radius:7px;transition:transform .5s var(--ease)}
@media(hover:hover){.shop-card:hover>.shop-art{transform:translateY(-5px) rotate(-.5deg);box-shadow:0 3px 0 #e2d8ca,0 23px 30px -15px #77543d50}.shop-card:hover>.shop-art img{transform:scale(1.035)}}
.shop-card-body{padding:18px 2px 0}
.shop-card-heading h2{font-size:var(--fs-md);font-weight:var(--fw-2);color:var(--t-2)}
.price{color:var(--t-gold);font-size:var(--fs-md)}
.price small{font-size:var(--fs-xs)}
.shop-card-note{font-size:var(--fs-xs);line-height:1.8;min-height:23px;margin:10px 0;color:var(--t-3)}
.shop-card .button{min-height:42px;font-size:var(--fs-xs);border-radius:9px;box-shadow:none}
.shop-card .button.primary{background:#fcfaf5;border-color:#e3d9ca;color:var(--t-link)}
.shop-card .button.primary:hover:not(:disabled){background:#f8f3e8}
.shop-card .button:disabled{opacity:.7;color:var(--t-3);background:#f9f4ea}
.shop-disclaimer{color:var(--t-3);margin-top:28px;font-size:var(--fs-xs)}
.shop-admin-meta{font-size:var(--fs-xs);min-height:28px;margin:12px 0}
.shop-admin-actions .button{border-radius:8px;font-size:var(--fs-xs)}
.shop-skeleton .shop-art{animation:sky-skeleton 1.5s ease-in-out infinite alternate}
.record-list{background:#ffffffa8;border-color:#f1e6d0;box-shadow:none}
.record-item{border-color:#f1e6d0}
.record-seq span{background:#faf6ee;border-color:#f1e5cd;color:var(--t-3)}
.filter-button.active{background:#f7f1e4;border-color:#e5dcce;color:var(--t-link)}
.record-date-filter{background:#ffffffa1;border-color:#f1e5cd}
dialog{background:linear-gradient(135deg,#fff9e1,#fcfaf5);border-color:#fff;box-shadow:0 30px 90px #51392a35;border-radius:24px}
dialog::backdrop{background:#3e2c2035;backdrop-filter:blur(7px)}
.dialog-top h2{font-weight:var(--fw-2);color:var(--t-2)}
.close-dialog{background:#f8f1e5}
.account-menu-row:hover,.role-option.selected{background:#f8f3e8}
.points-pocket{background:linear-gradient(110deg,#fff3d0,#fff7de);border-color:#e5d4a6}
.footer{min-height:100px;padding:24px 0;border-top:1px solid #e2d8ca5c;gap:12px;align-items:center}
.footer .creator-credit{font-size:var(--fs-sm);font-weight:var(--fw-2);letter-spacing:.7px;color:var(--t-3)}
.footer-registration{width:auto;margin-left:auto;font-size:var(--fs-xs);color:var(--t-3)}
.footer-registration a:hover{color:var(--t-link)}
.sync-banner{margin-top:16px;font-size:var(--fs-xs)}
@keyframes sky-box-hop{0%,100%{transform:translateY(0) scale(1)}22%{transform:translateY(2px) scale(1.025,.965)}52%{transform:translateY(-13px) rotate(-3deg) scale(.985,1.02)}78%{transform:translateY(1px) scale(1.025,.985)}}
@keyframes sky-wiggle{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}
@keyframes sky-happy{50%{transform:scaleY(.55)}}
@keyframes sky-panel-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
@keyframes sky-skeleton{from{opacity:.5}to{opacity:1}}
@media(min-width:1450px){.shell{max-width:1390px;padding:0 65px}.scene{gap:75px;padding-top:65px;padding-bottom:65px;min-height:760px}.side{padding-left:25px}.hero-title{font-size:65px}.board{padding:30px 27px 19px}.board-cap{height:41px}.box-grid{gap:15px}}
@media(max-width:1100px){.shell{padding:0 35px}.scene{gap:30px;grid-template-columns:minmax(280px,.83fr) minmax(0,1.17fr);min-height:610px;padding-top:40px}.side{padding-left:3px}.hero-title{font-size:46px}.play-title{font-size:var(--fs-title)}.app-nav{gap:23px}.board{padding:21px 17px 14px}.floating-seal{width:60px;height:60px;right:-13px;top:-22px}.box-grid{gap:10px}.shop-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}}
@media(min-width:761px) and (max-height:820px){.topbar{height:85px}.scene{min-height:0;padding:35px 0 36px;gap:40px;grid-template-columns:1fr 1.2fr}.hero-title{font-size:49px}.side{padding-top:0;padding-bottom:0}.board-scene{max-width:570px;justify-self:end;width:100%}.board{padding-top:20px}.greeting-slot{height:65px}.entry-buttons{max-width:285px}.eyebrow{margin-bottom:20px}.entry-note{margin-top:17px}.board-cap{height:30px}.play-title{font-size:var(--fs-title)}.play-note{margin-bottom:16px}}
@media(max-width:760px){
 .shell{padding:0 23px}.topbar{height:84px;gap:12px;flex-wrap:wrap;position:relative;min-height:0}.topbar:has(.app-nav:not([hidden])){height:126px;padding-top:13px;align-content:flex-start}
 .brand{gap:9px}.brand-icon{height:39px;width:39px;border-radius:13px}.brand-title{font-size:var(--fs-lg);letter-spacing:.6px}.brand-subtitle{font-size:var(--fs-xs);letter-spacing:1.2px;margin-top:5px}.top-actions{gap:5px;min-width:0;margin-left:auto}.preview-label{font-size:var(--fs-xs)}.quiet-button{font-size:var(--fs-xs)}
 .profile{gap:8px;max-width:150px}.profile .portrait{width:32px;height:32px}.profile strong{font-size:var(--fs-xs);max-width:90px}.profile small{font-size:var(--fs-xs)}
 .app-nav{position:absolute;left:0;right:0;bottom:0;gap:28px;height:46px;align-items:stretch;justify-content:center}.nav-button{font-size:var(--fs-xs);padding:9px 0 15px}.nav-button.active::after{bottom:3px;height:2px}
 .scene{grid-template-columns:minmax(0,1fr);grid-template-areas:"board" "side";gap:0;min-height:0;padding:35px 0 38px;align-items:start}
 .board-scene{margin:0 5px 0 4px;width:calc(100% - 9px);max-width:520px;justify-self:center}.board{border-radius:27px;padding:20px 15px 13px;transform:rotate(-1.2deg)}.board-cap{font-size:var(--fs-xs);padding:0 3px;height:29px}.board-index{font-size:var(--fs-xs)}.box-grid{gap:8px}
 .chest-cell{border-radius:15px}.chest-cell::before,.chest-cell.suggested::before{border-radius:12px;inset:2px}.cell-number{font-size:var(--fs-xs);top:8px;left:9px}.cell-status{font-size:var(--fs-xs);bottom:4px}.chest-cell.suggested .cell-status{font-size:var(--fs-xs);padding:4px 6px;top:5px;right:5px}
 .floating-seal{width:52px;height:52px;right:-9px;top:-19px;box-shadow:0 9px 26px #8e8e6b15,inset 0 0 0 4px #fff1c5,inset 0 0 0 5px #d2b25d55}.board-foot{font-size:var(--fs-xs);min-height:27px;padding:11px 3px 0}.board-underside{height:50px;bottom:-10px;filter:blur(20px)}
 .side{max-width:520px;justify-self:center;padding:38px 7px 0;text-align:center}.eyebrow{justify-content:center;font-size:var(--fs-xs);letter-spacing:2px;margin-bottom:20px}.hero-title{font-size:36px;line-height:1.45;letter-spacing:-1.1px}.hero-title br:first-child{display:none}.hero-title .accent{width:max-content;margin-left:auto;margin-right:auto}.greeting-slot{height:68px;justify-content:center;margin:auto}.greeting{font-size:var(--fs-xs)}
 .entry-buttons{grid-template-columns:1fr 1fr;gap:10px;max-width:none}.entry-buttons .button{justify-content:center;padding:12px 9px;min-height:48px;font-size:var(--fs-xs)}.entry-note{margin:18px auto 0;font-size:var(--fs-xs);max-width:365px}.entry-note strong{display:inline;font-size:var(--fs-xs);line-height:1.9}.resume-note{font-size:var(--fs-xs);text-align:left}
 .auth-card{text-align:left}.auth-card .step-line{text-align:left}.auth-card h1{font-size:var(--fs-title)}.auth-card .eyebrow{justify-content:flex-start}.auth-lead{font-size:var(--fs-xs)}.field{font-size:var(--fs-sm)}.field input,.field textarea,.field select{font-size:var(--fs-md)}.form-links .text-btn{font-size:var(--fs-xs)}
 body[data-round=active] .scene{grid-template-areas:"intro" "board" "actions";padding-top:27px}
 body[data-round=active] .side,body[data-round=active] .play-panel{display:contents}
 .play-intro{grid-area:intro;text-align:left;min-width:0;padding:0 4px}
 .play-intro .eyebrow{justify-content:flex-start;margin-bottom:10px;font-size:var(--fs-xs)}.play-title{font-size:var(--fs-title);line-height:1.4;letter-spacing:-.8px;margin-bottom:16px}
 .play-intro #board-context{margin-bottom:0}.role-toggle{margin-bottom:16px;padding:5px 10px 5px 5px;max-width:100%;text-align:left}.role-toggle strong{font-size:var(--fs-xs)}.role-toggle small{font-size:var(--fs-xs)}.role-toggle .portrait{width:29px;height:29px}.guest-marker{font-size:var(--fs-xs);margin-bottom:16px}.floor-line{gap:10px;margin-bottom:18px}.floors{max-width:none}.floor-text{font-size:var(--fs-xs)}
 .suggestion{min-height:69px;padding:15px 16px;margin-bottom:16px;border-radius:13px}.suggestion span{font-size:var(--fs-sm)}.suggestion b{font-size:33px}.suggestion::before{height:29px;width:29px;font-size:var(--fs-lg)}
 .play-lead{font-size:var(--fs-xs);margin-bottom:16px}.play-note{padding:9px 11px;margin:0 0 31px}.play-note summary{font-size:var(--fs-xs)}.play-note p{font-size:var(--fs-xs)}
 body[data-round=active] .board-scene{margin-top:2px}.play-outro{grid-area:actions;min-width:0;padding:25px 4px 0;text-align:left}.play-outro .round-path{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:7px;margin-bottom:18px}.round-path span{width:100%;height:30px;font-size:var(--fs-xs)}.play-controls .button{min-height:48px;font-size:var(--fs-sm)}.play-controls .button.secondary{flex-basis:86px}.save-note{font-size:var(--fs-xs)}.sub-actions .text-btn{font-size:var(--fs-xs)}.cta-card{padding-top:17px;margin-top:16px}.cta-card h3{font-size:var(--fs-sm)}.cta-card p{font-size:var(--fs-xs)}
 body[data-round=idle][data-mode=account] .side,body[data-round=idle][data-mode=guest] .side{text-align:left}.play-panel .eyebrow{justify-content:flex-start}
 .workspace{padding:30px 0 40px;min-height:580px}.page-heading{gap:16px;margin-bottom:28px}.page-heading h1{font-size:var(--fs-title);letter-spacing:-.8px}.page-heading p{font-size:var(--fs-xs);margin-top:10px}.page-heading .eyebrow{justify-content:flex-start;font-size:var(--fs-xs);margin-bottom:13px}
 .points-purse{min-width:125px;padding:13px 15px;gap:10px;border-radius:13px}.points-purse .coin{width:29px;height:29px;font-size:var(--fs-md)}.points-purse strong{font-size:29px;gap:5px}.points-purse small{font-size:var(--fs-xs)}.points-purse strong span{font-size:var(--fs-xs)}
 .shop-toolbar{margin-bottom:22px;gap:10px}.shop-toolbar .filter-line{gap:20px}.shop-toolbar .filter-button{font-size:var(--fs-xs);min-height:40px;padding:9px 0}.shop-count{font-size:var(--fs-xs)}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 15px;margin-top:0}.shop-card>.shop-art{border-width:6px;border-radius:12px}.shop-art img{border-radius:6px}.shop-card-body{padding:14px 1px 0}.shop-card-heading{align-items:baseline;gap:6px;flex-wrap:wrap}.shop-card-heading h2{font-size:var(--fs-sm);line-height:1.5}.price{font-size:var(--fs-md)}.price small{font-size:var(--fs-xs)}.shop-card-note{font-size:var(--fs-xs);line-height:1.7;min-height:20px;margin:8px 0}.shop-card .button{font-size:var(--fs-xs);min-height:42px;padding:9px 6px}.shop-disclaimer{font-size:var(--fs-xs);line-height:1.8;margin-top:25px}.shop-admin-actions{display:grid;gap:6px}.shop-admin-actions .button{font-size:var(--fs-xs);min-height:40px;padding:9px 4px}.shop-admin-meta{font-size:var(--fs-xs);gap:6px;min-height:36px;margin:10px 0}
 .record-list{border-radius:15px}.record-seq{gap:4px}.record-seq span{height:29px;font-size:var(--fs-xs)}.record-date-filter{padding:14px}.record-item{padding:17px 13px}.record-who strong{font-size:var(--fs-sm)}
 dialog{padding:23px 21px;border-radius:22px;max-height:calc(100dvh - 30px);width:calc(100% - 30px)}.dialog-top h2{font-size:var(--fs-xl)}.dialog-copy{font-size:var(--fs-sm)}.dialog-actions .button{font-size:var(--fs-sm);min-height:45px}
 .footer{padding:26px 0;min-height:112px;justify-content:center;gap:15px;text-align:center}.footer .creator-credit{font-size:var(--fs-sm);letter-spacing:.5px}.footer-registration{margin:0;justify-content:center;gap:9px 16px;font-size:var(--fs-xs);line-height:1.8}.footer-registration img{width:14px;height:16px}
}
@media(max-width:365px){.shell{padding:0 16px}.brand-title{font-size:var(--fs-lg)}.brand-subtitle{font-size:var(--fs-xs)}.brand-icon{width:34px;height:34px}.hero-title{font-size:31px}.board{padding:17px 11px 12px}.box-grid{gap:6px}.chest-cell.suggested .cell-status{font-size:var(--fs-xs);right:4px;top:5px;padding:4px 5px}.profile strong{max-width:65px}.app-nav{gap:23px}.play-title{font-size:var(--fs-xl)}.play-intro,.play-outro{padding-left:1px;padding-right:1px}.shop-grid{gap:22px 11px}.points-purse{min-width:112px;padding:11px;gap:8px}.points-purse .coin{display:none}.page-heading h1{font-size:var(--fs-title)}.shop-card-heading h2{font-size:var(--fs-sm)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.board{transform:none!important}.sky-sunlight{opacity:.4}}

/* Approved bright red/gold chest and golden jackpot reveal, 4.3.1. */
.box-lid{transform-origin:113px 88px}
.chest-cell.opened:not(.winner) .box-lid{transform:translate(-2px,-12px) rotate(-5deg)}
.chest-cell.winner.reveal .chest-group{animation:none}
.spark-particle{position:absolute;left:50%;top:43%;z-index:6;pointer-events:none;display:block;width:5px;height:5px;border-radius:1px;opacity:0}

/* GOLDEN-WIN-V7: approved red stays unchanged until the winning state. */
.shell-front stop,.shell-side stop,.shell-lid stop{transition:stop-color .22s ease-out}
.shell-line,.shell-highlight{transition:stroke .22s ease-out}
.chest-cell.winner .shell-front stop:nth-child(1){stop-color:#fff779}
.chest-cell.winner .shell-front stop:nth-child(2){stop-color:#f2dd00}
.chest-cell.winner .shell-front stop:nth-child(3){stop-color:#f2c600}
.chest-cell.winner .shell-front stop:nth-child(4){stop-color:#e1a300}
.chest-cell.winner .shell-side stop:nth-child(1){stop-color:#ffda15}
.chest-cell.winner .shell-side stop:nth-child(2){stop-color:#f2b800}
.chest-cell.winner .shell-side stop:nth-child(3){stop-color:#dd9b00}
.chest-cell.winner .shell-lid stop:nth-child(1){stop-color:#fffaac}
.chest-cell.winner .shell-lid stop:nth-child(2){stop-color:#fff219}
.chest-cell.winner .shell-lid stop:nth-child(3){stop-color:#f2d300}
.chest-cell.winner .shell-lid stop:nth-child(4){stop-color:#ebb200}
.chest-cell.winner .shell-line{stroke:#c18700}
.chest-cell.winner .shell-highlight{stroke:#fff498}
.chest-cell.winner{z-index:5;border-color:#face52;background:radial-gradient(ellipse at 50% 38%,#fff8c9,#fff2b5 55%,#fff2d1);box-shadow:inset 0 0 0 1px #fffcd9,0 0 21px #ffc51a48}
.chest-cell.winner .box-lid{transform:translate(-11px,-39px) rotate(-16deg)}
.chest-cell.winner .chest-svg{filter:drop-shadow(0 0 3px #ffc51440)}
.chest-cell.winner .cell-status{color:var(--t-gold);font-weight:var(--fw-3);text-shadow:0 1px 0 #fff}
.jackpot-rays{opacity:0;transform-origin:111px 92px;pointer-events:none}
.jackpot-mouth{opacity:0;transform-origin:111px 89px;pointer-events:none}
.chest-cell.winner .jackpot-rays{animation:golden-beam-burst 1.35s cubic-bezier(.16,.8,.25,1) both}
.chest-cell.winner .jackpot-mouth{animation:golden-mouth-flash .85s ease-out both}
.chest-cell.winner .spark-particle{top:43%;width:5px;height:5px;background:#ffd804;box-shadow:0 0 5px #ffcb3980;animation:golden-particle 1.2s ease-out var(--delay,0ms) both}
.chest-cell.winner .spark-particle:nth-of-type(even){width:7px;height:7px;background:#fff393;clip-path:polygon(50% 0,64% 35%,100% 50%,64% 65%,50% 100%,36% 65%,0 50%,36% 35%);border-radius:0}
@keyframes golden-beam-burst{0%{opacity:0;transform:scale(.28,.08)}18%{opacity:1;transform:scale(.9,1.1)}34%{opacity:.98;transform:scale(1.08,1.22)}65%{opacity:.76;transform:scale(1,1.03)}100%{opacity:.62;transform:scale(.9,.98)}}
@keyframes golden-mouth-flash{0%{opacity:0;transform:scale(.15)}20%{opacity:1;transform:scale(.82)}55%{opacity:.7;transform:scale(1.28)}100%{opacity:.20;transform:scale(1)}}
@keyframes golden-particle{0%{opacity:0;transform:translate(0,0) scale(.3)}12%{opacity:1}72%{opacity:.8}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(var(--r)) scale(.12)}}
@media(prefers-reduced-motion:reduce){.chest-cell.winner .jackpot-rays{animation:none;opacity:.42;transform:none}.chest-cell.winner .jackpot-mouth{animation:none;opacity:.2;transform:none}.chest-cell.winner .spark-particle{display:none}}

/* Keep mobile play controls together; the landing and desktop layouts stay intact. */
.guest-play-entry{display:contents}
.mobile-guest-register{display:none}
@media(max-width:760px){
 body[data-round=active] .shell{padding-left:16px;padding-right:16px}
 body[data-round=active] .topbar{height:60px;gap:10px}
 body[data-round=active] .topbar:has(.app-nav:not([hidden])){height:100px;padding-top:7px}
 body[data-round=active] .brand{gap:8px}
 body[data-round=active] .brand-icon{width:34px;height:34px;border-radius:11px}
 body[data-round=active] .brand-title{font-size:var(--fs-lg)}
 body[data-round=active] .brand-subtitle{font-size:var(--fs-xs);margin-top:3px}
 body[data-round=active] .profile{min-height:44px;padding-top:4px;padding-bottom:4px}
 body[data-round=active] .profile .portrait{width:28px;height:28px}
 body[data-round=active] .quiet-button{min-height:44px}
 body[data-round=active] .app-nav{height:44px}
 body[data-round=active] .nav-button{min-height:44px;padding:8px 0 10px}

 body[data-round=active] .scene{
  grid-template-areas:"context" "hint" "board" "actions" "path" "lead" "save" "secondary" "benefits";
  padding:10px 0 28px;row-gap:0;overflow-anchor:none;
 }
 body[data-round=active] .play-intro,
 body[data-round=active] #play-context-slot,
 body[data-round=active] .play-outro{display:contents}
 body[data-round=active] .play-intro>.eyebrow{display:none}
 body[data-round=active] .play-intro>.play-title{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip-path:inset(50%);white-space:nowrap;
 }
 body[data-round=active] #board-context{grid-area:context;min-width:0}
 body[data-round=active] .role-toggle{min-height:34px;margin:0 0 7px;padding:3px 8px 3px 4px;gap:7px}
 body[data-round=active] .role-toggle .portrait{width:24px;height:24px}
 body[data-round=active] .role-toggle strong{font-size:var(--fs-xs)}
 body[data-round=active] .role-toggle small{display:none}
 body[data-round=active] .guest-play-entry{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 7px;min-height:34px}
 body[data-round=active] .guest-marker{font-size:var(--fs-xs);line-height:1.5;margin:0;padding:0}
 body[data-round=active] .mobile-guest-register{display:flex;flex-shrink:0;min-height:34px;padding:7px 10px;font-size:var(--fs-xs);border-radius:9px;white-space:nowrap;box-shadow:0 3px 9px #27458615}
 body[data-round=active] .floor-line{flex-direction:row;align-items:center;gap:12px;margin:0 0 8px}
 body[data-round=active] .floor-text{font-size:var(--fs-sm);font-weight:var(--fw-2);white-space:nowrap;color:var(--t-2)}
 body[data-round=active] .floors{flex:1;min-width:0;gap:5px}
 body[data-round=active] .floor-dot{height:3px}
 body[data-round=active] .suggestion{min-height:48px;padding:8px 12px;gap:9px;margin:0 0 8px;border-radius:12px}
 body[data-round=active] .suggestion::before{width:24px;height:24px;font-size:var(--fs-md);border-radius:8px}
 body[data-round=active] .suggestion span{font-size:var(--fs-xs)}
 body[data-round=active] .suggestion b{font-size:28px}
 body[data-round=active] .suggestion.recorded b{font-size:var(--fs-xs)}
 body[data-round=active] .play-note{grid-area:hint;margin:0 0 8px;padding:5px 9px;line-height:1.5}
 body[data-round=active] .play-note summary{font-size:var(--fs-xs);min-height:18px}
 body[data-round=active] .play-note p{font-size:var(--fs-xs);margin:8px 0 2px}

 body[data-round=active] .board-scene{
  margin:0;padding-bottom:4px;width:100%;max-width:350px;
  max-width:clamp(246px,calc((100svh - 320px)*1.17),350px);justify-self:center;
 }
 body[data-round=active][data-mode=account] .board-scene{max-width:350px;max-width:clamp(246px,calc((100svh - 360px)*1.17),350px)}
 body[data-round=active] .board{padding:10px;border-radius:22px}
 body[data-round=active] .board-cap,
 body[data-round=active] .floating-seal,
 body[data-round=active] .board-foot,
 body[data-round=active] .board-underside{display:none}
 body[data-round=active] .box-grid{gap:6px}
 body[data-round=active] .chest-cell,
 body[data-round=active] .chest-cell.playable{aspect-ratio:1.2;min-height:62px;border-radius:12px}
 body[data-round=active] .chest-cell::before{border-radius:10px}
 body[data-round=active] .cell-number{top:6px;left:8px;font-size:var(--fs-xs)}
 body[data-round=active] .cell-status{bottom:3px;font-size:var(--fs-xs)}
 body[data-round=active] .chest-cell.suggested .cell-status{top:4px;right:4px;font-size:var(--fs-xs);padding:3px 5px}

 body[data-round=active] .play-controls{grid-area:actions;justify-self:center;width:100%;max-width:350px;margin:10px 0 8px;gap:8px}
 body[data-round=active] .play-controls .button{min-height:46px;padding:10px 12px;font-size:var(--fs-sm)}
 body[data-round=active] .play-controls .button.secondary{flex-basis:78px}
 body[data-round=active] .round-path{grid-area:path;justify-self:center;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;width:100%;max-width:350px;margin:0 0 12px}
 body[data-round=active] .round-path span{height:24px;font-size:var(--fs-xs)}
 body[data-round=active] .play-lead{grid-area:lead;margin:4px 0 8px;padding:0 2px;font-size:var(--fs-xs);line-height:1.8}
 body[data-round=active] .save-note{grid-area:save;margin:0;padding:0 2px;font-size:var(--fs-xs);line-height:1.8}
 body[data-round=active] .sub-actions{grid-area:secondary;margin:3px 0 0;padding:0 2px}
 body[data-round=active] .cta-card{grid-area:benefits;margin:14px 0 0;padding-top:14px}
 body[data-round=active][data-mode=guest] .cta-card>h3,
 body[data-round=active][data-mode=guest] .cta-card>p,
 body[data-round=active][data-mode=guest] .cta-card>.button,
 body[data-round=active][data-mode=guest] .cta-card>br{display:none}
}

/* Put both home entries in the first mobile viewport. */
@media(max-width:760px){
 body[data-mode=landing] .shell{padding-left:16px;padding-right:16px}
 body[data-mode=landing] .topbar{height:60px;gap:10px}
 body[data-mode=landing] .brand{gap:8px}
 body[data-mode=landing] .brand-icon{width:34px;height:34px;border-radius:11px}
 body[data-mode=landing] .brand-title{font-size:var(--fs-lg)}
 body[data-mode=landing] .brand-subtitle{font-size:var(--fs-xs);margin-top:3px}
 body[data-mode=landing] .profile{min-height:44px;padding-top:4px;padding-bottom:4px}
 body[data-mode=landing] .profile .portrait{width:28px;height:28px}
 body[data-mode=landing] .scene{padding:12px 0 16px;row-gap:0}
 body[data-mode=landing] .board-scene{
  width:100%;margin:0;padding-bottom:4px;max-width:320px;
  max-width:clamp(230px,calc((100svh - 360px)*1.12),320px);
 }
 body[data-mode=landing] .board{padding:10px;border-radius:23px}
 body[data-mode=landing] .board-cap,
 body[data-mode=landing] .board-foot{display:none}
 body[data-mode=landing] .floating-seal{width:40px;height:40px;top:-9px;right:-7px;gap:2px}
 body[data-mode=landing] .box-grid{gap:6px}
 body[data-mode=landing] .chest-cell{aspect-ratio:1.2;border-radius:12px}
 body[data-mode=landing] .chest-cell::before{border-radius:10px}
 body[data-mode=landing] .cell-number{font-size:var(--fs-xs);top:6px;left:8px}
 body[data-mode=landing] .cell-status{font-size:var(--fs-xs);bottom:3px}
 body[data-mode=landing] .side{padding:14px 0 0;max-width:420px}
 body[data-mode=landing] .side>.eyebrow{display:none}
 body[data-mode=landing] .hero-title{font-size:clamp(22px,6.2vw,26px);line-height:1.35;letter-spacing:-.6px}
 body[data-mode=landing] .hero-title br{display:none}
 body[data-mode=landing] .hero-title .accent{display:inline;width:auto;margin:0}
 body[data-mode=landing] .hero-title .accent::after{height:3px;bottom:-2px}
 body[data-mode=landing] .greeting-slot{height:28px;margin:2px auto 6px}
 body[data-mode=landing] .greeting{font-size:var(--fs-xs);line-height:1.6}
 body[data-mode=landing] .entry-buttons{gap:10px}
 body[data-mode=landing] .entry-buttons .button{min-height:46px;font-size:var(--fs-sm);padding:10px 8px}
 body[data-mode=landing] .entry-note{margin:10px auto 0;font-size:var(--fs-xs);line-height:1.7}
 body[data-mode=landing] .entry-note strong{font-size:var(--fs-xs);line-height:1.7}
 body[data-mode=landing] .side:has(.resume-note) .greeting-slot{display:none}
 body[data-mode=landing] .resume-note{margin:10px 0 12px;padding:7px 10px;font-size:var(--fs-xs);line-height:1.6;text-align:center}
 body[data-mode=landing] .footer{min-height:0;padding:12px 0 16px;gap:8px}
 body[data-mode=landing] .footer .creator-credit{font-size:var(--fs-sm);line-height:1.7}
 body[data-mode=landing] .footer-registration{gap:5px 12px;font-size:var(--fs-xs);line-height:1.7}
}
@media(max-width:760px) and (max-height:640px){
 body[data-mode=landing] .scene{padding-bottom:10px}
 body[data-mode=landing] .greeting-slot{display:none}
 body[data-mode=landing] .entry-buttons{margin-top:12px}
 body[data-mode=landing] .resume-note{margin-bottom:0}
 body[data-mode=landing] .footer{padding:8px 0 10px;gap:5px}
}

/* Share spare mobile height across the home page instead of leaving it below. */
@media(max-width:760px){
 body[data-mode=landing] .shell{
  display:flex;flex-direction:column;min-height:100vh;min-height:100svh;min-height:100dvh;
 }
 body[data-mode=landing] .topbar,
 body[data-mode=landing] .footer{flex-shrink:0}
 body[data-mode=landing] .scene{flex:1 0 auto;align-content:space-evenly}
}
@media(max-width:760px) and (max-height:640px){
 body[data-mode=landing] .scene{padding-bottom:6px}
}
@media(max-width:760px) and (min-height:720px){
 body[data-mode=landing] .topbar{height:clamp(68px,9svh,78px)}
 body[data-mode=landing] .brand-icon{width:38px;height:38px;border-radius:13px}
 body[data-mode=landing] .brand-title{font-size:var(--fs-lg)}
 body[data-mode=landing] .brand-subtitle{margin-top:5px}
 body[data-mode=landing] .scene{padding:18px 0 20px;row-gap:18px}
 body[data-mode=landing] .board-scene{
  width:calc(100% - 8px);max-width:360px;
  max-width:clamp(310px,calc((100svh - 420px)*1.04),360px);padding-bottom:7px;
 }
 body[data-mode=landing] .board{padding:12px;border-radius:26px}
 body[data-mode=landing] .box-grid{gap:8px}
 body[data-mode=landing] .chest-cell{border-radius:14px}
 body[data-mode=landing] .chest-cell::before{border-radius:12px}
 body[data-mode=landing] .side{display:grid;row-gap:clamp(12px,1.6svh,18px);padding:0}
 body[data-mode=landing] .hero-title{font-size:clamp(24px,6.5vw,28px)}
 body[data-mode=landing] .greeting-slot{height:22px;margin:0 auto}
 body[data-mode=landing] .greeting{font-size:var(--fs-xs)}
 body[data-mode=landing] .entry-buttons{margin:0;gap:12px}
 body[data-mode=landing] .entry-buttons .button{min-height:50px;font-size:var(--fs-sm);padding:12px 9px}
 body[data-mode=landing] .entry-note{margin:0 auto;font-size:var(--fs-xs);line-height:1.75}
 body[data-mode=landing] .entry-note strong{font-size:var(--fs-sm);line-height:1.75}
 body[data-mode=landing] .resume-note{margin:0;padding:9px 12px;font-size:var(--fs-xs);line-height:1.7}
 body[data-mode=landing] .footer{padding:16px 0 max(16px,env(safe-area-inset-bottom));gap:10px}
}

/* 4.4.1 UI pass: tap targets, contrast, admin drawer, shop menu, auth hints.
   "body:not(#ui-pass)" only raises specificity above the older
   body[data-round]/body[data-mode] mobile rules; no element has that id. */
.button.primary{background:linear-gradient(120deg,#20386e,#203a70);border-color:#20386e}
.button.primary:hover:not(:disabled){background:linear-gradient(120deg,#1c3260,#1c3261);border-color:#1c3260}
.shop-card .button.shop-admin-primary{background:linear-gradient(120deg,#20386e,#203a70);border-color:#20386e;color:#fff}
.shop-card .button.shop-admin-primary:hover:not(:disabled){background:linear-gradient(120deg,#1c3260,#1c3261)}
.fine,.field small{color:var(--t-2)}
.footer,.footer .creator-credit,.footer-registration{color:var(--t-2)}
.close-dialog{width:44px;height:44px;min-width:44px;min-height:44px}
.sync-banner .button{min-height:44px}
body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.admin-filter-bar{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.admin-status-line{flex:1;min-width:0;margin:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.admin-status-line::-webkit-scrollbar{display:none}
.admin-status-line .filter-button{flex-shrink:0;min-height:44px}
.admin-drawer-toggle,.admin-refresh{flex-shrink:0;min-height:44px}
.admin-drawer-toggle.has-filters{border-color:#20386e;color:var(--t-link)}
.admin-drawer-toggle::after{content:'';display:inline-block;width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:-4px 0 0 8px;transition:transform .2s}
.admin-drawer-toggle[aria-expanded=true]{background:#f7f1e4;border-color:#20386e;color:var(--t-link)}
.admin-drawer-toggle[aria-expanded=true]::after{transform:rotate(-135deg);margin-top:4px}
.admin-filter-summary{margin:-6px 0 14px;font-size:var(--fs-xs);color:var(--t-2)}
.admin-drawer{background:#ffffffa1;border:1px solid #f1e5cd;border-radius:16px;padding:14px;margin:0 0 16px}
.admin-drawer[hidden]{display:none}
.admin-drawer .record-date-filter{border:0;background:none;padding:0;margin:0 0 10px}
.admin-drawer .filter-line{margin:8px 0 0}
.password-wrap{position:relative;display:block}
.password-wrap input{padding-right:64px}
.password-toggle{position:absolute;right:2px;bottom:1px;min-width:52px;min-height:44px;border:0;background:transparent;color:var(--t-link);font-size:var(--fs-sm);cursor:pointer}
.password-toggle:focus-visible{outline:2px solid #c2ad8d;outline-offset:-4px;border-radius:9px}
.password-rules{list-style:none;margin:-6px 0 14px;padding:0;display:flex;flex-wrap:wrap;gap:2px 12px}
.password-rules li{font-size:var(--fs-xs);color:var(--t-2);line-height:1.7}
.password-rules li::before{content:'○ ';color:#976b4e}
.password-rules li.ok{color:#2f7a63}
.password-rules li.ok::before{content:'✓ ';color:#2f7a63}
.password-rules li.bad{color:#9a3d3d}
.password-rules li.bad::before{content:'× ';color:#9a3d3d}
@media(min-width:761px){
 .shop-more-toggle{display:none}
 .shop-more-menu{display:contents}
}
@media(max-width:760px){
 body:not(#ui-pass) .brand-subtitle,body:not(#ui-pass) .preview-label,body:not(#ui-pass) .quiet-button,body:not(#ui-pass) .top-actions .quiet-button,body:not(#ui-pass) .profile small,body:not(#ui-pass) .role-toggle small,body:not(#ui-pass) .guest-marker,body:not(#ui-pass) .floor-text,body:not(#ui-pass) .save-note,body:not(#ui-pass) .play-lead,body:not(#ui-pass) .entry-note,body:not(#ui-pass) .greeting,body:not(#ui-pass) .resume-note,body:not(#ui-pass) .auth-lead,body:not(#ui-pass) .dialog-copy,body:not(#ui-pass) .shop-card-note,body:not(#ui-pass) .shop-disclaimer,body:not(#ui-pass) .review-foot,body:not(#ui-pass) .notice-strip,body:not(#ui-pass) .date-filter-note,body:not(#ui-pass) .footer,body:not(#ui-pass) .footer-registration,body:not(#ui-pass) .fine,body:not(#ui-pass) .field small,body:not(#ui-pass) .record-note,body:not(#ui-pass) .record-who small,body:not(#ui-pass) .cta-card p,body:not(#ui-pass) .account-menu-row small,body:not(#ui-pass) .admin-footnote,body:not(#ui-pass) .step-line,body:not(#ui-pass) .auth-card .step-line,body:not(#ui-pass) .eyebrow,body:not(#ui-pass) .side .eyebrow,body:not(#ui-pass) .play-intro .eyebrow,body:not(#ui-pass) .page-heading .eyebrow,body:not(#ui-pass) .play-note summary,body:not(#ui-pass) .round-path span,body:not(#ui-pass) .filter-label,body:not(#ui-pass) .filter-button,body:not(#ui-pass) .count-mark,body:not(#ui-pass) .shop-admin-meta,body:not(#ui-pass) .shop-read-status,body:not(#ui-pass) .price small,body:not(#ui-pass) .board-foot{font-size:var(--fs-xs)}
 body:not(#ui-pass) .brand-subtitle{letter-spacing:.5px}
 body:not(#ui-pass) .role-toggle,body:not(#ui-pass) .mobile-guest-register{min-height:44px}
 body:not(#ui-pass) .role-toggle strong{font-size:var(--fs-xs)}
 body:not(#ui-pass) .role-toggle small{display:block;font-size:var(--fs-xs);line-height:1.4}
 body:not(#ui-pass) .floor-dot{height:8px;min-width:8px;border-radius:4px}
 body:not(#ui-pass) .chest-cell.playable{min-height:76px}
 body:not(#ui-pass) .chest-cell.suggested .cell-status{display:none}
 body:not(#ui-pass) .chest-cell.suggested{border-color:#b38a3a;box-shadow:inset 0 0 0 3px #b38a3a,0 2px 12px #ae8d4b26}
 body:not(#ui-pass)[data-round=active] .board-scene{max-width:clamp(300px,calc((100svh - 320px)*1.17),350px)}
 body:not(#ui-pass)[data-round=active][data-mode=account] .board-scene{max-width:clamp(300px,calc((100svh - 360px)*1.17),350px)}
 body:not(#ui-pass) .play-panel.in-progress .play-lead{display:none}
 .admin-status-line .filter-button{padding:0 12px}
 .admin-status-line{padding-right:22px;-webkit-mask-image:linear-gradient(90deg,#000000 calc(100% - 26px),transparent);mask-image:linear-gradient(90deg,#000000 calc(100% - 26px),transparent)}
 .admin-filter-bar{gap:8px}
 .shop-admin-actions{grid-template-columns:1fr auto}
 .shop-admin-actions.single{grid-template-columns:1fr}
 .shop-more-toggle{min-width:64px}
 .shop-more-menu{display:none;grid-column:1 / -1}
 .shop-card.menu-open .shop-more-menu{display:grid;gap:6px}
 .shop-card .button{min-height:44px}
}
/* 4.4.2 bitmap chest (g1b, WebP + PNG fallback). Same 230x195 "meet" box as the former SVG, so cell sizing is unchanged. */
.chest-group{position:relative;display:block;width:103%;height:100%;margin-left:-1.5%;transform-origin:50% 88%}
.chest-pic{position:absolute;inset:0;display:block;transition:opacity .3s var(--ease),transform .45s var(--ease)}
.chest-pic img{display:block;width:100%;height:100%;object-fit:contain;-webkit-user-drag:none;user-select:none;pointer-events:none}
.chest-pic-open{opacity:0;transform:translateY(3px) scale(.985)}
.chest-cell.opened .chest-pic-open,.chest-cell.winner .chest-pic-open{opacity:1;transform:none}
.chest-cell.opened .chest-pic-closed,.chest-cell.winner .chest-pic-closed{opacity:0;transform:translateY(-3px)}
.chest-glow{position:absolute;z-index:2;left:52%;top:42%;width:46%;height:28%;border-radius:50%;background:radial-gradient(ellipse,#fff8c8 0,#ffe158cc 35%,#ffd11700 72%);mix-blend-mode:screen;opacity:0;transform:translate(-50%,-50%) scale(.5);pointer-events:none}
.chest-cell.winner .chest-glow{opacity:.85;transform:translate(-50%,-50%);animation:chest-glow-flash .9s ease-out both}
.chest-cell.winner .chest-group{filter:drop-shadow(0 0 4px #ffc51455)}
@keyframes chest-glow-flash{0%{opacity:0;transform:translate(-50%,-50%) scale(.3)}25%{opacity:1;transform:translate(-50%,-50%) scale(1.25)}100%{opacity:.85;transform:translate(-50%,-50%) scale(1)}}
.brand-icon picture{display:block;width:82%}
.brand-icon img{display:block;width:100%;height:auto;aspect-ratio:185 / 157}
@media(prefers-reduced-motion:reduce){.chest-pic{transition:none}.chest-cell.winner .chest-glow{animation:none}}
/* 4.4.3 type & motion pass. Literal sizes, weights and text colors in base/next/next-admin/sky now
   map to these tokens (scale 12/14/16/20/24, titles 24 mobile / 32 desktop; weights 400/600/700;
   text colors ink 1-3 + gold + link). Decorative glyphs, the floating seal, display numbers and the
   desktop hero keep their own sizes. The chest artwork and the sky/gold palette are unchanged. */
:root{--fs-xs:12px;--fs-sm:14px;--fs-md:16px;--fs-lg:20px;--fs-xl:24px;--fs-title:24px;--fw-1:400;--fw-2:600;--fw-3:700;--t-1:#183c50;--t-2:#3f6278;--t-3:#557080;--t-gold:#82662d;--t-link:#1c6ea3;--dur-1:.15s;--dur-2:.25s;--dur-3:.35s}
@media(min-width:761px){:root{--fs-title:32px}}
body{color:var(--t-1)}
.auth-card h1,.play-title,.page-heading h1{font-size:var(--fs-title);font-weight:var(--fw-3);line-height:1.35}
.dialog-top h2{font-size:var(--fs-xl);font-weight:var(--fw-2);line-height:1.4}
.shop-card h2,.redeem-summary h3,.shop-login-offer h3{font-size:var(--fs-md);font-weight:var(--fw-2);line-height:1.5}
.page-heading h1,.auth-card h1,.dialog-top h2,.shop-login-offer h3,.empty-state h3{text-wrap:balance}
.dialog-copy,.auth-lead,.play-lead,.entry-note,.page-heading p,.empty-state p,.fine,.notice-strip,.audit-note,.shop-disclaimer,.review-foot{text-wrap:pretty}
.preview-watermark{white-space:nowrap}
.points-purse strong,.points-pocket strong,.shop-balance strong,.suggestion b{font-variant-numeric:lining-nums tabular-nums}
.greeting{color:var(--t-gold)}
/* Single toast rule: AA contrast on the dark glass, balanced wrap, clear of the home indicator. */
.toast{position:fixed;left:50%;bottom:max(24px,calc(env(safe-area-inset-bottom) + 12px));z-index:30;width:max-content;max-width:min(calc(100% - 32px),420px);padding:12px 18px;border-radius:12px;border:1px solid #ffffff44;background:#523a2aeb;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 8px 30px #412e2226;color:#fff;font-size:var(--fs-sm);font-weight:var(--fw-1);line-height:1.6;text-align:center;text-wrap:balance;white-space:normal;opacity:0;pointer-events:none;transform:translate(-50%,15px);transition:opacity var(--dur-2) var(--ease),transform var(--dur-2) var(--ease)}
.toast.show{opacity:1;transform:translate(-50%,0)}
/* Jackpot sparks must never widen the page (375px showed a 3px sideways scroll). */
.shell{overflow-x:clip}
/* Password "show" toggle sits on the input's vertical center. */
.password-toggle{top:0;bottom:0;margin:auto 0;height:44px;min-height:44px;display:flex;align-items:center;justify-content:center;line-height:1}
/* Loading hints appear only if a read takes longer than ~250ms; space is reserved so nothing jumps. */
@keyframes late-in{from{opacity:0}to{opacity:1}}
.late-hint,.section-loading,.shop-skeleton{opacity:0;animation:late-in var(--dur-2) ease .25s forwards}
.history-read-status,.history-read-status:empty{min-height:20px;margin:8px 0}
.shop-skeleton .shop-card-body{min-height:137px}
/* Focus: programmatic focus on headings / dialog container stays invisible; real controls keep rings. */
h1[tabindex="-1"]:focus,dialog[tabindex="-1"]:focus{outline:none}
@media(max-width:760px){
 .dialog-top h2{font-size:var(--fs-lg)}
 .points-purse strong,.points-pocket strong,.offer-free,.suggestion b,body[data-round=active] .suggestion b{font-size:28px}
 .dialog-actions .button{padding-left:10px;padding-right:10px;text-wrap:balance}
 body[data-mode=landing] .hero-title{font-size:var(--fs-title);letter-spacing:-.3px}
 .admin-status-line{flex-wrap:wrap;overflow:visible;padding-right:0;-webkit-mask-image:none;mask-image:none;gap:8px}
}
@media(prefers-reduced-motion:reduce){.late-hint,.section-loading,.shop-skeleton{animation:none;opacity:1}}
/* 4.4.4 visual pass: 3D coin, gold preview frame + corner seal, illustrated empty states, history floor bar,
   Chinese 好运 seal. Uses only the 4.4.3 type/color tokens; every image has fixed width/height so nothing shifts. */
.coin-pic{display:inline-block;flex:none;line-height:0;vertical-align:middle;margin-right:4px}
.coin-pic img{display:block;max-width:none}
.profile small{display:flex;align-items:center;gap:4px}.profile small .coin-pic{margin:0}
.points-pocket strong{display:flex;align-items:center}.points-pocket strong .coin-pic{margin-right:8px}
.points-purse .purse-coin img{width:40px;height:40px;filter:drop-shadow(0 3px 3px #b88e2433)}
.price .coin-pic{margin-right:4px;position:relative;top:-1px}
.coin-amount{white-space:nowrap}
.shop-art.is-preview::after{content:"";position:absolute;inset:0;border-radius:7px;pointer-events:none;box-shadow:inset 0 0 0 2px #e0b24c,inset 0 0 0 3px #ffedb8}
.preview-seal{position:absolute;right:8px;bottom:8px;z-index:1;padding:2px 7px;border-radius:6px;background:linear-gradient(135deg,#fff8db,#fce8aa);box-shadow:inset 0 0 0 1px #e0b24c,inset 0 0 0 2px #fff5d6,0 2px 6px #3f2c202e;color:var(--t-gold);font-size:var(--fs-xs);font-weight:var(--fw-3);line-height:1.6;letter-spacing:1px;transform:rotate(-6deg);pointer-events:none;white-space:nowrap}
.empty-scene{display:flex;flex-direction:column;align-items:center;gap:8px;padding:36px 20px 44px;text-align:center}
.empty-scene .empty-art{display:block;line-height:0;margin-bottom:6px;filter:drop-shadow(0 12px 14px #77543d2a)}
.empty-scene .empty-art img{display:block;width:160px;height:136px}
.empty-scene p{max-width:22em}
.empty-scene .empty-cta{margin-top:10px;min-width:160px}
.floor-bar{flex:0 1 330px;min-width:0}
.floor-track{list-style:none;margin:0;padding:3px;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:2px;background:#faf6ee;border:1px solid #f1e5cd;border-radius:999px}
.fb{height:22px;display:grid;place-items:center;font-size:var(--fs-xs);font-weight:var(--fw-3);line-height:1;border-radius:4px;color:var(--t-2)}
.fb:first-child{border-radius:999px 4px 4px 999px}.fb:last-child{border-radius:4px 999px 999px 4px}
.fb.prize{background:linear-gradient(180deg,#ffe57b,#ffce32);color:var(--t-1);box-shadow:inset 0 -1px 0 #dea819}
.fb.open{background:#f3ead7;color:var(--t-2)}
.fb.none{background:repeating-linear-gradient(135deg,#fff 0 3px,#f5ecdb 3px 5px)}
.floor-meta{display:flex;flex-wrap:wrap;gap:4px 12px;margin:6px 4px 0;font-size:var(--fs-xs);line-height:1.5;color:var(--t-3)}
.fm::before{content:"";display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:4px;vertical-align:0}
.fm.prize::before{background:#ffce32;box-shadow:inset 0 0 0 1px #dea819}.fm.open::before{background:#f3ead7;box-shadow:inset 0 0 0 1px #e1d7c8}.fm.none::before{background:repeating-linear-gradient(135deg,#fff 0 2px,#e2d8c9 2px 3px);box-shadow:inset 0 0 0 1px #e2d8c9}
dialog .floor-bar{margin:4px 0 14px}
.floating-seal{background:radial-gradient(circle at 34% 28%,#fffad7,#ffecae 60%,#fad775);border-color:#fff3c8;box-shadow:0 9px 22px #8d773122,inset 0 0 0 4px #fff1bf,inset 0 0 0 5px #d0a035,inset 0 0 0 7px #fff1bf}
.seal-mark{display:block;color:var(--t-gold);font-size:var(--fs-lg);font-weight:var(--fw-3);line-height:1;letter-spacing:1px;white-space:nowrap;padding-left:1px}
@media(max-width:1100px){.seal-mark{font-size:var(--fs-md)}}
@media(max-width:760px){
 .floor-bar{order:3;flex:1 0 100%;width:100%}
 .points-purse .purse-coin img{width:32px;height:32px}
 .floating-seal .seal-mark{font-size:var(--fs-sm)}
 body[data-mode=landing] .floating-seal{width:46px;height:46px;top:-12px;right:-8px}
 body[data-mode=landing] .floating-seal .seal-mark{font-size:var(--fs-xs);letter-spacing:0}
 .empty-scene{padding:28px 16px 36px}
 .empty-scene .empty-art img{width:140px;height:119px}
}
@media(max-width:365px){.points-purse .purse-coin{display:none}}
