:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f6f3eb;background:#0a0d12;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit}img{display:block;max-width:100%}::selection{background:#c89d48;color:#0a0d12}.loading{min-height:100vh;display:grid;place-items:center;color:#c7b783}#toast{position:fixed;right:20px;bottom:20px;z-index:50;max-width:min(390px,calc(100vw - 40px));padding:12px 16px;background:#23312a;border:1px solid #4a8b67;border-radius:12px;color:#e8fff0;box-shadow:0 18px 50px #0009;opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s}#toast.show{opacity:1;transform:none}#toast.error{background:#3b2528;border-color:#a3555b;color:#ffe8e9}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 470px;background:radial-gradient(circle at 35% 25%,#1d2631 0,#0b0f16 48%,#090c11 100%)}.auth-art{position:relative;overflow:hidden;min-height:600px}.auth-art img{width:100%;height:100%;object-fit:cover;object-position:center 36%;filter:brightness(.58) saturate(.75)}.auth-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 30%,#0b0f16),linear-gradient(0deg,#0b0f16,transparent 55%)}.auth-copy{position:absolute;left:clamp(30px,7vw,120px);bottom:8%;z-index:1;max-width:620px}.eyebrow{font-size:11px;letter-spacing:.2em;text-transform:uppercase;font-weight:800;color:#e0bb72}.auth-copy h1{font-family:Georgia,serif;font-size:clamp(50px,5.5vw,96px);line-height:.94;letter-spacing:-.055em;margin:14px 0 25px}.auth-copy p{font-size:17px;color:#dad6ca;line-height:1.5}.auth-panel{padding:35px;display:flex;align-items:center;justify-content:center;border-left:1px solid #ffffff13}.auth-card{width:100%;max-width:380px}.auth-brand{display:flex;align-items:center;gap:12px;color:#f3d68b;font-family:Georgia,serif;font-size:22px;margin-bottom:54px}.brand-icon{width:36px;height:36px;display:grid;place-items:center;border:1px solid #c6994d;border-radius:10px;background:#d0a35b1a;color:#e7bd6d;font-size:24px}.auth-card h2{font-family:Georgia,serif;font-size:40px;line-height:1.04;letter-spacing:-.035em;margin:0 0 9px}.muted{color:#8f98a6}.auth-card>.muted{margin:0 0 30px}.field{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#aeb7c4;font-weight:650;margin:0 0 17px}.field input,.field select,.input,.admin-table input{outline:none;background:#151c26;border:1px solid #293340;border-radius:10px;color:#fff;padding:12px 13px;min-width:0}.field input:focus,.field select:focus,.input:focus,.admin-table input:focus{border-color:#dbb569;box-shadow:0 0 0 3px #d6ac6025}.primary,.secondary,.quiet,.danger{border:0;border-radius:10px;padding:11px 16px;font-weight:750;transition:transform .15s,background .15s}.primary:hover:not(:disabled),.secondary:hover:not(:disabled){transform:translateY(-2px)}.primary{background:linear-gradient(135deg,#efd087,#c59648);color:#24200f;box-shadow:0 6px 22px #b88a3d22}.secondary{background:#242f3a;color:#e9edf2;border:1px solid #3a4652}.quiet{background:transparent;color:#d7bd7d;border:1px solid #775d36}.danger{background:#6e3037;color:#fff}.wide{width:100%}.link-button{background:transparent;border:0;color:#e3bc6c;padding:0;font-weight:700}.auth-switch{text-align:center;color:#929aa5;margin-top:24px}.auth-note{font-size:12px;line-height:1.5;color:#838c98;margin-top:25px}.app-shell{min-height:100vh;display:grid;grid-template-columns:230px minmax(0,1fr);background:#0b0f15}.sidebar{position:sticky;top:0;height:100vh;background:#10151d;border-right:1px solid #252e38;padding:26px 15px;display:flex;flex-direction:column;gap:26px}.sidebar-brand{padding:0 9px;display:flex;align-items:center;gap:10px;text-decoration:none;color:#f4d58a;font-family:Georgia,serif;font-size:21px;line-height:1}.sidebar-brand small{display:block;font:700 9px ui-sans-serif,sans-serif;letter-spacing:.2em;color:#7f8a95;margin-top:6px;text-transform:uppercase}.nav-caption{font-size:10px;letter-spacing:.18em;color:#64717e;padding:0 13px;text-transform:uppercase;font-weight:800;margin:10px 0 12px}.nav-list{display:grid;gap:5px}.nav-btn{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:12px 13px;background:transparent;color:#a6afba;border:1px solid transparent;border-radius:10px;font-weight:700}.nav-btn .ico{width:23px;text-align:center;font-size:19px}.nav-btn:hover{background:#1a222d;color:#fff}.nav-btn.active{background:#27313a;color:#ffdf95;border-color:#8e7442}.sidebar-bottom{margin-top:auto;border-top:1px solid #26303a;padding:20px 8px 0}.sidebar-person{display:flex;align-items:center;gap:10px;min-width:0}.avatar{width:37px;height:37px;flex:none;border-radius:11px;object-fit:cover;border:1px solid #b38b48}.sidebar-person strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.sidebar-person small{color:#7e8994;font-size:11px}.main{min-width:0}.topbar{position:sticky;top:0;z-index:10;background:#0d1219e8;backdrop-filter:blur(18px);border-bottom:1px solid #24303a;min-height:78px;padding:12px clamp(18px,3vw,42px);display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar-title strong{font-family:Georgia,serif;font-size:23px;font-weight:500;display:block}.topbar-title small{color:#7f8b99;font-size:11px;letter-spacing:.13em;text-transform:uppercase;font-weight:750}.topbar-actions{display:flex;align-items:center;gap:10px}.balance-pill{border:1px solid #655332;background:#2a251b;border-radius:11px;padding:10px 14px;color:#f2d28d;font-weight:850;white-space:nowrap}.balance-pill small{display:block;color:#9a8968;font-size:9px;letter-spacing:.14em;text-transform:uppercase}.bonus-btn{white-space:nowrap}.content{max-width:1500px;margin:auto;padding:30px clamp(16px,3vw,42px) 75px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.page-head h1{font-family:Georgia,serif;font-size:clamp(30px,3vw,45px);font-weight:500;line-height:1.05;letter-spacing:-.025em;margin:7px 0 0}.page-head p{color:#97a1ac;margin:6px 0 0;font-size:14px}.tag{display:inline-flex;align-items:center;gap:7px;border-radius:20px;padding:7px 11px;border:1px solid #6b5938;color:#efc978;background:#2b261b;font-size:11px;letter-spacing:.08em;font-weight:800;text-transform:uppercase}.tag.green{background:#1c3228;border-color:#386c50;color:#8fe2a8}.tag.red{background:#382227;border-color:#85515a;color:#ed9eab}.card{background:linear-gradient(160deg,#171e28,#121922);border:1px solid #29343f;border-radius:16px;box-shadow:0 17px 36px #0002}.card-pad{padding:20px}.card h2,.card h3{margin:0 0 15px;font-family:Georgia,serif;font-weight:500}.card h2{font-size:25px}.card h3{font-size:20px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:30px 0 14px}.section-title h2{font-family:Georgia,serif;font-size:25px;font-weight:500;margin:0}.section-title span{font-size:12px;color:#8b97a2}.crash-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(285px,.8fr);gap:16px}.crash-screen{min-height:430px;position:relative;overflow:hidden;background:radial-gradient(circle at 45% 70%,#2b2b20,#151d27 43%,#111821 78%)}.crash-screen:before{content:"";position:absolute;inset:0;background-image:linear-gradient(#ffffff0a 1px,transparent 1px),linear-gradient(90deg,#ffffff0a 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(0deg,#000,transparent)}.crash-portrait{position:absolute;right:-2%;bottom:-7%;height:95%;max-width:54%;object-fit:contain;object-position:bottom;opacity:.34;filter:grayscale(1) contrast(1.08);mask-image:linear-gradient(90deg,transparent,#000 25%),linear-gradient(0deg,transparent,#000 22%);mask-composite:intersect}.crash-screen canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1}.crash-header{position:absolute;z-index:2;top:18px;left:20px;right:20px;display:flex;justify-content:space-between}.crash-center{position:absolute;z-index:2;left:0;right:0;top:38%;transform:translateY(-50%);text-align:center;pointer-events:none}.crash-center strong{font-family:Georgia,serif;display:block;font-size:clamp(60px,7vw,115px);letter-spacing:-.065em;line-height:1;color:#f2cb78;text-shadow:0 0 32px #d4a85855}.crash-center strong.dead{color:#ec8391}.crash-center p{color:#b8c1c8;font-size:13px;letter-spacing:.17em;text-transform:uppercase;font-weight:750}.crash-screen footer{position:absolute;z-index:2;bottom:15px;left:20px;color:#77838e;font-size:11px}.bet-card{padding:23px;display:flex;flex-direction:column;gap:18px}.bet-card h2{margin:0}.bet-card .field{margin:0}.bet-row{display:flex;gap:8px}.bet-row .field{flex:1}.bet-card .button-stack{display:grid;gap:10px;margin-top:auto}.hint{font-size:12px;line-height:1.5;color:#8895a0}.history-chips{display:flex;gap:7px;overflow:auto;padding-bottom:3px}.history-chips span{flex:none;border-radius:7px;background:#222d38;padding:8px 11px;font-size:12px;font-weight:800;color:#d9dfe4}.history-chips span.hot{background:#573d29;color:#ffd89b}.history-chips span.low{background:#392c32;color:#f2a9b3}.players-table{width:100%;border-collapse:collapse;font-size:13px}.players-table th{text-align:left;color:#748291;font-size:11px;letter-spacing:.07em;text-transform:uppercase;font-weight:700;padding:10px}.players-table td{border-top:1px solid #27323c;padding:11px 10px}.players-table td:last-child{text-align:right;font-weight:800}.players-table th:last-child{text-align:right}.tiny-face{height:28px;width:28px;object-fit:cover;border-radius:8px}.slot-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(270px,.75fr);gap:18px}.slot-machine{padding:23px;background:radial-gradient(circle at 50% 10%,#423522,#18202a 65%)}.slot-head{display:flex;align-items:center;justify-content:space-between}.slot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0;padding:10px;border:2px solid #81663c;border-radius:16px;background:#080d12;box-shadow:inset 0 0 20px #000}.slot-cell{aspect-ratio:1.1;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden;border-radius:10px;border:1px solid #b1915066;background:linear-gradient(#232d37,#101923)}.slot-cell img{height:65%;width:100%;object-fit:cover;object-position:center 30%;filter:saturate(.75)}.slot-cell span{font-size:10px;padding:4px;color:#e9d8ad;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.slot-cell.win{box-shadow:0 0 0 2px #e2bc6d,inset 0 0 24px #e2bc6d66}.slot-controls{display:flex;align-items:flex-end;gap:10px}.slot-controls .field{margin:0;flex:1}.slot-win{font-size:17px;font-weight:800;color:#eed28b}.rules-list{margin:0;padding:0;list-style:none}.rules-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #29343e;font-size:13px}.rules-list li:last-child{border-bottom:0}.rules-list img{width:30px;height:30px;border-radius:7px;object-fit:cover}.rule-name{display:flex;align-items:center;gap:9px}.case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.case-card{overflow:hidden;position:relative}.case-card-image{height:220px;position:relative;overflow:hidden}.case-card-image>img{height:100%;width:100%;object-fit:cover;filter:brightness(.68) saturate(.8);transition:transform .3s}.case-card:hover .case-card-image>img{transform:scale(1.05)}.case-card-image:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#171e28,transparent 70%)}.case-cost{position:absolute;bottom:15px;left:17px;background:#e4bd72;color:#211b11;font-weight:900;padding:8px 11px;border-radius:8px}.case-card-body{padding:0 18px 18px}.case-card-body h2{font-size:23px;margin:0 0 8px}.case-card-body p{color:#8793a0;font-size:12px;margin:0 0 14px}.case-prizes{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:15px 0}.prize-mini{height:55px;border-radius:7px;overflow:hidden;border:1px solid #39434c}.prize-mini img{width:100%;height:100%;object-fit:cover}.common{--rarity:#9ca7ad}.rare{--rarity:#7aa6e5}.epic{--rarity:#c585ec}.legendary{--rarity:#f3bd59}.item-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:14px}.item-card{overflow:hidden;border:1px solid color-mix(in srgb,var(--rarity) 50%,#26313a);border-radius:13px;background:#151d26;position:relative}.item-card img{width:100%;height:145px;object-fit:cover;object-position:center 30%;filter:saturate(.75)}.item-card .item-info{padding:12px}.item-card strong{font-size:14px;display:block;line-height:1.2;min-height:34px}.item-card small{display:block;color:var(--rarity);margin:6px 0;font-weight:800;text-transform:uppercase;font-size:10px;letter-spacing:.1em}.item-card button{width:100%;margin-top:7px}.item-price{font-size:12px;color:#a9b4bd}.empty{padding:40px 25px;text-align:center;border:1px dashed #3b4852;border-radius:13px;color:#8f9ba5}.empty strong{display:block;color:#e4e6e6;font-family:Georgia,serif;font-size:22px;font-weight:500;margin-bottom:8px}.trade-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:18px}.trade-card{padding:18px;margin-bottom:12px}.trade-head{display:flex;justify-content:space-between;gap:10px}.trade-offers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.trade-side{border:1px solid #34414d;border-radius:10px;padding:10px;background:#111820;min-width:0}.trade-side strong{font-size:12px;color:#d9bf86}.trade-side p{font-size:12px;color:#aab3bc;margin:8px 0 0;overflow-wrap:anywhere}.trade-actions{display:flex;flex-wrap:wrap;gap:7px}.check-list{display:grid;gap:6px;max-height:230px;overflow:auto}.check-item{display:flex;align-items:center;gap:9px;border:1px solid #34414d;border-radius:8px;padding:7px;font-size:12px}.check-item img{width:28px;height:28px;object-fit:cover;border-radius:5px}.check-item input{accent-color:#dbb566}.modal-backdrop{position:fixed;inset:0;background:#05080bc9;z-index:40;display:grid;place-items:center;padding:20px}.modal{position:relative;width:min(460px,100%);padding:26px;text-align:center;background:#1a222c;border:1px solid #8b7042;border-radius:20px;box-shadow:0 30px 100px #000b}.modal img{width:170px;height:170px;object-fit:cover;border-radius:16px;margin:auto;border:2px solid var(--rarity,#d6a65a)}.modal h2{font:500 31px Georgia,serif;margin:15px 0 5px}.modal p{color:#a9b3bc}.modal .tag{margin-top:16px}.admin-table{width:100%;border-collapse:collapse;font-size:12px}.admin-table th{text-align:left;color:#81909e;padding:9px}.admin-table td{padding:8px;border-top:1px solid #303b46}.admin-table input{padding:7px;width:88px}.admin-table .small-input{width:65px}.admin-table button{padding:7px 9px;font-size:11px}.admin-table .actions{display:flex;gap:5px;flex-wrap:wrap}.admin-table-wrap{overflow:auto}.admin-settings{display:grid;gap:15px}.config-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.config-row label{font-size:12px;color:#9daaaf}.config-row input{width:90px}.activity{display:grid;gap:7px}.activity-row{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #29343d;padding:8px 0;font-size:12px;color:#a9b4bc}.activity-row strong{color:#efdfb7}.mobile-nav{display:none}.admin-only{display:none}.soft-line{height:1px;background:#2b3641;margin:15px 0}.inline-note{font-size:12px;color:#aab5bf;line-height:1.5}.feature-banner{display:flex;align-items:center;gap:15px;background:#242116;border:1px solid #6f592d;border-radius:13px;padding:13px 17px;margin-bottom:20px}.feature-banner img{width:48px;height:48px;object-fit:cover;border-radius:9px}.feature-banner strong{display:block;color:#f2d596}.feature-banner span{font-size:12px;color:#aab1b4}.feature-banner button{margin-left:auto}.self-title{display:flex;align-items:center;gap:10px}.self-title img{width:40px;height:40px;object-fit:cover;border-radius:9px}.hidden{display:none!important}
@media(max-width:1100px){.crash-layout,.slot-layout{grid-template-columns:1fr}.crash-screen{min-height:380px}.case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.app-shell{display:block}.sidebar{display:none}.mobile-nav{position:fixed;display:flex;bottom:0;left:0;right:0;z-index:20;background:#111820f4;backdrop-filter:blur(20px);border-top:1px solid #3b4650;padding:7px 4px calc(7px + env(safe-area-inset-bottom));justify-content:space-around}.mobile-nav .nav-btn{width:auto;min-width:52px;display:grid;justify-items:center;gap:2px;padding:5px;border:0;font-size:9px;text-align:center}.mobile-nav .nav-btn .ico{font-size:21px}.topbar{min-height:65px;padding:9px 15px}.topbar-title strong{font-size:17px}.topbar-title small{font-size:9px}.topbar-actions{gap:6px}.balance-pill{font-size:13px;padding:8px}.balance-pill small{font-size:8px}.bonus-btn{font-size:11px;padding:9px}.content{padding:22px 14px calc(105px + env(safe-area-inset-bottom))}.auth{display:block}.auth-art{height:230px;min-height:0}.auth-art img{object-position:center 35%}.auth-art:after{background:linear-gradient(0deg,#0b0f16,transparent)}.auth-copy{bottom:13px;left:24px}.auth-copy h1{font-size:42px;margin:8px 0}.auth-copy p{display:none}.auth-panel{border:0;padding:18px 24px 45px;align-items:flex-start}.auth-brand{display:none}.auth-card h2{font-size:32px}}
@media(max-width:600px){.page-head{align-items:flex-start}.page-head h1{font-size:31px}.page-head p{font-size:12px}.case-grid,.trade-layout{grid-template-columns:1fr}.case-card-image{height:175px}.crash-screen{min-height:310px}.crash-center{top:44%}.crash-center strong{font-size:68px}.crash-header{left:13px;right:13px;top:12px}.crash-screen footer{left:12px}.bet-card{padding:17px}.slot-machine{padding:12px}.slot-grid{gap:5px;padding:6px}.slot-cell span{font-size:8px}.slot-controls{gap:7px}.slot-controls .primary{font-size:12px}.topbar-title small{display:none}.feature-banner{padding:10px}.feature-banner img{width:38px;height:38px}.feature-banner span{display:none}.feature-banner button{font-size:10px;padding:7px}.tag{font-size:9px}.card-pad{padding:15px}}
.auth-panel,.auth-card{min-width:0}.auth-card{max-width:100%}.auth-card p,.auth-switch{overflow-wrap:anywhere}.slot-cell.spinning img{filter:blur(3px) saturate(.8)}.roulette-viewport{height:148px;overflow:hidden;position:relative;margin:22px -26px 16px;border-top:1px solid #685434;border-bottom:1px solid #685434;background:#0d1319}.roulette-marker{position:absolute;z-index:3;top:0;bottom:0;left:50%;width:3px;background:#f3d17d;box-shadow:0 0 18px #e6bc68}.roulette-track{display:flex;align-items:center;gap:8px;height:100%;width:max-content;transition:transform 2.45s cubic-bezier(.12,.77,.16,1)}.roulette-item{flex:none;width:118px;height:125px;position:relative;border:1px solid var(--rarity);border-radius:9px;overflow:hidden;background:#17202a}.roulette-item img{width:100%;height:92px;border:0;border-radius:0;object-fit:cover}.roulette-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e7ebee;font-size:10px;padding:7px}.roulette-title{margin-top:14px!important}
.history-chips button{flex:none;border:0;border-radius:7px;background:#222d38;padding:8px 11px;font-size:12px;font-weight:800;color:#d9dfe4}.history-chips button.hot{background:#573d29;color:#ffd89b}.history-chips button.low{background:#392c32;color:#f2a9b3}.verify-code{font:11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;background:#111820;border:1px solid #35414b;border-radius:8px;padding:10px;margin:12px 0;color:#aab7c4}.verify-code strong{color:#e8c57d}
.auth-switch{line-height:1.5}.auth-switch .link-button{max-width:100%;white-space:normal}
.activity-row span{min-width:0;overflow-wrap:anywhere}.activity-row strong{flex:none;text-align:right}
.sell-modal>img{margin:18px auto 0}.sell-modal p{line-height:1.5}.sell-modal p strong{color:#efcf86}.modal-actions{display:flex;gap:10px;margin-top:24px}.modal-actions button{flex:1;min-width:0}.modal-actions .primary{white-space:normal}
@media(max-width:420px){.modal-actions{flex-direction:column-reverse}.modal-actions button{width:100%}}

.topbar-title{display:flex;align-items:center;gap:9px;min-width:0}.topbar-title>span:last-child{min-width:0}.mobile-brand-icon{display:none}.account-button{display:none}.account-popover{position:absolute;right:16px;top:calc(100% - 2px);z-index:30;width:210px;padding:13px;background:#1a222c;border:1px solid #695432;border-radius:0 0 13px 13px;box-shadow:0 18px 35px #0009}.account-popover strong,.account-popover small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-popover small{color:#8f9ba7;font-size:11px;margin-top:3px}.account-popover button{width:100%;margin-top:13px;padding:10px;background:#2a3440;border:1px solid #46515e;border-radius:8px;color:#f4d68d;font-weight:750;text-align:left}
.crash-character{position:absolute;z-index:3;width:105px;height:110px;transform:translate(-50%,-96%);pointer-events:none;filter:drop-shadow(0 5px 8px #000b)}.crash-character img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}.character-running{animation:kirill-run .3s ease-in-out infinite alternate}.character-crouching,.crash-character.crouching .character-running{display:none!important}.crash-character.crouching .character-crouching{display:block}@keyframes kirill-run{from{transform:translateY(0) rotate(-2deg)}to{transform:translateY(-6px) rotate(2deg)}}
.case-opening-modal{width:min(620px,100%)}.roulette-hint{font-size:13px;margin:7px 0 0;color:#aeb8bf}.case-opening-modal .roulette-viewport{height:184px;margin:20px -26px 18px;border-top:2px solid #b38c50;border-bottom:2px solid #b38c50;box-shadow:inset 0 0 25px #0008}.case-opening-modal .roulette-track{transition:transform 4s cubic-bezier(.12,.72,.12,1)}.case-opening-modal .roulette-item{width:140px;height:160px;box-shadow:0 8px 15px #0005}.case-opening-modal .roulette-item img{height:127px}.case-opening-modal .roulette-item span{font-size:11px}.case-opening-modal .roulette-marker{width:4px;box-shadow:0 0 23px #e6bc68}.case-opening-modal .roulette-marker:before,.case-opening-modal .roulette-marker:after{content:"";position:absolute;left:50%;transform:translateX(-50%);border-left:8px solid transparent;border-right:8px solid transparent}.case-opening-modal .roulette-marker:before{top:0;border-top:12px solid #f3d17d}.case-opening-modal .roulette-marker:after{bottom:0;border-bottom:12px solid #f3d17d}
@media(max-width:800px){.mobile-brand-icon{display:grid;flex:none;width:30px;height:30px;font-size:19px}.account-button{display:grid;place-items:center;flex:none;width:32px;height:34px;padding:0;background:#222c37;border:1px solid #3a4652;border-radius:9px;color:#f3cf84;font-size:22px}.topbar{gap:7px}.topbar-title strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-actions{flex:none}}
@media(max-width:420px){.topbar{padding:8px 9px}.topbar-title{gap:6px}.topbar-title strong{font-size:14px}.bonus-btn{font-size:10px;padding:7px 6px}.balance-pill{font-size:11px;padding:6px}.balance-pill small{font-size:7px}.account-button{width:30px;height:32px}.crash-character{width:78px;height:86px}.case-opening-modal{padding:20px}.case-opening-modal .roulette-viewport{margin-left:-20px;margin-right:-20px}}

.avatar-initials{display:grid;place-items:center;background:linear-gradient(135deg,#785b34,#293747);color:#ffe1a1;font-size:12px;font-weight:850;letter-spacing:.02em}.profile-link{width:100%;padding:0;background:none;border:0;color:inherit;text-align:left}.profile-link:hover strong{color:#f3d17d}.profile-link>span:last-child{min-width:0}.account-button{overflow:hidden}.account-button .avatar{width:100%;height:100%;border:0;border-radius:7px}.account-button .avatar-initials{font-size:11px}.profile-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.profile-card{min-width:0}.profile-card h3{margin-top:20px}.profile-identity{display:flex;align-items:center;gap:17px}.profile-identity h2{margin:0}.profile-identity p{margin:6px 0 0}.profile-avatar{width:92px;height:92px;border-radius:18px;font-size:30px}.avatar-file{width:100%;margin:12px 0;color:#aeb8bf}.avatar-file::file-selector-button{padding:9px 12px;margin-right:12px;border:1px solid #66717c;border-radius:8px;background:#263340;color:#e9edf2}.profile-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:8px}.profile-card form{max-width:420px}.profile-logout{margin-top:5px}.crash-character.crouching .character-crouching{display:block!important;animation:kirill-squat .45s ease-out both}@keyframes kirill-squat{from{opacity:.15;transform:translateY(-24px) scale(1.08)}to{opacity:1;transform:translateY(0) scale(1)}}.case-opening-modal .roulette-track{transition:none}
@media(max-width:800px){.profile-grid{grid-template-columns:1fr}.account-button .avatar{width:100%;height:100%}}

.slot-stake-control{flex:1;min-width:0}.slot-stake-control .field{display:block;margin:0 0 6px}.slot-stake-stepper{display:flex;align-items:stretch;gap:6px}.slot-stake-stepper button{min-width:42px;padding:8px 11px;font-size:20px;line-height:1}.slot-stake-stepper input{width:100%;min-width:0;text-align:center;background:#151c26;border:1px solid #293340;border-radius:10px;color:#fff;padding:10px 4px;outline:none}.slot-stake-stepper input:focus{border-color:#dbb569;box-shadow:0 0 0 3px #d6ac6025}.slot-stake-stepper input::-webkit-inner-spin-button,.slot-stake-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.slot-stake-stepper input{-moz-appearance:textfield;appearance:textfield}.slot-stake-range{display:none;width:100%;margin:11px 0 0;accent-color:#e9bd69}.slot-spin-button{min-height:43px}
.case-opening-modal{overflow:hidden;background:#171c25}.case-opening-modal .roulette-case-art{position:absolute;inset:-20%;width:140%;height:140%;max-width:none;object-fit:cover;filter:blur(42px) brightness(.3) saturate(.8);opacity:.9;border:0;border-radius:0;pointer-events:none}.roulette-content{position:relative;z-index:1}.case-opening-modal .roulette-viewport{background:#111820e8}.case-opening-modal .roulette-viewport:before,.case-opening-modal .roulette-viewport:after{content:"";position:absolute;z-index:2;top:0;bottom:0;width:22%;pointer-events:none}.case-opening-modal .roulette-viewport:before{left:0;background:linear-gradient(90deg,#111820,transparent)}.case-opening-modal .roulette-viewport:after{right:0;background:linear-gradient(270deg,#111820,transparent)}.case-opening-modal .roulette-item{background:linear-gradient(180deg,#303946,#121921);border-bottom:4px solid var(--rarity,#d6a65a)}.case-opening-modal .roulette-item.landed{box-shadow:0 0 0 2px #f8d688,0 0 26px #e9bc6caa;filter:brightness(1.17)}.case-opening-modal #prize-result:not(.hidden){animation:prize-appear .3s ease-out both}@keyframes prize-appear{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.slot-controls{align-items:stretch;flex-direction:column}.slot-stake-range{display:block;min-height:28px}.slot-spin-button{width:100%;min-height:44px}.slot-stake-stepper button{min-width:48px;min-height:44px}}

.rotten{--rarity:#809b74}.bullshit{--rarity:#6d9ec6}.judicial{--rarity:#ba81d8}.archival{--rarity:#e7b551}.case-prizes{grid-template-columns:repeat(auto-fill,minmax(55px,1fr))}.prize-mini{border-color:var(--rarity,#39434c)}
.admin-case-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.admin-case-toolbar h3{margin:0}.admin-case-toolbar .hint{margin:5px 0 0}.admin-case-list{display:grid;gap:8px;margin:14px 0}.admin-case-list-row{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #35414c;border-radius:11px;background:#141c25}.admin-case-list-row.active{border-color:#bc9555}.admin-case-list-row img,.admin-item-heading img,.admin-upload img{width:48px;height:48px;flex:none;object-fit:cover;border-radius:7px}.admin-case-list-row span{min-width:0;flex:1}.admin-case-list-row strong,.admin-case-list-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-case-list-row small{color:#8996a0;font-size:11px;margin-top:3px}.admin-case-list-row button{padding:8px 10px;font-size:12px}.admin-case-editor{border-top:1px solid #34404c;padding-top:18px;margin-top:18px}.admin-case-basics,.admin-item-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.admin-case-basics .field,.admin-item-fields .field{margin:0}.admin-upload{display:flex;align-items:center;gap:9px;min-width:0}.admin-upload input{width:100%;padding:8px;font-size:11px}.admin-items{display:grid;gap:12px}.admin-item-editor{min-width:0;padding:14px;border:1px solid color-mix(in srgb,var(--rarity) 55%,#35414c);border-radius:12px;background:#111820}.admin-item-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}.admin-item-heading strong{flex:1;min-width:0;overflow-wrap:anywhere}.admin-item-heading button{padding:8px 10px}.admin-sound-upload{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.admin-sound-upload input{max-width:100%;font-size:12px}.admin-sound-upload small{color:#d8bd84}.admin-item-editor>.quiet{padding:8px 11px;font-size:12px}.admin-chance-total{margin:15px 0;font-size:13px}.admin-chance-total.valid{color:#9de0ab}.admin-chance-total.invalid{color:#ffad9a}.admin-cases>.hint:last-child{margin-bottom:0}
@media(max-width:600px){.admin-case-list-row{flex-wrap:wrap}.admin-case-list-row span{flex-basis:calc(100% - 65px)}.admin-case-list-row button{flex:1}.admin-case-basics,.admin-item-fields{grid-template-columns:1fr}}
.admin-case-editor,[data-sound-mode]{scroll-margin-top:90px}
.slot-back{margin-bottom:18px}.slot-choice .slot-card-image{height:190px}.admin-menu-section{margin:0 0 12px;border:1px solid #34404a;background:#151d26;border-radius:14px;padding:0 18px}.admin-menu-section>summary{cursor:pointer;list-style:none;padding:19px 3px;color:#f0d18c;font:500 23px Georgia,serif}.admin-menu-section>summary:after{content:'⌄';float:right;font:24px sans-serif}.admin-menu-section[open]>summary:after{transform:rotate(180deg)}.admin-menu-section>summary::-webkit-details-marker{display:none}.admin-menu-section>.card,.admin-menu-section>.admin-settings{margin:0 0 18px}.chat-launch{position:fixed;right:22px;bottom:22px;z-index:25;border:1px solid #b18d51;border-radius:24px;background:#d5ad66;color:#1c1a14;padding:12px 18px;font-weight:800;box-shadow:0 12px 30px #0008}.chat-panel{position:fixed;right:20px;bottom:76px;z-index:30;width:min(390px,calc(100vw - 24px));height:min(540px,calc(100vh - 130px));display:flex;flex-direction:column;background:#17212b;border:1px solid #756441;border-radius:16px;box-shadow:0 18px 60px #000c;overflow:hidden}.chat-head{display:flex;align-items:center;justify-content:space-between;padding:12px 15px;border-bottom:1px solid #34404a}.chat-head .quiet{padding:2px 9px;font-size:22px}.chat-messages{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:9px}.chat-message{background:#222e39;border-radius:10px;padding:8px 10px;overflow-wrap:anywhere}.chat-message>div{display:flex;align-items:center;gap:7px}.chat-message strong{font-size:12px;color:#ebce90}.chat-message time{font-size:10px;color:#9ba7b2;margin-left:auto;white-space:nowrap}.chat-message p{font-size:13px;line-height:1.4;margin:5px 0 0;white-space:pre-wrap}.chat-delete{background:transparent;border:0;color:#eaa0a7;font-size:20px;line-height:1}#chat-form{display:flex;gap:7px;padding:11px;border-top:1px solid #34404a}#chat-form input{min-width:0;flex:1;background:#101820;border:1px solid #40505d;border-radius:9px;color:white;padding:10px}#chat-form button{padding:8px 13px}@media(max-width:800px){.chat-launch{bottom:80px;right:12px}.chat-panel{right:8px;bottom:134px;height:min(500px,calc(100vh - 155px))}}
.slot-sound-name{display:block;min-height:20px;color:#e5c880;overflow-wrap:anywhere;font-size:12px}.slot-sound-actions{display:flex;gap:8px;flex-wrap:wrap}.slot-sound-actions button{flex:1;min-width:130px}
/* Neon slot cabinet and three independently scrolling reels. */
.slot-stage{position:relative;isolation:isolate;overflow:hidden;padding:clamp(16px,3vw,42px);border:1px solid #d78a58;border-radius:25px;background:#091121;box-shadow:0 25px 70px #0009,0 0 36px #ff54c436}.slot-stage:before{content:"";position:absolute;inset:0;z-index:-2;background-image:linear-gradient(90deg,#071323bd 0%,#07132365 48%,#071323c9 100%),var(--slot-background,linear-gradient(125deg,#142b48,#381c48));background-size:cover;background-position:center;filter:saturate(1.18)}.slot-stage:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#05101a20 55%,#080e1db8),radial-gradient(circle at 48% 54%,#fa399021,transparent 46%)}.slot-stage .slot-layout{position:relative;z-index:1;grid-template-columns:minmax(0,1.3fr) minmax(250px,.68fr);align-items:start;gap:22px}.slot-stage .slot-machine{position:relative;padding:24px;background:linear-gradient(150deg,#2b1424f2,#121421f7 65%,#0c121cf5);border:3px solid #f6c66b;border-radius:25px;box-shadow:inset 0 0 0 2px #79441c,inset 0 0 35px #f3a54234,0 0 0 4px #ad347f7a,0 0 36px #fd55b895,0 22px 50px #000b}.slot-stage .slot-head{gap:12px}.slot-stage .slot-head .eyebrow{font-size:14px;color:#ffe5a5;text-shadow:0 0 12px #f69a4c}.slot-stage .slot-head .tag{background:#241425;color:#ffdf99;border-color:#a96b46}.slot-crown{text-align:center;color:#ffe09a;font:52px/1 Georgia,serif;text-shadow:0 0 8px #ffb343,0 0 25px #ff6370;margin:5px 0 -5px}.slot-reel-frame{position:relative;margin:15px 0 22px;padding:13px;border:3px solid #f4c56c;border-radius:20px;background:linear-gradient(#32140e,#110d17);box-shadow:inset 0 0 0 3px #6c3a19,inset 0 0 25px #000,0 0 23px #efb75988,0 0 36px #eb3fa088}.slot-reel-frame:after{content:"";position:absolute;inset:-9px;border:2px solid #e847a5;border-radius:26px;box-shadow:0 0 15px #e847a5;pointer-events:none}.slot-reels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;overflow:hidden;border-radius:10px;background:#090b13}.slot-reel-window{--slot-cell-height:clamp(100px,9vw,148px);height:calc(var(--slot-cell-height)*3);min-width:0;position:relative;overflow:hidden;background:#10131e;box-shadow:inset 0 0 16px #000}.slot-reel-window:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#050712b3,transparent 15%,transparent 82%,#050712b8),linear-gradient(90deg,#0007,transparent 14%,transparent 86%,#0007)}.slot-reel-track{display:flex;flex-direction:column;will-change:transform}.slot-reel-window .slot-cell{height:var(--slot-cell-height);flex:0 0 var(--slot-cell-height);aspect-ratio:auto;border:0;border-bottom:1px solid #efbb6944;border-radius:0;background:radial-gradient(circle at 50% 40%,#413046,#131722 72%);box-shadow:none;gap:0}.slot-reel-window .slot-cell img{width:100%;height:74%;object-fit:contain;padding:5px 8px;filter:drop-shadow(0 0 11px #f4a75a77)}.slot-reel-window .slot-cell span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-width:100%;white-space:normal;text-align:center;line-height:1.15;font-size:clamp(9px,.86vw,12px);font-weight:900;letter-spacing:.03em;color:#ffe5aa;text-shadow:0 1px 6px #000;overflow:hidden}.slot-reel-window.rolling .slot-cell img{filter:blur(1.7px) saturate(1.3)}.slot-reel-window .slot-cell.win{background:radial-gradient(circle,#a87f39,#34211d 76%);box-shadow:inset 0 0 0 3px #ffdd7d,inset 0 0 28px #ffe171aa;animation:slot-win-flash 1s ease-in-out 3}@keyframes slot-win-flash{50%{filter:brightness(1.35);box-shadow:inset 0 0 0 3px #fff1a7,inset 0 0 38px #ffed86,0 0 16px #ffe778}}.slot-stage .slot-controls{align-items:center;gap:16px}.slot-stage .slot-stake-control{padding:12px;border:1px solid #955e36;border-radius:15px;background:#130f19df}.slot-stage .slot-stake-control .field{color:#e7c98f}.slot-stage .slot-stake-stepper input{background:#090e17;border-color:#865f3a;font-weight:900;font-size:19px;color:#ffe3a1}.slot-stage .slot-spin-button{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;width:112px;height:112px;min-height:0;padding:10px;border:4px solid #ffe5a3;border-radius:50%;background:radial-gradient(circle at 32% 25%,#ff9c49,#d33238 57%,#831133);box-shadow:inset 0 0 0 3px #9f311d,0 0 0 3px #b16c2c,0 0 22px #ff994c,0 0 33px #fa497c;color:#fff4c3;font-size:54px;line-height:.75;text-shadow:0 2px 8px #740b13}.slot-stage .slot-spin-button span{font-size:13px;line-height:1.3;margin-top:8px;letter-spacing:.08em;text-transform:uppercase}.slot-stage .slot-spin-button:hover:not(:disabled){transform:scale(1.04)}.slot-stage .slot-win{color:#ffe19b;text-shadow:0 0 12px #f2ad4d}.slot-stage .slot-rules{background:#0d1420ed;border-color:#8d6b42;box-shadow:0 15px 35px #0008;backdrop-filter:blur(6px)}.slot-stage .slot-rules h2{color:#f3d694}.slot-stage .slot-rules .rules-list li{border-color:#5a4a3c}.slot-stage .slot-rules .rules-list strong{color:#ffe092}@media(max-width:1100px){.slot-stage .slot-layout{grid-template-columns:1fr}.slot-stage .slot-rules{max-width:none}}@media(max-width:600px){.slot-stage{padding:12px;border-radius:17px}.slot-stage .slot-machine{padding:14px;border-width:2px;border-radius:19px}.slot-stage .slot-head .eyebrow{font-size:11px}.slot-crown{font-size:40px}.slot-reel-frame{padding:7px;margin:14px 0 17px;border-width:2px}.slot-reel-window{--slot-cell-height:clamp(75px,23vw,112px)}.slot-reel-window .slot-cell img{height:72%;padding:3px}.slot-reel-window .slot-cell span{font-size:9px}.slot-stage .slot-spin-button{width:90px;height:90px;font-size:42px}.slot-stage .slot-spin-button span{font-size:11px}}
.slot-backdrop{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(1.18)}.slot-stage:before{z-index:-1;background:linear-gradient(90deg,#071323c9 0%,#07132375 48%,#071323cf 100%);filter:none}
.slot-reel-window{--slot-cell-height:clamp(95px,8vw,124px)}.slot-reel-window .slot-cell img{width:calc(100% - 14px);height:calc(100% - 28px);object-fit:cover;object-position:center 30%;padding:0;border-radius:8px}.slot-reel-window .slot-cell[data-symbol-id="crown"] img{object-fit:contain;background:#38131f}.slot-reel-window .slot-cell span{min-height:23px;display:grid;place-items:center}@media(max-width:600px){.slot-reel-window{--slot-cell-height:clamp(75px,23vw,112px)}.slot-reel-window .slot-cell img{height:calc(100% - 25px);width:calc(100% - 6px)}.slot-reel-window .slot-cell span{min-height:21px}}
.slot-reel-window .slot-cell .slot-art{position:relative;width:100%;height:calc(100% - 25px);overflow:hidden;border-radius:8px}.slot-reel-window .slot-cell .slot-art img{display:block;padding:0;border-radius:0}.slot-reel-window .slot-cell .slot-art .slot-art-back{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%;filter:blur(9px) brightness(.43) saturate(1.35);transform:scale(1.12)}.slot-reel-window .slot-cell .slot-art .slot-art-front{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;object-position:center;filter:drop-shadow(0 1px 8px #000b)}.slot-reel-window .slot-cell[data-symbol-id="crown"] .slot-art .slot-art-front{object-fit:contain;background:transparent}.slot-reel-window.rolling .slot-cell .slot-art .slot-art-front{filter:blur(1.4px) saturate(1.2)}
@media(max-width:600px){.slot-stage .slot-controls{flex-direction:column;align-items:stretch}.slot-stage .slot-stake-control{width:100%}.slot-stage .slot-spin-button{align-self:center}}
/* Slot backgrounds cover the complete game page below the navigation bar. */
.main.slot-page-active{position:relative;isolation:isolate}.main.slot-page-active .slot-page-backdrop{position:absolute;top:78px;left:0;width:100%;height:calc(100% - 78px);object-fit:cover;object-position:center top;z-index:0;pointer-events:none;filter:saturate(1.2) brightness(.92)}.main.slot-page-active:after{content:"";position:absolute;inset:78px 0 0;z-index:0;pointer-events:none;background:linear-gradient(90deg,#08111b48,#08111b2c 52%,#08111b48),linear-gradient(180deg,#08111b44,transparent 30%,#08111b36)}.main.slot-page-active #view{position:relative;z-index:1}.main.slot-page-active .page-head h1,.main.slot-page-active .page-head p{text-shadow:0 2px 12px #000d}.main.slot-page-active .slot-stage{background:#08101b24;box-shadow:0 25px 70px #0007,0 0 36px #ff54c436}.main.slot-page-active .slot-stage:before{background:linear-gradient(90deg,#07132330,#07132315 48%,#07132330)}.main.slot-page-active .slot-stage:after{background:radial-gradient(circle at 48% 54%,#fa399014,transparent 46%)}.main.slot-page-active .slot-stage .slot-machine{background:linear-gradient(150deg,#2b1424bb,#121421c9 65%,#0c121fc2);backdrop-filter:blur(2px)}.main.slot-page-active .slot-stage .slot-rules{background:#0d1420b0;backdrop-filter:blur(3px)}.main.slot-page-active .slot-stage .slot-stake-control{background:#130f19b8}.slot-mascot{display:flex;align-items:center;flex-direction:column;gap:5px;width:max-content;max-width:100%;margin:8px auto -2px;text-align:center}.slot-mascot img{width:80px;height:80px;object-fit:contain;border:2px solid #fbd581;border-radius:14px;background:#3b1726;box-shadow:0 0 0 3px #a72e6d,0 0 20px #ffb662,0 0 27px #ef4dab}.slot-mascot strong{max-width:100%;color:#ffe2a2;font-size:12px;letter-spacing:.09em;line-height:1.2;text-shadow:0 1px 8px #000,0 0 11px #e39848}@media(max-width:800px){.main.slot-page-active .slot-page-backdrop{top:65px;height:calc(100% - 65px)}.main.slot-page-active:after{inset:65px 0 0}}@media(max-width:600px){.slot-mascot img{width:69px;height:69px}.slot-mascot strong{font-size:10px}}
.main.slot-page-active .page-head p{color:#e4e9ed;text-shadow:0 1px 9px #000f}
/* Inventory, presence and notification controls */
.inventory-toolbar,.admin-player-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:0 0 18px}
.inventory-toolbar .field{min-width:170px;margin:0}
.item-select{position:absolute;top:10px;left:10px;z-index:2;background:#111a;padding:4px 7px;border-radius:8px;font-size:11px}
.item-card{position:relative}
.item-select span{margin-left:4px}
.chat-unread{background:#df6b5f;color:#fff;border-radius:999px;padding:2px 6px;font-size:11px}
.presence-dot{color:#7d8796}.presence-dot.online{color:#56d38a}
.trade-reward-modal{text-align:center}.reward-items{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin:20px 0}.reward-item{width:120px;animation:reward-pop .5s ease both}.reward-item img{width:90px;height:90px;object-fit:contain;display:block;margin:auto}.reward-item strong{display:block;margin-top:6px}
@keyframes reward-pop{from{opacity:0;transform:translateY(18px) scale(.8)}to{opacity:1;transform:none}}
/* Case artwork supplied as a complete PNG by the administrator. */
.case-card-image{height:auto;padding:12px;background:#141b26;overflow:hidden}
.case-card-image:after{display:none}
.case-card>.case-card-body{position:static;padding:0 18px 18px;background:transparent;border:0;box-shadow:none}
.case-visual{position:relative;display:grid;place-items:center;width:100%;height:auto;min-height:0;aspect-ratio:1;overflow:hidden;border:1px solid #ffffff1c;border-radius:15px;background:var(--case-gradient,linear-gradient(135deg,#1f2638,#8b5a2b));box-shadow:inset 0 0 50px #090d15b3,0 8px 22px #0006;isolation:isolate}
.case-visual:before{content:"";position:absolute;inset:-20%;z-index:0;background:radial-gradient(ellipse at 50% 60%,#f6cb7859,transparent 58%);pointer-events:none}
.case-art-image{position:absolute;inset:8px;z-index:1;display:block;width:calc(100% - 16px);height:calc(100% - 16px);max-width:none;object-fit:contain;filter:drop-shadow(0 12px 16px #0009);transition:transform .25s ease}
.case-card:hover .case-art-image{transform:scale(1.025)}
.case-cost{z-index:2}
.case-visual-preview{width:min(430px,100%);margin:18px auto 4px}
.case-gradient-editor{margin:16px 0;padding:14px;border:1px solid #394754;border-radius:12px;background:#101821}
.case-gradient-editor>strong{display:block;margin-bottom:12px;color:#ebce8d}
.case-gradient-editor input[type=color]{width:58px;height:40px;padding:3px}
.admin-case-basics .admin-upload img{object-fit:contain;background:#151c26}
.case-opening-modal{max-height:calc(100vh - 30px);overflow-y:auto}
.case-opening-modal .case-visual-modal{width:min(330px,100%);margin:0 auto 10px;aspect-ratio:1}
.slot-card-image{height:190px;position:relative;overflow:hidden;background:transparent}
.slot-card-image>img{width:100%;height:100%;object-fit:cover;filter:brightness(.68) saturate(.8);transition:transform .3s}
.slot-choice:hover .slot-card-image>img{transform:scale(1.05)}
.slot-card-image:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#171e28,transparent 70%);pointer-events:none}
.slot-card-body{padding:12px 18px 18px}
.slot-card-body h2{font-size:23px;margin:0 0 8px}
.slot-card-body p{color:#8793a0;font-size:12px;margin:0 0 14px}
@media(max-width:600px){.case-card-image{height:auto}.case-visual{min-height:0}.case-visual-preview{width:100%}.case-opening-modal .case-visual-modal{width:min(330px,100%)}}
@media(prefers-reduced-motion:reduce){.case-art-image{transition:none}}
/* Crash player identities and personal bet outcome badge. */
.crash-status-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.crash-player{display:flex;align-items:center;gap:9px}
.players-table .tiny-face{width:28px;height:28px}
.crash-result-win{color:#91dba8;font-weight:800}
.crash-result-loss{color:#e4a3a8;font-weight:800}
.profile-link-inline{color:inherit;text-decoration:none;border-bottom:1px solid transparent;font-weight:inherit}.profile-link-inline:hover{color:#f3d17d;border-bottom-color:#b9914f}.chat-author{display:flex;align-items:center;gap:7px;min-width:0}.chat-avatar{width:28px;height:28px;border-radius:8px}.chat-message .chat-author strong{min-width:0}.profile-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:0 0 16px}.profile-stat{padding:15px 14px;display:flex;flex-direction:column;gap:5px}.profile-stat strong{font:700 20px Georgia,serif;color:#f2d18b}.profile-stat span{font-size:11px;color:#96a2ad}.public-profile-identity{display:flex;align-items:center;gap:17px;margin-bottom:16px}.public-profile-identity h2{margin:0 0 6px;font:500 27px Georgia,serif}.public-profile-identity p{margin:0}
.slot-card-image{height:auto;padding:12px;background:#141b26;overflow:hidden}
.slot-choice .slot-card-image{height:auto}
.slot-card-image:after{display:none}
.slot-visual{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1;overflow:hidden;border:1px solid #ffffff1c;border-radius:15px;background:var(--slot-gradient,linear-gradient(135deg,#1f2638,#8b5a2b));box-shadow:inset 0 0 50px #090d15b3,0 8px 22px #0006;isolation:isolate}
.slot-visual:before{content:"";position:absolute;inset:-20%;z-index:0;background:radial-gradient(ellipse at 50% 60%,#f6cb7859,transparent 58%);pointer-events:none}
.slot-art-image{position:absolute;inset:8px;z-index:1;display:block;width:calc(100% - 16px);height:calc(100% - 16px);max-width:none;object-fit:contain;filter:drop-shadow(0 12px 16px #0009);transition:transform .25s ease}
.slot-card:hover .slot-art-image{transform:scale(1.025)}
.slot-gradient-editor{margin:16px 0;padding:14px;border:1px solid #394754;border-radius:12px;background:#101821}
.slot-gradient-editor>strong{display:block;margin-bottom:12px;color:#ebce8d}
.slot-gradient-editor input[type=color]{width:58px;height:40px;padding:3px}
.slot-visual-preview{width:min(430px,100%);margin:18px auto 4px}
@media(max-width:600px){.slot-card-image{height:auto}.slot-visual{min-height:0}.slot-visual-preview{width:100%}}
@media(prefers-reduced-motion:reduce){.slot-art-image{transition:none}}
:root{--line:#293340;--muted:#8f98a6;--gold:#e0bb72;--text:#f6f3eb}.chat-head[data-chat-drag-handle]{cursor:grab;touch-action:none;user-select:none}.chat-panel.dragging .chat-head{cursor:grabbing}.chat-panel.dragging{transition:none}
.chat-tool{border:0;background:transparent;color:var(--muted);font-size:22px;padding:4px 8px;cursor:pointer}.chat-tool:hover{color:var(--gold)}
.chat-picker{position:absolute;left:10px;right:10px;bottom:62px;max-height:240px;overflow:auto;padding:10px;border:1px solid var(--line);border-radius:14px;background:rgba(11,16,24,.98);box-shadow:0 12px 30px #0008;z-index:3}.chat-picker.hidden{display:none}.chat-picker-tabs{display:flex;gap:6px;overflow:auto;margin-bottom:9px}.chat-picker-tab{border:1px solid var(--line);background:transparent;color:var(--muted);border-radius:8px;padding:5px 9px;white-space:nowrap;cursor:pointer}.chat-picker-tab.active{background:var(--gold);color:#19130b;border-color:var(--gold)}.chat-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.chat-picker-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:58px;border:1px solid transparent;border-radius:9px;background:#182130;color:var(--text);padding:5px;cursor:pointer}.chat-picker-item:hover{border-color:var(--gold);transform:translateY(-1px)}.chat-picker-item img{width:54px;height:54px;object-fit:contain}.emoji-item{font-size:26px;min-height:44px}.chat-sticker-message{padding-bottom:10px}.chat-sticker{display:block;width:150px;height:150px;object-fit:contain;margin:7px auto 2px;filter:drop-shadow(0 5px 12px #0008)}.admin-sticker-items{display:grid;gap:7px;margin:12px 0}.admin-sticker-item{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--line);border-radius:8px}.admin-sticker-item img{width:42px;height:42px;object-fit:contain}@media(max-width:600px){.chat-panel{left:8px;right:8px;width:auto;max-height:calc(100vh - 90px);height:min(540px,calc(100vh - 90px));bottom:70px}.chat-picker{max-height:210px}.chat-sticker{width:125px;height:125px}}

/* Sticker controls follow the same dark palette as the rest of the admin panel. */
.visually-hidden{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}
.admin-sticker-packs{display:grid;gap:18px}.admin-sticker-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.admin-sticker-toolbar h3{margin:0 0 5px}.admin-sticker-toolbar .hint{margin:0}.admin-sticker-toolbar button{flex:none}.admin-sticker-pack-list{display:grid;gap:8px}.admin-sticker-pack-row{display:flex;align-items:center;gap:10px;padding:11px 13px;border:1px solid #34424f;border-radius:12px;background:#111923;transition:border-color .18s,background .18s}.admin-sticker-pack-row.active{border-color:#b8955a;background:#1d2530}.admin-sticker-pack-info{flex:1;min-width:0}.admin-sticker-pack-info strong,.admin-sticker-pack-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-sticker-pack-info strong{font-size:14px}.admin-sticker-pack-info small{margin-top:4px;color:#a8b5bf;font-size:11px}.admin-sticker-status{flex:none;padding:5px 9px;border-radius:99px;background:#26303b;color:#aab5bf;font-size:11px;font-weight:700}.admin-sticker-status.enabled{background:#244432;color:#a8e8bc}.admin-sticker-pack-row button{padding:8px 12px;font-size:12px}.admin-sticker-editor{border-top:1px solid #34424f;padding-top:20px}.admin-sticker-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.admin-sticker-editor-heading h3{margin:4px 0 0}.admin-sticker-switch{display:flex;align-items:center;gap:10px;color:#d6e0e4;font-size:13px;cursor:pointer}.admin-sticker-switch input{width:18px;height:18px;accent-color:#d4ac65}.admin-sticker-name{max-width:440px}.admin-sticker-name input,.admin-sticker-item-details input{width:100%}.admin-sticker-source{display:grid;gap:12px;padding:15px;border:1px solid #3a4a55;border-radius:12px;background:#101922}.admin-sticker-source strong,.admin-sticker-source small{display:block}.admin-sticker-source small{margin-top:5px;color:#a6b2bb;font-size:12px}.admin-sticker-source-grid{display:flex;flex-wrap:wrap;gap:9px}.admin-sticker-source-grid img{width:60px;height:60px;object-fit:contain;padding:6px;border:1px solid #394956;border-radius:10px;background:#1c2732}.admin-sticker-subhead{display:flex;align-items:center;justify-content:space-between;margin-top:20px;color:#ebd7af}.admin-sticker-subhead span{color:#a3adb5;font-size:12px}.admin-sticker-item{padding:10px 12px;background:#111922}.admin-sticker-item img{width:64px;height:64px;flex:none;object-fit:contain;border-radius:9px;background:#1c2732;padding:5px}.admin-sticker-item-details{flex:1;min-width:0}.admin-sticker-item-details .field{margin:0}.admin-sticker-item-details strong,.admin-sticker-item-details small{display:block}.admin-sticker-item-details small{color:#99a9b4;font-size:11px;margin-top:5px}.admin-sticker-add{display:grid;gap:12px;margin-top:18px;padding:16px;border:1px solid #394a56;border-radius:13px;background:#101923}.admin-sticker-add-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-sticker-add-fields .field{margin:0}.sticker-select-wrap{position:relative;min-width:0}.sticker-select-wrap:after{content:'⌄';position:absolute;right:14px;top:50%;transform:translateY(-58%);color:#e1bf7b;font-size:22px;pointer-events:none}.sticker-select-wrap select{appearance:none;-webkit-appearance:none;display:block;width:100%;min-height:44px;padding:10px 42px 10px 13px;border:1px solid #4c5a66;border-radius:10px;background:#202c38;color:#f5f1e7;color-scheme:dark;font:600 13px Inter,ui-sans-serif,sans-serif;outline:none;cursor:pointer}.sticker-select-wrap select option{background:#202c38;color:#f5f1e7}.sticker-select-wrap select:hover{border-color:#b89b68}.sticker-select-wrap select:focus-visible{border-color:#e1bd75;box-shadow:0 0 0 3px #d6ac6029}.admin-sticker-add-actions{display:flex;gap:9px;flex-wrap:wrap}.admin-sticker-add-actions button:focus-visible,.admin-sticker-pack-row button:focus-visible{outline:2px solid #e1bd75;outline-offset:2px}.admin-sticker-save{justify-self:start}
@media(max-width:700px){.admin-sticker-toolbar,.admin-sticker-editor-heading{align-items:flex-start;flex-direction:column}.admin-sticker-pack-row{flex-wrap:wrap}.admin-sticker-pack-info{flex-basis:calc(100% - 110px)}.admin-sticker-pack-row button{flex:1}.admin-sticker-add-fields{grid-template-columns:1fr}.admin-sticker-add-actions button{width:100%}.admin-sticker-item{flex-wrap:wrap}.admin-sticker-item-details{flex-basis:calc(100% - 76px)}.admin-sticker-item>button{margin-left:auto}}
/* Mini games */
.mini-back{margin-bottom:18px}.mini-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.mini-card{overflow:hidden}.mini-card>img{width:100%;height:330px;object-fit:cover;object-position:center 48%}.mini-card-body{padding:22px}.mini-card-body h2{margin:0 0 10px;font:500 27px Georgia,serif}.mini-card-body p{min-height:58px;color:#aeb7c1;line-height:1.5}.mini-card-body button{width:100%;margin-top:8px}.tower-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(285px,.7fr);gap:18px;align-items:start}.tower-layout>div:first-child{min-width:0}.tower-art{overflow:hidden;margin-bottom:15px}.tower-art img{width:100%;max-height:470px;object-fit:cover;object-position:center 43%}.tower-building{padding:12px;background:linear-gradient(150deg,#2b2119,#111821)}.tower-floor{display:grid;grid-template-columns:40px 1fr 90px;align-items:center;gap:12px;padding:8px 12px;border-bottom:1px solid #8a6a3b55;color:#aaa}.tower-floor:last-child{border:0}.tower-floor.current{background:#9e712b40;color:#ffe0a0;border-radius:8px;box-shadow:inset 0 0 0 1px #d6a95466}.tower-floor.cleared{color:#a7e4ae}.tower-floor>strong{font-size:24px;color:#e9bc6b}.tower-floor>b{text-align:right;color:#e9bc6b}.tower-doors{display:flex;gap:8px;justify-content:center}.tower-door{width:52px;height:42px;background:linear-gradient(#463021,#211810);color:#f5cf8b;border:1px solid #ae7b3c;border-radius:7px;font-size:22px}.tower-door:not(:disabled):hover{background:#88602b;transform:translateY(-2px)}.tower-door.safe{background:#23533c}.tower-door.trap{background:#783239}.tower-door:disabled{opacity:.72}.mini-controls{position:sticky;top:96px;display:grid;gap:10px}.mini-controls h2{margin:0 0 7px}.mini-controls p{margin:4px 0;color:#c5cbd0}.mini-controls strong,.mini-potential{color:#f0ce7d!important}.mini-controls .field{margin:0}.race-hero{position:relative;overflow:hidden;margin-bottom:18px}.race-hero img{width:100%;height:290px;object-fit:cover;object-position:center 60%;filter:brightness(.72)}.race-hero>div{position:absolute;left:18px;top:18px;display:grid;gap:4px;padding:12px 16px;border:1px solid #977344;border-radius:12px;background:#101820d9}.race-hero strong{font-size:23px;color:#f7d381}.race-hero span{font-size:13px}.race-track{padding:18px;margin-bottom:18px;background:linear-gradient(#1a242c,#12181e)}.race-lane{display:grid;grid-template-columns:125px 1fr;align-items:center;gap:12px;min-height:62px;border-bottom:1px solid #4c596055}.race-lane:last-child{border:0}.race-lane>span{font-size:12px;font-weight:750}.race-lane-road{position:relative;height:51px;margin-right:77px;background:repeating-linear-gradient(90deg,#52606a55 0 20px,transparent 20px 37px);border-bottom:2px dashed #8a9394}.race-marker{position:absolute;top:-3px;width:52px;height:52px;border-radius:50%;border:2px solid #e0bc69;background-image:url('/images/race-racers.png');background-size:500% auto;background-position:calc(var(--racer-index) * 25%) 5%;background-color:#25303a;box-shadow:0 4px 12px #000a;transform:translateX(-10%)}.race-finish{position:absolute;left:100%;top:15px;width:78px;text-align:center;color:#f2d078;font-size:10px;font-weight:800}.race-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,.7fr);gap:18px}.racer-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.racer-choice{min-width:0;display:grid;justify-items:center;gap:5px;padding:8px 4px;border:1px solid #46525c;border-radius:10px;background:#19232d;color:#e6e8eb}.racer-choice.selected{border-color:#e4b85f;box-shadow:0 0 0 1px #e4b85f;background:#3b3023}.racer-choice strong{font-size:10px;overflow-wrap:anywhere;text-align:center}.racer-choice b{color:#f0d17e}.racer-portrait{width:62px;height:62px;border-radius:9px;background-image:url('/images/race-racers.png');background-size:500% auto;background-position:calc(var(--racer-index) * 25%) 5%;background-color:#26323b}.race-places{border-top:1px solid #34414a;padding-top:12px}.race-places h3{margin:0}.race-places p{margin:5px 0}
@media(max-width:900px){.tower-layout,.race-layout{grid-template-columns:1fr}.mini-controls{position:static}.racer-choices{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:800px){.mobile-nav{gap:0;padding-left:2px;padding-right:2px}.mobile-nav .nav-btn{flex:1;min-width:0;width:0;gap:1px;padding:4px 0;font-size:8px;line-height:1.1;white-space:normal}.mobile-nav .nav-btn .ico{font-size:18px}.mini-catalog{grid-template-columns:1fr}.mini-card>img{height:245px}.tower-art img{max-height:340px}.race-hero img{height:210px}.race-lane{grid-template-columns:84px 1fr;gap:5px}.race-lane>span{font-size:10px}.race-lane-road{margin-right:62px}.race-finish{width:64px;font-size:9px}.racer-portrait{width:45px;height:48px}.racer-choice strong{font-size:8px}.tower-floor{grid-template-columns:24px 1fr 58px;padding:6px 5px;gap:3px}.tower-floor>strong{font-size:18px}.tower-floor>b{font-size:12px}.tower-door{width:42px;height:36px;font-size:18px}}
.race-hero img{object-position:center 39%}.race-finish{top:6px;width:32px;font-size:25px}.race-track:before{content:'ФИНИШ · ПЯТЁРОЧКА';display:block;text-align:right;margin:-6px 2px 4px;color:#e9c778;font-size:11px;font-weight:800;letter-spacing:.06em}
.race-lane:nth-child(1) .race-marker,.racer-choice:nth-child(1) .racer-portrait{background-position:0% 5%}.race-lane:nth-child(2) .race-marker,.racer-choice:nth-child(2) .racer-portrait{background-position:25% 5%}.race-lane:nth-child(3) .race-marker,.racer-choice:nth-child(3) .racer-portrait{background-position:50% 5%}.race-lane:nth-child(4) .race-marker,.racer-choice:nth-child(4) .racer-portrait{background-position:75% 5%}.race-lane:nth-child(5) .race-marker,.racer-choice:nth-child(5) .racer-portrait{background-position:100% 5%}
.mini-card>img[src$="race-racers.png"]{object-fit:contain;padding:18px;background:radial-gradient(circle at center,#34415a,#131a25 70%)}.content:has(.mini-catalog) .page-head p{font-style:italic}
@media(max-width:800px){.tower-layout{display:flex;flex-direction:column}.tower-layout>div:first-child{display:contents}.tower-art{order:0;width:100%;margin-bottom:0}.tower-layout .mini-controls{order:1;width:100%}.tower-building{order:2;width:100%}.race-hero img{height:190px;transform:scale(1.55);object-position:center 48%}.race-hero>div{top:10px;left:10px;padding:7px 10px}.race-hero strong{font-size:16px}.race-hero span{font-size:11px}.race-track:before{font-size:9px}.race-finish{width:23px;font-size:20px}.race-lane-road{margin-right:35px}}

/* The supplied house and track are the playable surfaces. */
.tower-layout{grid-template-columns:minmax(0,1.65fr) minmax(285px,.72fr);align-items:start}
.tower-scene{min-width:0;overflow:hidden;border:1px solid #8a6a3b7a;border-radius:16px;background:#0e1724;box-shadow:0 16px 38px #0006}
.tower-board{position:relative;line-height:0}
.tower-board picture,.tower-board picture img{display:block;width:100%;height:auto}
.tower-hotspots{position:absolute;inset:0;pointer-events:none}
.tower-hotspot{position:absolute;z-index:1;width:5.8%;height:8%;min-width:34px;min-height:34px;transform:translate(-50%,-50%);padding:0;border:2px solid transparent;border-radius:8px;background:transparent;color:#fff;pointer-events:none;cursor:default;transition:border-color .18s,background .18s,box-shadow .18s,filter .18s}
.tower-hotspot:disabled{opacity:1}
.tower-hotspot.available{pointer-events:auto;cursor:pointer;border-color:#ffe2a2;background:#ffdb7036;box-shadow:0 0 0 3px #0d1218aa,0 0 20px 5px #ffbd53ba,inset 0 0 17px #ffcf7655;animation:tower-door-pulse 1.5s ease-in-out infinite}
.tower-hotspot.available:focus-visible{outline:none;background:#ffe09970;box-shadow:0 0 0 4px #ffe2a6,0 0 30px 12px #ffc65bbb}
@media(hover:hover){.tower-hotspot.available:hover{background:#ffe09970;box-shadow:0 0 0 4px #ffe2a6,0 0 30px 12px #ffc65bbb}}
.tower-hotspot.opening{animation:tower-door-open .42s ease-in forwards;pointer-events:none}
.tower-hotspot.safe{border-color:#6fe09b;background:#55d3949c;box-shadow:0 0 26px 9px #4fe6989c}
.tower-hotspot.trap{border-color:#ff6565;background:#ed394aa6;box-shadow:0 0 28px 12px #f5364eaa;animation:tower-trap .35s ease-in-out 2}
.tower-hotspot.safe:after,.tower-hotspot.trap:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(18px,2.4vw,35px);line-height:1;text-shadow:0 2px 4px #000}
.tower-hotspot.trap:after{content:'✕'}
.tower-scene-caption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:11px 16px;color:#aab5c1;font-size:12px}
.tower-scene-caption strong{color:#e9c681}
.tower-controls{border-color:#7f613b9c;background:linear-gradient(150deg,#202a34,#111920)}
.tower-controls h2{font:500 26px Georgia,serif;color:#fff1d4}
.tower-round-stats{display:grid;gap:3px;padding:10px 0}
.tower-round-stats span{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #ffffff1b;color:#c3cbd0}
.tower-round-stats strong{color:#f0ce7d;white-space:nowrap}
.mini-stake-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.mini-stake-quick button{min-width:0;padding:8px 3px}
.mini-stake-warning{min-height:0;margin:0!important;color:#f0aa9f!important;font-size:12px}
.mini-stake-warning:empty{display:none}
.mini-offline{margin-bottom:14px;padding:12px 16px;border:1px solid #bf6868;border-radius:11px;background:#3b2429;color:#ffe7e4;font-size:13px}
.tower-controls .primary,.tower-controls .secondary,.race-layout .primary{min-height:46px}
@keyframes tower-door-pulse{50%{box-shadow:0 0 0 3px #0d1218aa,0 0 28px 10px #ffbd53ea,inset 0 0 25px #ffcf7699}}
@keyframes tower-door-open{to{transform:translate(-50%,-50%) perspective(80px) rotateY(-56deg);background:#ffefb0bb}}
@keyframes tower-trap{50%{filter:brightness(2)}}

.races-play{display:flex;flex-direction:column;gap:16px}
.race-stage-wrap{overflow:hidden;border:1px solid #6a7680;border-radius:16px;background:#0a141f;box-shadow:0 17px 38px #0007}
.race-stage{position:relative;width:100%;aspect-ratio:3/2;overflow:hidden;isolation:isolate;background:#172b3b}
.race-stage picture,.race-stage picture img{display:block;width:100%;height:100%}
.race-background{object-fit:fill}
.race-stage-overlay{position:absolute;inset:0;pointer-events:none}
.racer-position{position:absolute;top:0;left:0;width:9.5%;will-change:transform;transform-origin:center bottom;filter:drop-shadow(0 10px 8px #000b)}
.racer-position img{display:block;width:100%;height:auto}
.racer-position.moving .racer-running{animation:racer-stride .26s ease-in-out infinite alternate}
.racer-position:nth-child(2).moving .racer-running{animation-duration:.31s}
.racer-position:nth-child(3).moving .racer-running{animation-duration:.24s}
.racer-position:nth-child(4).moving .racer-running{animation-duration:.29s}
.racer-position:nth-child(5).moving .racer-running{animation-duration:.27s}
.racer-position.winner{filter:drop-shadow(0 0 14px #ffd16d) drop-shadow(0 10px 8px #000b)}
.race-stage-status{position:absolute;top:14px;left:14px;display:grid;gap:3px;max-width:calc(100% - 28px);padding:9px 13px;border:1px solid #e4bd7a8a;border-radius:11px;background:#101923e8;color:#fff;font-size:13px;box-shadow:0 6px 15px #0005}
.race-stage-status strong{font-size:22px;color:#ffdc93;line-height:1.1;overflow-wrap:anywhere}
.race-stage-status span{color:#dee6ed}
.race-track-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 16px;color:#d3dce1;font-size:13px}
.race-track-footer strong{color:#f4d38c}
.race-layout{grid-template-columns:minmax(0,1.5fr) minmax(270px,.7fr);align-items:start}
.race-picks h2{margin:0 0 14px}
.racer-choice{min-height:135px;align-content:start;transition:transform .2s,border-color .2s,box-shadow .2s}
.racer-choice:not(:disabled):hover{transform:translateY(-3px);border-color:#e4b85f}
.racer-choice:focus-visible{outline:2px solid #ffe0a4;outline-offset:2px}
.racer-choice:disabled{opacity:.78}
.racer-portrait{display:block;width:70px;height:78px;object-fit:contain;object-position:center 65%;background:none;border-radius:0}
.racer-choice strong{font-size:11px;line-height:1.1}
.racer-choice b{font-size:15px}
.race-places p{display:flex;gap:12px;align-items:center}
.race-places p b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e0bb72;color:#1b1a17}
@keyframes racer-stride{to{transform:translateY(-3px) rotate(1deg)}}
@media(max-width:1023px){.tower-layout{display:flex;flex-direction:column}.tower-layout>.tower-scene{display:block;order:0;width:100%}.tower-layout>.tower-controls{order:1;width:100%;position:static}.tower-hotspot{width:10.5%;height:7%;min-width:34px;min-height:34px}}
@media(max-width:767px){.races-play.race-phase-betting .race-layout{order:0}.races-play.race-phase-betting .race-stage-wrap{order:1}.race-stage{aspect-ratio:941/1672}.racer-position{width:18%}.race-layout{grid-template-columns:1fr}.racer-choices{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.racer-choice{min-height:105px;padding:5px 2px}.racer-portrait{width:100%;max-width:55px;height:56px}.racer-choice strong{font-size:8px}.racer-choice b{font-size:12px}.race-picks,.race-layout .mini-controls{padding:14px}.race-stage-status{top:8px;left:8px;padding:6px 9px;font-size:11px}.race-stage-status strong{font-size:18px}.race-track-footer{font-size:11px}.tower-scene-caption{font-size:11px}.tower-controls h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){.tower-hotspot.available,.tower-hotspot.opening,.tower-hotspot.trap,.racer-position.moving .racer-running{animation:none}}
