:root {
    --ink: #171510;
    --muted: #6e675d;
    --paper: #fffdfa;
    --wash: #f3efe7;
    --line: #ded5c7;
    --accent: #aa2c1a;
    --accent-2: #b89148;
    --dark: #171510;
    --shadow: 0 18px 50px rgba(35, 27, 17, .12);
    --content: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--wash); }
body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(circle at 12% -8%, rgba(184, 145, 72, .2), transparent 34rem),
        linear-gradient(180deg, #faf7f0, var(--wash));
    color: var(--ink);
    font-family: "Noto Sans JP", "Noto Sans TC", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body[data-theme="sangokushi"] {
    --accent: #9f2f28;
    --accent-2: #b98b44;
    --dark: #101722;
    background:
        radial-gradient(circle at 84% -10%, rgba(44, 72, 94, .2), transparent 35rem),
        linear-gradient(180deg, #f7f5ef, #edf0ef);
}
a { color: inherit; text-underline-offset: .18em; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; transform: translateY(-160%); padding: .7rem 1rem; border-radius: .6rem; background: var(--dark); color: white; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; z-index: 30; top: 0; padding-top: env(safe-area-inset-top); border-bottom: 1px solid rgba(222, 213, 199, .85); background: rgba(255, 253, 250, .9); backdrop-filter: blur(18px); }
.site-header-inner { display: flex; align-items: center; gap: 1rem; width: min(calc(100% - 2rem), var(--content)); min-height: 4rem; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: .7rem; min-width: 0; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: .6rem; background: var(--dark); color: #f6dfaa; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-family: "Noto Serif JP", "Noto Serif TC", serif; font-size: 1rem; letter-spacing: .08em; }
.brand-copy small { overflow: hidden; max-width: 16rem; margin-top: .24rem; color: var(--muted); font-size: .62rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.desktop-nav { display: flex; gap: .2rem; margin-left: auto; }
.desktop-nav a { padding: .55rem .72rem; border-radius: .55rem; color: var(--muted); font-size: .76rem; font-weight: 800; text-decoration: none; }
.desktop-nav a:hover { background: #eee8de; color: var(--ink); }
.language-switch { display: inline-flex; align-items: center; justify-content: center; min-height: 2.35rem; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .72rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
main { min-height: 60vh; }
.page-shell { width: min(calc(100% - 2rem), var(--content)); margin: 1rem auto 0; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(17rem, .75fr); min-height: 32rem; overflow: hidden; border-radius: 1.35rem; background: var(--dark); color: white; box-shadow: var(--shadow); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 22%, rgba(184,145,72,.34), transparent 19rem), linear-gradient(120deg, transparent 0 58%, rgba(255,255,255,.04) 58% 59%, transparent 59%); }
.hero-copy { position: relative; z-index: 1; align-self: center; padding: clamp(2rem, 6vw, 5rem); }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0; color: #e4c889; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 2.3rem; height: 2px; background: var(--accent); }
.hero h1 { max-width: 13em; margin: 1rem 0; font-family: "Noto Serif JP", "Noto Serif TC", serif; font-size: clamp(2.2rem, 5.8vw, 4.3rem); line-height: 1.14; letter-spacing: -.045em; }
.hero-summary { max-width: 42rem; margin: 0; color: #d8d3ca; font-size: .96rem; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0 1.15rem; border-radius: .65rem; background: var(--accent); color: white; font-size: .78rem; font-weight: 800; text-decoration: none; }
.button.secondary { border: 1px solid rgba(255,255,255,.23); background: rgba(255,255,255,.08); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 20rem; }
.emblem { position: relative; display: grid; place-items: center; width: min(72%, 18rem); aspect-ratio: 1; border: 1px solid rgba(232,204,143,.35); border-radius: 50%; color: #e4c889; font-family: "Noto Serif JP", "Noto Serif TC", serif; font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 900; box-shadow: inset 0 0 0 1.2rem rgba(255,255,255,.025), 0 0 0 3rem rgba(255,255,255,.018); }
.emblem::after { content: ""; position: absolute; width: 135%; height: 1px; background: linear-gradient(90deg, transparent, rgba(232,204,143,.5), transparent); transform: rotate(-35deg); }
.quick-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1rem 0 3rem; }
.quick-link { display: grid; gap: .25rem; min-height: 5rem; padding: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: rgba(255,253,250,.92); text-decoration: none; box-shadow: 0 6px 22px rgba(35,27,17,.04); }
.quick-link strong { font-size: .84rem; }
.quick-link span { color: var(--muted); font-size: .68rem; line-height: 1.45; }
.section { margin: 4rem 0; scroll-margin-top: 5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.25rem; }
.section-heading h2 { margin: 0; font-family: "Noto Serif JP", "Noto Serif TC", serif; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.035em; }
.section-heading p { max-width: 38rem; margin: .45rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.75; }
.section-tag { flex: 0 0 auto; color: var(--accent); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.game-grid, .article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.game-card, .article-card, .content-panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 8px 25px rgba(35,27,17,.055); }
.game-card { display: grid; min-height: 18rem; padding: 1.5rem; text-decoration: none; }
.game-card::after { content: attr(data-mark); position: absolute; right: -.5rem; bottom: -2.7rem; color: rgba(23,21,16,.055); font-family: "Noto Serif JP", "Noto Serif TC", serif; font-size: 10rem; font-weight: 900; }
.game-card small { color: var(--accent); font-size: .66rem; font-weight: 900; letter-spacing: .12em; }
.game-card h3 { max-width: 11em; margin: .7rem 0; font-family: "Noto Serif JP", "Noto Serif TC", serif; font-size: 1.65rem; }
.game-card p { max-width: 34rem; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.8; }
.game-card span { align-self: end; font-size: .76rem; font-weight: 900; }
.article-grid { grid-template-columns: repeat(3, 1fr); }
.article-card { padding: 1.35rem; }
.article-card .meta { color: var(--accent); font-size: .64rem; font-weight: 900; letter-spacing: .09em; }
.article-card h3 { margin: .7rem 0; font-family: "Noto Serif JP", "Noto Serif TC", serif; font-size: 1.1rem; line-height: 1.5; }
.article-card p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.78; }
.feature-story { display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; border-radius: 1.1rem; background: var(--dark); color: white; box-shadow: var(--shadow); }
.feature-art { min-height: 24rem; background: radial-gradient(circle at 50% 42%, rgba(184,145,72,.4), transparent 8rem), repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,.03) 18px 19px); }
.feature-copy { align-self: center; padding: clamp(1.8rem, 5vw, 4rem); }
.feature-copy h3 { margin: .8rem 0 1rem; font-family: "Noto Serif JP", "Noto Serif TC", serif; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.35; }
.feature-copy p { color: #d8d3ca; font-size: .84rem; line-height: 1.9; }
.prose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.content-panel { padding: 1.4rem; }
.content-panel b { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #efe8dc; color: var(--accent); font-size: .78rem; }
.content-panel h3 { margin: .8rem 0 .55rem; font-family: "Noto Serif JP", "Noto Serif TC", serif; font-size: 1rem; }
.content-panel p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.8; }
.site-footer { margin-top: 5rem; padding: 2.8rem max(1rem, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)); border-top: 3px solid var(--accent); background: var(--dark); color: #d8d3ca; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; width: min(100%, var(--content)); margin: 0 auto; }
.footer-inner strong { color: white; font-family: "Noto Serif JP", serif; font-size: 1.3rem; }
.footer-inner p { max-width: 37rem; margin: .5rem 0 0; font-size: .75rem; line-height: 1.7; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 1rem; }
.footer-inner nav a { font-size: .72rem; font-weight: 800; text-decoration: none; }
.legal { width: min(100%, var(--content)); margin: 1.5rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); color: #8d877e; font-size: .64rem; }

@media (max-width: 820px) {
    .site-header-inner { width: min(calc(100% - 1.25rem), var(--content)); min-height: 3.7rem; }
    .brand-copy small { max-width: 9rem; }
    .desktop-nav { display: none; }
    .language-switch { margin-left: auto; }
    .page-shell { width: min(calc(100% - 1rem), var(--content)); margin-top: .5rem; }
    .hero { grid-template-columns: 1fr; min-height: auto; border-radius: 1rem; }
    .hero-copy { padding: 1.65rem 1.25rem 1.3rem; }
    .hero h1 { max-width: 12em; margin: .75rem 0; font-size: clamp(2rem, 11vw, 3.3rem); }
    .hero-summary { display: -webkit-box; overflow: hidden; font-size: .82rem; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
    .hero-actions { margin-top: 1.15rem; }
    .button { min-height: 2.7rem; }
    .hero-visual { min-height: 10.5rem; }
    .emblem { width: 8.7rem; font-size: 3.5rem; }
    .quick-strip { grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: .55rem 0 2.5rem; }
    .quick-link { min-height: 4.3rem; padding: .78rem; }
    .section { margin: 3rem 0; }
    .section-heading { align-items: start; }
    .game-grid, .article-grid, .prose-grid { grid-template-columns: 1fr; }
    .game-card { min-height: 14rem; }
    .feature-story { grid-template-columns: 1fr; }
    .feature-art { min-height: 10rem; }
    .feature-copy { padding: 1.5rem; }
    .footer-inner { flex-direction: column; }
    .footer-inner nav { justify-content: start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
