@font-face{font-family:GalgameWenKai;src:url('fonts/galgame-wenkai-regular.woff2') format('woff2');font-weight:400;font-display:block}
@font-face{font-family:GalgameUI;src:url('fonts/galgame-ui-regular.woff2') format('woff2');font-weight:400;font-display:block}
:root{--ink:#383c36;--muted:#77796b;--paper:#f4f0e6;--accent:#a6603f;--sage:#40564d;--text-size:23px;--safe-bottom:env(safe-area-inset-bottom,0px);--safe-top:env(safe-area-inset-top,0px);color-scheme:light}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
[hidden]{display:none!important}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#222923;color:var(--ink);font-family:GalgameUI;overscroll-behavior:none}
button,input,select{font:inherit}button{cursor:pointer;color:inherit;background:none;border:0;padding:0;touch-action:manipulation}button:disabled{cursor:default;opacity:.36}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:5px}img{-webkit-user-drag:none;pointer-events:none}h1,h2,p{margin:0}button{transition:color .2s,background .2s,opacity .2s,transform .2s}button:hover{color:var(--accent)}
#game-shell{position:relative;width:min(100vw,1920px);height:100dvh;margin:auto;overflow:hidden;background:var(--paper);isolation:isolate}
#scene{position:absolute;inset:0;overflow:hidden;background:#d4d2bd;perspective:1400px}
#room{width:100%;height:100%;object-fit:cover;object-position:50% 50%;transform:scale(1.025);filter:saturate(.82);transition:transform 1.2s ease,filter .8s;}
#curtain-light{position:absolute;inset:0;background:linear-gradient(110deg,transparent 45%,#fffbd61c 70%,transparent 85%);pointer-events:none;animation:daylight 16s ease-in-out infinite alternate}
@keyframes daylight{to{opacity:.45;transform:translateX(2%)}}
#actors{position:absolute;inset:0;pointer-events:none;transition:opacity .4s,transform .9s cubic-bezier(.2,.65,.2,1)}
.actor{position:absolute;height:143%;width:auto;max-width:none;top:1.5%;left:calc(74% - 47.66vh);opacity:0;filter:drop-shadow(3px 7px 5px #302d181c);transition:opacity .28s ease;transform-origin:50% 25%;}
.actor.visible{opacity:1;animation:breath 7s ease-in-out infinite alternate}
@keyframes breath{to{transform:translateY(2px) scale(1.003)}}
#game-shell[data-shot="portrait"] #actors{transform:translate(-18%,1%) scale(1.12)}
#game-shell[data-shot="board"] #actors{transform:translateX(10%);opacity:1}
#game-shell[data-shot="portrait"] #room{transform:scale(1.055) translateX(1%)}
#board-wrap{position:absolute;left:7%;top:13%;width:48%;height:49%;transform-origin:center;transition:transform .85s cubic-bezier(.2,.65,.2,1),opacity .45s;}
#board{position:relative;height:100%;width:100%;background:#2c4943;border:10px solid #826a4c;outline:1px solid #d1ba91;box-shadow:inset 0 0 0 2px #182b22,2px 4px 7px #2a291f40,0 0 0 2px #66543e;border-radius:3px;color:#eceede;}
#board::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(120deg,#e6e4c511,transparent 45%,#091c1930);box-shadow:inset 0 3px 12px #12272050}
.chalk-grain{position:absolute;inset:0;opacity:.12;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='.55' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.45' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
.board-legs{position:absolute;width:66%;height:160%;left:17%;top:0;border-left:11px solid #705a40;border-right:11px solid #705a40;transform:perspective(800px) rotateX(8deg);box-shadow:2px 3px 3px #29201330}
.chalk-tray{position:absolute;bottom:-17px;left:-15px;right:-15px;height:9px;background:#a48b63;border-bottom:3px solid #6c593e;box-shadow:1px 3px 4px #1114}
.chalk-tray i{position:absolute;right:21%;bottom:8px;background:#dedbc9;width:24px;height:6px;transform:rotate(-3deg);border-radius:2px}.chalk-tray b{position:absolute;right:6%;bottom:7px;background:#b49c75;border-bottom:6px solid #293a2c;width:40px;height:17px;transform:rotate(1deg)}
#board-copy{position:relative;z-index:1;height:100%;padding:6% 7%;font-family:GalgameWenKai;display:flex;flex-direction:column;justify-content:center;gap:4%;line-height:1.35;text-shadow:.4px .6px #efeedc30;overflow:hidden}
.chalk-word{font-size:clamp(28px,4.1vw,74px);line-height:1.1;letter-spacing:.015em;align-self:flex-start;border-bottom:3px solid #c7b972aa;padding-bottom:3px;margin-bottom:1%}
.chalk-meaning{font-size:clamp(15px,1.7vw,30px);white-space:nowrap;color:#d3d9c3}
.chalk-sentence{font-size:clamp(20px,2.45vw,42px);line-height:1.35;max-width:100%;margin-top:3%;}
.chalk-sentence em{font-style:normal;color:#dfce7e}.chalk-translation{font-size:clamp(17px,1.85vw,32px);color:#e6e8d6}
.chalk-reveal{animation:chalkWrite .85s steps(28,end) both}
@keyframes chalkWrite{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
#board.turn{animation:turnBoard .65s ease both}@keyframes turnBoard{0%{transform:rotateY(86deg);opacity:.15}100%{transform:rotateY(0);opacity:1}}
#board.erase::before{content:'';position:absolute;inset:0;z-index:3;background:linear-gradient(90deg,transparent,#d6e1c04a,transparent);animation:erase .65s ease both}@keyframes erase{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
#game-shell[data-shot="board"] #board-wrap{transform:scale(1.1) translateX(2%)}
#game-shell[data-shot="portrait"] #board-wrap{opacity:0;transform:translateX(-35%)}
#impact{position:absolute;inset:0;pointer-events:none;background:#e7ddaa;opacity:0}#impact.flash{animation:impact .42s ease}@keyframes impact{0%{opacity:.3}100%{opacity:0}}
#advance-area{position:absolute;inset:0;z-index:4;width:100%;height:100%;cursor:default;touch-action:pan-y}
#scene-error{position:absolute;inset:15% 15% 45%;z-index:6;background:#f3eee9ee;padding:2rem;display:grid;place-content:center;gap:1rem;text-align:center}
#scene-error button{border-bottom:1px solid var(--accent);padding:8px}
#title-screen{position:absolute;inset:0;z-index:6;background:linear-gradient(90deg,#f5f0e9ed 0%,#f5f0e9c2 28%,#f5f0e900 65%)}
.title-content{position:absolute;left:10%;top:20%;width:35%;animation:titleIn .9s ease both}
.title-flower{display:block;color:#b67449;width:34px;height:34px;fill:currentColor;margin-bottom:26px}
h1{font-family:GalgameWenKai;font-weight:400;font-size:clamp(38px,4.7vw,80px);letter-spacing:.03em;white-space:nowrap;color:#3e4a3f}
.chapter-name{font-family:GalgameWenKai;font-size:22px;letter-spacing:.18em;margin-top:18px;color:#6c7362}
.title-actions{display:flex;flex-direction:column;gap:2px;width:235px;margin-top:50px}.title-actions button{min-height:49px;border-bottom:1px solid #6f776036;text-align:left;font-size:16px;letter-spacing:.14em;padding:12px 3px;display:flex;justify-content:space-between;align-items:center}.title-actions button span{font-size:17px;opacity:.6}.title-actions button:hover{padding-left:12px;background:#faf5eb42}.edition{position:absolute;bottom:25px;left:10%;color:#686e61;font-size:11px;letter-spacing:.25em}
@keyframes titleIn{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
#reading-screen{position:absolute;inset:0;z-index:5;pointer-events:none}
.reading-header{position:absolute;top:0;left:0;right:0;padding:calc(18px + var(--safe-top)) 30px 16px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(#f2f0e4cc,transparent);font-size:13px;letter-spacing:.1em;pointer-events:none}
.reading-header p{display:flex;align-items:center;gap:10px}.chapter-mark{display:block;width:5px;height:5px;background:#a5714b;transform:rotate(45deg)}.reading-header nav{display:flex;gap:7px;pointer-events:auto}.reading-header button{min-height:38px;min-width:52px;background:#f6f1e69c;border:1px solid #fff8;padding:5px 12px}
#dialogue{position:absolute;bottom:calc(20px + var(--safe-bottom));left:8%;right:8%;pointer-events:auto;padding:20px 30px 0;background:linear-gradient(115deg,#fbf7edf7,#f4f0e8f5);box-shadow:0 5px 40px #24372416;border:1px solid #fff9;outline:1px solid #6f7d5c2b;outline-offset:5px;}
#dialogue::before{content:'';position:absolute;top:0;left:0;width:3px;height:48px;background:#b68056}
.dialogue-top{display:flex;justify-content:space-between;align-items:center;min-height:24px;margin-bottom:10px;gap:10px}.speaker-wrap{display:flex;align-items:baseline;gap:14px;min-width:0;flex-wrap:wrap}#speaker{font-size:17px;color:#755638;letter-spacing:.05em;font-family:GalgameUI}#channel{font-size:11px;color:#8c8171;letter-spacing:.1em;border-left:1px solid #b1aa96;padding-left:13px}#page-indicator{font-size:10px;color:#a09c8b;white-space:nowrap}
#dialogue-advance{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:start;width:100%;position:relative;text-align:left;cursor:default;touch-action:pan-y;font-family:GalgameWenKai;font-size:var(--text-size);line-height:1.65;color:var(--ink);min-height:82px;padding:0 28px 4px 0;}
#dialogue-advance:hover{color:var(--ink)}#line{display:block;white-space:pre-wrap;overflow-wrap:anywhere;min-height:2em}#advance-mark{position:absolute;right:2px;bottom:9px;width:7px;height:7px;border-right:1px solid #a8815d;border-bottom:1px solid #a8815d;transform:rotate(45deg);opacity:.7;animation:tick 1.6s ease infinite}
@keyframes tick{50%{transform:translateY(3px) rotate(45deg);opacity:.3}}#game-shell[data-busy="true"] #advance-mark{opacity:0;animation:none}
#dialogue[data-channel="thought"] #line{color:#6d675d}#dialogue[data-channel="thought"]::before{background:#929b83}
.reading-controls{height:46px;margin-top:8px;border-top:1px solid #7f816423;display:flex;align-items:center;justify-content:flex-end;gap:24px;color:#858572;font-size:12px;letter-spacing:.04em}.reading-controls button{min-width:35px;min-height:38px;padding:5px 5px}.control-left{display:flex;gap:18px;margin-right:auto}#rates{display:flex;gap:4px}#rates button[aria-pressed="true"]{color:#836244;position:relative}#rates button[aria-pressed="true"]::after{content:'';position:absolute;bottom:4px;left:35%;right:35%;height:1px;background:#b5875e}button[aria-pressed="true"]#auto,button[aria-pressed="true"]#fast{color:var(--accent)}#music svg{width:18px;height:18px;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}#music[aria-pressed="false"]{opacity:.38}
#choices{display:flex;gap:10px;margin:5px 0 18px}#choices button{flex:1;text-align:left;border:1px solid #a6aa8d;min-height:49px;padding:12px 16px;font-family:GalgameWenKai;font-size:20px;background:#fff8;box-shadow:0 2px 0 #b7b89e30}#choices button:hover{background:#e2e6d8;border-color:#7b8f7c}
#ending{display:flex;align-items:center;gap:24px;margin:10px 0 20px;font-size:13px}#ending>span{margin-right:auto;color:#92917c;letter-spacing:.1em}#ending button{padding:10px 0;border-bottom:1px solid #b6b79f}
#font-measure{position:fixed;left:-10000px;top:0;visibility:hidden;white-space:pre-wrap;overflow-wrap:anywhere;font-family:GalgameWenKai;font-size:var(--text-size);line-height:1.65}
#toast{position:absolute;z-index:20;left:50%;top:calc(70px + var(--safe-top));transform:translateX(-50%);max-width:90%;padding:10px 16px;background:#f9f4e9f0;box-shadow:0 3px 15px #24372422;font-size:13px;text-align:center}
dialog{border:1px solid #b8b8a2;background:#f4f0e7;color:var(--ink);max-width:min(460px,calc(100vw - 36px));width:460px;max-height:calc(100dvh - 50px);padding:0;box-shadow:0 18px 70px #161e2a4d}dialog::backdrop{background:#1b282b60;backdrop-filter:blur(5px)}dialog>header{padding:21px 25px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #868c6926}dialog h2{font:25px GalgameWenKai}dialog header button{font-size:26px;min-width:35px;min-height:35px;color:#93967d}#panel-body{max-height:calc(100dvh - 155px);padding:16px 25px 25px;overflow:auto;overscroll-behavior:contain}#panel-body>p{font-size:14px;line-height:1.9;margin:6px 0 22px;color:#7c806e}.panel-actions{display:flex;flex-direction:column;gap:9px}.panel-actions button{border-bottom:1px solid #a5ac912e;min-height:46px;text-align:left;padding:10px 6px}.panel-actions button.primary{color:var(--accent)}.setting{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:66px;border-bottom:1px solid #9b9e8426;font-size:14px}.setting input[type="checkbox"]{appearance:none;width:36px;height:20px;border:1px solid #afb299;border-radius:12px;background:#d0d2c3;position:relative;cursor:pointer}.setting input[type="checkbox"]::before{content:'';position:absolute;width:14px;height:14px;left:2px;top:2px;background:#faf8ef;border-radius:50%;transition:transform .2s}.setting input:checked{background:#708670;border-color:#708670}.setting input:checked::before{transform:translateX(16px)}.setting-options{display:flex;gap:6px}.setting-options button{min-width:35px;min-height:38px;font:18px GalgameWenKai}.setting-options button[aria-pressed="true"]{background:#e4e5d4;color:#697357}.setting-output{font-size:12px;color:#8d927c}.log-entry{padding:15px 0;border-bottom:1px solid #bfc2ac55}.log-entry small{display:block;color:#9a8367;font-size:11px;margin-bottom:6px}.log-entry p{font:20px/1.7 GalgameWenKai}.log-entry[data-thought="true"] p{color:#7d7e6e}
@media(min-width:1500px){#dialogue{left:13%;right:13%;bottom:30px;padding:24px 40px 0}#dialogue-advance{min-height:94px}.reading-controls{height:50px}}
@media(max-width:700px) and (orientation:portrait){
  #scene{top:calc(57px + var(--safe-top));bottom:auto;width:100%;height:57dvh;min-height:285px;border-top:1px solid #969c7b55;border-bottom:1px solid #969c7b66}
  #room{object-position:62% 50%;transform:scale(1.01)}
  .actor{height:155%;top:4%;left:calc(51% - 29.45dvh)}
  #actors{transform:translateX(14%)}
  #game-shell[data-shot="portrait"] #actors{transform:translateX(0) scale(1.05)}
  #game-shell[data-shot="board"] #actors{transform:translateX(120%);opacity:0}
  #board-wrap{left:5%;top:14%;width:76%;height:46%;transform:translateX(-38%);opacity:1}
  #board{border-width:8px}.board-legs{border-width:8px}
  #board-copy{padding:6% 7%;gap:5%}
  #game-shell[data-shot="board"] #board-wrap{width:92%;height:57%;left:4%;top:16%;transform:none;opacity:1}
  #game-shell[data-shot="portrait"] #board-wrap{transform:translateX(-110%);opacity:0}
  .chalk-word{font-size:43px}.chalk-meaning{font-size:17px}.chalk-sentence{font-size:24px}.chalk-translation{font-size:21px}
  #dialogue{left:0;right:0;bottom:0;top:calc(57dvh + 58px + var(--safe-top));padding:19px 25px calc(8px + var(--safe-bottom));box-shadow:none;border:0;outline:0;background:var(--paper);display:flex;flex-direction:column;min-height:0}
  #dialogue::before{left:25px;top:0;width:28px;height:2px}#dialogue-advance{min-height:0;flex:1;padding:0 19px 4px 0;overflow:hidden}.dialogue-top{margin-bottom:12px;min-height:23px}#speaker{font-size:16px}#channel{font-size:11px}.reading-controls{flex-shrink:0;gap:10px;margin-top:10px;height:43px}.control-left{gap:14px}.reading-controls button{min-height:40px}#line{min-height:0}
  .reading-header{padding:calc(10px + var(--safe-top)) 20px 9px;background:none;height:calc(57px + var(--safe-top));font-size:11px;letter-spacing:.02em}.reading-header button{border:0;background:none;min-width:42px;padding:5px}.reading-header nav{gap:1px}
  #choices{position:absolute;bottom:calc(100% + 24px);left:25px;right:25px;flex-direction:column;gap:9px;margin:0}#choices button{background:#f7f3e8f5;box-shadow:0 3px 15px #17282119;text-align:center;flex:none;font-size:19px;padding:10px 12px;min-height:46px}
  #ending{margin:4px 0 3px;gap:15px;font-size:12px;flex-wrap:wrap}#ending button{padding:8px 0}#ending>span{font-size:11px}
  #game-shell[data-screen="title"] #scene{inset:0;height:100%;border:0}
  #game-shell[data-screen="title"] .actor{height:109%;top:3%;left:calc(56% - 36.33dvh)}
  #game-shell[data-screen="title"] #actors{transform:translateX(18%)}
  #title-screen{background:linear-gradient(0deg,#f6f0e8 2%,#f6f0e8e6 20%,#f6f0e82e 48%,transparent 65%)}
  .title-content{left:9%;top:auto;bottom:7%;width:82%}.title-flower{font-size:26px;margin-bottom:13px}h1{font-size:43px}.chapter-name{font-size:17px;margin-top:10px}.title-actions{margin-top:24px;width:100%;gap:0;max-width:280px}.title-actions button{min-height:45px;font-size:14px}.edition{left:auto;right:9%;bottom:3%;font-size:10px}
}
@media(max-width:700px) and (orientation:portrait) and (max-height:700px){
 #scene{height:49dvh;min-height:0}#dialogue{top:calc(49dvh + 58px + var(--safe-top));padding:13px 20px calc(4px + var(--safe-bottom))}.dialogue-top{margin-bottom:6px}.actor{left:calc(51% - 25.32dvh)}.reading-controls{margin-top:6px}.chalk-word{font-size:34px}.chalk-meaning{font-size:14px}.chalk-sentence{font-size:20px}.chalk-translation{font-size:17px}
 #game-shell[data-shot="board"] #board-wrap{height:70%;top:10%}#board-copy{gap:3%}.title-content{bottom:8%}h1{font-size:38px}.title-flower{margin-bottom:6px}.title-actions{margin-top:16px}.title-actions button{min-height:40px}
}
@media(orientation:landscape) and (max-height:560px){
 .reading-header{padding:6px 20px;font-size:11px}.reading-header button{min-height:31px}.actor{height:151%;top:0;left:calc(76% - 50.33vh)}
 #board-wrap{top:11%;left:9%;height:48%;width:43%}#board{border-width:7px}.chalk-word{font-size:34px}.chalk-meaning{font-size:15px}.chalk-sentence{font-size:22px}.chalk-translation{font-size:16px}#board-copy{padding:5% 7%;gap:2%}
 #dialogue{bottom:8px;left:5%;right:5%;padding:10px 22px 0;outline-offset:2px}.dialogue-top{min-height:19px;margin-bottom:3px}#speaker{font-size:14px}#dialogue-advance{min-height:44px;font-size:var(--text-size);line-height:1.55}.reading-controls{height:34px;margin-top:3px}.reading-controls button{min-height:31px;font-size:11px}#channel{font-size:10px}
 #choices{position:absolute;right:0;left:0;bottom:calc(100% + 12px);margin:0;justify-content:center}#choices button{flex:0 1 280px;background:#f4f0e6f5;font-size:17px;min-height:40px;padding:8px 14px}#ending{margin:1px 0 3px;font-size:11px}#ending button{padding:6px 0}
 .title-content{top:10%;left:10%;width:45%}.title-flower{margin-bottom:8px;font-size:24px}h1{font-size:40px}.chapter-name{font-size:16px;margin-top:8px}.title-actions{margin-top:16px;width:210px}.title-actions button{min-height:38px;padding:6px 0;font-size:13px}.edition{bottom:15px;font-size:10px}
}
@media(orientation:landscape) and (max-height:350px){
 #board-wrap{top:11%;height:47%;width:46%;left:7%}#board-copy{padding:4% 6%;gap:1%}.chalk-word{font-size:26px;margin:0;padding-bottom:1px;border-width:2px}.chalk-meaning{font-size:12px}.chalk-sentence{font-size:17px;margin-top:2%}.chalk-translation{font-size:13px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html.reduce-motion *,html.reduce-motion *::before,html.reduce-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

/* Full game: a single stage carries dialogue, illustrations and in-world props. */
#game-shell{--film-matte:#202526}
#cg-stage{position:absolute;inset:44px 0 218px;background:var(--film-matte);overflow:hidden;display:grid;place-items:center;box-shadow:0 0 90px #1d252c33}
#cg-image{width:100%;height:100%;object-fit:contain;transform-origin:var(--focus,50%) 50%;will-change:transform;}
#cg-stage.arriving{animation:cgLight .75s ease both}#cg-stage.arriving #cg-image{animation:camera 7s cubic-bezier(.2,.5,.2,1) both}
@keyframes cgLight{from{opacity:0;filter:brightness(1.24)}to{opacity:1;filter:brightness(1)}}
@keyframes camera{0%{transform:scale(1.12) translateX(-1.8%)}100%{transform:scale(1) translateX(0)}}
#game-shell[data-visual="cg"] #room,#game-shell[data-visual="prop"] #room{filter:saturate(.65) brightness(.42)}
#game-shell[data-effect="dusk"] #room,#game-shell[data-completed="true"][data-screen="title"] #room{filter:saturate(.58) brightness(.72);transform:scale(1.025)}
#game-shell[data-actor="dario"] .actor{height:152%;top:0;left:calc(72% - 50.7vh)}
#game-shell[data-actor="gpt"] .actor,#game-shell[data-actor="gemini"] .actor,#game-shell[data-actor="deepseek"] .actor{height:138%;top:2%;left:calc(71% - 46vh)}
#weather{position:absolute;inset:0;pointer-events:none;opacity:0;background:repeating-linear-gradient(102deg,transparent 0 60px,#e1e8ed16 60px 61px,transparent 61px 130px);background-size:180px 360px}
#game-shell[data-background="station"] #weather{opacity:.5;animation:rain 1.2s linear infinite}
@keyframes rain{to{background-position:40px 360px}}
#lens-streak{position:absolute;left:0;right:0;top:31%;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent,#b8d7e98c 18%,#fff 46%,#fff 57%,#bfd8e8aa 80%,transparent);box-shadow:0 0 8px 2px #d6e7ee;opacity:0}
#game-shell[data-effect="cold"] #lens-streak{animation:coldLight 2.3s ease both}
@keyframes coldLight{0%{opacity:0;transform:scaleX(.04)}30%{opacity:.9;transform:scaleX(1)}100%{opacity:.22;transform:scaleX(1)}}
.prop-stage{position:absolute;inset:48px 0 215px;display:grid;place-items:center;overflow:hidden;perspective:1600px;background:#2430301f}
.white-letter{position:relative;z-index:1;background:#fffcf3;width:470px;max-width:80%;padding:25px 35px 35px;box-shadow:8px 13px 45px #1118;transform:rotate(-1.5deg);font:14px/1.65 GalgameUI;color:#35302c;animation:unfold .65s cubic-bezier(.2,.8,.3,1) both}
.white-letter header{font:32px GalgameWenKai;text-align:center;margin:0 0 18px}.letter-flower{color:#be704b;vertical-align:middle;margin-right:6px}.white-letter p{margin:10px 0}.white-letter p:last-of-type{margin-top:20px}.opened-envelope{position:absolute;z-index:-1;inset:25% -8% -10%;background:linear-gradient(145deg,#f2e6d7 49.6%,#e3d6c6 50%,#f7eddf 50.5%);box-shadow:0 7px 12px #101c2626;transform:rotate(3deg)}.opened-envelope span{position:absolute;bottom:8%;left:48%;color:#bb6b62;font-size:27px}
@keyframes unfold{from{opacity:0;transform:translateY(28px) rotate(-5deg) rotateX(22deg)}to{opacity:1;transform:rotate(-1.5deg)}}
.table-cards{display:flex;gap:15px;perspective:600px}.playing-card{position:relative;width:120px;height:170px;padding:15px;border:1px solid #d3c7b6;border-radius:6px;background:#fdf9ef;box-shadow:0 9px 30px #18292266;transform:rotate(-8deg);font:30px GalgameWenKai}.playing-card:nth-child(2){transform:rotate(8deg) translateY(-15px)}.playing-card.red{color:#a85345}.playing-card span{display:block;text-align:center;margin-top:12px;font-size:52px}.playing-card b{font-weight:400}
.dance-floor{position:relative;width:min(60vh,460px);height:min(60vh,460px)}.dance-atlas{position:absolute;inset:0;background-image:url('assets/cg/dance.webp');background-size:200% 200%;background-repeat:no-repeat;animation:victory var(--dance-time,1s) steps(1,end) infinite,hop calc(var(--dance-time,1s)/4) ease-in-out infinite}
@keyframes victory{0%,24.99%{background-position:0 0}25%,49.99%{background-position:100% 0}50%,74.99%{background-position:0 100%}75%,100%{background-position:100% 100%}}
@keyframes hop{50%{transform:translateY(-8px)}}.prop-stage.settled .dance-atlas{animation:none;background-position:100% 100%}
.dance-floor i{position:absolute;left:20%;top:18%;width:8px;height:25px;border-radius:2px;background:#cba04e;transform:rotate(-25deg)}.dance-floor i:nth-of-type(2){left:78%;top:24%;transform:rotate(35deg)}.dance-floor i:nth-of-type(3){left:83%;top:34%;height:15px;transform:rotate(60deg)}
.memory-page{position:relative;width:480px;max-width:84%;background:#faf8f0;padding:24px 34px 29px;box-shadow:4px 9px 35px #15262e55;transform:rotate(.6deg);animation:unfold .6s ease both}.memory-page header{display:flex;align-items:center;gap:13px;margin-bottom:20px;font:30px GalgameWenKai}.notion-mark{border:1px solid #383b35;box-shadow:2px 2px #373c33;line-height:29px;width:27px;text-align:center;font:27px GalgameWenKai}.memory-lines p{font:19px/1.7 GalgameWenKai;padding:9px 0;border-bottom:1px solid #a5ab9340}.memory-lines p::before{content:'·';margin-right:12px;color:#a46c48}.memory-tab{position:absolute;right:24px;top:-8px;width:20px;height:48px;background:#ac6f4cbd;clip-path:polygon(0 0,100% 0,100% 100%,50% 85%,0 100%)}
.policy-page{width:540px;max-width:87%;background:#efeee8;padding:35px 45px 40px;box-shadow:0 10px 40px #101c2855;animation:cgLight 1.1s ease both}.policy-brand{font-size:18px;letter-spacing:.05em}.policy-page h2{font:28px GalgameWenKai;margin:24px 0 10px}.policy-page time{font-size:13px;color:#7b8179}.policy-page hr{height:1px;border:0;background:#bdc2b5;margin:23px 0}.policy-page p{font:23px/1.7 GalgameWenKai}.policy-rule{display:block;width:40px;height:2px;background:#b67b55;margin-top:27px}
.chorus-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--film-matte);animation:camera 8s ease both}.chorus-terminal{position:absolute;left:8%;bottom:8%;display:flex;align-items:center;gap:15px;padding:9px 20px;background:#f8f5e9ec;box-shadow:0 4px 20px #0f1d2733;color:#3a443a;animation:windowOn 1s ease both}.chorus-terminal p{font:24px GalgameWenKai;letter-spacing:.06em}.pixel-crab{color:#c58052;width:44px;height:36px;animation:crabStep .8s steps(2,end) infinite}.chorus-terminal.blocked{background:#e9e7dfed;color:#8b8c80}.unavailable-mark{color:#a69c8d;font:29px GalgameWenKai}.prop-stage[data-prop$="waiting"] .pixel-crab{animation-duration:2s}
@keyframes crabStep{50%{transform:translateY(-3px)}}@keyframes windowOn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.film-canvas{width:100%;height:100%;object-fit:contain;background:#19282c}
.ui-hidden #reading-screen{visibility:hidden}.ui-hidden #cg-stage,.ui-hidden #props{inset:0}.ui-hidden #advance-area{z-index:15}.ui-hidden #scene{inset:0!important;width:100%;height:100%!important;min-height:0}.ui-hidden #cg-image{animation:none!important;transform:none}
.title-actions{margin-top:34px}.title-actions button{min-height:44px;font-size:15px}.title-content{top:16%}.title-flower{margin-bottom:20px}#game-shell[data-completed="true"] #title-screen{background:linear-gradient(90deg,#e6e4dbe8,#e6e4db95 28%,transparent 65%)}
.chapter-list{display:grid;gap:0}.chapter-list button{min-height:66px;display:grid;grid-template-columns:42px 1fr 20px;align-items:center;gap:15px;text-align:left;border-bottom:1px solid #a7ad9635}.chapter-list button>span:first-child{font:20px GalgameWenKai;color:#b08b68}.chapter-list button>span:nth-child(2){font:23px GalgameWenKai}.chapter-list i{font-style:normal;color:#99a18b}.chapter-list button:hover{padding-left:5px}
dialog[data-kind="chapters"]{width:620px;max-width:calc(100vw - 28px)}
dialog[data-kind="gallery"]{width:1040px;max-width:calc(100vw - 28px)}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.gallery-grid button{display:block;text-align:left;background:#e5e5da;overflow:hidden}.gallery-grid img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;transition:transform .6s}.gallery-grid button:hover img{transform:scale(1.04)}.gallery-grid span{display:block;padding:10px 12px;font:19px GalgameWenKai}.gallery-full{width:100%;max-height:calc(100dvh - 240px);object-fit:contain;display:block}.gallery-controls{display:flex;align-items:center;justify-content:space-between;margin-top:20px;gap:12px}.gallery-controls button{padding:10px;font:21px GalgameWenKai}
dialog[data-kind="routes"]{width:1100px;max-width:calc(100vw - 30px);border-color:#c3c6b3;background:#e8e9df}dialog[data-kind="routes"] #panel-body{padding:0;overflow:hidden;max-height:none}dialog[data-kind="routes"]>header{position:absolute;z-index:4;inset:0 0 auto;border:0;background:linear-gradient(#f3eee8bb,transparent);pointer-events:none}dialog[data-kind="routes"] header button{pointer-events:auto}.route-stage{position:relative;height:min(720px,86dvh);overflow:hidden;background:linear-gradient(110deg,#eeede1 10%,#eeede100 90%),url('assets/backgrounds/street.webp') center/cover;isolation:isolate}.route-halo{position:absolute;inset:0;background:linear-gradient(110deg,#eeeadd 20%,#eeeadd50 60%,#eeeadd22),radial-gradient(ellipse at 65% 35%,var(--route-color),transparent 65%);backdrop-filter:blur(5px)}.route-halo::after{content:'';position:absolute;border:1px solid #fffffe99;width:440px;height:440px;border-radius:50%;left:51%;top:10%;box-shadow:0 0 0 20px #fffffe18,0 0 0 80px #fff6;animation:routeRing 16s linear infinite}.route-character{position:absolute;height:145%;width:auto;right:1%;top:2%;filter:drop-shadow(15px 12px 15px #24363e24);transform-origin:center 30%}.route-character.entering{animation:routeIn .55s cubic-bezier(.2,.6,.2,1) both}.route-copy{position:absolute;left:9%;top:31%;z-index:2}.route-index{font:15px GalgameUI;letter-spacing:.3em;color:#9e9e87}.route-copy h3{font:clamp(35px,5vw,65px) GalgameWenKai;font-weight:400;margin:14px 0 25px}.route-enter{font:17px GalgameUI;letter-spacing:.13em;padding:15px 5px;min-width:180px;text-align:left;border-top:1px solid #7a866e7a;border-bottom:1px solid #7a866e7a}.route-nav{position:absolute;bottom:0;left:0;right:0;z-index:3;display:flex;justify-content:center;background:#eeede3ee;border-top:1px solid #fff9;backdrop-filter:blur(10px);padding:20px;gap:20px}.route-nav button{padding:11px 0;font-size:14px;color:#8e9587}.route-nav button[aria-pressed="true"]{color:#724a35;border-bottom:2px solid var(--route-color)}
@keyframes routeIn{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:translateX(0)}}@keyframes routeRing{to{transform:rotate(360deg)}}
.credits{font-size:14px;line-height:1.9;color:#727a68}.credits p{margin:15px 0}.credits a{color:#836449;text-decoration:none;border-bottom:1px solid #baa888}.setting select{max-width:175px;border:0;border-bottom:1px solid #9fa88f;background:transparent;padding:8px 2px;color:#5d6858;font-size:13px}
.letter-flower{display:inline-block;width:27px;height:27px;vertical-align:-3px}
.white-letter{background:transparent}.white-letter::before{content:'';position:absolute;inset:0;background:#fffcf3;z-index:-1}.opened-envelope{z-index:-2}
#dialogue{background:linear-gradient(115deg,#fbf7edc7,#f4f0e8bb),url('assets/cg/ui-paper.webp') center/100% 100%}
.prop-stage{container-type:size}.chorus-frame{position:relative;width:min(100cqw,177.68cqh);height:min(100cqh,56.28cqw);animation:camera 8s ease both}.chorus-frame .chorus-scene{animation:none}
.chorus-frame .chorus-terminal{inset:auto;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:0;background:none;box-shadow:none;animation:windowOn 1s ease both}
.chorus-frame[data-place="store"] .chorus-terminal{left:31.7%;top:45.4%;width:14.4%;height:18.6%;transform:rotate(-1deg)}
.chorus-frame[data-place="studio"] .chorus-terminal{left:16.5%;top:57%;width:12%;height:16.7%;transform:skewX(10deg) rotate(-6deg)}
.chorus-frame[data-place="kitchen"] .chorus-terminal{left:65.6%;top:57.5%;width:15.7%;height:18.4%;transform:skewX(-9deg) rotate(5deg)}
.chorus-frame[data-place="workshop"] .chorus-terminal{left:77.3%;top:38.6%;width:9.5%;height:13.9%;transform:rotate(1deg)}
.chorus-frame .pixel-crab{width:clamp(12px,2.2cqw,34px);height:auto}.chorus-frame .chorus-terminal p{font:clamp(6px,1.1cqw,15px) GalgameUI;letter-spacing:0}.chorus-frame .unavailable-mark{font-size:clamp(12px,2cqw,26px)}
#game-shell[data-background="alley"] #room{filter:brightness(.35) saturate(.6)}
#sticker{position:absolute;width:170px;height:170px;left:14%;top:25%;background-image:url('assets/cg/stickers.webp');background-size:200% 200%;filter:drop-shadow(0 4px 1px #fff9) drop-shadow(0 5px 8px #22352933);pointer-events:none;animation:stickerIn .45s cubic-bezier(.18,.88,.2,1.3) both}
@keyframes stickerIn{from{opacity:0;transform:translateY(15px) rotate(-12deg) scale(.75)}to{opacity:1;transform:translateY(0) rotate(-4deg) scale(1)}}
@media(min-width:1500px){#cg-stage,.prop-stage{bottom:250px;top:60px}.white-letter{font-size:16px;width:560px;padding:30px 45px 35px}.memory-page{width:540px}.memory-lines p{font-size:22px}}
@media(max-width:700px) and (orientation:portrait){
 #cg-stage,.prop-stage{inset:0}#cg-image{object-fit:contain}#cg-stage.arriving #cg-image{animation:mobileCamera 6s cubic-bezier(.2,.5,.2,1) both}
 @keyframes mobileCamera{0%{transform:scale(1.4) translateX(-5%)}100%{transform:scale(1) translateX(0)}}
 #game-shell[data-visual="cg"] #scene,#game-shell[data-visual="prop"] #scene{background:var(--film-matte)}
 #game-shell[data-actor="dario"] .actor{height:152%;left:calc(50% - 29dvh)}
 #game-shell[data-actor="gpt"] .actor,#game-shell[data-actor="gemini"] .actor,#game-shell[data-actor="deepseek"] .actor{height:155%;left:calc(49% - 29dvh)}
 .white-letter{max-width:83%;width:400px;font-size:11px;line-height:1.6;padding:20px 23px 24px}.white-letter header{font-size:27px;margin-bottom:14px}.white-letter p{margin:9px 0}.white-letter p:last-of-type{margin-top:13px}.opened-envelope{bottom:-7%}
 .dance-floor{width:min(95vw,48dvh);height:min(95vw,48dvh)}.memory-page{padding:22px 23px;width:88%;max-width:88%}.memory-page header{font-size:26px;margin-bottom:15px}.memory-lines p{font-size:17px;line-height:1.6;padding:8px 0}.policy-page{padding:25px}.policy-page h2{font-size:25px}.policy-page p{font-size:22px}.policy-page hr{margin:20px 0}
 .chorus-terminal{bottom:12%;left:6%;padding:9px 14px;gap:10px}.chorus-terminal p{font-size:20px}.pixel-crab{width:33px;height:27px}
 .title-content{top:auto;bottom:7%}.title-actions{display:grid;grid-template-columns:1fr 1fr;column-gap:25px;width:100%;max-width:none;margin-top:24px}.title-actions #continue,.title-actions #start{grid-column:1/-1}.title-actions button{font-size:14px;min-height:43px}.chapter-name{margin-top:8px}.title-flower{margin-bottom:10px}
 #game-shell[data-screen="title"] .actor{top:-1%;height:102%}
 .reading-header{padding-left:16px;padding-right:13px;font-size:11px}.reading-header p{gap:6px}.reading-header nav button{min-width:36px;font-size:11px}.reading-header nav{gap:2px}
 .gallery-grid{grid-template-columns:repeat(2,1fr);gap:14px}.gallery-grid span{font-size:16px;padding:8px}.chapter-list button{min-height:60px;gap:8px}.chapter-list button>span:nth-child(2){font-size:21px}
 dialog[data-kind="routes"]{max-width:calc(100vw - 18px)}.route-stage{height:85dvh}.route-character{height:112%;right:-49%;top:2%}.route-copy{top:auto;bottom:24%;left:8%;text-shadow:0 1px #fff9}.route-copy h3{font-size:41px;margin:10px 0 16px}.route-enter{background:#f4f0e7b3;padding:12px;font-size:14px;min-width:170px}.route-nav{padding:13px 15px;justify-content:flex-start;gap:14px;flex-wrap:wrap}.route-nav button{font-size:12px;padding:8px 0}.route-index{font-size:12px}.route-halo{background:linear-gradient(0deg,#eeede4 10%,#eeede42b 65%),radial-gradient(ellipse at 70% 35%,var(--route-color),transparent 65%)}.route-halo::after{width:300px;height:300px;left:15%}
 .ui-hidden #dialogue{visibility:hidden}
}
@media(max-width:700px) and (orientation:portrait) and (max-height:700px){.white-letter{font-size:10px;padding:14px 20px}.white-letter header{font-size:23px;margin:0 0 9px}.white-letter p{margin:7px 0}.memory-page{padding:15px 20px}.memory-page header{margin-bottom:8px}.memory-lines p{font-size:15px;padding:5px 0}.policy-page{padding:18px 25px}.policy-page h2{margin-top:16px;font-size:22px}.policy-page p{font-size:20px}.policy-rule{margin-top:15px}.title-content{bottom:7%}h1{font-size:36px}.title-actions{margin-top:16px}.title-actions button{min-height:35px;font-size:13px}.title-flower{width:25px;height:25px;margin-bottom:8px}}
@media(orientation:landscape) and (max-height:560px){
 #cg-stage,.prop-stage{top:38px;bottom:142px}.white-letter{font-size:8px;line-height:1.4;padding:9px 15px;width:260px;max-height:100%}.white-letter header{font-size:18px;margin:0 0 5px}.white-letter p{margin:5px 0}.white-letter p:last-of-type{margin:7px 0 0}.opened-envelope{bottom:-8%}
 .memory-page{padding:10px 20px;width:390px}.memory-page header{font-size:20px;margin-bottom:5px}.memory-lines{display:grid;grid-template-columns:1fr 1fr;column-gap:15px}.memory-lines p{font-size:13px;padding:4px 0}.notion-mark{font-size:18px;line-height:20px;width:20px}.policy-page{padding:12px 25px;width:420px}.policy-page h2{font-size:22px;margin:8px 0}.policy-page hr{margin:8px 0}.policy-page p{font-size:18px;line-height:1.4}.policy-brand{font-size:12px}.policy-rule{display:none}.policy-page time{font-size:10px}
 .dance-floor{width:230px;height:230px}.chorus-terminal{bottom:6%;padding:5px 12px}.chorus-terminal p{font-size:16px}.pixel-crab{width:25px;height:21px}
 .title-content{top:9%;width:42%}.title-actions{display:grid;grid-template-columns:1fr 1fr;column-gap:20px;margin-top:14px;width:100%}.title-actions #continue,.title-actions #start{grid-column:1/-1}.title-actions button{min-height:32px;font-size:12px;padding:5px 0}.title-flower{width:25px;height:25px;margin-bottom:8px}h1{font-size:36px}.chapter-name{font-size:14px;margin-top:5px}.route-stage{height:85dvh}.route-nav{padding:10px;gap:19px}.route-nav button{font-size:12px;padding:5px 0}.route-copy{top:25%}.route-copy h3{font-size:35px;margin:8px 0 16px}.route-enter{font-size:13px;padding:10px}.route-character{height:155%;right:5%}
}
.ui-hidden .white-letter{font-size:clamp(11px,1.5vh,16px);max-height:94%;width:min(510px,65vh);padding:20px 30px;line-height:1.55}.ui-hidden .white-letter header{font-size:28px;margin-bottom:12px}.ui-hidden .white-letter p{margin:10px 0}
@media(max-width:700px) and (orientation:portrait){#sticker{width:120px;height:120px;left:4%;top:15%}.ui-hidden .white-letter{width:85%;max-width:85%;font-size:13px}}

/* Music-source credits, 2026-11-13 */
.credits .signature{display:inline-flex;align-items:center;gap:6px}.credits .x-logo{width:12px;height:13px}.credits .music-track-list{padding-left:20px}.credits .music-track-list li{margin:12px 0}.credits .music-track-list span{font-size:12px}.credits .work-title{font-family:GalgameWenKai,serif;font-size:18px}

/* The approved title reads as two four-character phrases. */
#title-screen h1{font-size:clamp(42px,4.7vw,76px);line-height:1.17;letter-spacing:.065em}
#title-screen h1>span{display:block}
#title-screen .chapter-name{font-size:clamp(13px,1.18vw,17px);line-height:1.5;letter-spacing:.15em;white-space:nowrap}
@media(max-width:700px) and (orientation:portrait){#title-screen h1{font-size:clamp(35px,10vw,49px);line-height:1.16}#title-screen .chapter-name{font-size:12px;letter-spacing:.12em}}
@media(orientation:landscape) and (max-height:560px){#title-screen h1{font-size:34px;line-height:1.12}#title-screen .chapter-name{font-size:11px;letter-spacing:.12em}}
