:root {
    --red: #7a1515;
    --red-deep: #4a0c0c;
    --gold: #c9a227;
    --gold-soft: #e8d5a3;
    --ink: #1a1612;
    --muted: #5c5448;
    --bg: #f1ebe0;
    --paper: #fbf7ef;
    --line: #e2d6c2;
    --card: #fffdf8;
    --shadow: 0 10px 28px rgba(74, 12, 12, 0.06);
    --radius: 14px;
    --header: 84px;
    --max: 1180px;
    --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
    --dock: 62px;
}

* { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(1200px 400px at 50% -80px, rgba(201, 162, 39, 0.12), transparent 60%),
        var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }
.sr-only, .skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 40; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.mast {
    margin: 0;
    background: linear-gradient(90deg, #2c0909, #7a1515 42%, #2c0909);
    color: var(--gold-soft);
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.32em;
    padding: 8px 12px;
    border-bottom: 1px solid var(--gold);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 253, 248, 0.97);
    border-bottom: 3px solid var(--red);
    box-shadow: inset 0 -1px 0 var(--gold), 0 8px 24px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
}
.header-bar {
    min-height: var(--header);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    border: 2px solid var(--gold);
    padding: 3px;
    flex: 0 0 64px;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--red);
}
.brand strong { display: block; font-family: var(--serif); font-size: 22px; letter-spacing: 0.12em; }
.brand small { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.14em; }

.search-box {
    display: flex;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.search-box input { border: 0; padding: 10px 16px; width: min(240px, 34vw); background: transparent; font: inherit; }
.search-box button { border: 0; background: var(--red); color: var(--gold-soft); padding: 10px 18px; font: inherit; letter-spacing: 0.12em; }
.menu-toggle { display: none; border: 1px solid var(--gold); background: #fff; color: var(--red); border-radius: 8px; padding: 8px 14px; letter-spacing: 0.12em; }

.site-nav { background: var(--red); }
.nav-row { display: flex; gap: 0; }
.site-nav .nav {
    color: #f6ead0;
    padding: 12px 16px;
    text-decoration: none;
    letter-spacing: 0.08em;
    border-bottom: 3px solid transparent;
}
.site-nav .nav.is-active, .site-nav .nav:hover {
    background: var(--red-deep);
    color: var(--gold-soft);
    border-bottom-color: var(--gold);
    text-decoration: none;
}

.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--gold);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media figure, .hero-media picture { margin: 0; height: 100%; width: 100%; }
.hero-media img, .hero-media picture { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.hero-photo img { aspect-ratio: auto; border-radius: 0; height: 100%; object-position: center center; }
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(26, 22, 18, 0.82) 0%, rgba(26, 22, 18, 0.55) 46%, rgba(26, 22, 18, 0.18) 100%),
        linear-gradient(180deg, rgba(122, 21, 21, 0.25), transparent 40%);
}
.hero-copy { position: relative; z-index: 1; padding: 64px 0; color: #f8f1e4; }
.hero-kicker { color: var(--gold); letter-spacing: 0.28em; font-size: 13px; margin: 0 0 12px; }
.hero h1 { font-family: var(--serif); font-size: clamp(36px, 6vw, 60px); margin: 0 0 10px; letter-spacing: 0.14em; }
.hero .sub { font-size: 20px; margin: 0 0 14px; color: var(--gold-soft); }
.hero .lead { max-width: 36em; color: #ddd3c4; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 4px;
    border: 1px solid transparent;
    font: inherit;
    letter-spacing: 0.08em;
    text-decoration: none;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-gold { background: var(--gold); color: #2c0909; }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.hero .btn-ghost { color: #f8f1e4; border-color: var(--gold); }
.btn:hover { text-decoration: none; opacity: 0.94; }

.content-photo { margin: 0 0 18px; }
.content-photo img { width: 100%; border-radius: 8px; display: block; aspect-ratio: 16/9; object-fit: cover; object-position: center center; background: #efe7db; }
.content-photo figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; letter-spacing: 0.06em; }
.card .content-photo { margin: 0 0 12px; }
.card .content-photo img { aspect-ratio: 4/3; }

.section { padding: 56px 0; }
.section-band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 22px; }
.section-head h2, .section h2 {
    font-family: var(--serif);
    font-size: 28px;
    margin: 0 0 8px;
    letter-spacing: 0.08em;
}
.section .intro, .channel-head .intro { color: var(--muted); margin: 0 0 8px; max-width: 42em; }
.section-more { margin: 22px 0 0; }
.stack { margin-bottom: 28px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card-row { margin-bottom: 12px; }
.card-link { margin-top: 8px; }
.related-search { margin: 28px 0 8px; padding: 16px 18px; background: #fffdf8; border: 1px solid var(--gold); }
.related-search h2 { margin: 0 0 10px; font-size: 18px; letter-spacing: 0.06em; }
.related-search p { margin: 0; line-height: 2; }
.related-search a { display: inline-block; margin: 0 16px 0 0; }

.gates { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gate {
    display: block;
    padding: 0 0 22px;
    background: linear-gradient(180deg, #fffdf8, #f7efe3);
    border: 1px solid var(--gold);
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}
.gate .content-photo { margin: 0 0 16px; }
.gate .content-photo img { border-radius: 0; aspect-ratio: 16/9; }
.gate em, .gate h2, .gate p { display: block; padding: 0 24px; }
.gate em { color: var(--gold); font-style: normal; letter-spacing: 0.2em; }
.gate h2 { margin: 6px 0 8px; font-family: var(--serif); font-size: 28px; padding-left: 24px; padding-right: 24px; }
.gate p { margin: 0; color: var(--muted); }
.gate:hover { border-color: var(--red); text-decoration: none; }

.facts-stage { position: relative; margin-bottom: 18px; }
.facts-stage .content-photo { margin: 0; }
.facts-stage .content-photo img { aspect-ratio: 16/9; border-radius: 10px; }
.facts-pins {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.pin {
    position: absolute;
    min-width: 92px;
    padding: 8px 12px;
    background: rgba(255, 253, 248, 0.94);
    border: 1px solid var(--gold);
    box-shadow: 0 6px 16px rgba(26, 22, 18, 0.12);
    color: var(--ink);
    text-align: center;
}
.pin b { display: block; font-family: var(--serif); color: var(--red); font-size: 16px; }
.pin span { display: block; color: var(--muted); font-size: 12px; }
.pin-n { top: 16%; left: 50%; transform: translateX(-50%); }
.pin-c { top: 46%; left: 50%; transform: translate(-50%, -50%); }
.pin-w { top: 42%; left: 6%; }
.pin-e { top: 42%; right: 6%; }
.pin-s { bottom: 14%; left: 50%; transform: translateX(-50%); }

.grid-6, .grid-4, .grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-6 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.card h2, .card h3 { margin: 0 0 8px; font-size: 18px; font-family: var(--serif); }
.card p { margin: 0; color: var(--muted); }
.card a.stretched { color: inherit; text-decoration: none; }
.card:hover { border-color: var(--gold); }
.card-entry { min-height: 128px; }

.facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.fact {
    text-align: center;
    padding: 24px 10px;
    background: var(--paper);
    border: 1px solid var(--gold-soft);
    border-radius: 8px;
}
.fact b { display: block; font-family: var(--serif); font-size: 28px; color: var(--red); }
.fact span { color: var(--muted); font-size: 13px; }

.channel-page { padding: 12px 0 56px; }
.channel-head { padding: 8px 0 18px; }
.channel-kicker { margin: 0 0 8px; color: var(--gold); letter-spacing: 0.28em; font-size: 12px; }
.channel-head h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; letter-spacing: 0.08em; }
.lead-answer {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink);
    max-width: 44em;
    border-left: 3px solid var(--gold);
    padding: 4px 0 4px 14px;
    margin: 0 0 12px;
}
.channel-meta { color: var(--muted); font-size: 14px; margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 32px; }
.cat-card {
    display: block;
    padding: 18px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}
.cat-card h2 { margin: 0 0 6px; font-size: 18px; font-family: var(--serif); }
.cat-card p { margin: 0; color: var(--muted); font-size: 13px; }
.cat-card:hover { border-color: var(--gold); text-decoration: none; }

.crumb { padding: 18px 0 0; color: var(--muted); font-size: 14px; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; padding: 24px 0 48px; }
.article-body { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.article-body h1 { font-family: var(--serif); margin: 0 0 10px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.article-body h2 { font-size: 22px; margin: 28px 0 10px; }
.cite-box {
    margin-top: 28px;
    padding: 12px 14px;
    background: #f8f1e8;
    border-left: 3px solid var(--gold);
    color: var(--muted);
    font-size: 14px;
}
.source-line { color: var(--muted); font-size: 13px; }
.side .card { margin-bottom: 16px; }
.side a { display: block; padding: 6px 0; }

.rule-index { padding: 20px 0 48px; }
.rule-group { margin-bottom: 28px; }
.rule-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rule-list a { display: flex; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.rule-list em { color: var(--gold); font-style: normal; width: 2.2em; font-family: var(--serif); }
.rule-list small { color: var(--muted); }

.poker-hand { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.poker-card {
    width: 52px;
    height: 72px;
    border-radius: 6px;
    border: 1px solid #d7d1c6;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 6px;
    box-shadow: 0 2px 0 rgba(0,0,0,.04);
    font-family: Georgia, serif;
}
.poker-card b, .poker-card em { font-size: 16px; line-height: 1; }
.poker-card i, .poker-card small { font-style: normal; font-size: 16px; }
.poker-card.is-red { color: #c0392b; }
.poker-card.is-black { color: #1c1917; }
.poker-card.is-joker { align-items: center; justify-content: center; gap: 2px; }

.ladder { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ladder-item {
    min-width: min(360px, 100%);
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
}
.ladder-item.is-top { background: var(--red); color: #fff; border-color: var(--red); }
.ladder-arrow { color: var(--gold); }

.status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #f3ebe3; }
.status-open { background: #e8f4ea; color: #1f6b34; }
.status-live { background: #fde8e8; color: var(--red); }
.status-upcoming { background: #eef2f8; }
.status-ended { background: #eee; color: #666; }

.latest-block { padding: 28px 0; border-top: 1px solid var(--line); background: var(--paper); }
.latest-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; padding-left: 20px; }
.latest-list .art { color: var(--ink); }

.site-footer {
    position: relative;
    color: #e8dfd2;
    isolation: isolate;
    background:
        linear-gradient(var(--gold), var(--gold)) top / 100% 3px no-repeat,
        radial-gradient(920px 240px at 18% 0%, rgba(201, 162, 39, 0.16), transparent 62%),
        linear-gradient(180deg, #2c1612 0%, #16100e 48%, #0f0b09 100%);
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.045;
    background-image: repeating-linear-gradient(-18deg, #c9a227 0 1px, transparent 1px 18px);
}
.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color: #fff; }
.footer-shell { padding: 44px 0 28px; }
.footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.7fr);
    gap: 40px 56px;
    align-items: start;
    padding-bottom: 32px;
}
.footer-aside {
    padding-right: 8px;
    border-right: 1px solid rgba(201, 162, 39, 0.22);
}
.footer-mark {
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}
.footer-mark img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
    border: 2px solid var(--gold);
    flex: 0 0 72px;
}
.footer-mark strong { display: block; font-family: var(--serif); font-size: 22px; color: #fff; letter-spacing: 0.1em; }
.footer-mark small { display: block; margin-top: 4px; color: var(--gold-soft); letter-spacing: 0.16em; font-size: 12px; }
.footer-lead { margin: 16px 0 22px; color: #c8b9a6; line-height: 1.85; }
.footer-aside h2, .footer-links h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--gold);
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: 0.18em;
}
.footer-aside h2::after, .footer-links h2::after {
    content: "";
    width: 28px;
    height: 1px;
    background: rgba(201, 162, 39, 0.55);
}
.footer-contact { margin: 0 0 22px; }
.footer-contact > div {
    display: grid;
    grid-template-columns: 3em 1fr;
    gap: 10px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid rgba(243, 234, 220, 0.08);
}
.footer-contact dt { color: #8f8578; font-size: 12px; letter-spacing: 0.12em; }
.footer-contact dd { margin: 0; color: #f3eadc; }
.footer-navs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 28px;
}
.footer-highlights {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}
.footer-highlight {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 78px;
    padding: 14px 16px;
    border: 1px solid rgba(201, 162, 39, 0.32);
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.1), rgba(201, 162, 39, 0.02));
    color: #fff;
    text-decoration: none;
}
.footer-highlight span {
    font-family: var(--serif);
    font-size: 18px;
    letter-spacing: 0.12em;
}
.footer-highlight small {
    margin-top: 6px;
    color: #c8b9a6;
    font-size: 12px;
    letter-spacing: 0.04em;
}
.footer-highlight:hover {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.16);
    color: #fff;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    text-decoration: none;
    color: #e4d8c4;
    transition: color 0.18s ease, transform 0.18s ease;
}
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-friends { margin-top: 4px; }
.footer-friends ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-friends .flink {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(201, 162, 39, 0.38);
    background: rgba(201, 162, 39, 0.06);
    color: var(--gold-soft);
    text-decoration: none;
}
.footer-friends .flink:hover { background: rgba(201, 162, 39, 0.16); color: #fff; }
.footer-note {
    border-top: 1px solid rgba(201, 162, 39, 0.22);
    padding-top: 16px;
    color: #8f8578;
    font-size: 12px;
    line-height: 1.75;
}
.footer-note p { margin: 0 0 6px; }
.footer-note p:last-child { margin-bottom: 0; }
.footer-logo { margin: 0; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 22px; }
.filters a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.filters a.is-on { background: var(--red); color: #fff; border-color: var(--red); }

.dock { display: none; }

.admin-body { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: #1c1917; color: #eee; padding: 20px 16px; }
.admin-side a { display: block; color: #f0d9a6; padding: 8px 0; }
.admin-main { padding: 24px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.admin-form label { display: block; margin: 12px 0 4px; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.admin-form textarea { min-height: 180px; }
.flash { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.flash-ok { background: #e8f4ea; }
.flash-error { background: #fde8e8; }
.login-wrap { max-width: 380px; margin: 10vh auto; }

@media (max-width: 1024px) {
    .grid-6, .grid-4, .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    body { padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom)); }
    .mast { letter-spacing: 0.12em; font-size: 11px; }
    .brand strong { font-size: 18px; letter-spacing: 0.06em; }
    .brand img { width: 48px; height: 48px; flex-basis: 48px; }
    .grid-6, .grid-4, .grid-3, .grid-2, .facts, .article, .latest-list, .admin-body, .gates, .split, .cat-grid, .footer-main {
        grid-template-columns: 1fr;
    }
    .footer-shell { padding: 28px 0 20px; }
    .footer-aside { padding-right: 0; border-right: 0; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid rgba(201, 162, 39, 0.2); }
    .footer-contact > div { grid-template-columns: 1fr; gap: 2px; padding: 8px 0; }
    .footer-navs { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
    .footer-highlight { min-height: 68px; padding: 12px 12px; }
    .footer-highlight span { font-size: 16px; letter-spacing: 0.08em; }
    .footer-links:last-child { grid-column: 1 / -1; }
    .footer-mark strong { font-size: 18px; }
    .footer-lead { margin-bottom: 18px; }
    .menu-toggle { display: inline-flex; margin-left: auto; min-height: 44px; }
    .search-box { order: 3; width: 100%; margin-left: 0; }
    .search-box input { width: 100%; }
    .site-nav { display: none; }
    .site-nav.is-open { display: block; }
    .nav-row { flex-direction: column; padding-bottom: 8px; }
    .site-nav .nav { min-height: 44px; display: flex; align-items: center; }
    .search-box button, .menu-toggle { min-height: 44px; min-width: 44px; }
    .article { padding: 16px 0 36px; }
    .article-body { padding: 18px; }
    .hero {
        min-height: 440px;
        align-items: flex-end;
    }
    .hero-media::after {
        background:
            linear-gradient(180deg, rgba(26, 22, 18, 0.2) 0%, rgba(26, 22, 18, 0.62) 42%, rgba(26, 22, 18, 0.9) 100%);
    }
    .hero-copy { padding: 28px 0 32px; }
    .hero h1 { font-size: 28px; letter-spacing: 0.08em; }
    .hero .sub { font-size: 16px; }
    .hero .lead { font-size: 14px; }
    .hero-actions { margin-top: 18px; }
    .gate .content-photo img { aspect-ratio: 16 / 10; }
    .facts-stage .content-photo img { aspect-ratio: 4 / 3; }
    .card .content-photo img { aspect-ratio: 16 / 10; }
    .facts { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 36px 0; }
    .gate { min-height: 0; }
    .facts-pins { display: none; }
    .dock {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        background: #1a1210;
        border-top: 1px solid var(--gold);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .dock a {
        color: #d8cbb8;
        text-align: center;
        padding: 10px 4px 8px;
        font-size: 12px;
        text-decoration: none;
        min-height: var(--dock);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .dock a.is-on { color: var(--gold); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
