/* Şans Oyunları — Çarkıfelek */
.sw-page {
    --sw-gold: #f59e0b;
    --sw-gold-light: #fcd34d;
    --sw-purple: #8b5cf6;
    --sw-cyan: #22d3ee;
    --sw-bg: #070b14;
    --sw-card: rgba(15, 23, 42, 0.92);
    --sw-border: rgba(148, 163, 184, 0.18);
    position: relative;
    z-index: 1;
    padding: 110px 0 72px;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139, 92, 246, 0.22), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(245, 158, 11, 0.12), transparent 50%),
        linear-gradient(180deg, #070b14 0%, #0f172a 100%);
    min-height: 88vh;
}

.sw-hero {
    text-align: center;
    margin-bottom: 36px;
}

.sw-hero h1 {
    font-family: 'Oxanium', system-ui, sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #fff 0%, var(--sw-gold-light) 45%, var(--sw-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sw-hero p {
    color: rgba(226, 232, 240, 0.72);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1rem;
}

.sw-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.sw-game-card {
    background: var(--sw-card);
    border: 1px solid var(--sw-border);
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none !important;
    display: block;
}

.sw-game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(245, 158, 11, 0.12);
}

.sw-game-card__icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.35));
}

.sw-game-card__title {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.sw-game-card__desc {
    color: rgba(148, 163, 184, 0.95);
    font-size: 0.88rem;
    margin: 0;
}

.sw-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

@media (min-width: 992px) {
    .sw-layout {
        grid-template-columns: 340px 1fr;
    }
}

.sw-panel {
    background: var(--sw-card);
    border: 1px solid var(--sw-border);
    border-radius: 18px;
    padding: 22px;
    backdrop-filter: blur(8px);
}

.sw-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.sw-stat {
    background: rgba(2, 6, 23, 0.65);
    border: 1px solid var(--sw-border);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
}

.sw-stat strong {
    display: block;
    font-family: 'Oxanium', sans-serif;
    font-size: 1.9rem;
    line-height: 1;
    color: var(--sw-gold-light);
}

.sw-stat span {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

.sw-note {
    font-size: 0.84rem;
    color: rgba(203, 213, 225, 0.85);
    line-height: 1.55;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.55);
    border-left: 3px solid var(--sw-gold);
}

.sw-note--guest {
    border-left-color: var(--sw-cyan);
}

.sw-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.sw-btn--primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    color: #111;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.28);
}

.sw-btn--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.38);
}

.sw-btn--ghost {
    background: rgba(51, 65, 85, 0.55);
    color: #e2e8f0;
    border: 1px solid var(--sw-border);
}

.sw-btn--ghost:hover:not(:disabled) {
    background: rgba(71, 85, 105, 0.65);
}

.sw-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
}

.sw-wheel-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sw-wheel-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sw-wheel-stage {
    position: relative;
    width: min(100%, 500px);
    margin: 0 auto;
    padding: 8px 0 16px;
}

/* Masa üstü çark — önden bakış, 3D eğim */
.sw-wheel-scene {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 400px;
    margin: 0 auto;
    perspective: 1100px;
    perspective-origin: 50% 28%;
}

.sw-wheel-tilt {
    position: absolute;
    left: 50%;
    top: 24px;
    width: 86%;
    max-width: 380px;
    transform: translateX(-50%) rotateX(54deg);
    transform-style: preserve-3d;
}

.sw-wheel-rotor {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    transform-style: preserve-3d;
    transition: transform 4.2s cubic-bezier(0.1, 0.82, 0.12, 1);
    will-change: transform;
    transform: rotateZ(0deg);
}

.sw-wheel-rim {
    position: absolute;
    inset: -3%;
    border-radius: 50%;
    background: linear-gradient(180deg, #fde68a 0%, #d97706 35%, #92400e 65%, #451a03 100%);
    transform: translateZ(-28px);
    box-shadow: 0 36px 48px rgba(0, 0, 0, 0.7);
}

.sw-wheel-face {
    position: absolute;
    inset: 0;
    transform: translateZ(2px);
    transform-style: preserve-3d;
}

.sw-wheel-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 12px;
    background: linear-gradient(160deg, #fde68a 0%, #f59e0b 40%, #b45309 75%, #78350f 100%);
    box-shadow:
        inset 0 6px 14px rgba(255, 255, 255, 0.35),
        inset 0 -10px 18px rgba(0, 0, 0, 0.4),
        0 0 0 3px #1e293b;
}

.sw-table-surface {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 115%;
    height: 90px;
    transform: translateX(-50%) rotateX(72deg);
    transform-origin: center top;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(120, 80, 40, 0.5) 0%, transparent 55%),
        linear-gradient(180deg, #4a3728 0%, #2a1d14 45%, #1a120c 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.sw-wheel-disc {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: #334155;
    box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.5);
}

.sw-wheel-disc::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from -90deg,
        transparent 0deg calc(360deg / var(--sw-n, 33) - 0.55deg),
        rgba(255, 255, 255, 0.42) calc(360deg / var(--sw-n, 33) - 0.55deg) calc(360deg / var(--sw-n, 33))
    );
    pointer-events: none;
    z-index: 2;
}

.sw-wheel-disc::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.12) 0%, transparent 45%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
    z-index: 1;
}

.sw-wheel-labels {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
}

.sw-wheel-label {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46%;
    height: 0;
    transform-origin: 0% 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5%;
}

.sw-wheel-label span {
    display: inline-block;
    font-family: 'Oxanium', sans-serif;
    font-size: clamp(0.5rem, 1.45vw, 0.7rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: center;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-wheel-label.is-rare span {
    color: #fef9c3;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.sw-wheel-label.sw-lbl--pass span {
    color: #cbd5e1;
    font-size: clamp(0.48rem, 1.3vw, 0.62rem);
}

.sw-wheel-pointer {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%) translateZ(80px);
    z-index: 20;
    width: 40px;
    height: 52px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.65));
    pointer-events: none;
}

.sw-wheel-pointer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 38px solid #fbbf24;
}

.sw-wheel-pointer::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff7cc, #f59e0b);
    border: 2px solid #fff;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.9);
}

.sw-wheel-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(4px);
    z-index: 5;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(160deg, #475569 0%, #0f172a 55%, #1e293b 100%);
    border: 4px solid #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 3px rgba(15, 23, 42, 0.9),
        0 8px 16px rgba(0, 0, 0, 0.55),
        inset 0 2px 8px rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.sw-wheel-hub span {
    font-family: 'Oxanium', sans-serif;
    font-weight: 900;
    font-size: 0.72rem;
    color: #fcd34d;
    letter-spacing: 0.12em;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.sw-spinning .sw-wheel-rotor {
    pointer-events: none;
}

.sw-history {
    margin-top: 24px;
}

.sw-history h3 {
    font-family: 'Oxanium', sans-serif;
    font-size: 1rem;
    color: #e2e8f0;
    margin: 0 0 14px;
}

.sw-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid var(--sw-border);
    margin-bottom: 8px;
}

.sw-history-item strong {
    color: #f8fafc;
    font-size: 0.88rem;
}

.sw-history-item small {
    color: rgba(148, 163, 184, 0.95);
    font-size: 0.76rem;
}

.sw-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(2, 6, 23, 0.88);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sw-modal.is-open {
    display: flex;
}

.sw-modal__box {
    width: min(100%, 440px);
    background: linear-gradient(160deg, #111827, #0f172a);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    animation: swPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes swPop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.sw-modal__icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 12px;
}

.sw-modal__title {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}

.sw-modal__prize {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--sw-gold-light);
    margin: 0 0 12px;
}

.sw-modal__sub {
    font-size: 0.88rem;
    color: rgba(203, 213, 225, 0.9);
    line-height: 1.5;
    margin: 0 0 20px;
}

.sw-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.sw-legend span {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.8);
    color: #cbd5e1;
    border: 1px solid var(--sw-border);
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.sw-game-card.is-disabled {
    position: relative;
    cursor: not-allowed;
    opacity: .72;
    filter: grayscale(.35);
    pointer-events: none;
}
.sw-disabled-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    color: #fff;
    border-radius: 7px;
    background: #b63c2d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .55px;
}
.sw-maintenance-card {
    max-width: 720px;
    margin: 50px auto;
    padding: 46px 30px;
    color: #dce3ec;
    border: 1px solid #3c4858;
    border-radius: 18px;
    background: #1b2430;
    text-align: center;
    box-shadow: 0 16px 35px rgba(0,0,0,.22);
}
.sw-maintenance-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    color: #fff;
    border-radius: 15px;
    background: #dc5823;
    font-size: 21px;
}
.sw-maintenance-card > span { display: block; color: #ef8154; font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.sw-maintenance-card h1 { margin: 8px 0 12px; color: #fff; font-size: clamp(25px,4vw,40px); }
.sw-maintenance-card p { margin-bottom: 22px; color: #aeb9c8; }
.sw-maintenance-card a { display: inline-flex; padding: 11px 18px; color: #fff; border-radius: 9px; background: #d9501b; font-size: 11px; font-weight: 900; text-decoration: none; }
