:root {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #fbbf24;
    --accent-hover: #fcd34d;
    --accent-deep: #d97706;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --bg-color: #020617;
    --card-bg: #0f172a;
    --border-color: #334155;
    --header-bg: rgba(15, 23, 42, 0.94);
    --max-width: 1200px;
    --nav-height: 72px;
    --section-gap: clamp(28px, 4vw, 48px);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(251, 191, 36, 0.08), transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(30, 41, 59, 0.9) 0%, transparent 45%),
        linear-gradient(180deg, #020617 0%, #0b1220 55%, #020617 100%);
    background-attachment: fixed;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Stronger responsive guarantee for content images. This beats the generic
   `img {}` rule and makes inline `style="max-width: 600px"` (used in several
   page templates) still honour the parent container's width. */
main img,
section img,
.entry-content img,
.hero img,
.card img,
.image-grid img {
    max-width: 100%;
    height: auto;
}

/* Header & Navigation */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img,
.logo .custom-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.logo a {
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

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

/* =========================================================================
   Mobile Nav Toggle (hamburger)
   - Hidden on desktop; only shown at <=768px.
   - All visual state driven by aria-expanded on the button + .is-open on nav.
   ========================================================================= */
.nav-toggle {
    display: none;
    touch-action: manipulation;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: var(--accent-color);
    background-color: rgba(255, 215, 0, 0.08);
    outline: none;
}

.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Prevent body scroll when mobile nav drawer is open. */
body.nav-open {
    overflow: hidden;
}

/* Main Content Layout */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px 48px;
    min-height: calc(100vh - var(--nav-height) - 150px);
}

/* Home: first hero is flush under sticky header (no top padding / gap).
   Full-bleed uses viewport units — clip horizontal overflow on the root so a
   vertical scrollbar cannot widen the scrollable canvas (classic Windows bar).
   `is-front-hero-full-html` is output on <html> in header.php; `:has()` is a
   fallback where supported. */
html.is-front-hero-full-html,
html:has(body.is-front-hero-full) {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

@supports (overflow-x: clip) {
    html.is-front-hero-full-html,
    html:has(body.is-front-hero-full) {
        overflow-x: clip;
    }
}

body.is-front-hero-full {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

@supports (overflow-x: clip) {
    body.is-front-hero-full {
        overflow-x: clip;
    }
}

body.is-front-hero-full main {
    padding-top: 0;
    box-sizing: border-box;
}

.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88));
    border-radius: 16px;
    margin-bottom: var(--section-gap);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../image/free-slot-machines-main.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(28px, 4vw + 12px, 48px);
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.75);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero p {
    font-size: clamp(16px, 1.2vw + 12px, 20px);
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* -------------------------------------------------------------------------
   Home only: full-viewport hero, edge-to-edge under header (no top gap).
   ------------------------------------------------------------------------- */
section.hero.hero--fullscreen {
    /* Full-bleed from centered `main`: viewport width + symmetric negative margins.
       `100dvw` tracks the dynamic viewport and avoids some classic `100vw` +
       scrollbar overflow; older engines fall back to `100vw` + root clip above. */
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    margin-bottom: var(--section-gap);
    padding: 0;
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100svh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
    box-sizing: border-box;
    background: linear-gradient(
        165deg,
        rgba(2, 6, 23, 0.97) 0%,
        rgba(15, 23, 42, 0.9) 42%,
        rgba(30, 41, 59, 0.82) 100%
    );
}

@supports (width: 100dvw) {
    section.hero.hero--fullscreen {
        width: 100dvw;
        margin-left: calc(50% - 50dvw);
        margin-right: calc(50% - 50dvw);
    }
}

section.hero.hero--fullscreen::before {
    opacity: 0.38;
    filter: saturate(1.05);
}

section.hero.hero--fullscreen .hero-content {
    padding: clamp(24px, 5vw, 56px) clamp(20px, 4vw, 32px) clamp(40px, 7vw, 72px);
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

section.hero.hero--fullscreen h1 {
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.85);
}

section.hero.hero--fullscreen .hero-content > p {
    color: #cbd5e1;
}

.btn {
    display: inline-block;
    touch-action: manipulation;
    padding: 15px 35px;
    background: linear-gradient(105deg, var(--accent-color), var(--accent-deep));
    color: #0f172a;
    font-weight: bold;
    font-size: 18px;
    border-radius: 30px;
    text-transform: uppercase;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.25);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(251, 191, 36, 0.38);
    color: #0f172a;
}

/* -------------------------------------------------------------------------
   Split rows (image + copy) — use instead of inline flex + min-width:300px
   so columns never force horizontal overflow on phones.
   ------------------------------------------------------------------------- */
.split-media {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 30px);
    align-items: center;
}

.split-media__col {
    flex: 1 1 240px;
    min-width: 0;
}

.facts-list {
    font-size: clamp(15px, 3.5vw, 18px);
    line-height: 1.65;
    margin: 0;
    padding-left: 1.1em;
}

/* Typography & Sections
   NOTE: article.single-post is grouped here so single-post articles inherit
   the exact same card styling as <section> blocks on every other page.
   Do NOT redefine these values elsewhere for .single-post — keep one source. */
section:not(.hero--fullscreen),
article.single-post {
    margin-bottom: var(--section-gap);
    background: var(--card-bg);
    padding: clamp(22px, 3vw, 32px);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

h1, h2, h3 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

h2 {
    font-size: 32px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--accent-color);
}

h3 {
    font-size: 24px;
    margin-top: 30px;
}

p {
    margin-bottom: 20px;
    font-size: 16px;
}

ul, ol {
    margin: 0 0 20px 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

/* Grids */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 28px);
    margin: clamp(28px, 4vw, 40px) 0;
}

.card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 28px rgba(251, 191, 36, 0.12);
}

.card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
}

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

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(15, 23, 42, 0.45);
}

th, td {
    padding: 15px;
    text-align: left;
    border: 1px solid var(--border-color);
}

th {
    background-color: var(--secondary-color);
    color: var(--accent-color);
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: rgba(255,255,255,0.03);
}

/* Blockquote */
blockquote {
    background: rgba(251, 191, 36, 0.08);
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--primary-color) 0%, #020617 100%);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px 20px;
    text-align: center;
    margin-top: var(--section-gap);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    /* `minmax(0,1fr)` keeps three columns from forcing a min intrinsic width
       that exceeds narrow viewports (avoids a horizontal scrollbar at the footer). */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    min-width: 0;
}

.footer-column h3 {
    color: var(--accent-color);
    border-bottom: 1px solid rgba(251, 191, 36, 0.28);
    padding-bottom: 10px;
    margin-top: 0;
}

.footer-column p, .footer-column a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #888;
}

/* =========================================================================
   Footer - About column: age-restriction notice (21+ badge + disclaimer)
   ========================================================================= */
.footer-about {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.age-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 10px;
}

.age-notice__badge {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #111;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--accent-color);
    text-transform: uppercase;
    user-select: none;
}

.age-notice__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #c7bedc;
}

.age-notice__text strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Simple Content (About/Contact/Privacy/Cookie) */
.simple-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.simple-content h1 {
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.simple-content h2 {
    font-size: 24px;
    margin-top: 30px;
    border: none;
    padding-bottom: 0;
}

.simple-content h3 {
    font-size: 18px;
    margin-top: 20px;
    color: #fff;
}

.simple-content p,
.simple-content ul {
    margin-bottom: 20px;
    font-size: 16px;
    color: #ccc;
}

.simple-content ul {
    padding-left: 20px;
    list-style-type: disc;
}

.simple-content li {
    margin-bottom: 8px;
}

.contact-info {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.contact-info strong {
    color: #fff;
}

/* WordPress Menu Tweaks */
.primary-menu,
.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu {
    flex-direction: column;
    gap: 8px;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: #aaa;
    font-size: 14px;
}

.footer-menu a:hover {
    color: var(--accent-color);
}

/* =========================================================================
   Blog: Listing Hero
   ========================================================================= */
.blog-hero {
    text-align: center;
    padding: clamp(48px, 8vw, 72px) 20px clamp(40px, 6vw, 56px);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    border-radius: 16px;
    margin-bottom: var(--section-gap);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.14), transparent 42%),
                      radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.08), transparent 45%);
    z-index: 0;
}

.blog-hero .hero-content {
    position: relative;
    z-index: 1;
}

.blog-hero h1 {
    font-size: 40px;
    color: #fff;
    margin-bottom: 14px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.blog-hero p,
.blog-hero .archive-description {
    font-size: 17px;
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-muted);
}

.blog-hero .search-term {
    color: var(--accent-color);
}

.blog-hero .search-form {
    margin-top: 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================================
   Post Grid + Post Card
   ========================================================================= */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: clamp(20px, 3vw, 28px);
    margin-bottom: var(--section-gap);
}

.post-grid--related {
    margin-top: 30px;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-color);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 22px rgba(255, 215, 0, 0.12);
}

.post-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card__media img {
    transform: scale(1.05);
}

.post-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent-color);
    color: #111;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.post-card__body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card__title {
    font-size: 20px;
    line-height: 1.35;
    margin: 12px 0 14px;
    border: none;
    padding: 0;
    color: #fff;
}

.post-card__title a {
    color: inherit;
    background-image: linear-gradient(var(--accent-color), var(--accent-color));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 2px;
    transition: background-size 0.3s ease, color 0.2s ease;
    padding-bottom: 2px;
}

.post-card__title a:hover {
    color: var(--accent-color);
    background-size: 100% 2px;
}

.post-card__excerpt {
    color: #bdb6cc;
    font-size: 15px;
    line-height: 1.65;
    flex: 1;
}

.post-card__excerpt p {
    margin: 0 0 10px;
    font-size: inherit;
}

.post-card__more {
    margin-top: 18px;
    align-self: flex-start;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-color);
}

.post-card__more span {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.post-card__more:hover span {
    transform: translateX(4px);
}

/* =========================================================================
   Post Meta
   ========================================================================= */
.post-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9a90b0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.post-meta a {
    color: #cfc7df;
}

.post-meta a:hover {
    color: var(--accent-color);
}

.post-meta__sep {
    opacity: 0.5;
}

.post-meta__author,
.post-meta__read {
    color: #cfc7df;
}

.post-meta__author-link {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.post-meta__author-link:hover {
    border-bottom-color: var(--accent-color);
}

/* =========================================================================
   Pagination (the_posts_pagination)
   ========================================================================= */
.navigation.pagination {
    margin: 20px 0 60px;
    text-align: center;
}

.navigation.pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #e0d9ef;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--accent-color), #ffaa00);
    color: #111;
    border-color: var(--accent-color);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.22);
}

.navigation.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
}

.navigation.pagination .page-numbers.dots:hover {
    background: transparent;
    box-shadow: none;
    color: #888;
}

/* =========================================================================
   Single Post - Hero banner (same pattern as .hero / .blog-hero)
   ========================================================================= */
.single-hero {
    text-align: center;
}

.single-hero.single-hero--with-image::before {
    background-image: var(--single-hero-image);
    opacity: 0.22;
}

.single-hero__cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.single-hero__cat {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    backdrop-filter: blur(4px);
}

.single-hero__cat:hover {
    background: var(--accent-color);
    color: #111;
}

.single-hero .hero-content h1 {
    font-size: 40px;
    line-height: 1.25;
    margin-bottom: 16px;
}

.single-hero__meta {
    justify-content: center;
    color: #cfc7df;
    font-size: 13px;
}

/* =========================================================================
   Single Post - Article card
   The outer card (padding / margin-bottom / bg / border / radius) is defined
   together with global <section> above so it stays in lockstep with every
   other page's content cards. Only intra-article details live here.
   ========================================================================= */

/* Entry content typography */
.entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: #d9d2e9;
}

.entry-content > * + * {
    margin-top: 22px;
}

.entry-content p {
    margin: 0 0 22px;
    font-size: inherit;
}

.entry-content h2 {
    font-size: 28px;
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin: 44px 0 20px;
}

.entry-content h3 {
    font-size: 22px;
    color: #fff;
    margin: 34px 0 14px;
}

.entry-content h4 {
    font-size: 18px;
    color: #fff;
    margin: 26px 0 12px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 22px 22px;
    padding-left: 18px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content img,
.entry-content figure img {
    border-radius: 10px;
    margin: 24px auto;
    display: block;
    box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

.entry-content figure {
    margin: 24px 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 13px;
    color: #a89ec0;
    margin-top: 8px;
    font-style: italic;
}

.entry-content blockquote {
    background: rgba(255, 215, 0, 0.08);
    border-left: 4px solid var(--accent-color);
    padding: 18px 22px;
    margin: 26px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #e8e0f7;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content pre {
    background: rgba(0,0,0,0.45);
    color: #f1ecff;
    padding: 18px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    font-size: 14px;
    margin: 26px 0;
}

.entry-content code {
    background: rgba(255, 215, 0, 0.12);
    color: var(--accent-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.entry-content table {
    margin: 26px 0;
}

.entry-content a {
    text-decoration: underline;
    text-decoration-color: rgba(255, 215, 0, 0.4);
    text-underline-offset: 3px;
}

.entry-content a:hover {
    text-decoration-color: var(--accent-color);
}

.entry-content hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 40px 0;
}

/* Page links (paginated posts) */
.page-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.page-links__title {
    font-weight: 700;
    color: var(--accent-color);
    margin-right: 6px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.page-links a,
.page-links > span:not(.page-links__title) {
    display: inline-block;
    min-width: 32px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: #e0d9ef;
}

.page-links > span:not(.page-links__title) {
    background: var(--accent-color);
    color: #111;
    border-color: var(--accent-color);
}

/* Tags footer */
.single-post__footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.single-post__tags-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-tags li {
    margin: 0;
}

.post-tags a {
    display: inline-block;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    color: #cfc7df;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.post-tags a::before {
    content: '#';
    color: var(--accent-color);
    margin-right: 3px;
}

.post-tags a:hover {
    background: var(--accent-color);
    color: #111;
    border-color: var(--accent-color);
}

.post-tags a:hover::before {
    color: #111;
}

/* Prev/Next Nav (wrapped in a <section class="post-nav-section"> so it picks
   up the same card styling as other page sections) */
.post-nav-section {
    padding: 22px !important;
}

.post-nav {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-nav__item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 20px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 88px;
}

.post-nav__item:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}

.post-nav__item--empty {
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.08);
    pointer-events: none;
}

.post-nav__item--next {
    text-align: right;
}

.post-nav__label {
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 700;
}

.post-nav__title {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.45;
}

/* Related posts (uses global <section> card styling; only adjusts the grid) */
.related-posts .post-grid--related {
    margin-top: 0;
    margin-bottom: 0;
}

.related-posts h2 {
    text-align: center;
}

/* =========================================================================
   Search Form
   ========================================================================= */
.search-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.search-field {
    flex: 1;
    min-width: 0;
    padding: 12px 18px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field::placeholder {
    color: #8a81a0;
}

.search-field:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.search-submit {
    padding: 0 24px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(to right, #ffd700, #ffaa00);
    color: #111;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 215, 0, 0.35);
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
    padding: 0;
    margin: -1px;
    border: 0;
}

/* =========================================================================
   404
   ========================================================================= */
.error-404 {
    max-width: 720px;
    margin: 40px auto 80px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
}

.error-404__code {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-color), #ffaa00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 4px 30px rgba(255, 215, 0, 0.25);
}

.error-404__title {
    font-size: 28px;
    color: #fff;
    margin-bottom: 14px;
    border: none;
    padding: 0;
}

.error-404__text {
    color: #bdb6cc;
    max-width: 500px;
    margin: 0 auto 28px;
}

.error-404 .search-form {
    max-width: 480px;
    margin: 0 auto 28px;
}

.error-404__btn {
    margin-top: 6px;
}

/* =========================================================================
   Mobile Responsive (≤768px — tablets & phones)
   Type scale shrinks, padding/margin tightens, multi-column layouts collapse.
   ========================================================================= */
@media (max-width: 768px) {
    /* -------- Base type scale -------- */
    body {
        font-size: 15px;
    }

    p {
        font-size: 15px;
        margin-bottom: 16px;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }

    h3 {
        font-size: 18px;
        margin-top: 22px;
        margin-bottom: 10px;
    }

    ul, ol {
        margin: 0 0 16px 18px;
        padding-left: 16px;
    }

    li {
        margin-bottom: 8px;
    }

    /* -------- Header / nav -------- */
    .nav-container {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        padding: 10px 14px;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .logo {
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
        font-size: 15px;
        letter-spacing: 0.5px;
        gap: 8px;
    }

    .logo a {
        gap: 8px;
        min-width: 0;
    }

    .logo img,
    .logo .custom-logo {
        height: 32px;
        max-width: 40px;
    }

    .logo span {
        font-size: 14px;
        line-height: 1.1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-toggle {
        display: flex;
        order: 2;
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
    }

    .nav-toggle__bar {
        width: 20px;
    }

    .primary-nav {
        order: 3;
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.25s ease, margin-top 0.25s ease;
        margin-top: 0;
    }

    .primary-nav.is-open {
        max-height: 75vh;
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
        margin-top: 10px;
    }

    .primary-nav ul,
    .primary-nav .primary-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 6px 0;
        margin: 0;
    }

    .primary-nav li {
        list-style: none;
        margin: 0;
    }

    .primary-nav a {
        display: block;
        padding: 12px 4px;
        font-size: 14px;
        border-bottom: 1px solid var(--border-color);
    }

    .primary-nav li:last-child a {
        border-bottom: none;
    }

    /* -------- Layout -------- */
    main {
        padding: 24px 14px;
    }

    section:not(.hero--fullscreen),
    article.single-post {
        padding: 18px;
        margin-bottom: 28px;
        border-radius: 10px;
    }

    /* -------- Hero (home / slot / bonus / legal pages) -------- */
    .hero {
        padding: 40px 16px;
        margin-bottom: 28px;
        border-radius: 12px;
    }

    section.hero.hero--fullscreen {
        min-height: calc(100svh - var(--nav-height));
        margin-bottom: 28px;
    }

    section.hero.hero--fullscreen .hero-content {
        padding: 36px 16px 44px;
    }

    .hero h1 {
        font-size: 24px;
        line-height: 1.25;
    }

    .hero p {
        font-size: 14px;
    }

    /* -------- Blog listing hero (index / archive / search) -------- */
    .blog-hero {
        padding: 36px 14px 30px;
        margin-bottom: 28px;
        border-radius: 12px;
    }

    .blog-hero h1 {
        font-size: 24px;
    }

    .blog-hero p,
    .blog-hero .archive-description {
        font-size: 14px;
    }

    .blog-hero .search-form {
        margin-top: 18px;
    }

    /* -------- Single post hero -------- */
    .single-hero .hero-content h1 {
        font-size: 22px;
        line-height: 1.3;
    }

    .single-hero__cat {
        font-size: 11px;
        padding: 4px 10px;
    }

    .single-hero__meta {
        font-size: 12px;
    }

    /* -------- Post grid & card -------- */
    .post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 28px;
    }

    .post-card__body {
        padding: 16px 18px 20px;
    }

    .post-card__title {
        font-size: 17px;
        line-height: 1.35;
    }

    .post-card__excerpt {
        font-size: 14px;
    }

    .post-card__more {
        font-size: 13px;
    }

    .post-card__badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    .post-meta {
        font-size: 12px;
    }

    /* -------- Entry content (article body) -------- */
    .entry-content {
        font-size: 15px;
        line-height: 1.55;
    }

    .entry-content h2 {
        font-size: 20px;
        margin: 32px 0 14px;
    }

    .entry-content h3 {
        font-size: 17px;
        margin: 26px 0 10px;
    }

    .entry-content h4 {
        font-size: 15px;
        margin: 20px 0 8px;
    }

    .entry-content ul,
    .entry-content ol {
        margin: 0 0 18px 16px;
        padding-left: 16px;
    }

    .entry-content blockquote {
        padding: 14px 16px;
        margin: 20px 0;
        font-size: 14px;
    }

    .entry-content pre {
        padding: 14px;
        font-size: 13px;
    }

    /* -------- Post nav (prev/next) -------- */
    .post-nav-section {
        padding: 14px !important;
    }

    .post-nav {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .post-nav__item {
        min-height: auto;
        padding: 12px 14px;
    }

    .post-nav__item--next {
        text-align: left;
    }

    .post-nav__title {
        font-size: 14px;
    }

    /* -------- Tags -------- */
    .post-tags a {
        font-size: 12px;
        padding: 4px 10px;
    }

    /* -------- Related posts -------- */
    .related-posts h2,
    .related-posts__title {
        font-size: 20px;
    }

    /* -------- Tables: scroll when needed; allow wrapping (no nowrap on section compare tables) -------- */
    .entry-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    section table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    th, td {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* -------- Simple content pages (about / contact / privacy…) -------- */
    .simple-content h2 {
        font-size: 20px;
        margin-top: 24px;
    }

    .simple-content h3 {
        font-size: 16px;
    }

    .simple-content p,
    .simple-content ul {
        font-size: 15px;
    }

    .contact-info {
        padding: 16px;
        font-size: 14px;
    }

    /* -------- Forms -------- */
    .search-form {
        flex-direction: column;
        gap: 8px;
    }

    .search-field {
        font-size: 14px;
        padding: 10px 16px;
    }

    .search-submit {
        padding: 12px 24px;
        font-size: 13px;
    }

    /* -------- Pagination -------- */
    .pagination .page-numbers {
        min-width: 36px;
        padding: 6px 10px;
        font-size: 13px;
    }

    /* -------- 404 -------- */
    .error-404 {
        padding: 40px 20px;
        margin: 20px auto 40px;
    }

    .error-404__code {
        font-size: 72px;
    }

    .error-404__title {
        font-size: 22px;
    }

    .error-404__text {
        font-size: 14px;
    }

    /* -------- Footer -------- */
    footer {
        padding: 30px 16px 16px;
        margin-top: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 20px;
    }

    .footer-column h3 {
        font-size: 16px;
    }

    .footer-column p,
    .footer-column a,
    .footer-menu a {
        font-size: 13px;
    }

    .footer-bottom {
        font-size: 12px;
    }

    /* -------- Age notice -------- */
    .age-notice {
        padding: 14px;
        gap: 12px;
    }

    .age-notice__badge {
        width: 44px;
        height: 44px;
        font-size: 15px;
        border-width: 2px;
    }

    .age-notice__text {
        font-size: 12px;
    }

    .age-notice__text strong {
        font-size: 13px;
    }

    /* -------- Image overflow hard-reset --------
       Several page templates (page-slot.php, page-bonus.php, page-review.php)
       baked fixed sizes like `style="max-width: 600px"` or `float: left/right`
       directly onto <img>. On narrow viewports those inline rules defeat the
       responsive `max-width: 100%` and the image escapes its container.
       These !important rules re-enforce responsiveness on mobile regardless
       of the inline style. Scope is limited to content areas so the header
       logo is unaffected. */
    main img,
    section img,
    .hero img,
    .entry-content img,
    .card img {
        max-width: 100% !important;
        height: auto !important;
        float: none !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Inline flex rows (page-slot Quick Facts uses
       `style="display: flex; flex-wrap: wrap; ..."` with children pinned
       at `min-width: 300px`). Two problems on mobile:
         1) Just zeroing min-width makes both columns shrink but stay side-
            by-side, so a text column next to an image gets squeezed to
            one word per line (very bad).
         2) The intent on mobile is a vertical stack anyway.
       Force the flex direction to column and reset the pinned min-width. */
    section > div[style*="flex"],
    section > div[style*="display"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 18px !important;
    }

    section > div,
    section > div > div {
        min-width: 0 !important;
    }

    /* -------- Line-height & list typography --------
       Several templates put `style="line-height: 2"` directly on <ul> which
       makes lists feel massively spaced on a phone. Clamp it. */
    section ul,
    section ol,
    .entry-content ul,
    .entry-content ol {
        line-height: 1.55 !important;
        font-size: 15px !important;
    }

    section li,
    .entry-content li {
        margin-bottom: 6px;
    }

    /* Body copy: slightly tighter on mobile than the global 1.6 */
    body {
        line-height: 1.5;
    }

    section p,
    .entry-content p {
        line-height: 1.55;
    }

    /* Two columns on tablet; `minmax(0,1fr)` avoids overflow from intrinsic
       min-widths. The ≤480px block collapses to a single column on phones. */
    .image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
        margin: 20px 0 !important;
    }

    .simple-content {
        padding: 22px 18px;
    }

    .btn {
        padding: 13px 24px;
        font-size: 16px;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Narrow phones / small phablets: single-column card grids read better than 2-up */
@media (max-width: 640px) {
    .image-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   Extra-small phones (≤480px)
   Further compression: hide wordmark, tighter padding, even smaller type.
   ========================================================================= */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .logo span {
        display: none;
    }

    .logo img,
    .logo .custom-logo {
        height: 34px;
        max-width: 40px;
    }

    main {
        padding: 18px 12px;
    }

    section:not(.hero--fullscreen),
    article.single-post {
        padding: 14px;
        border-radius: 10px;
    }

    .hero {
        padding: 30px 14px;
        border-radius: 10px;
    }

    section.hero.hero--fullscreen .hero-content {
        padding: 28px 14px 40px;
    }

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

    .hero p {
        font-size: 13px;
    }

    .blog-hero {
        padding: 28px 12px 24px;
    }

    .blog-hero h1 {
        font-size: 20px;
    }

    .single-hero .hero-content h1 {
        font-size: 19px;
    }

    h2 {
        font-size: 19px;
    }

    h3 {
        font-size: 16px;
    }

    p {
        font-size: 14px;
    }

    .entry-content {
        font-size: 14px;
    }

    .entry-content h2 {
        font-size: 18px;
    }

    .entry-content h3 {
        font-size: 15px;
    }

    .post-card__title {
        font-size: 16px;
    }

    .post-card__body {
        padding: 14px 16px 18px;
    }

    .age-notice {
        flex-direction: row;
        padding: 12px;
    }

    .age-notice__badge {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .error-404__code {
        font-size: 58px;
    }

    .error-404__title {
        font-size: 20px;
    }

    /* Extra-small: collapse all image grids into a single column and pull
       hero/section padding even tighter so nothing can overflow. */
    .image-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .hero {
        padding: 24px 12px;
    }

    section.hero.hero--fullscreen .hero-content {
        padding: 24px 12px 36px;
    }

    /* Prevent any stray horizontal scroll at the page level on the smallest
       phones by clipping the body. This is a last-resort safety net; the
       img/flex/grid rules above should already contain overflow, but this
       ensures users never see a horizontal scrollbar. */
    html,
    body {
        overflow-x: hidden;
    }
}
