/* =========================================================
   INKPRESS - Editorial Paper Game Platform Theme
   Original design for game_v20261021
   ========================================================= */

:root {
    --paper: #f8f5ef;
    --paper-2: #f1ece1;
    --card: #fffdf9;
    --ink: #16130f;
    --ink-2: #4b443a;
    --ink-3: #8d8374;
    --line: #ded4c3;
    --line-soft: #ebe4d7;
    --accent: #b8452c;
    --accent-2: #d97a3f;
    --accent-soft: rgba(184, 69, 44, 0.09);
    --grad: linear-gradient(100deg, #16130f 0%, #40382d 100%);
    --grad-2: linear-gradient(100deg, #b8452c 0%, #d97a3f 100%);
    --radius: 3px;
    --radius-sm: 2px;
    --shadow: 0 24px 60px rgba(60, 48, 32, 0.10);
    --font-head: 'Playfair Display', "Songti SC", "Noto Serif SC", Georgia, serif;
    --font-body: 'Inter', "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16.5px;
    font-weight: 400;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.72;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* linen paper grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(90deg, rgba(120, 100, 70, 0.035) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(0deg, rgba(120, 100, 70, 0.03) 0 1px, transparent 1px 3px);
    opacity: 0.7;
}

/* soft warm light in the corners */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(680px 420px at 96% -8%, rgba(217, 122, 63, 0.13), transparent 66%),
        radial-gradient(620px 400px at -10% 6%, rgba(184, 69, 44, 0.08), transparent 62%);
}

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

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

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 26px;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    border: 1px solid var(--ink);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn-grad {
    background: var(--ink);
    color: var(--paper);
    box-shadow: none;
}

.btn-grad:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--ink);
    background: var(--card);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 17px 34px;
    font-size: 12.5px;
}

/* ---------------- Header / Nav ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 245, 239, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 78px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.2px;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: var(--card);
    border: 1px solid var(--ink);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 19px;
    font-style: italic;
    font-weight: 700;
    flex-shrink: 0;
}

.logo em {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: var(--accent);
    margin-left: 9px;
    padding-left: 9px;
    border-left: 1px solid var(--line);
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-menu a {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-2);
    border-bottom: 1px solid transparent;
    transition: color 0.18s, border-color 0.18s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--ink);
    border-bottom-color: var(--accent);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-size: 17px;
    cursor: pointer;
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    padding: 96px 0 84px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -220px;
    width: 900px;
    height: 420px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(217, 122, 63, 0.10), transparent 74%);
    z-index: -1;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(34px, 6vw, 68px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.6px;
    margin-bottom: 24px;
}

.hero h1 .grad-text {
    display: inline-block;
    font-style: italic;
    color: var(--accent);
}

.hero p {
    max-width: 640px;
    margin: 0 auto 36px;
    font-size: 17px;
    color: var(--ink-2);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 64px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 34px;
}

.stat {
    min-width: 180px;
    padding: 0 28px;
    border-left: 1px solid var(--line);
}

.stat:first-child {
    border-left: 0;
}

.stat b {
    display: block;
    font-family: var(--font-head);
    font-size: 34px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
}

.stat span {
    display: block;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.9px;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* ---------------- Section ---------------- */
.section {
    padding: 78px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.section-head h2 {
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.section-head h2 span {
    font-style: italic;
    color: var(--accent);
}

.section-head p {
    color: var(--ink-3);
    font-size: 15px;
    margin-top: 6px;
}

/* ---------------- Featured carousel ---------------- */
.featured-row {
    display: grid;
    grid-template-columns: repeat(8, 196px);
    gap: 20px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x mandatory;
}

.featured-row::-webkit-scrollbar,
.game-grid::-webkit-scrollbar {
    height: 6px;
}

.featured-row::-webkit-scrollbar-track,
.game-grid::-webkit-scrollbar-track {
    background: var(--line-soft);
}

.featured-row::-webkit-scrollbar-thumb,
.game-grid::-webkit-scrollbar-thumb {
    background: var(--ink-3);
}

/* ---------------- Game card ---------------- */
.game-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    scroll-snap-align: start;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink);
    box-shadow: var(--shadow);
}

.game-card .thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--paper-2);
}

.game-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .thumb img {
    transform: scale(1.05);
}

.game-card .thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 58%, rgba(22, 19, 15, 0.55));
    opacity: 0.85;
}

.game-card .cat {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 253, 249, 0.94);
    color: var(--ink);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.game-card .play-hover {
    position: absolute;
    left: 50%;
    top: 44%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 3;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--card);
    color: var(--ink);
    font-size: 15px;
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
    box-shadow: 0 10px 26px rgba(22, 19, 15, 0.28);
}

.game-card:hover .play-hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.game-card .body {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--line-soft);
}

.game-card .title {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.game-card .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    letter-spacing: 0.4px;
    color: var(--ink-3);
}

.stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: var(--accent);
    font-size: 12px;
}

.stars .score {
    color: var(--ink-3);
    margin-left: 5px;
    font-weight: 500;
}

/* ---------------- Catalog / filters ---------------- */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-2);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 10.5px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
}

.chip:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.chip.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.search-box {
    position: relative;
}

.search-box input {
    width: 250px;
    padding: 12px 42px 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s, width 0.2s ease;
}

.search-box input::placeholder {
    color: var(--ink-3);
}

.search-box input:focus {
    border-color: var(--ink);
    width: 290px;
}

.search-box .icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-3);
    font-size: 13px;
    pointer-events: none;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
    gap: 22px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    color: var(--ink-3);
    font-family: var(--font-head);
    font-size: 17px;
    font-style: italic;
}

/* ---------------- Features ---------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.feature-card {
    padding: 34px 30px 36px;
    background: transparent;
    border: 1px solid var(--line);
    border-top: 0;
    border-left: 0;
    transition: background 0.2s ease;
}

.feature-card:last-child {
    border-right: 0;
}

.feature-card:hover {
    background: var(--card);
}

.feature-card .icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 19px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.2px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--ink-2);
    font-size: 15px;
}

/* ---------------- About ---------------- */
.about-wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.about-visual {
    position: relative;
    padding: 48px 38px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--ink);
    text-align: center;
    box-shadow: 10px 10px 0 var(--paper-2);
}

.about-visual .big-num {
    font-family: var(--font-head);
    font-size: 68px;
    font-weight: 500;
    line-height: 1;
    color: var(--ink);
}

.about-visual .note {
    margin-top: 14px;
    color: var(--ink-2);
    font-size: 14.5px;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}

.about-text h2 {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.4px;
    margin-bottom: 18px;
}

.about-text p {
    color: var(--ink-2);
    font-size: 16px;
    margin-bottom: 14px;
}

.about-text ul {
    list-style: none;
    margin-top: 22px;
    display: grid;
    gap: 13px;
}

.about-text li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15.5px;
}

.about-text li .tick {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    border: 1px solid rgba(184, 69, 44, 0.34);
    color: var(--accent);
    font-size: 10px;
    margin-top: 4px;
}

/* ---------------- Detail page ---------------- */
.breadcrumb {
    padding: 28px 0 4px;
    font-size: 10.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-3);
}

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

.breadcrumb span {
    color: var(--ink-2);
}

.detail-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 44px;
    padding: 26px 0 62px;
    align-items: start;
}

.detail-cover {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    position: sticky;
    top: 98px;
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
}

.detail-cover .cover-meta {
    padding: 20px 22px;
    display: grid;
    gap: 13px;
}

.detail-cover .row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-bottom: 11px;
    border-bottom: 1px dotted var(--line);
}

.detail-cover .row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.detail-cover .row b {
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 600;
}

.detail-info h1 {
    font-family: var(--font-head);
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 500;
    letter-spacing: -0.6px;
    line-height: 1.14;
    margin-bottom: 18px;
}

.detail-info .tagline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.tag-pill {
    padding: 7px 14px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--line);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--ink-2);
}

.detail-info .desc {
    color: var(--ink-2);
    font-size: 16.5px;
    margin-bottom: 28px;
    max-width: 640px;
}

.detail-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}

.spec-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    max-width: 660px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.spec {
    padding: 16px 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.spec .k {
    font-size: 9px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 7px;
}

.spec .v {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.1px;
}

/* ---------------- Play page ---------------- */
.play-wrap {
    padding: 30px 0 0;
}

.play-stage {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #0d0b09;
    border: 1px solid var(--ink);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.play-stage iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.play-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 0 28px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.play-toolbar .left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.play-toolbar .thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.play-toolbar .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-toolbar .t-info {
    min-width: 0;
}

.play-toolbar .t-info h2 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-toolbar .t-info .sub {
    font-size: 13px;
    letter-spacing: 0.4px;
    color: var(--ink-3);
    margin-top: 6px;
}

.play-toolbar .right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 17px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 10.5px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
}

.icon-btn:hover {
    border-color: var(--ink);
    background: var(--card);
    transform: translateY(-2px);
}

.play-desc {
    padding: 26px 28px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    margin: 28px 0 30px;
}

.play-desc h3 {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.2px;
    margin-bottom: 12px;
}

.play-desc p {
    color: var(--ink-2);
    font-size: 16px;
}

/* ---------------- Ad slot ---------------- */
.ad-slot {
    display: none;
    margin: 34px 0;
    min-height: 120px;
    border-radius: var(--radius);
    background: var(--paper-2);
    border: 1px dashed var(--line);
    overflow: hidden;
}

.ad-slot.ready {
    display: block;
}

.ad-slot ins {
    display: block;
}

/* ---------------- Footer ---------------- */
.site-footer {
    margin-top: 40px;
    padding: 56px 0 32px;
    background: var(--ink);
    color: var(--paper);
}

.site-footer .logo {
    color: var(--paper);
}

.site-footer .logo-mark {
    background: transparent;
    border-color: rgba(248, 245, 239, 0.4);
    color: var(--paper);
}

.site-footer .logo em {
    color: #d98a5d;
    border-left-color: rgba(248, 245, 239, 0.22);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 44px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(248, 245, 239, 0.62);
    font-size: 14.5px;
    margin-top: 18px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(248, 245, 239, 0.45);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: rgba(248, 245, 239, 0.72);
    font-size: 14.5px;
    padding: 5px 0;
    transition: color 0.18s;
}

.footer-col a:hover {
    color: #e8a173;
}

.footer-bottom {
    border-top: 1px solid rgba(248, 245, 239, 0.16);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 9.5px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(248, 245, 239, 0.45);
}

.footer-bottom .official {
    color: #e8a173;
}

/* ---------------- Cookie bar ---------------- */
.cookie-bar {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 22px;
    z-index: 200;
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--ink);
    box-shadow: 0 18px 44px rgba(22, 19, 15, 0.18);
    font-size: 13.5px;
    color: var(--ink-2);
    transform: translateY(160%);
    transition: transform 0.42s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.cookie-bar.show {
    transform: translateY(0);
}

.cookie-bar .btn {
    flex-shrink: 0;
    padding: 10px 18px;
    font-size: 10px;
}

/* ---------------- Legal / support pages ---------------- */
.page-hero {
    padding: 74px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    margin-bottom: 44px;
}

.page-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(30px, 4.4vw, 50px);
    font-weight: 500;
    letter-spacing: -0.6px;
    margin-bottom: 14px;
}

.page-hero p {
    color: var(--ink-3);
    font-size: 16px;
    max-width: 620px;
    margin: 0 auto;
}

.page-body {
    max-width: 820px;
    margin: 0 auto 80px;
    padding: 44px 48px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
}

.page-body h2 {
    font-family: var(--font-head);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.2px;
    margin: 36px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-soft);
}

.page-body h2:first-child {
    margin-top: 0;
}

.page-body p,
.page-body li {
    color: var(--ink-2);
    font-size: 15.5px;
    margin-bottom: 10px;
}

.page-body b {
    color: var(--ink);
    font-weight: 600;
}

.page-body ul {
    padding-left: 20px;
}

.page-body a {
    color: var(--accent);
    border-bottom: 1px solid rgba(184, 69, 44, 0.35);
}

.page-body a:hover {
    border-bottom-color: var(--accent);
}

.support-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 44px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.support-card {
    padding: 30px 24px;
    background: transparent;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
    transition: background 0.2s ease;
}

.support-card:hover {
    background: var(--paper-2);
}

.support-card .icon {
    font-size: 26px;
    margin-bottom: 14px;
}

.support-card h3 {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.1px;
    margin-bottom: 10px;
}

.support-card p {
    color: var(--ink-2);
    font-size: 14px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 920px) {
    .nav-menu {
        position: fixed;
        inset: 78px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px 24px 22px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        transform: translateY(-130%);
        transition: transform 0.28s ease;
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-menu a {
        padding: 14px 4px;
        font-size: 11.5px;
        border-bottom: 1px solid var(--line-soft);
    }

    .nav-menu a.active {
        border-bottom-color: var(--accent);
    }

    .nav-burger {
        display: grid;
        place-items: center;
    }

    .hero {
        padding: 68px 0 62px;
    }

    .hero-stats {
        margin-top: 48px;
        padding-top: 28px;
    }

    .stat {
        min-width: 140px;
        padding: 0 18px;
        margin-bottom: 12px;
    }

    .features-grid,
    .support-cards {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .support-card {
        border-left: 0;
    }

    .features-grid {
        border-left: 1px solid var(--line);
        border-right: 1px solid var(--line);
    }

    .about-wrap {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-cover {
        position: static;
    }

    .spec-table {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .search-box,
    .search-box input,
    .search-box input:focus {
        width: 100%;
    }

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-cta .btn {
        display: none;
    }

    .play-stage {
        aspect-ratio: 4 / 3;
    }

    .page-body {
        padding: 28px 22px;
    }

    .hero h1 {
        letter-spacing: -0.3px;
    }

    .stat {
        border-left: 0;
        min-width: 45%;
    }

    .cookie-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
