@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Comic+Neue:wght@400;700&display=swap');

/* ============================================================
   YOUR CHOICE GAME STUDIO — style.css
   Original comic theme. One page: hero → catalogue → footer nav.
============================================================ */

/* =========================
   1. TOKENS  (unchanged from the original site)
========================= */
:root {
    --primary:   #FFD600;
    --secondary: #FF3B3B;
    --accent:    #00CFFF;
    --ink:       #111111;
    --white:     #FFFDF0;
    --panel-bg:  #FFFDF0;

    --shadow:    5px 5px 0px #111;
    --shadow-lg: 8px 8px 0px #111;
    --radius:    6px;
    --transition: 0.15s ease;

    --shell: 1220px;
    --ease: cubic-bezier(.22, .8, .3, 1);
}

/* =========================
   2. RESET + BASE
========================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
}

/* Add at the bottom of style.css */

.brand-mark.brand-logo {
    display: block;
    width: 68px;
    height: 68px;
    padding: 4px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fffdf0;
}

@media (max-width: 620px) {
    .brand-mark.brand-logo {
        width: 48px;
        height: 48px;
        padding: 3px;
    }
}

body {
    font-family: 'Comic Neue', cursive;
    background-color: var(--white);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: radial-gradient(circle, rgba(0,0,0,0.07) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
}

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

::selection { background: var(--primary); color: var(--ink); }

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

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 5%; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    z-index: 999;
    font-family: 'Bangers', cursive;
    letter-spacing: 1.5px;
    background: var(--primary);
    color: var(--ink);
    border: 3px solid var(--ink);
    padding: 10px 18px;
    border-radius: var(--radius);
}
.skip-link:focus { left: 16px; }

/* =========================
   3. SCROLL PROGRESS
========================= */
.progress-rail {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 5px;
    z-index: 400;
    pointer-events: none;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--secondary);
    border-right: 2px solid var(--ink);
    transition: width .1s linear;
}

/* =========================
   4. HEADER — brand only, nav lives in the footer
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: var(--primary);
    border-bottom: 4px solid var(--ink);
    box-shadow: 0 4px 0 var(--ink);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 5%;
    max-width: var(--shell);
    margin: 0 auto;
    transition: padding .25s var(--ease);
}
.site-header.is-stuck .header-inner { padding: 9px 5%; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-family: 'Bangers', cursive;
    font-size: 20px;
    letter-spacing: 1px;
    color: var(--ink);
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--ink);
    transition: transform var(--transition);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }

.brand-name {
    font-family: 'Bangers', cursive;
    font-size: 26px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.05;
}
.brand-name small {
    display: block;
    font-family: 'Comic Neue', cursive;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: none;
    opacity: .65;
}

/* =========================
   5. BUTTONS
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Bangers', cursive;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--secondary);
    color: #fff;
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    padding: 10px 22px;
    box-shadow: var(--shadow);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-lg);
    background: var(--primary);
    color: var(--ink);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { background: var(--primary); color: var(--ink); }

.btn-ghost { background: var(--panel-bg); color: var(--ink); }
.btn-ghost:hover { background: var(--accent); color: var(--ink); }

.btn-sm { font-size: 15px; letter-spacing: 1.5px; padding: 8px 14px; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn-lg { font-size: 20px; padding: 13px 30px; }

/* =========================
   6. HERO
========================= */
.hero {
    position: relative;
    padding: 60px 0 40px;
    text-align: center;
    overflow: hidden;
}

.hero-burst {
    position: absolute;
    top: 46%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    opacity: .06;
    border-radius: 50%;
    background: repeating-conic-gradient(#111 0deg 10deg, transparent 10deg 20deg);
    animation: slow-spin 120s linear infinite;
}

.hero-panel {
    position: relative;
    max-width: 760px;
    margin: 30px auto 0;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: var(--panel-bg);
    border: 4px solid var(--ink);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.hero-studio-name {
    font-family: 'Bangers', cursive;
    font-size: clamp(30px, 5vw, 52px);
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--ink);
    background: var(--primary);
    border: 4px solid var(--ink);
    border-radius: 14px;
    padding: 12px 30px;
    box-shadow: var(--shadow-lg);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Bangers', cursive;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: var(--accent);
    color: var(--ink);
    border: 2.5px solid var(--ink);
    border-radius: 4px;
    padding: 4px 14px;
    box-shadow: 3px 3px 0 var(--ink);
}

.hero h1 {
    font-family: 'Bangers', cursive;
    font-size: clamp(36px, 6vw, 64px);
    letter-spacing: 3px;
    line-height: 1.1;
    text-transform: uppercase;
}
.hero h1 span { color: var(--secondary); }

.hero p { font-size: 18px; font-weight: 700; line-height: 1.6; max-width: 520px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 6px; }

/* =========================
   7. ICON RAIL
========================= */
.icon-rail {
    position: relative;
    margin-top: 52px;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.rail-track {
    display: flex;
    gap: 22px;
    width: max-content;
    padding: 6px 0;
    animation: rail-drift 52s linear infinite;
}
.icon-rail:hover .rail-track { animation-play-state: paused; }

.rail-item {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--panel-bg);
    border: 3px solid var(--ink);
    border-radius: 18px;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform var(--transition), box-shadow var(--transition);
}
.rail-item img { width: 100%; height: 100%; object-fit: cover; }
.rail-item:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }

/* =========================
   8. STATS STRIP
========================= */
.stats { padding: 20px 0 56px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.stat {
    background: var(--panel-bg);
    border: 3.5px solid var(--ink);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 22px 16px;
    text-align: center;
}
.stat:nth-child(1) { background: var(--primary); }
.stat:nth-child(3) { background: var(--accent); }

.stat-num {
    font-family: 'Bangers', cursive;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: 2px;
    line-height: 1;
}
.stat-label { font-size: 13.5px; font-weight: 700; line-height: 1.4; margin-top: 8px; }

/* =========================
   9. SECTION HEADS
========================= */
.section { padding: 10px 0 70px; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.section-head h2 {
    font-family: 'Bangers', cursive;
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: inline-block;
}
.section-head h2::after {
    content: "";
    display: block;
    height: 6px;
    background: var(--primary);
    border: 2.5px solid var(--ink);
    border-radius: 10px;
    margin-top: 4px;
}
.section-head p { font-size: 16px; font-weight: 700; line-height: 1.6; max-width: 48ch; margin-top: 12px; }

.section-head .head-aside {
    font-family: 'Bangers', cursive;
    font-size: 17px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--panel-bg);
    border: 2.5px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 3px 3px 0 var(--ink);
    padding: 6px 14px;
}

/* =========================
   10. TOOLBAR — filters + search
========================= */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 16px 18px;
    background: var(--panel-bg);
    border: 3.5px solid var(--ink);
    border-radius: 14px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; }

.filter-btn {
    font-family: 'Bangers', cursive;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 18px;
    background: var(--panel-bg);
    color: var(--ink);
    border: 2.5px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn span { opacity: .55; margin-left: 6px; }
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--ink);
}

.search-wrap { position: relative; flex: 0 1 270px; min-width: 190px; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-input {
    width: 100%;
    font-family: 'Comic Neue', cursive;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    background: #fff;
    border: 2.5px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 3px 3px 0 var(--ink);
    padding: 9px 14px 9px 38px;
}
.search-input::placeholder { color: rgba(17,17,17,.45); }
.search-input:focus { outline: none; background: #FFFBDF; box-shadow: 5px 5px 0 var(--ink); }

/* =========================
   11. GAMES GRID + CARD
========================= */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(276px, 1fr));
    gap: 30px;
}

.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 20px 20px;
    background: var(--panel-bg);
    border: 3.5px solid var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
/* the original coloured strip along the top of every card */
.game-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 10px;
    background: var(--cat, var(--primary));
    border-bottom: 3px solid var(--ink);
}
.game-card > * { position: relative; }
.game-card:hover { transform: translate(-5px, -5px) rotate(-1deg); box-shadow: 12px 12px 0 var(--ink); }

/* the icon is the hero of the card — deliberately large */
.card-icon {
    position: relative;
    align-self: center;
    width: 140px;
    height: 140px;
    margin-top: 12px;
    background: #ddd;
    border: 3px solid var(--ink);
    border-radius: 24px;
    box-shadow: 4px 4px 0 var(--ink);
    overflow: hidden;
    transition: transform var(--transition);
}
.game-card:hover .card-icon { transform: rotate(2deg); }
.card-icon img { width: 100%; height: 100%; object-fit: cover; }

.badge-new {
    position: absolute;
    top: 6px;
    right: 6px;
    font-family: 'Bangers', cursive;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--primary);
    border: 2.5px solid var(--ink);
    border-radius: 4px;
    padding: 1px 8px;
}

.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.chip {
    align-self: flex-start;
    font-family: 'Bangers', cursive;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--cat, var(--accent));
    border: 2px solid var(--ink);
    border-radius: 4px;
    padding: 2px 10px;
}

.card-body h3 {
    font-family: 'Bangers', cursive;
    font-size: 24px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.1;
}

.card-body p {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 700; }
.card-meta > span {
    background: rgba(255, 214, 0, .25);
    border: 2px solid var(--ink);
    border-radius: 4px;
    padding: 2px 8px;
}
.card-meta .star {
    background: none;
    border: 0;
    padding: 0;
    color: var(--secondary);
}

.card-actions { display: flex; gap: 8px; margin-top: 6px; }
.card-actions .btn { flex: 1; }

/* empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 56px 20px;
    background: var(--panel-bg);
    border: 3.5px dashed var(--ink);
    border-radius: 16px;
}
.empty-state h3 {
    font-family: 'Bangers', cursive;
    font-size: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.empty-state p { font-weight: 700; }
.empty-state button { margin-top: 18px; }

/* =========================
   12. CTA BAND
========================= */
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding: 40px 44px;
    background: var(--primary);
    border: 4px solid var(--ink);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 80px;
}
.cta-band h2 {
    font-family: 'Bangers', cursive;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.1;
}
.cta-band p { font-size: 16px; font-weight: 700; line-height: 1.6; margin-top: 10px; max-width: 46ch; }

/* =========================
   13. MODAL
========================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, .75);
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    transition: opacity .2s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-box {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 36px 40px;
    background: var(--panel-bg);
    border: 4px solid var(--ink);
    border-radius: 20px;
    box-shadow: 12px 12px 0 var(--ink);
    transform: scale(.9) translateY(20px);
    transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: #fff;
    background: var(--secondary);
    border: 2.5px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
    transition: var(--transition);
}
.modal-close:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }

.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 3px solid var(--ink);
}

.modal-icon {
    width: 136px;
    height: 136px;
    flex-shrink: 0;
    object-fit: cover;
    background: #ddd;
    border: 3px solid var(--ink);
    border-radius: 24px;
    box-shadow: 4px 4px 0 var(--ink);
}

.modal-header-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.modal-header-info h2 {
    font-family: 'Bangers', cursive;
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
}

.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.modal-meta span {
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 214, 0, .2);
    border: 2px solid var(--ink);
    border-radius: 4px;
    padding: 2px 10px;
}

.modal-section { margin-bottom: 28px; }
.modal-section-title {
    font-family: 'Bangers', cursive;
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-section-title::after { content: ""; flex: 1; height: 3px; background: var(--primary); border-radius: 4px; }

.modal-desc {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    padding: 16px 20px;
    border-left: 5px solid var(--primary);
    background: rgba(255, 214, 0, .08);
    border-radius: 0 8px 8px 0;
}

.modal-features-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.modal-features-list li {
    font-size: 15px;
    font-weight: 700;
    padding: 9px 14px;
    background: rgba(0, 207, 255, .1);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 2px 2px 0 var(--ink);
}

/* screenshots */
.screenshots-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 4px 12px;
    scroll-snap-type: x mandatory;
}
.screenshot-full {
    flex-shrink: 0;
    width: 178px;
    scroll-snap-align: start;
    object-fit: cover;
    background: #ddd;
    border: 3px solid var(--ink);
    border-radius: 10px;
    box-shadow: 4px 4px 0 var(--ink);
    cursor: zoom-in;
    transition: var(--transition);
}
.screenshot-full:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }

/* changelog */
.changelog { display: flex; flex-direction: column; gap: 12px; }
.changelog-entry {
    padding: 14px 18px;
    background: var(--panel-bg);
    border: 2.5px solid var(--ink);
    border-radius: 10px;
    box-shadow: 3px 3px 0 var(--ink);
}
.changelog-header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.changelog-version {
    font-family: 'Bangers', cursive;
    font-size: 18px;
    letter-spacing: 1.5px;
    color: var(--secondary);
}
.changelog-date { font-size: 13px; font-weight: 700; opacity: .6; }
.changelog-entry p { font-size: 14px; font-weight: 700; line-height: 1.5; }

.modal-cta { padding-top: 20px; border-top: 3px solid var(--ink); text-align: center; }
.modal-cta .btn { width: 100%; }

/* lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .9);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img {
    max-width: min(540px, 92vw);
    max-height: 86vh;
    width: auto;
    background: #fff;
    border: 4px solid var(--ink);
    border-radius: 14px;
    box-shadow: 10px 10px 0 var(--primary);
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #fff;
    background: var(--secondary);
    border: 3px solid #fff;
    border-radius: var(--radius);
    cursor: pointer;
}

/* =========================
   14. FOOTER — all navigation lives here
========================= */
.site-footer {
    margin-top: auto;
    background: var(--ink);
    color: #fff;
    border-top: 4px solid var(--ink);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
    gap: 40px;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 50px 5% 40px;
}

.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-mark {
    background: var(--primary);
    border-color: #fff;
    box-shadow: 3px 3px 0 rgba(255,255,255,.35);
}
.footer-brand .brand-name { color: var(--primary); font-size: 30px; letter-spacing: 3px; }

.footer-tagline { font-size: 14px; font-weight: 700; line-height: 1.6; opacity: .7; max-width: 30ch; }
.footer-contact {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    border-bottom: 2px solid rgba(255,214,0,.4);
    padding-bottom: 2px;
    transition: var(--transition);
}
.footer-contact:hover { color: var(--primary); border-color: var(--primary); }

.footer-col h4 {
    font-family: 'Bangers', cursive;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 214, 0, .3);
}
.footer-col a {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    margin-bottom: 8px;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--primary); transform: translateX(4px); }

.social-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Bangers', cursive;
    font-size: 15px;
    letter-spacing: 1.5px;
    color: #fff;
    text-decoration: none;
    padding: 9px 14px;
    border: 2.5px solid rgba(255, 255, 255, .25);
    border-radius: var(--radius);
    transition: var(--transition);
}
.social-btn:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 rgba(255, 255, 255, .3); }
.social-btn.youtube   { background: rgba(255, 0, 0, .25); }
.social-btn.youtube:hover   { background: #FF0000; border-color: #FF0000; }
.social-btn.instagram { background: rgba(225, 48, 108, .25); }
.social-btn.instagram:hover { background: #E1306C; border-color: #E1306C; }
.social-btn.twitter   { background: rgba(29, 155, 240, .25); }
.social-btn.twitter:hover   { background: #1D9BF0; border-color: #1D9BF0; }
.social-btn.discord   { background: rgba(88, 101, 242, .25); }
.social-btn.discord:hover   { background: #5865F2; border-color: #5865F2; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 16px 5% 22px;
    border-top: 2px solid rgba(255, 255, 255, .1);
    font-family: 'Bangers', cursive;
    font-size: 15px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .5);
}
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, .5); text-decoration: none; transition: var(--transition); }
.footer-bottom a:hover { color: var(--primary); }

/* =========================
   15. LEGAL PAGES
========================= */
.page-content { max-width: 820px; margin: 56px auto 80px; padding: 0 5%; width: 100%; }

.page-panel {
    padding: 48px 52px;
    background: var(--panel-bg);
    border: 4px solid var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.page-panel h1 {
    font-family: 'Bangers', cursive;
    font-size: clamp(38px, 6vw, 52px);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 28px;
    padding-bottom: 10px;
    display: inline-block;
    position: relative;
}
.page-panel h1::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary);
    border-radius: 4px;
}

.page-panel p { font-size: 16px; font-weight: 700; line-height: 1.7; margin-bottom: 14px; }
.page-panel p strong { color: var(--secondary); }

.page-panel .intro-p {
    padding: 14px 18px;
    border-left: 5px solid var(--primary);
    background: rgba(255, 214, 0, .08);
    border-radius: 0 8px 8px 0;
    margin-bottom: 18px;
}

.policy-heading {
    font-family: 'Bangers', cursive;
    font-size: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary);
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--primary);
}

.policy-subheading {
    font-family: 'Bangers', cursive;
    font-size: 22px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 20px 0 10px;
    padding: 6px 12px;
    border-left: 4px solid var(--accent);
    background: rgba(0, 207, 255, .08);
    border-radius: 0 6px 6px 0;
}

.policy-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.policy-list li {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    padding: 10px 14px;
    border-left: 4px solid var(--primary);
    background: rgba(255, 214, 0, .07);
    border-radius: 0 6px 6px 0;
}
.policy-list li::before { content: "▸"; color: var(--secondary); margin-right: 8px; font-size: 13px; }

/* =========================
   16. DIVIDER
========================= */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 40px;
    opacity: .3;
    font-family: 'Bangers', cursive;
    font-size: 28px;
    letter-spacing: 4px;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 3px; background: var(--ink); }

/* =========================
   17. SCROLL REVEAL
========================= */
[data-reveal].reveal-pending {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
    transition-delay: var(--delay, 0ms);
    will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-reveal="scale"].reveal-pending { transform: scale(.85) rotate(-4deg); }
[data-reveal="scale"].reveal-pending.is-visible { transform: none; transition-timing-function: cubic-bezier(.34, 1.56, .64, 1); }

[data-reveal="left"].reveal-pending  { transform: translateX(-28px); }
[data-reveal="right"].reveal-pending { transform: translateX(28px); }
[data-reveal="left"].reveal-pending.is-visible,
[data-reveal="right"].reveal-pending.is-visible { transform: none; }

/* =========================
   18. KEYFRAMES
========================= */
@keyframes rail-drift {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes slow-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =========================
   19. RESPONSIVE
========================= */
@media (max-width: 1000px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 34px; }
    .footer-brand { grid-column: 1 / -1; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    html { scroll-padding-top: 76px; }
    .hero { padding: 40px 0 30px; }
    .hero-panel { padding: 36px 22px; }
    .hero-studio-name { padding: 10px 18px; letter-spacing: 2px; }
    .brand-name { font-size: 22px; }
    .brand-name small { display: none; }
    .section { padding: 6px 0 56px; }

    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar > * { min-width: 0; max-width: 100%; }
    .search-wrap { flex: 1 1 auto; }
    .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; scrollbar-width: none; }
    .filter-bar::-webkit-scrollbar { display: none; }
    .filter-btn { flex-shrink: 0; }

    .games-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
    .modal-box { padding: 28px 22px; }
    .modal-header { flex-direction: column; align-items: center; text-align: center; }
    .modal-meta { justify-content: center; }
    .cta-band { padding: 32px 24px; }
    .page-panel { padding: 32px 20px; }
    .rail-item { width: 72px; height: 72px; border-radius: 14px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Phones: header drops to the wordmark alone, cards become store-style rows
   so the icon stays large without a screen of scrolling. */
@media (max-width: 620px) {
    .header-inner > .btn { display: none; }
    .brand-mark { width: 38px; height: 38px; font-size: 17px; }
    .brand-name { font-size: 19px; letter-spacing: 1.5px; }

    .games-grid { grid-template-columns: 1fr; gap: 18px; }

    .game-card {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        grid-template-areas:
            "icon body"
            "meta meta"
            "acts acts";
        align-items: start;
        column-gap: 16px;
        row-gap: 12px;
        padding: 24px 16px 16px;
    }
    .card-icon    { grid-area: icon; width: 118px; height: 118px; margin-top: 4px; border-radius: 20px; align-self: start; }
    .card-body    { grid-area: body; margin-top: 4px; }
    .card-meta    { grid-area: meta; }
    .card-actions { grid-area: acts; margin-top: 0; }
    .card-body h3 { font-size: 21px; }
    .card-body p  { -webkit-line-clamp: 2; line-clamp: 2; }
    .game-card:hover { transform: none; box-shadow: var(--shadow-lg); }
    .game-card:hover .card-icon { transform: none; }
}

@media (max-width: 380px) {
    .game-card { grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; }
    .card-icon { width: 96px; height: 96px; }
    .card-actions { flex-direction: column; }
}

/* =========================
   20. REDUCED MOTION
========================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* =========================
   21. PRINT (legal pages)
========================= */
@media print {
    body { background: #fff; }
    .site-header, .site-footer, .progress-rail { display: none; }
    .page-panel { border: none; box-shadow: none; padding: 0; }
}

/* Legal pages are reading surfaces and must never depend on scroll reveal. */
.legal-page .page-panel { opacity: 1; transform: none; overflow-wrap: anywhere; }
.legal-page main { flex: 1; }
.legal-page .page-content { max-width: 980px; }
.legal-page .page-panel p,
.legal-page .policy-list li { font-family: Arial, Helvetica, sans-serif; font-weight: 400; line-height: 1.8; }
.legal-page .page-panel p strong { color: var(--ink); }
.legal-page .page-panel .intro-p { padding: 0; border: 0; background: none; margin-bottom: 20px; }
.legal-page .policy-heading { scroll-margin-top: 100px; }
.legal-page .page-panel a { text-underline-offset: 3px; }
.legal-toc { margin: 24px 0 32px; border: 3px solid var(--ink); border-radius: 12px; background: #fff6c9; }
.legal-toc summary { padding: 16px 20px; cursor: pointer; font-size: 19px; font-weight: 700; }
.legal-toc nav { padding: 0 20px 20px 40px; }
.legal-toc ol { columns: 2; column-gap: 32px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.legal-toc li { break-inside: avoid; padding: 5px 0; line-height: 1.5; }
.legal-toc a:hover { color: #8d1b1b; }
.catalogue-notice, .screenshots-empty { padding: 20px; line-height: 1.6; }
@media (max-width: 620px) {
    .legal-page .page-content { margin: 28px auto 48px; }
    .legal-page .page-panel { padding: 26px 20px; }
    .legal-page .page-panel h1 { font-size: 36px; letter-spacing: 1px; }
    .legal-toc ol { columns: 1; }
}
@media print {
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .legal-toc, .skip-link { display: none; }
    .legal-page .page-content { max-width: none; margin: 0; padding: 0; }
    .legal-page .page-panel { padding: 0; }
    .policy-heading, .policy-subheading { break-after: avoid; }
}
