/**
 * SigilPlay Hub - Design System & Master Stylesheet
 * Brand: sigilplayhub.com
 * Theme: Obsidian Neon Arcane & Cosmic Runic
 * Class Prefix: sph-
 */

:root {
    --sph-bg-main: #0a0b12;
    --sph-bg-surface: #101322;
    --sph-bg-card: rgba(18, 22, 38, 0.75);
    --sph-bg-card-hover: rgba(28, 34, 58, 0.85);
    --sph-bg-glass: rgba(16, 20, 36, 0.65);
    
    --sph-border: rgba(139, 92, 246, 0.2);
    --sph-border-glow: rgba(139, 92, 246, 0.5);
    --sph-border-cyan: rgba(6, 182, 212, 0.3);
    
    --sph-violet: #8b5cf6;
    --sph-violet-hover: #7c3aed;
    --sph-violet-glow: rgba(139, 92, 246, 0.4);
    
    --sph-cyan: #06b6d4;
    --sph-cyan-glow: rgba(6, 182, 212, 0.4);
    
    --sph-amber: #f59e0b;
    --sph-amber-glow: rgba(245, 158, 11, 0.35);
    
    --sph-emerald: #10b981;
    --sph-rose: #f43f5e;
    
    --sph-text: #f1f5f9;
    --sph-text-muted: #94a3b8;
    --sph-text-dim: #64748b;
    
    --sph-radius-sm: 6px;
    --sph-radius: 12px;
    --sph-radius-lg: 18px;
    --sph-radius-full: 9999px;
    
    --sph-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --sph-shadow-glow: 0 0 25px rgba(139, 92, 246, 0.25);
    
    --sph-font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --sph-font-heading: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

/* RESET & BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--sph-bg-main);
    color: var(--sph-text);
    font-family: var(--sph-font-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.03) 0%, transparent 60%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* CONTAINER */
.sph-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* BUTTONS */
.sph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--sph-radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-align: center;
}

.sph-btn-primary {
    background: linear-gradient(135deg, var(--sph-violet) 0%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--sph-violet-glow);
}
.sph-btn-primary:hover {
    background: linear-gradient(135deg, var(--sph-violet-hover) 0%, #4f46e5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.sph-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--sph-text);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}
.sph-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

.sph-btn-bonus {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #0b0d14;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--sph-amber-glow);
}
.sph-btn-bonus:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.sph-btn-outline {
    border: 1px solid var(--sph-border);
    color: var(--sph-text-muted);
}
.sph-btn-outline:hover {
    border-color: var(--sph-violet);
    color: var(--sph-text);
}

.sph-btn-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--sph-cyan-glow);
}
.sph-btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.sph-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.sph-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--sph-radius);
}

/* BADGES */
.sph-badge-18 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sph-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--sph-radius-full);
    font-size: 12px;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid var(--sph-border);
    color: var(--sph-violet);
}

.sph-badge-amber {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.sph-badge-cyan {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}

/* HEADER & NAVBAR */
.sph-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(10, 11, 18, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.3s ease;
}

.sph-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}

.sph-brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sph-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.sph-logo-sigil {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--sph-violet) 0%, #06b6d4 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    color: #ffffff;
    font-size: 18px;
}

.sph-logo span {
    background: linear-gradient(90deg, #ffffff 40%, var(--sph-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sph-nav-links {
    display: none;
    align-items: center;
    gap: 22px;
    list-style: none;
}

@media (min-width: 992px) {
    .sph-nav-links {
        display: flex;
    }
}

.sph-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--sph-text-muted);
    transition: all 0.2s ease;
    padding: 6px 2px;
    position: relative;
}

.sph-nav-link:hover,
.sph-nav-link.sph-active {
    color: #ffffff;
}

.sph-nav-link.sph-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sph-violet) 0%, var(--sph-cyan) 100%);
    border-radius: 2px;
}

.sph-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* PLAYER STATUS CHIP */
.sph-player-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(18, 22, 38, 0.85);
    border: 1px solid var(--sph-border);
    padding: 5px 12px;
    border-radius: var(--sph-radius-full);
}

.sph-balance-widget {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    color: #fbbf24;
}

.sph-avatar-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sph-violet) 0%, var(--sph-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
}

/* BURGER TOGGLE */
.sph-burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sph-burger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--sph-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* SLIDING DRAWER NAVIGATION */
.sph-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.sph-drawer-backdrop.sph-open {
    opacity: 1;
    visibility: visible;
}

.sph-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--sph-bg-surface);
    border-left: 1px solid var(--sph-border);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}
.sph-drawer.sph-open {
    transform: translateX(0);
}

.sph-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.sph-drawer-close {
    font-size: 24px;
    color: var(--sph-text-muted);
}
.sph-drawer-close:hover {
    color: #ffffff;
}

.sph-drawer-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sph-text-dim);
    margin: 16px 0 8px 0;
    font-weight: 700;
}

.sph-drawer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sph-drawer-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--sph-radius-sm);
    color: var(--sph-text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.sph-drawer-item a:hover {
    background: rgba(139, 92, 246, 0.12);
    color: #ffffff;
}

/* MOBILE BOTTOM BAR */
.sph-bottom-tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 11, 18, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    z-index: 850;
    align-items: center;
    justify-content: space-around;
}

@media (min-width: 769px) {
    .sph-bottom-tabbar {
        display: none;
    }
}

.sph-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--sph-text-muted);
    font-size: 11px;
    font-weight: 500;
}
.sph-tab-item.sph-active,
.sph-tab-item:hover {
    color: var(--sph-violet);
}
.sph-tab-icon {
    font-size: 18px;
}

/* MAIN WRAPPER */
.sph-main-content {
    flex: 1;
    padding-bottom: 80px;
}

/* 3D HERO CAROUSEL */
.sph-hero-section {
    position: relative;
    padding: 30px 0 50px 0;
}

.sph-hero-carousel {
    position: relative;
    border-radius: var(--sph-radius-lg);
    overflow: hidden;
    background: var(--sph-bg-surface);
    border: 1px solid var(--sph-border);
    box-shadow: var(--sph-shadow), var(--sph-shadow-glow);
    min-height: 480px;
}

.sph-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    display: flex;
    align-items: center;
}

.sph-slide.sph-active-slide {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.sph-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.sph-slide-raster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sph-slide-vector-art {
    width: 100%;
    height: 100%;
}

.sph-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 11, 18, 0.95) 0%, rgba(10, 11, 18, 0.75) 50%, rgba(10, 11, 18, 0.4) 100%);
}

.sph-slide-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 60px 48px;
}

.sph-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--sph-radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--sph-border-glow);
    color: var(--sph-violet);
    margin-bottom: 20px;
}

.sph-slide-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    color: #ffffff;
}

.sph-slide-title span {
    background: linear-gradient(90deg, var(--sph-violet) 0%, var(--sph-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sph-slide-lead {
    font-size: 16px;
    color: var(--sph-text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.sph-slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.sph-slider-prev,
.sph-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 11, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.sph-slider-prev:hover,
.sph-slider-next:hover {
    background: var(--sph-violet);
    border-color: var(--sph-violet);
}

.sph-slider-prev { left: 16px; }
.sph-slider-next { right: 16px; }

.sph-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 48px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.sph-dot {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
}
.sph-dot.sph-active-dot {
    width: 32px;
    background: var(--sph-violet);
}

/* LIVE WINNERS TICKER */
.sph-ticker-bar {
    background: rgba(16, 19, 34, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    margin-bottom: 40px;
    overflow: hidden;
}

.sph-ticker-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sph-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--sph-emerald);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.sph-ticker-items {
    display: flex;
    align-items: center;
    gap: 30px;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.sph-ticker-items::-webkit-scrollbar {
    display: none;
}

.sph-ticker-item {
    font-size: 13px;
    color: var(--sph-text-muted);
}
.sph-ticker-item strong {
    color: #ffffff;
}
.sph-ticker-amount {
    color: #fbbf24;
    font-weight: 700;
}

/* COMMUNITY VAULT SECTION */
.sph-vault-box {
    background: linear-gradient(135deg, rgba(20, 24, 44, 0.8) 0%, rgba(13, 16, 30, 0.95) 100%);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius-lg);
    padding: 40px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.sph-vault-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    position: relative;
    z-index: 2;
}

@media (min-width: 900px) {
    .sph-vault-grid {
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
    }
}

.sph-vault-val {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    color: #fbbf24;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
    line-height: 1;
    margin: 12px 0;
    font-family: var(--sph-font-heading);
}

.sph-vault-progress-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin: 16px 0;
}

.sph-vault-progress-bar {
    height: 100%;
    width: 82%;
    background: linear-gradient(90deg, var(--sph-violet) 0%, #fbbf24 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.sph-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.sph-count-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--sph-radius-sm);
    padding: 12px 6px;
    text-align: center;
}

.sph-count-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--sph-cyan);
}

.sph-count-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--sph-text-dim);
}

/* GAME RAILS & GRIDS */
.sph-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.sph-section-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
}

.sph-section-title span {
    color: var(--sph-violet);
}

.sph-section-subtitle {
    font-size: 14px;
    color: var(--sph-text-muted);
    margin-top: 4px;
}

.sph-rail-wrapper {
    position: relative;
    margin-bottom: 45px;
}

.sph-rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 4px 20px 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--sph-border) transparent;
}

.sph-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* GAME CARD */
.sph-game-card {
    flex: 0 0 260px;
    background: var(--sph-bg-card);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
}

.sph-game-card:hover {
    transform: translateY(-6px);
    border-color: var(--sph-violet);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--sph-violet-glow);
}

.sph-game-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f1220;
}

.sph-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sph-game-card:hover .sph-game-thumb img {
    transform: scale(1.06);
}

.sph-game-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(10, 11, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fbbf24;
}

.sph-game-overlay-action {
    position: absolute;
    inset: 0;
    background: rgba(10, 11, 18, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sph-game-card:hover .sph-game-overlay-action {
    opacity: 1;
}

.sph-game-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sph-game-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.sph-game-studio {
    font-size: 12px;
    color: var(--sph-text-dim);
    margin-bottom: 12px;
}

.sph-game-metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
    color: var(--sph-text-muted);
}

.sph-game-metric-item span {
    color: var(--sph-cyan);
    font-weight: 600;
}

/* FILTER & SEARCH BAR */
.sph-filter-bar {
    background: var(--sph-bg-surface);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius);
    padding: 16px 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.sph-filter-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.sph-cat-btn {
    padding: 6px 14px;
    border-radius: var(--sph-radius-full);
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: var(--sph-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.sph-cat-btn.sph-active,
.sph-cat-btn:hover {
    background: var(--sph-violet);
    color: #ffffff;
    border-color: var(--sph-violet);
}

.sph-filter-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.sph-input,
.sph-select {
    background: rgba(10, 11, 18, 0.8);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius-sm);
    color: var(--sph-text);
    padding: 8px 14px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}
.sph-input:focus,
.sph-select:focus {
    border-color: var(--sph-violet);
    box-shadow: 0 0 10px var(--sph-violet-glow);
}

/* PLAY CABINET (play.php) */
.sph-cabinet-sticky {
    position: sticky;
    top: 72px;
    z-index: 800;
    background: rgba(14, 17, 30, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sph-border);
    padding: 12px 0;
    margin-bottom: 24px;
}

.sph-cabinet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.sph-iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    background: #000000;
    border-radius: var(--sph-radius-lg);
    overflow: hidden;
    border: 1px solid var(--sph-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
}

.sph-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.sph-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.sph-spec-card {
    background: var(--sph-bg-surface);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius);
    padding: 18px;
    text-align: center;
}

.sph-spec-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--sph-cyan);
    margin-bottom: 4px;
}

.sph-spec-name {
    font-size: 12px;
    color: var(--sph-text-dim);
    text-transform: uppercase;
}

/* WHEEL OF FORTUNE (rewards.php) */
.sph-wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
}

.sph-wheel-outer {
    position: relative;
    width: 380px;
    height: 380px;
    max-width: 90vw;
    max-height: 90vw;
    margin: 30px auto;
}

.sph-wheel-pointer {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 30px solid #fbbf24;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

.sph-wheel-canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.35);
}

/* QUESTS & MISSIONS (quests.php) */
.sph-quest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.sph-quest-card {
    background: var(--sph-bg-surface);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.sph-quest-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sph-quest-icon {
    font-size: 28px;
    padding: 10px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--sph-radius-sm);
}

.sph-quest-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.sph-quest-desc {
    font-size: 13px;
    color: var(--sph-text-muted);
}

.sph-quest-progress-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.sph-quest-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--sph-cyan) 0%, var(--sph-violet) 100%);
    border-radius: 4px;
}

/* VIP TIERS (status.php) */
.sph-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.sph-tier-card {
    background: var(--sph-bg-surface);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius);
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease;
}
.sph-tier-card:hover {
    transform: translateY(-4px);
    border-color: var(--sph-violet);
}

.sph-tier-card.sph-tier-highlight {
    border-color: #fbbf24;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
}

.sph-tier-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.sph-tier-name {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.sph-tier-req {
    font-size: 12px;
    color: var(--sph-text-dim);
    margin-bottom: 16px;
}

.sph-tier-perks {
    list-style: none;
    font-size: 13px;
    color: var(--sph-text-muted);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

/* AUTH FORMS (login.php, register.php) */
.sph-auth-box {
    max-width: 480px;
    margin: 40px auto;
    background: var(--sph-bg-surface);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius-lg);
    padding: 36px;
    box-shadow: var(--sph-shadow);
}

.sph-auth-title {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    margin-bottom: 8px;
}

.sph-auth-subtitle {
    font-size: 14px;
    color: var(--sph-text-muted);
    text-align: center;
    margin-bottom: 28px;
}

.sph-form-group {
    margin-bottom: 20px;
}

.sph-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sph-text-muted);
    margin-bottom: 8px;
}

.sph-form-input {
    width: 100%;
    background: rgba(10, 11, 18, 0.85);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius-sm);
    color: #ffffff;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}
.sph-form-input:focus {
    border-color: var(--sph-violet);
    box-shadow: 0 0 12px var(--sph-violet-glow);
}

.sph-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--sph-text-muted);
    cursor: pointer;
}

.sph-form-checkbox input {
    margin-top: 3px;
    accent-color: var(--sph-violet);
}

.sph-auth-alert {
    padding: 12px 16px;
    border-radius: var(--sph-radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
}
.sph-alert-error {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fb7185;
}
.sph-alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

/* ARTICLES & LEGAL PAGES */
.sph-page-header {
    padding: 40px 0 24px 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.sph-page-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--sph-violet);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.sph-page-title {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.sph-page-lead {
    font-size: 16px;
    color: var(--sph-text-muted);
    line-height: 1.6;
}

.sph-article-box {
    background: var(--sph-bg-surface);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius-lg);
    padding: 40px;
    margin: 30px auto;
    max-width: 960px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.8;
}

.sph-article-box h2 {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 32px 0 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.sph-article-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 22px 0 10px 0;
}

.sph-article-box p {
    margin-bottom: 16px;
}

.sph-article-box ul,
.sph-article-box ol {
    margin: 14px 0 20px 24px;
}

.sph-article-box li {
    margin-bottom: 8px;
}

.sph-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.sph-table th,
.sph-table td {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.sph-table th {
    background: rgba(139, 92, 246, 0.12);
    color: #ffffff;
    font-weight: 700;
}

/* RESPONSIBLE GAMING COOL-OFF BOX */
.sph-cooloff-box {
    background: linear-gradient(135deg, rgba(16, 20, 36, 0.9) 0%, rgba(10, 12, 22, 0.95) 100%);
    border: 1px solid var(--sph-border-cyan);
    border-radius: var(--sph-radius);
    padding: 28px;
    margin: 24px 0;
}

.sph-cooloff-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.sph-cooloff-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* FOOTER */
.sph-footer {
    background: #07080d;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    padding: 60px 0 30px 0;
    margin-top: auto;
    font-size: 14px;
    color: var(--sph-text-muted);
}

.sph-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.sph-footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    margin: 14px 0;
}

.sph-footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.sph-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sph-footer-links a:hover {
    color: var(--sph-violet);
}

.sph-compliance-card {
    background: rgba(18, 22, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--sph-radius);
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.sph-compliance-icon {
    font-size: 32px;
    color: #fb7185;
}

.sph-compliance-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--sph-text-muted);
}

.sph-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

/* MODALS */
.sph-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sph-modal-box {
    background: var(--sph-bg-surface);
    border: 1px solid var(--sph-border-glow);
    border-radius: var(--sph-radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 36px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--sph-violet-glow);
    animation: sphPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sphPopIn {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.sph-modal-icon {
    font-size: 54px;
    margin-bottom: 14px;
    display: inline-block;
}

.sph-modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.sph-modal-reward {
    font-size: 32px;
    font-weight: 900;
    color: #fbbf24;
    margin: 16px 0;
}

.sph-modal-desc {
    font-size: 14px;
    color: var(--sph-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* COOKIE BANNER */
.sph-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 520px;
    background: rgba(14, 18, 32, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius);
    padding: 20px 24px;
    z-index: 1050;
    box-shadow: var(--sph-shadow);
    display: none;
    animation: sphSlideUp 0.35s ease;
}

@keyframes sphSlideUp {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.sph-cookie-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sph-cookie-text {
    font-size: 13px;
    color: var(--sph-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.sph-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* FAQ ACCORDION */
.sph-faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 30px 0;
}

.sph-faq-item {
    background: var(--sph-bg-surface);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius);
    overflow: hidden;
}

.sph-faq-question {
    width: 100%;
    padding: 18px 24px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    transition: background 0.2s ease;
}
.sph-faq-question:hover {
    background: rgba(139, 92, 246, 0.08);
}

.sph-faq-icon {
    font-size: 20px;
    transition: transform 0.25s ease;
}
.sph-faq-item.sph-open .sph-faq-icon {
    transform: rotate(45deg);
}

.sph-faq-answer {
    padding: 0 24px 20px 24px;
    font-size: 14px;
    color: var(--sph-text-muted);
    line-height: 1.7;
    display: none;
}
.sph-faq-item.sph-open .sph-faq-answer {
    display: block;
}
