:root{--night:#0c1729;--panel:#16283b;--line:#2a4254;--ink:#edf4ed;--muted:#8da9b2;--teal:#86e3d3;--fire:#ffb16c;--water:#7be1e7;--gold:#f3d587;font-family:ui-rounded,"PingFang SC","Hiragino Sans GB",system-ui,sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;background:var(--night)}
button,input{font:inherit}
button{color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:disabled{opacity:.45;cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--teal);outline-offset:4px}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
.svg-definitions{position:absolute;width:0;height:0;overflow:hidden}
.view{min-height:100dvh;position:relative}
.home-view,.lobby-view,.result-view{background:radial-gradient(ellipse at 65% 10%,#1d3649 0,transparent 52%),radial-gradient(ellipse at 9% 65%,#143b3f55,transparent 45%),var(--night);overflow:hidden}
.topbar{height:100px;max-width:1320px;margin:auto;padding:25px 48px;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:3}
.brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:800;letter-spacing:4px}
.brand small{display:block;font-size:7px;letter-spacing:3px;color:#71949d;margin-top:6px}
.brand-symbol{width:32px;height:36px;position:relative;display:block;transform:rotate(-13deg)}
.brand-symbol i{display:block;position:absolute;width:18px;height:27px;background:var(--fire);border-radius:85% 15% 50% 50%;left:0;top:1px;box-shadow:0 0 20px #ffb16c28}
.brand-symbol i+i{background:var(--water);left:15px;top:10px;transform:rotate(25deg);box-shadow:0 0 20px #7be1e728}
.header-actions{display:flex;align-items:center;gap:10px}
.edition-badge{font-size:9px;letter-spacing:2px;color:#90b0b9;margin-right:13px}
.icon-button{position:relative;width:42px;height:42px;border:1px solid #3c5666;background:#ffffff04;border-radius:50%;display:grid;place-items:center;font-size:21px;color:#bbd7d8}
.sound-toggle i{position:absolute;top:20px;left:11px;width:21px;height:1.5px;background:#bbd7d8;transform:rotate(-45deg);box-shadow:0 0 0 2px #16293b}
.sound-on i{display:none}
.sky-stars{position:absolute;inset:0;pointer-events:none;opacity:.4;background-image:radial-gradient(#afc9bf 1px,transparent 1px),radial-gradient(#69b9b0 1px,transparent 1px);background-position:20px 40px,60px 110px;background-size:151px 197px,227px 243px;mask-image:linear-gradient(#000,transparent 85%)}
.home-content{max-width:1210px;margin:45px auto 0;padding:0 40px;display:grid;grid-template-columns:.8fr 1.25fr;gap:65px;position:relative;align-items:center}
.eyebrow{font-size:10px;letter-spacing:2.5px;font-weight:650;color:#8bb8b9;display:inline-flex;gap:9px;align-items:center}
.eyebrow i,.status-light{width:5px;height:5px;border-radius:50%;background:var(--teal);display:inline-block;box-shadow:0 0 9px #86e3d3}
.home-story h1{font-size:clamp(75px,8vw,108px);letter-spacing:9px;line-height:1.13;margin:30px 0 22px;font-weight:800;position:relative}
.title-dot{color:var(--fire);display:inline-block;margin-left:-5px}
.glow-word{color:#ace8db;text-shadow:0 0 40px #86e3d31a}
.title-line{display:inline-block;width:52px;height:2px;background:linear-gradient(90deg,#ffbf7b,transparent);margin:0 0 33px 17px;transform:rotate(-35deg)}
.story-lead{font-size:18px;line-height:1.85;letter-spacing:2px;color:#c5dad8;margin:0}
.story-sub{font-size:11px;color:#70949e;letter-spacing:2px;margin:18px 0 0}
.story-traits{display:flex;gap:16px;margin-top:37px;font-size:8px;color:#738e97;letter-spacing:1px;white-space:nowrap}
.trait-dot{width:4px;height:4px;border-radius:50%;display:inline-block;margin-right:5px}
.fire-dot{background:var(--fire)}
.water-dot{background:var(--water)}
.home-visual{padding-top:15px}
.preview-scene{position:relative;border:1px solid #3a5867;border-radius:23px;overflow:hidden;box-shadow:0 30px 80px #0002,0 0 45px #7be1e706}
.scene-art{display:block;width:100%;height:auto}
.scene-caption{position:absolute;bottom:0;left:0;right:0;height:40px;background:linear-gradient(transparent,#0c192da6);padding:11px 18px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:1px;color:#9ec1bd;align-items:center}
.scene-caption .status-light{width:4px;height:4px;box-shadow:none;margin-right:6px}
.start-panel{position:relative;margin:-9px 25px 0;padding:25px 28px 12px;background:linear-gradient(135deg,#1b3144,#172a3b);border:1px solid #385463;border-radius:0 0 22px 22px;box-shadow:0 20px 50px #0002}
.start-panel-top{display:flex;justify-content:space-between;align-items:center}
.small-label{font-size:8px;font-weight:700;letter-spacing:2px;color:#7da2ab}
.availability{font-size:8px;letter-spacing:1px;color:#6e939b}
.start-panel h2{font-size:20px;letter-spacing:1px;margin:15px 0 20px;font-weight:650}
.button{min-height:52px;width:100%;border-radius:12px;border:1px solid;display:flex;align-items:center;justify-content:center;gap:9px;font-size:13px;font-weight:750;letter-spacing:1px;transition:transform .15s,filter .15s}
.button:active{transform:translateY(2px);filter:brightness(.95)}
.primary-button{background:linear-gradient(110deg,#9fe5d0,#76cabb);color:#15393b;border-color:#c4f6de;box-shadow:0 4px 20px #68cdbf12}
.primary-button>span{margin-left:auto;padding-right:7px;font-size:20px}
.primary-button:has(>span){padding-left:21px}
.secondary-button{margin-top:12px;background:#10223766;border-color:#385767;color:#b8d8d8;font-size:11px;font-weight:650;min-height:48px}
.secondary-button small{font-size:8px;color:#7296a1;font-weight:500;letter-spacing:.5px}
.text-button{display:block;border:0;background:none;padding:15px 8px;font-size:9px;letter-spacing:.7px;font-weight:500;color:#72939f;margin:auto}
.text-button strong{color:#a9ceca;font-weight:650}
.home-footer{max-width:1130px;margin:58px auto 0;border-top:1px solid #263e4b;display:flex;justify-content:space-between;padding:23px 0 30px;font-size:10px;color:#6f8e99;letter-spacing:1.5px}
.home-footer>div{display:flex;align-items:center;gap:13px}
.step-number{color:#4d707b;font-size:9px;letter-spacing:0}
.back-button{background:none;border:0;min-height:44px;font-size:11px;color:#a0b9bd;letter-spacing:1px}
.lobby-layout{max-width:960px;margin:65px auto 60px;padding:0 35px;display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}
.lobby-story h1{font-size:45px;line-height:1.4;letter-spacing:2px;margin:22px 0 23px}
.lobby-story h1>span{color:#9fddd1}
.lobby-story>p{font-size:11px;line-height:1.9;color:#92b2b7}
.lobby-help{margin-top:35px!important;font-size:10px!important;color:#607f8d!important}
.room-card{background:#152b3b;border:1px solid #355261;border-radius:24px;padding:25px 27px}
.room-ticket{text-align:center;border-bottom:1px dashed #34505d}
.room-ticket strong{display:block;font-size:34px;letter-spacing:8px;color:var(--teal);margin:14px 0 0;font-variant-numeric:tabular-nums}
.room-ticket .text-button{font-size:8px}
.lobby-players{display:flex;justify-content:center;align-items:center;gap:23px;margin:20px 0 24px}
.lobby-player{text-align:center}
.lobby-player>svg{width:64px;height:78px;filter:drop-shadow(0 0 16px #ffffff12)}
.fire-player{color:var(--fire)}
.water-player{color:var(--water)}
.lobby-player strong{display:block;font-size:11px;margin:8px 0}
.lobby-player small{display:block;color:#6e94a1;font-size:8px}
.lobby-player>span{display:block;color:#527783;font-size:7px;margin-top:10px;white-space:nowrap}
.lobby-player.is-empty{opacity:.3}
.lobby-player.is-ready small{color:#9bdfc4}
.together-mark{font-size:21px;color:#426374;margin-top:-30px}
.share-note,.room-rule{font-size:8px;line-height:1.8;text-align:center;color:#5d8793;margin:10px 0 18px}
.room-rule{margin:14px 0 0}
.game-view{height:100dvh;min-height:420px;overflow:hidden;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 40%,#1c3944,#0c182a 75%);padding:0 max(16px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.game-topbar{height:64px;flex:none;display:flex;align-items:center;justify-content:space-between;max-width:1260px;width:100%;margin:auto}
.game-title{font-size:19px;font-weight:750;letter-spacing:3px;text-align:center;padding-left:42px}
.game-title small{display:block;font-size:7px;letter-spacing:1.5px;color:#628995;margin-top:4px;font-weight:500}
.game-header-actions{display:flex;gap:8px}
.game-topbar .icon-button{width:35px;height:35px;font-size:18px;border-color:#2b495a}
.game-topbar .sound-toggle i{top:17px;left:8px;width:20px}
.level-hud{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:1100px;width:100%;margin:9px auto 0;flex:none;min-height:44px}
.level-label .small-label{display:block;font-size:7px;letter-spacing:2px;color:#648b98}
.level-label strong{display:block;font-size:15px;font-weight:650;letter-spacing:1px;margin-top:6px}
.journey-progress{display:flex;gap:6px;margin-right:auto;margin-left:15px}
.journey-progress i{display:block;width:25px;height:3px;background:#294655;border-radius:3px}
.journey-progress i.complete{background:#78cdb8}
.journey-progress i.current{background:#b8edd7;box-shadow:0 0 12px #7bdfc94d}
.journey-stats{text-align:right;white-space:nowrap}
.journey-stats>span{font-size:15px;color:#bad3d2;font-variant-numeric:tabular-nums;letter-spacing:1px}
.journey-stats>small{display:block;font-size:7px;letter-spacing:1px;color:#628593;margin-top:4px}
.journey-stats strong{font-weight:500;color:#8babb1}
.game-main{display:flex;flex-direction:column;flex:1;min-height:0;justify-content:center;max-width:1100px;width:100%;margin:auto;padding:15px 0 6px}
.scene-frame{position:relative;flex:1;min-height:0;max-height:620px;width:100%;border-radius:19px;border:1px solid #35505d;background:#0f2032;box-shadow:0 15px 50px #0002;overflow:hidden}
.scene-frame canvas{display:block;width:100%;height:100%}
.mission-strip{display:flex;align-items:center;gap:11px;flex:none;padding:12px 14px 9px;min-height:55px;border-bottom:1px solid #203b4a}
.mission-icon{color:var(--teal);font-size:23px}
.mission-strip>div{flex:1;min-width:0}
.mission-strip .small-label{font-size:6px;letter-spacing:2px;color:#577e8c}
.mission-strip strong{display:block;font-size:10px;line-height:1.6;margin-top:4px;color:#a6c9c8;font-weight:550;overflow-wrap:anywhere}
.exit-progress{font-size:8px;color:#5f8d95;white-space:nowrap;margin-left:10px}
.call-bar{display:flex;align-items:center;justify-content:center;gap:7px;min-height:37px;flex:none;padding:6px 0 0}
.call-bar>span{font-size:8px;color:#4d7786;margin-right:5px}
.call-bar>button{border:1px solid #2e4b5a;border-radius:8px;background:#112639;font-size:8px;padding:7px 10px;color:#7ea6af}
.call-bar>button:active{background:#284652}
.role-strip{display:flex;align-items:center;justify-content:space-between;max-width:850px;width:100%;margin:4px auto 7px;gap:15px;flex:none}
.role-chip{display:flex;align-items:center;gap:10px;min-width:148px;border:1px solid #284452;border-radius:12px;padding:8px 14px;background:#10253666;opacity:.65}
.role-chip.active-role{opacity:1;border-color:currentColor;background:#20374666}
.role-chip>svg{width:27px;height:34px}
.role-chip strong{display:block;font-size:10px;letter-spacing:1px;font-weight:600}
.role-chip strong small{font-size:7px;font-weight:400;color:#8ca8ac;letter-spacing:0;margin-left:5px}
.role-chip span{display:block;font-size:7px;color:#5f8794;margin-top:5px;letter-spacing:.5px}
.swap-button{display:flex;align-items:center;justify-content:center;gap:8px;background:none;border:1px solid #355162;border-radius:10px;min-height:42px;padding:0 14px;font-size:9px;color:#86aeb6}
.swap-button>span{font-size:22px;color:var(--teal)}
.swap-button small{font-size:7px;color:#4e7b8c}
.game-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;max-width:1000px;width:100%;margin:auto;flex:none;min-height:118px;padding:10px 0 2px;user-select:none;-webkit-user-select:none;touch-action:none}
.movement-island{display:flex;flex-direction:column;align-items:center;gap:8px}
.movement-pad{width:188px;height:74px;border:1px solid #4c6a77;background:linear-gradient(160deg,#254454,#173141);border-radius:25px;display:flex;align-items:center;position:relative;box-shadow:inset 0 2px #476574,0 5px 0 #081a2a;touch-action:none;user-select:none;-webkit-user-select:none}
.movement-pad>button{height:100%;flex:1;background:none;border:0;border-radius:23px;color:#accdd0;touch-action:none}
.movement-pad>button>span{font-size:32px;font-family:system-ui;line-height:1}
.movement-pad>button.is-held{background:#83c6c328;color:#d3fff0;box-shadow:inset 0 0 22px #78d6bd15}
.movement-divider{position:absolute;height:26px;width:1px;background:#4a6c76;left:50%;top:24px;pointer-events:none}
.control-caption{font-size:7px;letter-spacing:1px;color:#4d7787}
.actions-island{display:flex;align-items:center;gap:17px;padding-bottom:15px}
.action-button{height:76px;width:76px;border:1px solid;border-radius:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;touch-action:none;user-select:none;-webkit-user-select:none;transition:transform .08s;box-shadow:inset 0 2px #ffffff16,0 5px #071829}
.action-button.is-held{transform:translateY(4px);box-shadow:inset 0 2px #ffffff0d,0 1px #071829}
.jump-button{background:linear-gradient(145deg,#263d59,#1a304b);border-color:#4c6986;color:#c5d6ee}
.action-button>span{font-size:24px;line-height:1}
.action-button strong{font-size:11px;letter-spacing:1px;font-weight:650}
.action-button small{font-size:6px;letter-spacing:1px;opacity:.4;margin-top:2px}
.skill-button{background:linear-gradient(145deg,#7f553c,#5a3d34);border-color:#c59168;color:#ffe1b5}
.skill-button.water-skill{background:linear-gradient(145deg,#276574,#214b5e);border-color:#6eafbc;color:#b4f4ee}
.skill-button svg{height:21px;width:21px;margin-bottom:2px}
.control-middle{text-align:center;padding-bottom:23px;display:flex;flex-direction:column;gap:8px}
.control-middle>span{font-size:9px;color:#78a2ab;letter-spacing:1px}
.control-middle>small{font-size:7px;color:#375f72;letter-spacing:1px}
.game-event{position:absolute;top:13px;left:50%;transform:translateX(-50%);max-width:90%;padding:8px 14px;border-radius:10px;background:#0a2232e6;border:1px solid #4c7b79;color:#bde3d2;font-size:10px;font-weight:600;text-align:center;line-height:1.6;opacity:0;pointer-events:none;transition:opacity .2s;z-index:3}
.game-event.visible{opacity:1}
.transition-overlay,.pause-overlay{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#102737dc;backdrop-filter:blur(5px);text-align:center;padding:24px}
.transition-overlay{background:#112d38d4}
.transition-overlay h2{font-size:26px;color:#bfe9d4;letter-spacing:3px}
.pause-icon{font-size:30px;width:65px;height:65px;border:1px solid #355b68;border-radius:50%;display:grid;place-items:center;color:#8ac9c4}
.pause-overlay h2{font-size:23px;margin:20px 0 10px;color:#cae7de}
.pause-overlay p{font-size:10px;line-height:1.9;color:#7198a3;max-width:300px}
.pause-overlay .button{max-width:220px;margin-top:20px}
.result-layout{max-width:620px;margin:35px auto 60px;text-align:center;padding:0 30px}
.result-characters{display:flex;align-items:center;justify-content:center;gap:20px;margin-bottom:25px}
.result-characters>svg{width:75px;height:92px;filter:drop-shadow(0 0 30px #86e3d319)}
.result-light-line{width:80px;height:1px;background:linear-gradient(90deg,var(--fire),var(--teal));box-shadow:0 0 12px #86e3d34d}
.result-stars{display:flex;justify-content:center;gap:14px;color:#294657;font-size:22px;margin:20px 0 13px}
.result-stars .earned{color:#f2d68f;text-shadow:0 0 20px #f2d68f40}
.result-layout h1{font-size:34px;line-height:1.4;letter-spacing:2px;margin:15px 0;color:#d7eee4}
.result-layout>p:not(.personal-best){font-size:11px;color:#769ca6;line-height:1.9}
.result-stats{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:20px;border-top:1px solid #294351;border-bottom:1px solid #294351;margin:30px 0 0;padding:24px 0}
.result-stats>div>span{display:block;font-size:8px;color:#678e9b;margin-bottom:12px}
.result-stats strong{font-size:22px;font-weight:600;color:#c8e4df;font-variant-numeric:tabular-nums}
.personal-best{font-size:8px;color:#4b7686;margin:20px 0 30px;line-height:1.8}
.result-layout>.button{max-width:350px;margin:auto}
.result-layout>.text-button{margin-top:10px}
.modal{max-width:410px;width:calc(100% - 36px);border:1px solid #416572;border-radius:23px;background:linear-gradient(150deg,#1c3548,#12273b);color:var(--ink);padding:32px;box-shadow:0 30px 100px #0005}
.modal::backdrop{background:#05111dd1;backdrop-filter:blur(8px)}
.modal-close,.account-close{position:absolute;right:12px;top:10px;border:0;background:none;width:36px;height:36px;font-size:27px;color:#6b96a5}
.modal h2{font-size:27px;font-weight:650;letter-spacing:1px;line-height:1.45;margin:18px 0 12px;color:#d1eadd}
.modal p{font-size:11px;color:#7299a6;line-height:1.9}
.modal input{width:100%;height:64px;border:1px solid #456471;border-radius:12px;background:#11273a;color:#ace3d7;font-size:26px;text-align:center;letter-spacing:8px;text-transform:uppercase;font-weight:700;margin-top:15px}
.modal input::placeholder{color:#3f6375}
.form-error{font-size:9px!important;color:#e5a78b!important;min-height:17px;margin:7px 0 12px!important}
.howto-modal{max-width:460px}
.howto-steps{margin:23px 0 24px}
.howto-steps>div{display:flex;gap:14px;margin-bottom:17px}
.howto-steps>div>span{color:#588c9a;background:#142e40;font-size:9px;padding:8px;height:30px;border-radius:7px}
.howto-steps p{font-size:10px;line-height:1.9;margin:0}
.howto-steps strong{display:block;color:#a2c6c8;font-size:11px;margin-bottom:3px;font-weight:600}
.exit-modal{text-align:center}
.danger-button{background:#664c49;color:#f4c3ae;border-color:#b58271;margin-top:24px}
.global-toast{position:fixed;z-index:20;bottom:calc(23px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:12px 18px;border:1px solid #467976;border-radius:12px;max-width:min(90vw,500px);background:#163c43f2;color:#c4eee0;box-shadow:0 12px 50px #0003;font-size:11px;line-height:1.7;text-align:center;pointer-events:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

@media(min-width:1450px){.home-content{margin-top:70px}
.home-footer{margin-top:80px}
}

@media(max-width:1100px){.home-content{gap:45px;padding:0 35px;grid-template-columns:.8fr 1.2fr}
.home-story h1{font-size:87px}
.story-traits{gap:10px;font-size:7px}
.home-footer{margin-left:45px;margin-right:45px}
.start-panel{padding:22px 22px 10px;margin-left:17px;margin-right:17px}
.lobby-layout{gap:45px}
.game-main{max-width:1000px}
}

@media(max-width:800px){.topbar{height:78px;padding:20px 24px}
.brand{font-size:16px;gap:10px}
.brand small{font-size:6px;letter-spacing:2px}
.brand-symbol{transform:scale(.8) rotate(-13deg);transform-origin:left center;width:27px}
.icon-button{height:35px;width:35px;font-size:19px}
.sound-toggle i{top:17px;left:8px;width:20px}
.edition-badge{font-size:7px;letter-spacing:1px;margin-right:4px}
.header-actions{gap:7px}
.home-content{display:flex;flex-direction:column;gap:26px;max-width:540px;padding:0 24px;margin:20px auto 0}
.home-story{width:100%;position:relative;padding:0 6px}
.eyebrow{font-size:8px;letter-spacing:2px}
.home-story h1{font-size:65px;line-height:1.05;letter-spacing:5px;margin:18px 0 18px;display:inline-block}
.home-story h1 br{display:none}
.title-dot{display:none}
.title-line{display:none}
.story-lead{font-size:13px;line-height:1.9;letter-spacing:1px;display:inline}
.story-lead br{display:none}
.story-sub{font-size:9px;letter-spacing:1px;margin-top:9px}
.story-traits{margin-top:19px;gap:13px;font-size:7px}
.home-visual{padding-top:0;width:100%}
.preview-scene{border-radius:18px}
.scene-caption{font-size:6px;letter-spacing:.5px;padding:10px 12px;height:32px}
.start-panel{padding:22px 22px 9px;margin:0 12px;border-top:0;border-radius:0 0 18px 18px}
.start-panel h2{font-size:19px;margin:14px 0 19px}
.button{min-height:52px;font-size:12px}
.secondary-button{min-height:48px;font-size:10px}
.secondary-button small{font-size:7px}
.home-footer{display:flex;max-width:490px;margin:31px auto 0;padding:20px 24px 30px;gap:10px;border-top:0;font-size:7px;letter-spacing:.3px}
.home-footer>div{gap:7px;white-space:nowrap}
.step-number{font-size:7px}
.lobby-layout{display:flex;flex-direction:column;gap:23px;max-width:440px;margin:25px auto 40px;padding:0 26px}
.lobby-story{text-align:center}
.lobby-story h1{font-size:29px;line-height:1.4;margin:14px 0}
.lobby-story h1 br{display:none}
.lobby-story>p{font-size:10px;margin-bottom:0}
.lobby-help{display:none}
.room-card{width:100%;padding:24px}
.lobby-view>.topbar>.small-label{font-size:6px;letter-spacing:1px}
.room-ticket strong{font-size:32px}
.game-view{padding-left:max(13px,env(safe-area-inset-left));padding-right:max(13px,env(safe-area-inset-right));padding-bottom:max(13px,env(safe-area-inset-bottom))}
.game-topbar{height:61px}
.game-title{font-size:17px;letter-spacing:2px;padding-left:34px}
.game-title small{font-size:6px;letter-spacing:1px}
.game-topbar .icon-button{width:32px;height:32px;font-size:17px}
.game-topbar .sound-toggle i{top:15px;left:6px}
.game-header-actions{gap:5px}
.level-hud{margin-top:13px;min-height:44px;gap:10px;padding:0 5px}
.level-label .small-label{font-size:6px;letter-spacing:1.5px}
.level-label strong{font-size:14px;letter-spacing:.5px}
.journey-progress{gap:4px;margin-left:auto;margin-right:7px}
.journey-progress i{width:14px}
.journey-stats>span{font-size:13px}
.game-main{padding-top:17px;padding-bottom:7px}
.scene-frame{border-radius:14px;flex:0 0 auto;aspect-ratio:1000/760;width:100%;height:auto;max-height:100%}
.mission-strip{padding:13px 7px 8px;min-height:66px;gap:9px}
.mission-strip strong{font-size:10px}
.mission-strip .small-label{font-size:6px}
.mission-icon{font-size:20px}
.exit-progress{font-size:7px;margin-left:4px;max-width:70px;text-align:right;line-height:1.7;white-space:normal}
.role-strip{margin:12px auto 7px;gap:7px}
.role-chip{min-width:0;flex:1;padding:9px 10px;gap:8px;min-height:62px}
.role-chip>svg{width:23px;height:29px}
.role-chip strong{font-size:9px;letter-spacing:.5px}
.role-chip strong small{font-size:6px;margin-left:4px}
.role-chip span{font-size:6px;letter-spacing:0;line-height:1.4}
.swap-button{min-height:44px;padding:4px 9px;font-size:8px;display:flex;flex-direction:column;gap:1px;line-height:1.4}
.swap-button>span{font-size:17px;order:-1}
.swap-button>small{display:none}
.game-controls{min-height:129px;padding:10px 0 0;gap:10px;align-items:center;position:relative}
.movement-pad{width:174px;height:76px;border-radius:25px}
.movement-pad>button>span{font-size:29px}
.control-caption{font-size:6px;letter-spacing:.2px}
.actions-island{gap:13px;padding-bottom:15px}
.action-button{height:74px;width:66px;border-radius:23px}
.action-button strong{font-size:10px}
.action-button small{font-size:5px}
.control-middle{position:absolute;bottom:3px;left:50%;transform:translateX(-50%);padding:0;gap:0;white-space:nowrap}
.control-middle>span{font-size:7px;letter-spacing:1px;color:#588796}
.control-middle>small{display:none}
.call-bar{gap:6px;min-height:35px;padding-top:9px}
.call-bar>span{font-size:6px;margin-right:0}
.call-bar>button{font-size:7px;padding:6px 8px}
.game-event{top:10px;padding:7px 10px;font-size:8px;max-width:92%;line-height:1.6}
.transition-overlay h2{font-size:20px;letter-spacing:1px}
.transition-overlay .small-label{font-size:6px}
.pause-overlay h2{font-size:21px;margin:15px 0 5px}
.pause-icon{height:45px;width:45px;font-size:23px}
.pause-overlay p{font-size:9px}
.pause-overlay .button{margin-top:12px;min-height:43px;width:190px;font-size:11px}
.result-view .topbar>.small-label{font-size:6px;letter-spacing:.5px}
.result-layout{margin-top:35px;max-width:430px;padding:0 25px}
.result-layout h1{font-size:28px;letter-spacing:1px}
.result-layout>p:not(.personal-best){font-size:10px}
.result-stats{grid-template-columns:1fr 1fr;gap:22px;padding:22px 0;margin-top:25px}
.result-stats>div>span{margin-bottom:7px}
.result-stats strong{font-size:23px}
.result-characters{margin-bottom:21px}
.result-characters>svg{width:65px;height:80px}
.result-light-line{width:65px}
.modal{padding:29px 25px}
.modal h2{font-size:26px}
.howto-steps p{font-size:9px}
.howto-steps strong{font-size:10px}
.howto-steps>div{margin-bottom:15px}
.howto-modal{max-height:calc(100dvh - 36px);overflow:auto}
.howto-modal h2{font-size:27px}
.back-button{font-size:9px}
}

@media(max-width:360px){.topbar{padding-left:18px;padding-right:18px}
.edition-badge{font-size:6px;max-width:48px;line-height:1.8;text-align:center}
.home-content{padding-left:19px;padding-right:19px}
.home-story h1{font-size:56px}
.story-lead{font-size:11px}
.story-traits{gap:8px;font-size:6px}
.start-panel{padding-left:17px;padding-right:17px;margin-left:7px;margin-right:7px}
.start-panel h2{font-size:16px}
.small-label{font-size:7px}
.availability{font-size:7px}
.home-footer{font-size:6px;padding-left:20px;padding-right:20px;gap:5px}
.home-footer>div{gap:4px}
.game-view{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
.game-title{font-size:15px;letter-spacing:1px}
.game-title small{font-size:5px}
.level-label strong{font-size:12px}
.level-label .small-label{font-size:5px}
.journey-progress{gap:3px;margin-right:3px}
.journey-progress i{width:10px}
.journey-stats>span{font-size:11px}
.mission-strip{gap:6px;padding-left:3px;padding-right:3px}
.mission-strip strong{font-size:8px}
.exit-progress{font-size:6px;max-width:50px}
.role-chip{padding:8px 7px;gap:5px}
.role-chip>svg{height:26px;width:21px}
.role-chip strong{font-size:8px}
.role-chip strong small{font-size:5px;display:block;margin:3px 0 0}
.role-chip span{font-size:5px}
.swap-button{padding:3px 6px;font-size:6px}
.movement-pad{width:143px;height:70px}
.movement-pad>button>span{font-size:25px}
.movement-divider{top:22px;height:24px}
.control-caption{font-size:5px}
.actions-island{gap:10px}
.action-button{width:58px;height:70px;border-radius:20px}
.game-controls{gap:8px;min-height:121px}
.action-button strong{font-size:9px}
.control-middle>span{font-size:6px}
.call-bar{gap:4px}
.call-bar>button{font-size:6px;padding:6px 7px}
.call-bar>span{font-size:5px}
}

@media(max-width:800px) and (max-height:760px) and (orientation:portrait){.game-topbar{height:52px}
.level-hud{margin-top:7px;min-height:38px}
.game-main{padding-top:8px;padding-bottom:0}
.mission-strip{min-height:55px;padding-top:9px;padding-bottom:7px}
.role-strip{margin-top:6px;margin-bottom:4px}
.role-chip{min-height:54px}
.game-controls{min-height:113px;padding-top:7px}
.game-main{justify-content:center}
.role-chip span{font-size:5px}
.game-event{font-size:7px}
}

@media(orientation:landscape) and (max-height:600px){.game-view{min-height:0;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));padding-bottom:max(7px,env(safe-area-inset-bottom))}
.game-topbar{height:42px}
.game-topbar .icon-button{height:29px;width:29px;font-size:15px}
.game-topbar .sound-toggle i{top:13px;left:5px;width:19px}
.game-title{font-size:14px;letter-spacing:2px;padding-left:31px}
.game-title small{font-size:5px;letter-spacing:1px;margin-top:3px}
.level-hud{position:absolute;top:calc(44px + env(safe-area-inset-top));left:max(22px,env(safe-area-inset-left));width:160px;margin:0;display:block;z-index:2}
.level-label .small-label{font-size:5px}
.level-label strong{font-size:10px;letter-spacing:.3px}
.journey-progress{margin:10px 0 0;gap:4px}
.journey-progress i{width:16px}
.journey-stats{display:none}
.game-main{position:absolute;top:calc(46px + env(safe-area-inset-top));bottom:calc(94px + env(safe-area-inset-bottom));left:calc(max(18px,env(safe-area-inset-left)) + 152px);right:calc(max(18px,env(safe-area-inset-right)) + 152px);transform:none;width:auto;max-width:650px;padding:0;justify-content:center}
.scene-frame{flex:1;min-height:0;max-height:none;aspect-ratio:auto}
.mission-strip{position:absolute;left:0;right:0;bottom:-34px;min-height:30px;padding:4px 0;border:0;gap:6px}
.mission-strip .small-label{display:none}
.mission-strip strong{font-size:7px;line-height:1.5;margin:0}
.mission-icon{font-size:15px}
.exit-progress{font-size:6px;max-width:60px}
.call-bar{position:absolute;bottom:-66px;left:50%;transform:translateX(-50%);white-space:nowrap;min-height:25px;padding:0;gap:4px}
.call-bar>button{font-size:6px;padding:5px 7px}
.call-bar>span{font-size:5px}
.role-strip{position:absolute;top:calc(108px + env(safe-area-inset-top));left:max(20px,env(safe-area-inset-left));width:133px;display:flex;flex-direction:column;align-items:stretch;gap:5px;margin:0}
.role-chip{min-height:43px;padding:6px 8px;min-width:0;flex:none;gap:6px}
.role-chip>svg{height:25px;width:20px}
.role-chip strong{font-size:7px}
.role-chip strong small{font-size:5px;display:inline;margin-left:4px}
.role-chip span{font-size:5px;margin-top:3px}
.swap-button{position:fixed;left:auto;right:calc(max(18px,env(safe-area-inset-right)) + 31px);top:calc(138px + env(safe-area-inset-top));width:116px;min-height:39px;display:flex;flex-direction:row;font-size:7px;padding:3px 8px;gap:8px;white-space:nowrap}
.swap-button>span{order:0;font-size:18px}
.game-controls{position:absolute;left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));max-width:none;width:auto;height:89px;min-height:0;padding:0;align-items:flex-end;pointer-events:none}
.movement-island,.actions-island{pointer-events:auto}
.movement-pad{width:154px;height:62px;border-radius:21px}
.movement-pad>button>span{font-size:26px}
.movement-divider{top:19px;height:24px}
.movement-island{gap:6px}
.control-caption{font-size:5px}
.actions-island{gap:13px;padding-bottom:12px}
.action-button{width:63px;height:65px;border-radius:21px}
.action-button>span{font-size:20px}
.action-button strong{font-size:8px}
.action-button small{font-size:5px}
.skill-button svg{width:17px;height:17px}
.control-middle{display:none}
.game-event{font-size:7px;padding:5px 8px;top:7px;max-width:95%}
.pause-overlay{padding:15px}
.pause-icon{display:none}
.pause-overlay h2{font-size:16px;margin:0 0 5px}
.pause-overlay p{font-size:8px;margin:4px 0}
.pause-overlay .button{min-height:35px;margin-top:8px;font-size:9px;width:160px}
.transition-overlay h2{font-size:18px}
.transition-overlay .small-label{font-size:5px}
}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}
}

.game-topbar{margin:0 auto}
@media(max-width:800px){.home-story h1{display:block}.story-lead{display:block}.role-chip span{font-size:7px;line-height:1.5}.role-chip{min-height:65px}}
@media(max-width:360px){.role-chip span{font-size:6px}}
@media(orientation:landscape) and (max-height:600px){.role-chip{min-height:43px}.role-chip span{font-size:5px}}

.home-view,.lobby-view,.result-view{padding-top:env(safe-area-inset-top)}
.game-view{padding-top:env(safe-area-inset-top)}
.result-layout>.star-rule{font-size:8px!important;color:#6a909c!important;letter-spacing:.5px;margin:0 0 19px}

@media(orientation:landscape) and (max-height:340px){.role-strip{gap:3px}.role-chip{min-height:31px;padding:3px 7px}.role-chip>svg{height:22px}.role-chip span{display:none}.role-chip strong small{display:inline}.swap-button{top:calc(108px + env(safe-area-inset-top))}}

/* Play inside one continuous scene. Only the controls intercept touches; the
   world-window gives the renderer room above the player's thumbs and below HUD. */
#game-view{padding:0;min-height:0;height:100dvh;isolation:isolate}
#game-view .game-main{position:absolute;inset:0;width:100%;max-width:none;height:100%;margin:0;padding:0;display:block}
#game-view .scene-frame{position:relative;width:100%;height:100%;max-height:none;min-height:0;border:0;border-radius:0;box-shadow:none;aspect-ratio:auto}
#game-view .scene-frame::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(#08172599,transparent 24%,transparent 73%,#0817258c);z-index:1}
#game-view .world-window{position:absolute;top:calc(150px + env(safe-area-inset-top));bottom:calc(114px + env(safe-area-inset-bottom));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));pointer-events:none;visibility:hidden}
#game-view .game-topbar{position:absolute;top:calc(12px + env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));width:auto;max-width:none;height:38px;margin:0;z-index:6;pointer-events:none}
#game-view .game-topbar button{pointer-events:auto;background:#10253780;backdrop-filter:blur(8px)}
#game-view .game-topbar .icon-button{width:36px;height:36px;font-size:18px}
#game-view .game-topbar .sound-toggle i{top:17px;left:8px;width:20px}
#game-view .game-title{font-size:15px;letter-spacing:3px;padding-left:42px;text-shadow:0 2px 12px #05121e}
#game-view .game-title small{font-size:7px;letter-spacing:1px;color:#9ab7bc;margin-top:4px}
#game-view .game-header-actions{gap:8px}
#game-view .level-hud{position:absolute;top:calc(67px + env(safe-area-inset-top));left:max(20px,env(safe-area-inset-left));right:auto;width:auto;max-width:48%;min-height:36px;padding:0;margin:0;display:flex;gap:14px;z-index:2;pointer-events:none}
#game-view .level-label .small-label{font-size:7px;color:#a0c0bf;letter-spacing:1.5px}
#game-view .level-label strong{font-size:14px;letter-spacing:.5px;margin-top:5px;text-shadow:0 2px 10px #061721}
#game-view .journey-progress{display:flex;margin:0;gap:5px}
#game-view .journey-progress i{width:19px}
#game-view .journey-stats{display:block;text-align:left}
#game-view .journey-stats>span{font-size:12px}
#game-view .journey-stats>small{font-size:7px;color:#8caeaf}
#game-view .mission-strip{position:absolute;top:calc(115px + env(safe-area-inset-top));left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));bottom:auto;min-height:26px;max-width:none;padding:4px 0;margin:0;border:0;gap:10px;z-index:2;pointer-events:none}
#game-view .mission-strip .small-label,#game-view .mission-icon{display:none}
#game-view .mission-strip strong{font-size:11px;line-height:1.5;margin:0;color:#b6d6ce;text-shadow:0 1px 8px #071a29}
#game-view .exit-progress{font-size:9px;color:#afcbbf;max-width:none;white-space:nowrap}
#game-view .role-strip{position:absolute;top:calc(63px + env(safe-area-inset-top));right:max(20px,env(safe-area-inset-right));left:auto;width:auto;max-width:none;margin:0;display:flex;flex-direction:row;align-items:center;gap:10px;z-index:3;pointer-events:none}
#game-view .role-chip{display:none;min-width:0;min-height:36px;flex:none;border:0;padding:0;background:none;gap:7px;order:0}
#game-view .role-chip.active-role{display:flex}
#game-view .role-chip>svg{width:22px;height:29px}
#game-view .role-chip strong{font-size:11px;letter-spacing:1px}
#game-view .role-chip strong small{display:inline;font-size:7px;margin-left:4px;color:#a7c6c3}
#game-view .role-chip span{display:none}
#game-view .swap-button{position:static;width:auto;min-height:44px;padding:0 11px;display:flex;flex-direction:row;gap:7px;order:1;white-space:nowrap;pointer-events:auto;background:#142c3a99;border-color:#6c999663;border-radius:24px;backdrop-filter:blur(8px)}
#game-view .swap-button .swap-label{font-size:10px;color:#bad7cf;order:0}
#game-view .swap-button .swap-icon{font-size:20px;order:0}
#game-view .swap-button small{display:none}
#game-view .game-controls{position:absolute;left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom));height:82px;width:auto;max-width:none;min-height:0;margin:0;padding:0;display:flex;align-items:flex-end;gap:12px;z-index:3;pointer-events:none}
#game-view .movement-island,#game-view .actions-island{pointer-events:none;gap:14px;padding:0}
#game-view .movement-pad,#game-view .action-button{pointer-events:auto;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);box-shadow:inset 0 1px #d7f3e21a,0 5px 20px #030d1e24}
#game-view .movement-pad{width:176px;height:76px;border-radius:38px;background:#19374785;border-color:#b0d8d273}
#game-view .movement-pad>button{border-radius:38px}
#game-view .movement-pad>button>span{font-size:32px;color:#d3e9e4}
#game-view .movement-divider{height:24px;top:26px;background:#b0d8d243}
#game-view .control-caption,#game-view .control-middle{display:none}
#game-view .actions-island{display:flex;align-items:center}
#game-view .action-button{width:76px;height:76px;border-radius:50%;gap:3px}
#game-view .jump-button{background:#25415b85;border-color:#b9d2e580;color:#e1eff4}
#game-view .skill-button{background:#7152368c;border-color:#edc18b99;color:#ffe2b9}
#game-view .skill-button.water-skill{background:#235c678c;border-color:#a1e7de99;color:#d7fff7}
#game-view .action-button.is-held{background:#527e88cc;transform:translateY(2px);box-shadow:0 0 24px #8ce3d02b}
#game-view .action-button strong{font-size:11px}
#game-view .action-button>span{font-size:25px}
#game-view .action-button small{display:none}
#game-view .skill-button svg{width:23px;height:23px;margin:0}
#game-view .call-bar{position:absolute;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translateX(-50%);min-height:0;padding:0;gap:6px;white-space:nowrap;z-index:3}
#game-view .call-bar>span{display:none}
#game-view .call-bar>button{font-size:10px;min-height:44px;min-width:44px;padding:7px 11px;border-radius:22px;background:#102a39aa;border-color:#6b96965c}
#game-view .game-event{top:calc(109px + env(safe-area-inset-top));z-index:4;font-size:11px;max-width:85%;padding:5px 10px}
#game-view:has(.game-event.visible) .mission-strip{visibility:hidden}
#game-view .pause-overlay,#game-view .transition-overlay{z-index:5;padding:24px}

@media(max-width:600px){
  #game-view .game-title{font-size:14px}
  #game-view .level-hud{max-width:47%;gap:8px}
  #game-view .level-label strong{font-size:12px}
  #game-view .journey-stats{display:none}
  #game-view .journey-progress{gap:3px}
  #game-view .journey-progress i{width:10px}
  #game-view .role-strip{gap:5px}
  #game-view .role-chip strong{font-size:10px;letter-spacing:0}
  #game-view .role-chip strong small{display:none}
  #game-view .swap-button{padding:0 9px;gap:4px}
  #game-view .game-controls{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right))}
  #game-view .movement-pad{width:140px;height:68px}
  #game-view .movement-divider{top:22px}
  #game-view .actions-island{gap:10px}
  #game-view .action-button{width:62px;height:62px}
  #game-view .action-button strong{font-size:10px}
  #game-view .mission-strip strong{font-size:10px}
  #game-view .exit-progress{font-size:8px}
  #game-view .call-bar{bottom:calc(100px + env(safe-area-inset-bottom));gap:5px}
  #game-view .call-bar>button{font-size:9px;min-height:44px;padding:5px 10px}
  #game-view:has(.call-bar:not([hidden])) .world-window{bottom:calc(156px + env(safe-area-inset-bottom))}
}
@media(orientation:landscape) and (max-height:600px){
  #game-view .world-window{top:calc(103px + env(safe-area-inset-top));bottom:calc(100px + env(safe-area-inset-bottom))}
  #game-view .game-title{font-size:12px;letter-spacing:2px}
  #game-view .game-title small{display:none}
  #game-view .level-hud{top:calc(57px + env(safe-area-inset-top));max-width:42%}
  #game-view .level-label strong{font-size:12px}
  #game-view .role-strip{top:calc(53px + env(safe-area-inset-top))}
  #game-view .mission-strip{top:calc(18px + env(safe-area-inset-top));left:30%;right:25%;padding:0;text-align:center}
  #game-view .mission-strip strong{font-size:10px}
  #game-view .mission-strip .exit-progress,#game-view .game-title{display:none}
  #game-view .game-controls{bottom:calc(12px + env(safe-area-inset-bottom));height:76px}
  #game-view .movement-pad{height:66px;width:154px}
  #game-view .movement-divider{top:21px}
  #game-view .action-button{height:66px;width:66px}
  #game-view .call-bar>button{font-size:9px;padding:5px 8px;min-height:44px}
  #game-view .game-event{top:calc(13px + env(safe-area-inset-top));font-size:10px;max-width:55%}
}
@media(orientation:landscape) and (max-width:700px){
  #game-view .call-bar{bottom:calc(12px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr;gap:4px}
  #game-view .call-bar>button{font-size:8px;padding:5px 6px;min-height:44px}
  #game-view:has(.call-bar:not([hidden])) .world-window{bottom:calc(116px + env(safe-area-inset-bottom))}
}
@media(orientation:landscape) and (max-height:340px){
  #game-view .world-window{top:calc(86px + env(safe-area-inset-top));bottom:calc(96px + env(safe-area-inset-bottom))}
  #game-view .level-hud{top:calc(10px + env(safe-area-inset-top));left:calc(62px + env(safe-area-inset-left));max-width:32%}
  #game-view .journey-stats,#game-view .journey-progress{display:none}
  #game-view .role-strip{top:calc(8px + env(safe-area-inset-top));right:calc(108px + env(safe-area-inset-right))}
  #game-view .mission-strip{top:calc(57px + env(safe-area-inset-top));left:15%;right:15%}
  #game-view .game-event{top:calc(53px + env(safe-area-inset-top));max-width:70%}
}

/* Accounts stay on the home screen; touch controls and the game world are unchanged. */
.account-entry{max-width:146px;min-height:42px;padding:0 14px;border:1px solid #486b74;border-radius:22px;background:#20404d75;color:#bde6dd;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-home-note{margin:0 0 10px;text-align:center;color:#83a6af;font-size:9px;line-height:1.7}
.account-modal{max-width:440px;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain}
.account-modal h2{font-size:25px;margin-top:14px}
.account-tabs{display:flex;gap:6px;background:#0d2132;border:1px solid #294b59;border-radius:12px;padding:4px;margin:20px 0 16px}
.account-tabs>button{flex:1;min-height:42px;border:1px solid transparent;border-radius:9px;background:transparent;color:#7fa1af;font-size:13px}
.account-tabs>button[aria-pressed=true]{background:#294d58;color:#ccece3;border-color:#476c73}
.account-intro{margin:0 0 15px!important}
.account-modal fieldset{min-width:0;padding:0;border:0;margin:0}
.account-field{margin-bottom:16px}
.account-field label{display:block;font-size:12px;color:#c2dcd9;margin-bottom:8px}
.account-field label small{font-size:10px;color:#82a2ad;margin-left:7px}
.account-field input{height:48px;font-size:16px;font-weight:400;text-align:left;letter-spacing:0;text-transform:none;margin:0;padding:0 13px;color:#d4eae5;border-radius:10px;min-width:0}
.account-field input::placeholder{color:#6b8e9f;font-size:13px}
.account-password-wrap{position:relative}
.account-password-wrap input{padding-right:64px}
.account-password-wrap button{position:absolute;right:2px;top:2px;bottom:2px;width:56px;background:transparent;border:0;border-radius:8px;font-size:11px;color:#a8d2cd}
.account-limit-note{font-size:10px!important;line-height:1.8!important;margin:15px 0 0;color:#94a9ae!important}
.account-status{padding:9px 11px;background:#102635;border-radius:9px;color:#a6c9ca!important;margin-bottom:0}
.account-modal .form-error{font-size:11px!important;overflow-wrap:anywhere}
.account-modal .account-profile-name{font-size:20px;color:#d1eade;margin:22px 0 3px;overflow-wrap:anywhere}
.account-profile-email{overflow-wrap:anywhere;margin:0 0 12px!important;font-size:13px!important;color:#91b7bd!important}
.account-unverified{display:inline-block;border:1px solid #8f78594d;background:#765a342e;border-radius:7px;padding:5px 8px;font-size:10px;color:#e1c69c}
.account-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:24px 0;padding:22px 0;border-top:1px solid #315363;border-bottom:1px solid #315363;text-align:center}
.account-stats span{display:block;font-size:10px;color:#85a8af;margin-bottom:10px}
.account-stats strong{font-size:21px;color:#bde6d9;font-variant-numeric:tabular-nums}
#account-stars{font-size:18px;color:#ead089}
@media(max-width:800px){.home-view .edition-badge{display:none}.account-entry{max-width:126px;min-height:38px;font-size:10px;padding:0 12px}.account-modal{padding:29px 24px}}
@media(max-width:380px){.home-view .topbar{padding-left:14px;padding-right:14px}.home-view .brand{font-size:14px;letter-spacing:2px;gap:4px}.home-view .header-actions{gap:5px}.account-entry{max-width:96px;padding:0 9px}.account-modal{width:calc(100% - 24px);padding:27px 19px}.account-modal h2{font-size:21px}.account-field label small{font-size:9px}.account-modal .small-label{letter-spacing:1px}}
@media(orientation:landscape) and (max-height:500px){.account-modal{max-width:470px;padding:22px 25px}.account-modal h2{font-size:23px}.account-tabs{margin:12px 0}.account-field{margin-bottom:12px}}

/* Private journey journal, contained within the existing account dialog. */
.account-modal.journey-view{max-width:570px}
.profile-tabs{margin-top:16px}
.journeys-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 12px}
.journeys-heading .small-label{font-size:7px;letter-spacing:1.5px}
.journeys-heading h3{font-size:21px;font-weight:650;letter-spacing:1px;color:#d8eee0;margin:7px 0 0}
.journeys-private{flex:none;border:1px solid #40756865;background:#2a61583b;border-radius:20px;padding:7px 9px;color:#a7d5c7;font-size:9px;white-space:nowrap}
.account-modal .journeys-note{font-size:10px;color:#91b2b7;margin:0 0 18px;line-height:1.8}
.journeys-note strong{display:block;font-weight:500;color:#aac8c6}
.journeys-footprints{border:1px solid #395b66;border-radius:13px;background:#102b3b;margin-bottom:16px;overflow:hidden}
.journeys-footprints>summary{display:flex;align-items:center;gap:9px;min-height:49px;padding:13px 14px;cursor:pointer;color:#b4dad1;list-style:none;font-size:12px}
.journeys-footprints>summary::-webkit-details-marker{display:none}
.journeys-footprints>summary small{font-size:9px;color:#7097a2;font-weight:400}
.journeys-footprints>summary>span{margin-left:auto;color:#91bdb4;font-size:16px}
.journeys-footprints[open]>summary>span{transform:rotate(45deg)}
.journeys-footprint{padding:13px 14px;border-top:1px solid #2b4d59}
.journeys-footprint-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.journeys-footprint-head strong{font-size:11px;color:#beded5;font-weight:600}
.journeys-footprint-head>span{font-size:10px;color:#91b9b6;white-space:nowrap}
.journeys-footprint dl{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:9px;margin:12px 0 1px}
.journeys-footprint dt{font-size:8px;color:#7499a4;margin-bottom:5px}
.journeys-footprint dd{font-size:10px;color:#a8c7c7;margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.account-modal .journeys-legacy{border-left:2px solid #759b91;padding-left:10px;font-size:10px;color:#91b2b7;margin:0 0 20px;line-height:1.8}
.journeys-list-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:22px 0 12px}
.journeys-list-heading h4{font-size:12px;color:#b7d5d1;font-weight:600;margin:0}
.journeys-list-heading>span{font-size:8px;color:#70939e;line-height:1.6;text-align:right}
.journeys-list{display:flex;flex-direction:column;gap:13px}
.journey-card{padding:15px 15px 12px;border:1px solid #365765;background:linear-gradient(140deg,#1b3647,#142e3d);border-radius:14px;min-width:0}
.journey-card-top{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0}
.journey-card-top time{font-size:10px;color:#82a7ae;font-variant-numeric:tabular-nums;line-height:1.6}
.journey-status{flex:none;font-size:9px;color:#9db8bd;border-radius:7px;padding:5px 7px;background:#344b5680;white-space:nowrap}
.journey-status.completed{color:#b9ead0;background:#3b725754;border:1px solid #6ea68140}
.journey-status.playing{color:#d7dfa3;background:#73783c40;border:1px solid #9ca96940}
.journey-status.paused{color:#e1c49c;background:#765a3440;border:1px solid #9b805840}
.journey-partner{font-size:13px;font-weight:550;color:#d0e6df;margin:13px 0 9px;line-height:1.65;overflow-wrap:anywhere}
.journey-partner>span{font-size:10px;font-weight:400;color:#7199a4;margin-right:6px}
.journey-role-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:9px;color:#8cafb5;line-height:1.8}
.journey-role{border-radius:5px;padding:2px 6px;background:#ffad6712;color:#f1bf89}
.journey-role.water{background:#7be1e710;color:#99d9df}
.journey-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:16px 0 4px;padding:13px 0 0;border-top:1px solid #345562}
.journey-metrics dt{font-size:8px;color:#7198a3;margin-bottom:7px}
.journey-metrics dd{font-size:11px;color:#bed9d4;margin:0;line-height:1.5;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.journey-metrics .journey-stars{color:#e3cd94;font-size:10px;letter-spacing:1px}
.journey-chapters{margin-top:12px;border-top:1px dashed #365360;padding-top:6px}
.journey-chapters summary{font-size:9px;color:#86acae;padding:7px 0;cursor:pointer}
.journey-chapters ol{padding:0;list-style:none;margin:3px 0 1px}
.journey-chapters li{padding:7px 0;color:#86abae;font-size:9px;line-height:1.8;overflow-wrap:anywhere}
.journey-chapters li strong{display:block;color:#b4d4cb;font-size:10px;font-weight:500}
.account-modal .journeys-status,.account-modal .journeys-end{font-size:10px;color:#85aaa9;text-align:center;line-height:1.9;margin:16px 0}
.journeys-empty{text-align:center;border:1px dashed #40616a;border-radius:14px;padding:25px 16px;background:#102a3655}
.journeys-empty>span{font-size:31px;color:#8abbaa}
.journeys-empty h4{font-size:13px;font-weight:500;color:#c1ddd1;margin:12px 0 9px}
.account-modal .journeys-empty p{font-size:10px;color:#83a7ac;margin:0;line-height:1.9}
#journeys-more,#journeys-retry{min-height:46px;font-size:11px;margin-top:14px}
#journeys-error{margin-top:12px!important}
@media(max-width:380px){.journeys-heading h3{font-size:18px}.journeys-private{font-size:8px;padding:6px 8px}.journey-card{padding:13px 11px 10px}.journey-metrics{gap:5px}.journey-metrics dd{font-size:10px}.journey-metrics dt{font-size:7px}.journeys-list-heading>span{font-size:7px}.journeys-footprint dl{gap:6px}.journeys-footprint dd{font-size:9px}.journey-card-top time{font-size:9px}}
@media(orientation:landscape) and (max-height:500px){.account-modal.journey-view{max-width:570px;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.journeys-heading{margin-top:15px}.journeys-heading h3{font-size:19px}}

/* Email workflows use the same account dialog, never the game controls. */
.account-unverified.is-verified{color:#b8e8d0;background:#35684d4d;border-color:#81bd944d}
.account-verify-link{border:0;background:transparent;color:#aad9d0;font-size:11px;min-height:36px;margin-left:8px;padding:5px 4px;text-decoration:underline;text-underline-offset:3px}
.account-email-panel{padding-top:2px}
.account-email-symbol{width:52px;height:52px;margin:4px 0 18px;display:grid;place-items:center;border:1px solid #547b79;background:#244e5266;border-radius:16px;font-size:27px;color:#b0ded0}
.account-modal .account-email-description{font-size:12px;color:#a2c2c2;line-height:1.9;margin:0 0 18px}
.account-modal .account-email-identity{font-size:11px;color:#d0ded1;overflow-wrap:anywhere;border-left:2px solid #7ab3a6;padding:5px 0 5px 10px;margin:0 0 18px}
.account-modal .account-email-outcome,.account-modal .account-email-feedback{font-size:11px;line-height:1.9;color:#aed9c7;border:1px solid #4a786866;border-radius:10px;background:#1b433d55;padding:11px 12px;margin:14px 0 0;overflow-wrap:anywhere}
#account-forgot-password{font-size:11px;color:#a2c9c7;min-height:44px;padding:12px 6px 4px}
#account-email-back{min-height:44px;font-size:11px;color:#99bfbd;margin-top:8px}
@media(orientation:landscape) and (max-height:500px){.account-email-symbol{width:42px;height:42px;font-size:23px;margin-bottom:12px}.account-modal .account-email-description{margin-bottom:13px}}

/* Deliberate, password-confirmed account removal. */
.account-delete-zone { margin-top: 20px; border-top: 1px solid rgba(167, 91, 69, .22); padding-top: 12px; }
.account-delete-link { color: #efb5a3; font-size: 13px; }
.account-delete-form { margin-top: 8px; border: 1px solid rgba(167, 91, 69, .32); border-radius: 18px; padding: 18px; background: #fff8f3; }
.account-delete-form h3 { margin: 0 0 10px; color: #74382c; font-size: 19px; }
.account-delete-form > p { font-size: 13px; line-height: 1.8; color: #765248; }
.account-delete-form fieldset { border: 0; padding: 0; margin: 18px 0; }
.account-delete-form .button { width: 100%; margin-top: 10px; }
.account-delete-submit { background: #9b3f32; color: #fff; }
.account-delete-submit:disabled { opacity: .45; cursor: not-allowed; }
.account-delete-form .account-field label { color: #653b31; }
.account-delete-form input { background: #fff; border-color: #b9a69b; color: #472f2b; }
.account-delete-form .secondary-button { background: #e8ded5; border-color: #a58d81; color: #46332f; }

.home-legal-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 0 20px 22px; font-size: 12px; color: #91acae; }
.home-legal-links a, .account-legal-note a { color: #b6ded4; text-underline-offset: 3px; }
.home-legal-links a:hover, .account-legal-note a:hover { color: #e4fff5; }
.account-legal-note { margin: 20px 0 0; font-size: 12px; line-height: 1.8; color: #91acae; }
.account-legal-note a { margin: 0 3px; }
