@charset "UTF-8";
@font-face{font-family:YP;src:url('assets/Galmuri14.woff2') format('woff2');font-weight:400;font-display:swap}
:root{--cream:#ffecc6;--paper:#f8e0b4;--ink:#492c24;--wine:#873044;--line:#70432e;--green:#69783f;--pixel:polygon(0 12px,6px 12px,6px 6px,12px 6px,12px 0,calc(100% - 12px) 0,calc(100% - 12px) 6px,calc(100% - 6px) 6px,calc(100% - 6px) 12px,100% 12px,100% calc(100% - 12px),calc(100% - 6px) calc(100% - 12px),calc(100% - 6px) calc(100% - 6px),calc(100% - 12px) calc(100% - 6px),calc(100% - 12px) 100%,12px 100%,12px calc(100% - 6px),6px calc(100% - 6px),6px calc(100% - 12px),0 calc(100% - 12px))}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;overscroll-behavior:none}body{min-height:100dvh;display:flex;justify-content:center;align-items:center;padding:12px 8px;background:#432c29;color:var(--ink);font-family:YP,monospace;-webkit-font-smoothing:antialiased;text-shadow:.25px 0 currentColor;user-select:none;-webkit-user-select:none;background-image:repeating-linear-gradient(90deg,#ffffff03 0 2px,transparent 2px 8px)}button,input{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #b9cc82;outline-offset:2px}button:disabled{opacity:.5}[hidden]{display:none!important}
.console{width:min(100%,520px);position:relative;padding:7px 17px 10px;border:5px solid #642732;border-bottom-width:9px;background:#e9cc9b;box-shadow:0 5px #2e181e,0 10px 0 #291c2144,inset 0 4px #fff0c6,inset 5px 0 #fbe5b8,inset -5px 0 #b68c65;clip-path:var(--pixel);isolation:isolate}.console:before{content:"";position:absolute;inset:5px;border:2px solid #f8e3b7;pointer-events:none;z-index:-1;clip-path:var(--pixel)}.console-brand{height:48px;display:flex;align-items:center;justify-content:center;font-size:27px;color:var(--wine);letter-spacing:2px;text-shadow:1px 0 currentColor;position:relative}.console-brand i{font-style:normal;font-size:23px;color:#bf5462}.power-indicator{position:absolute;right:2px;bottom:8px;font-size:6px;letter-spacing:0;display:flex;gap:3px;align-items:center;color:#75533c}.power-indicator i{width:4px;height:4px;background:#829f51;box-shadow:0 0 0 1px #52643c}.screw{position:absolute;width:7px;height:7px;background:#784d34;border:1px solid #fce9b7;z-index:5}.tl{left:9px;top:17px}.tr{right:9px;top:17px}.bl{left:10px;bottom:13px}.br{right:10px;bottom:13px}
.screen-housing{padding:7px;background:#322e28;border:3px solid #a87b52;border-top-color:#805333;box-shadow:inset 0 0 0 3px #231e1d;clip-path:var(--pixel);min-width:0}.screen{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:#c7c7a2;border:2px solid #161c1b;isolation:isolate}#world{display:block;width:100%;height:100%;image-rendering:pixelated;outline:none;touch-action:none}.hud{position:absolute;inset:7px 7px auto;display:flex;align-items:flex-start;gap:5px;pointer-events:none;z-index:2}.map-hud{display:flex;align-items:center;gap:7px;max-width:calc(100% - 38px);background:#563923eb;border:1px solid #f1c785;box-shadow:2px 2px #38271c77;color:#fff0ce;padding:5px 7px;font-size:12px}.map-hud small{white-space:nowrap;font-size:10px;color:#e5bb85}.map-hud span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#pause{margin-left:auto;pointer-events:auto;border:2px solid #513120;background:#f8e7bf;box-shadow:2px 2px #38271c88;width:32px;height:31px;padding:0;font-size:22px;line-height:1}.name-tag{display:none}.speech{position:absolute;transform:translate(-50%,-100%);padding:5px 8px;border:2px solid #70442d;background:#fff2d2;color:#ab6542;font-size:18px;z-index:1;box-shadow:2px 2px #4f3b2d44;pointer-events:none}.speech.pink{color:#c96582}.speech:after{content:"";position:absolute;bottom:-6px;left:40%;width:7px;height:7px;background:#fff2d2;border-bottom:2px solid #70442d;transform:skewY(-35deg)}
#interface{display:flex;flex-direction:column;gap:6px;padding-top:6px;min-width:0}.dialogue{position:relative;background:var(--paper);border:3px solid #9e704c;box-shadow:inset 0 0 0 2px #ffeecb;min-height:115px;padding:31px 13px 20px;clip-path:var(--pixel)}#dialogue-speaker{position:absolute;top:2px;left:10px;min-width:50px;padding:3px 12px 5px;background:#b64868;color:#fff0d7!important;font-size:16px;line-height:1;clip-path:polygon(0 0,100% 0,100% 75%,92% 75%,92% 100%,8% 100%,8% 75%,0 75%)}#dialogue-speaker[data-who=ke]{background:#b76c37}#dialogue-speaker:empty{display:none}.dialogue:has(#dialogue-speaker:empty){padding-top:18px}.dialogue p{font-size:clamp(16px,4.4vw,21px);line-height:1.55;margin:0;word-break:keep-all;overflow-wrap:anywhere;min-height:2.9em;text-shadow:.4px 0 currentColor}#dialogue-next{position:absolute;right:8px;bottom:3px;border:0;background:none;color:#79343a;font-size:16px;padding:2px 6px}.screen-tip{color:#cfb58b;font-size:10px;line-height:1.4;text-align:center;min-height:19px;padding:5px 2px 1px}
.story-panel{background:var(--paper);border:3px solid #9e704c;box-shadow:inset 0 0 0 2px #ffedc3;padding:13px 12px;clip-path:var(--pixel);text-align:center}.story-panel>small{color:#97734e;font-size:10px;letter-spacing:1px}.story-panel h2{margin:6px 0;font-size:22px;line-height:1.5;font-weight:400;text-shadow:.6px 0 currentColor}.story-panel>p{margin:5px 0 12px;font-size:14px;line-height:1.6;white-space:pre-line;word-break:keep-all}.story-choices,#mini-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.story-panel button,#photo-controls button{position:relative;min-height:44px;border:2px solid #986b43;box-shadow:inset 0 2px #fff0ce,0 3px #71482f;background:#f4ddb6;color:#4a2e25;padding:9px 8px;font-size:15px;line-height:1.45;word-break:keep-all;text-shadow:.3px 0 currentColor}.story-panel button.selected,#photo-controls button.selected{background:#872b43;border-color:#622739;color:#fff1ce;box-shadow:inset 0 2px #bc6474,0 3px #4c2430}.story-panel button.selected:before{content:"▸";position:absolute;left:5px;top:50%;transform:translateY(-50%);font-size:13px}.story-choices button:only-child,#mini-controls button:only-child{grid-column:1/-1}.story-panel.mini-panel{padding:0;background:none;border:0;box-shadow:none;clip-path:none}.mini-panel button{min-height:51px;padding-left:13px}.outfit-choice{display:flex;align-items:center;justify-content:center;gap:9px}.outfit-icon{display:inline-block;width:28px;height:28px;image-rendering:pixelated}.quiz-options #mini-controls{grid-template-columns:1fr}.quiz-options button{font-size:13px;min-height:39px;padding:7px 8px 7px 17px}.outfit-options #mini-controls{gap:8px}.outfit-options button{min-height:53px}
#mini-gauge{order:-1;background:#f4dfb9;border:2px solid #9e704c;padding:7px 10px;text-align:center}#gauge-label{font-size:14px}.meter{position:relative;height:8px;background:#c9b48c;margin:5px 0;border:1px solid #957548;overflow:hidden}.meter i{display:block;height:100%;background:#7f9258;transition:width .12s linear}.meter b{position:absolute;width:3px;height:15px;top:-2px;background:#743247;transform:translateX(-50%)}#gauge-copy{font-size:13px;line-height:1.45;display:block;white-space:pre-line}.game-notice{animation:stamp-in .2s ease-out}
.control-deck{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;min-height:126px;padding:12px 12px 0}.left-grip,.right-grip{display:flex;flex-direction:column;align-items:center;gap:8px}.speaker{display:flex;gap:6px;justify-content:center;align-items:center;margin-top:12px}.speaker i{width:5px;height:23px;background:#573325;box-shadow:2px 2px #fff0be,-1px -2px #c49b72}.joystick-well,.single-action-well{width:84px;aspect-ratio:1;background:#b28a60;clip-path:polygon(25% 0,75% 0,75% 7%,90% 7%,90% 18%,100% 18%,100% 82%,90% 82%,90% 93%,75% 93%,75% 100%,25% 100%,25% 93%,10% 93%,10% 82%,0 82%,0 18%,10% 18%,10% 7%,25% 7%);padding:5px;box-shadow:inset 4px 0 #815236}.joystick{width:100%;height:100%;position:relative;touch-action:none;background:#403e2c;clip-path:inherit;cursor:grab}.stick-knob{position:absolute;inset:4px 4px 9px;clip-path:polygon(22% 0,78% 0,78% 7%,93% 7%,93% 22%,100% 22%,100% 78%,93% 78%,93% 93%,78% 93%,78% 100%,22% 100%,22% 93%,7% 93%,7% 78%,0 78%,0 22%,7% 22%,7% 7%,22% 7%);background:#687b3d;box-shadow:inset 0 6px #92a455,inset 5px 0 #7a8a48,inset -5px -7px #45592d;pointer-events:none;will-change:transform}.main-action{display:block;width:100%;height:100%;border:0;clip-path:var(--pixel);background:#8c2c45;color:#ffe9b3;box-shadow:inset 0 5px #b95e72,inset 5px 0 #a14359,inset -5px -8px #62283b;font-size:38px;padding:0;touch-action:none;text-shadow:1px 0 currentColor}.main-action:active,.main-action.held{transform:translateY(3px);box-shadow:inset 0 3px #b95e72,inset -5px -4px #62283b}.grip-caption{font-size:11px;letter-spacing:1px}.console-footer{text-align:center;font-size:8px;color:#795237;margin-top:8px;letter-spacing:.6px}
.loading,#story-flash{position:absolute;inset:0;z-index:7;display:grid;place-content:center;text-align:center;white-space:pre-line;pointer-events:none}.loading{background:#f7e5c1;font-size:14px}.loading-pixels{width:20px;height:20px;background:#bd647a;box-shadow:28px 0 #d9a25b;margin:0 auto 15px;animation:pulse 1s steps(2) infinite}.chapter-card{background:#302b28eb;color:#ffedc8;font-size:24px;line-height:2}.stamp{background:#fff3d944;color:#a72d46;font-size:48px;text-shadow:3px 3px #fff0d1;animation:stamp-in .28s ease-out}.scene-fade{animation:scene-in .25s ease-out}@keyframes scene-in{from{opacity:.35}to{opacity:1}}@keyframes stamp-in{from{transform:scale(1.5) rotate(-8deg);opacity:0}to{transform:scale(1) rotate(-3deg);opacity:1}}@keyframes pulse{50%{opacity:.4}}
.screen-overlay{position:absolute;inset:5px;z-index:20;background:#2d242bdd;display:grid;place-items:center;padding:20px}.menu-panel{width:100%;max-height:100%;overflow:auto;background:#f8e4bd;border:3px solid #946942;padding:20px;text-align:center;box-shadow:5px 5px #271d25}.menu-eyebrow{font-size:12px;letter-spacing:3px;color:#ab6372;margin:0}.menu-panel h1{font-size:24px;font-weight:400;margin:8px 0}.menu-panel>p{font-size:13px;line-height:1.5}.menu-panel button{display:block;width:100%;padding:11px 8px;font-size:15px;border:0;border-bottom:2px solid #c4a478;background:none}.menu-panel .menu-primary{background:#87374c;color:#ffeac8;border:2px solid #592838;margin-top:14px}.menu-panel #help-content{font-size:13px;padding:7px 0;border-block:1px dashed #b09065}.help-note{font-size:11px;line-height:1.6;color:#917253}.music-control{display:block;font-size:13px;padding:11px 4px}.music-control span{display:flex;justify-content:space-between}.music-control input{width:100%;height:24px;accent-color:#8b3f52}.menu-note:empty{display:none}#photo-layer{position:absolute;inset:0;z-index:6;background:#43312bf2;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;gap:7px}#photo-preview{width:100%;max-height:calc(100% - 60px);object-fit:contain;image-rendering:pixelated;-webkit-touch-callout:default;user-select:auto}#photo-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;color:#ffecc6;font-size:12px}#photo-controls button{min-height:32px;font-size:11px;padding:5px 8px}.rotate-screen{display:none!important}
@media(min-width:600px){.console{width:min(520px,calc(100dvh * .62))}.console-brand{height:50px}.control-deck{min-height:126px}.dialogue p{font-size:20px}}
@media(max-width:370px),(max-height:740px){body{padding:5px}.console{padding:5px 10px 8px}.console-brand{height:35px;font-size:22px}.screen-housing{padding:5px}.dialogue{min-height:104px;padding-top:29px}.dialogue p{font-size:16px;line-height:1.5}.story-panel{padding:9px}.story-panel h2{font-size:19px;margin:4px 0}.story-panel>p{font-size:12px;margin-bottom:8px}.story-panel button{min-height:38px;font-size:13px;padding:7px}.mini-panel button{min-height:42px}.control-deck{min-height:105px;padding-top:8px}.joystick-well,.single-action-well{width:70px}.main-action{font-size:32px}.screen-tip{font-size:9px}.console-footer{font-size:7px}.hud{inset:5px 5px auto}.map-hud{font-size:10px;padding:4px 6px}.map-hud small{font-size:9px}#pause{height:28px;width:28px;font-size:19px}}
@media(orientation:landscape) and (max-height:600px){body{align-items:flex-start}.console{width:420px;max-width:100%;margin:auto}.control-deck{min-height:93px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

/* Souvenir controls stay beneath the image, just like the dialogue controls. */
#photo-preview{max-height:100%}#photo-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:3px 0;color:#e6cda4;font-size:12px;text-align:center}#photo-controls button{min-height:44px;font-size:14px;padding:8px}#photo-controls button:last-child:nth-child(odd){grid-column:1/-1}#dialogue-speaker[data-who=fans]{background:#727c75}

/* The chassis, stage and physical controls never resize with story content. */
body{height:100svh;min-height:0;overflow:hidden}
.console{height:min(900px,calc(100svh - 24px));display:grid;grid-template-rows:48px minmax(0,1fr) 126px 16px}
.console-brand{height:100%}
.screen-housing{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) 30px;overflow:hidden}
.screen{align-self:start}
#interface{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a47a55 #322e28;overflow-anchor:none;padding-bottom:5px}
#interface>*{flex-shrink:0}
.dialogue{min-height:100%;height:max-content}
.story-panel:not(.mini-panel){min-height:100%;display:flex;flex-direction:column;justify-content:center}
.story-choices{flex-shrink:0}
.screen-tip{height:30px;min-height:0;overflow:hidden;display:grid;align-content:center;padding:2px}
.control-deck{height:100%;min-height:0}
.console-footer{margin:0;align-self:end}
@media(min-width:600px){.console{width:min(520px,calc(100svh * .62))}}
@media(max-width:370px),(max-height:740px){
 .console{height:calc(100svh - 10px);grid-template-rows:35px minmax(0,1fr) 105px 14px}
 .console-brand{height:100%}.control-deck{min-height:0}
}
@media(orientation:landscape) and (max-height:600px){
 .console{width:min(420px,calc(100svh * .78));grid-template-rows:30px minmax(0,1fr) 80px 12px}
 .joystick-well,.single-action-well{width:54px}.control-deck{padding:4px 0 0}
 .left-grip,.right-grip{gap:3px}.grip-caption{font-size:9px}
}

/* Arcade controls live exclusively on the physical stick and A button. */
.arcade-interface{justify-content:center}.arcade-interface #mini-gauge{padding:16px 14px}.arcade-interface #gauge-label{font-size:18px}.arcade-interface #gauge-copy{font-size:16px;line-height:1.65;margin-top:12px}.arcade-interface .meter{height:12px;margin-top:14px}
#photo-controls.montage-caption{display:flex;align-items:center;justify-content:center;width:100%;min-height:100%;text-align:center;font-size:16px;padding:16px;line-height:1.7}

/* A camera flash belongs to the photo, never the surrounding controls. */
#photo-layer::after{content:"";position:absolute;inset:0;background:#fff8e6;opacity:0;pointer-events:none;}
#photo-layer.shutter-flash::after{animation:camera-flash .28s ease-out;}
@keyframes camera-flash{0%{opacity:.95}35%{opacity:.5}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){#photo-layer.shutter-flash::after{animation:none;}}
#photo-controls .photo-reaction{grid-column:1/-1;white-space:pre-line;text-align:left;background:#f4dfb8;color:#6c4437;border:2px solid #966d4e;padding:9px 11px;margin:0 0 3px;font-size:15px;line-height:1.6;}

/* The optional playroom uses the same fixed chassis, stick, and A button. */
#playroom-stage{position:absolute;inset:0;z-index:1;background:#c8b08a;padding:41px 3px 3px;display:flex;align-items:center;justify-content:center;}
#playroom-stage.playroom-snack{padding:0}#playroom-stage canvas{width:100%;height:100%;touch-action:none;image-rendering:pixelated;}
.jigsaw-board{height:100%;width:auto;max-width:100%;flex:none;aspect-ratio:480/330;position:relative;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,1fr);background:#e5d5b3;isolation:isolate;box-shadow:0 0 0 2px #856448;}
.jigsaw-cell{border:1px dashed #b49b75;background:transparent;padding:0;min-width:0;touch-action:manipulation;}
.jigsaw-cell.cursor{background:#c2a9bb66;box-shadow:inset 0 0 0 3px #974e69;}.jigsaw-cell.carrying.cursor{background:#f8d58688}
.placed-piece{position:absolute;width:30%;height:32.3232%;pointer-events:none;image-rendering:pixelated;z-index:1;}
.jigsaw-reference{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;image-rendering:pixelated;z-index:3;pointer-events:none;}
#playroom-controls{display:flex;flex-direction:column;gap:10px;padding:7px 2px 10px;}
.playroom-status{background:#f4dfb8;border:2px solid #996f4c;color:#714939;padding:10px;margin:0;font-size:15px;line-height:1.65;white-space:pre-line;}
.jigsaw-tray{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;background:#b58e62;border:2px solid #7e593b;padding:5px 2px;min-height:62px;}
.jigsaw-piece{min-width:0;padding:0;background:#dbc099;border:1px solid #a77c52;touch-action:none;}
.jigsaw-piece img{display:block;width:100%;image-rendering:pixelated;pointer-events:none;}.jigsaw-piece.selected{background:#f0ce91;outline:3px solid #a23f60;outline-offset:-3px;}
.jigsaw-drag{position:fixed;z-index:100;pointer-events:none;image-rendering:pixelated;transform:translate(-50%,-50%);filter:drop-shadow(3px 4px 0 #35292088);}
.playroom-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}.playroom-menu button{min-height:44px;background:#f4ddb6;border:2px solid #986b43;box-shadow:inset 0 2px #fff0ce,0 3px #71482f;font-size:14px;padding:7px 3px;}.playroom-menu button.selected{background:#872b43;color:#fff1ce;}
.memory-board{width:100%;height:100%;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(3,1fr);gap:5px;}
.memory-card{min-width:0;min-height:0;background:#9b4960;color:#f8dbb3;border:2px solid #f0ce9f;box-shadow:2px 2px #78553e;padding:0;font-size:27px;overflow:hidden;}.memory-card img{width:100%;height:100%;object-fit:cover;image-rendering:pixelated;}.memory-card.matched{border-color:#849b58;box-shadow:none;}.memory-card.cursor{outline:3px solid #ecb654;outline-offset:-4px;}
.puzzle-choice-photo{display:block;width:100%;aspect-ratio:480/330;object-fit:contain;image-rendering:pixelated;margin-top:5px;}
.puzzle-complete .jigsaw-board{box-shadow:0 0 0 3px #a9c07e;}.puzzle-complete .placed-piece{filter:none;}
@media(max-width:370px),(max-height:740px){#playroom-stage{padding-top:34px}.playroom-status{font-size:13px;padding:8px}.playroom-menu button{font-size:13px}}

/* All loose pieces stay on the table, including pieces set aside on the board. */
.jigsaw-tray{position:relative;display:block;height:225px;min-height:225px;padding:0;background:repeating-linear-gradient(0deg,#b58e62 0 37px,#aa8159 38px 39px);overflow:hidden;}
.jigsaw-piece{position:absolute;width:28%;transform:translate(-50%,-50%);border:0;background:transparent;filter:drop-shadow(1px 2px 0 #59432e88);z-index:2;min-height:0;}
.jigsaw-board>.jigsaw-piece{width:30%;}
.jigsaw-piece.selected{background:transparent;outline:0;filter:drop-shadow(2px 0 #af3e65) drop-shadow(-2px 0 #af3e65);z-index:4;}
.jigsaw-piece:focus-visible{outline:2px solid #8a3d61;}
.jigsaw-controls{gap:5px!important;padding-top:3px!important;}
.jigsaw-controls .playroom-status{padding:3px 7px;font-size:13px;line-height:1.5;}
.jigsaw-controls .playroom-menu{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;}
.jigsaw-controls .playroom-menu button{min-height:34px;font-size:12px;padding:4px 1px;}
.joystick-well{width:96px;}
.joystick .stick-knob{inset:24%;box-shadow:inset 0 4px #92a455,inset 4px 0 #7a8a48,inset -4px -5px #45592d;}
.joystick::before{content:'✚';position:absolute;inset:0;display:grid;place-items:center;font-size:80px;line-height:1;color:#748149;text-shadow:2px 3px #263728;pointer-events:none;}
.joystick.active{background:#485239;}
@media(max-width:370px),(max-height:740px){.joystick-well{width:82px}.joystick::before{font-size:68px}.jigsaw-tray{height:205px;min-height:205px}}

.joystick::before{content:'';inset:9%;background:#748149;clip-path:polygon(33% 0,67% 0,67% 33%,100% 33%,100% 67%,67% 67%,67% 100%,33% 100%,33% 67%,0 67%,0 33%,33% 33%);filter:drop-shadow(2px 3px #263728);}

/* Keep the chassis fixed; the whole square around MOVE is touchable. */
.joystick-well{position:relative;clip-path:none;background:transparent;box-shadow:none}
.joystick-well::before{content:'';position:absolute;inset:0;background:#b28a60;box-shadow:inset 4px 0 #815236;clip-path:var(--pixel);pointer-events:none}
.joystick{position:absolute;inset:-12px;width:auto;height:auto;clip-path:none;background:transparent;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;isolation:isolate}
.joystick::after{content:'';position:absolute;inset:17px;background:#403e2c;clip-path:var(--pixel);z-index:0;pointer-events:none}
.joystick::before{inset:calc(17px + 7%);z-index:1}
.joystick .stick-knob{inset:31%;z-index:2}
.joystick.active{background:transparent}.joystick.active::after{background:#485239}
.pad-arrow{position:absolute;z-index:3;width:8px;height:6px;background:#b5c38a;pointer-events:none;clip-path:polygon(50% 0,100% 100%,0 100%)}
.pad-up{left:calc(50% - 4px);top:25%}.pad-down{left:calc(50% - 4px);bottom:25%;transform:rotate(180deg)}
.pad-left{top:calc(50% - 3px);left:25%;transform:rotate(-90deg)}.pad-right{top:calc(50% - 3px);right:25%;transform:rotate(90deg)}
.joystick[data-direction~="up"] .pad-up,.joystick[data-direction~="down"] .pad-down,.joystick[data-direction~="left"] .pad-left,.joystick[data-direction~="right"] .pad-right{background:#fff1b7;filter:drop-shadow(0 0 3px #ffe6a0)}

/* Reserve the instruction slots: holding A changes text, never geometry. */
.arcade-interface{justify-content:flex-start;padding-top:7px}
.arcade-interface #mini-gauge{height:200px;min-height:200px;max-height:200px;display:grid;grid-template-rows:48px 12px 78px;gap:10px;padding:14px 10px;overflow:hidden;contain:layout}
.arcade-interface #gauge-label{display:grid;place-items:center;line-height:1.4;font-size:17px;min-width:0}
.arcade-interface .meter{margin:0;height:12px}
.arcade-interface #gauge-copy{margin:0;font-size:15px;line-height:1.6;display:grid;align-content:start;white-space:pre-line;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
@media(max-height:740px){.arcade-interface #mini-gauge{height:175px;min-height:175px;max-height:175px;grid-template-rows:40px 10px 68px;gap:8px;padding:12px 9px}.arcade-interface #gauge-label{font-size:15px}.arcade-interface #gauge-copy{font-size:14px}}
#playroom-stage.playroom-long{padding:0;background:#c9b899}
.long-controls .playroom-status{min-height:75px;font-size:14px;padding:7px 9px;margin:0}
.long-help{font-size:12px;line-height:1.7;color:#f0d7b0;white-space:pre-line;margin:0;padding:0 5px}
.long-levels{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.long-levels button{min-height:38px;border:2px solid #946e4c;background:#efd7b1;font-size:13px}

/* Keep long copy readable and expose overflow without moving the chassis. */
.story-panel>p{overflow-wrap:normal;text-wrap:pretty}
.screen-housing:has(#interface[data-more="true"]) .screen-tip::after{content:'▼ 아래로 더 보기';display:block;color:#f2ce8d;font-size:9px;line-height:1.2}
.screen-housing:has(#interface[data-more="true"]) .screen-tip{gap:1px;font-size:9px}

.story-panel button{padding-left:18px}
/* Small copy shares the font's native stroke, without per-screen fake bold. */
.story-panel>p,.story-panel>small,.dialogue p,.menu-panel>p,.menu-panel #help-content,.help-note,.music-control,.playroom-status,.long-help,#gauge-copy,.screen-tip,.screen-tip::after,.map-hud,.loading p,.cover-subtitle,.cover-key,.cover-bubble,.grip-caption,.console-footer,#photo-controls.montage-caption{font-weight:400;font-synthesis:none;text-shadow:none;-webkit-text-stroke:0}
.story-panel>small:empty,.map-hud small:empty{display:none}
.concert-panel .story-choices button:first-child{grid-column:1/-1}
.story-panel button.playroom-invite{background:#bfd49b;border-color:#6b814b;color:#344427;box-shadow:inset 0 2px #e7efce,0 3px #53663b;animation:playroom-float 2.6s ease-in-out infinite}
.story-panel button.playroom-invite.selected{background:#59723e;border-color:#3d542c;color:#fff3cf;box-shadow:inset 0 2px #90a96b,0 3px #334726}
@keyframes playroom-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@media(max-height:740px){.concert-panel>small{display:none}.concert-panel h2{margin:0 0 2px}.concert-panel>p{margin:2px 0 6px}.concert-panel{padding:6px 9px}}

/* One calm, animated cover fills the display before the menu is opened. */
.screen-housing{position:relative}
.start-cover{position:absolute;inset:9px;z-index:25;width:calc(100% - 18px);height:calc(100% - 18px);display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:0;overflow:hidden;padding:0;border:2px solid #4b3b2c;background:#f5dfb5;box-shadow:inset 0 0 0 3px #fff0d1;color:#71452f;cursor:pointer;touch-action:manipulation}
.cover-heading{display:flex;flex-direction:column;align-items:center;padding:18px 5px 16px;position:relative;z-index:1;background:#f5dfb5;flex:none}
.cover-kicker{font-size:15px;letter-spacing:3px;margin-bottom:8px;color:#8b694d}
.cover-title{font-size:clamp(28px,7.5vw,38px);line-height:1.35;letter-spacing:1px;color:#a54759;-webkit-text-stroke:.4px currentColor;text-shadow:0 2px #fff2cc,2px 3px #c19c77;white-space:nowrap}
.cover-title>span{display:block;color:#637c4c}
.cover-subtitle{font-size:12px;margin-top:13px;color:#8c694e;line-height:1.5}
#cover-art{display:block;width:100%;height:auto;min-height:0;aspect-ratio:480/420;object-fit:cover;object-position:bottom;image-rendering:pixelated;flex:1 1 auto;border-block:3px solid #bd976c;background:#b7d7d5}
.cover-bottom{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:20px 5px 19px;flex:none;background:#f5dfb5}
.cover-touch{font-size:17px;color:#824153;animation:cover-invite 2.2s steps(2,end) infinite}
.cover-key{font-size:9px;letter-spacing:2px;color:#a38562}
.cover-reveal .screen,.cover-reveal #interface{animation:cover-reveal .3s ease-out}
@keyframes cover-invite{50%{opacity:.55}}
@keyframes cover-reveal{from{opacity:.25;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-height:740px){.start-cover{inset:7px;width:calc(100% - 14px);height:calc(100% - 14px)}.cover-heading{padding:9px 3px}.cover-kicker{font-size:12px;margin-bottom:3px}.cover-title{font-size:26px;line-height:1.25}.cover-subtitle{font-size:10px;margin-top:8px}.cover-bottom{padding:12px 4px;gap:6px}.cover-touch{font-size:15px}.cover-key{font-size:8px}}
@media(prefers-reduced-motion:reduce){.cover-touch,.cover-reveal .screen,.cover-reveal #interface{animation:none}}

/* Cover lettering stays in the DOM, so scaling sprites never breaks its strokes. */
.cover-scene{display:block;position:relative;flex:1 1 auto;min-height:0;overflow:hidden;border-block:3px solid #bd976c}
.cover-scene #cover-art{width:100%;height:100%;aspect-ratio:auto;object-fit:fill;border:0}
.cover-school,.cover-bubble{position:absolute;font-weight:400;font-synthesis:none;white-space:nowrap;text-shadow:none;line-height:1.25;pointer-events:none}
.cover-school{top:21%;left:49.5%;width:46%;height:10%;transform:translate(-50%,-50%);display:grid;place-items:center;text-align:center;font-size:clamp(11px,3.4vw,15px);color:#fff0c9}
.cover-bubble{font-size:clamp(11px,3.15vw,15px);padding:5px 7px 6px;background:#fff1cf;border:2px solid #75503b;color:#664632;box-shadow:2px 2px #63493222}
.cover-bubble::after{content:'';position:absolute;width:5px;height:5px;bottom:-7px;left:55%;background:#fff1cf;border-right:2px solid #75503b;border-bottom:2px solid #75503b}
.cover-pil{left:11%;bottom:calc(46% + 14px)}.cover-ke{right:16%;bottom:calc(46% + 14px)}
.cover-ke::after{left:28%}

/* Downsample the high-resolution 2048 board without dropping thin facial pixels. */
#playroom-stage.playroom-merge canvas{image-rendering:auto}

/* Hidden glyphs reserve the final line breaks throughout dialogue typing. */
#dialogue-text{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:normal;white-space:pre-wrap}

.memory-card img{width:100%;height:100%;object-fit:cover;image-rendering:auto}

/* Optical vertical centering for the two-line instruction strip. */
.screen-tip{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:4px 2px 0;line-height:12px;gap:1px}
.screen-housing:has(#interface[data-more="true"]) .screen-tip::after{line-height:12px}
#photo-preview{image-rendering:auto}

#story-flash.stamp-pass{font-size:clamp(60px,19vw,82px);line-height:1.2;text-shadow:3px 3px #fff0d1,-2px -2px #fff0d1;letter-spacing:2px}

/* One shared type treatment across navigation and menu choices. */
:root{--menu-type-size:14px}
.story-panel button,.menu-panel button,#photo-controls button,.playroom-menu button,.long-levels button,.music-control{
 font-family:YP,monospace;font-size:var(--menu-type-size);font-weight:400;font-synthesis:none;line-height:1.45;text-shadow:none;-webkit-text-stroke:0;
}
@media(max-width:370px),(max-height:740px){:root{--menu-type-size:13px}}

.story-choices button:has(.album-choice-photo){display:flex;flex-direction:column;align-items:center;gap:7px}.album-choice-photo{display:block;width:100%;aspect-ratio:480/330;object-fit:contain;image-rendering:auto}

/* Long result captions fit the stage; the short stamp keeps its impact. */
#story-flash.stamp-pass-caption{font-size:clamp(29px,9vw,44px);letter-spacing:0;line-height:1.4;text-shadow:2px 2px #fff0d1,-1px -1px #fff0d1}
.story-panel button.menu-two-line{white-space:pre-line;line-height:1.5}
#photo-controls button.fanmeeting-invite{background:#bfd49b;border-color:#6b814b;color:#344427;box-shadow:inset 0 2px #e7efce,0 3px #53663b;animation:playroom-float 2.6s ease-in-out infinite}
#photo-controls button.fanmeeting-invite.selected{background:#59723e;border-color:#3d542c;color:#fff3cf;box-shadow:inset 0 2px #90a96b,0 3px #334726}
@media(prefers-reduced-motion:reduce){#photo-controls button.fanmeeting-invite{animation:none}}
