/* 与「Duang 的点读卡」同一套暖米底、墨色与科目色 */
@font-face{font-family:"Cormorant";src:url("../home/fonts/cormorant-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Cormorant";src:url("../home/fonts/cormorant-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Jost";src:url("../home/fonts/jost-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Duang Song";src:local("Songti SC"),local("STSong"),url("../home/fonts/noto-serif-sc-400.woff2") format("woff2");font-weight:400;font-display:swap}
:root{
  --bg:#c5e6f8; --plate:#EBE6DC; --ink:#1A1917; --muted:#5c6858; --line:#E4E0D8; --card:#FFFFFF;
  --gold:#d9b27a; --gold-hi:#f0d39c; --ink-gold:#ead9bb; --muted-gold:#b9a27c;
  --serif:"Cormorant","Duang Song","Songti SC","STSong","Noto Serif SC",serif;
  --zh:"Duang Song","Songti SC",serif;
  --sans:"Jost",-apple-system,"PingFang SC","Hiragino Sans GB","HarmonyOS Sans SC","Noto Sans CJK SC","Microsoft YaHei","Helvetica Neue",sans-serif;
  --pad-x:clamp(18px,5vw,48px);
  --pad:clamp(20px,2.2vw,34px);
  --ease:cubic-bezier(.2,.75,.15,1);
  --px:3px; /* 像素描边粗细 */
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--sans);color:var(--ink);background:#c5e6f8;line-height:1.55;min-height:100vh}
a{color:inherit}
.wrap{max-width:1080px;margin:0 auto;padding-left:var(--pad-x);padding-right:var(--pad-x)}

.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink)}
.brand svg{width:34px;height:auto}
.brand b{font-family:"Songti SC","STSong","Noto Serif SC",serif;font-weight:700;font-size:21px;letter-spacing:.06em}
.skip{position:absolute;left:var(--pad);top:-40px;font-size:13px;color:var(--ink);text-decoration:none;padding:8px 12px;background:#fff;border-radius:10px;z-index:40}
.skip:focus{top:12px}

/* 城堡舞台 */
.stage{position:relative;z-index:1;height:100vh;height:100dvh;min-height:560px;max-width:none;margin:0;overflow:hidden;
  touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;cursor:grab;outline:none}
.stage.dragging{cursor:grabbing}
.stage:focus-visible{box-shadow:inset 0 0 0 2px var(--ink)}
#castle{position:absolute;inset:0;width:100%;height:100%;display:block}
/* The castle canvas is transparent, so the fairy-tale world shows through to both edges. */
/* 远景：淡暖天色、像素云、远山剪影、小鸟（都在画布后面，纯 CSS） */
.bg{position:absolute;inset:0;overflow:hidden;pointer-events:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14%,#000 86%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 5%,#000 95%,transparent 100%)}
.bg-sky{position:absolute;inset:0;background:linear-gradient(180deg,#F3F0EA 0%,#F7EEDF 18%,#F6EFE4 48%,#F3F0EA 72%)}
.bg-far{position:absolute;left:0;bottom:36%;width:calc(100% + 1200px);height:120px;-webkit-mask-image:linear-gradient(180deg,#000 55%,transparent 100%);mask-image:linear-gradient(180deg,#000 55%,transparent 100%);background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22600%22%20height%3D%22120%22%20shape-rendering%3D%22crispEdges%22%3E%3Cpath%20d%3D%22M0%20120%20V70%20H24%20V62%20H48%20V66%20H72%20V70%20H96%20V62%20H120%20V58%20H144%20V62%20H168%20V62%20H192%20V70%20H216%20V70%20H240%20V58%20H264%20V62%20H288%20V50%20H312%20V62%20H336%20V62%20H360%20V58%20H384%20V62%20H408%20V54%20H432%20V46%20H456%20V54%20H480%20V54%20H504%20V58%20H528%20V70%20H552%20V70%20H576%20V70%20H600%20V70%20H624%20V120%20Z%22%20fill%3D%22%23E2E6E7%22/%3E%3Cpath%20d%3D%22M0%20120%20V100%20H16%20V100%20H32%20V100%20H48%20V96%20H64%20V92%20H80%20V84%20H96%20V76%20H112%20V88%20H128%20V96%20H144%20V84%20H160%20V80%20H176%20V84%20H192%20V84%20H208%20V88%20H224%20V76%20H240%20V72%20H256%20V76%20H272%20V80%20H288%20V88%20H304%20V76%20H320%20V84%20H336%20V84%20H352%20V76%20H368%20V84%20H384%20V84%20H400%20V92%20H416%20V92%20H432%20V84%20H448%20V76%20H464%20V68%20H480%20V66%20H496%20V66%20H512%20V66%20H528%20V70%20H544%20V82%20H560%20V86%20H576%20V74%20H592%20V100%20H616%20V120%20Z%22%20fill%3D%22%23D8DFDF%22/%3E%3C/svg%3E") repeat-x 0 100%/600px 120px;opacity:.9;will-change:transform}
.bg-peaks{position:absolute;left:0;bottom:27%;width:calc(100% + 1440px);height:200px;opacity:.95;will-change:transform;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22720%22%20height%3D%22200%22%20shape-rendering%3D%22crispEdges%22%3E%3Cpath%20d%3D%22M0%20200%20V120%20H8%20V120%20H16%20V120%20H24%20V96%20H32%20V88%20H40%20V72%20H48%20V56%20H56%20V56%20H64%20V64%20H72%20V72%20H80%20V88%20H88%20V104%20H96%20V120%20H104%20V120%20H112%20V128%20H120%20V144%20H128%20V160%20H136%20V160%20H144%20V168%20H152%20V152%20H160%20V144%20H168%20V136%20H176%20V120%20H184%20V104%20H192%20V96%20H200%20V88%20H208%20V64%20H216%20V72%20H224%20V48%20H232%20V40%20H240%20V16%20H248%20V24%20H256%20V32%20H264%20V48%20H272%20V48%20H280%20V64%20H288%20V80%20H296%20V88%20H304%20V104%20H312%20V120%20H320%20V136%20H328%20V128%20H336%20V152%20H344%20V168%20H352%20V160%20H360%20V152%20H368%20V144%20H376%20V136%20H384%20V120%20H392%20V112%20H400%20V96%20H408%20V96%20H416%20V72%20H424%20V72%20H432%20V64%20H440%20V80%20H448%20V96%20H456%20V112%20H464%20V120%20H472%20V120%20H480%20V136%20H488%20V160%20H496%20V168%20H504%20V168%20H512%20V152%20H520%20V136%20H528%20V120%20H536%20V112%20H544%20V112%20H552%20V104%20H560%20V88%20H568%20V72%20H576%20V56%20H584%20V56%20H592%20V40%20H600%20V40%20H608%20V40%20H616%20V72%20H624%20V64%20H632%20V96%20H640%20V88%20H648%20V104%20H656%20V128%20H664%20V120%20H672%20V144%20H680%20V152%20H688%20V176%20H696%20V160%20H704%20V152%20H712%20V136%20H720%20V200%20Z%22%20fill%3D%22%23CCD4DA%22%2F%3E%3Cpath%20d%3D%22M0%20200%20V152%20H8%20V160%20H16%20V176%20H24%20V184%20H32%20V192%20H40%20V184%20H48%20V184%20H56%20V192%20H64%20V192%20H72%20V176%20H80%20V168%20H88%20V168%20H96%20V144%20H104%20V144%20H112%20V120%20H120%20V128%20H128%20V104%20H136%20V96%20H144%20V88%20H152%20V88%20H160%20V104%20H168%20V112%20H176%20V120%20H184%20V136%20H192%20V152%20H200%20V152%20H208%20V160%20H216%20V168%20H224%20V184%20H232%20V184%20H240%20V192%20H248%20V176%20H256%20V176%20H264%20V184%20H272%20V184%20H280%20V184%20H288%20V168%20H296%20V160%20H304%20V152%20H312%20V136%20H320%20V120%20H328%20V120%20H336%20V104%20H344%20V112%20H352%20V120%20H360%20V128%20H368%20V144%20H376%20V160%20H384%20V160%20H392%20V176%20H400%20V176%20H408%20V184%20H416%20V184%20H424%20V184%20H432%20V184%20H440%20V176%20H448%20V160%20H456%20V160%20H464%20V144%20H472%20V136%20H480%20V136%20H488%20V112%20H496%20V96%20H504%20V88%20H512%20V72%20H520%20V88%20H528%20V96%20H536%20V104%20H544%20V120%20H552%20V136%20H560%20V144%20H568%20V152%20H576%20V152%20H584%20V168%20H592%20V176%20H600%20V184%20H608%20V176%20H616%20V176%20H624%20V192%20H632%20V176%20H640%20V160%20H648%20V152%20H656%20V136%20H664%20V136%20H672%20V128%20H680%20V112%20H688%20V112%20H696%20V112%20H704%20V120%20H712%20V136%20H720%20V200%20Z%22%20fill%3D%22%23B9C6C4%22%2F%3E%3Cpath%20d%3D%22M128%20104h8v8h-8zM160%20104h8v8h-8zM208%20160h8v8h-8zM328%20120h8v8h-8zM336%20104h8v8h-8zM384%20160h8v8h-8zM480%20136h8v8h-8zM504%2088h8v8h-8zM536%20104h8v8h-8zM576%20152h8v8h-8zM584%20168h8v8h-8zM648%20152h8v8h-8zM712%20136h8v8h-8z%22%20fill%3D%22%2397AE96%22%2F%3E%3C%2Fsvg%3E") repeat-x 0 100%/720px 200px;-webkit-mask-image:linear-gradient(180deg,#000 40%,transparent 96%);mask-image:linear-gradient(180deg,#000 40%,transparent 96%)}
.bg-mist{position:absolute;left:0;right:0;bottom:0;height:40%;background:linear-gradient(180deg,rgba(245,242,236,0) 0%,rgba(246,243,237,.85) 30%,#F5F2EC 55%,#F3F0EA 100%)}
.bg-cloud{position:absolute;inset:0;will-change:transform}
.cl{position:absolute;display:block;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%229%22%20shape-rendering%3D%22crispEdges%22%3E%3Cpath%20d%3D%22M6%202h5V1h5v1h2v2h3v3h2v2H1V7h2V5h3z%22%20fill%3D%22%23FCFAF5%22/%3E%3Cpath%20d%3D%22M1%208h22v1H1z%22%20fill%3D%22%23EEE7DB%22/%3E%3C/svg%3E") no-repeat 0 0/100% 100%;image-rendering:pixelated;animation:drift linear infinite}
.cl.s{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2216%22%20height%3D%226%22%20shape-rendering%3D%22crispEdges%22%3E%3Cpath%20d%3D%22M4%201h5V0h3v1h2v2h2v3H0V3h2V2h2z%22%20fill%3D%22%23FCFAF5%22/%3E%3Cpath%20d%3D%22M0%205h16v1H0z%22%20fill%3D%22%23EEE7DB%22/%3E%3C/svg%3E")}
.c1{top:9%;width:120px;height:45px;animation-duration:110s;animation-delay:-20s}
.c2{top:22%;width:80px;height:30px;animation-duration:150s;animation-delay:-90s;opacity:.85}
.c3{top:4%;width:96px;height:36px;animation-duration:130s;animation-delay:-60s;opacity:.9}
.c4{top:30%;width:64px;height:24px;animation-duration:170s;animation-delay:-130s;opacity:.7}
@keyframes drift{from{transform:translate3d(-160px,0,0)}to{transform:translate3d(calc(100vw + 160px),0,0)}}
.bird{position:absolute;display:block;width:28px;height:10px;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2214%22%20height%3D%225%22%20shape-rendering%3D%22crispEdges%22%3E%3Cpath%20d%3D%22M0%200h1v1h1v1h1v1h1V2h1V1h1V0h1v1H6v1H5v1H4v1H3V3H2V2H1V1H0z%22%20fill%3D%22%238F8678%22/%3E%3Cpath%20d%3D%22M7%202h1v1h1v1h1V3h1V2h1v1h-1v1h-1v1H9V4H8V3H7z%22%20fill%3D%22%238F8678%22/%3E%3C/svg%3E") no-repeat 0 0/56px 10px;image-rendering:pixelated;animation:fly 38s linear infinite,flap .5s steps(1) infinite}
.bird.b2{top:17%;animation-delay:-14s,-.2s;transform:scale(.8)}
.bird.b1{top:13%}
.bird.b3{top:20%;animation-delay:-26s,-.1s;width:21px;height:8px;background-size:42px 8px}
@keyframes fly{0%{left:-40px;margin-top:0}50%{margin-top:-14px}100%{left:calc(100% + 40px);margin-top:0}}
@keyframes flap{0%{background-position:0 0}50%{background-position:100% 0}}
.calm .cl,.calm .bird{animation:none}
.calm .c1{left:8%}.calm .c2{left:68%}.calm .c3{left:40%}.calm .c4{left:84%}
.calm .bird{display:none}

/* 战斗端端：可点的透明热区 + 对话气泡 */
.hero-hit{position:absolute;left:0;top:0;width:76px;height:84px;border:0;background:transparent;cursor:pointer;z-index:35;opacity:0;pointer-events:none;-webkit-tap-highlight-color:transparent}
.hero-hit.on{pointer-events:auto}
.hero-hit:focus-visible{opacity:1;outline:2px solid var(--ink);outline-offset:2px}
.bubble{position:absolute;left:0;top:0;z-index:50;pointer-events:none;opacity:0;transition:opacity .15s;margin:0}
.bubble.on{opacity:1}
.bubble span{position:absolute;left:0;bottom:12px;transform:translateX(-50%);display:block;white-space:nowrap;padding:0 12px;height:34px;line-height:34px;
  background:#fff;color:var(--ink);font-weight:700;font-size:14px;box-shadow:0 0 0 3px #1B5A8E,3px 5px 0 3px rgba(26,25,23,.16)}
.bubble span::after{content:"";position:absolute;left:50%;bottom:-9px;width:8px;height:6px;margin-left:-4px;background:#1B5A8E}

.fallback{display:none}

/* 角楼热区：小旗挂在塔顶，名字只在悬停或键盘焦点时出现 */
.spot{position:absolute;left:0;top:0;width:0;height:0;text-decoration:none;opacity:0;transition:opacity .25s;will-change:transform,opacity;z-index:2;color:var(--c)}
.spot.off{pointer-events:none}
.spot .hit{position:absolute;left:0;top:0;width:60px;height:60px}
.spot .lab{position:absolute;left:0;top:0;display:block;width:52px;height:66px}
.pennant{display:block;width:52px;height:66px;overflow:visible;filter:drop-shadow(0 3px 0 rgba(26,25,23,.18))}
.pennant .cloth{transform-box:fill-box;transform-origin:0% 50%;animation:pennant-wave 2.6s ease-in-out infinite}
.s-cn .pennant .cloth{animation-delay:-.6s}
.s-math .pennant .cloth{animation-delay:-1.3s}
.s-works .pennant .cloth{animation-delay:-1.9s}
@keyframes pennant-wave{0%,100%{transform:skewY(0deg)}50%{transform:skewY(8deg)}}
.spot .name{position:absolute;left:26px;bottom:100%;transform:translate(-50%,-6px);padding:4px 8px;background:#fffaf2;color:#1A1917;
  font-size:13px;font-weight:700;white-space:nowrap;border-radius:4px;box-shadow:0 6px 16px rgba(40,30,20,.22);opacity:0;pointer-events:none}
.spot:hover .name,.spot:focus-visible .name{opacity:1}
.spot:focus-visible{outline:none}
.spot:focus-visible .pennant{outline:2px solid var(--c);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.pennant .cloth{animation:none}.spot .pennant{transition:none}}

.bar{position:absolute;left:0;right:0;bottom:max(42px,calc(env(safe-area-inset-bottom) + 32px));z-index:6;display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;min-height:44px;pointer-events:none}
.icp{position:absolute;left:0;right:0;bottom:max(4px,env(safe-area-inset-bottom));z-index:7;display:flex;justify-content:center;align-items:center;gap:10px;
  margin:0;padding:0 12px;pointer-events:none;text-align:center;font:400 11px/1.4 var(--sans);letter-spacing:.03em;color:rgb(26 25 23 / .62)}
.icp a{pointer-events:auto;color:inherit;text-decoration:none;padding:6px 8px}
.icp a:hover,.icp a:focus-visible{color:var(--ink)}
.icp-psb:empty{display:none}
.bar .hint,.bar .turn{pointer-events:auto}
.hint{font-size:13px;color:var(--muted)}
.hand{display:inline-block;font-weight:700;color:var(--ink);margin-right:4px}
.turn{height:40px;padding:0 16px;border:1px solid rgb(255 236 214 / .45);border-radius:999px;background:rgb(36 26 16 / .42);color:var(--gold-hi);font:400 12px var(--sans);letter-spacing:.12em;cursor:pointer;-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4)}
.turn:active{transform:translateY(1px)}
.turn:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* 降级：静态图 */
.nogl #castle,.nogl .bar,.nogl .hero-hit,.nogl #bubble,.nogl .bg{display:none}
.nogl .stage{height:auto;min-height:0;aspect-ratio:1/1;max-width:min(100%,640px);cursor:default}
.nogl .fallback{display:block;width:100%;height:100%;object-fit:cover}
.nogl .spot{opacity:1}
/* 不支持 aspect-ratio 的老内核 */
@supports not (aspect-ratio:1/1){.nogl .stage{height:0;padding-bottom:100%;max-width:100%}.nogl .fallback{position:absolute;inset:0}}

/* 生成静态图时用 */
.still body{background:#F3F0EA}
.still .top,.still .rooms,.still .foot,.still .spot,.still .bar,.still .hero-hit,.still #bubble{display:none}
.still .stage{width:800px;height:800px;min-height:0;max-width:none;margin:0}

/* 文字目录 */
.rooms{position:relative;z-index:1;padding-top:clamp(36px,6vw,64px);padding-bottom:clamp(36px,6vw,64px);
  background:linear-gradient(180deg,rgb(197 230 248 / 0),#f4efe4 72px)}
.rooms h2{font-family:var(--serif);font-weight:700;font-size:clamp(22px,3vw,28px);letter-spacing:.04em;margin-bottom:18px}
.room-list{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media(min-width:760px){.room-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}}
.room-list a{display:flex;align-items:center;gap:12px;min-height:72px;padding:12px;background:var(--card);text-decoration:none;
  box-shadow:0 0 0 2px var(--line);transition:box-shadow .12s}
.room-list a:hover,.room-list a:focus-visible{box-shadow:0 0 0 2px var(--c),3px 4px 0 2px rgba(26,25,23,.12);outline:none}
.room-list i{flex:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;background:var(--b);color:var(--c);
  font-style:normal;font-weight:800;font-size:14px;font-family:ui-monospace,Menlo,Consolas,monospace}
.room-list span{display:flex;flex-direction:column;min-width:0}
.room-list b{font-size:16px}
.room-list small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.foot{position:relative;z-index:1;display:flex;flex-direction:column;align-items:stretch;gap:16px;padding-top:28px;padding-bottom:44px;border-top:1px solid var(--line);font-size:13px;color:var(--muted);background:#f4efe4}
.foot-row{display:flex;flex-wrap:wrap;gap:14px 28px;align-items:center;justify-content:space-between}
.foot .credit{font-size:12px;line-height:1.55;max-width:42em}
.foot .credit p+p{margin-top:4px}
.foot .credit a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.foot .credit a:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.foot .brand svg{width:26px}
.foot .brand b{font-size:15px}

@media(max-width:520px){
  .stage{height:100vh;height:100dvh;min-height:0}
  .hint{font-size:12px;flex-basis:100%;text-align:center}
}
@media(prefers-reduced-motion:reduce){.spot,.spot .lab{transition:none}.spot.press .hit{animation:none;box-shadow:inset 0 0 0 4px rgba(255,214,120,.9)}}

/* ───────────── fairy-tale world ───────────── */
.world{position:fixed;inset:0;z-index:0;overflow:hidden;background:#c5e6f8}
@keyframes castle-ui-in{from{opacity:0}to{opacity:1}}
html.softui .top,html.softui .bar,html.softui .foot{animation:castle-ui-in .6s ease both}
@media(prefers-reduced-motion:reduce){html.softui .top,html.softui .bar,html.softui .foot{animation:none}}
#arrive-poster{position:fixed;inset:0;z-index:4;width:100%;height:100%;object-fit:cover;object-position:center center;pointer-events:none;background:#c5e6f8}
#arrive-poster.gone{display:none}
.world-sky{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 42%;pointer-events:none;user-select:none}

/* ───────────── glass nav, the same pieces as the rain curtain ───────────── */
.top{position:fixed;z-index:30;left:0;right:0;top:0;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  padding:calc(var(--pad) + 4px) var(--pad) 0;padding-top:max(calc(var(--pad) + 4px),env(safe-area-inset-top));pointer-events:none}
.top a,.top button{pointer-events:auto}
.wordmark{justify-self:start;display:flex;align-items:baseline;color:var(--gold-hi);padding:11px 18px 12px;border-radius:999px}
.wm-en{font:500 18px/1 var(--serif);letter-spacing:.18em;text-transform:uppercase;white-space:nowrap}
.nav{display:flex;gap:2px;padding:5px;border-radius:999px}
.nav a{position:relative;padding:11px 16px;border-radius:999px;font:400 12px/1 var(--sans);letter-spacing:.2em;text-transform:uppercase;color:var(--gold-hi);
  transition:background-color .4s ease,color .4s ease}
.nav a:hover,.nav a[aria-current]{background:rgb(255 246 230 / .16);color:#fff6e6}
.nav a::after{content:"";position:absolute;left:16px;right:calc(16px + .2em);bottom:7px;height:1px;background:var(--gold-hi);
  transform:scaleX(0);transform-origin:right;transition:transform .6s var(--ease)}
.nav a[aria-current]::after,.nav a:hover::after{transform:scaleX(1);transform-origin:left}
.roll{display:inline-grid;height:1.1em;overflow:hidden;line-height:1.1}
.roll>span{transition:transform .6s var(--ease)}
.roll>span+span{font-family:var(--zh);letter-spacing:.3em;text-align:center}
.nav a:hover .roll>span,.nav a:focus-visible .roll>span{transform:translateY(-100%)}
.nav a:focus-visible,.icon:focus-visible,.wordmark:focus-visible,.turn:focus-visible{outline:1px solid rgb(217 178 122 / .85);outline-offset:4px}
.actions{justify-self:end;display:flex;gap:8px}
.icon{width:46px;height:46px;display:grid;place-items:center;padding:0;border-radius:50%;color:var(--gold-hi);cursor:pointer;
  transition:background-color .4s ease,color .4s ease}
.icon:hover{background-color:rgb(255 246 230 / .18);color:#fff6e6}
.icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
#pause[aria-pressed="true"] svg{fill:currentColor}
#music-btn .slash{opacity:0}
#music-btn[aria-pressed="true"] .slash{opacity:1}
#music-btn[aria-pressed="true"]{color:var(--muted-gold)}
.wordmark,.nav,.icon{
  background:linear-gradient(180deg,rgb(255 250 240 / .28),rgb(255 244 226 / .08) 46%,rgb(40 28 16 / .2));
  background-color:rgb(36 26 16 / .42);
  -webkit-backdrop-filter:blur(22px) saturate(1.7);
  backdrop-filter:blur(22px) saturate(1.7);
  border:1px solid rgb(255 236 214 / .34);
  box-shadow:inset 0 1px 0 rgb(255 252 246 / .55),inset 0 -1px 0 rgb(0 0 0 / .22),0 10px 28px rgb(0 0 0 / .28);
}
.hint{font-size:12px;letter-spacing:.08em;color:var(--gold-hi);padding:8px 14px;border-radius:999px;
  background:rgb(36 26 16 / .38);border:1px solid rgb(255 236 214 / .28);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.hand{display:inline-block;font-weight:600;margin-right:4px;color:inherit}

#menu{position:fixed;inset:0;z-index:40;display:grid;align-content:center;justify-items:start;padding:0 clamp(24px,17vw,300px);
  background:rgb(11 8 5 / .78);backdrop-filter:blur(22px) saturate(1.1);-webkit-backdrop-filter:blur(22px) saturate(1.1);
  opacity:0;visibility:hidden;transition:opacity .7s ease,visibility 0s linear .7s}
body.menu-open #menu{opacity:1;visibility:visible;transition:opacity .7s ease}
.menu-close{position:absolute;top:max(calc(var(--pad) + 4px),env(safe-area-inset-top));right:var(--pad)}
.menu-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.menu-list a{display:flex;align-items:baseline;gap:22px;padding:6px 0;color:var(--gold);text-decoration:none}
.menu-list .n{font:400 11px/1 var(--sans);letter-spacing:.2em;color:var(--muted-gold)}
.menu-list .en{font:400 clamp(44px,7vw,92px)/1 var(--serif)}
.menu-list .zh{font:400 15px/1 var(--zh);letter-spacing:.3em;color:var(--muted-gold)}
.menu-list a[aria-current] .en{color:var(--gold-hi)}

body::after{content:"";position:fixed;inset:0;z-index:80;background:#0b0805;opacity:0;pointer-events:none;transition:opacity .48s ease}
body.leaving::after{opacity:1}

html.veil,html.veil body{overflow:hidden}
html.veil:not(.show-ui) .top,html.veil:not(.show-ui) .rooms,html.veil:not(.show-ui) .foot,html.veil:not(.show-ui) .bar,html.veil:not(.show-ui) #menu,html.veil:not(.show-ui) .spot,html.veil:not(.show-ui) .icp,html.veil:not(.show-ui) #bubble{opacity:0!important;pointer-events:none!important}
html.veil.show-ui .top,html.veil.show-ui .bar,html.veil.show-ui .foot,html.veil.show-ui .icp{animation:castle-ui-in .55s ease both}
html.veil .stage{height:100vh;height:100dvh;min-height:0}
@media(max-width:900px){
  .nav{display:none}
  .top{grid-template-columns:1fr auto}
}
@media(prefers-reduced-motion:reduce){
  .roll>span,.nav a,.nav a::after,.icon{transition:none}
}
