:root {
    --blue: #0F2C59;
    --blue-dark: #071A3A;
    --blue-bright: #1D4ED8;
    --gold: #FFC107;
    --gold-deep: #F4A900;
    --gold-soft: #FFD44D;
    --light-blue: #1D4ED8;
    --white: #FFFFFF;
    --gray: #F3F4F6;
    --text: #172033;
    --shadow: 0 24px 70px rgba(7, 26, 58, .42);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--blue-dark); }
body {
    min-height: 100vh;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--white);
    background:
        radial-gradient(circle at 50% 16%, rgba(255, 193, 7, .62) 0, rgba(255, 193, 7, .36) 18rem, transparent 38rem),
        radial-gradient(circle at 82% 8%, rgba(29, 78, 216, .88) 0, rgba(29, 78, 216, .35) 20rem, transparent 36rem),
        radial-gradient(circle at 10% 72%, rgba(255, 193, 7, .38) 0, transparent 28rem),
        linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 42%, #123E88 68%, var(--blue-dark) 100%);
    background-attachment: fixed;
}

button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
    min-height: calc(100vh - 88px);
    display: grid;
    place-items: center;
    padding: 24px 14px 18px;
    position: relative;
    overflow: hidden;
}

.page-shell::before {
    content: "";
    position: absolute;
    inset: -22%;
    background:
        conic-gradient(from 205deg at 50% 48%, rgba(255, 193, 7, .24), transparent 18%, rgba(255, 193, 7, .18) 34%, transparent 52%, rgba(255, 193, 7, .26) 74%, transparent 100%);
    pointer-events: none;
}

.page-shell > * { position: relative; z-index: 1; }

.hero {
    width: min(100%, 560px);
    text-align: center;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(7, 26, 58, .96), rgba(15, 44, 89, .9));
    color: var(--white);
    font-size: 13px;
    border: 1px solid rgba(255, 193, 7, .55);
    box-shadow: 0 14px 36px rgba(7, 26, 58, .34), 0 0 28px rgba(255, 193, 7, .22);
}

.brand-pill span { opacity: .9; }

h1 {
    margin: 22px auto 10px;
    color: var(--white);
    font-size: clamp(28px, 8vw, 46px);
    line-height: 1.04;
    letter-spacing: -.04em;
    text-shadow: 0 4px 22px rgba(7, 26, 58, .62);
}

h1::first-letter { color: var(--gold); }

.subtitle {
    margin: 0 auto 20px;
    max-width: 460px;
    color: rgba(255, 255, 255, .88);
    font-size: 16px;
    line-height: 1.45;
    text-shadow: 0 2px 14px rgba(7, 26, 58, .45);
}

.wheel-card {
    position: relative;
    margin: 0 auto;
    padding: 18px 12px 16px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 193, 7, .34), transparent 44%),
        linear-gradient(180deg, rgba(15, 44, 89, .92), rgba(7, 26, 58, .86));
    border: 2px solid rgba(255, 193, 7, .72);
    box-shadow: var(--shadow), 0 0 42px rgba(255, 193, 7, .28);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.wheel-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: inherit;
    pointer-events: none;
}

.wheel-wrap {
    position: relative;
    width: min(90vw, 420px);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
}

.wheel-wrap::before,
.wheel-wrap::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    pointer-events: none;
}

.wheel-wrap::before {
    background: conic-gradient(from 0deg, transparent 0 12%, rgba(255,255,255,.95) 14%, transparent 20% 32%, rgba(255,193,7,.78) 36%, transparent 42% 58%, rgba(255,255,255,.85) 62%, transparent 70% 100%);
    filter: blur(9px);
    opacity: .72;
    animation: wheelHaloSpin 3.2s linear infinite;
}

.wheel-wrap::after {
    inset: -5px;
    border: 2px solid rgba(255,255,255,.72);
    box-shadow: 0 0 22px rgba(255,255,255,.45), 0 0 38px rgba(255,193,7,.36);
    opacity: .88;
    animation: wheelHaloPulse 1.45s ease-in-out infinite;
}

.wheel {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 18px 34px rgba(7, 26, 58, .46)) drop-shadow(0 0 24px rgba(255, 255, 255, .35));
    transform: rotate(0deg);
    will-change: transform;
}

.wheel.is-spinning {
    transition: transform 4.8s cubic-bezier(.08, .72, .12, 1);
}

.wheel-ring { fill: var(--gold); }
.sector-path { stroke: rgba(255,255,255,.88); stroke-width: 2.4; }
.sector-path.win { fill: var(--gold); }
.sector-path.blue { fill: var(--blue); }
.sector-path.light { fill: var(--white); }
.sector-text {
    fill: var(--white);
    font-size: 15px;
    font-weight: 800;
    text-anchor: middle;
    dominant-baseline: middle;
    paint-order: stroke;
    stroke: rgba(15, 44, 89, .42);
    stroke-width: 2px;
    stroke-linejoin: round;
}
.sector-text.win { fill: var(--blue); stroke: rgba(255,255,255,.45); }
.sector-text.light { fill: var(--blue); stroke: rgba(15,44,89,.14); }
.sector-text.blue { fill: var(--white); stroke: rgba(7, 26, 58, .52); }
.wheel-center-bg {
    fill: var(--white);
    stroke: var(--gold);
    stroke-width: 10;
    filter: drop-shadow(0 0 12px rgba(255, 193, 7, .55));
}

.spin-btn {
    z-index: 2;
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: clamp(98px, 25vw, 130px);
    height: clamp(98px, 25vw, 130px);
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 24%, #FFE082 0%, var(--gold) 44%, var(--gold-deep) 100%);
    color: var(--blue);
    font-size: clamp(18px, 5vw, 23px);
    font-weight: 900;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(7, 26, 58, .38), 0 0 34px rgba(255, 193, 7, .55), inset 0 -6px 0 rgba(15, 44, 89, .18), inset 0 4px 0 rgba(255,255,255,.42);
    transition: transform .18s ease, filter .18s ease;
}

.spin-btn:active { transform: translate(-50%, -50%) scale(.97); }
.spin-btn:disabled {
    cursor: not-allowed;
    filter: grayscale(.15) brightness(.96);
}

.pointer {
    position: absolute;
    z-index: 3;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 19px solid transparent;
    border-right: 19px solid transparent;
    border-top: 42px solid var(--gold);
    filter: drop-shadow(0 8px 10px rgba(7,26,58,.42)) drop-shadow(0 0 10px rgba(255,193,7,.55));
}

.status-text {
    min-height: 20px;
    margin: 10px 0 0;
    color: var(--gold);
    font-weight: 800;
    font-size: 14px;
    text-shadow: 0 2px 10px rgba(7, 26, 58, .52);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(7, 26, 58, .72);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, visibility .24s ease;
}

.modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-panel {
    width: min(100%, 420px);
    padding: 28px 22px;
    border-radius: 26px;
    background: linear-gradient(180deg, #fff 0%, #FFF7DA 100%);
    border: 2px solid rgba(255, 193, 7, .7);
    text-align: center;
    box-shadow: var(--shadow), 0 0 36px rgba(255, 193, 7, .28);
    transform: translateY(8px) scale(.98);
    transition: transform .24s ease;
}

.modal.is-visible .modal-panel { transform: translateY(0) scale(1); }
.success-mark {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--blue);
    font-size: 36px;
    font-weight: 900;
}

.modal-panel p {
    margin: 0;
    color: var(--blue);
    font-size: 18px;
    line-height: 1.42;
    font-weight: 800;
}

.cookie-banner {
    position: fixed;
    z-index: 30;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 760px;
    margin: 0 auto;
    padding: 12px;
    border-radius: 16px;
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 12px 34px rgba(15, 44, 89, .32);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 13px; line-height: 1.35; text-align: left; }
.cookie-banner button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: var(--gold);
    color: var(--blue);
    font-weight: 900;
    cursor: pointer;
}

.legal-footer {
    display: grid;
    gap: 8px;
    place-items: center;
    padding: 12px 14px 18px;
    background: #071A3A;
    color: rgba(255,255,255,.78);
    text-align: center;
    border-top: 1px solid rgba(255, 193, 7, .42);
}
.legal-footer nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.legal-footer a { color: var(--gold); font-weight: 800; text-decoration: none; }
.legal-footer small { font-size: 11px; }

.legal-page {
    width: min(100% - 28px, 760px);
    margin: 40px auto;
    padding: 24px;
    border-radius: 22px;
    background: var(--white);
    color: var(--blue);
}
.legal-page a { color: var(--light-blue); font-weight: 800; }


@keyframes wheelHaloSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wheelHaloPulse {
    0%, 100% { opacity: .62; transform: scale(.985); }
    50% { opacity: 1; transform: scale(1.015); }
}

@media (min-width: 720px) {
    .page-shell { padding-top: 36px; }
    .wheel-card { padding: 22px 18px 18px; }
    .subtitle { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .wheel.is-spinning, .modal, .modal-panel, .spin-btn { transition-duration: .01ms; }
    .wheel-wrap::before, .wheel-wrap::after { animation: none; }
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.geo-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(255, 193, 7, .55);
    box-shadow: 0 14px 34px rgba(7, 26, 58, .25), 0 0 24px rgba(255, 193, 7, .18);
}

.geo-select {
    border: 0;
    border-radius: 999px;
    padding: 6px 28px 6px 10px;
    background: var(--gray);
    color: var(--blue);
    font: inherit;
    cursor: pointer;
    outline: none;
}

.geo-select:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, .45);
}

.legal-page--long {
    width: min(100% - 28px, 920px);
    margin: 28px auto;
    padding: clamp(22px, 4vw, 42px);
    line-height: 1.65;
    box-shadow: 0 18px 50px rgba(15,44,89,.12);
}
.legal-page--long h1 {
    margin: 14px 0 8px;
    color: var(--blue);
    font-size: clamp(30px, 6vw, 48px);
    text-shadow: none;
}
.legal-page--long h1::first-letter { color: var(--blue); }
.legal-updated {
    margin: 0 0 22px;
    color: rgba(15,44,89,.62);
    font-size: 14px;
    font-weight: 800;
}
.legal-lead {
    margin: 0 0 26px;
    padding: 18px;
    border-left: 5px solid var(--gold);
    border-radius: 16px;
    background: var(--gray);
    color: rgba(15,44,89,.88);
    font-size: 17px;
}
.legal-section {
    padding: 20px 0;
    border-top: 1px solid rgba(15,44,89,.12);
}
.legal-section h2 {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: clamp(19px, 4vw, 25px);
    line-height: 1.25;
}
.legal-section ul {
    margin: 0;
    padding-left: 22px;
}
.legal-section li {
    margin: 9px 0;
    color: rgba(23,32,51,.9);
}
.legal-note {
    margin: 26px 0 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255,193,7,.2);
    color: var(--blue);
    font-weight: 800;
}
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.legal-back--bottom { margin-top: 8px; }
