:root {
    /* VenomBet — symbiote siyahı + altın (venomuara.com paleti) */
    --bg-0: #000000;
    --bg-1: #0d0d0d;
    --bg-2: #151515;
    --panel: rgba(18, 18, 18, 0.82);
    --line: rgba(255, 195, 0, 0.18);
    --text-1: #f5f5f5;
    --text-2: rgba(222, 210, 184, 0.72);
    --gold: #FFC300;       /* ana altın vurgu */
    --gold-2: #FFDF00;     /* parlak açık altın */
    --gold-dark: #FFB800;  /* amber */
    --electric: #FFD23A;   /* sıcak altın glow */
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.78);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --font-display: "Bangers", "Inter", sans-serif;
    --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
    font-family: var(--font-body);
    color: var(--text-1);
    background: #0a0a0a;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 140px 140px;
    opacity: 0.35;
}

body::after {
    background:
        radial-gradient(circle at 50% -5%, rgba(255, 195, 0, 0.16), transparent 25%),
        radial-gradient(circle at 50% 110%, rgba(255, 184, 0, 0.12), transparent 30%);
}

.page-shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 48px;
    position: relative;
}

.storm-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.storm-layer span {
    position: absolute;
    top: 0;
    width: 2px;
    height: 180px;
    background: linear-gradient(180deg, rgba(255, 195, 0, 0), rgba(255, 223, 90, 0.95), rgba(255, 195, 0, 0));
    opacity: 0;
    filter: drop-shadow(0 0 18px rgba(255, 195, 0, 0.8));
}

/* KAOS: dönüş sırasında tüm sayfada akan altın fırtına çizgileri */
.storm-layer.is-active span {
    animation-name: stormFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* her 3. çizgi zehir yeşili — kaos paleti (siyah-sarı-yeşil) */
.storm-layer.is-active span:nth-child(3n) {
    background: linear-gradient(180deg, rgba(57, 255, 20, 0), rgba(57, 255, 20, 0.9), rgba(57, 255, 20, 0));
    filter: drop-shadow(0 0 18px rgba(57, 255, 20, 0.75));
}

@keyframes stormFall {
    0% { transform: translateY(-260px) rotate(9deg); opacity: 0; }
    12% { opacity: 0.85; }
    85% { opacity: 0.6; }
    100% { transform: translateY(110vh) rotate(9deg); opacity: 0; }
}

.status-card,
.wheel-card,
.history-preview,
.modal-theme { position: relative; z-index: 1; }

.eyebrow {
    display: block;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--gold);
}

.wheel-card,
.history-preview {
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.72), rgba(6, 6, 6, 0.92));
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-heading p,
.history-preview p {
    color: var(--text-2);
    line-height: 1.7;
    margin: 0;
}

.hero-badge {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-2);
    font-size: 0.95rem;
}

.status-label {
    color: var(--text-2);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 0.04em;
    margin-top: 12px;
}

.status-subtext {
    color: rgba(222, 210, 184, 0.72);
    margin-top: 12px;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Info Panel */
.info-panel {
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.72), rgba(6, 6, 6, 0.92));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px 28px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.info-panel h1, .info-panel h2, .info-panel h3 {
    font-family: var(--font-display);
    color: var(--gold);
    letter-spacing: 0.03em;
    margin: 0 0 10px;
}
.info-panel h1 { font-size: 1.5rem; }
.info-panel h2 { font-size: 1.3rem; }
.info-panel h3 { font-size: 1.1rem; }
.info-panel p { margin: 0 0 10px; }
.info-panel strong, .info-panel b { color: var(--text-1); }
.info-panel ul, .info-panel ol { margin: 0 0 10px; padding-left: 20px; }
.info-panel li { margin-bottom: 4px; }
.info-panel a { color: var(--electric); text-decoration: underline; }
.info-panel hr { border: none; border-top: 1px solid var(--line); margin: 14px 0; }
.info-panel img { max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0; }

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.wheel-card,
.history-preview { padding: 26px; }

.wheel-card {
    position: relative;
}

@media (min-width: 1081px) {
    .history-preview {
        position: sticky;
        top: 28px;
        align-self: start;
    }
}

.card-heading {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.spin-lives {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}
.spin-lives-count {
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    background: rgba(255, 195, 0, 0.08);
    border: 1px solid rgba(255, 195, 0, 0.22);
    border-radius: 12px;
    padding: 6px 14px;
    min-width: 48px;
    text-align: center;
    line-height: 1;
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spin-lives-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.spin-life {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.3s;
}
.spin-life.active {
    background: rgba(255, 195, 0, 0.15);
    border: 1px solid rgba(255, 195, 0, 0.3);
    color: var(--gold);
}
.spin-life.used {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.15);
}

.card-heading h2,
.history-preview h3 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    letter-spacing: 0.04em;
    margin: 6px 0 10px;
}

.wheel-scene {
    position: relative;
}

.lightning-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.wheel-stage {
    position: relative;
    min-height: 640px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at center, rgba(255, 195, 0, 0.13), transparent 30%),
        radial-gradient(ellipse at 15% 6%, rgba(255, 195, 0, 0.05), transparent 42%),
        radial-gradient(ellipse at 88% 94%, rgba(255, 184, 0, 0.05), transparent 42%),
        linear-gradient(180deg, #060606, #0b0b0b);
    border: 1px solid rgba(255, 195, 0, 0.08);
    z-index: 2;
}

.wheel-stage-logo-wrap {
    display: flex;
    justify-content: center;
    margin: -4px 0 10px;
    position: relative;
    z-index: 6;
}

.wheel-stage-logo {
    width: min(260px, 52%);
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 18px rgba(255, 195, 0, 0.25));
}

.flame-ring-canvas {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(140%, 868px);
    height: auto;
    aspect-ratio: 1;
    transform: translate(calc(-50% - 10px), -50%);
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: lighten;
    opacity: 0.85;
}

.spark-ring-canvas {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(140%, 868px);
    height: auto;
    aspect-ratio: 1;
    transform: translate(calc(-50% - 10px), -50%);
    z-index: 1;
    pointer-events: none;
}

.wheel-container {
    width: min(100%, 620px);
    aspect-ratio: 1;
    position: relative;
    z-index: 2;
}

/* Sonuç videosu (video3): çark değil TÜM wheel-stage'i kaplar */
.result-video-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 8;
    pointer-events: none;
}

.wheel-container canvas {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 28px rgba(255, 195, 0, 0.26));
}

/* --- Çark yükleniyor modalı (videolar hazır olana kadar) --- */
.wheel-loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(22, 22, 22, 0.97), rgba(6, 6, 6, 0.99));
    box-shadow: inset 0 0 60px rgba(255, 195, 0, 0.08), 0 0 34px rgba(0, 0, 0, 0.5);
}
.wheel-loader-spinner {
    width: clamp(46px, 9vw, 62px);
    height: clamp(46px, 9vw, 62px);
    border-radius: 50%;
    border: 4px solid rgba(255, 195, 0, 0.18);
    border-top-color: #FFC300;
    animation: wheelLoaderSpin 0.85s linear infinite;
}
@keyframes wheelLoaderSpin { to { transform: rotate(360deg); } }
.wheel-loader-text {
    font-family: Bangers, Inter, sans-serif;
    letter-spacing: 3px;
    color: #FFC300;
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    text-shadow: 0 0 16px rgba(255, 195, 0, 0.45);
}
/* yüklenirken çark/işaretçi/alev halkaları gizli, hazır olunca görünür */
.wheel-stage:not(.is-loading) .wheel-loader { display: none; }
.wheel-stage.is-loading #wheelCanvas,
.wheel-stage.is-loading .pointer { visibility: hidden; }
.wheel-stage.is-loading #flameRingCanvas,
.wheel-stage.is-loading #sparkCanvas { opacity: 0; }

/* --- KAOS MODU: çark dönerken sahne sarsılır + altın nabız + çark parlaması güçlenir --- */
.wheel-stage.is-spinning {
    animation: stageQuake 0.11s infinite;
}

@keyframes stageQuake {
    0%   { transform: translate(0.7px, -0.9px) rotate(0.05deg); }
    25%  { transform: translate(-1.0px, 0.6px) rotate(-0.06deg); }
    50%  { transform: translate(0.9px, 0.8px) rotate(0.04deg); }
    75%  { transform: translate(-0.6px, -1.0px) rotate(-0.04deg); }
    100% { transform: translate(0.7px, -0.9px) rotate(0.05deg); }
}

.wheel-stage.is-spinning::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 28px;
    background: radial-gradient(circle at center, rgba(255, 195, 0, 0.15), transparent 58%);
    animation: stagePulse 0.5s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes stagePulse {
    from { opacity: 0.2; }
    to { opacity: 0.9; }
}

.wheel-stage.is-spinning .wheel-container canvas {
    filter: drop-shadow(0 0 42px rgba(255, 195, 0, 0.55));
}

/* İşaretçi: Venom dişi (kavisli fang) — symbiote temaya uygun */
.pointer {
    position: absolute;
    top: clamp(-10px, -1.2vw, -6px);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(30px, 6.5vw, 50px);
    height: clamp(44px, 9vw, 72px);
    background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='0.55' stop-color='%23f0e8d4'/%3E%3Cstop offset='1' stop-color='%23cdbb96'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M6 3 Q20 11 34 3 Q33 22 27 38 Q23 50 20 61 Q15 48 11 36 Q6 20 6 3 Z' fill='url(%23g)' stroke='%230a0a0a' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M13 9 Q15 24 18 40' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center top / contain no-repeat;
    z-index: 3;
    filter: drop-shadow(0 0 14px rgba(255, 195, 0, 0.8));
}

.pointer::after {
    content: "";
    position: absolute;
    left: 50%;
    top: clamp(-7px, -1vw, -5px);
    transform: translateX(-50%);
    width: clamp(9px, 1.9vw, 15px);
    height: clamp(9px, 1.9vw, 15px);
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, #FFC300 55%, #B07A00 100%);
    box-shadow: 0 0 22px rgba(255, 195, 0, 0.9);
}

.wheel-center {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 138px;
    height: 138px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.98), rgba(8, 8, 8, 0.98));
    border: 2px solid rgba(255, 195, 0, 0.5);
    box-shadow: inset 0 0 18px rgba(255, 195, 0, 0.12), 0 0 36px rgba(255, 195, 0, 0.35);
    z-index: 2;
    pointer-events: none;
}

.wheel-center strong { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.05em; }
.wheel-center span { font-size: 0.8rem; color: var(--text-2); letter-spacing: 0.15em; text-transform: uppercase; }

.wheel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.wheel-actions--sidebar {
    margin-top: 18px;
    margin-bottom: 18px;
}

.wheel-actions--sidebar .btn {
    flex: 1 1 100%;
}

.history-preview h3 span {
    color: var(--gold-2);
}

.history-preview .hero-badge {
    margin-bottom: 18px;
}

.btn {
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }

.btn-primary,
.btn-secondary {
    padding: 16px 24px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    color: #1a1200;
    background: linear-gradient(135deg, #FFDF00, #FFC300 48%, #B07A00);
    box-shadow: 0 16px 34px rgba(255, 195, 0, 0.3);
}

.btn-secondary {
    color: var(--text-1);
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.96), rgba(8, 8, 8, 0.96));
    border: 1px solid rgba(255, 195, 0, 0.26);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover:not(:disabled),
.btn-secondary:hover:not(:disabled) { transform: translateY(-2px); }

.history-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    gap: 12px;
}

.history-item,
.modal-history-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-item span,
.modal-history-item span,
.empty-state { color: var(--text-2); font-size: 0.92rem; }

.empty-state {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.result-banner {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 195, 0, 0.24);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 223, 90, 0.22), transparent 24%),
        radial-gradient(circle at 86% 28%, rgba(255, 184, 0, 0.18), transparent 26%),
        linear-gradient(135deg, rgba(255, 195, 0, 0.14), rgba(120, 90, 0, 0.12) 52%, rgba(10, 10, 10, 0.94));
    box-shadow:
        0 22px 40px rgba(0, 0, 0, 0.42),
        inset 0 0 24px rgba(255, 195, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.result-banner strong { display: block; font-family: var(--font-display); letter-spacing: 0.04em; font-size: 1.3rem; margin-bottom: 6px; color: var(--gold); }
.result-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.26) 34%, transparent 56%);
    transform: translateX(-120%);
    opacity: 0;
}

.result-banner.is-active::before {
    animation: resultShine 1.35s ease;
    opacity: 1;
}

.result-banner.is-active {
    border-color: rgba(255, 195, 0, 0.55);
    box-shadow:
        0 26px 54px rgba(0, 0, 0, 0.5),
        0 0 26px rgba(255, 195, 0, 0.22),
        inset 0 0 26px rgba(255, 195, 0, 0.08);
}

@keyframes resultShine {
    0% { transform: translateX(-120%); opacity: 0; }
    18% { opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; }
}

.swal2-popup.modal-theme {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(8, 8, 8, 0.98));
    color: var(--text-1);
    border: 1px solid rgba(255, 195, 0, 0.22);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.swal2-title { font-family: var(--font-display); letter-spacing: 0.04em; color: var(--gold); }
.modal-history { display: grid; gap: 12px; text-align: left; margin-top: 10px; }
.swal2-container.swal2-backdrop-show {
    background: rgba(4, 4, 4, 0.8) !important;
    backdrop-filter: blur(8px);
}

.swal2-confirm.swal2-styled {
    background: linear-gradient(135deg, #FFDF00, #FFC300 48%, #B07A00) !important;
    color: #1a1200 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

@media (max-width: 1080px) {
    .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .page-shell { width: min(100% - 20px, 1220px); padding-top: 16px; }
    .wheel-card, .history-preview { padding: 22px; }
    .wheel-stage { min-height: 480px; }
    .wheel-stage-logo-wrap { margin-bottom: 8px; }
    .wheel-stage-logo { width: min(200px, 60%); }
    .wheel-center { width: 108px; height: 108px; }
}

/* --- Misafir / Giris Yapilmamis Overlay --- */
.wheel-card--locked { position: relative; }

.guest-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 3, 3, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
}

.guest-modal {
    text-align: center;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(8, 8, 8, 0.98));
    border: 1px solid rgba(255, 195, 0, 0.28);
    border-radius: var(--radius-xl);
    padding: 60px 48px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 0 80px rgba(255, 195, 0, 0.16), 0 30px 60px rgba(0, 0, 0, 0.55);
    animation: guestModalIn 0.5s ease-out;
}

.guest-modal-icon {
    font-size: 64px;
    color: var(--gold);
    margin-bottom: 24px;
    text-shadow: 0 0 30px rgba(255, 195, 0, 0.55);
}

.guest-modal h2 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--text-1);
    margin: 0 0 16px;
    letter-spacing: 0.04em;
}

.guest-modal p {
    font-size: 1.1rem;
    color: var(--text-2);
    margin: 0;
    line-height: 1.6;
}

@keyframes guestModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
