:root{--shell-ink: #11131a;--shell-raise: #1b1e27;--shell-line: #363a46;--shell-text: #f2f3f7;--shell-dim: #b3b8c6;--shell-accent: #e8eaf2;--shell-warn: #ffd27a;--shell-bad: #ff9f9f;--shell-gutter: 16px;--shell-radius: 10px;--shell-touch: 44px;color-scheme:dark;background:var(--shell-ink);color:var(--shell-text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:100%;line-height:1.5}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-height:100dvh;display:flex;flex-direction:column;background:transparent;color:inherit;overflow-wrap:break-word}:focus-visible{outline:3px solid var(--shell-accent);outline-offset:2px;border-radius:4px}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.skip-link{position:absolute;inset-inline-start:var(--shell-gutter);inset-block-start:-100%;z-index:10;padding:10px 14px;background:var(--shell-raise);color:var(--shell-text);border:1px solid var(--shell-line);border-radius:var(--shell-radius)}.skip-link:focus-visible{inset-block-start:8px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.game-header{position:sticky;inset-block-start:0;z-index:5;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:6px var(--shell-gutter);background:var(--shell-raise);border-block-end:1px solid var(--shell-line)}.game-exit{display:inline-flex;align-items:center;min-height:var(--shell-touch);padding:0 10px;color:var(--shell-text);font-size:.95rem;text-decoration:none;white-space:nowrap}.game-exit:hover,.game-exit:focus-visible{text-decoration:underline}.game-header-title{text-align:center;font-size:clamp(.9rem,2.4vw,1.1rem);font-weight:700;letter-spacing:.14em;color:var(--shell-dim)}.game-header-tools{display:flex;align-items:center;gap:4px;justify-content:flex-end}.game-header-tools button{min-width:var(--shell-touch);min-height:var(--shell-touch);padding:0;background:transparent;color:var(--shell-text);border:1px solid transparent;border-radius:var(--shell-radius);font-size:1.05rem;cursor:pointer}.game-header-tools button:hover{border-color:var(--shell-line)}.game-header-tools button[aria-pressed=true]{background:var(--shell-line);color:var(--shell-dim)}#music-volume{inline-size:72px;min-height:var(--shell-touch);accent-color:var(--shell-accent)}@media (max-width: 600px){.game-header-title{display:none}#music-volume{inline-size:56px}}#app{flex:1 1 auto;min-width:0}#app:focus{outline:none}.screen{display:grid;gap:14px;align-content:start;inline-size:100%;max-inline-size:960px;margin-inline:auto;padding:clamp(14px,3vw,28px) var(--shell-gutter)}.screen-title{margin:0;font-size:clamp(1.5rem,4vw,2.1rem);line-height:1.15}.panel-title{margin:0;font-size:1.1rem}.screen-note{margin:0;font-size:1rem;max-inline-size:60ch}.quiet,.quiet-link{color:var(--shell-dim);font-size:.95rem}.warn{color:var(--shell-warn)}.form-error{margin:0;min-height:1.5em;color:var(--shell-bad);font-size:.95rem}.form-error:empty{min-height:0}.notice{display:grid;gap:10px;justify-items:start;padding:12px;border:1px solid var(--shell-line);border-radius:var(--shell-radius);background:var(--shell-raise)}.notice-text{margin:0}.button,button.secondary,button.danger{display:inline-flex;align-items:center;justify-content:center;min-height:var(--shell-touch);padding:10px 18px;background:var(--shell-raise);color:var(--shell-text);border:1px solid var(--shell-line);border-radius:var(--shell-radius);font:inherit;font-size:1rem;text-align:center;text-decoration:none;cursor:pointer}.button.primary{background:var(--shell-accent);color:var(--shell-ink);border-color:var(--shell-accent);font-weight:650}button.danger{border-color:var(--shell-bad);color:var(--shell-bad)}.button:disabled,button:disabled{opacity:.55;cursor:not-allowed}.quiet-link{justify-self:start;text-decoration:underline}input,select{min-height:var(--shell-touch);max-inline-size:100%;padding:8px 10px;background:var(--shell-ink);color:var(--shell-text);border:1px solid var(--shell-line);border-radius:var(--shell-radius);font:inherit;font-size:1rem}.field{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}.field label{flex:1 1 14ch;min-inline-size:14ch;color:var(--shell-dim);font-size:.95rem}.field input[type=number]{inline-size:6.5rem}.settings{padding:10px 12px;border:1px solid var(--shell-line);border-radius:var(--shell-radius)}.settings>summary{min-height:var(--shell-touch);display:flex;align-items:center;cursor:pointer;font-weight:600}.settings[open]{display:grid;gap:10px}.door-actions{display:grid;gap:12px;grid-template-columns:1fr}@media (min-width: 620px){.door-actions{grid-template-columns:1fr 1fr;align-items:start}.door-join{grid-column:1 / -1}}.door-actions .button.primary{min-height:56px;font-size:1.05rem}.join-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.join-form label{color:var(--shell-dim);font-size:.95rem}.code-input{inline-size:6.5rem;font-size:1.3rem;letter-spacing:.3em;text-align:center}.you-chip{display:flex;align-items:center;gap:10px;margin:0}.you-name{font-weight:600}.portrait{position:relative;display:inline-grid;place-items:center;inline-size:36px;block-size:36px;flex:0 0 auto;overflow:hidden;border:1px solid var(--shell-line);border-radius:50%;background:var(--shell-raise);font-size:1rem;font-weight:700}.portrait img{position:absolute;top:0;right:0;bottom:0;left:0;inline-size:100%;block-size:100%;object-fit:cover}.pill{margin-inline-start:6px;padding:1px 6px;border:1px solid var(--shell-line);border-radius:999px;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--shell-dim);white-space:nowrap}.roster{display:grid;gap:8px;margin:0;padding:0;list-style:none}.roster-seat{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--shell-line);border-radius:var(--shell-radius);background:var(--shell-raise)}.roster-seat[data-you=true]{border-color:var(--shell-accent)}.roster-name{flex:1 1 auto;min-inline-size:0}.roster-who{font-weight:600}.roster-state{flex:0 0 auto;color:var(--shell-dim);font-size:.9rem}.standings{display:grid;gap:8px;margin:0;padding:0;list-style:none;counter-reset:none}.standing{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--shell-line);border-radius:var(--shell-radius)}.standing[data-you=true]{border-color:var(--shell-accent)}.standing-rank{inline-size:2ch;color:var(--shell-dim);font-variant-numeric:tabular-nums}.standing-name{flex:1 1 auto;min-inline-size:0}.standing-score{font-variant-numeric:tabular-nums;font-weight:700}.room-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--shell-line);border-radius:var(--shell-radius);background:var(--shell-raise)}.room-id{display:flex;align-items:baseline;gap:8px}.room-label{color:var(--shell-dim);font-size:.85rem;letter-spacing:.12em;text-transform:uppercase}.room-code{font-size:1.4rem;letter-spacing:.22em;font-variant-numeric:tabular-nums}.room-meta{display:flex;flex:1 1 auto;flex-wrap:wrap;gap:4px 12px;color:var(--shell-dim);font-size:.92rem}.room-clock{font-variant-numeric:tabular-nums;color:var(--shell-text)}.invite{display:grid;gap:8px}.invite-row{display:flex;flex-wrap:wrap;gap:8px}.invite-url{flex:1 1 18ch;min-inline-size:0;font-size:.9rem}.host-controls{display:grid;gap:10px;padding:12px;border:1px solid var(--shell-line);border-radius:var(--shell-radius)}.host-controls .button{justify-self:start}.stage-slot{display:block;min-inline-size:0}#leave-room{inline-size:min(28rem,calc(100vw - 2 * var(--shell-gutter)));padding:18px;background:var(--shell-raise);color:var(--shell-text);border:1px solid var(--shell-line);border-radius:var(--shell-radius)}#leave-room::backdrop{background:#0009}#leave-room h2{margin:0 0 8px;font-size:1.2rem}#leave-room p{margin:0 0 10px}.dialog-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}#leave-room[open]{position:fixed;inset-block-start:10vh;inset-inline:0;margin-inline:auto;z-index:20}@font-face{font-family:Barlow Condensed;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2")}:root{--shell-ink: #191a17;--shell-raise: #292a24;--shell-line: #56554a;--shell-text: #fff3d8;--shell-dim: #cccbba;--shell-accent: #ffbc6d;--shell-radius: 4px;--type-label: "Barlow Condensed", "Arial Narrow", sans-serif;font-family:IBM Plex Sans,Arial,sans-serif;background:#181915}body{background:radial-gradient(ellipse at 84% 10%,#393125 0,transparent 48%),linear-gradient(155deg,#1b201c,#171815 64%,#25251e)}.game-header{padding-inline:max(18px,calc((100% - 1550px)/2));grid-template-columns:1fr auto 1fr;color:#efe9d8;background:#171a17;border-color:#514a3d}.game-header-title{font:700 1.15rem/1 var(--type-label);letter-spacing:.14em;color:#f6ebce}.game-exit{justify-self:start;font-weight:600}.game-header-tools{justify-self:end}.screen:is([data-screen=signin],[data-screen=frontdoor]){--atelier-gutter: max(clamp(22px, 5vw, 74px), calc((100% - 1610px)/2) );width:100%;max-inline-size:none;padding:0;gap:0;flex:1;grid-template-rows:auto 1fr;align-content:stretch}#app:has(>.screen:is([data-screen=signin],[data-screen=frontdoor])){display:flex;flex-direction:column}.atelier-hero{position:relative;isolation:isolate;display:grid;align-items:center;min-height:clamp(440px,33.33vw,860px);padding:clamp(36px,4.6vw,80px) var(--atelier-gutter);background:#111512;border-block-end:1px solid #846346}.atelier-hero:before,.atelier-hero:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;content:"";pointer-events:none}.atelier-hero:before{background:url(/art/atelier/workshop-panorama.webp) 62% 52% / cover no-repeat}.atelier-hero:after{background:linear-gradient(90deg,#061612a8,#071613d1 20%,#071613b0 32%,#07161338 49%,transparent 61%)}.atelier-copy{width:min(47%,600px);display:grid;justify-items:start;gap:16px}.atelier-title{margin:0;width:min(100%,535px);line-height:1}.atelier-mark{width:100%;height:auto;display:block}.atelier-intro{color:#f2ebda;font-size:clamp(1rem,1.2vw,1.19rem);line-height:1.5;margin:0 0 3px;max-width:40ch;text-wrap:pretty}.atelier-copy .button,.screen[data-screen=room] .button{font-weight:600}.atelier-copy .button{background:#24261fed;color:#fff4d9;border-color:#898371;border-radius:3px;padding-inline:20px}.atelier-copy .button.primary,.screen[data-screen=room] .button.primary{color:#211a11;background:#ffc375;border-color:#ffd496;box-shadow:inset 0 -2px #bb813e}.atelier-copy .button:hover{background:#373a31}.atelier-copy .button.primary:hover{background:#ffd494}.atelier-copy .door-actions{width:min(100%,430px);gap:9px}.atelier-copy .door-actions .button{min-height:45px}.atelier-copy .door-actions .button.primary:nth-child(2){color:#fff3db;border-color:#998772;background:#2e3029;box-shadow:none}.atelier-copy .door-join{margin-top:5px}.atelier-copy #join-help{margin:6px 0 0;font-size:.83rem}.atelier-copy .settings{width:min(100%,430px);margin:0;background:#191b17ee}.atelier-copy .settings:not([open]){background:transparent;border-color:transparent;padding:0}.atelier-copy .settings:not([open]) summary{padding:0}.atelier-copy :is(.form-error:empty,.notice:empty){display:none}.you-chip{gap:10px;color:#f8f0dc}.you-chip .portrait{width:36px;height:36px;border:1px solid #d7bd92;background:#353c34}.review-note,.atelier-guide-count{font:600 .7rem/1.4 IBM Plex Sans,sans-serif;letter-spacing:.12em;text-transform:uppercase}.review-note{color:#c9c4b6;border-inline-start:1px solid #766e61;padding-inline-start:10px}.review-controls{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.atelier-login{color:#f2e5c9;text-underline-offset:.22em;font-size:.875rem;padding:10px 4px}.atelier-guide{color-scheme:light;color:#24251f;background-color:#f7efdf;background-image:linear-gradient(90deg,#84663a0b 1px,transparent 1px),linear-gradient(#84663a0b 1px,transparent 1px),radial-gradient(ellipse at 2% 5%,#ffe2aaa3,transparent 57%);background-size:24px 24px,24px 24px,100% 100%;padding:clamp(24px,2.8vw,44px) var(--atelier-gutter) clamp(28px,4vw,60px)}.atelier-guide-header{display:flex;align-items:baseline;gap:18px;border-bottom:1px solid #b7ac94;padding-bottom:12px;margin-bottom:17px}.atelier-guide h2{font:700 clamp(1.9rem,3vw,2.8rem)/1 var(--type-label);text-transform:uppercase;margin:0}.atelier-guide-count{margin-left:auto;color:#655b49}.atelier-stations{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(14px,1.5vw,25px)}.atelier-card{display:block;color:inherit;text-decoration:none}a.atelier-card:hover .atelier-stop-name{color:#993800;text-decoration:underline;text-underline-offset:3px}.atelier-stop-image{width:100%;height:auto;aspect-ratio:1.95;object-fit:cover;display:block;background:#38352e;border:1px solid #89775d}.atelier-stop-name{font:700 clamp(1.32rem,1.8vw,1.85rem)/1.06 var(--type-label);margin:11px 0 5px}.atelier-stop-description{font-size:.94rem;line-height:1.4;margin:0;color:#494539}.screen[data-screen=room] :is(.screen-title,.panel-title){font-family:var(--type-label);text-transform:uppercase}.screen[data-screen=room] .screen-title{font-size:clamp(2.2rem,4vw,3.5rem)}.screen[data-screen=room] .roster-seat{background:#30322a;border-color:#615e50}.screen[data-screen=room] .room-code,.standing-score{color:#ffd18b}.screen[data-screen=room]:has(.stage-slot){max-inline-size:1450px}@media (max-width: 1000px){.atelier-stations{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:22px}.atelier-copy{width:54%}}@media (max-width: 700px){.game-header{grid-template-columns:1fr auto;padding-inline:max(7px,env(safe-area-inset-left)) max(7px,env(safe-area-inset-right))}.game-header-title{display:none}.atelier-hero{display:flex;flex-direction:column;align-items:stretch;padding:0;min-height:auto;background:linear-gradient(90deg,#0b231ee8,#18201bd9),url(/art/atelier/workshop-panorama.webp) left center / auto 100%}.atelier-hero:before{position:relative;display:block;inset:auto;height:clamp(170px,49vw,300px);background-size:cover;background-position:73% 52%}.atelier-hero:after{bottom:auto;height:clamp(170px,49vw,300px);background:linear-gradient(0deg,#14241ff2,transparent 27%)}.atelier-copy{width:100%;padding:0 22px 26px;gap:13px;position:relative}.atelier-title{width:min(83%,370px);margin-top:-19px}.atelier-intro{font-size:1rem}.atelier-stations{grid-template-columns:repeat(2,minmax(0,1fr))}.atelier-copy .door-actions{grid-template-columns:1fr 1fr}.atelier-copy .door-join{grid-column:1 / -1}.screen[data-screen=room]:has(.roster){margin:8px;width:auto}}@media (prefers-reduced-motion: no-preference){.atelier-card .atelier-stop-image,.atelier-copy .button{transition:filter .15s,background-color .15s}a.atelier-card:hover .atelier-stop-image{filter:brightness(1.08)}}body:has(.lobby-bench){background:#17231e url(/art/atelier/kingfisher-workshop.webp) left center / cover fixed no-repeat}.screen[data-screen=room]:has(.lobby-bench){max-inline-size:none;width:100%;padding:0;margin:0}.lobby-bench{display:grid;align-items:center;justify-items:end;min-height:calc(100svh - 65px);padding:clamp(28px,5vw,88px) max(5vw,calc((100vw - 1480px)/2));background:linear-gradient(90deg,transparent 20%,#18201c1a 46%,#0d1816ba)}.crew-register{--shell-dim:#5e5c4c;--shell-raise:#f3e9cc;--shell-line:#b19a71;width:min(100%,555px);display:grid;gap:18px;padding:clamp(22px,3.3vw,49px);color:#262d27;border:1px solid #ddc595;border-left:9px solid #416360;border-radius:8px 60px 27px 9px/16px 28px 45px 9px;background:radial-gradient(ellipse at 12% 4%,#fffcf1,transparent 55%),#f2e8cf;box-shadow:0 4px #b5a07b,0 8px #35514d,0 11px #1d3432,0 25px 60px #07110c91}.crew-register .room-bar{padding:0 0 12px;background:none;border:0;border-bottom:1px solid #cbb994;border-radius:0}.crew-register .room-bar strong,.crew-register .room-label{font:600 .77rem/1.35 var(--type-label);text-transform:uppercase;letter-spacing:.11em}.crew-register .room-bar .secondary{margin-left:auto}.crew-register .screen-title{line-height:.93;letter-spacing:-.02em;color:#21443e}.crew-register .room-code{color:#694021!important}.crew-register .secondary{color:#38483d;background:#f9f3e5;border-color:#a99a7a;border-radius:16px 7px}.crew-register :is(.quiet,.review-note,.roster-state){color:#53574b}.screen[data-screen=room] .crew-register .roster-seat{background:#fff9e7;border:1px solid #c9b892;border-radius:32px 9px 9px 32px;padding:6px 13px 6px 7px}.crew-register .you-chip{margin:0;color:#233e33;flex:1;min-width:0;flex-wrap:wrap}.crew-register .portrait{width:44px;height:44px}.crew-register .pill{color:#315248;background:#dae2c8;border-color:#a6b198}.crew-register :is(.host-controls,.invite){background:transparent;color:inherit;border:0;padding:0}.crew-register .button.primary{border-radius:22px 8px;justify-self:start;padding-inline:28px}.crew-register .form-error:empty{display:none}.atelier-stop-image{border-radius:6px 22px 6px 6px}@media (max-width:720px){body:has(.lobby-bench){background:#292c24}.lobby-bench{background:linear-gradient(0deg,#292c24 1%,transparent 20%),url(/art/atelier/kingfisher-workshop.webp) left 30% top / auto clamp(240px,69vw,400px) no-repeat;min-height:0;padding:clamp(180px,52vw,330px) 14px 44px;justify-items:center}.crew-register{gap:14px;border-top-right-radius:40px}}@media (max-width:720px){.lobby-bench{min-height:calc(100svh - 58px);align-items:start;background:linear-gradient(0deg,#14211de6,#18241e5c 55%,transparent 79%),url(/art/atelier/kingfisher-workshop.webp) 25% center / cover}}
