@font-face {
    font-family: Manrope;
    src: url('../brand/manrope-latin.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: Manrope;
    src: url('../brand/manrope-latin-ext.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF
}

:root {
    color-scheme: dark;
    --bg: #12171d;
    --panel: #171c23;
    --surface: #242b31;
    --line: #35404a;
    --accent: #f26b04;
    --accent-light: #ff963f;
    --text: #f6f7f8;
    --muted: #adb5be;
    --font: Manrope,system-ui,-apple-system,'Segoe UI',sans-serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.6 var(--font);
    -webkit-font-smoothing: antialiased
}

button,a {
    -webkit-tap-highlight-color: transparent
}

button {
    font: inherit
}

a {
    color: inherit;
    text-decoration: none
}

button: disabled {
    cursor: not-allowed
}

button: focus-visible,a:focus-visible {
    outline: 3px solid var(--accent-light);
    outline-offset: 5px
}

h1,h2,p {
    margin: 0
}

img {
    max-width: 100%;
    display: block
}

[hidden] {
    display: none!important
}

.icon-library {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden
}

.icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.skip-link {
    position: fixed;
    top: -80px;
    left: 16px;
    padding: 12px;
    background: var(--accent);
    color: var(--bg);
    z-index: 100
}

.skip-link:focus {
    top: 12px
}

.page-shell {
    width: min(1328px,calc(100% - 64px));
    margin: 0 auto
}

.site-header {
    min-height: 94px;
    display: flex;
    align-items: center;
    gap: 20px
}

.brand {
    flex-shrink: 0
}

.brand img {
    width: 132px;
    height: 40px;
    object-fit: contain
}

.brand-divider {
    height: 23px;
    width: 1px;
    background: #53606b
}

.brand-caption {
    font-size: 15px;
    color: var(--muted)
}

.how-link {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px
}

.how-link:hover {
    color: var(--accent-light)
}

.how-link .icon {
    width: 16px;
    height: 16px
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(330px,33.4%);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--panel)
}

.stage-card {
    padding: 36px 38px 30px;
    min-width: 0
}

.stage-heading h1 {
    font-size: clamp(36px,5.25vw,78px);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -3px
}

.stage-heading h1 span {
    color: var(--accent)
}

.tagline {
    margin-top: 18px;
    color: var(--muted);
    font-size: 18px;
    min-height: 26px
}

.stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 26px
}

.scene-label {
    display: flex;
    align-items: center;
    gap: 17px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px
}

.scene-label span {
    width: 36px;
    height: 1px;
    background: var(--accent)
}

.vault-scene {
    position: relative;
    width: min(100%,470px);
    height: 340px;
    display: grid;
    place-items: center;
    margin: 8px 0 10px
}

.vault-ring {
    position: absolute;
    width: 330px;
    height: 330px;
    border: 1px solid #634023;
    border-radius: 50%
}

.vault-ring:before {
    content: '';
    position: absolute;
    inset: 9px;
    border: 1px dashed #634023;
    border-radius: 50%
}

.vault-art {
    position: relative;
    width: 440px;
    height: auto;
    max-width: 100%;
    transform-origin: 50% 50%
}

.scene-title {
    font-size: 23px;
    letter-spacing: -.6px;
    font-weight: 800
}

.shake-hint {
    font-size: 14px;
    margin-top: 8px;
    color: var(--muted)
}

.shake-meter {
    height: 4px;
    width: 150px;
    overflow: hidden;
    background: #303941;
    border-radius: 5px;
    margin-top: 17px
}

.shake-meter-fill {
    height: 100%;
    width: 0;
    background: var(--accent);
    border-radius: 5px;
    transition: width 120ms linear
}

.vault-scene.is-charging .vault-ring {
    border-color: var(--accent)
}

.vault-scene.is-shaking .vault-art {
    animation: vaultShake 180ms ease-in-out 5
}

.vault-scene.is-open .vault-art {
    transform: scale(1.06);
    transition: transform 180ms ease-out
}

@keyframes vaultShake {
    0%,100% {
        transform: rotate(0)
    }
    25% {
        transform: rotate(-5deg)
    }
    75% {
        transform: rotate(5deg)
    }
}

.side-panel {
    padding: 44px 38px;
    background: var(--surface);
    border-left: 1px solid var(--line);
    min-width: 0
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--muted)
}

.lives-value {
    display: flex;
    align-items: baseline;
    gap: 13px;
    margin-top: 8px
}

.lives-value span:first-child {
    font-size: 100px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -4px;
    font-variant-numeric: tabular-nums
}

.lives-value span:last-child {
    font-size: 22px;
    font-weight: 600;
    color: var(--muted)
}

.lives-icons {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 28px;
    flex-wrap: wrap
}

.life {
    color: var(--accent-light);
    display: flex
}

.life .icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
    stroke: none
}

.life.used {
    color: #4b5661
}

.lives-more {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-light)
}

.actions {
    display: flex;
    gap: 10px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 150ms,border-color 150ms,transform 150ms
}

.btn-primary {
    background: var(--accent);
    color: var(--bg)
}

.btn-primary:hover:enabled {
    background: var(--accent-light)
}

.btn-primary:active:enabled {
    transform: scale(.98)
}

.btn-primary:disabled {
    opacity: .45
}

.btn-shake {
    flex: 1;
    min-width: 0;
    font-size: 18px;
    padding-inline: 10px
}

.btn-shake .icon {
    width: 23px;
    height: 23px
}

.btn-secondary {
    background: transparent;
    color: var(--muted);
    border-color: #48545f
}

.btn-secondary:hover {
    color: var(--text);
    border-color: var(--muted)
}

#soundToggle {
    width: 62px;
    padding: 0;
    flex-shrink: 0
}

.device-hint {
    font-size: 13px;
    color: var(--muted);
    margin-top: 12px
}

.btn-buy {
    width: 100%;
    min-height: 44px;
    border-color: #80502b;
    color: var(--accent-light);
    background: #2e2925;
    margin-top: 16px;
    font-size: 12px
}

.btn-buy:hover:enabled {
    border-color: var(--accent-light)
}

.btn-buy:disabled {
    opacity: .5
}

.game-notice {
    font-size: 12px;
    line-height: 1.7;
    color: #ffc08d;
    background: #302820;
    border-left: 2px solid var(--accent);
    padding: 12px;
    margin-top: 20px
}

.history-block {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid #44505b
}

.history-block h2 {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.7px
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #59616a transparent
}

.empty-state {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 12px 0;
    color: var(--muted);
    font-size: 12px
}

.empty-state>.icon {
    color: var(--accent-light);
    width: 25px;
    height: 25px
}

.empty-state small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #98a4af
}

.history-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #3b454f;
    font-size: 12px
}

.history-item:last-child {
    border-bottom: 0
}

.history-icon {
    display: grid;
    place-items: center;
    background: #403021;
    color: var(--accent-light);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0
}

.history-icon .icon {
    width: 18px;
    height: 18px
}

.history-copy {
    min-width: 0;
    flex: 1
}

.history-copy strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 700
}

.history-copy time {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px
}

.history-amount {
    font-weight: 800;
    font-size: 16px;
    color: var(--accent-light);
    white-space: nowrap
}

.how-section {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 28px;
    padding: 32px 0
}

.how-step {
    display: flex;
    align-items: center;
    gap: 20px
}

.step-number {
    font-size: 40px;
    line-height: 1;
    font-weight: 800;
    color: #78838e;
    letter-spacing: -1px
}

.how-step>div {
    padding-left: 18px;
    border-left: 1px solid #59646e
}

.how-step h2 {
    font-size: 15px;
    font-weight: 700
}

.how-step p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px
}

.site-footer {
    border-top: 1px solid #303941;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0 24px
}

.site-footer img {
    width: 82px;
    height: 25px;
    object-fit: contain
}

.site-footer span {
    border-left: 1px solid #4b5661;
    padding-left: 14px;
    font-size: 10px;
    color: var(--muted)
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(7,11,15,.88);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto
}

.modal-card {
    width: min(100%,420px);
    padding: 32px;
    background: var(--surface);
    border: 1px solid #48545f;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 24px 70px #0006;
    max-height: calc(100dvh - 48px);
    overflow-y: auto
}

.modal-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 22px;
    border: 1px solid #80502b;
    border-radius: 16px;
    background: #3b2c20;
    color: var(--accent-light)
}

.modal-icon .icon {
    width: 28px;
    height: 28px
}

.modal-card h2 {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.7px
}

.modal-card p {
    font-size: 14px;
    color: var(--muted);
    margin: 16px 0 24px;
    line-height: 1.8
}

.modal-card>.btn {
    width: 100%
}

.modal-card small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 15px
}

.modal-actions {
    display: flex;
    gap: 10px
}

.modal-actions .btn {
    flex: 1
}

.prize-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--accent-light)
}

#prizeAmount {
    font-size: 54px;
    letter-spacing: -2px;
    font-weight: 800;
    overflow-wrap: anywhere;
    line-height: 1.2
}

#prizeCurrency {
    font-size: 21px;
    font-weight: 700
}

body.has-modal {
    overflow: hidden
}

@media(min-width:1450px) {
    .page-shell {
        padding-top: 12px
    }
}

@media(max-width:1000px) {
    .vault-art { width: 350px; }
    .vault-ring { width: 264px; height: 264px; }
    .history-copy strong { font-size: 12px; }
    .history-amount { font-size: 13px; }
    #soundToggle { width: 52px; }
    .btn-shake { min-height: 52px; }
    .page-shell {
        width: calc(100% - 40px)
    }
    .content-grid {
        grid-template-columns: minmax(0,1fr) 290px
    }
    .stage-card {
        padding: 30px 26px 24px
    }
    .stage-heading h1 {
        font-size: 44px;
        letter-spacing: -1.8px
    }
    .tagline {
        font-size: 14px
    }
    .side-panel {
        padding: 30px 22px
    }
    .vault-scene {
        height: 270px
    }
    .scene-title {
        font-size: 18px
    }
    .how-section {
        gap: 15px
    }
    .how-step {
        gap: 12px
    }
    .how-step>div {
        padding-left: 12px
    }
    .step-number {
        font-size: 28px
    }
}

@media(max-width:700px) {
    #soundToggle { width: 54px; }
    .history-icon { width: 36px; height: 36px; }
    .history-item { padding: 13px 0; }
    .page-shell {
        width: calc(100% - 28px)
    }
    .site-header {
        min-height: 76px;
        gap: 12px
    }
    .brand img {
        width: 105px;
        height: 32px
    }
    .brand-caption {
        font-size: 11px
    }
    .brand-divider {
        height: 18px
    }
    .how-link {
        font-size: 11px;
        gap: 3px
    }
    .how-link .icon {
        width: 12px;
        height: 12px
    }
    .content-grid {
        grid-template-columns: 1fr
    }
    .stage-card {
        padding: 26px 24px 22px
    }
    .stage-heading h1 {
        font-size: clamp(30px,8.8vw,40px);
        letter-spacing: -1.8px
    }
    .tagline {
        font-size: 13px;
        line-height: 1.7;
        margin-top: 14px
    }
    .stage {
        margin-top: 22px
    }
    .vault-scene {
        width: 300px;
        height: 235px;
        margin: 5px 0 8px
    }
    .vault-art {
        width: 290px
    }
    .vault-ring {
        width: 225px;
        height: 225px
    }
    .scene-label {
        font-size: 9px;
        letter-spacing: 2.5px
    }
    .scene-title {
        font-size: 18px
    }
    .shake-hint {
        font-size: 11px
    }
    .shake-meter {
        margin-top: 12px
    }
    .side-panel {
        padding: 24px;
        border-left: 0;
        border-top: 1px solid var(--line)
    }
    .lives-panel {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        margin-bottom: 15px
    }
    .eyebrow {
        font-size: 10px
    }
    .lives-value {
        grid-column: 2;
        grid-row: 1/3;
        margin-top: 0;
        gap: 7px
    }
    .lives-value span:first-child {
        font-size: 55px;
        letter-spacing: -2px
    }
    .lives-value span:last-child {
        font-size: 16px
    }
    .lives-icons {
        min-height: 24px;
        margin: 8px 0 0;
        gap: 7px
    }
    .life .icon {
        width: 20px;
        height: 20px
    }
    .btn-shake {
        min-height: 54px
    }
    .history-block {
        margin-top: 24px;
        padding-top: 20px
    }
    .history-block h2 {
        font-size: 19px
    }
    .history-list {
        max-height: 220px
    }
    .how-section {
        grid-template-columns: 1fr;
        padding: 27px 10px;
        gap: 23px
    }
    .how-step {
        gap: 19px
    }
    .step-number {
        width: 38px;
        font-size: 29px
    }
    .how-step>div {
        padding-left: 18px
    }
    .how-step h2 {
        font-size: 13px
    }
    .how-step p {
        font-size: 11px
    }
    .site-footer {
        padding-bottom: 20px
    }
    .modal {
        padding: 18px
    }
    .modal-card {
        padding: 28px 24px
    }
    .modal-card h2 {
        font-size: 22px
    }
}

@media(max-width:370px) {
    .brand-caption,.brand-divider {
        display: none
    }
    .stage-card {
        padding-inline: 18px
    }
    .stage-heading h1 {
        font-size: 30px
    }
    .scene-title {
        font-size: 16px
    }
    .vault-scene {
        width: 100%
    }
    .side-panel {
        padding: 20px
    }
    .scene-label {
        gap: 10px
    }
    .scene-label span {
        width: 26px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
    *,*::before,*::after {
        animation: none!important;
        transition: none!important
    }
}

