.browser-play-page {
    --play-panel: rgba(10, 9, 35, .94);
    --play-panel-2: rgba(27, 13, 67, .94);
    --play-line: rgba(177, 105, 255, .42);
    --reel-cell: 82px;
    margin-block: 26px 58px;
}

body.play-modal-open { overflow: hidden; }
body.route-play { overflow-x: clip; }
.browser-play-page [hidden] { display: none !important; }
.browser-play-page button, .browser-play-page input { font: inherit; }
.browser-play-page button { min-width: 44px; min-height: 44px; }
.browser-play-page button:focus-visible, .browser-play-page input:focus-visible, .browser-play-page a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.play-noscript { padding: 18px; border: 1px solid #ffcb54; border-radius: 14px; background: #4c2508; color: white; text-align: center; }

.play-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(240px, 1fr); gap: 24px; align-items: start; }
.play-app {
    position: relative;
    overflow: clip;
    min-height: 760px;
    border: 1px solid var(--play-line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% -10%, rgba(125, 57, 255, .38), transparent 36%),
        linear-gradient(180deg, rgba(12, 17, 55, .98), rgba(5, 6, 24, .98));
    box-shadow: 0 28px 90px rgba(0, 0, 0, .48), inset 0 0 55px rgba(85, 39, 191, .12);
}

.play-topbar { position: sticky; z-index: 20; top: 0; display: flex; gap: 10px; align-items: center; min-height: 78px; padding: 10px 14px; border-bottom: 1px solid var(--play-line); background: rgba(4, 7, 27, .96); backdrop-filter: blur(18px); }
.play-back, .sound-toggle { flex: 0 0 46px; width: 46px; border: 1px solid rgba(255, 210, 77, .58); border-radius: 14px; background: linear-gradient(145deg, #261053, #0b163d); color: white; cursor: pointer; font-size: 1.75rem; font-weight: 900; }
.sound-toggle { color: var(--gold); font-size: 1.25rem; }
.sound-toggle[aria-pressed="false"] { color: #918aa6; }
.player-chip { display: flex; min-width: 0; gap: 10px; align-items: center; margin-right: auto; padding: 4px 8px 4px 4px; border: 0; border-radius: 15px; background: transparent; color: white; cursor: pointer; text-align: left; }
.player-chip:hover { background: rgba(122, 63, 255, .18); }
.player-avatar { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border: 2px solid var(--gold); border-radius: 50%; background: linear-gradient(145deg, var(--violet), #261261); box-shadow: 0 0 18px rgba(144, 77, 255, .35); font-weight: 950; }
.player-chip > span:last-child { min-width: 0; }
.player-chip strong, .player-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-chip strong { max-width: 180px; font-size: .92rem; }
.player-chip small { max-width: 180px; margin-top: 2px; color: #a9a3bb; font-size: .67rem; }
.play-wallet { display: flex; flex: 0 0 auto; gap: 8px; align-items: center; min-width: 150px; padding: 7px 13px; border: 1px solid #c89413; border-radius: 999px; background: linear-gradient(180deg, #17291f, #07150e); box-shadow: inset 0 0 18px rgba(43, 241, 119, .08); }
.coin-medal { display: grid; width: 34px; height: 34px; place-items: center; border: 3px solid #ffec8a; border-radius: 50%; background: linear-gradient(145deg, #fff361, #d78700); color: #7e4e00; box-shadow: 0 0 15px rgba(255, 208, 45, .38); }
.play-wallet output { display: block; color: var(--gold); font-size: 1.1rem; font-weight: 950; line-height: 1; }
.play-wallet small { display: block; margin-top: 3px; color: #8ce7ab; font-size: .54rem; font-weight: 900; letter-spacing: .1em; }

.free-only-ribbon { display: flex; position: relative; z-index: 4; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 7px 12px; border-bottom: 1px solid rgba(70, 240, 132, .25); background: linear-gradient(90deg, #07331d, #0c5c32, #07331d); color: #dfffea; font-size: .67rem; font-weight: 850; letter-spacing: .04em; text-align: center; }
.free-only-ribbon strong { color: #83ffad; }
.free-only-ribbon span::before { content: "•"; margin-right: 10px; color: var(--gold); }
.play-screen { position: relative; padding: 21px 22px 88px; }

.lobby-welcome { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.lobby-welcome p { margin: 0 0 4px; color: var(--violet-soft); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.lobby-welcome h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1; letter-spacing: -.04em; }
.lobby-welcome span { display: block; margin-top: 8px; color: #bcb6ca; font-size: .82rem; }
.lobby-welcome > b { padding: 8px 12px; border: 1px solid var(--gold); border-radius: 10px; color: var(--gold); font-size: .78rem; }
.lobby-profile { margin: 0 0 16px; padding: 14px; border: 1px solid rgba(92, 228, 159, .44); border-radius: 16px; background: linear-gradient(135deg, rgba(9, 79, 52, .32), rgba(28, 14, 66, .72)); box-shadow: inset 0 0 24px rgba(52, 222, 132, .06); }
.lobby-profile-head { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.lobby-profile-avatar { display: grid; width: 46px; height: 46px; place-items: center; border: 2px solid #8fffb5; border-radius: 50%; background: linear-gradient(145deg, #743fff, #184e9e); color: white; font-weight: 950; }
.lobby-profile-head > div { min-width: 0; }
.lobby-profile-head small, .lobby-profile-head strong, .lobby-profile-head span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lobby-profile-head small { color: #82f5aa; font-size: .55rem; font-weight: 950; letter-spacing: .1em; }
.lobby-profile-head strong { margin-top: 2px; color: white; font-size: .94rem; }
.lobby-profile-head span { margin-top: 2px; color: #b9b3c6; font-size: .64rem; }
.lobby-profile-head > b { padding: 5px 8px; border: 1px solid rgba(100, 242, 151, .45); border-radius: 999px; background: rgba(9, 82, 45, .35); color: #9cffbe; font-size: .58rem; white-space: nowrap; }
.lobby-profile dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 12px 0 0; }
.lobby-profile dl > div { min-width: 0; padding: 8px; border: 1px solid rgba(160, 99, 232, .28); border-radius: 9px; background: rgba(4, 5, 22, .4); }
.lobby-profile dt { color: #9e98ad; font-size: .52rem; font-weight: 850; text-transform: uppercase; }
.lobby-profile dd { overflow: hidden; margin: 4px 0 0; color: var(--gold); font-size: .69rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.lobby-profile dd button { min-width: 0; min-height: 0; margin-left: 3px; padding: 0; border: 0; background: transparent; color: #a9d5ff; font-size: .58rem; text-decoration: underline; }
.edit-member-profile { width: 100%; min-height: 38px !important; margin-top: 9px; border: 1px solid rgba(178, 114, 250, .44); border-radius: 9px; background: rgba(74, 33, 142, .3); color: #e9dfff; font-size: .68rem; font-weight: 850; }
.game-search { display: flex; gap: 10px; align-items: center; padding: 0 15px; border: 1px solid rgba(149, 91, 227, .55); border-radius: 13px; background: rgba(5, 8, 27, .82); color: var(--violet-soft); }
.game-search > span:first-child { font-size: 1.55rem; }
.game-search input { width: 100%; min-height: 48px; border: 0; outline: 0; background: transparent; color: white; }
.game-search input::placeholder { color: #88839a; }
.game-filters { display: flex; gap: 7px; margin: 13px 0 17px; padding-right: 22px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 0 calc(100% - 26px), transparent); }
.game-filters::-webkit-scrollbar { display: none; }
.game-filters button { flex: 0 0 auto; padding: 8px 15px; scroll-snap-align: start; border: 1px solid rgba(152, 87, 236, .5); border-radius: 999px; background: #110b30; color: #c5bfd1; cursor: pointer; font-size: .76rem; font-weight: 800; }
.game-filters button[aria-pressed="true"] { border-color: var(--gold); background: linear-gradient(145deg, var(--violet), #3b1687); color: white; box-shadow: 0 5px 18px rgba(122,63,255,.28); }
.browser-game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.browser-game-card { position: relative; overflow: hidden; padding: 0; border: 1px solid var(--game-accent); border-radius: 16px; background: #09091e; color: white; cursor: pointer; text-align: left; box-shadow: 0 11px 26px rgba(0, 0, 0, .34); transition: transform .2s ease, box-shadow .2s ease; }
.browser-game-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 24px color-mix(in srgb, var(--game-accent) 24%, transparent); pointer-events: none; }
.browser-game-card:hover { transform: translateY(-4px); box-shadow: 0 15px 34px rgba(0,0,0,.48), 0 0 17px color-mix(in srgb, var(--game-accent) 23%, transparent); }
.browser-game-card img { width: 100%; aspect-ratio: .82; object-fit: cover; object-position: center; }
.game-card-copy { display: grid; gap: 3px; padding: 9px 10px 11px; }
.game-card-copy small { overflow: hidden; color: var(--game-accent); font-size: .52rem; font-weight: 900; letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }
.game-card-copy strong { min-height: 35px; font-size: .79rem; line-height: 1.15; }
.game-card-copy > span { display: flex; align-items: center; justify-content: space-between; margin-top: 3px; color: #e9e5f3; font-size: .62rem; font-weight: 900; }
.game-card-copy b { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: var(--game-accent); color: #08091b; font-size: 1rem; }
.no-game-results { padding: 30px; border: 1px dashed var(--play-line); border-radius: 15px; color: #bdb7ca; text-align: center; }

.active-game-screen { padding-top: 16px; }
.active-game-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.active-game-head small { color: var(--violet-soft); font-size: .64rem; font-weight: 900; letter-spacing: .12em; }
.active-game-head h2 { margin: 2px 0 0; font-size: clamp(1.65rem, 4vw, 2.35rem); letter-spacing: -.03em; }
.win-meter { flex: 0 0 auto; min-width: 106px; padding: 8px 12px; border: 1px solid rgba(255, 210, 77, .58); border-radius: 12px; background: #121027; text-align: right; }
.win-meter span { display: block; color: #aca6ba; font-size: .55rem; font-weight: 900; }
.win-meter output { display: block; color: var(--gold); font-size: 1.2rem; font-weight: 950; }
.engine-panel { min-height: 575px; }
.game-status { display: block; min-height: 46px; margin: 12px 0; padding: 11px 14px; border: 1px solid rgba(156, 95, 238, .35); border-radius: 12px; background: rgba(7, 7, 28, .78); color: #d7d2df; font-size: .82rem; line-height: 1.4; text-align: center; }

.slot-jackpots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 9px; }
.slot-jackpots span { padding: 7px 8px; border: 1px solid rgba(255, 207, 69, .42); border-radius: 11px; background: linear-gradient(180deg, #3a1328, #140a28); text-align: center; }
.slot-jackpots small, .slot-jackpots b { display: block; }
.slot-jackpots small { color: #ffcf56; font-size: .58rem; font-weight: 950; }
.slot-jackpots b { margin-top: 2px; font-size: .78rem; }
.slot-machine { padding: 12px; border: 3px solid #28c8d7; border-radius: 20px; background: radial-gradient(circle at 50% 0, #153986, #080725 68%); box-shadow: inset 0 0 35px rgba(26, 197, 229, .2), 0 13px 35px rgba(0, 0, 0, .38); }
.slot-machine[data-theme="jungle-delight"] { border-color: #e3b529; background: radial-gradient(circle at 50% 0, #185d31, #090c21 70%); box-shadow: inset 0 0 38px rgba(39, 232, 106, .16), 0 13px 35px rgba(0,0,0,.38); }
.slot-machine[data-theme="fruit-spin"] { border-color: #ff4b75; background: radial-gradient(circle at 50% 0, #6f173d, #0b0828 70%); box-shadow: inset 0 0 38px rgba(255, 72, 124, .19), 0 13px 35px rgba(0,0,0,.38); }
.slot-reels { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; border: 2px solid rgba(136, 239, 255, .6); border-radius: 13px; background: #08071f; }
.reel-window { position: relative; overflow: hidden; height: calc(var(--reel-cell) * 3); border-right: 1px solid rgba(86, 202, 231, .35); background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.09), rgba(255,255,255,.02)); }
.reel-window:last-of-type { border-right: 0; }
.reel-strip { position: absolute; inset: 0 0 auto; will-change: transform; }
.reel-strip.is-spinning { transition-property: transform; transition-timing-function: cubic-bezier(.12, .7, .16, 1); }
.reel-symbol { display: grid; height: var(--reel-cell); place-items: center; border-bottom: 1px solid rgba(119, 116, 201, .24); font-size: clamp(1.75rem, 5vw, 3.15rem); line-height: 1; text-shadow: 0 5px 10px rgba(0,0,0,.45); }
.reel-symbol.is-win { position: relative; z-index: 2; border: 2px solid var(--gold); background: radial-gradient(circle, rgba(255, 225, 83, .42), transparent 72%); animation: symbol-win .7s ease-in-out infinite alternate; }
.payline-marker { position: absolute; z-index: 3; top: 50%; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 12px var(--gold); pointer-events: none; transform: translateY(-50%); }
@keyframes symbol-win { to { filter: brightness(1.35); transform: scale(1.08); } }

.game-control-bar { display: grid; grid-template-columns: 52px minmax(90px, 1fr) 52px minmax(116px, 1.4fr); gap: 9px; align-items: stretch; padding: 10px; border: 1px solid rgba(154, 95, 230, .45); border-radius: 17px; background: linear-gradient(180deg, #17103c, #090822); }
.game-control-bar > button:not(.round-action) { border: 1px solid #5eb7f3; border-radius: 12px; background: linear-gradient(145deg, #174a89, #102656); color: white; cursor: pointer; font-size: 1.6rem; font-weight: 950; }
.game-control-bar > div { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(0,0,0,.22); }
.game-control-bar small { color: #9e98b2; font-size: .55rem; font-weight: 900; }
.game-control-bar output { color: white; font-size: 1.2rem; font-weight: 950; }
.round-action, .dual-actions button, .triple-actions button { border: 2px solid #ffe77e; border-radius: 14px; background: linear-gradient(180deg, #38bf5f, #08702c); box-shadow: inset 0 0 0 2px rgba(0,0,0,.22), 0 5px 0 #704200; color: white; cursor: pointer; font-weight: 950; letter-spacing: .02em; }
.round-action:disabled, .dual-actions button:disabled, .triple-actions button:disabled, .game-control-bar button:disabled { cursor: not-allowed; filter: grayscale(.65); opacity: .55; }
.spin-action { border-radius: 999px; font-size: 1.08rem; }

.number-game-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 12px 15px; border: 1px solid #22cde1; border-radius: 16px; background: linear-gradient(135deg, #082e4d, #101041); }
.number-game-top small { display: block; color: #8feafa; font-size: .6rem; font-weight: 900; }
.number-game-top output { color: var(--gold); font-size: 2rem; font-weight: 950; }
.number-game-top p { margin: 0; color: #c8c3d5; font-size: .75rem; }
.bingo-head, .bingo-card { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bingo-head { margin-bottom: 6px; }
.bingo-head span { display: grid; min-height: 38px; place-items: center; border-radius: 9px; background: var(--violet); color: white; font-weight: 950; }
.bingo-card button { aspect-ratio: 1; border: 1px solid rgba(147, 89, 224, .5); border-radius: 10px; background: #121132; color: white; cursor: pointer; font-weight: 900; }
.bingo-card button.is-free, .bingo-card button.is-marked { border-color: var(--gold); background: radial-gradient(circle, #ffe86e, #a75200); color: #271300; box-shadow: 0 0 14px rgba(255, 212, 59, .38); }
.draw-history { display: flex; gap: 6px; min-height: 36px; margin-top: 10px; overflow: hidden; }
.draw-history span { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border: 1px solid #57ddff; border-radius: 50%; background: #122c5d; font-size: .72rem; font-weight: 900; }
.dual-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.dual-actions button, .triple-actions button { min-height: 54px; }
.dual-actions button:first-child, .triple-actions button:not(.round-action) { border-color: rgba(176, 109, 255, .6); background: linear-gradient(145deg, #321271, #17103f); box-shadow: none; }

.lottery-machine { position: relative; overflow: hidden; padding: 18px; border: 2px solid #eabf36; border-radius: 20px; background: radial-gradient(circle at 85% 15%, rgba(255, 193, 38, .25), transparent 24%), linear-gradient(145deg, #40114f, #0c0c2c); text-align: center; }
.lottery-machine p { margin: 0 0 10px; color: #ffe68c; font-weight: 900; }
.lottery-drum { position: absolute; top: 8px; right: 13px; color: rgba(255, 215, 67, .25); font-size: 3.5rem; }
.lottery-results { display: flex; position: relative; z-index: 1; gap: 8px; justify-content: center; }
.lottery-results span { display: grid; width: 58px; height: 58px; place-items: center; border: 3px solid #fff3a6; border-radius: 50%; background: linear-gradient(145deg, #ffda3b, #d75400); color: #2b1300; box-shadow: 0 7px 16px rgba(0,0,0,.3); font-size: 1.25rem; font-weight: 950; }
.lottery-results.is-revealing span { animation: ball-reveal .45s ease both; }
.lottery-results.is-revealing span:nth-child(2) { animation-delay: .12s; }.lottery-results.is-revealing span:nth-child(3) { animation-delay: .24s; }.lottery-results.is-revealing span:nth-child(4) { animation-delay: .36s; }.lottery-results.is-revealing span:nth-child(5) { animation-delay: .48s; }
@keyframes ball-reveal { from { opacity: 0; transform: translateY(-30px) rotate(-90deg); } }
.lottery-picks { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 12px 0; }
.lottery-picks button { min-width: 0; min-height: 38px; border: 1px solid rgba(146, 86, 222, .48); border-radius: 8px; background: #12102f; color: white; cursor: pointer; font-size: .76rem; font-weight: 850; }
.lottery-picks button[aria-pressed="true"] { border-color: #fff09a; background: linear-gradient(145deg, #ffdb47, #c75400); color: #261000; box-shadow: 0 0 12px rgba(255, 198, 34, .3); }
.triple-actions { display: grid; grid-template-columns: .8fr 1fr 1.2fr; gap: 9px; }

.ludo-prize-strip { width: max-content; max-width: 100%; margin: 0 auto 10px; padding: 7px 15px; border: 1px solid #e7bd3b; border-radius: 999px; background: linear-gradient(90deg, #4c1a76, #1c124d, #4c1a76); color: #ffe57b; font-size: .7rem; font-weight: 950; letter-spacing: .08em; text-align: center; }
.ludo-score { display: grid; grid-template-columns: 1fr 76px 1fr; gap: 9px; align-items: center; margin-bottom: 10px; }
.ludo-score > span { display: grid; grid-template-columns: 28px 1fr; column-gap: 7px; align-items: center; padding: 8px; border: 1px solid rgba(143, 89, 219, .42); border-radius: 12px; background: #11102e; }
.ludo-score > span > i { grid-row: 1 / 3; display: block; width: 25px; height: 25px; border: 3px solid white; border-radius: 50% 50% 44% 44%; box-shadow: 0 5px 0 rgba(0,0,0,.3); }
.blue-token { background: #1a9cff; }.red-token { background: #f34437; }
.ludo-score small { color: #a9a4b8; font-size: .55rem; font-weight: 900; }.ludo-score b { font-size: .68rem; }
.ludo-die { display: grid; width: 66px; height: 66px; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 4px; padding: 10px; border: 2px solid var(--gold); border-radius: 15px; background: linear-gradient(145deg, #fff, #d8c9ff); box-shadow: 0 7px 0 #725100, inset 0 0 0 2px rgba(255,255,255,.65); }
.ludo-die i { display: block; width: 9px; height: 9px; min-width: 0; min-height: 0; grid-row: auto; align-self: center; justify-self: center; border: 0; border-radius: 50%; background: #28134f; opacity: 0; box-shadow: inset 0 1px 1px rgba(255,255,255,.35); }
.ludo-die[data-face="1"] i:nth-child(5),
.ludo-die[data-face="3"] i:nth-child(1), .ludo-die[data-face="3"] i:nth-child(5), .ludo-die[data-face="3"] i:nth-child(9),
.ludo-die[data-face="5"] i:nth-child(1), .ludo-die[data-face="5"] i:nth-child(3), .ludo-die[data-face="5"] i:nth-child(5), .ludo-die[data-face="5"] i:nth-child(7), .ludo-die[data-face="5"] i:nth-child(9),
.ludo-die[data-face="2"] i:nth-child(1), .ludo-die[data-face="2"] i:nth-child(9),
.ludo-die[data-face="4"] i:nth-child(1), .ludo-die[data-face="4"] i:nth-child(3), .ludo-die[data-face="4"] i:nth-child(7), .ludo-die[data-face="4"] i:nth-child(9),
.ludo-die[data-face="6"] i:nth-child(1), .ludo-die[data-face="6"] i:nth-child(3), .ludo-die[data-face="6"] i:nth-child(4), .ludo-die[data-face="6"] i:nth-child(6), .ludo-die[data-face="6"] i:nth-child(7), .ludo-die[data-face="6"] i:nth-child(9) { opacity: 1; }
.ludo-die.is-rolling { animation: die-roll .55s ease-in-out; }
@keyframes die-roll { 50% { transform: rotate(200deg) scale(.82); } }
.ludo-board { position: relative; display: grid; grid-template: repeat(11, 1fr) / repeat(11, 1fr); width: min(100%, 430px); aspect-ratio: 1; margin-inline: auto; overflow: hidden; border: 5px solid #d3ad36; border-radius: 20px; background: radial-gradient(circle at 50% 50%, #fff4a0 0 8%, transparent 8.5%), linear-gradient(135deg, rgba(29,138,255,.38) 0 28%, transparent 28% 72%, rgba(241,58,55,.38) 72%), linear-gradient(45deg, rgba(53,208,100,.3) 0 28%, transparent 28% 72%, rgba(255,205,51,.3) 72%), #090a23; box-shadow: inset 0 0 32px rgba(0,0,0,.5), 0 14px 35px rgba(0,0,0,.35), 0 0 0 1px rgba(255,231,126,.32); }
.ludo-cell { position: relative; display: flex; z-index: 2; align-items: center; justify-content: center; gap: 1px; margin: 1px; border: 1px solid #77738e; border-radius: 5px; background: #f5f1ff; color: #16132c; font-size: .5rem; }
.ludo-cell.is-safe { background: #ffe176; }
.ludo-cell.is-home-lane.player-lane { background: #85caff; }.ludo-cell.is-home-lane.bot-lane { background: #ff9b8c; }
.ludo-yard, .ludo-finish { position: absolute; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; align-content: center; justify-content: center; width: 25%; aspect-ratio: 1; padding: 7px; border: 2px solid rgba(255,255,255,.7); border-radius: 16px; background: rgba(4,6,22,.74); }
.ludo-yard.player { bottom: 7%; left: 7%; }.ludo-yard.bot { top: 7%; right: 7%; }
.ludo-finish.player { right: 37.5%; bottom: 7%; }.ludo-finish.bot { top: 7%; left: 37.5%; }
.ludo-token { display: grid; width: 22px; min-width: 22px !important; height: 22px; min-height: 22px !important; place-items: center; padding: 0; border: 2px solid white; border-radius: 50% 50% 45% 45%; box-shadow: 0 3px 5px rgba(0,0,0,.45); color: white; cursor: default; font-size: .58rem; font-weight: 950; }
.ludo-token.player { background: #178ff1; }.ludo-token.bot { background: #e63f36; }
.ludo-token.can-move { animation: token-choice .65s ease-in-out infinite alternate; }
@keyframes token-choice { to { box-shadow: 0 0 0 4px #fff37d, 0 3px 8px rgba(0,0,0,.5); transform: scale(1.12); } }
.ludo-token-choices { display: flex; min-height: 45px; gap: 8px; align-items: center; justify-content: center; margin-top: 8px; }
.ludo-token-choices button { min-height: 46px; padding: 8px 14px; border: 1px solid #72c8ff; border-radius: 12px; background: linear-gradient(145deg, #1d6aae, #102d61); color: white; box-shadow: 0 4px 0 #071934; cursor: pointer; font-weight: 900; }

.flight-stage { position: relative; overflow: hidden; height: 400px; border: 2px solid #f05d55; border-radius: 22px; background: radial-gradient(circle at 25% 20%, rgba(56, 147, 255, .4), transparent 35%), linear-gradient(180deg, #071c4c, #120922 75%); box-shadow: inset 0 0 50px rgba(48, 130, 255, .18), 0 15px 35px rgba(0,0,0,.4); }
.flight-grid { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(104,176,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(104,176,255,.18) 1px, transparent 1px); background-size: 45px 45px; transform: perspective(250px) rotateX(45deg) scale(1.4); }
.flight-stage::before { content: ""; position: absolute; right: -15%; bottom: -30%; width: 75%; height: 75%; border: 3px solid rgba(255, 216, 59, .5); border-width: 3px 0 0; border-radius: 50%; transform: rotate(-28deg); }
.flight-plane { position: absolute; z-index: 2; left: 13%; bottom: 17%; color: #ff4d31; filter: drop-shadow(0 5px 0 #6c170d) drop-shadow(0 0 15px rgba(255,76,40,.7)); font-size: 4.6rem; transform: rotate(-13deg); transition: left .1s linear, bottom .1s linear, transform .1s linear; }
.flight-trail { position: absolute; z-index: 1; left: 4%; bottom: 19%; width: 22%; height: 5px; border-radius: 999px; background: linear-gradient(90deg, transparent, #ffb22e, #fff1a0); box-shadow: 0 0 15px #ff6a21; transform: rotate(-13deg); transform-origin: right; }
.flight-readout { position: absolute; z-index: 3; inset: 34px 0 auto; text-align: center; }
.flight-readout output { display: block; color: var(--gold); filter: drop-shadow(0 5px 16px rgba(255,183,39,.35)); font-size: clamp(3rem, 9vw, 5.4rem); font-weight: 950; letter-spacing: -.05em; }
.flight-readout small { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.45); color: #b9d9ff; font-weight: 900; letter-spacing: .12em; }
.flight-stage.is-flying .flight-plane { animation: plane-float .5s ease-in-out infinite alternate; }
@keyframes plane-float { to { transform: rotate(-8deg) translateY(-6px); } }
.flight-stage.is-ended { animation: flight-ended .28s ease 2; }
@keyframes flight-ended { 50% { filter: saturate(.2) brightness(.7); transform: translateX(5px); } }

.play-bottom-nav { position: absolute; z-index: 8; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; min-height: 68px; border-top: 1px solid var(--play-line); background: rgba(6, 7, 25, .95); backdrop-filter: blur(15px); }
.play-bottom-nav button { display: grid; gap: 2px; place-items: center; padding: 7px; border: 0; background: transparent; color: #a9a3b8; cursor: pointer; font-size: .64rem; font-weight: 850; }
.play-bottom-nav button:hover { color: white; background: rgba(122,63,255,.14); }
.play-bottom-nav span { color: var(--violet-soft); font-size: 1.35rem; }

.play-info { position: sticky; top: 100px; padding: 26px; border: 1px solid var(--play-line); border-radius: 22px; background: var(--panel); box-shadow: var(--shadow); }
.play-info h2 { margin: 0 0 20px; font-size: 2rem; line-height: 1.05; }
.play-info ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.play-info li { display: grid; grid-template-columns: 68px 1fr; gap: 10px; align-items: center; padding: 10px; border: 1px solid rgba(154,92,232,.35); border-radius: 12px; background: rgba(5,6,25,.52); }
.play-info li b { color: var(--gold); font-size: .85rem; text-align: center; }.play-info li span { color: #c9c4d3; font-size: .78rem; line-height: 1.4; }
.play-info-card { margin-top: 15px; padding: 14px; border-left: 3px solid var(--mint); border-radius: 9px; background: rgba(10, 86, 51, .2); }
.play-info-card strong { color: #9dffc0; font-size: .82rem; }.play-info-card p { margin: 5px 0 0; color: #c8d9ce; font-size: .75rem; line-height: 1.45; }
.responsible-play-link { display: block; margin-top: 13px; padding: 12px 13px; border: 1px solid rgba(255, 207, 72, .38); border-radius: 10px; background: rgba(83, 54, 9, .17); color: #ffe699; font-size: .73rem; font-weight: 800; line-height: 1.45; text-decoration: none; }
.responsible-play-link:hover { border-color: var(--gold); color: white; }
.play-apk-link { display: flex; justify-content: center; margin-top: 18px; text-align: center; }

.play-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(2, 3, 14, .82); backdrop-filter: blur(9px); cursor: default; }
.modal-card { position: relative; z-index: 1; width: min(470px, 100%); max-height: min(760px, calc(100dvh - 30px)); overflow-y: auto; padding: 29px; border: 1px solid rgba(203, 146, 255, .65); border-radius: 22px; background: radial-gradient(circle at 90% 0, rgba(122,63,255,.36), transparent 35%), #0d0b2a; box-shadow: 0 28px 90px #000; }
.modal-card h2 { margin: 0; font-size: 2rem; }.modal-lead { color: #c6c0d1; font-size: .86rem; line-height: 1.5; }
.modal-close { position: absolute; top: 12px; right: 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(0,0,0,.32); color: white; cursor: pointer; font-size: 1.4rem; }
.modal-card form { display: grid; gap: 14px; }
.modal-card label { display: grid; gap: 7px; color: #ede9f5; font-size: .8rem; font-weight: 850; }
.modal-card input { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid rgba(163,99,239,.55); border-radius: 11px; background: #080821; color: white; }
.modal-card label small { color: #918ba0; font-size: .67rem; font-weight: 500; }
.modal-card .profile-consent { display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: start; padding: 11px; border: 1px solid rgba(145, 99, 215, .38); border-radius: 10px; background: rgba(4, 5, 22, .34); color: #cfc9d8; font-size: .7rem; font-weight: 600; line-height: 1.45; }
.modal-card .profile-consent input { width: 19px; height: 19px; min-height: 19px; margin: 1px 0 0; padding: 0; accent-color: #35d77a; }
.modal-card .profile-consent a { color: #c7a8ff; }
.form-error { min-height: 18px; margin: 0; color: #ff9e9e; font-size: .75rem; }
.save-profile { min-height: 56px; }
.member-record { display: grid; gap: 4px; margin-top: 16px; padding: 11px 13px; border: 1px solid rgba(79, 221, 137, .4); border-radius: 10px; background: rgba(9, 80, 44, .2); }
.member-record small { color: #91eeb1; font-size: .55rem; font-weight: 900; letter-spacing: .1em; }
.member-record strong { color: white; font-size: .85rem; }
.member-record span { color: #a9d7b9; font-size: .67rem; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.profile-stats span { padding: 10px; border: 1px solid rgba(157,94,236,.36); border-radius: 10px; background: rgba(0,0,0,.22); text-align: center; }
.profile-stats small, .profile-stats b { display: block; }.profile-stats small { color: #aaa4b8; font-size: .58rem; }.profile-stats b { margin-top: 3px; color: var(--gold); }
.clear-local-data { width: 100%; margin-top: 12px; border: 1px solid rgba(255,106,106,.55); border-radius: 10px; background: transparent; color: #ffaaaa; cursor: pointer; font-size: .75rem; }
.rules-card ol { display: grid; gap: 10px; padding-left: 22px; color: #d4cfdd; font-size: .86rem; line-height: 1.45; }

.result-celebration { position: fixed; z-index: 110; inset: 0; display: grid; place-content: center; justify-items: center; overflow: hidden; padding: 22px; background: radial-gradient(circle, rgba(119,37,204,.86), rgba(3,4,17,.94) 63%); text-align: center; }
.result-celebration .result-rays { position: absolute; width: min(720px, 130vw); aspect-ratio: 1; opacity: .45; background: repeating-conic-gradient(from 0deg, rgba(255,221,74,.72) 0 7deg, transparent 7deg 15deg); animation: result-rays 9s linear infinite; mask-image: radial-gradient(circle, #000, transparent 67%); }
@keyframes result-rays { to { transform: rotate(1turn); } }
.result-celebration > *:not(.result-rays) { position: relative; z-index: 1; }
.result-celebration p { margin: 0; color: #fff0a3; font-size: .75rem; font-weight: 900; letter-spacing: .15em; }
.result-celebration h2 { margin: 12px 0 0; color: white; filter: drop-shadow(0 6px 0 #7b3100) drop-shadow(0 0 26px #ffb32d); font-size: clamp(3.2rem, 12vw, 7.5rem); line-height: .9; text-transform: uppercase; animation: result-pop .7s ease both; }
.result-celebration output { margin: 22px 0 7px; color: var(--gold); font-size: clamp(2.4rem, 8vw, 5rem); font-weight: 950; }.result-celebration small { color: #ded8e8; font-size: .68rem; font-weight: 800; }.result-celebration button { margin-top: 24px; padding: 12px 30px; border: 2px solid #fff4a0; border-radius: 999px; background: #177d39; color: white; cursor: pointer; font-weight: 950; }
@keyframes result-pop { 0% { opacity: 0; transform: scale(.3) rotate(-6deg); } 70% { transform: scale(1.12) rotate(2deg); } }
.coin-particles { position: fixed; z-index: 109; inset: 0; overflow: hidden; pointer-events: none; }
.coin-particles i { position: absolute; top: -40px; width: 23px; height: 23px; border: 3px solid #fff099; border-radius: 50%; background: #e6a20c; box-shadow: 0 0 12px rgba(255,201,35,.45); animation: coin-fall 1.8s ease-in forwards; }
@keyframes coin-fall { to { transform: translate3d(var(--drift), 110vh, 0) rotate(720deg); } }
.play-toast { position: fixed; z-index: 120; right: 18px; bottom: 18px; max-width: min(360px, calc(100% - 36px)); padding: 12px 16px; border: 1px solid rgba(156,233,182,.52); border-radius: 12px; background: #0b3a22; color: white; box-shadow: 0 14px 40px rgba(0,0,0,.45); opacity: 0; pointer-events: none; transform: translateY(15px); transition: opacity .2s ease, transform .2s ease; }
.play-toast.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
    .play-layout { grid-template-columns: minmax(0, 1fr); }
    .play-info { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .play-info > .section-kicker, .play-info > h2, .play-info > ul { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .browser-play-page { --reel-cell: 68px; width: 100%; margin-top: 0; }
    .route-play .site-header { position: relative; }
    .play-app { width: 100%; min-width: 0; max-width: 100%; min-height: calc(100dvh - 70px); overflow: visible; border-width: 1px 0; border-radius: 0; }
    .play-screen { padding-inline: 14px; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    .browser-game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
    .game-card-copy strong { font-size: .72rem; }
    .play-bottom-nav.is-app-visible { position: fixed; min-height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
    .play-bottom-nav button { font-size: .72rem; }
    .play-toast { bottom: calc(82px + env(safe-area-inset-bottom)); }
    .play-info { width: calc(100% - 28px); margin-inline: auto; grid-template-columns: 1fr; }
    .play-info > * { grid-column: auto; }
    .lobby-profile dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .browser-play-page { --reel-cell: 61px; }
    .play-topbar { gap: 6px; min-height: 70px; padding: 8px; }
    .play-back, .sound-toggle { flex-basis: 42px; width: 42px; }
    .player-avatar { flex-basis: 40px; width: 40px; height: 40px; }
    .player-chip { gap: 7px; padding-right: 2px; }
    .player-chip strong, .player-chip small { max-width: 90px; }
    .play-wallet { min-width: 118px; padding: 6px 9px; }
    .coin-medal { width: 30px; height: 30px; }
    .play-wallet output { font-size: .92rem; }
    .free-only-ribbon { gap: 5px; font-size: .68rem; }
    .free-only-ribbon span::before { margin-right: 5px; }
    .lobby-welcome > b { display: none; }
    .lobby-profile { padding: 12px; }
    .lobby-profile-head { grid-template-columns: 42px minmax(0, 1fr); }
    .lobby-profile-avatar { width: 42px; height: 42px; }
    .lobby-profile-head > b { grid-column: 1 / -1; justify-self: start; }
    .lobby-profile dl { grid-template-columns: 1fr 1fr; }
    .lobby-profile dl > div:first-child { grid-column: 1 / -1; }
    .browser-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .browser-game-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 5px); justify-self: center; }
    .browser-game-card img { aspect-ratio: .9; }
    .game-card-copy small { font-size: .65rem; }
    .game-card-copy strong { min-height: 38px; font-size: .84rem; }
    .game-card-copy > span { font-size: .72rem; }
    .active-game-head h2 { max-width: 210px; }
    .win-meter { min-width: 88px; }
    .slot-machine { padding: 7px; border-width: 2px; }
    .reel-symbol { font-size: 2rem; }
    .game-control-bar { grid-template-columns: 47px minmax(68px, 1fr) 47px 100px; padding: 7px; }
    .slot-jackpots small { font-size: .5rem; }
    .lottery-picks { grid-template-columns: repeat(5, 1fr); }
    .lottery-picks button { min-height: 44px; }
    .lottery-results span { width: 48px; height: 48px; }
    .flight-stage { height: 360px; }
    .flight-plane { font-size: 3.8rem; }
    .ludo-token { width: 20px; min-width: 20px !important; height: 20px; min-height: 20px !important; font-size: .52rem; }
    .modal-card { padding: 24px 19px; }
}

@media (max-width: 355px) {
    .browser-play-page { --reel-cell: 54px; }
    .player-chip strong, .player-chip small { max-width: 68px; }
    .play-wallet { min-width: 105px; }
    .coin-medal { display: none; }
    .free-only-ribbon span:nth-last-child(-n+2) { display: none; }
    .game-control-bar { grid-template-columns: 44px 1fr 44px 88px; gap: 5px; }
    .lottery-results { gap: 4px; }.lottery-results span { width: 43px; height: 43px; }
}

@media (prefers-reduced-motion: reduce) {
    .browser-play-page *, .result-celebration *, .coin-particles * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
