.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.9);
    color: var(--text-bright);
    font-size: 0.9rem;
}
.cookie-notice--visible {
    display: flex;
}
.cookie-notice__text {
    margin: 0;
    text-align: center;
}
.cookie-notice__text a {
    color: var(--gold);
    text-decoration: underline;
}
.cookie-notice__text a:hover {
    color: var(--text-bright);
}
.cookie-notice__button {
    padding: 0.3rem 0.9rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.6);
    background: transparent;
    color: var(--text-bright);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: pointer;
}
.cookie-notice__button:hover {
    background: rgba(255,255,255,0.08);
}

/**
 * Marvellous Games – front-end site (dark theme)
 * Lean CSS: colors, typography, layout from existing site
 */
@import url('https://fonts.googleapis.com/css2?family=Andada+Pro:ital,wght@0,400;0,600;1,400&display=swap');

/* Self-hosted Slackey font (more reliable on mobile than Google Fonts) */
@font-face {
    font-family: 'Slackey';
    /*font-family: 'Galindo';*/
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    /* site.css is in /public/css/site/, fonts are in /public/fonts/ → go up two levels */
    
    src: url('../../fonts/Slackey-Regular-mod.woff2') format('woff2')/*,*/
         /*url('../../fonts/Slackey-Regular.woff') format('woff');
    
    /*src: url('../../fonts/Galindo-Regular.woff2') format('woff2');*/
}

:root {
    --bg-dark: #1D1D1D;
    --bg-card: #323232;
    --bg-header: #2C2C2C;
    --gold: #CBBE85;
    --text: #CECECE;
    --text-bright: #fff;
    --accent: #A25DA6;
    --accent-hover: #8A4D8E;
    --accent-teal: #2DFFD2;
    --footer-bg: #194942;
    --font-heading: 'Slackey', cursive;
    --font-body: 'Andada Pro', serif;
}

/* Graceful text scaling: root font-size steps down as viewport narrows (all rem scale with it) */
html { font-size: 100%; }
@media (max-width: 900px)  { html { font-size: 95%; } }     /* slightly smaller on tablets */
@media (max-width: 700px)  { html { font-size: 90%; } }     /* keep body text comfortable on phones */
@media (max-width: 480px)  { html { font-size: 87.5%; } }   /* avoid going too tiny on small phones */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
}

/* Body text links: gold, no underline, same for visited */
.content-section a:not(.card-button):not(.hero-cta):not(.section-cta a),
.content-section .section-intro-wrap a,
.overview-section a,
.games-page-intro a,
.game-detail-description a {
    color: var(--gold);
    text-decoration: none;
}
.content-section a:not(.card-button):not(.hero-cta):not(.section-cta a):visited,
.content-section .section-intro-wrap a:visited,
.overview-section a:visited,
.games-page-intro a:visited,
.game-detail-description a:visited {
    color: var(--gold);
}
.content-section a:not(.card-button):not(.hero-cta):not(.section-cta a):hover,
.content-section .section-intro-wrap a:hover,
.overview-section a:hover,
.games-page-intro a:hover,
.game-detail-description a:hover {
    color: var(--text-bright);
}

/* ----- Header (full width) ----- */
.site-header {
    width: 100%;
    background-color: var(--bg-header);
    padding: 0.75rem 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.site-header .logo {
    height: 48px;
    width: auto;
    display: block;
}
@media (max-width: 900px)  { .site-header .logo { height: 42px; } }
@media (max-width: 700px)  { .site-header .logo { height: 36px; } }
@media (max-width: 480px)  { .site-header .logo { height: 32px; } }
.site-header .logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
}
@media (max-width: 900px)  { .site-header .logo-text { font-size: 1.35rem; } }
@media (max-width: 700px)  { .site-header .logo-text { font-size: 1.2rem; } }
@media (max-width: 480px)  { .site-header .logo-text { font-size: 1.05rem; } }

/* Hamburger: hidden on desktop, shown on mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-bright);
    transition: color 0.2s;
}
.nav-toggle:hover { color: var(--accent-teal); }
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}
@media (max-width: 900px) {
    .site-header { padding-left: 1.5rem; padding-right: 1.5rem; }
    .nav-toggle { display: flex; }
    .site-nav { display: none; }
}

@media (min-width: 901px) {
    .site-nav {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
}
.site-nav a {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-bright);
    text-decoration: none;
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent-teal); }
.site-nav a.active { color: #9ca3af; }
.site-nav a.active:hover { color: var(--accent-teal); }

/* Mobile nav panel (right side) + overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.nav-overlay--open {
    opacity: 1;
    visibility: visible;
}
.nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    width: min(280px, 85vw);
    background: var(--bg-header);
    padding: 2rem 1.5rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform 0.25s ease-out;
    overflow-y: auto;
}
.nav-panel--open {
    transform: translateX(0);
}
.nav-panel-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-bright);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.nav-panel-close:hover { color: var(--accent-teal); }
.nav-panel-close svg { display: block; }
.nav-panel-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 2rem;
}
.nav-panel-nav a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-bright);
    text-decoration: none;
    padding: 0.6rem 0;
    text-transform: lowercase;
    transition: color 0.2s;
}
.nav-panel-nav a:hover { color: var(--accent-teal); }
.nav-panel-nav a.active { color: #9ca3af; }
.nav-panel-nav a.active:hover { color: var(--accent-teal); }
body.nav-open { overflow: hidden; }

/* ----- Main (full width) ----- */
.site-main { width: 100%; }

/* ----- Heading font: always lowercase ----- */
.site-nav a,
.hero-title,
.hero-cta,
.content-section h2,
.card-content h3,
.card-button,
.section-cta a,
.footer-col h3,
.overview-section h2 {
    text-transform: lowercase;
}

.subhead-body-font {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold);
    margin-top: 1.5em;
    line-height: 1.5;
}
.subhead-body-font:first-child {
    margin-top: 0;
}

/* ----- Hero: full-width image rotator, 50vw L→R gradient, text max 30vw ----- */
.hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 3rem 10%;
    overflow: hidden;
    background-color: #000;
}
@media (max-width: 900px) {
    .hero { padding-left: 2.5em; padding-right: 2.5rem; }
}
@media (max-width: 700px) {
    .hero { padding-left: 2em; padding-right: 2rem; }
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-bg-img--visible {
    opacity: 1;
}
.hero-bg-placeholder {
    position: absolute;
    inset: 0;
    background-color: #000;
}
/* Same as content-section: subtle dark band at top fading over 100px, above background image */
.hero-top-gradient {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100px;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 100%);
    pointer-events: none;
}
/* Gradient covers full hero height (top to bottom), 65vw wide; solid black over text area then fades right */
.hero-gradient {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 65vw;
    z-index: 2;
    background: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.50) 75%, transparent 100%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 3;
    max-width: 40vw;
}

@media (max-width: 700px) {
    .hero { min-height: 50vh; }
    .hero-inner { max-width: 70vw; }
    /* On smaller screens keep gradient narrower and a bit lighter so the image shows through */
    .hero-gradient {
        width: 100%;
        background: linear-gradient(to right, rgb(0, 0, 0, 0.95) 45%, rgb(0, 0, 0, 0.8) 70%, rgba(0, 0, 0, 0.4) 85%, rgba(0, 0, 0, 0) 100%);
    }
}
@media (max-width: 480px) {
    .hero-inner { max-width: 80vw; }
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 5.5vw, 3.8rem);
    color: var(--gold);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-strapline {
    font-size: 1.4rem;
    color: var(--text);
    max-width: 32em;
    margin-bottom: 1.5rem;
}
.hero-cta {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--text-bright);
    background-color: var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}
.hero-cta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ----- Content sections: one band, 10% side padding, subtle top gradient ----- */
.content-section {
    width: 100%;
    padding: 3rem 10%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 100px), var(--bg-dark);
    font-size: 1.0625rem;
}
/* Game detail: gradient full width of viewport, content padding unchanged */
.content-section--game-detail {
    position: relative;
    background: var(--bg-dark);
}
.content-section-gradient {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 100%);
    pointer-events: none;
}
@media (max-width: 900px) {
    .content-section { padding-left: 2.5rem; padding-right: 2.5rem; }
}
@media (max-width: 700px) {
    .content-section { padding-left: 2rem; padding-right: 2rem; }
}
/* Games index page intro */
.games-page-title {
    font-family: var(--font-heading);
    font-size: 2.05rem;
    color: var(--gold);
    text-transform: lowercase;
    margin: 0 0 0.75rem 0;
}
.games-page-intro {
    color: var(--text);
    margin: 0;
    /*max-width: 60ch;*/
    line-height: 1.6;
}

.content-section h2 {
    font-family: var(--font-heading);
    font-size: 2.05rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.section-intro-wrap {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    margin-bottom: 1.5rem;
}
@media (min-width: 1921px) {
    .section-intro-wrap {
        column-count: 2;
        column-gap: 2.5rem;
        column-fill: balance;
    }
}
.content-section .section-intro {
    color: var(--text);
}

/* Two-column layout for text + image sections (grid, not float – section grows to contain both) */
.text-and-image-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem 2rem;
    align-items: start;
    margin-bottom: 1.5rem;
}
.rules-section__two-col {
    grid-template-columns: 3fr 2fr; /* approx 60% / 40% */
}
.text-and-image-grid__text {
    min-width: 0;
}
/* Set width via inline style on this div, e.g. style="max-width: 200px" */
.text-and-image-grid__image {
    border-radius: 8px;
    overflow: hidden;
    max-width: 320px;
}
.text-and-image-grid__image--full-width {
    max-width: 100%;
}
.rules-section__image {
    max-width: 100%;
}
.text-and-image-grid__image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Contact page: two-column layout on wide screens, collapse to single column (no image) below 940px */
.contact-layout {
    grid-template-columns: 3fr 2fr;
}
@media (max-width: 940px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-layout .text-and-image-grid__image {
        display: none;
    }
}
/* Image on the left */
.text-and-image-grid--image-left {
    grid-template-columns: auto 1fr;
}
.text-and-image-grid--image-left .text-and-image-grid__image {
    order: -1;
}
@media (max-width: 600px) {
    .text-and-image-grid,
    .text-and-image-grid--image-left {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .text-and-image-grid--image-left .text-and-image-grid__image {
        order: 0;
    }
    .text-and-image-grid__image {
        max-width: 100%;
    }
}

/* In-content images (intros, outros): float left/right, rounded corners to match cards */
.text-image-wrap {
    border-radius: 8px;
    overflow: hidden;
    max-width: min(320px, 85%);
}
.text-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
}
.text-image-wrap--left {
    float: left;
    margin: 0 1.25rem 0.5rem 0;
}
.text-image-wrap--right {
    float: right;
    margin: 0 0 0.5rem 1.25rem;
}
/* Clear float after a block of floated images (add to next paragraph or a br) */
.text-image-wrap + .text-image-wrap { margin-top: 0; }
@media (max-width: 500px) {
    .text-image-wrap--left,
    .text-image-wrap--right {
        float: none;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}

/* Optional: class directly on img (no wrapper) */
img.text-image--left {
    float: left;
    margin: 0 1.25rem 0.5rem 0;
    border-radius: 8px;
    max-width: min(320px, 85%);
    height: auto;
}
img.text-image--right {
    float: right;
    margin: 0 0 0.5rem 1.25rem;
    border-radius: 8px;
    max-width: min(320px, 85%);
    height: auto;
}

.content-section .section-intro--html p {
    margin-bottom: 1rem;
}
.content-section .section-intro--html h2 {
    font-family: var(--font-heading);
    font-size: 2.05rem;
    color: var(--gold);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.content-section .section-intro--html h2:first-child {
    margin-top: 0;
}
.content-section .section-intro--html h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}
.content-section .section-intro--html h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.content-section .section-intro--html ul,
.content-section .section-intro--html ol {
    margin: 0.5rem 0 1rem 1.25rem;
}
.content-section .section-intro--html li {
    margin-bottom: 0.35rem;
}
.content-section .section-intro--html a {
    color: var(--gold);
    text-decoration: none;
}
.content-section .section-intro--html a:hover {
    color: var(--text-bright);
}
.content-section .section-intro--html .btn,
.content-section .section-intro--html a.btn {
    display: inline-block;
    margin-top: 1.5em;
    padding: 0.5rem 1rem;
    background-color: var(--accent);
    color: var(--text-bright);
    text-decoration: none;
    border-radius: 5px;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
}
.content-section .section-intro--html .btn:hover,
.content-section .section-intro--html a.btn:hover {
    background-color: var(--accent-hover);
}

.product-grid-wrap {
    min-width: 0;
    width: 100%;
}

/* ----- Product cards (wider on desktop, 4:3 image) ----- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.product-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.product-card .card-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #2a2a2a;
}
/* Sold corner ribbon: black triangle */
.card-sold {
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 120px;
    height: 120px;
    background: #000;
    opacity: 0.8;
    transform: rotate(45deg);
    pointer-events: none;
}
/* Text on diagonal: rotate to follow hypotenuse, then shift so text *center* sits at midpoint of ribbon */
.card-sold-text {
    position: absolute;
    right: 0;
    bottom: 0;
    transform-origin: 50% 0%;
    transform: rotate(-45deg) translate(-1px, -20px);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 0 2px rgba(0,0,0,0.8);
    padding-left: 4px;
}
.product-card .card-image-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}
.product-card .card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-card .card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 140px;
    color: #666;
}
.card-content {
    padding: 1.25rem;
    line-height: 1.35;
}
.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}
.card-content .card-iteration {
    font-size: 0.95rem;
    color: #bbb;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}
.card-content .card-meta {
    font-size: 0.95rem;
    color: #bbb;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}
.card-content .card-price {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.card-button {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-bright) !important;
    background-color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: none;
    box-shadow: none;
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer;
}
.card-button:hover { background-color: var(--accent-hover); }

.section-outro {
    color: var(--text);
    margin-bottom: 1rem;
}
.section-cta {
    margin-top: 1.5em;
}
.section-cta a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-bright);
    background-color: var(--accent);
    padding: 0.6rem 1.25rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.section-cta a:hover { background-color: var(--accent-hover); }

/* ----- Game detail page ----- */
.game-detail {
    position: relative;
    max-width: 900px;
    margin-left: 0;
    margin-right: auto;
}
@media (min-width: 768px) {
    .game-detail {
        max-width: 100%;
    }
}
.game-detail-header {
    margin-bottom: 1rem;
}
.game-detail-columns {
    display: block;
}
@media (min-width: 768px) {
    .game-detail-columns {
        display: grid;
        grid-template-columns: 65% 1fr;
        gap: 2rem;
        align-items: start;
    }
}
.game-detail-category {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold);
    margin: 0 0 0.25rem 0;
    text-transform: lowercase;
}
.game-detail .game-detail-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #c4c4c4;  /* pale gray – overrides .content-section h2 gold */
    margin: 0 0 0.75rem 0;
    text-transform: lowercase;
}
.game-detail-lead {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
    color: var(--text);
}
.game-detail-gallery {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
@media (min-width: 768px) {
    .game-detail-gallery {
        margin-bottom: 0;
    }
}
/* Gallery: narrow = image then thumbs row; wide = image + thumbs column on right */
.game-detail-gallery-inner {
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .game-detail-gallery-inner {
        flex-direction: row;
    }
}
.game-detail-main-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    flex: 1;
    min-width: 0;
}
@media (min-width: 768px) {
    .game-detail-main-wrap {
        border-radius: 8px 0 0 8px;
    }
}
.game-detail-main-wrap img.game-detail-main-media,
.game-detail-main-wrap .game-detail-main-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.game-detail-main-wrap img.game-detail-main-media {
    object-fit: cover;
    display: block;
}
.game-detail-main-video-wrap {
    background: #000;
}
.game-detail-main-video-wrap video,
.game-detail-main-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.game-detail-main-video-wrap video { object-fit: contain; }
.game-detail-thumb--video {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .game-detail-thumb--video { width: 56px; height: 56px; }
}
.game-detail-thumb--video:hover { border-color: var(--gold); }
.game-detail-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: rgba(0,0,0,0.5);
    color: var(--text-bright);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.game-detail-arrow:hover {
    background: rgba(0,0,0,0.75);
    color: var(--gold);
}
.game-detail-arrow--prev { left: 0.5rem; }
.game-detail-arrow--next { right: 0.5rem; }
.game-detail-thumbs {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem;
    flex-wrap: wrap;
}
@media (min-width: 768px) {
    .game-detail-thumbs {
        flex-direction: column;
        flex-wrap: nowrap;
        width: 72px;
        padding: 0.5rem;
        border-radius: 0 8px 8px 0;
        background: #2a2a2a;
        overflow-y: auto;
        align-items: center;
    }
}
.game-detail-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .game-detail-thumb {
        width: 56px;
        height: 56px;
    }
}
.game-detail-thumb:hover { border-color: var(--gold); }
.game-detail-no-image {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}
.game-detail-body { color: var(--text); }
.game-detail-body .game-detail-header {
    margin-bottom: 1rem;
}
/* Single-column paragraph text only (no two-column layout on detail page) */
.game-detail-body .game-detail-description.section-intro-wrap {
    column-count: 1;
}
.game-detail-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.game-detail-description p { margin-bottom: 0.75rem; }
.game-detail-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1.5rem;
    margin-bottom: 1.5rem;
}
.game-detail-meta dt { color: var(--gold); }
.game-detail-meta dd { margin: 0; }
.game-detail-available {
    color: var(--accent-teal);
    font-size: 0.95rem;
}
.game-detail-sold {
    padding: 0.2rem 0.5rem;
    background: #991b1b;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
}
.game-detail-sold-msg { margin-bottom: 0; }
.game-detail-cta { margin-top: 1.5rem; }
.game-detail-cta a { color: var(--gold); }
.game-detail-cta .card-button--no-link {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
.game-detail-add-to-cart {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.game-detail-variant-select {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: #2a2a2a;
    color: var(--text-bright);
    font-size: 0.95rem;
    font-family: var(--font-body);
}
.game-detail-variant-select:focus {
    outline: none;
    border-color: var(--gold);
}
.game-warning-note {
    font-style: italic;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.05);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    color: var(--text);
    line-height: 1.5;
}

/* ----- Overview / brand section (same gradient delimiter, no border) ----- */
.overview-section {
    width: 100%;
    padding: 3rem 10%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 100px), var(--bg-dark);
    font-size: 1.0625rem;
}
@media (max-width: 900px) {
    .overview-section { padding-left: 1.5rem; padding-right: 1.5rem; }
}
.overview-section h2 {
    font-family: var(--font-heading);
    font-size: 2.05rem;
    color: var(--gold);
    margin-bottom: 1rem;
}
.overview-section p {
    color: var(--text);
    margin-bottom: 1rem;
}
@media (min-width: 900px) {
    .overview-section p {
        column-count: 2;
        column-gap: 2.5rem;
        column-fill: balance;
    }
}

/* ----- Footer ----- */
.site-footer {
    width: 100%;
    background-color: var(--footer-bg);
    padding: 2rem 10%;
    margin-top: 2rem;
}
@media (max-width: 900px) {
    .site-footer { padding-left: 1.5rem; padding-right: 1.5rem; }
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    text-align: left;
}
.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-bright);
    margin-bottom: 0.75rem;
}
.footer-col a {
    display: block;
    color: var(--text-bright);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}
.footer-col a:hover { color: #ffbb7f; }
.footer-social {
    margin-top: 0.5rem;
}
.footer-social a {
    display: inline-block;
    margin: 0 0.25rem;
}
.footer-social svg {
    width: 28px;
    height: 28px;
    fill: var(--text-bright);
}
.footer-copy {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-bright);
}

/* ----- Cart & checkout ----- */
.content-section--cart {
    position: relative;
}
.content-section--checkout {
    position: relative;
}
.cart-flash {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
}
.cart-flash--success {
    background-color: rgba(45, 255, 210, 0.08);
    border: 1px solid var(--accent-teal);
    color: var(--text-bright);
}
.cart-flash--error {
    background-color: rgba(180, 60, 60, 0.18);
    border: 1px solid #d55;
    color: #ffdede;
}
.cart-flash ul {
    margin: 0;
    padding-left: 1.1rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 2rem;
    align-items: flex-start;
}
@media (max-width: 800px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

.cart-table {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    overflow: hidden;
    font-size: 0.95rem;
}
.cart-table__row {
    display: grid;
    grid-template-columns: 60px 2fr 1fr auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 1rem;
}
@media (max-width: 600px) {
    /* Hide entire header section on mobile */
    .cart-table__head {
        display: none;
    }
    /* Hide Update button - quantity auto-updates */
    .cart-qty-update {
        display: none;
    }
    /* Mobile: card-like layout - two column: image left, content right */
    .cart-table__body .cart-table__row {
        display: grid;
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 0.5rem 1rem;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        align-items: start;
        position: relative;
    }
    .cart-table__body .cart-table__row:last-child {
        border-bottom: none;
    }
    /* Image in left column, spans all rows */
    .cart-table__body .cart-table__cell--image {
        grid-column: 1;
        grid-row: 1 / 5;
        align-self: start;
    }
    .cart-table__body .cart-table__cell--image img {
        width: 60px;
        height: 60px;
        object-fit: cover;
    }
    /* Product name and category - top row, right column, left-aligned */
    .cart-table__body .cart-table__cell--product {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        word-break: break-word;
        padding-right: 3rem;
        text-align: left;
    }
    /* Remove button - absolute top-right */
    .cart-table__body .cart-table__cell--remove {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    /* Price - second row, right column, left-aligned */
    .cart-table__body .cart-table__cell--price {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        white-space: nowrap;
    }
    .cart-table__body .cart-table__cell--price::before {
        content: 'Price: ';
        color: rgba(255,255,255,0.6);
        font-size: 0.875rem;
    }
    /* Qty - third row, right column, left-aligned */
    .cart-table__body .cart-table__cell--qty {
        grid-column: 2;
        grid-row: 3;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        white-space: nowrap;
    }
    .cart-table__body .cart-table__cell--qty::before {
        content: 'Qty: ';
        color: rgba(255,255,255,0.6);
        font-size: 0.875rem;
    }
    /* Total - fourth row, right column, left-aligned */
    .cart-table__body .cart-table__cell--total {
        grid-column: 2;
        grid-row: 4;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        white-space: nowrap;
        font-weight: 600;
        color: var(--text-bright);
    }
    .cart-table__body .cart-table__cell--total::before {
        content: 'Total: ';
        color: rgba(255,255,255,0.6);
        font-size: 0.875rem;
        font-weight: normal;
    }
    /* Adjust quantity input to be more compact without Update button */
    .cart-table__body .cart-qty-form {
        display: flex;
        align-items: center;
        gap: 0;
    }
    .cart-table__body .cart-qty-input {
        width: 3rem;
    }
}
.cart-table__row--head {
    background-color: rgba(255,255,255,0.03);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.cart-table__row:nth-child(even):not(.cart-table__row--head) {
    background-color: rgba(255,255,255,0.02);
}
.cart-table__cell {
    color: var(--text);
}
.cart-table__cell--image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-table__cell--product {
    min-width: 0;
}
.cart-item-title {
    color: var(--text-bright);
    margin-bottom: 0.15rem;
}
.cart-item-meta {
    font-size: 0.85rem;
    color: #a0a0a0;
}
.cart-item-meta span + span::before {
    content: " ";
}

.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.cart-qty-input {
    width: 3.25rem;
    padding: 0.25rem 0.4rem;
    background-color: #2a2a2a;
    border: 1px solid #555;
    border-radius: 4px;
    color: var(--text-bright);
    font-size: 0.9rem;
}
.cart-qty-input:focus {
    outline: none;
    border-color: var(--gold);
}
.cart-qty-update {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

.cart-remove-button {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.4);
    background: transparent;
    color: var(--text-bright);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-remove-button:hover {
    background-color: rgba(255,255,255,0.1);
}

.cart-summary {
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 1.25rem 1.5rem;
    background-color: rgba(0,0,0,0.35);
}
.cart-summary__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--gold);
    margin: 0 0 0.75rem 0;
}
.cart-summary__rows {
    margin: 0 0 1.25rem 0;
}
.cart-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}
.cart-summary__row dt {
    color: var(--text);
}
.cart-summary__row dd {
    color: var(--text-bright);
}
.cart-summary__row--discount dd {
    color: #ffb4b4;
}
.cart-summary__row--total {
    margin-top: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.cart-summary__row--shipping dd {
    font-size: 0.9rem;
    color: #b0b0b0;
}
.cart-summary__note {
    display: block;
    font-size: 0.8rem;
    color: #9f9f9f;
}
.cart-summary__rows dt,
.cart-summary__rows dd {
    margin: 0;
}
.cart-summary__rows dd {
    text-align: right;
}

.cart-discount-form {
    margin-bottom: 1rem;
}
.cart-discount-label {
    display: block;
    font-size: 0.85rem;
    color: #b0b0b0;
    margin-bottom: 0.25rem;
}
.cart-discount-input-row {
    display: flex;
    gap: 0.5rem;
}
@media (min-width: 801px) and (max-width: 1229px) {
    .cart-discount-input-row {
        flex-wrap: wrap;
    }
    .cart-discount-apply {
        flex: 1 1 100%;
        min-width: 0;
    }
}
.cart-discount-input {
    flex: 1;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: #2a2a2a;
    color: var(--text-bright);
    font-size: 0.9rem;
}
.cart-discount-input:focus {
    outline: none;
    border-color: var(--gold);
}
.cart-discount-apply {
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    border: none;
    background-color: var(--accent);
    color: var(--text-bright);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: pointer;
}
.cart-discount-apply:hover:not(:disabled) {
    background-color: var(--accent-hover);
}
.cart-discount-apply:disabled,
.cart-discount-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.cart-discount-active {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--text);
}
.cart-discount-remove {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
    padding: 0;
}

.cart-summary__checkout-button {
    display: inline-block;
    width: 100%;
    text-align: center;
}
.cart-summary__small-print {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #a0a0a0;
}
.cart-continue-shopping {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.cart-continue-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(203,190,133,0.7);
    color: var(--gold);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    background: rgba(0,0,0,0.4);
}
.cart-continue-button:hover {
    color: var(--text-bright);
    border-color: var(--accent-teal);
    background: rgba(0,0,0,0.7);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 2rem;
    align-items: flex-start;
}
@media (max-width: 800px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}
.checkout-main {
    max-width: 40rem;
}
.checkout-section-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--gold);
    margin: 0 0 0.75rem 0;
}
.checkout-form {
    margin-bottom: 1.5rem;
}
.checkout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}
@media (max-width: 640px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}
.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.checkout-field--full {
    grid-column: 1 / -1;
}
.checkout-terms {
    margin-top: 1.5rem;
}
.checkout-field label {
    font-size: 0.9rem;
    color: #d0d0d0;
}
.checkout-field input,
.checkout-field-select {
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: #2a2a2a;
    color: var(--text-bright);
    font-size: 0.95rem;
    font-family: var(--font-body);
}
.checkout-field input:focus,
.checkout-field-select:focus {
    outline: none;
    border-color: var(--gold);
}
.checkout-field-select {
    width: 100%;
}
.checkout-field-select optgroup {
    font-weight: 600;
    color: var(--gold);
}
.checkout-help-text {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-top: 0.1rem;
}
.checkout-shipping-info {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background-color: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
}
.checkout-shipping-info__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold);
    margin: 0 0 1rem 0;
    text-transform: lowercase;
}
.checkout-shipping-info__section {
    margin-bottom: 1.25rem;
}
.checkout-shipping-info__section:last-of-type {
    margin-bottom: 0;
}
.checkout-shipping-info__subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
    margin: 0 0 0.5rem 0;
}
.checkout-shipping-info__section p {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}
.checkout-shipping-info__section p:last-child {
    margin-bottom: 0;
}
.checkout-shipping-info__summary {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}
.checkout-shipping-info__summary a {
    color: var(--gold);
    text-decoration: none;
}
.checkout-shipping-info__summary a:hover {
    color: var(--text-bright);
    text-decoration: underline;
}
.checkout-submit {
    margin-top: 1rem;
}
.checkout-submit-button {
    width: 100%;
    text-align: center;
}
.checkout-small-print {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #a0a0a0;
}
.checkout-items {
    margin-bottom: 1rem;
}
.checkout-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.checkout-item:last-child {
    border-bottom: none;
}
.checkout-item__title {
    color: var(--text-bright);
    font-size: 0.95rem;
}
.checkout-item__meta {
    font-size: 0.8rem;
    color: #a0a0a0;
}
.checkout-item__meta span + span::before {
    content: \" \";
}
.checkout-item__total {
    color: var(--text-bright);
    font-size: 0.95rem;
}

/* ----- Checkout success / cancelled ----- */
.checkout-success-title,
.checkout-cancelled-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}
.checkout-success-lead,
.checkout-cancelled-lead {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1rem;
}
.checkout-success-ref,
.checkout-success-email,
.checkout-success-note {
    margin-bottom: 0.5rem;
    color: var(--text);
}
.checkout-success a,
.checkout-cancelled a {
    color: var(--gold);
    text-decoration: underline;
}
.checkout-success a.card-button,
.checkout-success .checkout-success-back,
.checkout-cancelled a.card-button {
    text-decoration: none;
}
.checkout-success a:hover,
.checkout-cancelled a:hover {
    color: var(--text-bright);
}

.checkout-summary {
    margin-top: 2rem;
}
.checkout-summary-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-bright);
    margin-bottom: 1rem;
}
.checkout-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
}
@media (max-width: 800px) {
    .checkout-summary-grid {
        grid-template-columns: 1fr;
    }
}
.checkout-summary-section h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-bright);
}
.checkout-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.checkout-summary-table th,
.checkout-summary-table td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.checkout-summary-table th {
    text-align: left;
    color: #9ca3af;
    font-weight: 500;
}
.checkout-summary-table .text-right {
    text-align: right;
}
.checkout-summary-table--totals td {
    border-bottom: none;
}
.checkout-summary-total-row td {
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 0.6rem;
}
.checkout-summary-address {
    margin-top: 0.75rem;
    background: rgba(0,0,0,0.4);
    border-radius: 6px;
    padding: 0.75rem;
    white-space: pre-wrap;
    font-size: 0.9rem;
}
.text-discount {
    color: #fca5a5;
}

/* ----- Rules page ----- */
.rules-intro {
    margin-bottom: 1.5rem;
}
.rules-anchors {
    margin-bottom: 2rem;
}
.rules-anchors ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.rules-anchors > ul > li {
    margin-bottom: 0.5rem;
}
.rules-anchors > ul > li > ul {
    margin-left: 1rem;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
}
.rules-anchors a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(203,190,133,0.7);
    color: var(--gold);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    background: rgba(0,0,0,0.4);
}
.rules-anchors a:hover {
    color: var(--text-bright);
    border-color: var(--accent-teal);
    background: rgba(0,0,0,0.7);
}

.rules-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rules-section:last-child {
    border-bottom: 0;
}
.rules-section__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
    scroll-margin-top: 5rem;
}
.rules-section__subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    scroll-margin-top: 5rem;
}
.rules-section__subtitle:first-of-type {
    margin-top: 0.5rem;
}
.rules-section__desc {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.rules-section__content {
    margin-top: 0.75rem;
}
.rules-section__content h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
}
.rules-section__content h3:first-child {
    margin-top: 0;
}
.rules-section__content h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-top: 1rem;
    margin-bottom: 0.35rem;
}
.rules-section__content p {
    margin-bottom: 0.75rem;
}
.rules-section__content ul,
.rules-section__content ol {
    margin: 0.5rem 0 1rem 1.25rem;
}
.rules-section__content ol {
    padding-left: 1.5rem;
}
.rules-section__content li {
    margin-bottom: 0.35rem;
}
.rules-section__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.rules-section__placeholder {
    color: var(--text);
    font-style: italic;
    margin-top: 0.5rem;
}
.rules-section__pdf {
    margin-top: 1rem;
}
.rules-section__pdf--missing {
    font-size: 0.9rem;
    color: #a66;
}
.rules-section__image-placeholder {
    background: var(--bg-card);
    border: 1px dashed #555;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}
.rules-section__image-placeholder small {
    font-size: 0.8rem;
    color: #666;
}
.rules-section__pdf-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}
.rules-section__pdf-link:hover img {
    opacity: 0.9;
}
.rules-section__pdf-link img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.2s;
}

.rules-section__video {
    margin-top: 1.5rem;
    clear: both;
}
.rules-section__video-inline {
    margin: 1.5rem 0;
}
.rules-section__video-inline .rules-video-wrap {
    max-width: 100%;
}
.rules-diagram-image {
    transition: opacity 0.2s;
}
.rules-diagram-image:hover {
    opacity: 0.9;
}
.rules-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.rules-fullscreen-overlay img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
}
.rules-video-wrap {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.rules-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.rules-video-placeholder {
    max-width: 560px;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px dashed #555;
    border-radius: 8px;
    color: var(--text);
    text-align: center;
}
.rules-video-placeholder p {
    margin: 0 0 0.5rem;
}
.rules-video-placeholder__hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.75rem !important;
}

/* ----- Contact page ----- */
.contact-intro {
    margin-bottom: 1.5rem;
}
.contact-success {
    background-color: rgba(45, 255, 210, 0.12);
    border: 1px solid var(--accent-teal);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
}
.contact-success p {
    margin: 0;
    color: var(--text-bright);
}
.contact-form {
    max-width: 32rem;
    margin-top: 0.5rem;
}
.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.contact-form__row {
    margin-bottom: 1.25rem;
}
.contact-form__row label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text);
    font-weight: 600;
}
.contact-form__row .required {
    color: var(--accent-teal);
}
.contact-form__row input[type="text"],
.contact-form__row input[type="email"],
.contact-form__row textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-bright);
    background-color: var(--bg-card);
    border: 1px solid #555;
    border-radius: 6px;
}
.contact-form__row input:focus,
.contact-form__row textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(203, 190, 133, 0.25);
}
.contact-form__row input.is-invalid,
.contact-form__row textarea.is-invalid {
    border-color: #c66;
}
.contact-form__row textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form__error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: #e88;
}
.contact-form__actions {
    margin-top: 1.5rem;
}
.contact-form__submit {
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    cursor: pointer;
}

/* Currency selector (GBP / USD / EUR) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.currency-selector {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.currency-selector__select {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-bright);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    max-width: 7.5rem;
}
.currency-selector__select:hover,
.currency-selector__select:focus {
    border-color: var(--accent-teal);
    outline: none;
}
.nav-panel-nav .currency-selector--panel {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-panel-nav .currency-selector__select {
    width: 100%;
    max-width: none;
}
.currency-disclaimer {
    margin: 0;
    padding: 0.4rem 10%;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #b0b0b0;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}
@media (max-width: 900px) {
    .currency-disclaimer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
