:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15), transparent 25%);
    min-height: 100vh;
    overflow-x: hidden;
}

.top-toolbar {
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 8px 20px;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glassmorphism Classes */
.glass-header {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Typography & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.site-logo {
    height: 40px;
    width: auto;
    -webkit-text-fill-color: initial;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

.hero {
    text-align: center;
    padding: 80px 0 60px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero span {
    color: var(--accent-color);
}

.hero p {
    font-size: 18px;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    
    .desktop-search {
        display: none;
    }
    
    .mobile-search {
        display: block;
        width: 100%;
    }
    
    .slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

/* Slots Grid */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

.slot-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.slot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.slot-image-container {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.slot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.slot-card:hover .slot-image {
    transform: scale(1.05);
}

.slot-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.slot-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.page-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Slot View */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

.slot-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Search Styles */
.search-container {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-results {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.active {
    display: block;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-item img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 12px;
}

.search-item span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.desktop-search {
    display: block;
}

.mobile-search {
    display: none;
}

/* Home View */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    font-size: 20px;
    color: #94a3b8;
}

/* Slot Landing Page */
.slot-page-content {
    margin-top: 20px;
    padding: 30px;
    animation: fadeIn 0.4s ease-out;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #fff;
}

.slot-header {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.slot-header h1 {
    font-size: 32px;
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-info h2 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: var(--accent-color);
}

.chars-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.chars-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.char-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.char-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.game-desc {
    line-height: 1.6;
    color: #cbd5e1;
    font-size: 16px;
}

.game-desc p {
    margin-bottom: 15px;
}

.game-desc h2, .game-desc h3, .game-desc h4 {
    color: #fff;
    margin: 25px 0 15px;
    font-weight: 600;
}

.game-desc h2 { font-size: 24px; }
.game-desc h3 { font-size: 20px; }

.game-desc ul, .game-desc ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.game-desc li {
    margin-bottom: 8px;
}

/* Play CTA Button */
.play-cta-btn {
    display: block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    padding: 18px 30px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    margin: 20px 0;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.play-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Promo Card */
.promo-card {
    padding: 25px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--accent);
    box-shadow: 0 8px 32px rgba(129, 140, 248, 0.15);
}

.promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.promo-header h3 {
    color: #fff;
    margin: 0;
    font-size: 20px;
}

.activations-count {
    font-size: 14px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.promo-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    color: #e2e8f0;
}

.promo-action {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.promo-code-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed var(--accent);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 20px;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 30px;
    margin: 0;
}

nav a {
    color: #cbd5e1;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 16px;
}

nav a:hover, nav a.active {
    color: var(--accent);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1000;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    top: 100%;
    left: 0;
    padding: 10px 0;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-content a {
    color: #cbd5e1;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-weight: 400;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Typography */
.copy-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 16px;
}

.copy-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.copy-btn.copied {
    background: #10b981;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Carousel Buttons Hover */
.carousel-btn {
    transition: background-color 0.3s, transform 0.2s;
}
.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1);
}

.fullscreen-toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    display: none;
}

@media (max-width: 768px) {
    .fullscreen-toggle-btn {
        display: block;
    }
}

.game-container.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important; /* For mobile browsers with address bars */
    z-index: 9999 !important;
    background: #000 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: auto !important; /* Allow scrolling if iframe is large */
    -webkit-overflow-scrolling: touch !important;
}

.game-container.fullscreen iframe {
    height: 100% !important;
    border-radius: 0 !important;
}
