:root {
    --bg: #f4eadb;
    --bg-soft: #efe2d0;
    --paper: rgba(255, 248, 238, 0.74);
    --paper-strong: rgba(255, 248, 238, 0.92);
    --ink: #281816;
    --ink-soft: #5f433b;
    --line: rgba(70, 36, 31, 0.12);
    --red: #b83d2a;
    --red-deep: #8f291d;
    --gold: #b7842b;
    --green: #446a42;
    --blue: #3f6273;
    --orange: #bc6731;
    --shadow: 0 24px 70px rgba(76, 40, 25, 0.14);
    --shadow-soft: 0 18px 35px rgba(76, 40, 25, 0.1);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --max-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: light dark;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(184, 61, 42, 0.16), transparent 24rem),
        radial-gradient(circle at 85% 12%, rgba(183, 132, 43, 0.14), transparent 22rem),
        linear-gradient(180deg, #f6ecde 0%, #f2e3cf 48%, #ead8c0 100%);
    font-family: "Huiwen-mincho", "KingHwa_OldSong", "STSong", serif;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
        repeating-linear-gradient(90deg, rgba(120, 74, 55, 0.04) 0, rgba(120, 74, 55, 0.04) 1px, transparent 1px, transparent 28px);
    mix-blend-mode: multiply;
    opacity: 0.7;
}

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

.page-shell {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    padding: 20px 0 56px;
    position: relative;
}

.site-header {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
    padding: 14px 18px;
    background: rgba(255, 245, 233, 0.78);
    border: 1px solid rgba(86, 44, 33, 0.1);
    border-radius: 999px;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
    animation: headerFloatIn 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-stamp {
    font-size: 0.86rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red);
}

.brand-copy {
    font-size: 0.94rem;
    color: var(--ink-soft);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a,
.hero-strip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    color: var(--ink-soft);
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.hero-strip a:hover,
.hero-strip a:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 248, 238, 0.92);
    color: var(--ink);
    outline: none;
}

.site-nav .nav-cta {
    background: var(--ink);
    color: #f6eede;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
    gap: clamp(28px, 4vw, 54px);
    align-items: center;
    min-height: calc(100vh - 170px);
    padding: 18px 0 32px;
}

.hero-copy {
    animation: heroCopyIn 820ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--red);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.hero h1,
.section-head h2,
.cta-panel h2 {
    margin: 0;
    line-height: 0.95;
    font-family: "KingHwa_OldSong", "Huiwen-mincho", serif;
}

.hero h1 {
    font-size: clamp(2.7rem, 5.6vw, 4.8rem);
    max-width: none;
    display: inline-flex;
    align-items: baseline;
    gap: 0.18em;
}

.hero h1 span {
    color: var(--red);
}

.hero-text,
.section-note,
.mode-card p,
.feature-card p,
.role-chip em,
.role-panel-card p,
.cta-panel p,
.battle-card p {
    font-size: clamp(0.98rem, 1.3vw, 1.05rem);
    line-height: 1.75;
    color: var(--ink-soft);
}

.hero-text {
    max-width: 28ch;
    margin: 18px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.98rem;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(95, 44, 30, 0.16);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
    color: #fbf2e7;
}

.btn-hero-enter {
    min-height: 62px;
    padding-inline: 34px;
    font-size: 1.08rem;
    box-shadow: 0 16px 34px rgba(143, 41, 29, 0.2);
}

.btn-secondary {
    background: rgba(255, 248, 238, 0.78);
    border-color: rgba(92, 52, 40, 0.14);
    color: var(--ink);
}

.hero-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-strip a {
    background: rgba(255, 248, 238, 0.66);
    border: 1px solid rgba(94, 55, 40, 0.12);
}

.hero-stage {
    position: relative;
    min-height: 620px;
    animation: heroStageIn 980ms cubic-bezier(0.2, 1, 0.28, 1) both;
}

.stage-card,
.stage-note,
.mode-card,
.feature-card,
.role-chip,
.role-panel-card,
.cta-panel,
.battle-card {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.stage-card-main {
    position: absolute;
    inset: 34px 10px 62px 40px;
    padding: 20px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.92), rgba(248, 236, 220, 0.78)), var(--paper);
    transform: rotate(-2.4deg);
    animation: stageTiltIn 1100ms cubic-bezier(0.2, 1, 0.28, 1) both;
}

.stage-card-top,
.poster-meta,
.poster-scorebar,
.poster-achievement-row,
.shot-caption,
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stage-card-top {
    margin-bottom: 16px;
}

.chip,
.poster-badge,
.poster-tag,
.poster-chip-row span,
.stamp,
.cta-stamp,
.mini-label,
.feature-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.76rem;
}

.chip-hot {
    color: #fff4ee;
    background: color-mix(in srgb, var(--red) 84%, black 10%);
}

.chip-seed,
.poster-tag,
.mini-label {
    color: var(--ink-soft);
    background: rgba(40, 24, 22, 0.08);
}

.poster-badge,
.feature-kicker {
    background: rgba(184, 61, 42, 0.12);
    color: var(--red-deep);
}

.poster-wall {
    display: grid;
    gap: 14px;
    overflow: hidden;
}

.poster-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
    gap: 14px;
}

.poster-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(76, 40, 25, 0.14);
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(241, 222, 199, 0.92));
    cursor: pointer;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms ease;
}

.poster-card:hover,
.poster-card:focus-visible,
.mode-card:hover,
.mode-card:focus-visible,
.feature-card:hover,
.feature-card:focus-visible,
.role-chip:hover,
.role-chip:focus-visible {
    transform: translateY(-8px) rotate(-0.6deg);
    box-shadow: 0 26px 54px rgba(76, 40, 25, 0.2);
    border-color: rgba(120, 51, 35, 0.22);
    outline: none;
}

.poster-card,
.mode-card {
    background:
        linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(241, 222, 199, 0.92));
}

.poster-card-main {
    min-height: 356px;
    padding: 18px;
    display: grid;
    gap: 14px;
    animation: posterPop 1050ms cubic-bezier(0.2, 1, 0.28, 1) both;
}

.poster-card-side {
    min-height: 170px;
    padding: 16px;
    display: grid;
    gap: 12px;
}

.poster-card-side:nth-child(2) {
    animation: posterPop 1180ms cubic-bezier(0.2, 1, 0.28, 1) both;
}

.poster-card-side:nth-child(3) {
    animation: posterPop 1280ms cubic-bezier(0.2, 1, 0.28, 1) both;
}

.poster-score {
    flex: 1;
    min-height: 72px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 248, 239, 0.78);
}

.poster-score span {
    display: block;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.poster-score strong {
    font-size: 2rem;
    line-height: 1;
}

.poster-score-ai {
    text-align: right;
}

.poster-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.poster-tile {
    aspect-ratio: 1;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(84, 39, 28, 0.1);
    background: linear-gradient(145deg, rgba(255, 251, 245, 0.96), rgba(240, 220, 195, 0.96));
}

.poster-tile.hidden::before {
    content: "?";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    color: rgba(77, 40, 30, 0.18);
}

.poster-tile.reveal::before {
    position: absolute;
    inset: auto 10px 10px auto;
    font-size: 1.5rem;
}

.poster-tile.reveal::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 12px;
    border: 1px dashed rgba(95, 44, 30, 0.22);
}

.poster-tile.chili::before { content: "🌶️"; }
.poster-tile.fish::before { content: "🐟"; }
.poster-tile.lemon::before { content: "🍋"; }

.poster-log {
    display: grid;
    gap: 8px;
}

.poster-log p {
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 248, 239, 0.8);
    color: var(--ink-soft);
    border-left: 3px solid rgba(184, 61, 42, 0.34);
}

.stamp {
    background: rgba(255, 248, 238, 0.8);
    border: 1px solid rgba(76, 40, 25, 0.1);
}

.stamp-win {
    background: rgba(184, 61, 42, 0.14);
    color: var(--red-deep);
}

.poster-trend {
    display: grid;
    gap: 10px;
}

.trend-label,
.shot-caption span {
    font-size: 0.86rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.trend-chart {
    position: relative;
    height: 68px;
    border-radius: 18px;
    background: rgba(255, 248, 238, 0.7);
    overflow: hidden;
}

.trend-line,
.trend-node {
    position: absolute;
}

.trend-line {
    inset: auto 10px 16px 10px;
    height: 2px;
    transform-origin: left center;
}

.trend-line-player {
    background: linear-gradient(90deg, rgba(184, 61, 42, 0.4), rgba(184, 61, 42, 0.9));
    width: 70%;
    transform: rotate(-8deg);
}

.trend-line-ai {
    background: linear-gradient(90deg, rgba(63, 98, 115, 0.4), rgba(63, 98, 115, 0.9));
    width: 74%;
    bottom: 28px;
    transform: rotate(6deg);
}

.trend-node {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.node-player { background: var(--red); }
.node-ai { background: var(--blue); }
.trend-node.n1 { left: 16px; bottom: 13px; }
.trend-node.n2 { left: 110px; bottom: 26px; }
.trend-node.n3 { right: 48px; bottom: 32px; }
.node-ai.n1 { left: 18px; bottom: 34px; }
.node-ai.n2 { left: 118px; bottom: 28px; }
.node-ai.n3 { right: 44px; bottom: 20px; }

.poster-strip-shot {
    align-self: end;
    display: grid;
    gap: 12px;
    min-height: 100%;
}

.poster-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.poster-chip-row span {
    background: rgba(255, 248, 238, 0.7);
    color: var(--ink-soft);
    border: 1px solid rgba(76, 40, 25, 0.12);
}

.poster-strip-shot strong,
.battle-card strong {
    font-size: 1.6rem;
    line-height: 1.06;
    font-family: "KingHwa_OldSong", "Huiwen-mincho", serif;
}

.tint-night {
    background: radial-gradient(circle at top right, rgba(183, 132, 43, 0.18), transparent 44%), linear-gradient(180deg, rgba(255, 251, 245, 0.94), rgba(240, 226, 204, 0.94));
}

.tint-fire {
    background: radial-gradient(circle at bottom left, rgba(184, 61, 42, 0.18), transparent 46%), linear-gradient(180deg, rgba(255, 251, 245, 0.94), rgba(239, 224, 205, 0.94));
}

.shot-caption strong {
    font-size: 0.98rem;
    color: var(--ink);
}

.stage-note {
    position: absolute;
    max-width: 230px;
    padding: 16px;
    border-radius: 24px;
}

.stage-note-left {
    top: 0;
    left: 0;
    animation: noteInLeft 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stage-note-right {
    right: 0;
    bottom: 16px;
    animation: noteInRight 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.note-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--red);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
}

.stage-note strong {
    display: block;
    font-size: 1.32rem;
    margin-bottom: 8px;
}

.stage-note p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 0.95rem;
}

.content-section {
    padding: clamp(34px, 6vw, 84px) 0;
}

.section-head {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.section-head h2,
.cta-panel h2 {
    font-size: clamp(1.9rem, 3vw, 3.1rem);
    max-width: 11ch;
}

.split {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    align-items: end;
    gap: 24px;
}

.mode-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mode-card,
.feature-card {
    min-height: 214px;
    display: grid;
    align-content: end;
    padding: 24px;
    border-radius: 26px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms ease;
}

.mode-card {
    border: 1px solid rgba(76, 40, 25, 0.14);
}

.mode-card::before,
.feature-card::before {
    content: "";
    position: absolute;
    inset: auto -22px -50px auto;
    width: 120px;
    aspect-ratio: 1;
    border-radius: 40% 60% 70% 30%;
    opacity: 0.2;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}

.tint-red::before { background: var(--red); }
.tint-gold::before { background: var(--gold); }
.tint-ink::before { background: var(--ink); }
.tint-green::before { background: var(--green); }
.tint-blue::before { background: var(--blue); }
.tint-orange::before { background: var(--orange); }
.mystery-mode::before { background: var(--blue); }
.accent-achievement::before { background: var(--gold); }
.accent-boss::before { background: var(--red); }
.accent-roster::before { background: var(--blue); }

.feature-card::before {
    opacity: 0.12;
}

.mode-card::after,
.feature-card::after {
    content: "ENTER";
    position: absolute;
    left: 24px;
    top: 22px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(40, 24, 22, 0.82);
    color: #fbf2e7;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.feature-card::after {
    content: none;
}

.mode-card:hover::before,
.mode-card:focus-visible::before,
.feature-card:hover::before,
.feature-card:focus-visible::before {
    opacity: 0.34;
    transform: scale(1.28) translate(-8px, -10px);
}

.mode-card:hover::after,
.mode-card:focus-visible::after,
.feature-card:hover::after,
.feature-card:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.mode-card h3,
.feature-card h3,
.role-chip strong {
    margin: 0 0 10px;
    font-size: 1.32rem;
}

.mode-card h3 {
    font-family: "KingHwa_OldSong", "Huiwen-mincho", serif;
    line-height: 1.02;
}

.mode-card p {
    max-width: 18ch;
}

.mode-emoji {
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 2rem;
    opacity: 0.86;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mystery-mode .mode-emoji {
    font-size: 2.2rem;
    color: var(--red-deep);
}

.mode-card:hover .mode-emoji,
.mode-card:focus-visible .mode-emoji {
    transform: scale(1.12) rotate(-8deg);
}

.feature-grid {
    grid-template-columns: 1.05fr 1fr 1fr;
}

.feature-card {
    min-height: 220px;
}

.feature-kicker {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 248, 238, 0.88);
    border: 1px solid rgba(76, 40, 25, 0.12);
}

.feature-card h3 {
    margin-top: 0;
}

.role-layout,
.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 22px;
}

.role-cloud {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.role-chip {
    min-height: 150px;
    padding: 20px;
    border-radius: 24px;
    display: grid;
    gap: 6px;
    align-content: start;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms ease;
}

.role-chip span {
    font-size: 1.9rem;
}

.role-chip em {
    font-style: normal;
}

.role-chip.big {
    grid-column: span 2;
    min-height: 180px;
    background: linear-gradient(145deg, rgba(184, 61, 42, 0.08), rgba(255, 248, 238, 0.9));
}

.role-chip.mystery {
    background: linear-gradient(145deg, rgba(40, 24, 22, 0.08), rgba(255, 248, 238, 0.9));
    border-style: dashed;
}

.role-chip.mystery span {
    font-size: 2.4rem;
    color: var(--red-deep);
}

.role-panel {
    display: grid;
    gap: 16px;
}

.quote-wall {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.quote-card {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 248, 238, 0.78);
    border: 1px solid rgba(76, 40, 25, 0.12);
    box-shadow: var(--shadow-soft);
    transform: rotate(-1.4deg);
}

.quote-card:nth-child(2) {
    transform: rotate(1.4deg) translateY(10px);
}

.quote-card:nth-child(3) {
    transform: rotate(-1deg) translateY(4px);
}

.quote-card p {
    margin: 14px 0 0;
    font-size: 1.04rem;
    line-height: 1.8;
    color: var(--ink);
}

.role-panel-card,
.battle-card {
    padding: 22px;
    border-radius: 26px;
}

.role-panel-card strong {
    display: block;
    margin: 12px 0 8px;
    font-size: 1.34rem;
}

.stats-card {
    background: linear-gradient(145deg, rgba(183, 132, 43, 0.12), rgba(255, 248, 238, 0.92));
}

.stat-row {
    padding: 12px 0;
    border-bottom: 1px solid rgba(76, 40, 25, 0.08);
}

.stat-row:last-child {
    border-bottom: 0;
}

.cta-block {
    padding-bottom: 28px;
}

.cta-panel {
    padding: clamp(28px, 6vw, 54px);
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(184, 61, 42, 0.12), rgba(255, 248, 238, 0.9) 40%, rgba(183, 132, 43, 0.12)), var(--paper-strong);
    position: relative;
    overflow: hidden;
}

.cta-copy p {
    max-width: 34ch;
    margin: 0;
}

.cta-side {
    display: grid;
    gap: 16px;
    align-content: start;
}

.cta-wall,
.echo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cta-stamp {
    min-height: 34px;
    padding-inline: 14px;
    background: rgba(255, 248, 238, 0.82);
    border: 1px solid rgba(76, 40, 25, 0.1);
    transform: rotate(-3deg);
}

.cta-stamp:nth-child(even) {
    transform: rotate(2deg);
}

.battle-card {
    background: rgba(255, 248, 238, 0.8);
}

.battle-card p {
    margin: 8px 0 0;
}

body.is-loaded .hero-copy .eyebrow,
body.is-loaded .hero-copy h1,
body.is-loaded .hero-copy .hero-text,
body.is-loaded .hero-copy .hero-actions,
body.is-loaded .hero-copy .hero-strip {
    animation: heroLineIn 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.is-loaded .hero-copy h1 { animation-delay: 80ms; }
body.is-loaded .hero-copy .hero-text { animation-delay: 160ms; }
body.is-loaded .hero-copy .hero-actions { animation-delay: 240ms; }
body.is-loaded .hero-copy .hero-strip { animation-delay: 320ms; }

.content-section[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.content-section.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes headerFloatIn {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroCopyIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroLineIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroStageIn {
    from { opacity: 0; transform: translateY(26px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes stageTiltIn {
    from { opacity: 0; transform: rotate(2deg) translateY(24px) scale(0.96); }
    to { opacity: 1; transform: rotate(-2.4deg) translateY(0) scale(1); }
}

@keyframes noteInLeft {
    from { opacity: 0; transform: translate(-18px, 12px) rotate(-4deg); }
    to { opacity: 1; transform: translate(0, 0) rotate(0); }
}

@keyframes noteInRight {
    from { opacity: 0; transform: translate(18px, 12px) rotate(4deg); }
    to { opacity: 1; transform: translate(0, 0) rotate(0); }
}

@keyframes posterPop {
    from { opacity: 0; transform: translateY(18px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1120px) {
    .hero,
    .feature-grid,
    .role-layout,
    .cta-panel,
    .split {
        grid-template-columns: 1fr;
    }

    .mode-grid,
    .role-cloud,
    .quote-wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        min-height: auto;
    }

    .hero-stage {
        min-height: 640px;
        margin-top: 12px;
    }

    .poster-grid {
        grid-template-columns: 1fr;
    }

    .stage-card-main {
        inset: 26px 0 54px 24px;
    }
}

@media (max-width: 768px) {
    .page-shell {
        width: min(calc(100% - 20px), var(--max-width));
        padding-top: 12px;
    }

    .site-header {
        position: static;
        border-radius: 26px;
        padding: 16px;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .site-nav a {
        padding-inline: 12px;
    }

    .brand-copy {
        font-size: 0.86rem;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(2.3rem, 12vw, 3.3rem);
        display: block;
    }

    .hero-stage {
        min-height: auto;
    }

    .stage-card-main {
        position: static;
        inset: auto;
        transform: none;
        padding: 18px;
    }

    .stage-note {
        position: static;
        max-width: none;
        margin-top: 14px;
    }

    .mode-grid,
    .feature-grid,
    .role-cloud,
    .quote-wall {
        grid-template-columns: 1fr;
    }

    .role-chip.big {
        grid-column: auto;
    }

    .poster-card-main,
    .poster-card-side,
    .mode-card,
    .feature-card,
    .role-chip {
        min-height: auto;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .btn-hero-enter {
        min-height: 58px;
        font-size: 1.04rem;
    }

    .hero-strip a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .poster-card-main {
        gap: 12px;
    }

    .poster-board {
        gap: 8px;
    }

    .poster-log p {
        padding: 9px 10px;
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .poster-score strong {
        font-size: 1.6rem;
    }

    .poster-strip-shot strong,
    .battle-card strong {
        font-size: 1.28rem;
    }

    .mode-card,
    .feature-card,
    .role-chip,
    .quote-card,
    .role-panel-card,
    .battle-card {
        padding: 18px;
        border-radius: 22px;
    }

    .feature-kicker,
    .mode-card::after,
    .feature-card::after {
        top: 14px;
        right: 14px;
        left: auto;
    }

    .quote-card,
    .quote-card:nth-child(2),
    .quote-card:nth-child(3) {
        transform: none;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #171313;
        --bg-soft: #211918;
        --paper: rgba(37, 28, 27, 0.76);
        --paper-strong: rgba(43, 32, 30, 0.92);
        --ink: #f6e6d2;
        --ink-soft: #cfb7a2;
        --line: rgba(255, 227, 196, 0.12);
        --red: #e07a63;
        --red-deep: #ba4a3a;
        --gold: #d2a855;
        --green: #7fb086;
        --blue: #7fa8c0;
        --orange: #d58a4b;
        --shadow: 0 28px 76px rgba(0, 0, 0, 0.42);
        --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.3);
    }

    body {
        background:
            radial-gradient(circle at top left, rgba(224, 122, 99, 0.16), transparent 24rem),
            radial-gradient(circle at 85% 12%, rgba(210, 168, 85, 0.14), transparent 22rem),
            linear-gradient(180deg, #181211 0%, #120d0d 52%, #0d0909 100%);
    }

    body::before {
        background:
            linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
            repeating-linear-gradient(90deg, rgba(255, 213, 184, 0.03) 0, rgba(255, 213, 184, 0.03) 1px, transparent 1px, transparent 28px);
        mix-blend-mode: screen;
        opacity: 0.52;
    }

    .site-header {
        background: rgba(27, 20, 19, 0.84);
        border-color: rgba(255, 221, 190, 0.1);
    }

    .site-nav a:hover,
    .site-nav a:focus-visible,
    .hero-strip a:hover,
    .hero-strip a:focus-visible {
        background: rgba(54, 39, 37, 0.92);
        color: var(--ink);
    }

    .site-nav .nav-cta {
        background: linear-gradient(135deg, #f0d5b2 0%, #dca768 100%);
        color: #251919;
    }

    .btn-secondary,
    .hero-strip a,
    .stage-card,
    .stage-note,
    .mode-card,
    .feature-card,
    .role-chip,
    .role-panel-card,
    .quote-card,
    .cta-panel,
    .battle-card {
        background: var(--paper);
        border-color: rgba(255, 223, 191, 0.1);
        box-shadow: var(--shadow-soft);
    }

    .hero-text,
    .section-note,
    .mode-card p,
    .feature-card p,
    .role-chip em,
    .role-panel-card p,
    .cta-panel p,
    .battle-card p,
    .brand-copy,
    .trend-label,
    .shot-caption span,
    .stat-row span {
        color: var(--ink-soft);
    }

    .poster-card,
    .poster-log p,
    .poster-strip-shot,
    .shot-caption,
    .battle-card,
    .cta-wall {
        background: rgba(29, 22, 21, 0.76);
        border-color: rgba(255, 221, 190, 0.1);
    }

    .poster-log p,
    .poster-strip-shot strong,
    .shot-caption strong,
    .mode-card h3,
    .feature-card h3,
    .role-chip strong,
    .role-panel-card strong,
    .quote-card p,
    .battle-card strong,
    .stat-row strong {
        color: var(--ink);
    }

    .chip,
    .poster-chip-row span,
    .stamp,
    .cta-stamp {
        background: rgba(255, 238, 216, 0.09);
        border-color: rgba(255, 223, 191, 0.12);
        color: #f3dcc1;
    }

    .stamp-win,
    .chip-hot {
        background: rgba(224, 122, 99, 0.18);
        color: #ffd9ce;
    }

    .chip-seed {
        background: rgba(127, 176, 134, 0.16);
        color: #d7f0d2;
    }

    .btn:hover,
    .btn:focus-visible,
    .poster-card:hover,
    .poster-card:focus-visible,
    .mode-card:hover,
    .mode-card:focus-visible,
    .feature-card:hover,
    .feature-card:focus-visible,
    .role-chip:hover,
    .role-chip:focus-visible {
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
    }
}

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

    .content-section[data-reveal],
    .site-nav a,
    .btn,
    .hero-strip a,
    .mode-card,
    .feature-card,
    .role-chip,
    .poster-card {
        animation: none;
        transition: none;
    }
}
