:root{--view-height:100svh;--ink:#243e3e;--muted:#64706a;--cream:#f7eed9;--paper:#eee0bb;--gold:#b48a42;--gold-light:#f3d890;--teal:#275f61;--line:#b6a17470;--danger:#993f32;color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"PingFang TC",sans-serif;color:var(--ink);background:#1e4043}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent;outline-offset:4px}button,a,summary{touch-action:manipulation}button{cursor:pointer;color:inherit}a{color:var(--teal);text-underline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #c78527}button:disabled{opacity:.5;cursor:default}button svg{width:23px;height:23px;flex-shrink:0}h1,h2,p{margin:0}h1,h2{font-family:"Songti TC","Noto Serif TC",serif;font-weight:800}button{transition:filter .16s,transform .16s,box-shadow .16s}button:not(:disabled):active{transform:translateY(2px);filter:brightness(.93)}button[aria-pressed=true]{cursor:default}.sky{position:fixed;inset:0;background:linear-gradient(#163b4230,#173d4560),url('assets/tower-courtyard-v2.webp') center 48%/cover;pointer-events:none;z-index:-2}.sky:after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 30%,#122f3f65)}#app{min-height:var(--view-height)}.game-shell{position:relative;isolation:isolate;max-width:1200px;margin:auto;min-height:var(--view-height);padding-bottom:env(safe-area-inset-bottom)}.game-shell:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#eff4d125 0%,#faf4df00 22%,#daf0e415 72%,#092d3860 100%);z-index:-1;pointer-events:none}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;height:calc(76px + env(safe-area-inset-top));padding:calc(12px + env(safe-area-inset-top)) 30px 12px}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:#fff4d3;font-family:"Songti TC",serif;font-weight:800;text-shadow:0 2px 3px #14343e,1px 0 #173d40;font-size:19px;letter-spacing:.12em}.brand img{width:25px;height:37px;filter:drop-shadow(0 1px 2px #294133)}.brand small{display:block;font-family:Georgia,serif;font-size:8px;letter-spacing:.34em;margin-top:2px}.top-title{color:#fff7dd;font-size:13px;font-weight:700;letter-spacing:.2em;text-shadow:0 1px 4px #17342d}.version,.pill{font-size:11px;padding:7px 12px;border:1px solid #d5c493;background:#284d50de;color:#fff0c9;border-radius:4px;white-space:nowrap;box-shadow:0 2px 0 #203e40}.icon-button,.close-button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:8px;background:linear-gradient(#fbefd5,#d6c69f);border:1px solid #f5eacb;outline:1px solid #9a7947;box-shadow:0 3px 0 #735d3f,0 4px 12px #203c3740;border-radius:50%;color:#32504b}.icon-button{margin-left:auto}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.23em;color:#857045}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 30px 12px;text-shadow:0 1px 1px #fff9e8,0 0 10px #fff7de}.page-heading h1{font-size:27px;letter-spacing:.045em;line-height:1.4;color:#294d48}.page-heading .eyebrow{color:#315b59}.adventure-screen{display:grid;grid-template-columns:minmax(0,1fr) 400px;grid-template-rows:auto 1fr;gap:0 28px;padding:0 30px 28px;max-width:1150px;margin:auto}.adventure-screen>.page-heading{grid-column:1/-1;padding-left:0;padding-right:0}.selection-stage{position:relative;min-height:450px;height:min(66vh,590px);align-self:center}.hero-stage{position:absolute;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:center}.portrait{position:absolute;width:100%;height:100%;object-fit:contain;bottom:4px;filter:drop-shadow(0 10px 3px #23393230);animation:hero-appear .28s ease-out}.hero-stage canvas{position:absolute;width:100%;height:100%;object-fit:contain;bottom:4px;opacity:0;filter:drop-shadow(0 10px 3px #23393230)}.hero-stage.idle-ready canvas{opacity:1}.hero-stage.idle-ready .portrait{opacity:0}.floor-sigil{position:absolute;width:66%;height:16%;left:17%;bottom:2%;border-radius:50%;border:2px solid #fff3bb9a;background:radial-gradient(ellipse,#fff4c175,#f0d48940 48%,#ffffff00 70%);box-shadow:0 0 0 5px #d8b8683b,0 0 0 7px #fff7cf55,0 8px 14px #274d3638}.stage-spark{position:absolute;color:#ffefaa;font-size:23px;text-shadow:0 0 12px #fff0a9;animation:spark 3.8s ease-in-out infinite}.s1{left:23%;top:32%}.s2{right:16%;top:54%;animation-delay:1.5s;font-size:15px}.class-rail{position:absolute;left:0;top:10%;display:grid;gap:13px;z-index:2}.class-option{border:0;background:none;display:grid;place-items:center;padding:0;gap:5px;font-size:11px;font-weight:750;color:#284b47;text-shadow:0 1px #fff5d5;min-width:64px;min-height:62px}.class-emblem{width:51px;height:51px;display:grid;place-items:center;border-radius:12px 12px 17px 17px;border:2px solid #eadab6;outline:1px solid #8c744b;background:linear-gradient(145deg,#fff4d8,#d4c3a2);box-shadow:0 3px 0 #7c6a4b,0 4px 10px #21383145;color:#69715f}.class-emblem svg{width:29px;height:29px;filter:drop-shadow(0 1px #fff)}.class-option[aria-pressed=true] .class-emblem{background:linear-gradient(135deg,#4b8580,#285c5e);color:#ffdf91;border-color:#ffe3a0;outline:2px solid #b38334;box-shadow:0 0 0 4px #ffefb74d,0 3px 0 #745c34,0 0 20px #fff3b777;transform:scale(1.08)}.class-option[aria-pressed=true] svg{filter:drop-shadow(0 1px #183833)}.gender-row{position:absolute;right:0;top:10%;display:flex;gap:4px;border:1px solid #ad8d54;background:#fbf0d7ed;padding:4px;border-radius:30px;box-shadow:0 3px 9px #20393030}.gender-row button{width:44px;height:44px;border:0;background:transparent;border-radius:50%;font-size:14px;color:#5a6d63}.gender-row button[aria-pressed=true]{background:linear-gradient(#4b7b78,#2d5b5d);color:#fff1c2;box-shadow:0 2px 0 #183e40}.class-plaque{position:absolute;left:14%;right:0;bottom:-10px;text-align:center;z-index:2;text-shadow:0 1px 1px #fff9e4,0 0 10px #fff9e4}.class-plaque small{font-size:10px;font-weight:750;letter-spacing:.18em;color:#315856}.class-plaque h2{font-size:33px;letter-spacing:.12em;line-height:1.4;margin:2px 0;overflow-wrap:anywhere}.tags{display:flex;justify-content:center;gap:7px;font-size:10px}.tags span{padding:3px 10px;background:#f8eed4e8;border:1px solid #aa97626b;color:#526359;border-radius:3px;box-shadow:0 1px 2px #54715b22}.parchment{position:relative;border:1px solid #82673d;outline:1px solid #f8e6ad;outline-offset:-4px;border-radius:12px 3px 12px 3px;background:radial-gradient(ellipse at 20% 0%,#fff9e8c9,transparent 70%),linear-gradient(120deg,#f8eed8,#eee0bc);box-shadow:0 8px 0 -4px #63583a,0 14px 25px #12383e45,inset 0 0 22px #ad873c16;color:var(--ink)}.parchment:before,.parchment:after{content:"◆";position:absolute;color:#b28a48;font-size:10px;top:9px;pointer-events:none}.parchment:before{left:10px}.parchment:after{right:10px}.bottom-panel{align-self:center;padding:20px 24px 16px;z-index:3}.panel-notch{position:absolute;left:calc(50% - 15px);top:-17px;width:30px;height:30px;background:#f5e8c7;transform:rotate(45deg);border:1px solid #bb9959;display:grid;place-items:center;color:#ad8142;font-size:19px}.class-details{font-size:12px;border-bottom:1px solid var(--line);padding:0 0 10px;margin-bottom:14px}.class-details summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:38px;cursor:pointer;font-size:12px;font-weight:700;color:#516257}.class-details summary::-webkit-details-marker{display:none}.class-details summary svg{width:17px;height:17px}.class-details[open] summary svg{transform:rotate(180deg)}.class-details p{line-height:1.85;margin:3px 0 12px;color:#62675d}.stats{display:flex;border-block:1px solid #ae956642;padding:10px 0;margin:10px 0}.stats>div{flex:1;text-align:center;border-right:1px solid #ae956642}.stats>div:last-child{border:0}.stats span{display:block;font-size:10px;color:#717466}.stats b{font-size:19px;font-family:Georgia,serif;color:#385c57;line-height:1.5}.skill-line{display:flex;flex-direction:column;gap:5px;color:#7b785f;font-size:10px}.skill-line span{color:#325d58;font-size:12px}.field{display:grid;gap:7px;font-size:12px;font-weight:650;color:#536358;margin-bottom:15px}.field input{min-width:0;width:100%;height:47px;border:1px solid #c1ac7a;border-radius:5px;background:#fffaf0;color:#294c4a;font-size:16px;padding:0 13px;box-shadow:inset 0 2px 5px #a18d591b}.field input::placeholder{color:#aaa38c}.field input:focus{border-color:#57877c;box-shadow:0 0 0 2px #6d9a8430}.field small,.field-hint{font-size:10px;font-weight:400;line-height:1.6;color:#857d66}.name-field{margin-bottom:7px}.field-hint{margin-bottom:13px}.primary,.secondary{width:100%;min-height:51px;border-radius:7px 2px 7px 2px;display:flex;align-items:center;justify-content:center;gap:12px;position:relative;font-size:15px;font-weight:800;letter-spacing:.08em;text-decoration:none}.primary{background:linear-gradient(180deg,#568a80,#316866 57%,#245455);border:1px solid #253f3d;outline:1px solid #d9ba77;outline-offset:-4px;color:#fff0ba;text-shadow:0 2px #25423b;box-shadow:0 4px 0 #213f3a,0 6px 10px #40583e30,inset 0 1px #93b2a0}.primary:before,.primary:after{content:"◆";position:absolute;top:calc(50% - 6px);font-size:9px;color:#d6b97a}.primary:before{left:13px}.primary:after{right:13px}.primary:hover{filter:brightness(1.06)}.secondary{background:linear-gradient(#fffae7,#ebddb7);border:1px solid #b49c68;color:#415b4d;box-shadow:0 3px 0 #c1ad7c;min-height:47px;font-size:13px}.text-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;background:none;min-height:44px;font-size:12px;color:#4e6e60;padding:5px 9px}.panel-back{display:flex;width:100%;margin-top:8px}.panel-note{color:#797962;font-size:10px;line-height:1.7;text-align:center;margin-top:13px}.guest-note{display:flex;align-items:center;justify-content:center;gap:8px;font-size:10px;color:#81765d;margin-top:11px}.guest-note button{border:0;background:none;font-size:11px;color:#37665f;padding:5px 0;min-height:32px;text-decoration:underline;text-underline-offset:3px}.info-banner{font-size:12px;line-height:1.85;padding:13px;background:#e4d3a877;border:1px solid #bd9d6147;margin:15px 0;border-radius:4px}.info-banner button{border:0;background:none;color:#32635a;text-decoration:underline;min-height:34px;padding:0;font:inherit}.form-error{color:#984538;font-size:12px;line-height:1.7;background:#b84a3410;border-radius:3px;margin:0}.form-error:not(:empty){padding:10px 12px;margin-bottom:12px}.roster{display:flex;justify-content:center;gap:10px;margin:4px 0 20px}.roster-slot{width:76px;min-height:92px;display:flex;flex-direction:column;align-items:center;border:1px solid #bcac7f;outline:1px solid #fff6da;outline-offset:-3px;border-radius:8px 3px;background:#e5dac1;position:relative;overflow:hidden;padding:0;box-shadow:0 2px 0 #9b8b66}.roster-slot img{width:95px;height:66px;object-fit:cover;object-position:center 5%;flex-shrink:0;transform:scale(1.16);transform-origin:center top}.roster-slot>span{font-size:10px;padding:5px 3px;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;z-index:1;background:#efe4c7}.roster-slot[aria-pressed=true]{border:2px solid #487568;outline-color:#f8df9b;box-shadow:0 0 0 2px #b8a575,0 3px 0 #6b6d45;background:#a0b59c}.roster-slot[aria-pressed=true]>span{color:#fff0c3;background:#3b7067}.add-slot{color:#8b7b59;background:#ece2ca}.add-slot>b{display:grid;place-items:center;height:66px;font-size:30px;font-weight:400}.roster-stage .class-plaque{left:0}.roster-stage .hero-stage{bottom:35px}.camp-label{position:absolute;bottom:1%;left:0;right:0;text-align:center}.camp-label span{display:inline-block;background:#295953e8;border:1px solid #d4bb7e;font-size:11px;color:#f7e8c2;padding:8px 15px;box-shadow:0 2px 0 #315044;border-radius:3px}.camp-stage .hero-stage{bottom:30px}.destinations{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 10px}.destination{border:1px solid #b6a171;background:linear-gradient(#fff6dc,#e1d2a9);display:flex;align-items:center;flex-direction:column;gap:5px;padding:13px 6px;border-radius:6px;box-shadow:0 3px 0 #ad9c75;min-height:115px}.destination svg{width:33px;height:33px;color:#748a72}.destination strong{font-size:14px}.destination span{font-size:10px;color:#857b61}.camp .class-details{margin-bottom:11px}.settings-view{padding-bottom:30px}.settings{max-width:500px;margin:10px auto 25px;padding:22px 28px 28px}.settings>.text-btn{margin-left:-10px;margin-bottom:8px}.settings h1{font-size:27px;letter-spacing:.06em;margin-bottom:15px}.settings-card{border-top:1px solid var(--line);padding:17px 0}.settings-card h2{font-size:17px}.settings-card p{font-size:12px;line-height:1.8;margin:10px 0;overflow-wrap:anywhere}.settings-card summary{font-size:11px;cursor:pointer;color:#7a755f;min-height:30px}.settings .fine-print{margin-top:16px}.settings-card .secondary{margin-top:15px}.account-row{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding:9px 0;overflow-wrap:anywhere}.account-row span{flex-shrink:0;color:#807762}.account-data{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}.danger{color:var(--danger)}.password-wrap{position:relative;display:block}.password-wrap input{padding-right:61px}.password-wrap button{position:absolute;right:2px;top:1px;min-width:56px;height:44px;background:none;border:0;color:#617560;font-size:11px}.policy-check{display:flex;gap:9px;align-items:flex-start;font-size:11px;line-height:1.85;margin:16px 0;color:#68705e;font-weight:400}.policy-check input{width:21px;height:21px;margin:0;flex-shrink:0;accent-color:#376b61}.policy-check a{font-weight:700}.fine-print{font-size:10px;line-height:1.8;color:#80765c;margin:11px 0 15px}.intro{font-size:12px;line-height:1.85;color:#6d7564;margin:12px 0 23px}.notice{position:fixed;bottom:calc(25px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 36px);padding:13px 19px;background:#173f42f5;color:#fff0c9;font-size:13px;line-height:1.7;border:1px solid #c1a36c;box-shadow:0 5px 20px #12303750;border-radius:5px;z-index:100}.notice[hidden]{display:none}.loading{min-height:var(--view-height);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;color:#fff4d8;text-shadow:0 2px #29413f}.footer{text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px;color:#fff2d1bb;text-shadow:0 1px 3px #24443d}.footer nav{display:flex;gap:20px}.footer a{color:#f8edcf;min-height:32px;display:flex;align-items:center;text-decoration:none}.footer small{font-size:8px;color:#fcf4ddb5;letter-spacing:.04em}.title-screen{position:relative;min-height:var(--view-height);display:grid;grid-template-columns:1.15fr 1fr;grid-template-rows:80px auto auto;padding-bottom:20px}.title-screen>.topbar{grid-column:1/-1;width:100%}.title-screen>.topbar .brand{visibility:hidden}.game-logo{grid-column:2;grid-row:2;align-self:end;text-align:center;color:#fff2b6;position:relative;padding:20px 15px 0}.game-logo h1{font-size:66px;letter-spacing:.02em;-webkit-text-stroke:1px #705535;text-shadow:0 3px 0 #6a5939,0 6px 0 #2e5750,0 8px 0 #a1bd9b,0 11px 20px #19484670;line-height:1.4}.game-logo>div{font-family:Georgia,serif;letter-spacing:.4em;font-size:14px;font-weight:700;color:#ffebad;text-shadow:0 2px 2px #24524d;margin:5px 0 15px}.game-logo p{font-size:13px;letter-spacing:.16em;color:#fff6d5;text-shadow:0 1px 5px #163e3b,0 0 10px #194f47}.logo-ornament{display:block;font-size:28px;color:#fff0b3;text-shadow:0 2px #4c6c58}.party-art{grid-row:2/4;grid-column:1;position:relative;min-height:490px;align-self:end;pointer-events:none;margin-bottom:20px}.party-art img{position:absolute;width:90%;height:90%;object-fit:contain;filter:drop-shadow(0 8px 5px #32433050)}.party-art .party-front{left:8%;bottom:-4%;z-index:3}.party-art .party-left{left:-20%;bottom:10%;transform:scale(.79)}.party-art .party-right{right:-17%;bottom:14%;transform:scale(.76)}.title-actions{grid-column:2;grid-row:3;width:360px;max-width:calc(100% - 44px);margin:35px auto 0;align-self:start;text-align:center}.adventure-caption{display:block;font-size:11px;letter-spacing:.1em;color:#fdf3cf;text-shadow:0 2px 5px #234739;margin-bottom:16px}.start{min-height:59px;font-size:19px;letter-spacing:.18em;background:linear-gradient(#efd996,#d7b367 55%,#bd914c);color:#3a4c39;text-shadow:0 1px #f7e5ae;outline-color:#fff0be;box-shadow:0 5px 0 #786138,0 10px 22px #173a4655}.start:before,.start:after{color:#776438}.title-login{display:block;margin:10px auto 3px;min-height:44px;border:0;background:none;color:#fff4d5;text-shadow:0 1px 4px #194139;font-size:12px}.modal-layer{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#153c4370;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);padding:calc(24px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));z-index:20;overflow-y:auto;overscroll-behavior:contain}.auth-panel{width:390px;max-width:100%;max-height:100%;overflow-y:auto;padding:26px 28px 20px;text-align:center;scroll-padding:20px;animation:panel-appear .24s ease-out}.auth-panel .field{text-align:left}.auth-panel h2{font-size:25px;margin-top:5px}.auth-panel>.eyebrow{display:block;margin-top:8px}.close-button{position:absolute;right:12px;top:12px;width:36px;height:36px;min-width:36px;min-height:36px;padding:6px;z-index:1}.close-button svg{width:19px;height:19px}.panel-crest{width:44px;height:48px;border:1px solid #c8aa69;margin:0 auto 7px;display:grid;place-items:center;background:#e3d5b3;color:#7c895f;clip-path:polygon(10% 0,90% 0,100% 80%,50% 100%,0 80%)}.panel-crest svg{width:28px;height:28px}.auth-panel .secondary{margin:10px 0 12px}.socials{display:flex;gap:10px}.socials button{display:flex;justify-content:center;align-items:center;gap:8px;flex:1;border:1px solid #cfb98d;background:#e6dcc1;min-height:44px;border-radius:4px;font-size:12px;color:#6d7666}.socials small{font-size:9px;color:#8d846d}.auth-foot{font-size:11px;line-height:1.8;color:#8a7e63;margin-top:14px;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:3px}.auth-foot button{background:none;border:0;color:#30695e;min-height:36px;font-size:11px;text-decoration:underline;text-underline-offset:3px;padding:0 5px}.preview-bar{position:fixed;bottom:0;left:0;right:0;z-index:200;display:flex;justify-content:center;align-items:center;gap:7px;background:#133c3ff5;color:#f5e7c5;padding:6px;font-size:10px;border-top:1px solid #cdb479}.preview-bar b{font-size:9px}.preview-bar button{font-size:10px;background:#fff1cf;border:0;min-height:30px;padding:0 8px;border-radius:3px}body[data-preview=true]{--view-height:calc(100svh - 43px);padding-bottom:43px}body[data-preview=true] .game-shell,body[data-preview=true] .title-screen{min-height:var(--view-height)}body[data-preview=true] .modal-layer{bottom:43px}.busy .primary{filter:saturate(.5)}.busy .primary svg{animation:spark 1s infinite}.busy{cursor:progress}
@keyframes hero-appear{from{opacity:.2;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes spark{0%,100%{opacity:.35}50%{opacity:1}}@keyframes panel-appear{from{opacity:.3;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(min-width:760px){.sky{background-position:center 55%}.game-shell{padding-inline:15px}.class-plaque{bottom:-8px}.adventure-screen{padding-top:12px}.bottom-panel{margin-top:25px}.title-actions{margin-bottom:50px}}
@media(max-width:759px){.sky{background-position:center center}.game-shell{max-width:560px}.topbar{height:calc(65px + env(safe-area-inset-top));padding:calc(10px + env(safe-area-inset-top)) 20px 10px}.brand{font-size:16px}.brand img{width:21px;height:33px}.brand small{font-size:7px}.top-title{font-size:11px;margin-left:auto;letter-spacing:.1em}.icon-button{min-width:39px;min-height:39px;width:39px;height:39px;margin-left:0}.version{font-size:9px;padding:6px 9px}.adventure-screen{display:flex;flex-direction:column;padding:0 16px 19px;gap:0;min-height:calc(var(--view-height) - 65px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.adventure-screen>.page-heading{padding:7px 6px 0;min-height:56px;flex-shrink:0}.page-heading h1{font-size:23px}.page-heading .eyebrow{font-size:8px;letter-spacing:.18em}.page-heading .pill{font-size:10px;padding:6px 9px}.selection-stage{min-height:306px;height:calc(var(--view-height) - 401px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:470px;align-self:stretch;flex-shrink:0;margin-bottom:16px}.selection-stage .hero-stage{left:30px;right:0;top:3px;bottom:55px}.selection-stage .portrait,.selection-stage canvas{bottom:0;width:100%;height:100%}.floor-sigil{bottom:2%;left:16%;width:69%}.class-rail{top:10px;left:-3px;gap:9px}.class-option{min-width:51px;min-height:58px;font-size:10px;gap:4px}.class-emblem{width:43px;height:43px;border-radius:11px 11px 14px 14px}.class-emblem svg{width:26px;height:26px}.gender-row{top:13px;right:2px;gap:1px;padding:3px}.gender-row button{width:36px;height:36px;font-size:12px}.class-plaque{left:40px;bottom:-3px;right:0}.class-plaque h2{font-size:29px;margin:0;line-height:1.38}.class-plaque small{font-size:8px}.tags{font-size:9px;gap:5px}.tags span{padding:2px 8px}.bottom-panel{align-self:stretch;padding:14px 19px 12px;margin-top:auto}.class-details{margin-bottom:10px;padding-bottom:3px}.class-details summary{min-height:31px;font-size:11px}.name-field{font-size:11px;gap:5px}.field input{height:44px}.field-hint{font-size:9px;margin-bottom:10px}.primary{min-height:48px;font-size:15px}.panel-note{font-size:9px;margin-top:9px}.panel-notch{width:23px;height:23px;top:-12px;left:calc(50% - 12px);font-size:15px}.class-details .stats{margin:6px 0;padding:6px 0}.class-details[open] p{font-size:11px;margin:4px 0 7px}.roster-stage{height:calc(var(--view-height) - 393px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:310px}.roster-stage .hero-stage{left:0;bottom:66px;top:0}.roster-stage .class-plaque{left:0;bottom:0}.roster-slot{width:70px;min-height:79px}.roster-slot img{height:56px;width:80px}.roster-slot span{font-size:9px;padding:4px 2px}.add-slot>b{height:56px}.roster{margin:0 0 16px;gap:10px}.guest-note{font-size:9px;margin-top:8px;gap:5px}.guest-note button{font-size:10px}.camp-stage{min-height:280px;height:calc(var(--view-height) - 417px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.camp-stage .hero-stage{left:0;bottom:33px}.camp-label{bottom:0}.camp-label span{font-size:10px;padding:6px 12px}.destinations{gap:10px;margin-bottom:7px}.destination{min-height:85px;padding:8px 5px;gap:3px}.destination svg{width:25px;height:25px}.destination strong{font-size:13px}.destination span{font-size:9px}.camp .class-details summary{min-height:30px}.camp .secondary{min-height:42px;font-size:12px}.settings{margin:12px 18px 20px;padding:20px 22px}.settings h1{font-size:25px}.settings>.text-btn{margin-bottom:3px}.settings .field{margin-bottom:14px}.title-screen{display:flex;flex-direction:column;min-height:var(--view-height);padding-bottom:calc(14px + env(safe-area-inset-bottom));overflow:hidden}.title-screen .topbar{flex-shrink:0}.game-logo{padding:5px 10px 0;flex-shrink:0}.game-logo h1{font-size:55px;line-height:1.3}.game-logo>div{font-size:11px;margin:5px 0 12px;letter-spacing:.42em}.game-logo p{font-size:11px;letter-spacing:.14em}.logo-ornament{font-size:20px}.party-art{width:100%;flex:1;min-height:240px;max-height:420px;height:calc(var(--view-height) - 450px);align-self:stretch;margin:5px 0 -8px}.party-art .party-front{left:5%;width:90%;height:100%;bottom:-4%}.party-art .party-left{width:86%;height:100%;left:-23%;bottom:9%;transform:scale(.75)}.party-art .party-right{width:86%;height:100%;right:-21%;bottom:12%;transform:scale(.74)}.title-actions{width:320px;margin:0 auto;flex-shrink:0;align-self:stretch;z-index:2}.adventure-caption{font-size:10px;margin-bottom:12px}.start{font-size:18px;min-height:56px}.title-login{font-size:11px;min-height:36px;margin:9px auto 0}.footer{gap:0}.footer nav{gap:20px}.footer a{font-size:9px;min-height:27px}.footer small{font-size:8px}.modal-layer{padding:calc(22px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom))}.auth-panel{padding:25px 24px 19px}.auth-panel h2{font-size:24px}.auth-panel .intro{font-size:11px;margin:10px 0 16px}.auth-panel .policy-check{font-size:10px}.auth-panel .fine-print{font-size:9px}.auth-panel .field{margin-bottom:13px}.keyboard-open .modal-layer{align-items:flex-start}.keyboard-open .auth-panel{max-height:none}.keyboard-open .selection-stage{min-height:100px;height:100px;margin:0;overflow:hidden}.keyboard-open .selection-stage .hero-stage,.keyboard-open .class-rail,.keyboard-open .gender-row{visibility:hidden}.keyboard-open .class-plaque{bottom:10px;left:0}.keyboard-open .bottom-panel{margin-top:0}.keyboard-open .adventure-screen{min-height:0}.keyboard-open .field-hint{margin-top:3px}}
@media(max-width:759px) and (max-height:740px){.topbar{height:calc(57px + env(safe-area-inset-top));padding-top:calc(7px + env(safe-area-inset-top));padding-bottom:7px}.adventure-screen{min-height:calc(var(--view-height) - 57px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.adventure-screen>.page-heading{min-height:49px}.page-heading h1{font-size:21px}.selection-stage{height:296px;min-height:296px;margin-bottom:11px}.selection-stage .hero-stage{bottom:53px}.class-rail{gap:5px}.class-option{min-height:55px}.class-emblem{width:41px;height:41px}.bottom-panel{padding:12px 17px 10px}.class-details{margin-bottom:6px}.field-hint{font-size:8px}.panel-note{margin-top:7px}.roster-stage{height:287px;min-height:287px}.camp-stage{height:258px;min-height:258px}.game-logo h1{font-size:48px}.game-logo p{font-size:10px}.game-logo>div{margin-bottom:10px}.party-art{min-height:213px;height:calc(var(--view-height) - 425px);margin-top:0}.title-actions{width:300px}.adventure-caption{margin-bottom:9px;font-size:9px}.start{min-height:51px}.title-screen{padding-bottom:12px}.auth-panel{padding-top:22px}.auth-panel .panel-crest{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:759px){.game-logo{width:100%;align-self:stretch}}
/* Ornament is visual only, so assistive technology reads the action, not diamonds. */
.primary:before,.primary:after{content:"";width:6px;height:6px;background:#d6b97a;top:calc(50% - 3px);transform:rotate(45deg)}.start:before,.start:after{background:#776438}.parchment:before,.parchment:after{content:"";width:5px;height:5px;top:13px;background:#b28a48;transform:rotate(45deg)}
.hero-stage.idle-ready .portrait{visibility:hidden;animation:none}
@media(max-width:759px){.roster-stage .hero-stage{bottom:85px}.selection-stage:not(.roster-stage):not(.camp-stage) .hero-stage{bottom:65px}}
@media(max-width:759px){.roster-stage .class-plaque h2{font-size:26px;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.camp .page-heading h1{font-size:23px;overflow-wrap:anywhere}.title-screen .party-art{isolation:isolate}}
@media(min-width:760px){.selection-stage:not(.camp-stage) .hero-stage{bottom:90px}.roster-stage .class-plaque{bottom:0}.selection-stage:not(.camp-stage) .class-plaque{bottom:0}}
@keyframes hero-appear{from{transform:translateY(6px)}to{transform:none}}

/* Device preferences and the optional newcomer handbook. */
.settings .field select{width:100%;min-width:0;min-height:46px;border:1px solid #b49c68;border-radius:5px;background:#fff8e7;color:#294c4a;padding:10px;font:inherit;font-size:14px}
.preference-toggle{display:flex;align-items:center;gap:12px;min-height:48px;font-size:13px;cursor:pointer}.preference-toggle input{width:22px;height:22px;accent-color:#376b61;flex-shrink:0}
.adventure-guide{width:calc(100% - 24px)}.adventure-guide .sheet-actions{display:flex;gap:10px}.adventure-guide .sheet-actions>*{flex:1;min-width:0}.adventure-guide summary{font-size:15px;min-height:44px;display:list-item;padding-top:10px}.adventure-guide h1{font-size:25px;line-height:1.5}
#preferences-status{min-height:22px;color:#35645b;font-weight:650}
