/*
Theme Name: SlotWorld Social Games
Theme URI: https://slotworld.it.com
Author: SlotWorld
Description: A custom entertainment games layout for SlotWorld.
Version: 1.0.0
Text Domain: slotworld
*/

:root {
    --bg: #110f16;
    --panel: #1c1824;
    --panel-strong: #251d2c;
    --text: #fff8e9;
    --muted: #c7baac;
    --line: rgba(255, 216, 130, 0.18);
    --gold: #ffd36a;
    --orange: #ff8c32;
    --red: #cf3b2f;
    --blue: #4eb9ff;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 132, 41, 0.2), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(78, 185, 255, 0.12), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    padding: 0.85rem clamp(1rem, 4vw, 3rem);
    background: rgba(17, 15, 22, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.support-links,
.legal-links {
    display: flex;
    align-items: center;
}

.brand {
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.1rem;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold), var(--orange) 58%, var(--red));
    color: #1d0d08;
    box-shadow: 0 10px 25px rgba(255, 140, 50, 0.28);
}

.main-nav {
    gap: clamp(0.75rem, 2vw, 1.5rem);
    color: var(--muted);
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--gold);
}

.site-main {
    min-height: 70vh;
}

.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: min(760px, calc(100vh - 72px));
    overflow: hidden;
    padding: clamp(7rem, 16vw, 12rem) clamp(1rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem);
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: -28px;
    z-index: -3;
    background: url("hero-view.png") center / cover no-repeat;
    filter: blur(14px) saturate(0.92) brightness(0.78);
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(17, 15, 22, 0.94), rgba(17, 15, 22, 0.5) 46%, rgba(17, 15, 22, 0.84)),
        linear-gradient(0deg, var(--bg), transparent 36%);
}

.hero-content {
    width: min(720px, 100%);
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.05;
}

h1 {
    max-width: 10ch;
    font-size: clamp(3.2rem, 8vw, 7.6rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
    font-size: 1.35rem;
}

.hero-copy {
    max-width: 620px;
    margin: 1.15rem 0 2rem;
    color: #f5e8da;
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.primary-cta,
.play-button,
.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 8px;
    font-weight: 800;
}

.primary-cta,
.play-button {
    padding: 0.9rem 1.25rem;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #1b0d08;
    box-shadow: 0 14px 30px rgba(255, 140, 50, 0.28);
}

.primary-cta:hover,
.play-button:hover {
    transform: translateY(-1px);
}

.games-section,
.legal-page,
.play-header,
.notice-band {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.games-section {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-heading {
    display: grid;
    gap: 0.8rem;
    max-width: 720px;
    margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.game-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), var(--panel);
    box-shadow: var(--shadow);
}

.game-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0c0a10;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease, filter 260ms ease;
}

.game-card:hover .game-image img {
    transform: scale(1.035);
    filter: saturate(1.05);
}

.game-card-body {
    display: grid;
    gap: 0.85rem;
    padding: 1.05rem;
}

.game-card-body p {
    min-height: 3.2em;
    margin: 0;
    color: var(--muted);
}

.play-button {
    width: 100%;
}

.notice-band {
    margin-bottom: clamp(3rem, 7vw, 5rem);
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 211, 106, 0.08);
}

.notice-band p {
    margin: 0;
    color: #f4deba;
}

.play-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(2rem, 5vw, 4rem) 0 1.25rem;
}

.play-header h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.play-header p:not(.eyebrow) {
    max-width: 620px;
    margin: 0.8rem 0 0;
    color: var(--muted);
}

.secondary-link {
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    color: var(--gold);
}

.player-shell {
    width: min(1440px, calc(100% - 2rem));
    margin: 0 auto clamp(3rem, 6vw, 5rem);
    overflow: hidden;
    border: 1px solid rgba(255, 211, 106, 0.28);
    border-radius: 8px;
    background: #08070a;
    box-shadow: var(--shadow);
}

.player-shell iframe {
    display: block;
    width: 100%;
    height: min(780px, calc(100vh - 170px));
    min-height: 560px;
    border: 0;
}

.legal-page {
    max-width: 860px;
    padding: clamp(3rem, 7vw, 5rem) 0;
}

.legal-page h1 {
    max-width: none;
    margin-bottom: 1.5rem;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.legal-page p {
    color: var(--muted);
}

.page-content {
    color: var(--muted);
}

.site-footer {
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem);
    border-top: 1px solid var(--line);
    background: #0d0b11;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    width: min(1180px, 100%);
    margin: 0 auto;
}

.site-footer h2 {
    color: var(--text);
    font-size: 1.5rem;
}

.support-links,
.legal-links {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.support-links a,
.legal-links a {
    color: var(--gold);
}

.age-badge {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 0 1rem;
    border-radius: 50%;
    background: #fff8e9;
    color: #160d0c;
    font-weight: 900;
}

@media (max-width: 860px) {
    .site-header,
    .play-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        width: 100%;
        justify-content: space-between;
    }

    .game-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .game-card-body p {
        min-height: auto;
    }

    .player-shell iframe {
        height: 72vh;
        min-height: 480px;
    }
}

@media (max-width: 540px) {
    .hero {
        min-height: 650px;
    }

    .main-nav {
        font-size: 0.9rem;
    }

    .player-shell {
        width: 100%;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }
}
