
:root {
  --night: #242038;
  --night-soft: #332d49;
  --plum: #655879;
  --orange: #e8894e;
  --orange-dark: #c96539;
  --cream: #f4ecd9;
  --paper: #f7f1e5;
  --mint: #a9c9ae;
  --gold: #f4c86a;
  --ink: #292438;
  --muted: #766e78;
  --line: rgba(41, 36, 56, .15);
  --shadow: 0 24px 70px rgba(36, 32, 56, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; line-height: 1.7; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { outline-offset: 5px; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); }
svg { display: block; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.paper-noise { position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .17; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"); }
.section-shell { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.topbar { position: sticky; top: 0; z-index: 40; min-height: 84px; padding: 14px max(32px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; gap: 36px; background: rgba(247, 241, 229, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 45px; height: 45px; color: var(--cream); background: var(--night); border-radius: 13px 13px 16px 16px; font: 700 23px/1 serif; box-shadow: inset 0 -4px 0 rgba(0,0,0,.16); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .12em; }
.brand small { margin-top: 1px; color: var(--muted); font: 9px/1.4 ui-monospace, monospace; letter-spacing: .15em; }
.topbar nav { display: flex; gap: 28px; }
.topbar nav a { position: relative; padding: 8px 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.topbar nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--orange); transition: right .25s ease; }
.topbar nav a:hover, .topbar nav a.active { color: var(--ink); }
.topbar nav a.active::after { right: 0; }
.status-pill { display: flex; align-items: center; gap: 7px; padding: 6px 12px; color: var(--plum); background: rgba(101,88,121,.08); border: 1px solid rgba(101,88,121,.2); border-radius: 999px; font-size: 11px; font-weight: 700; }
.status-pill i { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 4px rgba(232,137,78,.13); }
.hero { min-height: 730px; padding-block: 72px 80px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.eyebrow, .section-kicker { margin: 0 0 15px; color: var(--plum); font: 700 11px/1.4 ui-monospace, monospace; letter-spacing: .15em; }
.eyebrow span { display: inline-block; margin-right: 9px; padding: 5px 9px; color: var(--cream); background: var(--plum); border-radius: 5px; letter-spacing: .12em; }
.hero h1 { margin: 0; font-size: clamp(48px, 5vw, 74px); line-height: 1.14; letter-spacing: -.06em; font-weight: 900; }
.hero h1 em { position: relative; color: var(--orange-dark); font-style: normal; }
.hero h1 em::after { content: ""; position: absolute; left: 3px; right: -3px; bottom: -9px; height: 9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 10'%3E%3Cpath d='M2 7q70-9 145-2t151-1' fill='none' stroke='%23e8894e' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; opacity: .6; }
.hero-lead { margin: 32px 0 20px; color: #625b68; font-size: 17px; line-height: 1.9; }
.genre-tags, .mini-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-tags span, .mini-tags span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--plum); background: rgba(255,255,255,.28); font-size: 11px; font-weight: 700; }
.hero-actions { margin-top: 31px; display: flex; align-items: center; gap: 25px; }
.button { min-height: 48px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; border: 0; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff9ec; background: var(--orange-dark); box-shadow: 0 8px 22px rgba(201,101,57,.2); }
.button-primary:hover { background: #b85631; box-shadow: 0 12px 28px rgba(201,101,57,.28); }
.button-secondary { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.button-secondary:hover { background: rgba(101,88,121,.07); }
.text-link { font-size: 13px; font-weight: 800; border-bottom: 1px solid var(--line); }
.text-link span { color: var(--orange-dark); margin-left: 5px; }
.hero blockquote { position: relative; margin: 43px 0 0; padding: 15px 0 0 22px; border-left: 2px solid var(--gold); }
.hero blockquote > span { position: absolute; left: 21px; top: -7px; color: var(--gold); font: 54px/1 serif; opacity: .45; }
.hero blockquote p { margin: 9px 0 0; color: var(--plum); font: 700 15px/1.75 serif; letter-spacing: .12em; }
.hero-visual { position: relative; padding: 15px; background: #e9dfcd; border: 1px solid rgba(36,32,56,.16); border-radius: 8px; box-shadow: var(--shadow); transform: rotate(1.1deg); }
.hero-visual::before { content: ""; position: absolute; width: 95px; height: 28px; left: 50%; top: -15px; transform: translateX(-50%) rotate(-2deg); background: rgba(244,200,106,.55); }
.art-frame-heading, .visual-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 700 9px/1.5 ui-monospace, monospace; letter-spacing: .1em; }
.art-frame-heading { padding: 1px 3px 12px; color: var(--plum); }
.corridor-art { width: 100%; height: auto; border-radius: 3px; }
.visual-caption { padding: 12px 3px 1px; color: var(--muted); letter-spacing: 0; }
.visual-caption span { display: flex; align-items: center; gap: 5px; }
.visual-caption strong { color: var(--plum); }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot.orange { background: var(--orange); }
.legend-dot.purple { background: var(--plum); }
.svg-pumpkin { transform-origin: 210px 350px; animation: pumpkinGlow 3s ease-in-out infinite; }
.art-dust { animation: dust 5s ease-in-out infinite alternate; }
.statement { padding-block: 75px 95px; border-top: 1px solid var(--line); }
.statement-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 100px; }
.statement h2, .section-heading h2, .next-step h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.45; letter-spacing: -.04em; }
.statement h2 span { color: var(--orange-dark); }
.statement-notes { display: grid; gap: 17px; }
.statement-notes p { margin: 0; display: flex; gap: 17px; color: var(--muted); font-size: 13px; }
.statement-notes b { color: var(--orange-dark); font: 700 12px/1.8 ui-monospace, monospace; }
.statement-notes strong { display: block; color: var(--ink); font-size: 14px; }
.palette-section { padding-block: 78px 85px; background: #ede4d4; border-block: 1px solid var(--line); }
.section-heading { margin-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 45px; }
.section-heading > p { max-width: 390px; margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 14px 40px rgba(36,32,56,.07); }
.swatch { min-width: 0; height: 230px; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 0; border-right: 1px solid rgba(255,255,255,.18); cursor: pointer; transition: flex .25s ease, filter .25s ease; }
.swatch:last-child { border-right: 0; }
.swatch:hover { filter: brightness(1.05); }
.swatch-number { font: 700 10px/1 ui-monospace, monospace; opacity: .65; }
.swatch-info { margin-top: auto; }
.swatch-info strong, .swatch-info small { display: block; }
.swatch-info strong { font-size: 15px; }
.swatch-info small { margin-top: 3px; font: 10px/1.4 ui-monospace, monospace; opacity: .7; }
.swatch-use { margin-top: 16px; padding-top: 10px; width: 100%; border-top: 1px solid currentColor; font-size: 10px; opacity: .65; }
.swatch-night { color: var(--cream); background: var(--night); }
.swatch-plum { color: var(--cream); background: var(--plum); }
.swatch-orange { color: var(--night); background: var(--orange); }
.swatch-cream { color: var(--ink); background: var(--cream); }
.swatch-mint { color: var(--ink); background: var(--mint); }
.swatch-gold { color: var(--ink); background: var(--gold); }
.characters-section { padding-block: 85px 95px; color: var(--cream); background: var(--night); }
.section-heading.light .section-kicker { color: var(--gold); }
.section-heading.light > p { color: #bcb3c5; }
.character-layout { display: grid; grid-template-columns: 1fr 330px; gap: 25px; }
.character-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.character-card { position: relative; min-width: 0; min-height: 270px; padding: 13px 15px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; color: var(--cream); text-align: left; background: #302a44; border: 1px solid rgba(244,236,217,.12); border-radius: 15px; overflow: hidden; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.character-card:hover { transform: translateY(-3px); border-color: rgba(244,200,106,.5); }
.character-card.active { background: #3a324d; border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.character-card svg { grid-column: 1 / -1; justify-self: center; width: 160px; height: 192px; filter: drop-shadow(0 12px 12px rgba(0,0,0,.15)); transition: transform .25s ease; }
.character-card:hover svg { transform: translateY(-4px) rotate(-1deg); }
.character-index { position: absolute; top: 15px; left: 16px; color: #9d91aa; font: 10px/1 ui-monospace, monospace; }
.character-name strong, .character-name small { display: block; }
.character-name strong { font-size: 15px; }
.character-name small { margin-top: 2px; color: #9d91aa; font: 8px/1.5 ui-monospace, monospace; letter-spacing: .08em; }
.select-arrow { align-self: end; color: var(--orange); font-size: 19px; }
.character-profile { padding: 28px; color: var(--ink); background: var(--cream); border-radius: 15px; }
.profile-top { display: flex; justify-content: space-between; gap: 10px; color: var(--plum); font: 700 8px/1.4 ui-monospace, monospace; letter-spacing: .1em; }
.character-profile h3 { margin: 24px 0 3px; font-size: 29px; line-height: 1.3; }
.profile-role { margin: 0; color: var(--orange-dark); font-size: 12px; font-weight: 800; }
.character-profile blockquote { margin: 25px 0 18px; padding: 13px 15px; color: var(--plum); background: rgba(101,88,121,.08); border-left: 3px solid var(--gold); font: 700 13px/1.7 serif; }
.profile-description { min-height: 108px; margin: 0; color: #68606a; font-size: 12px; line-height: 1.9; }
.profile-rule { height: 1px; margin: 23px 0; background: var(--line); }
.character-profile dl { margin: 0; display: grid; gap: 14px; }
.character-profile dl div { display: grid; gap: 2px; }
.character-profile dt { color: var(--muted); font-size: 10px; }
.character-profile dd { margin: 0; font-size: 12px; font-weight: 700; }
.equipment-section { padding-block: 90px; }
.equipment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.equipment-card { padding: 18px 20px 23px; background: #f0e7d6; border: 1px solid var(--line); border-radius: 14px; }
.equipment-art { height: 210px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(255,255,255,.28); border-radius: 9px; overflow: hidden; }
.equipment-art svg { width: 95%; height: auto; }
.equipment-number { color: var(--orange-dark); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .12em; }
.equipment-card h3 { margin: 9px 0 8px; font-size: 20px; }
.equipment-card > p { min-height: 68px; margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.map-sheet { position: relative; width: 76%; height: 76%; padding: 17px; background: #fff8e9; border: 1px solid #b7a99b; box-shadow: 7px 8px 0 rgba(36,32,56,.08); transform: rotate(-3deg); }
.map-sheet::before, .map-sheet::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: #ded2c1; }
.map-sheet::before { left: 33%; }.map-sheet::after { right: 33%; }
.map-sheet > span { font: 700 11px/1 serif; }
.map-sheet i { position: absolute; border: 2px solid var(--plum); }
.map-sheet i:nth-of-type(1) { left: 20px; top: 53px; width: 75px; height: 38px; border-right: 0; }
.map-sheet i:nth-of-type(2) { right: 17px; top: 52px; width: 70px; height: 63px; }
.map-sheet i:nth-of-type(3) { left: 67px; bottom: 15px; width: 94px; height: 37px; }
.map-sheet b { position: absolute; left: 30px; bottom: 31px; color: var(--orange-dark); font-size: 9px; }
.map-sheet em { position: absolute; right: 34px; bottom: 26px; display: grid; place-items: center; width: 26px; height: 26px; color: var(--cream); background: var(--night); border-radius: 50% 50% 45% 45%; font-size: 9px; font-style: normal; }
.scene-section { padding-block: 85px 95px; background: #ede4d4; border-block: 1px solid var(--line); }
.door-lab { display: grid; grid-template-columns: 1fr 320px; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.door-stage { min-width: 0; padding: 18px; color: var(--cream); background: var(--night); }
.stage-label { padding: 0 2px 14px; display: flex; justify-content: space-between; color: #b5aabd; font: 9px/1.4 ui-monospace, monospace; letter-spacing: .1em; }
.door-world { position: relative; height: 490px; background: #494052; overflow: hidden; perspective: 900px; }
.corridor-ceiling { position: absolute; inset: 0 0 67%; background: #302a40; clip-path: polygon(0 0,100% 0,72% 100%,28% 100%); }
.corridor-floor { position: absolute; inset: 67% 0 0; background-color: #3a3344; background-image: linear-gradient(30deg, transparent 48%, rgba(177,153,156,.16) 49%, rgba(177,153,156,.16) 51%, transparent 52%), linear-gradient(-30deg, transparent 48%, rgba(177,153,156,.13) 49%, rgba(177,153,156,.13) 51%, transparent 52%); background-size: 90px 50px; clip-path: polygon(28% 0,72% 0,100% 100%,0 100%); }
.classroom { position: absolute; left: 24%; right: 24%; top: 10%; bottom: 7%; background: #6c6670; overflow: hidden; transition: filter .5s ease; }
.classroom-back { position: absolute; inset: 0 0 42%; background: #858079; border-bottom: 5px solid #49434d; }
.blackboard { position: absolute; left: 12%; top: 15%; width: 56%; height: 50%; padding: 13px; color: #e8e1c8; background: #314c44; border: 6px solid #b49b75; transform: perspective(400px) rotateX(-2deg); }
.blackboard span { display: block; font-size: 8px; opacity: .65; }
.blackboard b { display: block; margin-top: 7px; font: 400 19px/1.2 serif; transform: rotate(-3deg); }
.blackboard i { position: absolute; right: 15px; bottom: 4px; color: var(--gold); font-size: 23px; }
.class-window { position: absolute; right: 5%; top: 12%; width: 20%; height: 55%; background: #202a43; border: 5px solid #d0c2aa; }
.class-window i { position: absolute; width: 24px; height: 24px; right: 8px; top: 7px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 25px rgba(244,200,106,.35); }
.desk { position: absolute; width: 29%; height: 15%; background: #b5855d; border: 4px solid #4b3f42; transform: skewY(-4deg); }
.desk::before, .desk::after { content: ""; position: absolute; top: 100%; width: 5px; height: 50px; background: #4b3f42; }
.desk::before { left: 10%; }.desk::after { right: 10%; }
.desk-one { left: 6%; top: 57%; }.desk-two { right: 5%; top: 60%; transform: skewY(5deg); }.desk-three { left: 37%; top: 77%; width: 35%; }
.paper-peek { position: absolute; left: 42%; top: 40%; width: 62px; height: 93px; background: #f4ecd9; border: 4px solid var(--night); clip-path: polygon(12% 0,85% 6%,100% 91%,47% 100%,0 86%); transform: rotate(4deg); transition: transform .7s ease; }
.paper-peek i { position: absolute; top: 30px; width: 9px; height: 9px; background: var(--plum); border-radius: 50%; }
.paper-peek i:first-child { left: 14px; }.paper-peek i:nth-child(2) { right: 14px; }
.paper-peek span { position: absolute; left: 22px; top: 51px; width: 18px; height: 8px; border-bottom: 3px solid var(--plum); }
.paper-scrap { position: absolute; width: 17px; height: 12px; background: var(--cream); opacity: .75; }
.scrap-one { left: 20%; top: 75%; transform: rotate(23deg); }.scrap-two { right: 15%; top: 88%; transform: rotate(-15deg); }
.door-frame { position: absolute; left: 21%; right: 21%; top: 6%; bottom: 0; border: 15px solid #342e3b; border-bottom: 0; perspective: 850px; pointer-events: none; }
.door-panel { position: absolute; inset: 0; color: var(--cream); background: #827a70; border: 5px solid #342f35; transform-origin: left center; transition: transform 1.25s cubic-bezier(.2,.7,.25,1); box-shadow: inset -12px 0 25px rgba(0,0,0,.12); }
.door-window { position: absolute; left: 38%; right: 38%; top: 10%; height: 33%; background: #788783; border: 5px solid #454248; border-radius: 2px; overflow: hidden; box-shadow: inset 0 0 18px rgba(26,36,40,.35); }
.door-window span { position: absolute; inset: 0; display: block; background: linear-gradient(115deg, rgba(244,236,217,.28), transparent 42%, rgba(36,32,56,.12)), repeating-linear-gradient(0deg, transparent 0 9px, rgba(244,236,217,.035) 10px 11px); }
.room-number { position: absolute; left: 50%; top: 46%; transform: translateX(-50%); font: 700 46px/1 ui-monospace, monospace; letter-spacing: .08em; }
.door-panel > small { position: absolute; left: 0; right: 0; top: 57%; text-align: center; color: #c6b8c4; font-size: 10px; letter-spacing: .3em; }
.door-handle { position: absolute; right: 8%; top: 65%; width: 14px; height: 14px; background: var(--gold); border: 3px solid #342e3b; border-radius: 50%; box-shadow: -17px 3px 0 -4px var(--gold); }
.door-scratch { position: absolute; left: 10%; top: 66%; color: #d8c4b7; font: 11px/1.6 serif; transform: rotate(-8deg); opacity: .65; }
.door-stage.is-open .door-panel { transform: rotateY(-103deg); }
.door-stage.is-open .paper-peek { transform: rotate(-3deg) translateY(-4px); }
.pumpkin-lamp { position: absolute; right: 8%; bottom: 14%; width: 58px; height: 53px; display: grid; place-items: center; color: #5e382e; background: var(--orange); border: 4px solid #352b38; border-radius: 45% 45% 48% 48%; box-shadow: 0 0 42px rgba(232,137,78,.3); transition: opacity .4s ease, box-shadow .4s ease; }
.pumpkin-lamp i { position: absolute; left: 25px; top: -17px; width: 8px; height: 17px; background: #718c68; transform: rotate(12deg); }
.pumpkin-lamp span { font: 700 16px/1 monospace; }
.light-cone { position: absolute; right: 0; bottom: 0; width: 48%; height: 55%; background: linear-gradient(225deg, rgba(244,200,106,0), rgba(244,200,106,.08)); pointer-events: none; }
.sound-caption { margin-top: 13px; padding: 9px 12px; color: #c5bacb; background: rgba(255,255,255,.04); border-radius: 7px; font-size: 11px; }
.sound-caption span { margin-right: 7px; color: var(--gold); }
.door-stage.lights-out .door-world { filter: brightness(.58) saturate(.75); }
.door-stage.lights-out .pumpkin-lamp { box-shadow: 0 0 70px rgba(232,137,78,.7); }
.door-stage.lights-out .paper-peek i { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.door-controls { padding: 32px 28px; }
.door-controls h3 { margin: 0 0 13px; font-size: 30px; }
.door-intro { color: var(--muted); font-size: 12px; }
.door-status { margin: 22px 0; display: flex; align-items: center; gap: 8px; color: var(--plum); font-size: 11px; font-weight: 700; }
.door-status i { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.wide { width: 100%; margin-top: 10px; }
.door-notes { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }
.door-notes p { display: flex; gap: 10px; margin: 10px 0; color: var(--muted); font-size: 10px; }
.door-notes b { color: var(--orange-dark); font: 700 10px/1.8 ui-monospace, monospace; }
.emotion-section { padding-block: 90px; }
.emotion-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.emotion-track::before { content: ""; position: absolute; left: 10%; right: 10%; top: 72px; height: 1px; background: var(--line); }
.emotion-track article { position: relative; padding: 18px; text-align: center; }
.emotion-track article > span { position: absolute; left: 18px; top: 15px; color: var(--muted); font: 10px/1 ui-monospace, monospace; }
.emotion-icon { position: relative; z-index: 1; width: 68px; height: 68px; margin: 15px auto 20px; display: grid; place-items: center; border: 8px solid var(--paper); border-radius: 50%; font-size: 26px; }
.emotion-icon.familiar { color: var(--plum); background: var(--cream); }.emotion-icon.doubt { color: var(--cream); background: var(--plum); }.emotion-icon.pressure { color: var(--cream); background: var(--orange-dark); }.emotion-icon.relief { color: var(--night); background: var(--gold); }
.emotion-track h3 { margin: 0; font-size: 18px; }
.emotion-track p { margin: 7px 0; color: var(--muted); font-size: 11px; }
.emotion-track small { color: var(--plum); font-size: 10px; font-weight: 700; }
.boundary-grid { margin-top: 45px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.boundary-grid article { padding: 24px; display: flex; gap: 20px; border: 1px solid var(--line); border-radius: 13px; }
.boundary-symbol { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; }
.do-card { background: rgba(169,201,174,.18); }.do-card .boundary-symbol { background: var(--mint); }
.dont-card { background: rgba(232,137,78,.08); }.dont-card .boundary-symbol { color: var(--cream); background: var(--plum); }
.boundary-grid h3 { margin: 0 0 5px; font-size: 16px; }
.boundary-grid p { margin: 0; color: var(--muted); font-size: 12px; }
.next-step { margin-bottom: 80px; padding: 38px 42px; display: flex; align-items: center; justify-content: space-between; gap: 40px; color: var(--cream); background: var(--night); border-radius: 16px; }
.next-step .section-kicker { color: var(--gold); }
.next-step p:last-child { margin: 12px 0 0; color: #bcb3c5; font-size: 12px; }
.next-stamp { min-width: 235px; padding: 20px; border: 1px dashed #7f718b; border-radius: 10px; text-align: center; transform: rotate(-2deg); }
.next-stamp span, .next-stamp strong, .next-stamp small { display: block; }
.next-stamp span { color: var(--orange); font: 700 10px/1.4 ui-monospace, monospace; letter-spacing: .15em; }
.next-stamp strong { margin: 5px 0; font-size: 20px; }
.next-stamp small { color: #a89cad; font-size: 10px; }
footer { min-height: 85px; padding: 25px max(32px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
footer a { color: var(--plum); font-weight: 700; }
footer .footer-signature { font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; padding: 10px 18px; color: var(--cream); background: var(--night); border: 1px solid rgba(244,236,217,.2); border-radius: 999px; box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translate(-50%, 15px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes pumpkinGlow { 0%,100% { filter: drop-shadow(0 0 3px rgba(232,137,78,.15)); } 50% { filter: drop-shadow(0 0 12px rgba(232,137,78,.6)); } }
@keyframes dust { from { transform: translateY(0); opacity: .3; } to { transform: translateY(-10px); opacity: .85; } }
@media (max-width: 1050px) {
  .topbar { gap: 20px; }.topbar nav { gap: 18px; }.status-pill { display: none; }
  .hero { grid-template-columns: 1fr 1.15fr; gap: 35px; }.hero h1 { font-size: 51px; }
  .character-layout { grid-template-columns: 1fr 285px; }.character-card svg { width: 135px; height: 170px; }
  .door-lab { grid-template-columns: 1fr 280px; }.door-world { height: 440px; }
}
@media (max-width: 820px) {
  .section-shell { width: min(100% - 36px, 680px); }.topbar { padding: 12px 18px; }.topbar nav { display: none; }
  .hero { padding-block: 50px; grid-template-columns: 1fr; }.hero-copy { max-width: 580px; }.hero-visual { transform: none; }
  .statement-grid { grid-template-columns: 1fr; gap: 35px; }.section-heading { align-items: start; flex-direction: column; gap: 15px; }
  .swatch-grid { grid-template-columns: repeat(3, 1fr); }.swatch { height: 180px; border-bottom: 1px solid rgba(255,255,255,.18); }
  .character-layout { grid-template-columns: 1fr; }.character-profile { min-height: auto; }.profile-description { min-height: auto; }
  .equipment-grid { grid-template-columns: 1fr; }.equipment-card > p { min-height: auto; }
  .door-lab { grid-template-columns: 1fr; }.door-world { height: 480px; }
  .emotion-track { grid-template-columns: repeat(2, 1fr); }.emotion-track::before { display: none; }
  .next-step { padding: 30px; flex-direction: column; align-items: flex-start; }.next-stamp { width: 100%; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 43px; }.hero-lead { font-size: 15px; }.hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .visual-caption strong { display: none; }.statement { padding-block: 60px; }.statement h2 { font-size: 28px; }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); }.swatch { height: 165px; }
  .character-tabs { grid-template-columns: 1fr; }.character-card { min-height: 245px; }.character-card svg { height: 175px; }
  .door-world { height: 390px; }.door-frame { left: 16%; right: 16%; }.classroom { left: 19%; right: 19%; }.door-controls { padding: 26px 22px; }
  .room-number { font-size: 36px; }.door-panel > small { letter-spacing: .12em; }.pumpkin-lamp { right: 3%; transform: scale(.75); }
  .emotion-track { grid-template-columns: 1fr; }.boundary-grid { grid-template-columns: 1fr; }.next-step { margin-bottom: 45px; }
  footer { align-items: flex-start; flex-direction: column; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}