button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #18b4fa; outline-offset: 3px;
}
.tilt-tasks-page { min-height: 55vh; }
.tilt-task-feedback { padding: 14px; border: 1px solid #ff426d40; border-radius: 16px; background: #ff426d0a; margin-bottom: 16px; }
.tilt-task-feedback p { margin: 0 0 12px; }
.tilt-task-retry { min-height: 44px; padding: 0 16px; border: 1px solid #ffffff29; border-radius: 12px; background: #ffffff0f; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.tilt-task-retry:disabled { opacity: .5; cursor: wait; }
.tilt-task-skeletons { display: grid; gap: 12px; }
.tilt-task-skeleton { height: 138px; border-radius: 20px; border: 1px solid #ffffff0d; background: linear-gradient(100deg,#141418 25%,#202027 45%,#141418 65%); background-size: 240% 100%; animation: tilt-skeleton 1.6s ease-in-out infinite; }
.tilt-task-skeleton span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@keyframes tilt-skeleton { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.tilt-tasks-page article { transition: border-color .18s ease, opacity .18s ease; }
.tilt-tasks-page article[class*='_cardDone_'] { opacity: .6; animation: none; }
.tilt-tasks-page button { touch-action: manipulation; min-height: 44px; }
.tilt-tasks-page [class*='_taskTitle_'], .tilt-tasks-page [class*='_taskDesc_'] { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
    .tilt-tasks-page * { animation: none !important; transition: none !important; }
    .tilt-task-skeleton, .tilt-tasks-page article, .live-drops__track, .live-drops__dot, [class*='_dot_'] { animation: none !important; }
    .bottom-nav__indicator, .bottom-nav__tab, .copy-toast, .tilt-tasks-page button { transition: none !important; }
}

/* Case cards and reel use the same red palette as the rest of TILT. */
.cases-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.cases-card{min-width:0;flex-direction:column!important;text-align:center;padding:14px 10px!important;gap:10px!important}
.cases-card__art{width:100%!important;height:auto!important;aspect-ratio:1;max-height:160px;object-fit:contain}
.cases-card__title{overflow-wrap:anywhere;font-size:15px!important}
.cases-page:has(.case-reel){display:flex;flex-direction:column}
.cases-page:has(.case-reel)>.cases-back{order:0}.cases-page:has(.case-reel)>.cases-hero{order:1}
.cases-page:has(.case-reel)>.case-reel{order:2}.cases-page:has(.case-reel)>.cases-open{order:3;margin:18px 0!important;min-height:58px}
.cases-page:has(.case-reel)>.cases-error{order:4}.cases-page:has(.case-reel)>.cases-prizes{order:5}
.cases-prizes::before{content:'Возможные призы';grid-column:1/-1;font-weight:600;font-size:16px;margin:4px 0 8px;color:#bfb9bd}
.case-reel--horizontal{height:220px!important;border-radius:28px!important;border:1px solid #ffffff18!important;background:#090709!important;overflow:hidden}
.case-reel__viewport--horizontal{height:100%!important;mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent)}
.case-reel__cell--horizontal{height:100%!important;padding:16px 6px!important;box-sizing:border-box}
.case-reel__cell-inner{height:100%!important;border:1px solid #ffffff18;border-radius:24px!important;background:linear-gradient(180deg,#1d1a20 22%,#64112d 100%)!important;display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:6px;box-sizing:border-box;overflow:hidden}
.case-reel__cell-img{height:110px!important;width:85%!important;object-fit:contain}
.case-reel__caption{font-size:12px;font-weight:600;max-width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.case-reel__price{display:flex;align-items:center;gap:5px;font-weight:700;font-size:14px}
.case-reel__line-v{opacity:0!important}.case-reel__pointer{z-index:3;filter:drop-shadow(0 0 8px #ff174e88)}
.tilt-tasks-page img{display:block}
@media(max-width:360px){.case-reel--horizontal{height:190px!important}.case-reel__cell-img{height:90px!important}}
/* Keep animation work on transforms; reserve layout for controls and game boards. */
.tilt-field__stage,.ice-field__stage{isolation:isolate;box-shadow:inset 0 0 50px #ff174e08,0 12px 35px #0004}
.tilt-field__gift,.ice-field__gift{filter:drop-shadow(0 5px 8px #0006)}
button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:focus-visible{outline:2px solid #ff416c;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.case-reel__strip{transition-duration:1ms!important}.tilt-field__gift,.ice-field__gift{filter:none}}

._gameArea_9k2no_8{gap:16px!important;padding:12px 16px 24px!important}
._gridWrap_9k2no_145{max-width:min(100%,390px)!important;margin:4px auto 10px}
._grid_9k2no_145{box-sizing:border-box;padding:10px!important;gap:7px!important;border:1px solid #ffffff0d}
._cell_9k2no_189{transition:transform .2s cubic-bezier(.2,.8,.2,1),border-color .2s,background .2s!important;min-width:0}
._cell_9k2no_189:active:not(:disabled){transform:scale(.94)}
._betDock_9k2no_267{max-width:390px!important}
.tilt-game-error{width:100%;box-sizing:border-box;border:1px solid #ff416c44;border-radius:14px;padding:12px;color:#ffb5c5;background:#ff174e0a;font-size:14px}
@media(prefers-reduced-motion:reduce){._cell_9k2no_189,._gridWrap_9k2no_145{animation:none!important;transition:none!important}}

.upgrade-page{gap:18px!important;padding-top:10px!important}
.upgrade-page__slots{gap:14px!important}.upgrade-slot{border-radius:24px!important;transition:transform .2s,border-color .2s!important}
.upgrade-slot__img{object-fit:contain!important;padding:10%;box-sizing:border-box}
.upgrade-page__go{min-height:54px!important;border-radius:18px!important}
.upgrade-page__go.is-ready{background:linear-gradient(180deg,#ff174e,#d70035)!important;border-color:#ff416c66!important;box-shadow:0 8px 24px #ff174e24!important}
.upgrade-wheel__rotor{will-change:transform}.upgrade-wheel.is-spinning .upgrade-wheel__rotor{transition-timing-function:cubic-bezier(.14,.75,.12,1)!important}
.upgrade-slot:focus-visible{outline:2px solid #ff416c!important;outline-offset:3px}
.chicken-road-page{padding-bottom:18px}.chicken-road-page canvas{border-radius:22px;box-shadow:0 12px 35px #0004}
@media(prefers-reduced-motion:reduce){.upgrade-wheel.is-spinning .upgrade-wheel__rotor{transition-duration:.01ms!important}.upgrade-slot{transition:none!important}}
.case-reel__viewport--horizontal{height:auto!important;top:12px!important;bottom:12px!important}
.case-reel__strip--horizontal{height:100%!important}
.case-reel__cell-inner{aspect-ratio:auto!important;padding:10px!important}
.case-reel__cell-img{height:0!important;min-height:0;flex:1 1 0;width:100%!important;object-fit:contain}
.case-reel__caption,.case-reel__price{flex:0 0 auto;line-height:18px}
.cases-prizes{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
._gridWrap_9k2no_145[data-cols="3"]{max-width:min(100%,290px)!important}
._gridWrap_9k2no_145[data-cols="5"]{max-width:min(100%,340px)!important}
._gameArea_9k2no_8{padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}
