.game-scene{position:relative;isolation:isolate;margin:25px 0 18px;min-height:250px;display:flow-root}.game-result{position:absolute;z-index:5;left:4%;right:4%;top:50%;transform:translateY(-50%);padding:20px 16px;background:linear-gradient(120deg,#fff9eabd,#e8dab4b3);border:1px solid #fff7ddd9;border-radius:18px;box-shadow:0 8px 30px #172b3229;color:#334331;pointer-events:none;animation:result-in .45s ease-out}.game-result strong{display:block;font-size:34px;color:#715220;text-shadow:0 1px 2px #fff}.game-result span,.game-result small{display:block;margin-top:6px;font-size:13px}.result-actions{margin-top:22px}.wheel-arena{width:260px;height:280px;max-width:100%;position:relative;margin:auto;padding-top:18px}.wheel-pointer{position:absolute;z-index:3;top:0;left:50%;transform:translateX(-50%);font-size:39px;color:#a35021;line-height:1;text-shadow:0 2px 0 #fff1ca,0 4px 5px #0004}.prize-wheel{width:250px;height:250px;max-width:100%;border:8px solid #d6b46e;border-radius:50%;background:conic-gradient(#d8b56d 0 90deg,#324d3b 90deg 180deg,#d8b56d 180deg 270deg,#324d3b 270deg);position:relative;box-shadow:0 0 0 2px #94703d,0 8px 20px #283e3226}.prize-wheel>span{position:absolute;inset:0;transform:rotate(var(--angle));display:flex;justify-content:center;padding-top:18px}.prize-wheel>span b{font-size:30px;color:#fff7e6;line-height:1;text-shadow:0 1px 2px #0005}.prize-wheel i{position:absolute;inset:calc(50% - 25px);width:50px;height:50px;display:grid;place-items:center;border-radius:50%;background:#fff0c4;color:#917036;font-style:normal;font-size:30px;box-shadow:0 2px 6px #0004}.ball-orbit{position:absolute;inset:30px;border-radius:50%;pointer-events:none}.scratch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:15px 3px}.scratch-tile{position:relative;aspect-ratio:4/3;border:2px solid #cbb278;border-radius:12px;overflow:hidden;background:#fff3d2;min-width:0}.scratch-sum{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.scratch-sum strong{font-size:35px;color:#7b5b28}.scratch-sum small{font-size:11px;color:#836f45}.scratch-tile canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}.scratch-key{position:absolute;left:0;right:0;bottom:0;opacity:0;width:100%;height:30px;padding:4px;font-size:11px;border-radius:0}.scratch-key:focus-visible{opacity:1}.scratch-tile.chosen{border:3px solid #b48325;box-shadow:0 0 0 2px #efd58d;background:#ffedaf}.chosen-label{position:absolute;top:0;left:0;right:0;background:#ac8134;color:white;font-size:10px}.revealing-scratch .scratch-tile{animation:tile-reveal .5s both;animation-delay:var(--delay)}.game-scene[data-game=scratch] .game-result{top:auto;bottom:4px;transform:none;padding:10px 12px}.game-scene[data-game=scratch].is-finished{padding-bottom:95px}.shell-arena{height:205px;position:relative;margin:30px auto 15px;max-width:380px;perspective:800px}.shell-card{position:absolute;left:calc(var(--slot) * 33.333% + 2%);width:29.33%;height:160px;top:18px;padding:0;background:transparent!important;border:0;border-radius:12px;transition:left .45s cubic-bezier(.4,0,.2,1),transform .35s;opacity:1!important;box-shadow:none!important}.shell-inner{display:block;width:100%;height:100%;transform-style:preserve-3d;transition:transform .4s}.shell-back,.shell-front{position:absolute;inset:0;backface-visibility:hidden;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column;border:4px double #dec68b}.shell-back{background:repeating-linear-gradient(45deg,#304c3a 0 8px,#395b44 8px 10px);color:#eacb7b;font-size:40px}.shell-front{transform:rotateY(180deg);background:#f7e7bc;color:#80612a}.shell-front b{font-size:38px}.shell-front small{font-size:12px}.show-prizes .shell-inner,.finished .shell-inner{transform:rotateY(180deg)}.shell-card:not(:disabled):hover{transform:translateY(-9px)}.shell-card.picked{outline:3px solid #c59730;outline-offset:4px;transform:translateY(-6px)}.game-scene[data-game=shell] .game-result{top:65%}.shell-status{font-size:13px;min-height:22px}.game-stage .game-scene button:disabled{opacity:1}
@keyframes result-in{from{opacity:0}to{opacity:1}}@keyframes tile-reveal{from{opacity:.2;transform:rotateY(75deg) translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:400px){.wheel-arena{width:225px;height:250px}.prize-wheel{width:225px;height:225px}.game-result strong{font-size:28px}.scratch-grid{gap:7px}.scratch-sum strong{font-size:27px}.shell-card{height:130px}.shell-arena{height:170px}.game-result{left:0;right:0}.chosen-label{font-size:9px}}
@media(prefers-reduced-motion:reduce){.game-result,.revealing-scratch .scratch-tile{animation:none}.shell-card,.shell-inner{transition:none}}

.prize-wheel{background:repeating-conic-gradient(#d8b56d 0deg 45deg,#324d3b 45deg 90deg)}.prize-wheel>span b{font-size:25px}.plinko-board{max-width:350px;margin:auto}.plinko-board svg{display:block;width:100%;height:auto}.game-scene[data-game=plinko] .game-result{top:42%}

.scratch-key{pointer-events:none}.scratch-key:focus-visible{pointer-events:auto}

.game-choice{width:100%;display:flex;gap:12px;align-items:center;text-align:left;padding:15px 10px;margin:6px 0;background:#f2ebdb;color:#324a38;border:1px solid #dfd3b7;border-radius:12px}.game-choice small{display:block;font-size:11px;margin-top:5px;font-weight:400}.game-choice.current{background:#e5e2cb;border-color:#ae8a43}.game-choice>span:last-child{margin-left:auto}.plinko-start-label{display:grid;gap:8px;text-align:left;margin:18px 0}.plinko-start-label input{width:100%;padding:0;min-height:35px;accent-color:#a88039}.plinko-start-label span{font-size:12px;font-weight:400}

.game-stats{margin-top:24px;text-align:left}.game-stats>p{color:#64715e;font-size:14px}.game-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:20px 0}.game-stats article{border:1px solid #d8caad;border-radius:13px;background:#f6edda;padding:17px}.game-stats h3{font-size:16px;min-height:40px;margin:0 0 14px}.game-stats h3 span{color:#a37d36}.game-stats dl{margin:0;display:grid;gap:16px}.game-stats dt{font-size:12px;color:#68745e}.game-stats dd{margin:5px 0 0;font-weight:700;font-size:24px;color:#385239}.game-stats small{color:#69705f}

.shell-curtain{position:absolute;inset:0;z-index:4;background:#294735;border:2px solid #b4985e;border-radius:15px;color:#f8e7bd;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:12px}.shell-curtain[hidden]{display:none}.shell-curtain span{font-size:12px}.member-coins{margin:25px 0;padding:20px;background:#f3ebd9;border:1px solid #d5c299;border-radius:16px}.member-coins>header{display:flex;gap:15px;align-items:center;justify-content:space-between;flex-wrap:wrap}.member-game-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:18px 0}.member-game-stats article{padding:13px;background:#fffbf0;border:1px solid #ddceb0;border-radius:10px}.member-game-stats strong{font-size:13px}.member-game-stats dl{display:grid;gap:9px;margin-bottom:0}.member-game-stats dt{font-size:11px;color:#6b725e}.member-game-stats dd{margin:3px 0;font-weight:bold}.coin-ledger-row{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-top:1px solid #d9cfb8}.coin-ledger-row small{display:block;font-size:11px;margin-top:6px;color:#6a705f}.coin-ledger-row>div:last-child{text-align:right;flex-shrink:0}@media(max-width:520px){.member-coins{padding:13px}.coin-ledger-row{flex-direction:column;gap:7px}.coin-ledger-row>div:last-child{text-align:left}}

.slot-machine{--reel-height:104px;position:relative;max-width:460px;margin:0 auto;padding:22px 20px 16px;border:5px solid #bb934d;border-radius:32px 32px 20px 20px;background:linear-gradient(145deg,#395c45,#182f24);box-shadow:inset 0 0 0 3px #edd59c,0 12px 22px #1b302533;color:#fff1c8}
.slot-marquee{display:flex;align-items:center;justify-content:space-around;gap:8px;font-size:12px;font-weight:800;letter-spacing:1.8px;padding:3px 0 22px;color:#ffe2a0;text-shadow:0 0 10px #eabe6470}.slot-marquee span{font-size:23px}
.slot-windows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:9px;border-radius:14px;background:#111f19;border:2px solid #d0af6c;box-shadow:inset 0 2px 6px #0008}
.slot-window{height:var(--reel-height);overflow:hidden;position:relative;border-radius:7px;background:#fff8e4;box-shadow:inset 0 0 8px #37240955}.slot-window:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(#44311060,transparent 28%,transparent 72%,#44311060)}
.slot-symbol{height:var(--reel-height);display:flex;align-items:center;justify-content:center;font-size:54px;line-height:1}.slot-strip{will-change:transform}.slot-window.landed{box-shadow:0 0 14px #ffdf7a88}.slot-payline{font-size:12px;letter-spacing:2px;color:#dcbc76;margin:10px 0}.slot-payouts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;font-size:11px;text-align:center}.slot-payouts b{display:block;color:#ffdf8d;font-size:15px;margin:6px 0}.slot-tray{height:16px;width:58%;margin:16px auto 0;border:2px solid #a6874c;border-radius:5px 5px 12px 12px;background:#102218;box-shadow:inset 0 5px 7px #0009}.slot-running .slot-marquee span{animation:slot-light .45s alternate infinite}.slot-running .slot-marquee span:last-child{animation-delay:.22s}
@keyframes slot-light{to{color:#fff;filter:drop-shadow(0 0 7px #ffce59)}}
.game-scene[data-game=slots].is-finished{padding-bottom:100px}.game-scene[data-game=slots] .game-result{top:auto;bottom:0;transform:none;padding:12px;background:#fff4d9de}.game-scene[data-game=slots] .game-result strong{font-size:28px}
@media(max-width:400px){.slot-machine{--reel-height:80px;padding:18px 10px 12px;border-width:4px}.slot-symbol{font-size:39px}.slot-marquee{font-size:10px;letter-spacing:1px}.slot-windows{gap:5px;padding:6px}.slot-payouts{font-size:10px}.slot-payouts b{font-size:13px}}
@media(prefers-reduced-motion:reduce){.slot-running .slot-marquee span{animation:none}}

.game-icon{display:inline-block;width:1em;height:1em;vertical-align:middle;flex-shrink:0}.game-intro-icon .game-icon{width:1em;height:1em}.path-icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border:1px solid #d2bd91;border-radius:12px;background:#f8f0dd;font-size:29px;color:#937132}.game-stats h3 .game-icon{font-size:24px;margin-right:5px}.game-choice{position:relative;isolation:isolate;overflow:hidden;min-height:83px}.game-choice>span:nth-child(2){min-width:0;overflow-wrap:anywhere}.coin-content .game-choice.is-locked:disabled{opacity:1;cursor:not-allowed;padding-right:58px}.game-choice.is-locked>.path-icon,.game-choice.is-locked>span:nth-child(2){opacity:.55}.game-choice>.game-lock-overlay{position:absolute;inset:0;z-index:1;margin:0;pointer-events:none;background:linear-gradient(100deg,#e9e4d20a,#d8d4c63d);display:flex;align-items:center;justify-content:flex-end;padding:10px}.game-lock-overlay>span{width:40px;height:44px;display:grid;place-items:center;background:#f7f1e299;border:1px solid #a79b744d;border-radius:12px;color:#756b50}.game-lock-overlay .game-icon{width:28px;height:28px;opacity:.8}

.coin-token{display:inline-flex;width:1.35em;height:1.35em;vertical-align:middle;flex-shrink:0;perspective:100px}.coin-token .slot-coin{width:100%;height:100%;animation:coin-turn 5s linear infinite;transform-origin:center}.purse>.coin-token{width:44px;height:44px}.coin-balance>.coin-token{width:44px;height:44px}.slot-symbol .slot-coin{animation:none}.ranking-podium .ranking-name{display:block;overflow-wrap:anywhere;font-size:13px;font-weight:600;color:#42523b;max-width:100%}.ranking-podium li{min-width:0}
@keyframes coin-turn{0%,25%{transform:rotateY(0)}75%,100%{transform:rotateY(360deg)}}
@media(prefers-reduced-motion:reduce){.coin-token .slot-coin,.slot-symbol .slot-coin{animation:none}}

.ranking-podium li>.ranking-name{white-space:normal;flex:1;background:transparent;color:#42523b;padding:0;min-width:0}.ranking-podium li>strong{flex-shrink:0}

.ranking-podium li{display:grid;grid-template-columns:48px minmax(0,1fr) auto;column-gap:16px;padding:10px 4px}.ranking-podium li>.ranking-name{text-align:center;padding:0 8px}.ranking-podium li>strong{text-align:right}.ranking-podium li>span:first-child{text-align:center}
.coin-flight-layer{position:fixed;inset:0;z-index:1500;pointer-events:none;overflow:hidden}.flying-coin{position:absolute;width:30px;height:30px;will-change:transform,opacity;filter:drop-shadow(0 3px 3px #4e351c40)}.flying-coin .slot-coin{width:100%;height:100%;animation:coin-turn .7s linear infinite}.coin-balance.coin-collecting{position:fixed;top:calc(14px + env(safe-area-inset-top,0px));right:14px;z-index:1499;background:#294333;border:1px solid #d9bc70;border-radius:18px;padding:12px 18px;box-shadow:0 8px 28px #172d3540;gap:8px}.coin-balance.coin-collecting strong{font-size:30px}.coin-balance.coin-collecting>.coin-token{width:30px;height:30px}
@media(max-width:400px){.ranking-podium li{grid-template-columns:43px minmax(0,1fr) auto;column-gap:8px}.ranking-podium li>.ranking-name{padding:0 5px}}
@media(prefers-reduced-motion:reduce){.flying-coin .slot-coin{animation:none}}

.ticket-count .ticket-total{display:flex;align-items:center;gap:10px}.ticket-count .ticket-icon{display:inline-flex;width:42px;height:30px;flex-shrink:0}.ticket-icon svg,.flying-ticket svg{width:100%;height:100%;display:block}.flying-ticket{position:absolute;width:52px;height:36px;will-change:transform,opacity;filter:drop-shadow(0 4px 4px #49301c40)}.ticket-count.ticket-sending{position:fixed;top:calc(14px + env(safe-area-inset-top,0px));right:14px;z-index:1499;background:#294333;border:1px solid #d9bc70;border-radius:16px;padding:12px 18px;box-shadow:0 8px 28px #172d3540;color:#fff4d9;gap:4px}

/* Material rim on the level badge; the dark center keeps every number legible. */
.profile-card .level-circle{width:46px;height:46px;border:5px solid transparent;background:linear-gradient(#2c4035,#1b3026) padding-box,var(--level-rim) border-box;color:#fff7e8;box-shadow:0 2px 6px #13271b55,inset 0 0 0 1px #ffffff30;outline:1px solid #79684d80;font-size:17px;font-variant-numeric:tabular-nums;text-shadow:0 1px 2px #0008;z-index:1}
.level-wood{--level-rim:repeating-linear-gradient(24deg,#644023 0 2px,#ac7740 3px 5px,#d2a06a 6px 7px,#82532c 8px 10px)}
.level-iron{--level-rim:linear-gradient(135deg,#343b41 0%,#8a9296 24%,#555f65 42%,#bbc0c1 49%,#515b60 59%,#343c43 82%,#9ba2a4 100%)}
.level-bronze{--level-rim:linear-gradient(135deg,#6c381d 0%,#c68a50 25%,#f3c48a 43%,#9e572c 57%,#754021 76%,#dda367 100%)}
.level-silver{--level-rim:linear-gradient(135deg,#767f89 0%,#d4dbe1 22%,#fff 42%,#a1abb5 54%,#7d8793 74%,#edf0f3 100%)}
.level-gold{--level-rim:linear-gradient(135deg,#997022 0%,#e4b94e 22%,#fff0a5 42%,#c48f20 56%,#a77a25 76%,#ffe391 100%)}
.level-platinum{--level-rim:linear-gradient(135deg,#6a9398 0%,#ccede7 21%,#f8ffff 39%,#9dbdbb 52%,#dbeee9 65%,#7faaa9 82%,#effff9 100%)}
.level-diamond{--level-rim:conic-gradient(from 18deg,#faffff 0deg 35deg,#86cce7 35deg 70deg,#d9edff 70deg 108deg,#b3a8e8 108deg 145deg,#ffffff 145deg 180deg,#99e6ed 180deg 218deg,#dbeeff 218deg 252deg,#89b6e1 252deg 288deg,#e4d9ff 288deg 324deg,#faffff 324deg 360deg)}
.profile-card .level-diamond{outline-color:#b5d6e6;box-shadow:0 0 9px #b5e6ed88,0 2px 6px #13271b55,inset 0 0 0 1px #e9faff70}

.profile-card .avatar-wrap{isolation:isolate}.profile-card .avatar-wrap>.avatar{position:relative;z-index:1;display:block}.profile-card .avatar-wrap>.level-circle{z-index:3}.profile-flames{position:absolute;inset:-22px;width:calc(100% + 44px);height:calc(100% + 44px);overflow:visible;pointer-events:none;z-index:0;opacity:var(--fire-opacity);filter:drop-shadow(0 0 var(--fire-glow) var(--fire-color))}.flame-ring{fill:none;stroke:var(--fire-color);stroke-width:5}.flame-tongue{fill:var(--fire-fill);transform-box:fill-box;transform-origin:center bottom;animation:profile-flame-flicker var(--fire-speed) ease-in-out infinite alternate}.flame-heart{fill:#ffcf55;opacity:var(--fire-heart);transform-box:fill-box;transform-origin:center bottom;animation:profile-flame-flicker calc(var(--fire-speed) * .8) ease-in-out infinite alternate-reverse}.profile-flames g:nth-of-type(3n) path{animation-delay:-.35s}.profile-flames g:nth-of-type(3n + 1) path{animation-delay:-.8s}.profile-flames g:nth-of-type(4n) path{animation-delay:-1.1s}
.podium-fire-1{--fire-color:#ff3b00;--fire-fill:url(#profile-fire-gradient);--fire-opacity:1;--fire-glow:7px;--fire-heart:1;--fire-speed:.7s;--fire-low:.78;--fire-high:1.13}.podium-fire-2{--fire-color:#db291a;--fire-fill:#eb3921;--fire-opacity:.78;--fire-glow:4px;--fire-heart:.3;--fire-speed:1s;--fire-low:.5;--fire-high:.78}.podium-fire-3{--fire-color:#c64432;--fire-fill:#d94b35;--fire-opacity:.55;--fire-glow:2px;--fire-heart:.12;--fire-speed:1.4s;--fire-low:.32;--fire-high:.52}
.profile-card .podium-fire-1>.avatar{border-color:#ffd393;box-shadow:0 0 0 2px #ff5b12,0 0 15px #ff3d0088}.profile-card .podium-fire-2>.avatar{border-color:#eaa69a;box-shadow:0 0 0 2px #d94329,0 0 8px #e1413455}.profile-card .podium-fire-3>.avatar{border-color:#e5b8ab;box-shadow:0 0 0 1px #c15d49,0 0 5px #cc514233}.podium-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@keyframes profile-flame-flicker{from{transform:scaleX(.87) scaleY(var(--fire-low))}to{transform:scaleX(1.05) scaleY(var(--fire-high))}}
@media(prefers-reduced-motion:reduce){.profile-flames .flame-tongue,.profile-flames .flame-heart{animation:none;transform:scaleY(var(--fire-low))}}
