@charset "UTF-8";
:root{color-scheme:dark;font-family:Inter,"Segoe UI",Arial,sans-serif;font-synthesis:none;--accent:#e8c379;--accent-light:#fff0c0;--accent-dark:#805428;--ink:#fbf5e9;--muted:#b6a9be;--sector-a:#372046;--sector-b:#e8c58a;--sector-ink:#fff1ce;--rim-light:#ffe5a2;--rim-dark:#6f4324;--glow:#8c40de;--scene:url('/fortune/assets/bg-portal.webp');--panel:rgba(19,12,27,.88)}
*{box-sizing:border-box}html{min-width:300px;min-height:100%;background:#08050e}body{margin:0;min-height:100svh;overflow-x:hidden;color:var(--ink);background:#08050e}body:has(dialog[open]){overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid var(--accent-light);outline-offset:4px}button{border:0}svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button svg{pointer-events:none}img{display:block;max-width:100%}[hidden]{display:none!important}button,.play-panel,.wheel-frame{transition:background-color .25s,border-color .25s,color .25s,box-shadow .25s}button:hover:enabled{filter:brightness(1.12)}button:active:enabled{translate:0 1px}
.scene,.scene-shade{position:fixed;inset:0;pointer-events:none}.scene{background-image:var(--scene);background-size:cover;background-position:center;opacity:.78;transform:scale(1.025);z-index:0}.scene-shade{background:linear-gradient(180deg,rgba(5,3,10,.5) 0%,rgba(6,3,12,.12) 36%,rgba(6,3,12,.2) 65%,#08050e 100%);z-index:1}.game-header,.game-main,.game-footer{position:relative;z-index:2}.game-header{max-width:1440px;margin:0 auto;padding:20px 44px;min-height:94px;display:flex;align-items:center;gap:28px;border-bottom:1px solid rgba(219,177,109,.17);background:linear-gradient(90deg,rgba(9,6,14,.3),rgba(9,6,14,.65),rgba(9,6,14,.3))}.brand{display:flex;align-items:center;gap:8px;flex-shrink:0}.brand img{width:58px;height:42px;object-fit:contain;mix-blend-mode:screen}.brand>span{font:700 25px/1 Georgia,serif;letter-spacing:3px;color:#f1d38f}.brand small{display:block;font:600 8px/1.8 "Segoe UI",sans-serif;letter-spacing:6.2px;color:#b4a27e;text-align:center}.back-link{display:flex;align-items:center;gap:7px;color:#c9becd;font-size:12px}.back-link svg{width:16px;height:16px}.header-balance{display:flex;align-items:center;gap:11px;margin-left:auto;white-space:nowrap}.header-balance>.coin-icon{color:var(--accent);width:29px;height:29px}.header-balance small{display:block;font-size:9px;letter-spacing:.7px;color:var(--muted);margin-bottom:3px}.header-balance strong{font-size:20px;line-height:1;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:.5px}.demo-badge{padding:5px 7px;border:1px solid rgba(221,182,115,.3);border-radius:4px;color:var(--accent);font-size:8px;letter-spacing:1.2px;margin-left:4px;background:rgba(227,190,116,.04)}.header-actions{display:flex;gap:9px;align-items:center}.icon-button{display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(222,190,140,.22);border-radius:9px;background:rgba(33,24,43,.7);color:var(--accent)}.icon-button svg{width:19px;height:19px}.icon-button[aria-pressed=false]{color:var(--muted)}.appearance-open{display:flex;align-items:center;gap:9px;height:38px;padding:0 13px;border-radius:9px;border:1px solid rgba(222,190,140,.3);background:rgba(33,24,43,.7);color:#f2dfbd;font-size:11px;font-weight:600}.appearance-open svg{width:19px;height:19px}
.game-main{max-width:1240px;margin:0 auto;padding:32px 40px 24px}.game-heading{text-align:center;margin:0 0 12px}.eyebrow{font-size:9px;letter-spacing:3px;color:var(--accent);font-weight:650;margin:0 0 10px;display:flex;justify-content:center;align-items:center;gap:7px}.eyebrow>span{width:4px;height:4px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px var(--accent)}h1{font:400 clamp(30px,3.5vw,48px)/1.15 Georgia,"Times New Roman",serif;letter-spacing:-1px;margin:0;color:#fff1d5;text-shadow:0 3px 28px #08040c}h1 em{font-style:normal;color:var(--accent)}.heading-caption{font-size:11px;color:#c8b8cf;letter-spacing:1.2px;margin:10px 0 0}.game-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(310px,1fr);align-items:center;gap:46px;max-width:1060px;margin:18px auto 0}.wheel-stage{isolation:isolate;position:relative;min-width:0;padding:18px 4px 8px;display:flex;align-items:center;flex-direction:column}.wheel-aura{position:absolute;inset:3% -7% 10%;z-index:-1;background:radial-gradient(ellipse,color-mix(in srgb,var(--glow) 30%,transparent) 5%,transparent 65%);filter:blur(20px)}.wheel-frame{position:relative;width:100%;aspect-ratio:1;isolation:isolate;border-radius:50%;filter:drop-shadow(0 20px 28px rgba(0,0,0,.65));background:radial-gradient(circle,transparent 60%,#4e2b20 68%,#eac37e 69%,#694521 70%,#f1d291 71%,#3a211a 72%);box-shadow:0 0 44px color-mix(in srgb,var(--glow) 34%,transparent),0 0 0 1px rgba(249,213,140,.2)}.wheel-rim{position:absolute;inset:1%;border-radius:50%;background:conic-gradient(from -30deg,var(--rim-dark),var(--rim-light) 13%,var(--rim-dark) 28%,var(--rim-light) 45%,var(--rim-dark) 61%,var(--rim-light) 80%,var(--rim-dark));box-shadow:inset 0 0 0 2px #ffffd43d,inset 0 0 13px 3px #0009,0 0 0 3px #120e16;z-index:0}.wheel-rim:after{content:"";position:absolute;inset:6%;border-radius:50%;border:2px solid #1a0e12;box-shadow:0 0 0 2px #ffebbb80}.wheel-disc{position:absolute;inset:7%;width:86%;height:86%;border-radius:50%;z-index:1;overflow:hidden;filter:drop-shadow(0 2px 3px #0008);will-change:transform;stroke:none}.wheel-sector{stroke:#a37b3b;stroke-width:1;stroke-linejoin:round}.sector-even{fill:var(--sector-a)}.sector-odd{fill:var(--sector-b)}.wheel-number{fill:var(--sector-ink);stroke:none;font:700 37px Georgia,serif;text-anchor:middle;dominant-baseline:middle;paint-order:stroke}.wheel-inner-rim{position:absolute;inset:7%;border-radius:50%;border:3px solid var(--rim-light);z-index:2;pointer-events:none;box-shadow:inset 0 0 15px 4px #0007,0 0 0 2px #1e1119}.wheel-bolts{position:absolute;inset:0;z-index:3;pointer-events:none;border-radius:50%}.wheel-bolts i{position:absolute;inset:0;border-radius:50%;transform:rotate(calc(var(--i)*15deg))}.wheel-bolts i:after{content:"";position:absolute;left:calc(50% - 3px);top:3.2%;width:6px;height:6px;background:radial-gradient(circle at 30% 25%,#fff9d7,#ddb363 40%,#795127 80%);border-radius:50%;box-shadow:0 0 5px #f4c87d66,0 1px 2px #000}.wheel-bolts i:nth-child(1){--i:0}.wheel-bolts i:nth-child(2){--i:1}.wheel-bolts i:nth-child(3){--i:2}.wheel-bolts i:nth-child(4){--i:3}.wheel-bolts i:nth-child(5){--i:4}.wheel-bolts i:nth-child(6){--i:5}.wheel-bolts i:nth-child(7){--i:6}.wheel-bolts i:nth-child(8){--i:7}.wheel-bolts i:nth-child(9){--i:8}.wheel-bolts i:nth-child(10){--i:9}.wheel-bolts i:nth-child(11){--i:10}.wheel-bolts i:nth-child(12){--i:11}.wheel-bolts i:nth-child(13){--i:12}.wheel-bolts i:nth-child(14){--i:13}.wheel-bolts i:nth-child(15){--i:14}.wheel-bolts i:nth-child(16){--i:15}.wheel-bolts i:nth-child(17){--i:16}.wheel-bolts i:nth-child(18){--i:17}.wheel-bolts i:nth-child(19){--i:18}.wheel-bolts i:nth-child(20){--i:19}.wheel-bolts i:nth-child(21){--i:20}.wheel-bolts i:nth-child(22){--i:21}.wheel-bolts i:nth-child(23){--i:22}.wheel-bolts i:nth-child(24){--i:23}.wheel-hub{position:absolute;inset:38%;border-radius:50%;z-index:4;background:conic-gradient(from 20deg,#5a361b,#fff0ab 23%,#916126 38%,#eac87b 62%,#392016 80%,#e4c27b);padding:5px;box-shadow:0 4px 17px #000c,0 0 0 2px #281822;display:grid;place-items:center}.hub-inner{height:100%;width:100%;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 38% 30%,#191019,#000 70%);border:2px solid #573a21;box-shadow:inset 0 1px 8px #000;overflow:hidden}.hub-inner img{width:93%;height:auto;mix-blend-mode:screen}.wheel-pointer{transform-origin:50% 15%;position:absolute;z-index:5;left:44.5%;top:-2.2%;width:11%;height:13%;filter:drop-shadow(0 3px 3px #000a)}.wheel-pointer:before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,#6c421d 0%,#fff3bc 33%,#d8ad51 55%,#7e4c23 100%);clip-path:polygon(50% 100%,7% 15%,18% 3%,82% 3%,93% 15%)}.wheel-pointer span{position:absolute;inset:13% 28% 24%;background:linear-gradient(90deg,#ffedaa,#8b521d);clip-path:polygon(50% 100%,0 0,100% 0)}.wheel-plinth{position:absolute;bottom:44px;left:23%;right:23%;height:23%;background:linear-gradient(90deg,#26162a,#9b7b46 49%,#3a2030);clip-path:polygon(40% 0,60% 0,65% 76%,100% 90%,100% 100%,0 100%,0 90%,35% 76%);z-index:-1;opacity:.9}.wheel-caption{display:flex;align-items:center;gap:14px;margin:25px 0 0;color:#c9b3cb}.wheel-caption p{font-size:9px;letter-spacing:1.6px;margin:0;text-align:center}.wheel-caption>span{height:1px;width:30px;background:linear-gradient(90deg,transparent,var(--accent))}.wheel-caption>span:last-child{transform:rotate(180deg)}
.play-panel{position:relative;padding:25px 25px 18px;background:linear-gradient(145deg,rgba(63,36,72,.33),rgba(15,10,23,.82)),var(--panel);border:1px solid rgba(226,192,131,.3);border-radius:18px;box-shadow:0 12px 50px #0005,inset 0 1px rgba(255,230,190,.06);backdrop-filter:blur(16px)}.play-panel:before{content:"";height:1px;position:absolute;top:-1px;left:20%;right:20%;background:linear-gradient(90deg,transparent,var(--accent),transparent)}.panel-heading{display:flex;align-items:center;justify-content:space-between}.small-label{font-size:8px;letter-spacing:2.2px;color:var(--accent)}.live-dot{width:5px;height:5px;background:var(--accent);box-shadow:0 0 8px var(--accent);border-radius:50%}.result-area{padding:24px 0 25px;text-align:center}.game-status{color:var(--muted);font-size:11px;margin:0 0 10px}.last-result{font:400 clamp(25px,2.4vw,33px)/1.15 Georgia,serif;letter-spacing:-.5px;color:var(--accent-light);min-height:39px}.result-caption{font-size:10px;color:#8f829c;margin:9px 0 0}.cost-header{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin-bottom:10px}.cost-header label{font-weight:600}.cost-header>span{font-size:9px;color:var(--muted)}.cost-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:15px}.cost-options button{height:44px;border:1px solid #71607966;background:#231b2e;border-radius:8px;display:flex;justify-content:center;align-items:center;gap:8px;font-weight:600;font-size:16px;color:#cbbfce;font-variant-numeric:tabular-nums}.cost-options svg{width:15px;height:15px;color:#8b7c91}.cost-options button.selected,.cost-options button[aria-pressed=true]{background:linear-gradient(135deg,#b089444d,#52382644);border-color:var(--accent);color:var(--accent-light);box-shadow:0 0 13px #bd914617}.cost-options button.selected svg,.cost-options button[aria-pressed=true] svg{color:var(--accent)}.spin-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:55px;border-radius:9px;background:linear-gradient(120deg,#f7d99c,#dcac58 55%,#f5d58f);color:#2b1a0c;box-shadow:0 6px 23px #e3b85c26,inset 0 1px #fff4cc;border:1px solid #fff0b766;font-size:14px;font-weight:750;letter-spacing:.2px;position:relative;overflow:hidden}.spin-button:before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 20%,#fff5 45%,transparent 70%);transform:translateX(-100%);transition:transform .5s}.spin-button:hover:enabled:before{transform:translateX(100%)}.spin-button svg{width:21px;height:21px}.spin-button .spin-arrow{width:18px;height:18px;margin-left:10px}.play-note{display:flex;align-items:center;justify-content:center;gap:6px;color:#91849d;font-size:8px;line-height:1.4;text-align:center;margin:12px 0 23px}.play-note svg{width:12px;height:12px;flex-shrink:0}.refill-button{width:100%;margin-top:9px;padding:13px;border:1px solid var(--accent);border-radius:8px;color:var(--accent);background:#b88a3226;font-size:12px}.recent-heading{display:flex;justify-content:space-between;align-items:center;padding-top:17px;border-top:1px solid #b8a4c31f;gap:10px}.recent-heading h2{font-size:10px;font-weight:500;margin:0;color:#b6a7bf}.recent-heading button{padding:3px 0 3px 5px;background:transparent;color:var(--accent);font-size:9px}.recent-heading button span{font-size:14px;padding-left:3px}.history-list{list-style:none;margin:11px 0 17px;padding:0;display:flex;gap:7px;min-height:31px;align-items:center;flex-wrap:wrap}.history-list li{font-size:11px;min-width:38px;text-align:center;padding:7px 9px;background:#3b274c99;color:#d8b5f8;border:1px solid #76558e70;border-radius:5px;font-weight:600}.history-list .history-empty{font-size:10px;color:#756b80;min-width:0;background:transparent;border:0;padding:5px 0;font-weight:400}.history-list .win,.history-list .is-win{color:var(--accent-light);border-color:#a27c3e66;background:#8f65292b}.history-list .loss,.history-list .is-loss{color:#8c8095;background:#2a2233;border-color:#54495f66}.rules-open{display:flex;align-items:center;gap:6px;background:none;color:#b5a4bf;font-size:9px;margin:auto;padding:3px 0}.rules-open svg{width:13px;height:13px}.storage-notice{font-size:10px;padding:10px;color:#f3d8a1;background:#7a57252e;border:1px solid #b38b4855;border-radius:6px;line-height:1.5;margin:10px 0}.loading-scene{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);font-size:11px;padding:10px 17px;border-radius:30px;background:#130d20e8;border:1px solid #9e7fbc66;z-index:10;box-shadow:0 8px 20px #0007;white-space:nowrap}.game-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:1240px;margin:0 auto;padding:19px 40px 24px;border-top:1px solid #ba95c515;color:#86738f;font-size:8px}.game-footer>span{letter-spacing:2px;color:#bda36b;font-size:9px;font-weight:600}.game-footer p{margin:0;text-align:center;line-height:1.7}.game-footer a{color:#aa97b2;white-space:nowrap}.game-footer a span{margin-left:4px}
.is-spinning .wheel-bolts i:after{box-shadow:0 0 8px var(--accent)}.is-spinning .spin-button>svg:first-child{animation:slow-rotate 1.5s linear infinite}.is-winner .wheel-frame{box-shadow:0 0 80px color-mix(in srgb,var(--accent) 55%,transparent),0 0 0 1px var(--accent)}.is-winner .last-result{color:var(--accent-light);text-shadow:0 0 23px var(--accent-dark)}@keyframes slow-rotate{to{transform:rotate(360deg)}}
.game-dialog{width:min(780px,calc(100% - 32px));max-height:calc(100svh - 48px);padding:29px;border:1px solid #d7b27266;border-radius:19px;color:var(--ink);background:linear-gradient(145deg,#24172e,#0e0a15 65%);box-shadow:0 25px 100px #000c;overflow-y:auto;scrollbar-color:#795b85 #160d20}.game-dialog::backdrop{background:#040207bc;backdrop-filter:blur(8px)}.dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.dialog-header .eyebrow{justify-content:flex-start;font-size:8px;letter-spacing:2.3px;margin-bottom:9px}.dialog-header h2{font:400 29px/1.2 Georgia,serif;color:#ffe9bd;margin:0}.close-button{flex-shrink:0;width:33px;height:33px}.dialog-description{font-size:12px;line-height:1.7;color:#b9a9c2;max-width:560px;margin:14px 0 24px}.appearance-tabs{display:flex;gap:6px;padding:5px;border-radius:10px;background:#09060f88;margin-bottom:21px;border:1px solid #9b77b21c}.appearance-tabs button{flex:1;padding:12px 10px;font-size:12px;border-radius:7px;background:transparent;color:#ad9bb9;border:1px solid transparent}.appearance-tabs button[aria-selected=true]{color:var(--accent-light);border-color:#d8b57766;background:linear-gradient(110deg,#83603733,#80603915)}.appearance-tabs span{font-size:9px;display:inline-block;margin-left:6px;opacity:.65}.appearance-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.appearance-option{position:relative;overflow:hidden;padding:0;text-align:left;border-radius:10px;border:1px solid #a88cb133;background:#271b35;color:#e5d7ef;min-width:0}.appearance-option.selected,.appearance-option[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 4px 20px #0005}.appearance-option.selected:after,.appearance-option[aria-pressed=true]:after{content:"✓";position:absolute;top:7px;right:7px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#24140d;font-size:12px;font-weight:700;box-shadow:0 1px 6px #0009}.appearance-preview{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1.15;background:radial-gradient(circle,#4c2765,#0d0716);background-size:cover;background-position:center;overflow:hidden}.appearance-preview img,.appearance-option>img{display:block;width:100%;aspect-ratio:1.15;object-fit:cover}.appearance-preview svg{width:80%;height:80%}.appearance-name{display:block;padding:11px 10px;font-size:11px;font-weight:600;line-height:1.3}.appearance-description{display:block;font-size:9px;color:#ae9abb;font-weight:400;margin-top:3px}.background-grid .appearance-preview,.background-grid .appearance-option>img{aspect-ratio:1.3}.rules-dialog,.history-dialog{max-width:590px}.rules-steps{list-style:none;padding:0;counter-reset:step;margin:26px 0}.rules-steps li{position:relative;padding:0 0 0 40px;margin-bottom:22px;counter-increment:step}.rules-steps li:before{content:counter(step,decimal-leading-zero);position:absolute;left:0;top:0;color:var(--accent);font-size:11px;letter-spacing:1px;border:1px solid #bd965b44;background:#b68a3510;border-radius:6px;padding:6px}.rules-steps b{font-size:13px;font-weight:600;color:#ead8ef}.rules-steps p{font-size:12px;line-height:1.7;color:#b6a7be;margin:6px 0 0}.probability-heading{font-size:13px;font-weight:500;color:#e9d8ee;margin:25px 0 12px}.rules-multipliers{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:23px;font-size:12px;color:#c6b4d0}.rules-multipliers>div,.rules-multipliers>span{padding:9px 12px;border-radius:6px;background:#3a284980;border:1px solid #80609144}.rules-multipliers table{width:100%;border-collapse:collapse}.rules-multipliers td,.rules-multipliers th{text-align:left;padding:10px;border-bottom:1px solid #80609133}.rules-notice{display:flex;align-items:flex-start;gap:10px;padding:14px;background:#99743c16;border:1px solid #c59b5d33;border-radius:10px;color:#cbb798}.rules-notice svg{width:18px;height:18px;flex-shrink:0;color:var(--accent);margin-top:2px}.rules-notice p{margin:0;font-size:11px;line-height:1.7}.dialog-footnote{font-size:10px;color:#96879e;line-height:1.7;margin:17px 0 0}.full-history{list-style:none;margin:20px 0 0;padding:0}.full-history li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #a784c21f;font-size:12px;color:#d5c2e1}.full-history li:last-child{border-bottom:0}.history-meta{color:#9d8baa;font-size:10px;line-height:1.7}.history-result{color:var(--accent);font-size:15px;font-weight:600}.full-history .history-empty{display:block;padding:25px;text-align:center;color:#a595b0;font-weight:400}
/* The rim and sectors change independently of the scene. */
body[data-skin=royal]{--accent:#e3bb67;--accent-light:#ffedbc;--sector-a:#4b1731;--sector-b:#ead49c;--sector-ink:#ffeac2;--rim-light:#f2d88d;--rim-dark:#563819;--glow:#ab5b20}.royal-unused{display:none}body[data-skin=royal] .wheel-frame{background:repeating-conic-gradient(#684421 0deg 4deg,#3e2317 4deg 8deg);box-shadow:0 0 0 5px #382313,0 0 0 7px #a47c46,0 12px 40px #0008}body[data-skin=royal] .wheel-rim{inset:2%;box-shadow:inset 0 0 0 3px #e9c46e,inset 0 0 18px #0009}body[data-skin=royal] .wheel-bolts i:after{width:8px;height:8px;left:calc(50% - 4px);background:radial-gradient(circle,#fffbd9 5%,#ffdc82 45%,#a06a24 80%);box-shadow:0 0 8px #ffc855}
body[data-skin=orbital]{--accent:#bda2ff;--accent-light:#eee2ff;--sector-a:#171e40;--sector-b:#55407d;--sector-ink:#e6e7ff;--rim-light:#b9c8df;--rim-dark:#263249;--glow:#7138ff}body[data-skin=orbital] .wheel-frame{background:repeating-conic-gradient(#1d2843 0 14deg,#94b2df 14deg 15deg,#1d2843 15deg 29deg,#7947f9 29deg 30deg);box-shadow:0 0 0 3px #121725,0 0 0 5px #6879a2,0 0 40px #6c3eff66}body[data-skin=orbital] .wheel-rim{inset:2.5%;background:conic-gradient(#8394b0,#222d44,#a2b9da,#27354c,#91a2bf)}body[data-skin=orbital] .wheel-bolts i:after{border-radius:1px;height:10px;width:3px;left:calc(50% - 1.5px);top:2.2%;background:#c7a1ff;box-shadow:0 0 7px #8c47ff}body[data-skin=orbital] .wheel-inner-rim{border-color:#cba8ff;box-shadow:0 0 10px #9054ff,inset 0 0 9px #000a}body[data-skin=orbital] .spin-button{background:linear-gradient(120deg,#d3bdff,#9871e4);color:#1a1030}
body[data-skin=crimson]{--accent:#e4ba68;--accent-light:#ffe4b4;--sector-a:#270c16;--sector-b:#9d2139;--sector-ink:#ffebcb;--rim-light:#e5c785;--rim-dark:#39201d;--glow:#bf123b}body[data-skin=crimson] .wheel-rim{background:conic-gradient(#15101a,#c79b53 12%,#170d14 30%,#deb974 48%,#160c13 65%,#c19a5b 83%,#19111a)}body[data-skin=crimson] .wheel-bolts i:after{background:#dba946;box-shadow:0 0 7px #c9133e}body[data-skin=crimson] .wheel-inner-rim{border-color:#ae7c44;box-shadow:inset 0 0 14px #8e102d80,0 0 0 2px #220817}
body[data-skin=deco]{--accent:#e2c688;--accent-light:#fff1c9;--sector-a:#1d1631;--sector-b:#e5d8b3;--sector-ink:#fff0d2;--rim-light:#f1dfad;--rim-dark:#97763b;--glow:#a171dc}body[data-skin=deco] .wheel-frame{border-radius:49%;background:repeating-conic-gradient(#ae8c49 0 5deg,#e6ce92 5deg 7.5deg,#392b24 7.5deg 10deg);box-shadow:0 0 0 2px #e7c67b,0 0 0 5px #1a121f,0 0 0 7px #9b7d42}body[data-skin=deco] .wheel-rim{inset:3%;background:conic-gradient(#8d682d,#ffeec4,#9a7337,#f1d28d,#715323);box-shadow:inset 0 0 0 3px #2c211f,inset 0 0 0 5px #d9bb7c}body[data-skin=deco] .wheel-bolts i:after{border-radius:0;width:5px;height:5px;transform:rotate(45deg);background:#ffedba;top:1.5%;box-shadow:none}body[data-skin=deco] .play-panel{border-radius:3px;outline:1px solid #d4b36b44;outline-offset:4px}body[data-skin=deco] .spin-button{border-radius:3px}
body[data-skin=amethyst]{--accent:#d0afff;--accent-light:#f4e5ff;--sector-a:#281440;--sector-b:#74469b;--sector-ink:#f7eaff;--rim-light:#ccb3ef;--rim-dark:#302039;--glow:#a842fa}body[data-skin=amethyst] .wheel-frame{background:conic-gradient(#24162e,#9064a8,#36213b,#a978c2,#25172d);box-shadow:0 0 0 2px #a87cbe,0 0 0 5px #231327,0 0 50px #9c44e966}body[data-skin=amethyst] .wheel-rim{inset:1.8%;background:conic-gradient(#3c254e,#b59dd0,#382c4d,#9574b5,#31233f)}body[data-skin=amethyst] .wheel-bolts i:after{width:8px;height:8px;left:calc(50% - 4px);top:2.7%;transform:rotate(45deg);border-radius:1px;background:linear-gradient(135deg,#ffe8ff,#a25de4 50%,#42156b);box-shadow:0 0 8px #b16cf4}body[data-skin=amethyst] .wheel-inner-rim{border-color:#b99bcf}body[data-skin=amethyst] .spin-button{background:linear-gradient(120deg,#edceff,#bd88e0);color:#271232}
body[data-skin=phoenix]{--accent:#f1b479;--accent-light:#ffe2b4;--sector-a:#3e1915;--sector-b:#bf6a35;--sector-ink:#ffe6bf;--rim-light:#ffc181;--rim-dark:#713423;--glow:#f06620}body[data-skin=phoenix] .wheel-frame{background:conic-gradient(#5d2717,#e7a65d,#6f301d,#edb477,#74351e);box-shadow:0 0 0 2px #a75a2f,0 0 30px #d6532777,0 15px 30px #0008}body[data-skin=phoenix] .wheel-rim{background:conic-gradient(#6c3626,#ffc49a,#a54e27,#e7a566,#643329)}body[data-skin=phoenix] .wheel-bolts i:after{background:radial-gradient(circle,#ffeab1,#ff982d 55%,#a9350b);box-shadow:0 0 9px #f98327}body[data-skin=phoenix] .spin-button{background:linear-gradient(110deg,#ffd093,#f1a25e,#ffbe7d);color:#39180b}
body[data-skin=emerald]{--accent:#d9c584;--accent-light:#fff0bb;--sector-a:#0e312a;--sector-b:#568879;--sector-ink:#e9ffdf;--rim-light:#e5d99f;--rim-dark:#45503b;--glow:#0fac86}body[data-skin=emerald] .wheel-frame{background:repeating-conic-gradient(#1c5146 0 13deg,#b7ae70 13deg 15deg);box-shadow:0 0 0 3px #122d25,0 0 0 5px #b5a365,0 0 40px #1bc99c33}body[data-skin=emerald] .wheel-rim{background:conic-gradient(#35462f,#e8db9c,#566043,#d2c58b,#414a31)}body[data-skin=emerald] .wheel-bolts i:after{background:linear-gradient(135deg,#b0ffe1,#24b78c 45%,#0e533d);box-shadow:0 0 4px #57edbc;border:1px solid #d2c77c;border-radius:1px;transform:rotate(45deg)}body[data-skin=emerald] .wheel-inner-rim{border-color:#cdbb75}
body[data-skin=comic]{--accent:#ffd948;--accent-light:#fff2ad;--sector-a:#df253b;--sector-b:#f2e6ce;--sector-ink:#fff6d4;--rim-light:#ffdd52;--rim-dark:#b18b16;--glow:#fcce35}body[data-skin=comic] .wheel-frame{background:#14101a;border:4px solid #16101c;box-shadow:6px 7px 0 #050407,0 0 0 3px #f7d249;filter:drop-shadow(0 10px 14px #0008)}body[data-skin=comic] .wheel-rim{inset:0;background:#f4cf34;box-shadow:inset 0 0 0 3px #17101b}body[data-skin=comic] .wheel-bolts i:after{background:#19101b;border-radius:50%;width:5px;height:5px;box-shadow:none}body[data-skin=comic] .wheel-inner-rim{border:4px solid #18111b;box-shadow:none}body[data-skin=comic] .wheel-sector{stroke:#211321;stroke-width:3}body[data-skin=comic] .wheel-hub{background:#f8d23f;box-shadow:4px 4px 0 #191019;border:3px solid #191019;padding:3px}body[data-skin=comic] .wheel-number{font-family:Impact,"Arial Black",sans-serif}body[data-skin=comic] .play-panel{border:2px solid #e7c641;box-shadow:6px 6px 0 #050207;border-radius:8px}body[data-skin=comic] .spin-button{background:#f9d341;border:2px solid #241320;box-shadow:3px 4px 0 #08040c;color:#231426;border-radius:6px}
body[data-skin=lunar]{--accent:#c4c2f0;--accent-light:#eeebff;--sector-a:#152344;--sector-b:#71819e;--sector-ink:#edf2ff;--rim-light:#e6eaf3;--rim-dark:#56647e;--glow:#8384e1}body[data-skin=lunar] .wheel-frame{background:conic-gradient(#596b84,#d8dfeb,#53617b,#d0d6e4,#596b84);box-shadow:0 0 0 2px #c6cbdc,0 0 0 4px #334259,0 0 40px #a6a9e455}body[data-skin=lunar] .wheel-rim{background:conic-gradient(#67738a,#f0f0f8,#6a7690,#d4d8eb,#65738d)}body[data-skin=lunar] .wheel-bolts i:after{background:radial-gradient(circle,#f8f7ff,#b7c3e1 50%,#697a9d);box-shadow:0 0 8px #c5c8ff}body[data-skin=lunar] .wheel-inner-rim{border-color:#d8dcef}body[data-skin=lunar] .spin-button{background:linear-gradient(120deg,#e2dbff,#ada4dc,#ded8f5);color:#1b1735}
@media(min-width:1500px){.game-main{padding-top:46px}.game-layout{margin-top:26px;gap:60px}.game-heading{margin-bottom:20px}.game-footer{margin-top:15px}}
@media(max-width:1000px){.game-header{padding:17px 26px;gap:19px}.game-main{padding:28px 27px 20px}.game-layout{gap:26px;grid-template-columns:minmax(0,1.25fr) minmax(290px,1fr)}.play-panel{padding:22px 21px 16px}.result-area{padding:20px 0}.last-result{font-size:27px}.game-footer{padding:18px 27px 24px}.appearance-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}}
@media(max-width:760px){.game-header{padding:12px 18px;gap:12px;min-height:75px}.brand{gap:5px}.brand img{width:43px;height:33px}.brand>span{font-size:21px;letter-spacing:2px}.brand small{font-size:7px;letter-spacing:5px}.back-link{display:none}.header-balance{gap:7px}.header-balance>.coin-icon{width:24px;height:24px}.header-balance strong{font-size:18px}.header-balance small{font-size:8px}.demo-badge{font-size:7px;padding:4px 5px;margin:0}.appearance-open{padding:0;width:35px;height:35px;justify-content:center}.appearance-open span{display:none}.header-actions{gap:6px}.icon-button{width:35px;height:35px}.game-main{padding:22px 18px 17px}.game-heading{margin:0}.game-heading .eyebrow{font-size:8px;letter-spacing:2.7px;margin-bottom:9px}h1{font-size:34px;letter-spacing:-.6px}.heading-caption{font-size:10px;margin-top:8px}.game-layout{grid-template-columns:minmax(0,1fr);max-width:480px;gap:17px;margin-top:14px}.wheel-stage{padding:14px 0 0;width:100%;max-width:330px;justify-self:center}.wheel-frame{width:100%}.wheel-caption{margin-top:18px;gap:10px}.wheel-caption p{font-size:8px;letter-spacing:1.3px}.wheel-caption>span{width:24px}.wheel-plinth{bottom:23px}.wheel-aura{inset:-12% -12% 0}.play-panel{padding:18px 20px 15px;border-radius:14px;max-width:410px;width:100%;justify-self:center}.panel-heading{display:none}.result-area{padding:0 0 18px}.game-status{font-size:10px;margin-bottom:6px}.last-result{font-size:27px;min-height:31px}.result-caption{font-size:9px;margin-top:6px}.cost-header{font-size:11px;margin-bottom:8px}.cost-options{margin-bottom:12px;gap:8px}.cost-options button{height:42px}.spin-button{min-height:53px;font-size:14px}.play-note{margin:11px 0 16px;font-size:8px}.recent-heading{padding-top:13px}.history-list{margin-bottom:13px;min-height:29px}.history-list li{font-size:10px;padding:6px 9px;min-width:35px}.rules-open{font-size:9px}.game-footer{padding:15px 18px 23px;justify-content:center;flex-direction:column;gap:7px;font-size:8px}.game-footer>span{font-size:8px}.game-footer a{display:none}.game-dialog{padding:24px;width:calc(100% - 28px);max-height:calc(100svh - 32px);border-radius:15px}.dialog-header h2{font-size:25px}.dialog-description{font-size:11px;margin:12px 0 19px}.appearance-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.appearance-name{font-size:10px;padding:9px 8px}.appearance-description{font-size:8px}.appearance-tabs button{font-size:11px;padding:11px 8px}.appearance-tabs{margin-bottom:16px}.rules-steps p{font-size:11px}.wheel-bolts i:after{width:5px;height:5px;left:calc(50% - 2.5px)}body[data-skin=royal] .wheel-bolts i:after{width:6px;height:6px;left:calc(50% - 3px)}body[data-skin=amethyst] .wheel-bolts i:after{width:6px;height:6px;left:calc(50% - 3px)}}
@media(max-width:390px){.game-header{padding:11px 12px;gap:8px}.brand img{width:36px;height:30px}.brand>span{font-size:18px}.brand small{font-size:6px;letter-spacing:4.4px}.header-balance>.coin-icon{width:19px;height:19px}.header-balance{gap:5px}.header-balance strong{font-size:17px}.header-balance small{font-size:7px}.header-actions{gap:5px}.icon-button,.appearance-open{width:32px;height:32px}.icon-button svg,.appearance-open svg{width:17px;height:17px}.demo-badge{display:none}.game-main{padding:19px 15px 16px}h1{font-size:31px}.game-layout{gap:16px}.wheel-stage{max-width:310px}.play-panel{padding:17px 17px 14px}.appearance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-dialog{padding:20px}.dialog-header h2{font-size:24px}.appearance-tabs button{font-size:10px}.cost-options button{height:40px}}
@media(max-width:330px){.game-header{padding:9px 10px}.brand>span{font-size:17px}.brand img{width:31px}.header-balance>.coin-icon{display:none}.header-balance strong{font-size:16px}.header-actions{gap:4px}.icon-button,.appearance-open{width:30px;height:30px}h1{font-size:28px}.game-main{padding-left:13px;padding-right:13px}.wheel-stage{max-width:278px}.play-panel{padding:16px 14px}.result-caption{font-size:8px}.play-note{font-size:7px}.rules-open{font-size:8px}}
@media(min-width:761px) and (max-height:760px){.game-header{padding-top:13px;padding-bottom:13px;min-height:73px}.game-main{padding-top:21px;padding-bottom:17px}.game-heading .eyebrow{margin-bottom:6px}h1{font-size:37px}.heading-caption{margin-top:7px}.game-layout{max-width:965px;grid-template-columns:minmax(0,1.3fr) minmax(310px,1fr);margin-top:9px;gap:45px}.wheel-stage{max-width:460px;justify-self:center}.play-panel{padding-top:20px}.result-area{padding:19px 0}.play-note{margin-bottom:16px}.game-footer{padding-top:13px;padding-bottom:17px}}
@media(max-height:550px) and (min-width:600px) and (orientation:landscape){.game-header{padding:9px 22px;min-height:60px}.brand img{height:30px;width:43px}.game-main{padding:13px 25px}.game-heading{display:none}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,.9fr);gap:25px;margin-top:0;max-width:820px}.wheel-stage{max-width:min(300px,70vh);padding-top:8px}.wheel-caption{margin-top:12px}.wheel-caption p{font-size:7px}.play-panel{padding:14px 17px 12px}.panel-heading{display:none}.result-area{padding:0 0 12px}.last-result{font-size:24px;min-height:28px}.game-status{font-size:9px}.result-caption{display:none}.cost-options{margin-bottom:10px}.cost-options button{height:35px}.spin-button{min-height:43px;font-size:12px}.play-note{margin:9px 0 12px;font-size:7px}.recent-heading{padding-top:10px}.history-list{margin:8px 0 10px;min-height:25px}.history-list li{padding:5px 7px;font-size:9px}.game-footer{padding:9px 25px 13px;flex-direction:row}.game-footer>span{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.wheel-disc{will-change:auto}}

/* Runtime-rendered results and independently selectable wheel previews. */
body.dialog-open{overflow:hidden}
.history-list{display:block;min-height:32px;margin-top:9px;margin-bottom:13px}
.history-list .history-row,.full-history .history-row{display:flex;align-items:center;gap:10px;min-width:0;text-align:left;background:none;border:0;border-bottom:1px solid #b79bc018;border-radius:0;padding:8px 0;font-weight:400}
.history-list .history-row:last-child,.full-history .history-row:last-child{border-bottom:0}
.history-multiplier{display:grid;place-items:center;flex-shrink:0;min-width:37px;height:29px;padding:0 7px;color:#b3a0c2;font-size:12px;font-weight:650;background:#2a2036;border:1px solid #71528344;border-radius:6px;font-variant-numeric:tabular-nums}
.history-multiplier.positive{color:var(--accent-light);background:#9c743122;border-color:#c6a05d55}
.history-detail{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:9px;color:#bcaec5;font-size:10px;line-height:1.4}
.history-detail small{font-size:8px;color:#8e7d99;white-space:nowrap}
.history-net{min-width:30px;text-align:right;font-size:11px;font-weight:600;color:#aa98b8;font-variant-numeric:tabular-nums}
.history-net.positive{color:var(--accent)}
.full-history .history-row{padding:12px 0;gap:13px}
.full-history .history-multiplier{min-width:43px;height:37px;font-size:14px}
.full-history .history-detail{font-size:12px}
.full-history .history-detail small{font-size:10px}
.full-history .history-net{font-size:14px}
.history-list .history-empty{margin:0;line-height:1.6}
.rule-multiplier{display:flex;align-items:center;gap:10px}
.rule-multiplier strong{font-size:16px;color:var(--accent-light);min-width:30px}
.rule-multiplier span{font-size:11px;color:#bbaaC6}
.wheel-number.sector-even,.wheel-number.sector-odd{fill:var(--sector-ink)}
body[data-skin=portal] .wheel-number.sector-odd{fill:#3a203d}
body[data-skin=royal] .wheel-number.sector-odd{fill:#48243a}
body[data-skin=deco] .wheel-number.sector-odd{fill:#292039}
body[data-skin=comic] .wheel-number.sector-odd{fill:#261728}
.wheel-sector.landed{filter:brightness(1.25);stroke:var(--accent-light);stroke-width:5}
.skin-preview{position:relative;isolation:isolate;--mini-a:#372046;--mini-b:#e8c58a;--mini-rim:#e5c37a;--mini-glow:#9854ce;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--mini-glow) 35%,#110a1b),#0e0914 80%)}
.skin-preview:before{content:"";position:absolute;width:74%;aspect-ratio:1;border-radius:50%;background:repeating-conic-gradient(from -15deg,var(--mini-a) 0deg 30deg,var(--mini-b) 30deg 60deg);border:5px solid var(--mini-rim);outline:1px solid #0c0710;box-shadow:0 0 0 2px color-mix(in srgb,var(--mini-rim) 60%,#160d1c),0 4px 12px #0009,inset 0 0 0 2px #0005}
.skin-preview:after{content:"";position:absolute;left:calc(50% - 5px);top:8%;width:10px;height:15px;background:linear-gradient(100deg,#fff4cb,var(--mini-rim));clip-path:polygon(0 0,100% 0,50% 100%);filter:drop-shadow(0 1px 2px #0009)}
.skin-preview img{position:relative;width:25%;height:auto;aspect-ratio:1;object-fit:contain;border:2px solid var(--mini-rim);border-radius:50%;background:#000;box-shadow:0 2px 6px #000b;z-index:1}
.skin-preview--royal{--mini-a:#4b1731;--mini-b:#ead49c;--mini-rim:#b28b42;--mini-glow:#a56d38}
.skin-preview--orbital{--mini-a:#171e40;--mini-b:#65468c;--mini-rim:#9baaca;--mini-glow:#824afa}
.skin-preview--crimson{--mini-a:#270c16;--mini-b:#ad253f;--mini-rim:#c29d5c;--mini-glow:#b32648}
.skin-preview--deco{--mini-a:#1d1631;--mini-b:#e5d8b3;--mini-rim:#d4bd7d;--mini-glow:#8c6a9e}
.skin-preview--amethyst{--mini-a:#281440;--mini-b:#8151aa;--mini-rim:#a68cc4;--mini-glow:#bc67ee}
.skin-preview--phoenix{--mini-a:#3e1915;--mini-b:#bf6a35;--mini-rim:#db9459;--mini-glow:#e88036}
.skin-preview--emerald{--mini-a:#0e312a;--mini-b:#568879;--mini-rim:#bcb47b;--mini-glow:#35b28b}
.skin-preview--comic{--mini-a:#df253b;--mini-b:#f2e6ce;--mini-rim:#f7d43b;--mini-glow:#e05449}
.skin-preview--lunar{--mini-a:#152344;--mini-b:#71819e;--mini-rim:#cdd5e7;--mini-glow:#8695d4}
.skin-preview--deco:before{box-shadow:0 0 0 2px #1e1528,0 0 0 3px var(--mini-rim),0 4px 12px #0008,inset 0 0 0 2px #312538}
.skin-preview--orbital:before,.skin-preview--amethyst:before{box-shadow:0 0 0 2px #34253e,0 0 14px color-mix(in srgb,var(--mini-glow) 65%,transparent),inset 0 0 0 2px var(--mini-glow)}
.skin-preview--comic:before{border-width:6px;outline:2px solid #17111d;box-shadow:4px 4px 0 #100b16,inset 0 0 0 2px #17111d}
.appearance-option>.appearance-description{padding:0 10px 11px;margin-top:-3px;font-size:9px;line-height:1.5;min-height:35px}
#sound-toggle[aria-pressed=false]{position:relative}
#sound-toggle[aria-pressed=false]:after{content:"";position:absolute;width:20px;height:1.5px;background:currentColor;transform:rotate(-48deg);box-shadow:0 0 0 1.5px #21182b}
@media(max-width:760px){.history-list .history-row{padding:6px 0;gap:8px}.history-list .history-multiplier{height:26px;min-width:34px;font-size:11px}.history-list .history-detail{font-size:9px}.history-list .history-detail small{font-size:7px}.history-list .history-net{font-size:10px}.appearance-option>.appearance-description{font-size:8px;padding:0 8px 9px;min-height:32px}.skin-preview:before{border-width:4px}.skin-preview img{border-width:1.5px}.full-history .history-detail{display:flex;align-items:flex-start;flex-direction:column;gap:3px}.full-history .history-detail small{font-size:9px}}
@media(max-height:550px) and (min-width:600px) and (orientation:landscape){.history-list .history-row{padding:4px 0}.history-list .history-row:nth-child(n+3){display:none}.history-list .history-multiplier{height:23px;font-size:10px}.history-list .history-detail{font-size:9px}.history-list .history-detail small{font-size:7px}.history-list .history-net{font-size:10px}.history-list{margin:7px 0 9px}}
.wheel-disc{transform-origin:50% 50%;transform-box:border-box;backface-visibility:hidden}
@media(max-width:760px) and (orientation:portrait){
  :root{--scene:url('/fortune/assets/bg-portal-mobile.webp')}
  .scene{background-position:50% 50%;opacity:1;transform:none}
  .scene-shade{background:linear-gradient(180deg,rgba(5,3,10,.18),rgba(6,3,12,.02) 30%,rgba(6,3,12,.08) 66%,rgba(8,5,14,.3))}
  .game-header{background:rgba(9,6,14,.62)}
  .game-heading{text-shadow:0 2px 12px #000,0 1px 3px #000}
  .game-heading .eyebrow,.heading-caption{color:#e5d9ee}
  .game-main{padding-top:20px}
  .wheel-stage{max-width:290px}
  .wheel-aura{opacity:.35}
  .wheel-caption p{color:#e8dcec;text-shadow:0 1px 4px #000}
  .play-panel{background:linear-gradient(145deg,rgba(35,21,47,.85),rgba(12,8,21,.92));backdrop-filter:blur(6px)}
  .game-footer{background:rgba(8,5,14,.55)}
}

.header-balance #balance-owner{display:block;max-width:14ch;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.account-login{text-decoration:none;justify-content:center}
body[data-player=guest] .account-login{background:transparent;box-shadow:none;color:var(--accent-light);font-size:13px;min-height:36px;margin-top:4px}

/* Two in-game balances share the compact account header. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.header-balance {
  display: flex;
  flex-wrap: wrap;
  width: max-content;
  max-width: 25rem;
  min-width: 0;
  gap: 3px 14px;
}
.wallet-owner {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.wallet-owner small { margin: 0; }
.wallet-owner .demo-badge { margin: 0; padding: 2px 4px; }
.wallet-amount { display: inline-flex; align-items: center; gap: 5px; }
.wallet-amount .coin-icon { width: 22px; height: 22px; color: var(--accent); }
.wallet-stars { color: #c8ebff; }
.star-icon { color: #c8ebff; font-size: 20px; line-height: 1; }
.wallet-oko { color: #ffdb84; }
.wallet-oko-name { font-size: 9px; font-weight: 650; letter-spacing: .04em; }
.wallet-oko img { width: 26px; height: 18px; object-fit: contain; mix-blend-mode: screen; }
.wheel-sector[data-kind="oko"] { fill: #271c11; stroke: #dfab4b; stroke-width: 2; }
.wheel-sector[data-kind="stars"] { fill: #234569; }
.sector-eye { mix-blend-mode: screen; pointer-events: none; }
.wheel-number[data-kind="oko"] { fill: #ffda83; font: 700 24px Georgia, serif; letter-spacing: 1px; }
.wheel-number[data-kind="stars"] { fill: #e5f7ff; font: 700 36px "Segoe UI", sans-serif; }
.history-detail { flex-wrap: wrap; gap: 2px 7px; }
.rule-multiplier { flex-wrap: wrap; gap: 3px 7px; }
@media (max-width: 760px) {
  .header-actions { flex-shrink: 0; }
  .header-balance { gap: 3px 10px; }
  .wallet-amount { gap: 3px; }
  .wallet-amount .coin-icon { width: 18px; height: 18px; }
  .star-icon { font-size: 16px; }
}
@media (max-width: 600px) {
  .game-header { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-balance {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    gap: 5px 12px;
    justify-content: flex-start;
  }
  .wallet-owner { flex: 1 1 auto; }
}
