@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;--gold:#f3d38c;--muted:#c0a48f;--cell:113px;--gap:5px}*{box-sizing:border-box}body{margin:0;color:#fff1d7;background:#100f12;font-family:Manrope,system-ui,sans-serif}body:before{content:'';position:fixed;inset:0;background:linear-gradient(#0c101361,#180c11b3),url('assets/dragon-light/fortune-palace.webp') center top/cover;z-index:-1}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ffdf99;outline-offset:4px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}header{height:82px;display:flex;align-items:center;padding:0 4vw;gap:25px;border-bottom:1px solid #d5a75c33;background:#150e13d9;position:relative;z-index:2}.brand img{display:block;width:108px;height:72px;object-fit:contain}.back{font-size:11px;color:#ccb69d}.header-right{margin-left:auto;display:flex;gap:10px;align-items:center}.demo-label{font-size:8px;letter-spacing:1.8px;padding-right:12px;color:#c4ac91}.round{width:36px;height:36px;border-radius:50%;border:1px solid #d4ab6350;background:#ffffff04;font-size:17px}.round[aria-pressed=true]{color:#f2d18a}input[type=range]{width:63px;accent-color:#d9b16c}main{max-width:1230px;margin:auto;padding:15px 28px 25px}.title-scene{position:relative;max-width:780px;margin:0 auto 19px;min-height:152px;display:flex;justify-content:center;align-items:center;text-align:center}.eyebrow{font-size:8px;letter-spacing:3px;color:#e1ba7b}h1{font-family:Georgia,serif;font-size:55px;line-height:.89;letter-spacing:3px;font-weight:400;color:#ffe4a1;text-shadow:0 3px 0 #633d1d,0 0 25px #e69f3b55;margin:13px 0 0}h1 span{display:block;font-size:35px;letter-spacing:9px;margin-top:8px;padding-left:9px}.title-scene p{font-size:9px;letter-spacing:2px;color:#c9ae88;margin:13px 0 5px}.guardian{position:absolute;width:160px;height:155px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 8px 22px #eca43426);animation:float 5s ease-in-out infinite}.dragon-guardian{left:7px;top:1px;transform:rotate(-8deg)}.frog-guardian{right:12px;bottom:-4px;width:135px;height:130px;animation-delay:-2s}@keyframes float{50%{translate:0 -5px}}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 229px;gap:24px;align-items:start}.cabinet{position:relative;border:2px solid #d4a65e;border-radius:24px;padding:14px 15px 12px;background:linear-gradient(120deg,#592126f2,#30171cef 70%);box-shadow:0 0 0 4px #371a19,0 0 0 5px #b58044,0 20px 70px #0008}.cabinet:before,.cabinet:after{content:'✦';position:absolute;top:-13px;color:#f7d590;font-size:22px;text-shadow:0 0 16px #ffd978}.cabinet:before{left:23px}.cabinet:after{right:23px}.cabinet-bar{display:flex;justify-content:space-between;padding:1px 7px 13px;font-size:8px;letter-spacing:1.8px;color:#dcb980}.cabinet-center{font-size:7px;color:#bd925c}.bonus-ribbon{text-align:center;background:linear-gradient(90deg,transparent,#c4943b17,transparent);padding:9px 4px 12px;border-top:1px solid #e9be631b}.bonus-ribbon span{font-size:8px;letter-spacing:2px;color:#ce9d59}.bonus-ribbon b{display:block;margin-top:5px;font-size:9px;letter-spacing:1px;color:#ffe1a0}.board-shell{position:relative;border-radius:15px;padding:7px;background:#d4a455;border:1px solid #ffe8ab;box-shadow:0 0 0 3px #2b1615,0 8px 24px #0005;overflow:hidden}.reels{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--gap);padding:4px;background:#130f15;border-radius:9px;overflow:hidden}.reel{height:calc(var(--cell)*3 + var(--gap)*2);overflow:hidden;border-radius:6px;position:relative;isolation:isolate}.strip{display:flex;flex-direction:column;gap:var(--gap);will-change:transform;backface-visibility:hidden}.cell{height:var(--cell);flex-shrink:0;display:flex;justify-content:center;align-items:center;position:relative;background:radial-gradient(ellipse at 50% 45%,#46272b,#201820);border:1px solid #bb894422;border-radius:6px;overflow:hidden}.cell img{width:95%;height:96%;object-fit:contain;pointer-events:none;user-select:none;filter:drop-shadow(0 4px 7px #0005)}.cell.won{background:radial-gradient(ellipse,#966c2c88,#402020);box-shadow:inset 0 0 0 2px #f9df9b;z-index:1}.cell.line-active{box-shadow:inset 0 0 0 3px #fff1be,0 0 20px #ffd25a66}.cell.scatter{background:radial-gradient(ellipse,#591b27,#201820)}.cell-badge{position:absolute;bottom:4px;background:#3d121be8;border:1px solid #ba824c;border-radius:4px;padding:1px 6px;font-size:8px;letter-spacing:1px;color:#ffe3a4;font-weight:800}.board-shine{position:absolute;inset:11px;pointer-events:none;border-radius:8px;box-shadow:inset 0 18px 18px -18px #000,inset 0 -18px 18px -18px #000;z-index:3}.win-path{position:absolute;inset:11px;width:calc(100% - 22px);height:calc(100% - 22px);z-index:4;pointer-events:none;filter:drop-shadow(0 0 5px #ffe5a6)}.win-path polyline{stroke:#ffe5a2;stroke-width:4;fill:none;stroke-linejoin:round;stroke-linecap:round}.win-path circle{fill:#fff0bf}.result-area{text-align:center;height:93px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding-top:6px}.result-caption{font-size:8px;letter-spacing:2px;color:#caab7f}.win-number{font-family:Georgia,serif;font-size:26px;color:#f7d590;line-height:1.1}.win-number.large-win{font-size:36px;color:#ffe9af;text-shadow:0 0 25px #ffd54a77}.result-detail{font-size:9px;color:#bda48c;min-height:15px}.controls{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:18px;align-items:end;padding-top:13px;border-top:1px solid #e6b46a33}.controls small{display:block;font-size:8px;letter-spacing:1.5px;color:#bfa07d;margin-bottom:7px}.control-value b{font-size:23px;font-weight:700;letter-spacing:-.5px;display:block;height:46px;display:flex;align-items:center;gap:7px;color:#f5d9a8}.coin-mark{font-size:14px;color:#e6b859}.stepper{display:flex;align-items:center;justify-content:space-between;height:46px;border:1px solid #b5804c44;border-radius:10px;background:#160d14a8;padding:4px}.stepper b{font-size:19px}.stepper button{width:30px;height:36px;border:0;background:#ffffff05;border-radius:7px;font-size:20px;color:#e8c992}.spin{height:60px;background:linear-gradient(110deg,#be8234,#ffe5a1 58%,#e0af58);border:1px solid #ffeab9;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:10px;color:#3a1c0b;box-shadow:0 6px 22px #e4a04433;font-size:13px;font-weight:800;letter-spacing:1px;transition:filter .2s,transform .2s}.spin:hover:enabled{filter:brightness(1.12);transform:translateY(-1px)}.spin:disabled{opacity:.65}.spin-icon{font-size:32px;line-height:1}body.spinning .spin-icon{animation:rotate 1.2s linear infinite}@keyframes rotate{to{transform:rotate(360deg)}}.bottom-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;color:#a78c73;font-size:8px}.bottom-bar button{padding:3px 0;background:none;border:0;font-size:9px;color:#d2ae76;text-decoration:underline}.side-panel{border:1px solid #d6a76655;border-radius:16px;padding:19px;background:linear-gradient(125deg,#3e1d26e8,#221920ef);margin-bottom:14px}.section-kicker{font-size:8px;letter-spacing:1.5px;color:#e9c492;margin-bottom:16px}.feature{display:flex;align-items:center;gap:10px;margin-top:15px}.feature-tag{display:flex;align-items:center;justify-content:center;width:38px;height:35px;border:1px solid #a47e4c;border-radius:9px;font-size:9px;font-weight:800;flex-shrink:0}.jade{color:#9ce4bd;background:#0e4a3f99;border-color:#58a488}.ruby{color:#ffd6b8;background:#76253699}.gold{color:#ffe5ad;background:#7a582999}.feature b{font-size:10px;font-weight:600;color:#efd6ac}.feature p{font-size:8px;color:#b89d83;line-height:1.6;margin:4px 0 0}.table-heading,.payrow{display:grid;grid-template-columns:41px repeat(3,minmax(0,1fr));align-items:center;gap:3px}.table-heading{font-size:8px;color:#ad9076;text-align:right;margin-bottom:9px}.table-heading span:first-child{text-align:left;font-size:6px}.payrow{margin:7px 0;text-align:right;font-size:9px;font-weight:700;color:#f3d496}.payrow img{width:35px;height:35px;object-fit:contain}.pay-note{font-size:8px;color:#ac937a;line-height:1.6;padding-top:12px;border-top:1px solid #b28d552b;margin:12px 0 0}.reset-button{display:block;margin:0 auto;background:none;border:0;color:#bfa082;font-size:9px;text-decoration:underline}.foot-stats{display:flex;gap:25px;justify-content:center;align-items:center;flex-wrap:wrap;color:#a98f76;font-size:8px;margin-top:25px}.foot-stats b{color:#e9c997;font-weight:600;margin-left:5px}body.free-mode .cabinet{border-color:#b3e2b0;box-shadow:0 0 0 4px #123d30,0 0 0 5px #d8b56b,0 0 70px #26976b22}body.free-mode .bonus-ribbon{background:linear-gradient(90deg,transparent,#23634777,transparent)}body.free-mode .bonus-ribbon b{color:#bdf0bb}body.free-mode .spin{background:linear-gradient(120deg,#5da77a,#c6f1bb,#a4d58d)}dialog{color:#f4dfbe;background:linear-gradient(135deg,#40202a,#21151c);border:1px solid #d1a25a;border-radius:22px;padding:30px;max-width:600px;width:calc(100% - 28px);max-height:90dvh;overflow:auto;box-shadow:0 25px 120px #000b}dialog::backdrop{background:#08090bc9;backdrop-filter:blur(6px)}dialog h2{font-family:Georgia,serif;font-weight:400;font-size:29px;color:#f5d594;margin:12px 0}dialog p{font-size:11px;line-height:1.9;color:#c6ab92}dialog .small{font-size:9px}dialog button{background:#ffffff07;border:1px solid #bb945b66;border-radius:10px;padding:11px 16px;font-size:11px;margin:8px 5px 0 0}.gold-button{background:linear-gradient(100deg,#b57b2f,#f9daa0)!important;color:#3d200c!important;border:1px solid #e2bb78!important;font-weight:800}.dialog-x{position:absolute;right:12px;top:8px;font-size:22px;line-height:20px;padding:5px 10px;background:none;border:0}.bonus-dialog{text-align:center;max-width:590px;background:radial-gradient(ellipse at top,#85492b66,transparent 70%),linear-gradient(135deg,#4c1721,#201319)}.bonus-frog{width:120px;height:110px;object-fit:contain;margin-top:15px}.bonus-dialog h2{font-size:33px;margin:5px 0 10px}.bonus-dialog .eyebrow{padding-top:5px}.lanterns{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:17px}.lanterns button{padding:12px 5px;margin:0;background:#2d0e1677;border-color:#a4774266;transition:transform .2s}.lanterns button:hover:enabled{transform:translateY(-5px)}.lanterns img{width:90px;height:110px;object-fit:contain}.lanterns small{font-size:7px;letter-spacing:2px;display:block;color:#e6c286;margin:7px 0 0}.lanterns button.chosen{opacity:1;background:#89532966;box-shadow:0 0 24px #f9c45444;border-color:#ffe7a7}.bonus-reveal{font-size:17px;font-weight:700;color:#ffe6a3;min-height:40px;margin:19px 0 10px;line-height:1.6}.bonus-dialog .gold-button{min-width:210px}.line-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.line-mini{position:relative;padding:10px 5px 5px;border:1px solid #d7b46c33;border-radius:8px}.line-mini span{font-size:7px;color:#b6a086}.line-mini svg{width:100%;height:39px;display:block}.line-mini polyline{stroke:#efcd84;stroke-width:4;fill:none}.line-mini circle{fill:#ffffff15}.line-mini circle.active-dot{fill:#ffe5a0}@media(min-width:1400px){:root{--cell:123px}}@media(max-width:1050px){:root{--cell:104px}.game-layout{grid-template-columns:minmax(0,1fr) 200px;gap:18px}.side-panel{padding:14px}.controls{gap:10px}.control-value b{font-size:20px}.spin{font-size:12px}.table-heading,.payrow{grid-template-columns:31px repeat(3,minmax(0,1fr));font-size:8px}.payrow img{width:29px;height:29px}.feature{gap:7px}.feature b{font-size:9px}.feature-tag{width:30px}}@media(max-width:800px){:root{--cell:clamp(82px,14vw,112px)}main{padding:12px 20px 25px}.game-layout{grid-template-columns:1fr;max-width:720px;margin:auto}.game-layout aside{display:grid;grid-template-columns:1fr 1fr;gap:14px}.reset-button{grid-column:1/-1}.feature-panel{align-self:start}.table-heading,.payrow{font-size:9px;grid-template-columns:35px repeat(3,minmax(0,1fr))}.side-panel{margin:0}.title-scene{max-width:640px}.guardian{width:125px;height:135px}.frog-guardian{width:112px}.feature b{font-size:11px}.feature p{font-size:9px}.feature-tag{width:37px}.feature{margin:19px 0}.foot-stats{gap:15px}.demo-label{display:none}.title-scene{margin-bottom:16px}h1{font-size:49px}h1 span{font-size:31px}}@media(max-width:500px){:root{--cell:clamp(68px,19vw,90px);--gap:3px}header{height:67px;gap:10px;padding:0 14px}.brand img{width:85px;height:58px}.back{font-size:9px}.header-right{gap:6px}.round{width:30px;height:30px;font-size:15px}input[type=range]{width:43px}main{padding:9px 12px 20px}.title-scene{min-height:126px;margin-bottom:13px}.eyebrow{font-size:6px;letter-spacing:1.7px}h1{font-size:37px;letter-spacing:1px;margin-top:12px}h1 span{font-size:25px;letter-spacing:5px;margin-top:7px;padding-left:5px}.title-scene p{font-size:7px;letter-spacing:1px;margin-top:10px}.guardian{width:75px;height:100px;left:-5px;top:13px;opacity:.85}.frog-guardian{left:auto;right:-3px;width:75px;height:83px;top:auto;bottom:9px}.cabinet{padding:11px 8px 10px;border-radius:17px}.cabinet-bar{font-size:6px;letter-spacing:1px;padding:0 5px 9px}.cabinet-center{font-size:6px;letter-spacing:.6px}.bonus-ribbon{padding:7px 2px 10px}.bonus-ribbon span{font-size:6px;letter-spacing:1px}.bonus-ribbon b{font-size:7px;letter-spacing:.3px}.board-shell{padding:4px;border-radius:10px}.reels{padding:2px;border-radius:5px}.cell{border-radius:4px}.cell-badge{font-size:5px;padding:1px 3px;bottom:3px;letter-spacing:.4px}.win-path{inset:7px;width:calc(100% - 14px);height:calc(100% - 14px)}.board-shine{inset:7px}.result-area{height:81px;gap:5px}.result-caption{font-size:6px;letter-spacing:1.5px}.win-number{font-size:23px}.win-number.large-win{font-size:31px}.result-detail{font-size:8px}.controls{gap:8px;grid-template-columns:1fr 1fr 1.12fr;padding-top:10px}.controls small{font-size:6px;letter-spacing:.8px;margin-bottom:5px}.control-value b{font-size:17px;height:43px;gap:3px}.coin-mark{font-size:9px}.stepper{height:43px;padding:2px;border-radius:8px}.stepper b{font-size:16px}.stepper button{width:23px;height:35px;font-size:17px}.spin{height:52px;border-radius:10px;gap:5px;font-size:9px;letter-spacing:.4px}.spin-icon{font-size:24px}.bottom-bar{font-size:6px;gap:3px;margin-top:9px}.bottom-bar button{font-size:7px}.side-panel{padding:12px;border-radius:12px}.section-kicker{font-size:6px;letter-spacing:1px;margin-bottom:12px}.feature{gap:7px;margin:14px 0}.feature-tag{width:29px;height:31px;font-size:7px}.feature b{font-size:8px}.feature p{font-size:7px}.table-heading,.payrow{font-size:7px;grid-template-columns:26px repeat(3,minmax(0,1fr))}.payrow img{width:25px;height:25px}.payrow{margin:5px 0}.table-heading span:first-child{font-size:5px}.pay-note{font-size:7px;padding-top:8px}.game-layout aside{gap:10px}.foot-stats{font-size:7px;gap:12px;margin-top:18px}.foot-stats span:nth-child(3){width:100%;text-align:center}dialog{padding:25px 18px}.line-gallery{grid-template-columns:repeat(4,1fr);gap:5px}.lanterns img{width:65px;height:85px}.lanterns{gap:7px}.bonus-dialog h2{font-size:27px}.bonus-frog{width:99px;height:90px}.bonus-reveal{font-size:15px}.lanterns small{font-size:6px;letter-spacing:1px}.bonus-dialog .eyebrow{font-size:7px}.line-mini svg{height:32px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.round.music-toggle{font-size:18px}.round.music-toggle[aria-pressed=true]{color:#9edbba;border-color:#84bf8b66;background:#2b61451a}.cell.is-wild{background:radial-gradient(ellipse,#255e4a77,#201820);border-color:#b5d49e66}.cell.is-wild img{filter:drop-shadow(0 0 8px #61d5a13b)}.cell.wild-arrival img{animation:wildReveal .85s cubic-bezier(.2,.7,.25,1)}.cell.wild-arrival{box-shadow:inset 0 0 0 2px #b7efb1,0 0 22px #a8df7a44}@keyframes wildReveal{0%{transform:scale(.72);filter:brightness(1.7) drop-shadow(0 0 18px #b4ffac)}45%{transform:scale(1.08)}100%{transform:scale(1);filter:brightness(1) drop-shadow(0 0 8px #61d5a13b)}}@media(max-width:500px){.header-right{gap:5px}header{gap:8px}.brand img{width:79px}.back{font-size:8px}input[type=range]{width:37px}.round.music-toggle{font-size:16px}}
/* v5.2: focused cabinet, centered controls and information drawer */
.game-layout{display:block;max-width:830px;margin:auto}.controls{grid-template-columns:minmax(0,1fr) 180px minmax(0,1fr);align-items:start;gap:20px;padding:22px 18px 10px;background:linear-gradient(#24121ad9,#24121a77),url('assets/dragon-light/fortune-palace.webp') center 72%/cover;border-radius:0 0 12px 12px}.stake-box,.balance-box{padding-top:18px}.balance-box{text-align:right}.balance-box b{justify-content:flex-end;font-variant-numeric:tabular-nums}.spin-stack{display:flex;flex-direction:column;align-items:center;gap:12px}.spin{width:150px;height:150px;border-radius:50%;flex-direction:column;gap:0;background:radial-gradient(circle at 38% 27%,#ee6e41,#a80e24 57%,#560e1a);color:#ffe5a0;border:8px solid #e0af53;outline:2px solid #ffedb5;box-shadow:inset 0 0 0 2px #ffcf6b, inset 0 0 22px #350409,0 7px 30px #0008,0 0 30px #db922a40;text-shadow:0 2px 3px #5a0910;font-size:22px;letter-spacing:1.5px}.spin-icon{font-size:48px}.auto-button{min-width:104px;min-height:38px;border:1px solid #d6a35b;border-radius:8px;background:linear-gradient(#742333,#35151e);color:#ffe3a3;font-size:12px;font-weight:800;letter-spacing:2px}.auto-button[aria-pressed=true]{background:#dcb267;color:#31151b}#autoStatus{height:12px;font-size:9px;color:#d1b28b}.bottom-bar{min-height:70px;padding:0 10px;margin-top:0}.bonus-character{position:relative;display:flex;align-items:center;gap:4px;min-width:104px;min-height:78px;text-decoration:none!important;padding:0!important}.bonus-character img{height:95px;width:70px;object-fit:contain;filter:drop-shadow(0 0 8px #d4a65e55);align-self:flex-end}.bonus-character span{font-size:10px;letter-spacing:1px;font-weight:800;color:#f6d78f}.bonus-character small{display:block;font-size:7px;margin-top:4px;color:#b89b7a}.info-panels{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.info-panels .reset-button{grid-column:1/-1}.info-panels .table-heading,.info-panels .payrow{font-size:10px;grid-template-columns:34px repeat(3,minmax(0,1fr))}.info-panels .section-kicker{font-size:9px}.info-panels .feature b{font-size:11px}.info-panels .feature p{font-size:9px}.bonus-warrior{height:170px;width:170px;margin-top:5px}.auto-options{display:flex;gap:10px}.auto-options button{flex:1;font-size:20px;color:#ffe5a2}.controls small{font-size:8px}.cell.scatter img{height:100%;width:100%;object-fit:contain}.cell.scatter{background:radial-gradient(ellipse,#754127,#261720)}
@media(max-width:500px){.controls{grid-template-columns:minmax(0,1fr) 118px minmax(0,1fr);gap:6px;padding:18px 4px 3px}.spin{width:106px;height:106px;border-width:6px;font-size:15px;letter-spacing:.5px}.spin-icon{font-size:33px}.spin-stack{gap:9px}.stake-box,.balance-box{padding-top:9px}.controls small{font-size:6px;letter-spacing:.6px}.control-value b{font-size:15px;height:39px}.stepper{height:39px}.stepper b{font-size:15px}.stepper button{width:23px;height:32px}.auto-button{min-width:83px;min-height:33px;font-size:10px}.bottom-bar{padding:0 3px;min-height:69px}.bonus-character{min-width:90px}.bonus-character img{height:83px;width:54px}.bonus-character span{font-size:8px}.bottom-bar #stakeNote{max-width:105px;text-align:center;line-height:1.6}.info-panels{grid-template-columns:1fr}.info-panels .side-panel{padding:16px}.info-panels .feature b{font-size:12px}.info-panels .feature p{font-size:10px}.info-panels .payrow img{width:34px;height:34px}.info-panels .payrow{font-size:12px}.bonus-warrior{height:145px;width:145px}.title-scene{min-height:112px}.result-area{height:75px}}
#spinText{max-width:100%;font-size:15px;line-height:1.25;letter-spacing:.4px}body.spinning #spinText{font-size:12px}body.free-mode #spinText{font-size:12px}@media(max-width:500px){#spinText{font-size:12px}body.spinning #spinText,body.free-mode #spinText{font-size:9px}}
/* v5.3: immersive viewport and essential game labels only */
body{min-height:100dvh}header{height:52px;padding:0 20px;gap:15px}.brand img{height:46px;width:70px}.demo-label,header input[type=range]{display:none}main{max-width:1120px;padding:6px 18px 10px}.title-scene{min-height:68px;height:68px;margin:0 auto 9px}.title-scene .eyebrow,.title-scene p{display:none}.title-scene h1{font-size:30px;margin:0;line-height:.9}.title-scene h1 span{font-size:19px;letter-spacing:6px;margin-top:5px}.guardian{height:70px;width:88px;top:0;left:18%}.frog-guardian{height:66px;width:77px;left:auto;right:18%;bottom:0}.game-layout{max-width:1000px}.cabinet{padding:10px 12px;border-radius:19px}.cabinet-bar,.result-caption,.result-detail,.foot-stats,#stakeNote,#showLines{display:none!important}.bonus-ribbon{display:none;padding:6px;border:0}body.free-mode .bonus-ribbon{display:block}body.free-mode .bonus-ribbon #bonusSubtitle{display:none}.reels{gap:4px}.result-area{height:48px;padding:0;gap:0}.win-number,.win-number.large-win{font-family:Manrope,system-ui,sans-serif;font-size:24px;font-weight:800}.controls{padding:12px 14px 0;grid-template-columns:minmax(0,1fr) 140px minmax(0,1fr);gap:15px}.spin{width:112px;height:112px;border-width:6px}.spin-icon{font-size:35px}.spin-stack{gap:8px}.auto-button{min-height:32px}.stake-box,.balance-box{padding-top:13px}#autoStatus{height:10px;font-size:8px}.bottom-bar{justify-content:flex-end;min-height:40px;height:40px;margin:0;padding:0 5px}.bonus-character{min-height:40px;height:40px;min-width:100px}.bonus-character img{height:64px;width:53px}.bonus-character small{font-size:6px}.controls small{font-size:8px}.balance-box b{font-size:22px}.expanded-mode header .brand,.expanded-mode header .back{display:none}.expanded-mode header{justify-content:flex-end}.expanded-mode .title-scene{display:none}.cell-badge{font-size:7px}.header-right{gap:7px}
@media(max-width:500px){header{height:45px;padding:0 max(9px,env(safe-area-inset-right));gap:6px}.brand img{height:39px;width:57px}.back{font-size:8px}.header-right{gap:5px}.round{width:28px;height:28px}main{padding:4px max(7px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom))}.title-scene{height:57px;min-height:57px;margin-bottom:7px}.title-scene h1{font-size:26px}.title-scene h1 span{font-size:16px;letter-spacing:5px}.guardian{height:57px;width:65px;left:5%}.frog-guardian{right:5%;left:auto;width:59px;height:54px}.cabinet{padding:7px 6px;border-radius:14px}.board-shell{padding:3px}.reels{gap:3px;padding:2px}.controls{grid-template-columns:minmax(0,1fr) 108px minmax(0,1fr);gap:5px;padding:10px 2px 0}.spin{width:96px;height:96px;border-width:5px}.spin-icon{font-size:29px}.controls small{font-size:6px}.balance-box b{font-size:16px;white-space:nowrap}.result-area{height:42px}.win-number,.win-number.large-win{font-size:20px}.bottom-bar{height:34px;min-height:34px}.bonus-character{height:34px;min-height:34px;min-width:84px}.bonus-character img{height:53px;width:44px}.stake-box,.balance-box{padding-top:9px}.auto-button{min-height:30px}.cell-badge{font-size:5px}}
@media(max-height:500px) and (min-width:600px){header{height:36px}.brand img{height:32px}.title-scene{display:none}.cabinet{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:0 14px}.board-shell{grid-column:1;grid-row:1/4}.result-area{grid-column:2;grid-row:1;height:38px}.controls{grid-column:2;grid-row:2;grid-template-columns:1fr 1fr;gap:5px;padding:4px}.spin-stack{grid-column:1/-1;grid-row:2}.spin{width:78px;height:78px}.spin-icon{font-size:23px}.stake-box,.balance-box{padding-top:0}.control-value b{font-size:16px;height:32px}.stepper{height:32px}.controls small{font-size:6px}.bottom-bar{grid-column:2;grid-row:3}.win-number,.win-number.large-win{font-size:15px}body.free-mode .bonus-ribbon{display:none}}
/* v5.4: framed reels and persistent last-win display */
.game-layout{max-width:1060px}.cabinet{background:linear-gradient(135deg,#36151ce8,#160f16f5);padding:8px 9px 7px;box-shadow:0 0 0 3px #2b1719,0 0 0 4px #ba8a43,0 18px 65px #000b}.board-shell{padding:5px;border-radius:12px 12px 0 0;background:linear-gradient(120deg,#976526,#ffebb0 25%,#b28035 52%,#ffe0a0 80%,#926128);border:1px solid #ffdea0;box-shadow:0 0 0 2px #160b0e,0 0 32px #e1aa3933}.reels{padding:3px;background:#08090c;border-radius:6px;gap:4px}.reel{border-radius:3px;background:#0b0d10;box-shadow:inset 1px 0 #d4ab5533,inset -1px 0 #d4ab5522}.cell,.cell.scatter,.cell.is-wild{border:0;border-radius:0;background:radial-gradient(ellipse at center,#30251e55,transparent 72%);overflow:hidden}.cell img{width:99%;height:99%;filter:drop-shadow(0 4px 8px #000a)}.cell.won{background:radial-gradient(ellipse,#9b742b66,#22170c88);box-shadow:inset 0 0 0 2px #f3d781, inset 0 0 25px #e4a63333}.cell.line-active{box-shadow:inset 0 0 0 3px #fff0ae,0 0 22px #eebb4044}.board-shine{box-shadow:inset 0 22px 22px -20px #000c,inset 0 -22px 22px -20px #000c}.result-area{height:61px;flex-direction:row;gap:14px;background:linear-gradient(90deg,#080a0e,#191613 50%,#080a0e);border:1px solid #e8c371;border-top:0;border-radius:0 0 10px 10px;box-shadow:0 0 0 2px #160b0e,inset 0 1px #ffe8a322,inset 0 -4px 14px #0008;margin-bottom:9px;position:relative}.result-area:before,.result-area:after{content:'◆';position:absolute;font-size:8px;color:#d4b16b;top:50%;transform:translateY(-50%)}.result-area:before{left:14px}.result-area:after{right:14px}.lastwin-label{font-size:15px;font-weight:700;letter-spacing:2px;color:#c4aa71}.win-number,.win-number.large-win{font-size:34px;font-weight:800;font-variant-numeric:tabular-nums;color:#ffe095;text-shadow:0 0 18px #e6ba3f30;line-height:1}.result-area.has-win .win-number{color:#ffeaaa;text-shadow:0 0 22px #ffbf4866}.title-scene{height:54px;min-height:54px}.guardian{height:54px}.frog-guardian{height:52px}.controls{padding-top:8px}.bottom-bar{height:30px;min-height:30px}
@media(max-width:500px){main{padding-left:4px;padding-right:4px}.cabinet{padding:6px 4px}.title-scene{height:46px;min-height:46px;margin-bottom:6px}.title-scene h1{font-size:23px}.title-scene h1 span{font-size:14px}.guardian{height:46px}.frog-guardian{height:43px}.board-shell{padding:4px}.reels{padding:1px;gap:2px}.cell img{width:100%;height:100%}.result-area{height:53px;gap:11px;margin-bottom:8px}.lastwin-label{font-size:12px;letter-spacing:1.6px}.win-number,.win-number.large-win{font-size:29px}.controls{padding-top:6px}.bottom-bar{height:27px;min-height:27px}.bonus-character img{height:47px}.result-area:before{left:10px}.result-area:after{right:10px}}
@media(max-height:500px) and (min-width:600px){.result-area{height:48px;border-top:1px solid #e8c371;border-radius:9px;margin-bottom:4px;gap:7px}.lastwin-label{font-size:9px;letter-spacing:1px}.win-number,.win-number.large-win{font-size:23px}.result-area:before,.result-area:after{display:none}.board-shell{border-radius:10px}.bottom-bar{height:30px}}
/* v5.5: integrated CaiWin wordmark and subtle dragon engraving */
.brand{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;filter:drop-shadow(0 1px 7px #c58a3022)}.brand-crown{font-size:27px;line-height:1;color:#dfb85f;transform:rotate(-9deg)}.brand-name{font-family:Georgia,serif;font-size:25px;font-weight:700;letter-spacing:-.8px;color:#f4d89b}.brand-name>span{color:#fff0bf}.reels{position:relative;isolation:isolate;background:radial-gradient(ellipse at center,#111316,#06080b)}.reels:before{content:'';position:absolute;inset:3% 9%;background:url('assets/dragon-light/fortune-dragon.webp') center/contain no-repeat;filter:grayscale(1) brightness(1.4);opacity:.065;pointer-events:none;z-index:-1}.reel{background:transparent}.cell,.cell.scatter,.cell.is-wild{background:radial-gradient(ellipse at center,#392c2020,transparent 70%)}.stepper b{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:19px}.balance-box b{white-space:nowrap}@media(max-width:500px){.brand{gap:3px}.brand-crown{font-size:22px}.brand-name{font-size:20px;letter-spacing:-.6px}header{gap:7px}.back{font-size:7px}.header-right{gap:4px}.stepper b{font-size:14px}.stepper button{flex-shrink:0}.balance-box b{font-size:15px}.reels:before{inset:4% 3%;background-size:110% auto;opacity:.07}}@media(max-width:355px){.brand-name{font-size:17px}.brand-crown{font-size:19px}.header-right .round{width:25px;height:25px}.back{font-size:6px}.stepper b{font-size:12px}}
/* Persistent home navigation, including expanded/fullscreen layouts. */
.home-link{display:inline-flex!important;align-items:center;justify-content:center;width:33px;height:33px;border:1px solid #d6b37277;border-radius:50%;background:#d0a64d0c;color:#f1d69b;flex-shrink:0}.home-link svg{width:18px;height:18px}.home-link:hover{background:#d0a64d22}@media(max-width:500px){.home-link{width:29px;height:29px}.home-link svg{width:17px;height:17px}}
