:root {
    color-scheme: dark;
    --theme-mocha: #7ee3ff;
    --theme-macchiato: #89b4fa;
    --theme-frappe: #8caaee;
    --theme-latte: #0f7cff;
    --theme-nord: #88c0d0;
    --theme-rose-pine: #ebbcba;
    --theme-moss: #4caf50;
    --theme-gruvbox: #ebdbb2;
    --theme-night: #58a6ff;
    --bg: #10151b;
    --bg-elevated: rgba(20, 28, 36, 0.84);
    --bg-soft: rgba(32, 43, 54, 0.7);
    --surface: rgba(24, 33, 43, 0.9);
    --surface-strong: rgba(31, 42, 54, 0.96);
    --surface-hover: rgba(42, 56, 70, 0.98);
    --border: rgba(196, 214, 200, 0.12);
    --border-strong: rgba(214, 228, 184, 0.28);
    --text: #f2f0e8;
    --muted: #b6c0b3;
    --accent: #cfe38b;
    --accent-strong: #9fd36c;
    --accent-warm: #f2b46f;
    --success: #6fd38d;
    --danger: #ff8c8c;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --content-width: 1240px;
}

html[data-theme="latte"],
body[data-theme="latte"] {
    color-scheme: light;
    --bg: #edf4fb;
    --bg-elevated: rgba(255, 255, 255, 0.9);
    --bg-soft: rgba(226, 238, 247, 0.8);
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: rgba(240, 247, 252, 0.98);
    --surface-hover: rgba(226, 238, 247, 0.98);
    --border: rgba(23, 48, 66, 0.12);
    --border-strong: rgba(15, 124, 255, 0.26);
    --text: #173042;
    --muted: #5f778a;
    --accent: #0f7cff;
    --accent-strong: #0a68d9;
    --accent-warm: #f28e52;
    --shadow: 0 30px 70px rgba(18, 51, 74, 0.14);
}

html[data-theme="macchiato"],
body[data-theme="macchiato"] {
    --bg: #0b1420;
    --bg-elevated: rgba(24, 39, 58, 0.88);
    --bg-soft: rgba(35, 54, 78, 0.72);
    --surface: rgba(30, 49, 73, 0.92);
    --surface-strong: rgba(39, 61, 89, 0.98);
    --surface-hover: rgba(47, 72, 102, 0.98);
    --border: rgba(168, 197, 233, 0.14);
    --border-strong: rgba(138, 180, 244, 0.28);
    --text: #edf6ff;
    --muted: #9bb1c7;
    --accent: #8aadf4;
    --accent-strong: #5ea8ff;
    --accent-warm: #f39b67;
}

html[data-theme="frappe"],
body[data-theme="frappe"] {
    --bg: #141927;
    --bg-elevated: rgba(34, 40, 58, 0.88);
    --bg-soft: rgba(45, 52, 72, 0.74);
    --surface: rgba(42, 49, 71, 0.92);
    --surface-strong: rgba(56, 64, 91, 0.98);
    --surface-hover: rgba(67, 76, 108, 0.98);
    --border: rgba(166, 179, 204, 0.14);
    --border-strong: rgba(140, 170, 238, 0.26);
    --text: #ecf2ff;
    --muted: #a6b3cc;
    --accent: #8caaee;
    --accent-strong: #7b9cf3;
    --accent-warm: #f2a16d;
}

html[data-theme="nord"],
body[data-theme="nord"] {
    --bg: #17202a;
    --bg-elevated: rgba(35, 46, 58, 0.88);
    --bg-soft: rgba(46, 60, 76, 0.74);
    --surface: rgba(44, 59, 76, 0.92);
    --surface-strong: rgba(58, 74, 92, 0.98);
    --surface-hover: rgba(70, 89, 110, 0.98);
    --border: rgba(178, 196, 212, 0.14);
    --border-strong: rgba(136, 192, 208, 0.26);
    --text: #ebf5ff;
    --muted: #b2c4d4;
    --accent: #88c0d0;
    --accent-strong: #5eb9d4;
    --accent-warm: #f2b46f;
}

html[data-theme="rose-pine"],
body[data-theme="rose-pine"] {
    --bg: #15131f;
    --bg-elevated: rgba(31, 29, 46, 0.88);
    --bg-soft: rgba(40, 37, 58, 0.74);
    --surface: rgba(40, 37, 58, 0.92);
    --surface-strong: rgba(52, 47, 73, 0.98);
    --surface-hover: rgba(64, 57, 86, 0.98);
    --border: rgba(184, 173, 201, 0.14);
    --border-strong: rgba(235, 188, 186, 0.26);
    --text: #f0e9ff;
    --muted: #b8adc9;
    --accent: #ebbcba;
    --accent-strong: #f29e8c;
    --accent-warm: #f6b88f;
}

html[data-theme="moss"],
body[data-theme="moss"] {
    --bg: #101713;
    --bg-elevated: rgba(27, 36, 30, 0.88);
    --bg-soft: rgba(37, 49, 41, 0.74);
    --surface: rgba(36, 48, 40, 0.92);
    --surface-strong: rgba(46, 59, 51, 0.98);
    --surface-hover: rgba(58, 73, 64, 0.98);
    --border: rgba(167, 192, 173, 0.14);
    --border-strong: rgba(100, 217, 138, 0.24);
    --text: #edf8ef;
    --muted: #a7c0ad;
    --accent: #64d98a;
    --accent-strong: #4caf50;
    --accent-warm: #e0b26b;
}

html[data-theme="gruvbox"],
body[data-theme="gruvbox"] {
    --bg: #18130f;
    --bg-elevated: rgba(47, 39, 31, 0.88);
    --bg-soft: rgba(60, 49, 39, 0.74);
    --surface: rgba(60, 49, 39, 0.92);
    --surface-strong: rgba(73, 60, 48, 0.98);
    --surface-hover: rgba(86, 71, 58, 0.98);
    --border: rgba(210, 192, 160, 0.14);
    --border-strong: rgba(235, 219, 178, 0.26);
    --text: #fff4db;
    --muted: #d2c0a0;
    --accent: #ebdbb2;
    --accent-strong: #f2b96b;
    --accent-warm: #f2b96b;
}

html[data-theme="night"],
body[data-theme="night"] {
    --bg: #080c12;
    --bg-elevated: rgba(13, 21, 31, 0.9);
    --bg-soft: rgba(22, 32, 46, 0.76);
    --surface: rgba(22, 32, 46, 0.94);
    --surface-strong: rgba(28, 39, 54, 0.98);
    --surface-hover: rgba(38, 52, 71, 0.98);
    --border: rgba(142, 163, 186, 0.14);
    --border-strong: rgba(88, 166, 255, 0.26);
    --text: #eef6ff;
    --muted: #8ea3ba;
    --accent: #58a6ff;
    --accent-strong: #2f81f7;
    --accent-warm: #f2a16d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    min-width: 320px;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 18%, transparent), transparent 28%),
        radial-gradient(circle at top right, color-mix(in srgb, var(--accent-warm) 18%, transparent), transparent 24%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg) 72%, #1d2833 28%) 0%, var(--bg) 48%, color-mix(in srgb, var(--bg) 78%, black 22%) 100%);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    transition:
        background 300ms ease,
        color 300ms ease,
        border-color 300ms ease;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -2;
    pointer-events: none;
    filter: blur(90px);
}

body::before {
    top: -7rem;
    left: -4rem;
    width: 22rem;
    height: 22rem;
    background: color-mix(in srgb, var(--accent) 22%, transparent);
}

body::after {
    right: -6rem;
    bottom: -8rem;
    width: 26rem;
    height: 26rem;
    background: color-mix(in srgb, var(--accent-warm) 18%, transparent);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

::selection {
    background: rgba(207, 227, 139, 0.28);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.site-shell {
    position: relative;
    min-height: 100vh;
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
}

#particles-js canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at center, black, transparent 85%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 18px 20px 0;
}

.site-nav {
    width: min(var(--content-width), calc(100% - 24px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(16, 21, 27, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(207, 227, 139, 0.16);
}

.brand-copy {
    min-width: 0;
}

.brand-kicker {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand-name {
    display: block;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
}

.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    transition:
        color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: rgba(207, 227, 139, 0.1);
    transform: translateY(-1px);
}

.nav-link .material-symbols-outlined {
    font-size: 20px;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.utility-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    border: 1px solid rgba(207, 227, 139, 0.12);
    background: rgba(255, 255, 255, 0.02);
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.utility-chip:hover {
    color: var(--text);
    background: rgba(207, 227, 139, 0.08);
    border-color: rgba(207, 227, 139, 0.22);
}

.utility-chip .material-symbols-outlined {
    font-size: 20px;
}

.clock-chip {
    min-width: 98px;
    justify-content: center;
}

.page {
    width: min(var(--content-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 64px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: stretch;
    padding-top: 22px;
}

.hero-panel,
.glass-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%),
        var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 34px;
}

.hero-panel::before,
.glass-panel::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(125deg, rgba(207, 227, 139, 0.1), transparent 32%, rgba(242, 180, 111, 0.08));
    z-index: -1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(207, 227, 139, 0.1);
    color: #f0f3d7;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.section-heading h1,
.section-heading h2 {
    font-family: "Sora", "Segoe UI", sans-serif;
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(3rem, 7vw, 5.9rem);
    max-width: 11ch;
}

.hero-lead {
    max-width: 62ch;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-type {
    margin: 0 0 20px;
    min-height: 1.6em;
    color: #dff8ff;
    font-size: 1.2rem;
    font-weight: 600;
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button,
.button-secondary,
.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    min-width: 0;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.button {
    color: #11161b;
    background: linear-gradient(135deg, #d9e7a4 0%, #9fd36c 100%);
    box-shadow: 0 20px 35px rgba(159, 211, 108, 0.22);
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
    transform: translateY(-2px);
}

.button-secondary {
    color: var(--text);
    border-color: rgba(207, 227, 139, 0.18);
    background: rgba(207, 227, 139, 0.08);
}

.button-ghost {
    color: var(--muted);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.hero-stats,
.feature-grid,
.card-grid,
.portal-grid,
.testimonial-grid,
.detail-grid {
    display: grid;
    gap: 16px;
    grid-auto-rows: 1fr;
}

.hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.stat-card,
.feature-card,
.content-card,
.game-card,
.promo-card,
.info-card,
.testimonial,
.offerwall-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stat-card {
    padding: 18px;
}

.stat-card strong {
    display: block;
    font-size: 1.8rem;
    font-family: "Sora", "Segoe UI", sans-serif;
}

.stat-card span {
    color: var(--muted);
}

.hero-side {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-side .mini-panel {
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-side .mini-panel strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.05rem;
    color: var(--text);
}

.mini-panel h3,
.feature-card h3,
.content-card h3,
.info-card h3,
.promo-card h3,
.offerwall-card h2 {
    margin: 0 0 8px;
    font-family: "Sora", "Segoe UI", sans-serif;
}

.mini-panel p,
.feature-card p,
.content-card p,
.info-card p,
.promo-card p,
.testimonial p,
.offerwall-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.site-section {
    margin-top: 26px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading h2,
.section-heading h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 3.1rem);
}

.section-heading p {
    max-width: 58ch;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.feature-grid,
.card-grid,
.portal-grid,
.testimonial-grid,
.detail-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.feature-card,
.content-card,
.promo-card,
.testimonial,
.info-card,
.offerwall-card {
    padding: 22px;
}

.feature-card {
    grid-column: span 3;
}

.feature-card .material-symbols-outlined,
.content-card .material-symbols-outlined {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 14px;
    color: var(--accent);
    background: rgba(126, 227, 255, 0.1);
}

.content-card {
    grid-column: span 4;
}

.content-card.accent {
    background:
        radial-gradient(circle at top right, rgba(126, 227, 255, 0.14), transparent 45%),
        rgba(255, 255, 255, 0.04);
}

.portal-grid .game-card {
    grid-column: span 3;
}

.portal-grid.portal-grid-featured .game-card:first-child {
    grid-column: span 6;
    grid-row: span 2;
}

.portal-grid.portal-grid-featured .game-card:nth-child(2),
.portal-grid.portal-grid-featured .game-card:nth-child(3) {
    grid-column: span 3;
}

.game-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.game-card:hover,
.promo-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.game-card img {
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
}

.game-card-body {
    padding: 16px;
}

.game-card-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.game-card h3 {
    margin: 0;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.1rem;
}

.game-card p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.search-shell,
.toolbar-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    backdrop-filter: blur(16px);
}

.search-shell {
    justify-content: space-between;
}

.search-shell .search-container {
    flex: 1;
    min-width: min(100%, 260px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.search-shell .search-container input {
    min-width: 0;
    width: 100%;
    border: 0;
    color: var(--text);
    background: transparent;
    outline: 0;
    font-size: 16px;
}

.page-note,
.hint {
    color: var(--muted);
    font-size: 0.92rem;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-input,
.styled-select,
.settings-group input[type="text"],
.settings-group input[type="url"],
.settings-group select,
.auth-form input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    font-size: 16px;
}

.page-input {
    width: 88px;
}

.embed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 22px;
    align-items: start;
}

.player-shell {
    padding: 18px;
}

.player-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.player-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.player-meta-chip .material-symbols-outlined {
    font-size: 19px;
    color: var(--accent);
}

.embed-container {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius-lg) - 6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 9, 14, 0.75);
}

.embed-container-enhanced {
    min-height: min(78vh, 900px);
}

.game-frame-shell {
    position: relative;
    z-index: 1;
}

.embed-container iframe {
    display: block;
    width: 100%;
    min-height: 72vh;
    border: 0;
    background: #02070b;
}

.embed-container-enhanced[data-fit="compact"] iframe {
    min-height: 82vh;
}

.player-status {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at top right, rgba(126, 227, 255, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(3, 10, 15, 0.56), rgba(3, 10, 15, 0.86));
    backdrop-filter: blur(12px);
    transition: opacity 180ms ease, visibility 180ms ease;
    pointer-events: auto;
}

.player-status[hidden] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-status-card {
    width: min(100%, 580px);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 19, 29, 0.9);
    box-shadow: var(--shadow);
}

.embed-container[data-state="loading"] .game-frame-shell,
.embed-container[data-state="stalled"] .game-frame-shell,
.embed-container[data-state="error"] .game-frame-shell {
    pointer-events: none;
}

.player-status-card h2 {
    margin: 14px 0 10px;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.player-status-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.player-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.player-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-top-color: var(--accent);
    border-radius: 999px;
    animation: playerSpin 900ms linear infinite;
}

.player-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 16px;
}

.player-ad-card {
    margin-top: 18px;
}

.player-ad-card img {
    width: 100%;
    border-radius: 18px;
}

.player-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.player-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.player-action-btn:hover {
    transform: translateY(-2px);
    background: rgba(126, 227, 255, 0.1);
    border-color: rgba(126, 227, 255, 0.28);
}

.player-action-btn[data-active="true"] {
    background: rgba(126, 227, 255, 0.14);
    border-color: rgba(126, 227, 255, 0.3);
}

.player-action-btn .material-symbols-outlined {
    font-size: 20px;
}

.bottom-div {
    display: flex;
    justify-content: center;
    padding-top: 16px;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.buttons-container img {
    width: 46px;
    height: 46px;
    padding: 11px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.buttons-container img:hover {
    transform: translateY(-2px);
    background: rgba(126, 227, 255, 0.1);
    border-color: rgba(126, 227, 255, 0.28);
}

.detail-grid .info-card {
    grid-column: span 6;
}

.offerwall-frame {
    width: 100%;
    min-height: 1800px;
    border: 0;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    margin-top: 18px;
}

.site-footer {
    width: min(var(--content-width), calc(100% - 32px));
    margin: 18px auto 28px;
    padding: 22px 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(6, 19, 29, 0.78);
    backdrop-filter: blur(16px);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: var(--muted);
}

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

.footer-copy {
    color: var(--muted);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 18px;
    background: rgba(2, 8, 13, 0.72);
    backdrop-filter: blur(14px);
}

.modal-content {
    position: relative;
    width: min(100%, 470px);
    margin: min(9vh, 72px) auto 0;
    padding: 26px;
    border-radius: 26px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 22%),
        var(--surface-strong);
    box-shadow: var(--shadow);
}

.close {
    position: absolute;
    top: 16px;
    right: 18px;
    color: var(--muted);
    cursor: pointer;
    font-size: 26px;
}

.modal-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.modal-tabs button {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.modal-tabs button.active {
    color: #041018;
    background: linear-gradient(135deg, #7ee3ff, #18b7ff);
}

.auth-form h2,
.settings-modal-content h2 {
    margin: 0 0 14px;
    font-family: "Sora", "Segoe UI", sans-serif;
}

.auth-form form,
.settings-group,
#settingsForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form label,
.settings-group label {
    color: #d6edf9;
    font-size: 0.94rem;
}

.auth-form button,
.settings-save-btn,
.settings-reset-btn {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 0;
    font-weight: 700;
    cursor: pointer;
}

.auth-form button,
.settings-save-btn {
    color: #041018;
    background: linear-gradient(135deg, #7ee3ff, #18b7ff);
}

.settings-reset-btn {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

#adfreeNotice {
    border-radius: 18px !important;
    border: 1px solid var(--border) !important;
    background: rgba(7, 22, 33, 0.94) !important;
    backdrop-filter: blur(14px);
}

.seo-block {
    margin-top: 26px;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.seo-block h2,
.seo-block h3 {
    font-family: "Sora", "Segoe UI", sans-serif;
}

.seo-block ul {
    color: var(--muted);
    line-height: 1.8;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.centered-empty {
    padding: 28px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(126, 227, 255, 0.16);
    border-radius: var(--radius-md);
}

.grid-span-full {
    grid-column: 1 / -1;
}

.auth-form-hidden {
    display: none;
}

@keyframes playerSpin {
    to {
        transform: rotate(360deg);
    }
}

.testimonial .author {
    display: block;
    margin-top: 14px;
    color: var(--accent);
    font-style: normal;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .site-nav {
        border-radius: 28px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .nav-tools {
        margin-left: 0;
    }

    .hero,
    .embed-layout {
        grid-template-columns: 1fr;
    }

    .feature-card {
        grid-column: span 6;
    }

    .content-card,
    .portal-grid .game-card,
    .detail-grid .info-card,
    .testimonial {
        grid-column: span 6;
    }

    .portal-grid.portal-grid-featured .game-card:first-child {
        grid-column: span 12;
    }
}

@media (max-width: 820px) {
    .nav-tools {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .feature-card,
    .content-card,
    .portal-grid .game-card,
    .detail-grid .info-card,
    .testimonial {
        grid-column: span 12;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .offerwall-frame {
        min-height: 1400px;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 14px 12px 0;
    }

    .page {
        width: min(var(--content-width), calc(100% - 20px));
        padding-bottom: 44px;
    }

    .hero-panel,
    .glass-panel,
    .seo-block,
    .site-footer {
        border-radius: 22px;
    }

    .hero-panel {
        padding: 24px 20px;
    }

    .search-shell,
    .toolbar-shell,
    .player-shell,
    .feature-card,
    .content-card,
    .promo-card,
    .info-card,
    .offerwall-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-tools {
        gap: 8px;
    }

    .utility-chip {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
    }

    .clock-chip {
        min-width: 0;
    }

    .pagination-container {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .modal {
        padding: 12px;
    }

    .modal-content {
        margin-top: 28px;
        padding: 22px 18px;
    }

    .embed-container iframe,
    .embed-container-enhanced[data-fit="compact"] iframe {
        min-height: 56vh;
    }

    .player-status-card {
        padding: 20px;
    }

    .player-toolbar,
    .player-toolbar-group {
        width: 100%;
    }

    .player-toolbar-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-action-btn {
        min-width: 0;
        width: 100%;
    }

    .player-meta-chip {
        width: 100%;
        justify-content: center;
    }

    .offerwall-frame {
        min-height: 1200px;
    }
}
