/*
 * The original archive's visual layer. This file intentionally overrides
 * only the broad palette/type treatment; the wheel keeps the new reference
 * design and the PHP/JS behaviour stays unchanged.
 */
:root {
    --bg: #fff;
    --header: #171717;
    --card: #202020;
    --block: #171717;
    --border: #3b3b3b;
    --text: #fff;
    --muted: #a8a8a8;
    --yellow: #e33b1e;
    --accent: #e33b1e;
    --font: 'Times New Roman', sans-serif;
    --display: 'Times New Roman', sans-serif;
}

body {
    background: black;
}
.hero:before,
.guest:before {
    background: black
}

.panel {
    background: linear-gradient(45deg, #000000 74%, #fbf54b 100%);
}

.header-balance {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 2px solid rgba(227, 59, 30, .55);
    border-radius: 9px;
    background: rgba(227, 59, 30, .1);
    white-space: nowrap;
}

.header-balance-label {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.header-balance-value {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.fast-spin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    min-height: 30px;
    margin: 0 8px;
    padding: 0 8px;
    border: 1px solid rgba(227, 59, 30, .7);
    border-radius: 6px;
    color: #ffb09f;
    background: rgba(227, 59, 30, .12);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    transition: .18s ease;
}

.mode-icon {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.mode-icon-fast {
    display: none;
    fill: currentColor;
    stroke: none;
}

.fast-spin-button.active .mode-icon-arcade {
    display: none;
}

.fast-spin-button.active .mode-icon-fast {
    display: block;
}

.fast-spin-button:hover:not(:disabled),
.fast-spin-button.active {
    border-color: #e33b1e;
    color: #fff;
    background: #e33b1e;
    box-shadow: 0 0 14px rgba(227, 59, 30, .3);
}

.fast-spin-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: -14px 0 22px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.fast-spin-hint svg {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    fill: #e33b1e;
    stroke: #e33b1e;
    stroke-linejoin: round;
    stroke-width: 1;
}

.fast-spin-hint b {
    color: #fff;
}

.hero h1 span,
.guest h1 span,
.admin-layout h1 span {
    color: #e33b1e;
}

.eyebrow,
.field-label,
.amount-unit,
.balance-value,
.panel-icon {
    color: #e33b1e;
}

.btn-primary {
   background: linear-gradient(45deg, #e79608 30%, #f73302 80%);
   border-color: black;
}

.btn-primary:hover:not(:disabled) {
    background: black;
    border-color: #f04420;
}

.risk.selected {
    border-color: #fff;
    background: rgba(227, 59, 30, .17);
    box-shadow: inset 3px 0 #e33b1e;
}

.risk:hover,
.quick button:hover,
.text-input:focus,
.amount-wrap:focus-within {
    border-color: #e33b1e;
}

.balance-card {
    border-color: rgba(227, 59, 30, .35);
    background: rgba(227, 59, 30, .12);
}

.balance-icon {
    border-color: #e33b1e;
    color: #e33b1e;
}

.notice {
    border-left-color: #e33b1e;
    background: rgba(227, 59, 30, .1);
}

.wheel-ring {
    background: #fff;
}

.wheel-logo {
    border-color: #fbd506;
    font-family: 'Tektur', sans-serif;
}

.wheel-glow {
    box-shadow: 0 0 0 18px rgba(227, 59, 30, .05), 0 0 100px rgba(227, 59, 30, .14);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.reject-withdrawal {
    border-color: rgba(255, 119, 91, .7);
    color: #ffb2a2;
}

.withdrawal-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}

.withdrawal-status small {
    max-width: 220px;
    color: var(--muted);
    font-size: 10px;
}

.withdrawal-rejected {
    color: #ffb2a2;
    border-color: rgba(255, 119, 91, .7);
    background: rgba(194, 0, 0, .15);
}

@media (max-width: 560px) {
    .header-balance {
        min-height: 38px;
        gap: 4px;
        padding: 0 9px;
    }

    .header-balance-label {
        display: none;
    }

    .header-balance-value {
        font-size: 11px;
    }

    .fast-spin-button {
        margin: 0 5px;
        padding: 0 6px;
    }

    .fast-spin-hint {
        align-items: flex-start;
        margin-top: -10px;
        margin-bottom: 18px;
        font-size: 9px;
    }

    .wheel-controls {
        width: min(300px, 82vw);
        margin-top: -24px;
    }

    .top-actions .btn {
        min-height: 38px;
        padding: 0 10px;
        font-size: 11px;
    }

    .top-actions .deposit-link {
        display: inline-flex;
    }

    .top-actions .admin-link {
        display: inline-flex;
    }

    .admin-actions {
        align-items: flex-end;
        flex-direction: column;
    }

    .admin-withdrawal {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-actions .btn {
        width: 100%;
    }
}

.wheel-center {
    cursor: pointer;
    outline: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.wheel-center:hover,
.wheel-center:focus-visible {
    transform: scale(1.03);
    box-shadow: 0 0 0 3px rgba(35, 215, 12, .2), 0 0 22px #0b0b0b;
}

.wheel-percent {
    display: block;
    background: linear-gradient(180deg, #ffe02d 0%, #53db42 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    line-height: 1;
}

.wheel-center strong {
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: lowercase;
}

.wheel-center {
    cursor: default;
}

.wheel-center:hover,
.wheel-center:focus-visible {
    transform: none;
    box-shadow: 0 0 8px #090909;
}

.wheel-controls {
    width: min(350px, 78vw);
    margin: -34px auto 0;
}

.wheel-controls .spin-button {
    width: 100%;
}

.wheel-pointer {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    width: min(350px, 78vw);
    height: min(350px, 78vw);
    border: 0;
    pointer-events: none;
    filter: none;
    transform: translate(-50%, -50%) rotate(var(--pointer-rotation, 0deg));
    transform-origin: center;
    transition: transform var(--spin-duration, 9s) cubic-bezier(.65, 0, .12, 1);
}

.wheel-pointer-tip {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 30px solid #fff;
    border-right: 13px solid transparent;
    border-left: 13px solid transparent;
    filter: drop-shadow(0 2px 2px #000);
    transform: translateX(-50%);
}

.risk {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #29292b;
}

.risk-fill {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--risk-fill);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 91, 64, .7), rgba(165, 25, 12, .98));
    transition: height .35s ease;
}

.risk-fill::before,
.risk-fill::after {
    content: '';
    position: absolute;
    top: -11px;
    left: -35%;
    width: 170%;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 91, 64, .82);
    animation: risk-wave 4.5s ease-in-out infinite;
}

.risk-fill::after {
    top: -7px;
    left: -50%;
    width: 190%;
    height: 18px;
    opacity: .5;
    background: rgba(116, 18, 10, .8);
    animation-duration: 6s;
    animation-direction: reverse;
}

.risk-bubbles {
    position: absolute;
    inset: 0;
    display: block;
}

.risk-bubbles i {
    position: absolute;
    bottom: -10px;
    display: block;
    width: 5px;
    height: 5px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 50%;
    background: rgba(255, 185, 170, .3);
    animation: risk-bubble-rise 3.8s ease-in infinite;
}

.risk-bubbles i:nth-child(1) {
    left: 19%;
    width: 4px;
    height: 4px;
    animation-delay: -.8s;
}

.risk-bubbles i:nth-child(2) {
    left: 46%;
    width: 7px;
    height: 7px;
    animation-delay: -2.1s;
    animation-duration: 4.7s;
}

.risk-bubbles i:nth-child(3) {
    left: 72%;
    animation-delay: -1.5s;
    animation-duration: 3.2s;
}

.risk-bubbles i:nth-child(4) {
    left: 88%;
    width: 3px;
    height: 3px;
    animation-delay: -3s;
    animation-duration: 4.3s;
}

.risk-content {
    position: relative;
    z-index: 1;
    display: block;
}

.risk-content strong,
.risk-content small {
    text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}

.risk:hover {
    transform: none;
    border-color: #3b3b3b;
}

.risk.selected {
    border-color: #3b3b3b;
    background: #29292b;
    box-shadow: none;
}

.withdraw-submit {
    margin-top: 18px;
}

@keyframes risk-wave {
    0%, 100% {
        transform: translateX(-7%) rotate(-2deg) scaleY(1);
    }

    50% {
        transform: translateX(7%) rotate(2deg) scaleY(1.35);
    }
}

@keyframes risk-bubble-rise {
    0% {
        opacity: 0;
        transform: translateY(5px) scale(.55);
    }

    18% {
        opacity: .85;
    }

    100% {
        opacity: 0;
        transform: translateY(-105px) translateX(8px) scale(1.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .risk-fill::before,
    .risk-fill::after,
    .risk-bubbles i {
        animation: none;
    }

    .wheel-pointer {
        transition-duration: .01ms;
    }
}

@media (max-width: 560px) {
    .wheel-pointer {
        width: min(300px, 82vw);
        height: min(300px, 82vw);
    }

    .wheel-pointer-tip {
        border-top-width: 24px;
        border-right-width: 10px;
        border-left-width: 10px;
    }
}

.target-win-field {
    display: block;
    margin-top: 2px;
}

.target-win-helper {
    margin-top: 8px;
    margin-bottom: 22px;
    text-align: left;
}

/* Longer deceleration makes the final part of each spin feel suspenseful. */
.roulette-wheel {
    transition-duration: var(--spin-duration, 9s);
    /* Heavy propeller feel: slow takeoff, fast middle, sticky long brake. */
    transition-timing-function: cubic-bezier(.65, 0, .12, 1);
}