* { box-sizing:border-box }
:root { color-scheme:dark; --paper:#f4eadb; --gold:#efcb93; --muted:#ccbfae; --ink:#171c25; --serif:"Hehe Serif","Songti SC","STSong","SimSun",serif; --sans:"Hehe Sans","PingFang SC","Microsoft YaHei",sans-serif; --gutter:clamp(22px,7.1vw,150px) }
html { scroll-behavior:smooth }
body { margin:0; color:var(--paper); background:#161c28; font:16px/1.6 var(--sans); }
button,input,textarea { font:inherit }
button,a { -webkit-tap-highlight-color:transparent }
a { color:inherit; text-decoration:none }
button { cursor:pointer }
:focus-visible { outline:3px solid #ffd591; outline-offset:4px }
[hidden] { display:none!important }
h1,h2,h3,p,figure { margin:0 }
h1,h2,h3 { font-family:var(--serif); font-weight:600 }
body .hh-bar { background:linear-gradient(110deg,#192b40,#172032 52%,#29384c); min-height:66px; padding-inline:var(--gutter); border-color:#ffffff19 }
body .hh-brand { color:#f2dfc0 }
body .hh-bar-nav a { color:#d8d8d8 }
body .hh-bar-nav a:hover,.text-button:hover { color:var(--gold); text-decoration:underline; text-underline-offset:5px }
body .hh-wallet { padding:6px 13px; border:1px solid #f4cd8b4a; border-radius:20px; color:#f2ce91 }
.cinema { position:relative; isolation:isolate; display:flex; align-items:center; min-height:clamp(465px,61svh,770px); overflow:hidden; background:#211c23 url("mv/hero.webp") center 50%/cover no-repeat }
.cinema video { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:center 51% }
.cinema::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#0a1019ee 0%,#161722ae 25%,#1e1b2222 57%,transparent 74%),linear-gradient(0deg,#141821c9,transparent 24%) }
.film-copy { padding:64px var(--gutter) 86px; max-width:72% }
.film-slot,.section-stamp { display:flex; align-items:center; gap:11px; color:#f4d4a3; font-size:14px; font-weight:600; letter-spacing:.18em }
.film-slot span { display:inline-grid; place-items:center; height:22px; width:30px; color:#f6d498; font:11px/1 var(--sans); border:1px solid #f6d498aa; border-radius:3px }
.cinema h1 { margin:16px 0 18px -.04em; font-size:clamp(62px,5.7vw,112px); letter-spacing:.04em; line-height:1.16; color:#fff4e2; text-shadow:0 2px 24px #14111880 }
.film-quote { font:400 clamp(17px,1.22vw,23px)/1.75 var(--serif); color:#f2e7da; letter-spacing:.045em }
.film-actions,.arrival-actions,.card-actions,.paper-actions { display:flex; gap:22px; flex-wrap:wrap; align-items:center; margin-top:30px }
.film-actions button,.film-actions a { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:46px; border-radius:5px; padding:9px 21px; font:600 16px/1.4 var(--sans); transition:transform .18s, background .18s }
.film-actions button { border:1px solid #f7d59e; background:#f4d49e; color:#282521 }
.film-actions a { border:1px solid #ffffff57; background:#191a2277; color:#fff5e8 }
.film-actions button:hover,.film-actions a:hover { transform:translateY(-2px) }
.film-actions button:active,.film-actions a:active { transform:translateY(1px) }

.film-credit { position:absolute; inset:auto var(--gutter) 24px; display:flex; justify-content:space-between; padding-top:10px; border-top:1px solid #ffffff55; color:#f1e1c9; letter-spacing:.14em; font-size:12px }
.arrival { position:relative; display:flex; align-items:center; min-height:clamp(440px,49vw,780px); background:#293c51; isolation:isolate }
.arrival::after { content:""; position:absolute; inset:0; pointer-events:none; z-index:-1; background:linear-gradient(90deg,#162334e8,#1d30417a 42%,transparent 68%),linear-gradient(0deg,#171e2b 0%,transparent 21%) }
.arrival .hh-stage { z-index:-2 }
.arrival .hh-surface > * { object-position:50% 14% }
.arrival-copy { width:100%; padding:58px 0 76px var(--gutter) }
[data-scene-side=left] .arrival::after { transform:scaleX(-1) }
[data-scene-side=left] .arrival-copy { padding-left:2vw; padding-right:var(--gutter) }
.section-stamp i { width:27px; height:1px; background:currentColor }
.arrival h2 { font-size:clamp(43px,4.7vw,88px); line-height:1.2; letter-spacing:.09em; margin:9px 0 23px; color:#fff3dd }
.town-clock { color:#ffe1ab; font:600 15px/1.6 var(--sans); display:flex; align-items:center; gap:10px }
.town-clock time { font-variant-numeric:tabular-nums }
.town-clock span { padding-left:10px; border-left:1px solid #f8ddb76b }
#statusLine,#line { max-width:26em; margin-top:5px; line-height:1.8; color:#fff4e5 }
#line { font:500 16px/1.7 var(--serif) }
.arrival-actions { margin-top:22px }
.text-button { background:none; border:0; padding:6px 0; color:inherit; font-size:15px; min-height:42px }
.section-inner { padding:52px var(--gutter) }
.section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:14px; margin-bottom:30px }
.section-heading h2 { font-size:clamp(26px,2.5vw,44px); line-height:1.3 }
.section-heading span { color:#cdbea4; font-size:14px }
.street {
  position:relative; isolation:isolate; overflow:hidden;
  padding:clamp(36px,4vw,70px) var(--gutter);
  background:#142336;
}
.street::before {
  content:""; position:absolute; inset:0; z-index:-2; pointer-events:none;
  background:linear-gradient(180deg,#17243680,#16273ac2 46%,#101d30eb),
             url("v3/scene/home_w.webp") left 48% / 226% auto no-repeat,#19283a;
}
.street .section-heading,.shop-grid { width:100%; max-width:1240px; margin-inline:auto }
.street .section-heading { justify-content:start; align-items:center; gap:18px; margin-bottom:27px }
.street .section-heading::before { content:""; width:clamp(32px,3vw,48px); aspect-ratio:1; background:url("v3/ui/crest.svg") center / contain no-repeat; filter:drop-shadow(0 0 8px #f7d58c36) }
.street .section-heading::after { content:""; height:1px; flex:1; background:linear-gradient(90deg,#eac68e77,transparent) }
.street .section-heading h2 { color:#fff1d4; font-size:clamp(30px,2.6vw,44px); letter-spacing:.12em }
.street .section-heading span { color:#e5ccaa; font:400 14px var(--serif); letter-spacing:.14em }
.shop-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(26px,2.2vw,42px) clamp(17px,1.7vw,32px) }
.town-window {
  display:block; text-align:center; min-width:0; color:#fff1d7; border-radius:10px;
  touch-action:manipulation; -webkit-tap-highlight-color:transparent;
}
.shop-art {
  display:block; position:relative; aspect-ratio:3 / 4; overflow:hidden; isolation:isolate; container-type:inline-size;
  border:1px solid #e4c898ab; border-radius:10px; background:#233348;
  box-shadow:0 9px 20px #070e1d63,0 1px 4px #050c1a55;
  transition:transform .32s cubic-bezier(.2,.72,.23,1.16),box-shadow .32s,border-color .32s;
}
.shop-art img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; transition:transform .55s ease; -webkit-user-drag:none }
/* The artwork leaves the marquee empty for a legible Chinese name. */
.shop-sign {
  position:absolute; z-index:1; top:var(--sign-top,8%); left:var(--sign-left,50%);
  transform:translate(-50%,-50%); pointer-events:none; white-space:nowrap;
  font:600 var(--sign-size,clamp(13px,1.22vw,21px))/1.3 var(--serif); letter-spacing:.12em; color:var(--sign-ink,#482e20);
  text-shadow:var(--sign-shadow,0 1px 1px #fff6d7aa);
}
.shop-art::after {
  content:""; position:absolute; inset:0; pointer-events:none; opacity:0;
  background:radial-gradient(ellipse at var(--window-x,50%) var(--window-y,54%),#ffd39055,transparent 52%);
  mix-blend-mode:screen; transition:opacity .28s ease;
}
.town-window strong,.town-window small { display:block; font-family:var(--serif); text-shadow:0 1px 6px #071322 }
.town-window strong { margin-top:12px; font-weight:550; letter-spacing:.1em; font-size:clamp(17px,1.25vw,22px); line-height:1.5 }
.town-window small { margin-top:3px; color:#e5d4b8; letter-spacing:.12em; font-size:clamp(12px,.85vw,15px); line-height:1.65 }
.town-window:focus-visible,.town-window:active,.town-window.is-held { --art-shift:-3px; --art-scale:1.035; --art-glow:1 }
@media(hover:hover) { .town-window:hover { --art-shift:-5px; --art-scale:1.04; --art-glow:1 } }
.town-window .shop-art { transform:translateY(var(--art-shift,0)) }
.town-window .shop-art img { transform:scale(var(--art-scale,1)) }
.town-window .shop-art::after { opacity:var(--art-glow,0) }
.town-window:is(:active,:focus-visible,.is-held) .shop-art { border-color:#ffdda2; box-shadow:0 12px 30px #0b101d99,0 0 17px #f5ca6533 }
@media(hover:hover) { .town-window:hover .shop-art { border-color:#ffdda2; box-shadow:0 12px 30px #0b101d99,0 0 17px #f5ca6533 } }
.street-lights { position:absolute; inset:0; z-index:-1; overflow:hidden; pointer-events:none }
.street-lights i { position:absolute; left:3%; top:20%; width:12px; height:17px; background:url("v3/ui/lantern.svg") center/contain no-repeat; filter:drop-shadow(0 0 6px #ffc67b); animation:street-float 8s ease-in-out infinite alternate; opacity:.66 }
.street-lights i:nth-child(2) { left:96%; top:62%; animation-delay:-3s }
.street-lights i:nth-child(3) { left:11%; top:72%; animation-delay:-5s }
.street-lights i:nth-child(4) { left:89%; top:24%; animation-delay:-2s }
.street-lights i:nth-child(5) { left:44%; top:52%; width:8px; animation-delay:-6s }
.street-lights i:nth-child(6) { left:71%; top:94%; width:9px; animation-delay:-4s }
@keyframes street-float { from{transform:translate3d(0,12px,0) rotate(-5deg)} to{transform:translate3d(8px,-10px,0) rotate(5deg)} }
.town-tagline { font:400 clamp(18px,1.4vw,25px)/1.55 var(--serif); color:#ffe9c4; letter-spacing:.14em; margin:-10px 0 16px }
.journal { background:#eae1d2; color:#30333a }
.journal .section-heading span { color:#635546 }
.journal-grid { display:grid; grid-template-columns:1.15fr 1fr; gap:20px }
.daily-card,.journal-paper { border-radius:9px; overflow:hidden; min-height:225px }
.daily-card { display:grid; grid-template-columns:34% 1fr; color:#f9f0dd; background:#293545 }
.daily-card img { width:100%; height:100%; min-height:0; object-fit:cover; object-position:50% 38% }
.daily-card > div,.journal-paper { padding:clamp(16px,2vw,34px) }
.daily-card h3,.journal-paper h3 { font-size:clamp(23px,2vw,32px); margin:4px 0 }
.daily-card .section-stamp { font-size:12px }
#cardDate,#streakInfo { font-size:14px }
#cardDate { color:#ddcfbe }
.card-actions,.paper-actions { gap:14px; margin-top:14px }
.journal-paper { background:#faf2e5; border:1px solid #cabb9f }
.journal-paper .hh-button { background:#344354; color:#fff0dc }
.journal-paper .text-button:hover,.logbook button:hover { color:#784b21 }
#streakInfo { margin-top:9px; color:#605749 }
.logbook { margin-top:18px; border-block:1px solid #bcae98; padding:14px 0 }
.logbook summary { cursor:pointer; font-weight:600 }
#memStrip,.settings,.road,.passHead { display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px }
#memStrip,#pass,.settings { margin:16px 0 }
.road { margin:7px 0 }
.passGo,.road a,.settings button { color:#3b5264; text-decoration:underline; text-underline-offset:4px }
.settings button { border:0; padding:5px 0; background:none }
footer { padding:20px var(--gutter); display:flex; justify-content:space-between; gap:14px; background:#171d27; color:#d0c4b5; font-size:13px }
footer b { font-family:var(--serif); color:#edce9d }
dialog h3,dialog h2 { margin:0 0 8px }
dialog input,dialog textarea { width:100%; margin:8px 0; border:1px solid #d0baa36b; border-radius:5px; background:#141922; color:#fff4df; padding:10px }
dialog menu,.wardrobe form { display:flex; justify-content:space-between; gap:10px; padding:0 }
dialog form button { padding:8px 13px; color:inherit; border-radius:5px; border:1px solid #ad9476; background:#303640 }
.wardrobe img { display:block; max-height:49dvh; max-width:100%; margin:auto; border-radius:4px }
.wardrobe p { padding:10px 0 }
.mv { position:fixed; inset:0; max-width:none; max-height:none; width:100vw; height:100dvh; padding:0; margin:0; border:0; background:#0b0c12 }
.mv video { width:100%; height:100%; object-fit:contain }
.mv button { position:absolute; top:max(16px,env(safe-area-inset-top)); right:20px; border:1px solid #eee4; border-radius:24px; background:#1d202bcd; color:#fff3de; padding:9px 20px }
.mv #mvSound { left:20px; right:auto }
@media(max-width:1000px) { .journal-grid { grid-template-columns:1fr 1fr } }
@media(max-width:700px) {
  body .hh-bar { min-height:52px; padding-inline:18px }
  .cinema { align-items:flex-end; min-height:clamp(485px,74svh,720px) }
  .cinema video { object-position:73% 45% }
  .cinema { background-position:88% 45% }
  .cinema video:not([src]) { object-position:88% 45% }
  .cinema::before { background:linear-gradient(0deg,#10131bee 0%,#121721cc 23%,#15172255 46%,transparent 72%) }
  .film-copy { max-width:100%; padding:0 var(--gutter) 65px }
  .cinema h1 { font-size:clamp(46px,11.4vw,75px); margin:9px 0 }
  .film-slot { font-size:12px }
  .film-quote { font-size:16px }
  .film-actions { gap:9px; margin-top:18px }
  .film-actions button,.film-actions a { font-size:14px; padding:9px 14px }
  .film-credit { bottom:13px; font-size:11px }
  .arrival { display:block; padding-top:clamp(300px,104vw,560px); background:#1e2d40 }
  .arrival .hh-stage { height:clamp(315px,109vw,580px) }
  .arrival .hh-surface > * { object-position:50% 6% }
  .arrival::after { background:linear-gradient(0deg,#1e2d40,transparent); height:65px; top:calc(clamp(315px,109vw,580px) - 65px); bottom:auto }
  .arrival-copy,[data-scene-side=left] .arrival-copy { padding:14px var(--gutter) 32px; max-width:none }
  .arrival h2 { font-size:40px; margin:5px 0 12px }
  .section-inner { padding:32px var(--gutter) }
  .section-heading { margin-bottom:21px }
  .section-heading span { font-size:12px }
  .street { padding:35px 18px 43px }
  .shop-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:27px 16px }
  .street .section-heading { gap:12px; margin-bottom:20px }
  .street-lights i:nth-child(n+4) { display:none }
  .street::before { background-size:auto,auto 100%; background-position:center,left center }
  .town-window strong { font-size:17px; margin-top:9px }
  .town-window small { font-size:12px; letter-spacing:.07em }
  .town-tagline { margin:-3px 0 14px }
  .journal-grid { grid-template-columns:1fr }
  .daily-card,.journal-paper { min-height:0 }
  .daily-card { grid-template-columns:31% 1fr }
  .card-actions,.paper-actions { gap:8px 12px }
  .daily-card .hh-button,.journal-paper .hh-button { padding:7px 10px; font-size:14px }
  footer { flex-wrap:wrap }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto } *,*::before,*::after { transition-duration:0s!important } }

body .hh-bar,body .hh-wallet,body .hh-toast,body .hh-dialog { font-family:var(--sans) } body .hh-brand b,body .hh-gallery-head h2 { font-family:var(--serif) }@media (min-width:360px) and (max-width:700px) { .hh-bar-nav { display:flex; margin:0; gap:0 } .hh-bar-nav a:not(:last-child) { display:none } .hh-bar-nav a { font-size:13px } .hh-bar:has(.hh-tilt) .hh-bar-nav { display:none } }


@media(prefers-reduced-motion:reduce) { .street-lights i { animation:none } .town-window .shop-art,.town-window .shop-art img { transform:none } }
body:has(.hh-stage[data-still=true]) .street-lights { display:none }


@media(min-width:1100px) {
  .street { padding-block:clamp(30px,3vh,42px) }
  .street .section-heading,.shop-grid { max-width:min(1240px,112vh) }
  .shop-grid { row-gap:28px }
}
