/* A single game viewport. Windows, story, films and authoring live above this stage. */
:root{--ink:#352b4d;--paper:#f8f0df;--muted:#88758d;--line:#cbb9a5;--gold:#d8b66b;--window:#342743;--window-light:#594363}html,body,#app{width:100%;height:100%;overflow:hidden}body{background:#191425}button{font-family:Tahoma,'Thonburi',sans-serif}.game{height:100svh;min-height:0;width:100%;overflow:hidden;position:relative;background:#241e31}.game-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;user-select:none;pointer-events:none}.game-title{height:100svh;position:relative;isolation:isolate;overflow:hidden;color:#fff7dd;background:#362942}.game-title .game-background{z-index:-3;object-position:center;animation:title-drift 30s ease-in-out infinite alternate}.title-vignette{position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at 50% 35%,#2a163b00 0%,#27163720 40%,#201128c4 100%),linear-gradient(0deg,#1d1029b8,transparent 65%)}.title-seal{position:absolute;left:50%;top:5%;transform:translateX(-50%);font-size:60px;color:#fff3bd;filter:drop-shadow(0 0 18px #eec774)}.title-logo{text-align:center;position:absolute;top:12%;left:50%;transform:translateX(-50%);width:600px;max-width:95%}.title-kicker{font-size:10px;letter-spacing:5px;text-shadow:0 2px 5px #241c3a}.title-logo h1{font-size:clamp(40px,5.1vw,72px);line-height:1.18;font-family:Georgia,'Thonburi',serif;font-weight:600;color:#ffedbd;margin:13px 0 17px;text-shadow:0 3px 0 #5c384d,0 5px 20px #20112a,2px 0 1px #624350,-2px 0 1px #624350}.title-logo h1 span{display:block;font-size:1.1em;color:#fff7e4}.title-en{font-family:Georgia,serif;letter-spacing:5px;font-size:13px;text-shadow:0 2px 5px #29142a}.title-theme{font-size:12px;letter-spacing:2px;color:#f7e8d6;text-shadow:0 2px 8px #000}.game-title-menu{position:absolute;top:51%;left:50%;transform:translateX(-50%);width:300px;display:grid;gap:1px;text-align:center}.game-title-menu button{position:relative;min-height:36px;padding:8px 20px;border:0;background:linear-gradient(90deg,transparent,#382239ac 25%,#382239ac 75%,transparent);border-radius:0;color:#fdf2d7;font-size:14px;text-shadow:0 1px 5px #201728;letter-spacing:.6px}.game-title-menu button:hover{color:#fff4b5;background:linear-gradient(90deg,transparent,#a57b44ae,transparent);text-shadow:0 0 12px #fff7ae}.game-title-menu .game-menu-main{font-size:20px;padding:10px 23px;margin-bottom:8px;border-top:1px solid #e4c18688;border-bottom:1px solid #e4c18688;color:#ffe8a7}.game-menu-main span{position:absolute;right:20px;color:#e9d69a}.title-copyright{position:absolute;bottom:18px;left:24px;line-height:1.9;font-size:9px;letter-spacing:1px;color:#ede2d5a9}.title-version{position:absolute;bottom:22px;right:24px;font-size:10px;letter-spacing:3px;color:#eadbc8a9}.fullscreen-button{position:absolute;right:20px;top:20px;width:40px;height:40px;border:1px solid #eddaa355;color:#ffedc9;background:#2d1d3a77;font-size:23px;padding:0}.magic-motes{position:absolute;inset:0;pointer-events:none;overflow:hidden}.magic-motes i{position:absolute;left:20%;top:80%;width:4px;height:4px;border-radius:50%;background:#fffbc8;box-shadow:0 0 13px 4px #ebd18266;animation:mote 13s linear infinite}.magic-motes i:nth-child(2){left:35%;animation-delay:-4s}.magic-motes i:nth-child(3){left:63%;animation-delay:-7s}.magic-motes i:nth-child(4){left:80%;animation-delay:-9s}.magic-motes i:nth-child(5){left:90%;animation-delay:-1s}.magic-motes i:nth-child(6){left:9%;animation-delay:-5s}.game-hud{position:absolute;top:17px;left:20px;right:20px;display:flex;justify-content:space-between;align-items:flex-start;z-index:25;pointer-events:none}.game-hud>*{pointer-events:auto}.hero-hud{display:flex;gap:9px;align-items:center;background:linear-gradient(100deg,#30263be8,#4e3d57d9);border:1px solid #d8c497;border-radius:42px 8px 8px 42px;padding:7px 13px 7px 7px;color:#fff1db;box-shadow:0 3px 12px #16102644,inset 0 0 0 3px #e9d6b01a}.hero-hud>img{width:51px;height:57px;object-fit:cover;object-position:50% 6%;border-radius:50%;background:#bfaabd;border:1px solid #dccb99}.hero-hud strong{font-size:12px;font-weight:400;display:block;margin-bottom:5px}.hero-hud strong span{color:#c4b4c9;font-size:9px;margin-left:10px}.gauge{width:140px;height:12px;position:relative;border:1px solid #c2b79288;margin:3px 0;border-radius:3px;overflow:hidden;background:#201a29}.gauge i{display:block;height:100%;background:linear-gradient(#a5c976,#5d975a)}.gauge.sp i{background:linear-gradient(#8bd0d0,#6094a8)}.gauge span{position:absolute;inset:0;text-align:center;color:white;font-size:8px;line-height:11px;text-shadow:0 1px #312632}.clock-hud{display:flex;gap:10px;align-items:center;background:linear-gradient(130deg,#fff4dff2,#ded0e3ef);border:2px solid #baa480;outline:1px solid #fff1cc88;outline-offset:2px;padding:9px 13px;border-radius:5px;box-shadow:0 3px 15px #1d12393a;color:#493454}.clock-symbol{font-size:26px;color:#b18b53}.clock-hud strong{display:block;font-size:13px}.clock-hud div>span{font-size:10px;color:#8d758e}.clock-hud button{background:none;padding:7px;border:0;font-size:19px;color:#604764}.game-dock{position:absolute;z-index:30;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:5px;background:linear-gradient(#64526cf2,#30253fee);border:1px solid #d7bd85;border-radius:8px;padding:7px 10px;box-shadow:0 3px 0 #221928,0 5px 20px #24162977}.game-dock button{min-width:58px;border:1px solid #dbcbac44;border-radius:5px;padding:4px 7px 5px;color:#fff0d1;background:linear-gradient(#aa8eae44,#44324844);font-size:9px;text-shadow:0 1px 2px #33213d}.game-dock button:hover{background:#b9966088;border-color:#f5d295}.game-dock span{display:block;font-family:Georgia,serif;font-size:21px;line-height:25px;color:#edd3a2}.life-scene,.novel-scene{position:absolute;inset:0;overflow:hidden;background:#30263e}.world-light,.novel-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#1c19451a,transparent 30%,transparent 70%,#251c4155)}.world-light.evening{background:#c6693638;mix-blend-mode:multiply}.world-light.night{background:linear-gradient(#1b205a9c,#2a2c6999);mix-blend-mode:multiply}.world-plane{position:absolute;inset:8% 0 10%;}.location-plaque{position:absolute;top:25px;left:50%;transform:translateX(-50%);text-align:center;color:#fff7dc;text-shadow:0 2px 6px #292a30;z-index:5;padding:3px 40px;background:radial-gradient(ellipse,#30283788,transparent 75%)}.location-plaque small{font-size:10px;letter-spacing:4px;color:#ffe3a2}.location-plaque h2{font-family:Georgia,'Thonburi',serif;font-size:22px;font-weight:400;letter-spacing:1px;margin:6px 0}.location-plaque p{font-size:10px;line-height:1.5;margin:5px 0;white-space:nowrap}.world-hotspot{position:absolute;transform:translate(-50%,-50%);z-index:8;display:flex;flex-direction:column;align-items:center;border:none;background:none;padding:0;filter:drop-shadow(0 3px 5px #30264066)}.world-hotspot:hover{transform:translate(-50%,-54%);filter:brightness(1.2)}.hotspot-sigil{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:radial-gradient(#fff9ddf0,#d5b873e8);border:2px solid #fff3bb;outline:1px solid #8c785777;color:#5f466b;font-size:19px;box-shadow:0 0 0 5px #fff3c025,0 0 23px #fff6b077}.exit .hotspot-sigil{background:radial-gradient(#f2e7ff,#987fb4);color:#fff;border-color:#e3d0f4}.collected .hotspot-sigil{opacity:.4}.hotspot-label{margin-top:6px;background:#302b3cde;border:1px solid #dacba266;border-radius:4px;padding:4px 10px;color:#fff6df;font-size:11px;white-space:nowrap;text-shadow:0 1px #231a2e}.world-player{position:absolute;transform:translate(-50%,-75%);pointer-events:none;text-align:center;transition:left .25s linear,top .25s linear;z-index:7}.world-player img{height:125px;width:95px;object-fit:contain;display:block;filter:drop-shadow(0 5px 2px #251d3644)}.world-player:after{content:'';position:absolute;bottom:23px;left:15%;width:70%;height:12px;border:2px solid #f4d897aa;border-radius:50%;z-index:-1}.player-arrow{position:absolute;top:-10px;left:43%;color:#ffedb0;font-size:11px;animation:float 2s infinite}.player-name{font-size:10px;color:#fffbe8;text-shadow:0 1px 3px #20162b;background:#3a2c4699;padding:2px 8px;border-radius:5px}.daily-actions{position:absolute;right:20px;bottom:100px;display:grid;gap:7px;z-index:10}.daily-actions button{display:flex;gap:10px;align-items:center;background:linear-gradient(120deg,#fff5e4ed,#e6d7edee);border:1px solid #c0a77e;border-radius:7px;box-shadow:0 3px 0 #4a364755;padding:9px 14px;color:#5b4260;text-align:left;min-width:165px;font-size:12px}.daily-actions button>span{font-size:24px;color:#a18354;width:27px;text-align:center}.daily-actions small{display:block;font-size:9px;font-weight:400;color:#998093;letter-spacing:0;margin-top:4px}.life-mini{position:absolute;left:20px;bottom:27px;display:flex;gap:14px;font-size:11px;color:#fff2d2;background:#382c44d9;border:1px solid #bba57c77;border-radius:5px;padding:10px;z-index:12}.chapter-plaque{position:absolute;left:50%;transform:translateX(-50%);top:22px;color:#fff4d9;text-shadow:0 2px 10px #1d1827;text-align:center}.chapter-plaque small{font-size:9px;letter-spacing:3px}.chapter-plaque h2{font-family:Georgia,'Thonburi',serif;font-weight:400;font-size:22px;margin:9px 0}.vn-character{position:absolute;bottom:13%;height:83%;max-width:58%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 8px 22px #24162944);pointer-events:none}.vn-character.right{right:7%}.vn-character.center{left:50%;transform:translateX(-50%)}.vn-character.left{left:7%}.vn-dialogue-wrap{position:absolute;z-index:18;bottom:104px;left:8%;right:8%}.vn-dialogue{display:block;width:100%;min-height:155px;background:linear-gradient(115deg,#fff7e7f5,#e5d9edf5);border:2px solid #ccb083;outline:1px solid #fff3ce;outline-offset:3px;border-radius:7px;padding:25px 40px 33px;color:#48394e;font-size:17px;line-height:1.85;text-align:left;box-shadow:0 10px 35px #1a152755,inset 0 0 0 5px #c3acc525;position:relative}.vn-name{display:inline-block;min-width:130px;padding:9px 27px;color:#fff1d2;background:linear-gradient(#786080,#4b355c);border:1px solid #dcc194;border-radius:6px 6px 0 0;margin-left:15px;font-size:13px;box-shadow:0 -2px 12px #2d243333}.dialogue-flourish{position:absolute;left:9px;top:8px;color:#bd9964;font-size:25px}.continue-diamond{position:absolute;bottom:10px;right:17px;color:#b28c5e;font-size:10px;animation:float 2s infinite}.vn-tools{position:absolute;z-index:20;bottom:270px;right:8%;display:flex;gap:5px}.vn-tools button{background:#40314ace;color:#f9eacb;border:1px solid #d6bd9655;padding:5px 13px;font-size:10px;border-radius:4px}.vn-choices{position:absolute;top:30%;left:25%;right:25%;z-index:21;display:grid;gap:18px}.vn-choices button{padding:18px 25px;background:linear-gradient(90deg,#fff5e5f5,#dccbe5f5);color:#554060;border:2px solid #cfb88d;box-shadow:0 7px 20px #29213655;text-align:left}.vn-choices button span{margin-right:17px;color:#a48456}.scene-wait{position:absolute;bottom:25%;left:50%;color:#fff0b8;font-size:40px;animation:float 2s infinite}.preview-ribbon{position:absolute;top:100px;left:20px;z-index:80;font-size:11px;background:#624d77eb;color:white;border:1px solid #edce9d;padding:8px 12px;border-radius:6px}.preview-ribbon button{font-size:10px;padding:4px 8px;margin-left:10px;background:#fff1d2}.movie-screen{position:absolute;inset:0;background:#000;z-index:100}.movie-screen video{width:100%;height:100%;object-fit:contain}.movie-top{position:absolute;top:20px;left:25px;right:25px;display:flex;justify-content:space-between;color:#fff4dc;font-size:11px;text-shadow:0 2px 5px black}.movie-top button,#movie-skip{background:#201727a9;color:#fff2d4;border:1px solid #d6b78377}#movie-skip{position:absolute;bottom:25px;right:25px;font-size:12px;overflow:hidden;touch-action:none;user-select:none}#movie-skip span{position:absolute;inset:auto 0 0;height:3px;background:#e3bc6f;width:0;transition:width 1s linear}#movie-skip.holding span{width:100%}#movie-error{position:absolute;top:45%;left:50%;transform:translate(-50%,-50%);color:#fff7dc;text-align:center}.game:has(.movie-screen) .game-hud,.game:has(.movie-screen) .game-dock{display:none}.battle-wrap,.style-wrap{position:absolute;inset:0;min-height:0;padding-bottom:100px}.battle-card,.style-card{max-height:calc(100svh - 180px);overflow:auto;background:linear-gradient(120deg,#fff3e7ed,#e2d3e8ed);border:2px solid #cbae78;outline:1px solid #eee0b1;outline-offset:3px;border-radius:8px;box-shadow:0 15px 60px #20142b77}.battle-card{width:min(580px,85%);padding:25px}.battle-buttons button.primary{background:linear-gradient(#7b6288,#4b355f);border-color:#bd9f6d}.enemy-sprite{height:170px;width:170px}.style-card{width:min(590px,85%);padding:25px}.style-list{grid-template-columns:repeat(3,1fr);gap:10px}.style-list button{padding:16px 13px;background:#fff6e8;border-color:#bfa780}.style-list strong{font-size:15px}.style-list small{font-size:10px;line-height:1.8}.crystal{font-size:40px}.battle-card h2,.style-card h2{margin:12px}.style-wrap{background-image:linear-gradient(#30204344,#30204377),url('/assets/images/bg/guild.webp')}.battle-wrap{background-image:linear-gradient(#30204344,#30204377),url('/assets/images/bg/field-game.webp')}
dialog{background:linear-gradient(120deg,#fff3e3,#e2d2e5);border:2px solid #bda177;outline:1px solid #ead8b3;outline-offset:3px;border-radius:8px;color:#53405d;box-shadow:0 20px 100px #160e2b99;max-height:80svh}dialog::backdrop{background:#24193477;backdrop-filter:blur(3px)}dialog header{background:linear-gradient(100deg,#72587b,#44304f);border-bottom:2px solid #c2a775;color:#fff3da;padding:16px 23px}dialog header small{font-size:8px;color:#d5bdd2}dialog h2{font-size:23px;margin-top:5px}dialog .icon{color:#edd7c0}dialog button{background:#fff5e5;border-color:#c2aa91;color:#5d4268}dialog button.primary{background:linear-gradient(#8e7099,#594366);border-color:#bda377;color:#fff2d0}.list-row{background:#fff6e455;border-color:#bda8b766}.list-row strong{font-size:13px}.note,.list-row p{color:#887389}.life-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.life-stat{border:1px solid #b8a2b3;padding:20px;border-radius:7px;background:#fff5e766}.life-stat strong{display:block;font-size:26px;color:#806492;margin-top:10px}.travel-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.travel-options button{padding:25px 15px}.travel-options span{display:block;font-size:24px;margin-bottom:10px;color:#9a7e58}.travel-options small{font-size:9px;letter-spacing:0;display:block;margin-top:8px;color:#94798d}#toast{background:linear-gradient(120deg,#655074f5,#33243cf5);border-color:#d6b887;color:#fff1cd;bottom:95px;border-radius:7px;font-size:12px}.game-title .game-title-menu button:focus-visible{outline:2px solid #f6d58f}
@keyframes title-drift{to{transform:scale(1.035)}}@keyframes mote{0%{transform:translate(0,0);opacity:0}20%{opacity:.9}85%{opacity:.6}100%{transform:translate(60px,-650px);opacity:0}}
@media(max-width:900px){.hero-hud strong span{display:none}.gauge{width:100px}.location-plaque{top:95px}.game-dock button{min-width:48px}.life-mini{bottom:102px;left:15px;font-size:10px}.daily-actions{right:15px;bottom:110px}.chapter-plaque{top:95px}.vn-dialogue-wrap{left:5%;right:5%}.vn-tools{right:5%}.vn-character{max-width:75%}.vn-character.right{right:-1%}}
@media(max-width:560px){.game-hud{top:12px;left:10px;right:10px}.hero-hud{padding:4px 8px 4px 4px;gap:5px}.hero-hud>img{width:38px;height:44px}.hero-hud strong{font-size:10px;margin-bottom:2px}.gauge{width:75px;height:10px;margin:2px 0}.gauge span{font-size:7px;line-height:9px}.clock-hud{padding:5px 7px;gap:6px}.clock-symbol{font-size:20px}.clock-hud strong{font-size:11px}.clock-hud div>span{font-size:9px}.clock-hud button{font-size:16px;padding:3px}.game-dock{bottom:11px;width:calc(100% - 20px);gap:3px;padding:5px;justify-content:space-between}.game-dock button{min-width:0;flex:1;padding:4px 2px;font-size:8px}.game-dock span{font-size:18px;line-height:23px}.location-plaque{top:87px;width:90%;padding:0}.location-plaque h2{font-size:20px}.location-plaque p{font-size:9px}.world-plane{inset:16% -6% 24%}.world-player img{height:95px;width:65px}.world-hotspot .hotspot-sigil{width:29px;height:29px;font-size:16px}.hotspot-label{font-size:9px;padding:4px 6px;max-width:125px}.daily-actions{bottom:84px;left:10px;right:10px;display:flex;gap:5px;flex-wrap:wrap;justify-content:center}.daily-actions button{min-width:0;flex:1;padding:8px 7px;gap:5px;font-size:10px;white-space:nowrap}.daily-actions button>span{font-size:18px;width:18px}.daily-actions small{font-size:8px}.life-mini{top:153px;bottom:auto;left:50%;transform:translateX(-50%);font-size:9px;padding:6px 10px;white-space:nowrap;gap:13px;background:#443047b0}.chapter-plaque{top:91px;white-space:nowrap}.chapter-plaque h2{font-size:18px}.vn-character{height:73%;bottom:23%;max-width:95%}.vn-character.right{right:-20%}.vn-character.left{left:-20%}.vn-dialogue-wrap{bottom:91px;left:5%;right:5%}.vn-dialogue{font-size:13px;line-height:1.8;padding:21px 23px 27px;min-height:185px;max-height:36svh;overflow:auto}.vn-tools{bottom:290px;font-size:9px;right:5%}.vn-tools button{padding:4px 10px}.vn-name{font-size:11px;padding:7px 20px;min-width:100px}.vn-choices{left:8%;right:8%;top:28%}.vn-choices button{font-size:12px;padding:15px}.title-logo{top:17%}.title-logo h1{font-size:49px}.title-seal{top:8%}.title-en{font-size:10px;letter-spacing:3px}.title-theme{font-size:10px}.game-title-menu{top:52%;width:260px}.game-title-menu button{font-size:13px;min-height:35px}.title-copyright{font-size:8px;left:15px;bottom:15px}.title-version{font-size:8px;right:15px;bottom:15px}.title-kicker{font-size:8px;letter-spacing:3px}.fullscreen-button{right:13px;top:13px}.style-list{grid-template-columns:1fr}.style-list button{padding:12px}.style-list strong{font-size:13px}.style-card,.battle-card{max-height:calc(100svh - 180px);margin-top:30px;width:90%;padding:20px}.style-card h2,.battle-card h2{font-size:23px}.enemy-sprite{height:150px;width:150px}.preview-ribbon{top:205px;left:10px;font-size:9px;padding:5px}.preview-ribbon button{font-size:9px}.battle-wrap,.style-wrap{padding-bottom:80px}#toast{bottom:155px;font-size:11px;padding:11px 18px}}
@media(max-height:600px) and (min-width:600px){.title-seal{top:0;font-size:42px}.title-logo{top:9%}.title-logo h1{font-size:40px;margin:5px}.title-theme{display:none}.title-kicker{margin:0}.title-en{margin:5px}.game-title-menu{top:45%;gap:0}.game-title-menu button{min-height:26px;padding:5px;font-size:12px}.game-title-menu .game-menu-main{font-size:16px;padding:7px}.title-copyright{bottom:8px}.game-hud{top:8px}.hero-hud>img{width:35px;height:40px}.hero-hud{padding:3px 8px 3px 3px}.game-dock{bottom:7px;padding:4px 6px}.game-dock button{font-size:8px;padding:2px 6px}.game-dock span{font-size:17px;line-height:20px}.location-plaque,.chapter-plaque{top:12px}.vn-dialogue-wrap{bottom:76px;left:12%;right:12%}.vn-dialogue{min-height:100px;font-size:13px;padding:16px 28px 24px;max-height:35svh;overflow:auto}.vn-tools{bottom:183px;right:12%}.daily-actions{bottom:80px;right:10px;gap:4px}.daily-actions button{padding:6px 9px;min-width:130px;font-size:10px}.daily-actions small{font-size:8px}.life-mini{bottom:18px;font-size:9px}.clock-hud{padding:5px 10px}.world-player img{height:90px;width:65px}}

#toast{opacity:0;transition:transform .3s,opacity .3s}#toast.show{opacity:1}
/* Game movement, residents, and diegetic conversation windows. */
.world-plane{cursor:crosshair;touch-action:none}.game-hud{z-index:90}.game-dock{z-index:90}.world-player{transition:left .28s linear,top .28s linear;transform:translate(-50%,-90%)}.world-player.walking>img{animation:walk-bob .3s linear infinite}.walking-sprite{display:block;width:90px;height:120px;background-size:400% 200%;background-position:0 0;background-repeat:no-repeat;filter:drop-shadow(0 5px 3px #251d3655)}.world-player[data-direction=left] .walking-sprite{background-position-x:33.333%}.world-player[data-direction=right] .walking-sprite{background-position-x:66.667%}.world-player[data-direction=up] .walking-sprite{background-position-x:100%}.world-player.walking .walking-sprite{animation:sprite-walk .3s steps(1,end) infinite}.world-player:after{bottom:16px}.world-npc{position:absolute;transform:translate(-50%,-90%);border:0;padding:0;background:none!important;box-shadow:none;display:grid;justify-items:center;cursor:pointer}.atlas-character{display:block;background-size:400% 100%;background-repeat:no-repeat}.npc-sprite{width:57px;height:152px;filter:drop-shadow(0 4px 2px #382b4255);transform-origin:bottom;animation:npc-breathe 3.8s ease-in-out infinite}.world-npc:nth-child(2n) .npc-sprite{animation-delay:-1.6s}.npc-label{display:block;color:#fff2d1;text-shadow:0 1px 2px #201627;font-size:11px;padding:3px 9px;border:1px solid #dec48c77;border-radius:5px;background:#3d2b49df;white-space:nowrap}.npc-label b{color:#ffd998;margin-left:4px}.world-npc:hover .npc-label{background:#826073}.walk-controls{position:absolute;left:24px;bottom:110px;z-index:80;display:grid;grid-template-columns:repeat(3,38px);grid-template-rows:repeat(2,36px);gap:3px;opacity:.86}.walk-controls button{touch-action:none;padding:0;color:#fff1ca;border:1px solid #d9bf8988;background:#45304dd9;border-radius:9px;font-size:17px;user-select:none}.walk-controls button:first-child{grid-column:2}.walk-controls button:nth-child(2){grid-row:2;grid-column:1}.walk-controls button:nth-child(3){grid-row:2;grid-column:2}.walk-controls button:nth-child(4){grid-row:2;grid-column:3}.walk-hint{position:absolute;bottom:83px;left:24px;font-size:9px;color:#fff7de;background:#37273ccc;padding:4px 8px;border-radius:4px;pointer-events:none;z-index:80}.conversation-card{position:absolute;right:28px;top:115px;bottom:110px;width:330px;max-width:calc(100% - 36px);padding:20px;overflow:auto;z-index:120;background:linear-gradient(125deg,#fff6e8fa,#e2d2e9fa);border:2px solid #c0a779;outline:1px solid #fff4cb;outline-offset:3px;border-radius:10px;box-shadow:0 15px 55px #26183170;color:#513c59;cursor:auto}.social-close{position:absolute;right:8px;top:8px;border:0;background:none;color:#6b4f70;font-size:23px;padding:1px 8px}.social-heading{display:flex;align-items:center;gap:18px;margin-top:8px}.social-heading h2{margin:7px 0;font-weight:400;font-size:25px}.social-heading small{font-size:10px;color:#8b738c}.social-portrait{width:88px;height:164px;flex:none}.affection-hearts{font-size:20px;letter-spacing:3px;color:#be6583}.social-talk{width:100%;padding:12px 8px;color:#fff0d2;background:linear-gradient(#816188,#513a60);border:1px solid #c3a369;border-radius:5px;font-size:12px}.gift-caption{font-size:10px;color:#927587;margin-top:19px}.gift-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.gift-grid button{padding:10px 7px;background:#fffaf2aa;border:1px solid #cab6bc;color:#634967;font-size:11px;text-align:left;border-radius:5px}.gift-grid small{display:block;color:#a17e8c;font-size:9px;margin-top:4px}.gift-grid button:disabled{opacity:.45}.shop-card h2{font-weight:400}.shop-card p{font-size:11px}.resident-book{display:grid;gap:12px}.resident-book article{display:flex;gap:18px;align-items:center;background:#eee3edaa;border:1px solid #d0bbbf;border-radius:7px;padding:10px}.book-portrait{height:155px;width:76px;flex:none}.resident-book h3{font-weight:400;font-size:16px;margin:0}.resident-book h3 span{color:#b46d8d;font-size:12px;margin-left:10px}.resident-book p{font-size:11px}.resident-book small{display:block;font-size:10px}.resident-book button{font-size:10px;margin-top:7px;padding:6px 12px}.vn-cast{position:absolute;bottom:13%;height:83%;width:32%;pointer-events:none;animation:portrait-enter .7s ease-out}.vn-cast.right{right:7%}.vn-cast.left{left:7%}.vn-cast.center{left:34%}.portrait-sprite{width:100%;height:100%;filter:drop-shadow(0 8px 16px #251d3655);animation:npc-breathe 5s ease-in-out infinite;transform-origin:bottom}.custom-character{object-fit:contain}.scene-effects{position:absolute;inset:0;z-index:16;pointer-events:none;overflow:hidden}.scene-effects i{display:none}.scene-effects.playing[data-effect=fade]{animation:scene-fade 1s ease-out}.scene-effects.playing[data-effect=flash]{animation:scene-flash .7s ease-out}.novel-scene:has(.scene-effects.playing[data-effect=shake]) .game-background{animation:scene-shake .45s ease-in-out}.scene-effects.playing[data-effect=petals] i,.scene-effects.playing[data-effect=sparkle] i{display:block;position:absolute;left:calc(var(--i)*8% + 3%);top:-30px;font-style:normal;font-size:18px;color:#ffe8b1;filter:drop-shadow(0 0 7px #ffc3c8);animation:falling-light 4s ease-in both;animation-delay:calc(var(--i)*.08s)}.scene-effects.playing[data-effect=petals] i{color:#f3bccd;font-size:24px}.gift-burst{position:absolute;inset:0;z-index:160;pointer-events:none;overflow:hidden}.gift-burst i{position:absolute;left:calc(58% + var(--i)*3%);top:65%;color:#f797b9;font-size:26px;font-style:normal;text-shadow:0 0 12px #fff4d5;animation:gift-hearts 1.8s ease-out both;animation-delay:calc(var(--i)*.05s)}
@keyframes sprite-walk{0%,49.9%{background-position-y:0}50%,100%{background-position-y:100%}}@keyframes walk-bob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-5px) rotate(2deg)}}@keyframes npc-breathe{0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.015)}}@keyframes portrait-enter{from{opacity:0;translate:24px 0}to{opacity:1;translate:0 0}}@keyframes scene-fade{from{background:#261b38}to{background:transparent}}@keyframes scene-flash{from{background:#fff5d9aa}to{background:transparent}}@keyframes scene-shake{0%,100%{translate:0}25%{translate:-6px 1px}75%{translate:6px -1px}}@keyframes falling-light{0%{translate:0 -30px;opacity:0}15%{opacity:.9}100%{translate:70px 85vh;rotate:160deg;opacity:0}}@keyframes gift-hearts{from{translate:0 0;opacity:0;scale:.5}20%{opacity:1;scale:1}to{translate:-40px -170px;opacity:0;scale:.7}}
@media(max-width:850px){.game-dock{gap:2px;padding:5px}.game-dock button{min-width:42px;padding:3px 5px}.life-mini{bottom:82px;left:14px;font-size:9px;padding:6px}.walk-hint{display:none}.walk-controls{left:16px;bottom:123px}.npc-sprite{width:46px;height:122px}.walking-sprite{width:75px;height:100px}.npc-label{font-size:9px;padding:3px 5px}.location-plaque{top:92px;padding:2px 8px}.location-plaque h2{font-size:17px}.location-plaque p{font-size:9px;white-space:normal;max-width:230px}.conversation-card{right:18px;top:98px;bottom:100px;width:290px}.vn-cast{width:48%;height:67%;bottom:23%}.vn-cast.right{right:2%}.vn-cast.left{left:2%}.vn-cast.center{left:26%}.daily-actions{right:12px;bottom:100px}.daily-actions button{min-width:110px;padding:6px 8px;font-size:10px}.daily-actions button>span{font-size:19px;width:18px}}
@media(max-height:520px){.conversation-card{top:88px;bottom:73px;width:300px;padding:13px}.social-portrait{height:90px;width:48px}.social-heading{gap:15px}.social-heading h2{font-size:19px}.gift-caption{margin:10px 0}.walk-controls{bottom:92px}.location-plaque{top:18px}.vn-cast{height:83%;bottom:11%}.life-mini{bottom:70px}.daily-actions{bottom:85px}.game-dock{bottom:7px}}
.no-motion .world-player{transition:none}.no-motion .walking-sprite,.no-motion .npc-sprite,.no-motion .portrait-sprite,.no-motion .scene-effects,.no-motion .scene-effects i,.no-motion .gift-burst i,.no-motion .vn-cast{animation:none!important}.no-motion .gift-burst,.no-motion .scene-effects{display:none}@media(prefers-reduced-motion:reduce){.walking-sprite,.npc-sprite,.portrait-sprite,.scene-effects,.scene-effects i,.gift-burst i,.vn-cast{animation:none!important}.gift-burst,.scene-effects{display:none}.world-player{transition:none}}

.effect-tools{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.effect-tools button{font-size:10px;padding:5px 8px}
/* Preserve atlas cell proportions; portraits crop the lower body, never stretch faces. */
.portrait-sprite{background-size:400% auto;background-position-y:0!important}.social-portrait{width:64px;height:170px}.book-portrait{width:58px;height:155px}.vn-cast{width:30%}.vn-cast.center{left:35%}@media(max-width:850px){.vn-cast{width:55%}.vn-cast.center{left:22.5%}}@media(max-height:520px){.social-portrait{width:37px;height:99px}.vn-cast{width:26%}}
.world-npc:active{transform:translate(-50%,-90%)}.world-hotspot:active{transform:translate(-50%,-50%)}
#game-confirm{max-width:420px;padding:24px;z-index:300}#game-confirm p{line-height:1.8;font-size:14px}#game-confirm .row-buttons{justify-content:flex-end;margin-top:20px}
/* Asset / tile RPG world, with a camera and foot-sorted independent objects (Catzy model). */
.world-studio{position:fixed;inset:0;z-index:220;background:#2e2439;color:#f3e5c8;display:grid;grid-template-rows:80px 1fr 38px}.world-studio header{display:flex;align-items:center;gap:8px;padding:14px 18px;border-bottom:1px solid #a38a65;background:#41324d}.world-studio h2{font-size:20px;font-weight:400;margin:0 auto 0 8px}.world-studio h2 small{display:block;font-size:8px;margin-top:5px}.world-studio button,.world-studio select{background:#584263;border:1px solid #baa17c;color:#fff0d0;border-radius:5px;font-size:11px;padding:8px 10px}.world-studio button.active{background:#b28c54;color:#fff}.world-editor-body{display:grid;grid-template-columns:230px 1fr;min-height:0}.world-editor-body aside{padding:16px;background:#3a2c44;overflow:auto}.world-editor-body label{display:grid;gap:7px;font-size:11px;margin-bottom:15px}.world-editor-body select{max-width:100%;width:100%}.world-editor-body p{font-size:10px;line-height:1.9;color:#c4acbf}.world-tools{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:18px}.world-palette-preview{max-width:100%;height:100px;object-fit:contain;display:block;margin:auto}.world-canvas-wrap{overflow:auto;display:grid;place-items:center;padding:20px;background:radial-gradient(#52425d,#241c2e)}#world-layout{max-width:100%;height:auto;box-shadow:0 5px 35px #140f23;border:2px solid #c4a971;touch-action:none}.world-studio footer{padding:10px 18px;font-size:11px;background:#41324d;color:#e8cf9f}@media(max-width:700px){.world-studio{grid-template-rows:115px 1fr 45px}.world-studio header{flex-wrap:wrap;padding:9px;gap:5px}.world-studio h2{font-size:16px}.world-editor-body{grid-template-columns:145px 1fr}.world-editor-body aside{padding:9px}.world-tools{grid-template-columns:1fr}.world-canvas-wrap{padding:8px}.world-studio button{font-size:10px;padding:6px}.world-studio footer{font-size:9px}}

/* Character atlas v2: one map scale, grounded feet, separate portrait framing. */
.tile-resident .npc-sprite.map-character,.world-npc .npc-sprite.map-character{width:75px;height:100px;background-position-y:0;animation:resident-idle 4.8s steps(1,end) infinite;animation-delay:var(--idle-delay);transform-origin:50% 94%;filter:drop-shadow(0 3px 2px #24372744)}
@keyframes resident-idle{0%,69%,100%{background-position-y:0}70%,94%{background-position-y:100%}}
.tile-resident .map-label{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:-3px}
.tile-player .player-name{position:absolute;top:100%;left:50%;transform:translateX(-50%);white-space:nowrap;margin-top:-3px}
.tile-player:after{bottom:5px}
.social-portrait.character-portrait,.book-portrait.character-portrait{background-size:400% auto;background-position-y:0!important;mask-image:linear-gradient(#000 86%,transparent)}
.social-portrait.character-portrait{width:88px;height:120px}.book-portrait.character-portrait{width:76px;height:110px}
.no-motion .map-character{animation:none!important}@media(prefers-reduced-motion:reduce){.map-character{animation:none!important}}

.tile-resident .npc-sprite.map-character,.world-npc .npc-sprite.map-character{position:relative;animation:none;overflow:hidden}
.resident-frame{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}.resident-frame.frame-0{animation:resident-frame-a 4.8s steps(1,end) infinite;animation-delay:var(--idle-delay)}.resident-frame.frame-1{opacity:0;animation:resident-frame-b 4.8s steps(1,end) infinite;animation-delay:var(--idle-delay)}
@keyframes resident-frame-a{0%,69%,100%{opacity:1}70%,94%{opacity:0}}@keyframes resident-frame-b{0%,69%,100%{opacity:0}70%,94%{opacity:1}}
.no-motion .resident-frame{animation:none!important}@media(prefers-reduced-motion:reduce){.resident-frame{animation:none!important}}

/* Atlas gutters prevent a neighboring portrait cape entering the crop. */
.character-portrait{clip-path:inset(0 5% 0 6%)}

/* Mail side gait: contact / passing / opposite contact / opposite passing. */
.world-player[data-direction=left] .walking-sprite,.world-player[data-direction=right] .walking-sprite{background-image:var(--side-walk)!important;background-size:400% 100%;background-position:33.333333% 0;transform-origin:center;}
.world-player[data-direction=left] .walking-sprite{scale:-1 1}
.world-player[data-direction=right] .walking-sprite{scale:1 1}
.world-player.walking[data-direction=left] .walking-sprite,.world-player.walking[data-direction=right] .walking-sprite{animation:mail-side-gait .6s steps(1,end) infinite}
@keyframes mail-side-gait{0%{background-position:0 0}25%{background-position:33.333333% 0}50%{background-position:66.666667% 0}75%,100%{background-position:100% 0}}

.walk-viewport{position:absolute;inset:0;overflow:hidden;background:#2a2438;touch-action:none;cursor:crosshair}#walk-canvas{display:block;position:absolute;inset:0}.walk-scene .world-light{z-index:2}.walk-scene .location-plaque{z-index:4;pointer-events:none;top:24px}.world-hint{position:absolute;z-index:6;left:50%;bottom:93px;transform:translateX(-50%);font-size:11px;padding:6px 12px;border:1px solid #d6c29088;background:#3d304adc;color:#fff4d6;border-radius:6px;white-space:nowrap;pointer-events:none}.world-hint[hidden]{display:none}.walk-scene .walk-hint{bottom:83px}.action-burst{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:34px;color:#fff3c4;text-shadow:0 0 14px #ffd98a;animation:burst-up .9s ease-out both;pointer-events:none;z-index:7}@keyframes burst-up{from{opacity:1;transform:translate(-50%,-40%) scale(.6)}to{opacity:0;transform:translate(-50%,-140%) scale(1.3)}}.craft-list{display:grid;gap:12px}.craft-list button{text-align:left;font-size:12px;padding:13px 12px;background:#fff7eb;border-color:#c2a88b}.craft-list small{font-size:10px;letter-spacing:0;line-height:1.8;color:#9a7c91;display:block;margin-top:6px}.craft-list button:disabled{cursor:default}.farm-card p,.conversation-card>p{font-size:12px;line-height:1.8}.walk-scene .daily-actions{bottom:125px}.portrait-sprite{mask-image:linear-gradient(#000 93%,transparent)}
@media(max-width:850px){.walk-scene .location-plaque{top:98px;left:42%}.walk-scene .location-plaque h2{font-size:14px}.walk-scene .location-plaque p{max-width:160px;font-size:8px}.world-hint{max-width:80%;white-space:normal;text-align:center;bottom:105px;font-size:9px}.walk-scene .daily-actions{bottom:152px}.walk-scene .daily-actions button{min-width:100px}.walk-scene .walk-controls{bottom:159px}.game-dock{max-width:calc(100vw - 12px)}.game-dock button{min-width:0;flex:1;padding:3px 6px;font-size:8px}.game-dock span{font-size:17px}}
@media(max-height:520px){.walk-scene .location-plaque{top:18px}.walk-scene .daily-actions{bottom:92px}.walk-scene .walk-controls{bottom:107px}.world-hint{bottom:75px;font-size:8px}}
