/* ==========================================================================
   Экран «Призы каждый час» — hourly*
   Холст 1920×1080, адаптивный: левая колонка держится за левый край,
   панель призов — за правый. Шапку, рамку карточек и цвета редкости берём
   из общего слоя кейсов (kc-*), чтобы экран выглядел родным.
   ========================================================================== */

.hr-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 620px at 18% 86%, rgba(255, 188, 55, 0.20), transparent 70%),
        radial-gradient(760px 520px at 86% 14%, rgba(72, 140, 255, 0.16), transparent 70%);
}

/* ---------- левая колонка ---------- */

.hr-left {
    position: absolute;
    left: 71px;
    top: 226px;
    bottom: 54px;
    width: 690px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: var(--kui-font);
    color: #fff;
}

.hr-h {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 64px;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.hr-h b {
    color: var(--kui-gold-a);
    font-weight: 700;
}

.hr-plus {
    position: relative;
    width: 68px;
    height: 68px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(180deg, #FFE27A 0%, var(--kui-gold-b) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
    box-shadow: 0 0 22px rgba(255, 188, 55, 0.55);
}

/* перелив: светлая полоса пробегает по кнопке, двигается только transform */
.hr-plus { overflow: hidden; }

.hr-plus::before {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    width: 46%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-160%) skewX(-18deg);
    pointer-events: none;
    animation: hrPlusShine 2.4s ease-in-out infinite;
}

.hr-plus svg { position: relative; z-index: 1; }

.hr-plus:active { transform: scale(0.92); }

@keyframes hrPlusShine {
    0% { transform: translateX(-160%) skewX(-18deg); }
    55%, 100% { transform: translateX(330%) skewX(-18deg); }
}

.hr-plus-calm::before { animation-duration: 4.8s; }

.hr-cats {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hr-cat {
    position: relative;
    height: 92px;
    border: none;
    border-radius: 17px;
    background: #212228;
    box-shadow: inset 0 0 0 4px var(--kui-line);
    color: #fff;
    font-family: var(--kui-font);
    font-size: 44px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px 0 34px;
    cursor: pointer;
    text-align: left;
    transition: transform 0.12s ease-out, background 0.2s, box-shadow 0.2s;
}

.hr-cat:active { transform: scale(0.985); }

.hr-cat-on {
    background: linear-gradient(90deg, #4C8DFF 0%, #2E6BFF 100%);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.45), 0 0 34px rgba(62, 120, 255, 0.45);
    font-weight: 700;
}

.hr-cat-empty { opacity: 0.45; }

.hr-cat-name {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hr-cat-up {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: #0F2B10;
    background: #6DF07D;
    border-radius: 9px;
    padding: 6px 10px 5px;
}

.hr-badge {
    min-width: 110px;
    height: 54px;
    padding: 0 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--kui-gold-a) 0%, var(--kui-gold-b) 100%);
    color: #2a1d05;
    font-size: 34px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.hr-badge small {
    font-size: 26px;
    font-weight: 700;
    margin-right: 10px;
}

.hr-tlabel {
    text-align: center;
    font-size: 36px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin-top: auto;
    line-height: 1;
}

.hr-timer {
    height: 88px;
    border-radius: 17px;
    background: rgba(17, 18, 21, 0.75);
    box-shadow: inset 0 0 0 4px var(--kui-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 66px;
    font-weight: 700;
    letter-spacing: 3px;
    font-variant-numeric: tabular-nums;
}

.hr-timer-ready {
    color: var(--kui-gold-a);
    letter-spacing: 1px;
    box-shadow: inset 0 0 0 4px rgba(255, 213, 92, 0.6), 0 0 30px rgba(255, 188, 55, 0.25);
}

@keyframes hrReadyPulse {
    0%, 100% { box-shadow: inset 0 0 0 4px rgba(255, 213, 92, 0.45), 0 0 14px rgba(255, 188, 55, 0.15); }
    50% { box-shadow: inset 0 0 0 4px rgba(255, 213, 92, 0.95), 0 0 38px rgba(255, 188, 55, 0.45); }
}

.hr-open {
    position: relative;
    height: 116px;
    margin-top: 6px;
    border: none;
    border-radius: 17px;
    background: linear-gradient(90deg, #5B9BFF 0%, #2E7BFF 100%);
    color: #fff;
    font-family: var(--kui-font);
    font-size: 46px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 0 34px rgba(62, 120, 255, 0.40);
}

.hr-open:active { transform: scale(0.985); }

    100% { left: 110%; }
}

.hr-cnt {
    min-width: 62px;
    height: 62px;
    padding: 0 12px;
    border-radius: 13px;
    background: #E8F0FF;
    color: #1B2C52;
    font-size: 44px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hr-open-off {
    background: linear-gradient(90deg, #3A4256 0%, #2D3345 100%);
    color: rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.hr-open-off .hr-cnt { background: #4A5267; color: rgba(255, 255, 255, 0.7); }

.hr-now {
    height: 80px;
    margin-top: 30px;
    border: none;
    border-radius: 17px;
    background: linear-gradient(90deg, var(--kui-gold-a) 0%, var(--kui-gold-b) 100%);
    color: #2a1d05;
    font-family: var(--kui-font);
    font-size: 42px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
}

.hr-now:active { transform: scale(0.985); }
.hr-now-off { filter: grayscale(0.8); opacity: 0.5; }

.hr-coin {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
}

/* ---------- правая панель: призы категории ---------- */

.hr-right {
    position: absolute;
    right: 71px;
    top: 226px;
    bottom: 54px;
    width: 900px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: var(--kui-font);
}

.hr-rhead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    height: 64px;
    padding: 0 6px;
    color: #fff;
}

.hr-rtitle {
    font-size: 44px;
    font-weight: 700;
    white-space: nowrap;
}

.hr-rtitle b { color: var(--kui-gold-a); font-weight: 700; }

.hr-rhint {
    font-size: 26px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.hr-panel {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 17px;
    background: #212228;
    box-shadow: inset 0 0 0 4px var(--kui-line);
    overflow: hidden;
}

.hr-grid {
    position: absolute;
    inset: 4px;
    padding: 16px 40px 16px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 272px;
    gap: 16px;
    scrollbar-width: none;
}

.hr-grid::-webkit-scrollbar { display: none; }

.hr-track {
    position: absolute;
    right: 14px;
    top: 26px;
    bottom: 26px;
    width: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    z-index: 3;
    touch-action: none;
}

/* зона попадания пальцем шире видимой дорожки */
.hr-track::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20px;
    right: -14px;
}

.hr-thumb {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--kui-gold-a) 0%, var(--kui-gold-b) 100%);
    box-shadow: 0 0 14px rgba(255, 188, 55, 0.55);
    transition: box-shadow 0.15s, filter 0.15s;
}

.hr-thumb-on {
    filter: brightness(1.2);
    box-shadow: 0 0 24px rgba(255, 213, 92, 0.9);
}

/* карточка приза: рамка и цвета - общие kc-card, сверху полоса редкости */
.hr-card {
    width: 100%;
    height: 100%;
}

@keyframes hrCardIn {
    from { opacity: 0; transform: translateY(18px) scale(0.94); }
    to { opacity: 1; transform: none; }
}

.hr-card .kc-card-cap { font-size: 23px; top: 67%; }
.hr-card .kc-card-cap-long { font-size: 17px; }

.hr-card::before {
    content: "";
    position: absolute;
    left: 27%;
    right: 27%;
    top: 7%;
    height: 5px;
    border-radius: 4px;
    z-index: 2;
    background: var(--hr-bar, #26D950);
    box-shadow: 0 0 12px var(--hr-bar, #26D950);
}

.hr-card[data-r="1"] { --hr-bar: #26D950; }
.hr-card[data-r="2"] { --hr-bar: #48B2FF; }
.hr-card[data-r="3"] { --hr-bar: #C24BFF; }
.hr-card[data-r="4"] { --hr-bar: #FFBC37; }
.hr-card[data-r="5"] { --hr-bar: #FFD55C; }

.hr-card[data-r="5"]::before {
    left: 16%;
    right: 16%;
    height: 6px;
    background: linear-gradient(90deg, transparent, #FFF1B0, #FFBC37, #FFF1B0, transparent);
}

@keyframes hrBarShine {
    0%, 100% { filter: brightness(1); box-shadow: 0 0 10px #FFBC37; }
    50% { filter: brightness(1.5); box-shadow: 0 0 26px #FFD55C; }
}


@keyframes hrGoldBreath {
    0%, 100% { filter: hue-rotate(150deg) saturate(1.3) brightness(1); }
    50% { filter: hue-rotate(150deg) saturate(1.5) brightness(1.25); }
}

/* ---------- окно подтверждения ---------- */

.hr-modal {
    position: absolute;
    inset: 0;
    z-index: 14;
    background: rgba(12, 13, 18, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--kui-font);
    color: #fff;
    text-align: center;
    animation: kcFadeIn 0.2s ease-out;
}

.hr-m-small { font-size: 42px; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.hr-m-big {
    margin-top: 10px;
    max-width: 1500px;
    font-size: 88px;
    line-height: 0.98;
    font-weight: 700;
}
.hr-m-big b { color: var(--kui-gold-a); font-weight: 700; }

.hr-m-sub {
    margin-top: 26px;
    font-size: 34px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.hr-m-sub b { color: #6DF07D; font-weight: 700; }

.hr-m-btns {
    margin-top: 54px;
    display: flex;
    gap: 34px;
}

.hr-mb {
    min-width: 500px;
    height: 112px;
    padding: 0 40px;
    border: none;
    border-radius: 17px;
    font-family: var(--kui-font);
    font-size: 46px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
}

.hr-mb:active { transform: scale(0.98); }
.hr-mb-blue { background: linear-gradient(90deg, #5B9BFF 0%, #2E7BFF 100%); color: #fff; }
.hr-mb-gold { background: linear-gradient(90deg, var(--kui-gold-a) 0%, var(--kui-gold-b) 100%); color: #2a1d05; }
.hr-mb-ghost { background: #212228; box-shadow: inset 0 0 0 4px #AAB4D8; color: #fff; min-width: 300px; }
.hr-mb-off { filter: grayscale(0.85); opacity: 0.45; }

.hr-m-lack {
    margin-top: 16px;
    font-size: 28px;
    font-weight: 500;
    color: #FF6B6B;
}

/* ==========================================================================
   Выпадение приза
   ========================================================================== */

.hr-reveal {
    --hc: #FFBC37;
    position: absolute;
    inset: 0;
    z-index: 20;
    overflow: hidden;
    font-family: var(--kui-font);
    color: #fff;
    background: rgba(10, 11, 16, 0.985);
    animation: kcFadeIn 0.3s ease-out;
}

.hr-reveal.hr-shake { animation: hrScreenShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }

@keyframes hrScreenShake {
    10%, 90% { transform: translate(-3px, 1px); }
    20%, 80% { transform: translate(6px, -3px); }
    30%, 50%, 70% { transform: translate(-10px, 4px); }
    40%, 60% { transform: translate(10px, -4px); }
}

.hr-rays {
    position: absolute;
    left: 50%;
    top: 500px;
    width: 1500px;
    height: 1500px;
    margin: -750px 0 0 -750px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    background: repeating-conic-gradient(from 0deg, var(--hc) 0deg 5deg, transparent 5deg 30deg);
    animation: hrRaysIn 0.9s ease-out both;
    transition: opacity 0.5s ease-out;
}

.hr-rays-on { opacity: 0.38; }

@keyframes hrRaysIn { from { transform: scale(0.4); } to { transform: scale(1); } }

.hr-aura {
    position: absolute;
    left: 50%;
    top: 500px;
    width: 1100px;
    height: 1100px;
    margin: -550px 0 0 -550px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, var(--hc) 0%, transparent 62%);
    opacity: 0.12;
    transition: opacity 0.4s ease-out;
}

.hr-aura-on { opacity: 0.5; }

@keyframes hrAuraBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.hr-rtitle2 {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    text-align: center;
    font-size: 92px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}

.hr-rtitle2-win {
    color: var(--kui-gold-a);
    animation: kcDrop 0.6s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.hr-rsub {
    position: absolute;
    left: 0;
    right: 0;
    top: 170px;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    opacity: 0;
}

.hr-rsub-on { animation: kcRise 0.5s 0.15s ease-out both; }

.hr-rname {
    position: absolute;
    left: 0;
    right: 0;
    top: 222px;
    text-align: center;
    font-size: 54px;
    line-height: 1;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.hr-rname-win {
    font-size: 76px;
    color: #fff;
    animation: hrNamePop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}

@keyframes hrNamePop {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.hr-stagecard {
    position: absolute;
    left: 50%;
    top: 330px;
    width: 420px;
    height: 420px;
    margin-left: -210px;
    z-index: 2;
    animation: hrStageIn 0.6s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}

.hr-stagecard .kc-card-cap { display: none; }

.hr-stagecard .kc-card-art { width: 76%; height: 66%; top: 46%; }
.hr-stagecard .kc-card-art.kui-snap-v { width: 94%; top: 48%; }

@keyframes hrStageIn {
    from { transform: translateY(150px) scale(0.6); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.hr-stagecard.hr-swap { animation: hrSwap 0.2s ease-out both; }

@keyframes hrSwap {
    from { transform: translateY(40px) scale(0.86); opacity: 0.35; }
    to { transform: none; opacity: 1; }
}

.hr-stagecard.hr-win {
    animation: hrWinPop 0.85s cubic-bezier(0.2, 1.6, 0.3, 1) both;
}

@keyframes hrWinPop {
    0% { transform: translateY(40px) scale(0.75); }
    45% { transform: translateY(-46px) scale(1.22); }
    70% { transform: translateY(6px) scale(0.97); }
    100% { transform: translateY(-14px) scale(1.08); }
}

/* блик, проходящий по карточке-победителю */
.hr-shine {
    position: absolute;
    inset: 4% 4%;
    border-radius: 18px;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

.hr-shine::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    width: 90px;
    left: -140px;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
    transform: skewX(-20deg);
    animation: hrShineGo 1.1s 0.5s ease-in-out 2 both;
}

@keyframes hrShineGo {
    from { left: -140px; }
    to { left: 110%; }
}

.hr-box {
    position: absolute;
    left: 50%;
    top: 648px;
    width: 340px;
    margin-left: -170px;
    z-index: 4;
    pointer-events: none;
    animation: hrBoxShake 0.5s ease-in-out infinite;
}

@keyframes hrBoxShake {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    20% { transform: rotate(-2.4deg) translateX(-5px); }
    40% { transform: rotate(2.4deg) translateX(5px); }
    60% { transform: rotate(-1.6deg) translateX(-3px); }
    80% { transform: rotate(1.6deg) translateX(3px); }
}

.hr-box.hr-box-fast { animation-duration: 0.22s; }

.hr-box.hr-box-gone {
    animation: hrBoxGone 0.7s ease-in both;
}

@keyframes hrBoxGone {
    to { transform: translateY(260px) rotate(6deg) scale(0.9); opacity: 0; }
}

.hr-hint {
    position: absolute;
    left: 0;
    right: 0;
    top: 842px;
    text-align: center;
    font-size: 30px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
}

.hr-hint b { color: var(--kui-gold-a); font-weight: 700; }
.hr-hint-on { animation: kcRise 0.5s 0.5s ease-out both; }

.hr-rtake {
    position: absolute;
    left: 50%;
    top: 900px;
    width: 420px;
    height: 104px;
    margin-left: -210px;
    border: none;
    border-radius: 17px;
    background: linear-gradient(90deg, var(--kui-gold-a) 0%, var(--kui-gold-b) 100%);
    color: var(--kui-bg);
    font-family: var(--kui-font);
    font-size: 46px;
    font-weight: 700;
    cursor: pointer;
    z-index: 6;
    animation: kcRise 0.5s 0.4s ease-out both;
    box-shadow: 0 0 40px rgba(255, 188, 55, 0.45);
}

.hr-rtake:active { transform: scale(0.98); }

.hr-skip {
    position: absolute;
    right: 71px;
    bottom: 54px;
    height: 76px;
    padding: 0 40px;
    border: none;
    border-radius: 17px;
    background: rgba(33, 34, 40, 0.85);
    box-shadow: inset 0 0 0 4px var(--kui-line);
    color: #fff;
    font-family: var(--kui-font);
    font-size: 32px;
    font-weight: 500;
    cursor: pointer;
    z-index: 6;
}

.hr-skip:active { transform: scale(0.97); }

/* легендарка: плашка */
.hr-legend {
    position: absolute;
    left: 50%;
    top: 300px;
    margin-left: -300px;
    width: 600px;
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #2a1d05;
    padding: 8px 0 6px;
    border-radius: 10px;
    background: linear-gradient(90deg, transparent, #FFD55C 18%, #FFBC37 82%, transparent);
    z-index: 5;
    opacity: 0;
    animation: hrLegend 0.6s 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

@keyframes hrLegend {
    from { opacity: 0; transform: scaleX(0.3); }
    to { opacity: 1; transform: none; }
}

/* вспышка и кольца удара */
.hr-flash {
    position: absolute;
    inset: 0;
    z-index: 8;
    background: #fff;
    pointer-events: none;
    opacity: 0;
    animation: hrFlash 0.7s ease-out both;
}

@keyframes hrFlash {
    0% { opacity: 0.95; }
    100% { opacity: 0; }
}

.hr-ring {
    position: absolute;
    left: 50%;
    top: 540px;
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    border-radius: 50%;
    border: 10px solid var(--hc);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    animation: hrRing 1.1s ease-out both;
}

.hr-ring-2 { animation-delay: 0.16s; border-width: 5px; }

@keyframes hrRing {
    0% { transform: scale(0.3); opacity: 0.95; }
    100% { transform: scale(15); opacity: 0; }
}

.hr-p {
    position: absolute;
    left: 50%;
    top: 540px;
    width: var(--sz, 14px);
    height: var(--sz, 14px);
    margin: calc(var(--sz, 14px) / -2) 0 0 calc(var(--sz, 14px) / -2);
    border-radius: 50%;
    background: var(--pc, var(--hc));
    pointer-events: none;
    z-index: 7;
    opacity: 0;
    animation: hrBurst var(--dur, 1.3s) cubic-bezier(0.1, 0.7, 0.3, 1) var(--dl, 0s) both;
}

.hr-p-sq { border-radius: 3px; }

@keyframes hrBurst {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0.2) rotate(var(--rot, 180deg)); opacity: 0; }
}

/* искры из коробки, пока она трясётся */
.hr-spark {
    position: absolute;
    left: 50%;
    top: 668px;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: #FFE08A;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    animation: hrSpark var(--dur, 0.9s) ease-out var(--dl, 0s) infinite;
}

@keyframes hrSpark {
    0% { transform: translate(var(--x0, 0px), 0) scale(1); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translate(var(--x1, 0px), -260px) scale(0.2); opacity: 0; }
}

.hr-reveal .kc-confetti { z-index: 1; opacity: 0.85; }

/* Скины: снапшот квадратный и по умолчанию (84% высоты) вылезал за рамку карточки,
   закрывая полосу редкости и подпись. Держим фигуру внутри рамки над подписью. */
.hr-card .kc-card-art.kui-snap-s { height: 56%; width: auto; top: 39%; }
.hr-stagecard .kc-card-art.kui-snap-s { height: 66%; width: auto; top: 47%; }

/* Аксессуары: квадрат снапшота (76% ширины по умолчанию) вылезал вверх за рамку и под подпись. */
.hr-card .kc-card-art.kui-snap-o { width: 58%; top: 38%; }
.hr-stagecard .kc-card-art.kui-snap-o { width: 70%; top: 47%; }

/* ==========================================================================
   Анонс «Призы каждый час» при входе - hourlypromo (холст 1075x727, как promo)
   ========================================================================== */

.hp-panel {
    position: absolute;
    inset: 0;
    border-radius: 17px;
    overflow: hidden;
    font-family: var(--kui-font);
    color: #fff;
    background:
        radial-gradient(520px 420px at 22% 78%, rgba(255, 188, 55, 0.34), transparent 70%),
        linear-gradient(180deg, rgba(255, 188, 55, 0) 52%, rgba(255, 188, 55, 0.26) 128%),
        #202126;
}

.hp-gift {
    position: absolute;
    left: 56px;
    top: 118px;
    width: 370px;
    z-index: 2;
    filter: drop-shadow(0 30px 28px rgba(0, 0, 0, 0.55));
    animation: hpFloat 3s ease-in-out infinite;
}

/* золотое сияние и лучи за коробкой */
.hp-rays {
    position: absolute;
    left: -90px;
    top: 10px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle, rgba(255, 213, 92, 0.55) 0%, rgba(255, 188, 55, 0.18) 38%, transparent 66%),
        repeating-conic-gradient(from 0deg, rgba(255, 213, 92, 0.16) 0deg 6deg, transparent 6deg 24deg);
    -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%);
    mask-image: radial-gradient(circle, #000 20%, transparent 68%);
}

.hp-spark {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #FFE08A;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 3;
    animation: hpSpark 2.4s ease-in-out infinite;
}

@keyframes hpSpark {
    0%, 100% { transform: scale(0.2); opacity: 0; }
    50% { transform: scale(1); opacity: 1; }
}

@keyframes hpFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.hp-title {
    position: absolute;
    left: 470px;
    right: 190px;
    top: 52px;
    font-size: 70px;
    line-height: 0.95;
    font-weight: 700;
}

.hp-title b { color: var(--kui-gold-a); font-weight: 700; }

.hp-strip {
    position: absolute;
    left: 470px;
    top: 232px;
    height: 58px;
    padding: 0 26px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--kui-gold-a) 0%, var(--kui-gold-b) 100%);
    color: #2a1d05;
    font-size: 34px;
    font-weight: 700;
    line-height: 62px;
    white-space: nowrap;
}

.hp-chips {
    position: absolute;
    left: 470px;
    top: 312px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hp-chip {
    width: 520px;
    height: 58px;
    border-radius: 14px;
    background: rgba(17, 18, 21, 0.78);
    box-shadow: inset 0 0 0 3px var(--kui-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    font-size: 34px;
    font-weight: 500;
}

.hp-chip span:last-child { color: rgba(255, 255, 255, 0.6); font-size: 26px; }

.hp-timer {
    position: absolute;
    left: 470px;
    top: 530px;
    width: 520px;
    text-align: center;
    font-size: 34px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.hp-timer b { color: var(--kui-gold-a); font-size: 44px; font-weight: 700; margin-left: 10px; font-variant-numeric: tabular-nums; }

.hp-btn {
    position: absolute;
    left: 470px;
    top: 598px;
    width: 520px;
    height: 90px;
    border: none;
    border-radius: 17px;
    background: linear-gradient(90deg, var(--kui-gold-a) 0%, var(--kui-gold-b) 100%);
    color: var(--kui-bg);
    font-family: var(--kui-font);
    font-size: 44px;
    font-weight: 700;
    cursor: pointer;
}

.hp-btn:active { transform: scale(0.98); }

.hp-btn-off {
    background: linear-gradient(90deg, #5B9BFF 0%, #2E7BFF 100%);
    color: #fff;
}

.hp-close { left: 908px; top: 46px; }

/* Кнопки левой колонки: попадание пальцем идёт только по самой кнопке, а не по вложенным элементам,
   и между главной и второстепенной кнопкой есть заметный зазор - на телефоне они были слишком близко. */
.hr-open, .hr-now, .hr-cat, .hr-plus { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.hr-open > *, .hr-now > *, .hr-cat > *, .hr-plus > * { pointer-events: none; }

.hr-nudge { animation: hrNudge 0.45s ease-in-out; }
@keyframes hrNudge {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}
