/* The district is an original, self-contained game shell. Portfolio dialogs keep their own styles. */
.cw-section { --cw-ink:#ececfa; --cw-muted:#adabc5; --cw-line:#aaa1d92b; --cw-cyan:#72f0e0; --cw-pink:#ff91bc; background:#0b0d1c; color:var(--cw-ink); }
.cw-shell { position:relative; isolation:isolate; width:100%; height:calc(100svh - var(--cw-header-height,88px)); min-height:630px; max-height:1000px; overflow:hidden; background:radial-gradient(ellipse at 50% 30%,#343050,#101222 70%); }
.cw-scene,.cw-vignette { position:absolute; inset:0; }
#cw-canvas { display:block; width:100%; height:100%; outline:none; touch-action:none; cursor:crosshair; }
#cw-canvas:focus-visible { box-shadow:inset 0 0 0 2px var(--cw-cyan); }
.cw-vignette { pointer-events:none; background:linear-gradient(180deg,#0c0d2166,transparent 20%,transparent 75%,#080b188c); z-index:1; }
.cw-topline { position:absolute; left:32px; top:26px; right:32px; z-index:2; display:flex; align-items:center; gap:22px; pointer-events:none; }
.cw-brand { font-family:'IBM Plex Mono',monospace; font-size:19px; font-weight:500; letter-spacing:-1px; color:var(--cw-cyan); }
.cw-brand span { font-size:11px; letter-spacing:2px; color:#fff; }
.cw-chapter { padding-left:20px; border-left:1px solid var(--cw-line); font-family:'IBM Plex Mono',monospace; font-size:10px; letter-spacing:1.4px; color:var(--cw-muted); }
.cw-toolbar { position:absolute; top:20px; right:28px; display:flex; gap:6px; z-index:4; }
.cw-section button,.cw-section select,.cw-section a { -webkit-tap-highlight-color:transparent; }
.cw-toolbar button { color:var(--cw-ink); background:#111324b3; border:1px solid var(--cw-line); border-radius:7px; min-height:38px; padding:8px 12px; font-size:11px; backdrop-filter:blur(15px); }
.cw-toolbar button:hover { border-color:var(--cw-cyan); background:#202837; }
.cw-section button:focus-visible,.cw-section a:focus-visible,.cw-section select:focus-visible { outline:2px solid var(--cw-cyan); outline-offset:4px; }
.cw-intro { position:absolute; left:5vw; bottom:10%; width:440px; max-width:calc(100% - 48px); z-index:3; padding:25px 28px 26px; border:1px solid #a2a2ce40; border-radius:5px 24px 5px 5px; background:linear-gradient(130deg,#131627ef,#14152baa); backdrop-filter:blur(20px); box-shadow:0 20px 80px #05081040; }
.cw-intro-number { font-family:'IBM Plex Mono',monospace; font-size:9px; letter-spacing:1.7px; color:var(--cw-cyan); margin-bottom:15px; }
.cw-intro h1 { color:#f5f2ff; font-size:clamp(40px,4vw,66px); font-family:'Instrument Serif',serif; line-height:1.05; letter-spacing:-1.5px; margin:0 0 22px; }
.cw-intro h1 em { color:#b5b3ff; font-weight:400; }
html[lang^=zh] .cw-intro h1 { font-size:clamp(32px,3.2vw,47px); line-height:1.45; letter-spacing:0; }
.cw-intro p { font-size:13px; line-height:1.85; margin-bottom:22px; max-width:345px; color:#c0bfd5; }
.cw-intro-buttons { display:flex; align-items:center; gap:22px; }
.cw-primary { background:var(--cw-cyan); color:#102125; border:none; border-radius:5px; padding:15px 20px; font-size:13px; font-weight:600; display:flex; align-items:center; gap:25px; box-shadow:0 0 30px #57edcd23; }
.cw-primary:hover { background:#bdfff3; transform:translateY(-2px); }
.cw-intro-buttons .cw-inline-button { font-size:11px; color:#eceaf9; background:transparent; border:0; white-space:nowrap; border-bottom:1px solid #9196a1; padding:5px 0; }
.cw-intro > small { display:block; margin-top:18px; max-width:320px; font-size:10px; color:#989cb6; line-height:1.7; }
.cw-objective { position:absolute; left:28px; top:83px; z-index:3; width:252px; padding:18px; background:#101525cf; border:1px solid var(--cw-line); border-radius:4px 18px 4px 4px; backdrop-filter:blur(15px); }
.cw-objective-top { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--cw-cyan); font-family:'IBM Plex Mono',monospace; font-size:9px; letter-spacing:1px; margin-bottom:13px; }
.cw-objective-top button { background:#65e8cf16; border:1px solid #65e8cf40; color:#b7f9e9; border-radius:30px; padding:5px 8px; font-size:10px; }
.cw-objective label { display:block; font-size:10px; color:var(--cw-muted); margin-bottom:5px; }
.cw-objective h3 { display:none; }
.cw-objective select { width:100%; background:#1b2338; color:#fcfaff; border:1px solid #aabbdc3b; border-radius:5px; font-size:13px; padding:10px 28px 10px 10px; cursor:pointer; }
.cw-objective p { font-size:12px; line-height:1.8; color:#c0c4d9; margin:13px 0; }
.cw-route-button { display:flex; align-items:center; gap:8px; width:100%; background:transparent; border:1px solid #5bccb35c; border-radius:4px; color:#a2f7e2; padding:10px; text-align:left; font-size:11px; }
.cw-route-button:hover { background:#5bccb315; }
.cw-route-button small { margin-left:auto; color:#7ba2a5; font-size:10px; }
.cw-carry { font-size:10px; color:#969fba; padding-top:13px; }
.cw-carry span { color:var(--cw-pink); padding-right:5px; }
.cw-unlocks { position:absolute; z-index:3; top:86px; right:28px; padding:14px 16px; background:#17162ab8; border:1px solid var(--cw-line); border-radius:15px 4px 4px 4px; backdrop-filter:blur(15px); }
.cw-progress-label { display:block; font-family:'IBM Plex Mono',monospace; font-size:8px; color:#b9a9d5; letter-spacing:1.1px; margin-bottom:12px; }
.cw-unlocks > div { display:flex; gap:13px; }
.cw-unlocks button { border:0; background:transparent; color:var(--cw-cyan); padding:0; width:34px; min-height:43px; }
.cw-unlocks button > span { display:block; font-size:21px; margin-bottom:4px; }
.cw-unlocks small { font-size:9px; color:#d0cdda; }
.cw-unlocks button:disabled { opacity:.24; cursor:default; }
.cw-unlocks button:not(:disabled):hover { color:#fff; transform:translateY(-3px); }
.cw-context { position:absolute; z-index:4; bottom:89px; left:50%; transform:translateX(-50%); text-align:center; }
.cw-context button { display:flex; align-items:center; gap:15px; white-space:nowrap; color:#e6fffb; background:#152b32e8; border:1px solid #8df4e0; border-radius:6px; padding:11px 18px; box-shadow:0 3px 20px #0a142ac4; font-size:13px; }
.cw-context button kbd { display:inline-flex; align-items:center; justify-content:center; width:25px; height:25px; border:1px solid #8df4e099; background:#e4fff118; font-family:'IBM Plex Mono',monospace; border-radius:4px; }
.cw-context > small { display:block; font-size:10px; color:#b4bdc8; margin-top:7px; }
.cw-controls { position:absolute; z-index:2; bottom:21px; left:30px; right:30px; display:flex; gap:20px; align-items:center; font-size:10px; color:#8997b1; pointer-events:none; }
.cw-controls kbd { font-family:'IBM Plex Mono',monospace; font-size:10px; color:#bbc7d6; }
.cw-controls #cw-pad-status { margin-left:auto; color:var(--cw-cyan); }
.cw-touch { position:absolute; z-index:3; bottom:58px; left:26px; right:26px; display:flex; align-items:flex-end; justify-content:space-between; pointer-events:none; }
.cw-dpad { display:grid; grid-template-columns:42px 42px 42px; grid-template-rows:42px 42px; gap:4px; pointer-events:auto; opacity:.78; }
.cw-dpad button { background:#172b3bb5; border:1px solid #c6dcff42; color:#e8edff; border-radius:6px; font-size:16px; touch-action:none; }
.cw-dpad button:active { background:#57bd9b66; }
.cw-dpad [data-direction=up] { grid-column:2; }
.cw-dpad [data-direction=left] { grid-row:2; }
.cw-dpad [data-direction=down] { grid-row:2; grid-column:2; }
.cw-dpad [data-direction=right] { grid-row:2; grid-column:3; }
.cw-actions { display:flex; gap:7px; pointer-events:auto; align-items:center; }
.cw-actions button { border:1px solid #c6dcff42; border-radius:50%; min-width:42px; min-height:42px; color:#d9e2ee; background:#172b3bb5; font-size:11px; }
.cw-actions button:disabled { opacity:.25; }
.cw-actions button[aria-pressed=true] { border-color:#79f3d5; color:#79f3d5; }
.cw-actions .cw-action-e { border-color:#79f3d5; color:#79f3d5; min-width:52px; min-height:52px; font-size:17px; }
.cw-toast { position:absolute; z-index:7; bottom:163px; left:50%; transform:translateX(-50%); max-width:min(450px,85vw); width:max-content; padding:13px 20px; color:#c8ffea; border:1px solid #72f0e05c; border-radius:7px; background:#142837f5; box-shadow:0 12px 40px #0d091977; font-size:12px; line-height:1.7; text-align:center; }
.cw-bottomline { min-height:47px; display:flex; justify-content:space-between; align-items:center; padding:14px 30px; gap:20px; color:#999bb6; border-top:1px solid var(--cw-line); font-size:10px; }
.cw-skip { color:#bdf8e6; text-decoration:none; white-space:nowrap; }
.cw-fallback { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:8; width:440px; max-width:90%; padding:30px; border:1px solid #bdd8ff50; border-radius:12px; background:#182033f2; }
.cw-fallback h2 { color:#fff; font-size:26px; }.cw-fallback p { font-size:14px; line-height:1.7; color:#c2c7da; }
.cw-fallback a,.cw-fallback button { display:inline-block; margin-top:15px; color:#a7ffe3; }.cw-fallback button { border:1px solid #72f0e0; background:transparent; border-radius:5px; padding:10px; margin-right:15px; }
.cw-section [hidden] { display:none !important; }
.cw-dialog { width:min(1080px,calc(100vw - 40px)); max-height:88svh; overflow:auto; padding:0; background:#141a2b; color:#eef0fd; border:1px solid #9cbae763; border-radius:14px; box-shadow:0 30px 100px #050917c9; }
.cw-dialog::backdrop { background:#050714b3; backdrop-filter:blur(8px); }
.cw-dialog-head { position:sticky; top:0; z-index:2; display:flex; justify-content:space-between; align-items:center; gap:20px; padding:23px 30px; background:#141a2bf5; border-bottom:1px solid #91a9c529; backdrop-filter:blur(15px); }
.cw-dialog-head span { color:#9ecabe; font-family:'IBM Plex Mono',monospace; font-size:9px; letter-spacing:1.5px; }
.cw-dialog-head [data-cw="close-journal"] { flex-shrink:0; }
.cw-journal-nav { padding:18px 30px 0; font-size:12px; }
.cw-portfolio-link { color:#b9e8d9; text-underline-offset:4px; }
.cw-dialog h2 { font-family:'Instrument Serif',serif; color:#eceffb; font-size:35px; font-weight:400; margin:5px 0 0; line-height:1.2; }
html[lang^=zh] .cw-dialog h2 { font-size:24px; line-height:1.5; }
.cw-dialog button { color:#c3fce6; background:#b3eace0c; border:1px solid #92cbb747; border-radius:5px; padding:10px 14px; font-size:12px; }
.cw-dialog button:focus-visible,.cw-dialog a:focus-visible { outline:2px solid #7ff5d9; outline-offset:4px; }
#cw-records { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; padding:30px; }
.cw-record { overflow:hidden; border:1px solid #8192b42e; background:#1a2437; border-radius:7px; }
.cw-record-featured { border-color:#6dddc7; box-shadow:0 0 24px #39c7991a; }
.cw-record > img,.cw-paper { display:block; width:100%; height:250px; object-fit:cover; background:#e8edee; }
.cw-record > img.cw-contain { object-fit:contain; background:#edece1; }
.cw-paper { text-align:center; font-size:65px; line-height:1.5; color:#647ba1; padding:20px; }
.cw-record-copy { padding:24px; }.cw-record-copy > span { font-size:10px; color:#8ee5ca; }
.cw-record h3 { font-size:21px; color:#f6f8ff; margin:10px 0; }.cw-record p { font-size:13px; line-height:1.85; color:#b9c5d5; margin:0 0 18px; }
.cw-record-copy > small { display:block; color:#a1aac6; font-size:11px; margin-bottom:16px; }
.cw-record-links { display:flex; flex-wrap:wrap; gap:9px 15px; align-items:center; }.cw-record-links a { font-size:11px; color:#aef5dc; text-decoration:none; border-bottom:1px solid #657b86; padding:6px 0; }
.cw-help { max-width:620px; }.cw-help #cw-help-copy { padding:24px 30px 32px; }
.cw-help p { font-size:14px; line-height:1.85; color:#b8c4d8; }.cw-help dl { border-top:1px solid #9ac0d52b; border-bottom:1px solid #9ac0d52b; padding:15px 0; }.cw-help dl > div { display:flex; gap:25px; align-items:center; padding:10px 0; }.cw-help dt { font-family:'IBM Plex Mono',monospace; color:#bff8de; font-size:12px; min-width:150px; }.cw-help dd { margin:0; color:#b8c4d8; font-size:12px; }
.cw-help .cw-save-note { font-size:11px; color:#8e9ab4; }.cw-help a { display:block; color:#aef5dc; font-size:12px; margin:20px 0; }.cw-help .cw-reset { color:#b8bed0; border-color:#7d829952; background:transparent; }
.cw-photo { max-width:760px; }.cw-photo > img { display:block; width:100%; max-height:60svh; object-fit:contain; background:#080c18; }.cw-photo > a { display:block; margin:20px auto; padding:12px 24px; width:max-content; background:#72f0e0; border-radius:5px; color:#132c31; text-decoration:none; font-size:14px; }
body.adventure-view .site-header { background:#111525f5; border-color:#7a90ab26; color:#d7dfed; }
body.adventure-view .site-header .wordmark,body.adventure-view .site-header nav a,body.adventure-view .site-header .city-projects-nav { color:#d0d5e6; }
body.adventure-view .site-header nav a.aw-nav-resume { color:#adeddc; }
body.adventure-view .site-header .wordmark-symbol { color:#80eed7; }
body.adventure-view .site-header .nav-contact { color:#80eed7; background:#65ac9714; border-color:#6ebda657; }
body.adventure-view .site-header .language-toggle,body.adventure-view .site-header .motion-toggle { color:#c4ddda; background:transparent; border-color:#789daa4d; }
@media (min-width:1100px) { .cw-dpad { opacity:.45; }.cw-dpad:hover { opacity:1; } }
@media (max-width:1100px) { .cw-chapter { display:none; }.cw-brand span { font-size:9px; }.cw-toolbar { right:20px; }.cw-topline { left:22px; }.cw-objective { left:20px; width:220px; top:77px; }.cw-unlocks { top:77px; right:20px; }.cw-intro { left:30px; width:390px; } }
@media (max-width:760px) {
  .cw-shell { min-height:480px; }
  .cw-topline { top:18px; left:16px; }.cw-brand { font-size:16px; }.cw-brand span { font-size:8px; letter-spacing:1.2px; }
  .cw-toolbar { top:48px; right:16px; left:16px; gap:6px; }.cw-toolbar button { min-height:35px; padding:7px 12px; flex:1; font-size:10px; }
  .cw-objective { top:98px; left:16px; width:210px; padding:12px; }.cw-objective p { font-size:10px; margin:10px 0; }.cw-objective label { display:none; }.cw-objective select { font-size:11px; padding:8px; }.cw-objective-top { font-size:8px; margin-bottom:9px; }.cw-carry { font-size:9px; }.cw-route-button { padding:8px; font-size:10px; }
  .cw-objective:not(.cw-expanded) p,.cw-objective:not(.cw-expanded) select,.cw-objective:not(.cw-expanded) .cw-carry { display:none; }
  .cw-objective:not(.cw-expanded) h3 { display:block; font-size:12px; color:#d9f5ed; margin:10px 0; }
  .cw-unlocks { top:98px; right:14px; width:48px; padding:8px; border-radius:8px; }.cw-progress-label { display:none; }.cw-unlocks > div { flex-direction:column; gap:5px; }.cw-unlocks button { width:30px; min-height:36px; }.cw-unlocks button > span { font-size:17px; }.cw-unlocks small { font-size:8px; }
  .cw-intro { left:16px; bottom:90px; width:calc(100% - 32px); max-width:100%; padding:23px; }.cw-intro h1 { font-size:45px; }.cw-intro p { font-size:12px; }.cw-intro-buttons { gap:16px; }.cw-primary { padding:12px 16px; font-size:12px; }.cw-intro-number { font-size:8px; }.cw-intro > small { font-size:9px; }
  .cw-controls { left:16px; right:16px; bottom:16px; font-size:9px; gap:10px; flex-wrap:wrap; }.cw-controls > span:nth-child(3) { display:none; }
  .cw-touch { bottom:51px; left:16px; right:16px; }.cw-context { bottom:155px; }.cw-context button { font-size:11px; padding:8px 13px; gap:9px; }.cw-toast { bottom:213px; font-size:11px; }
  .cw-bottomline { padding:12px 16px; gap:12px; font-size:9px; }.cw-disclaimer { max-width:55%; line-height:1.7; }
  .cw-dialog { width:calc(100vw - 20px); max-height:92svh; }.cw-dialog-head { padding:18px; }.cw-dialog h2 { font-size:27px; }html[lang^=zh] .cw-dialog h2 { font-size:19px; }
  #cw-records { grid-template-columns:1fr; padding:18px; gap:18px; }.cw-record > img { height:260px; }.cw-record-copy { padding:20px; }
  .cw-help #cw-help-copy { padding:18px; }.cw-help dl>div { display:block; }.cw-help dd { margin-top:6px; }
}
@media (prefers-reduced-motion:reduce) { .cw-section button { transition:none !important; transform:none !important; } }
