/* Dreadmates: readable controls around an unobstructed playfield. */
#pressure-hud{position:absolute;z-index:6;left:50%;top:151px;transform:translateX(-50%);max-width:calc(100% - 32px);padding:8px 13px;border:1px solid #a381ae66;border-radius:5px;background:#21182de8;color:#dac8e5;font-size:10px;letter-spacing:.7px;text-align:center;pointer-events:none}
#pressure-hud.danger{color:#ffe0d3;border-color:#de816d;background:#49252eea}
@media(max-width:700px){#pressure-hud{top:auto;bottom:174px;font-size:9px}.online #pressure-hud,.solo.touch-enabled #pressure-hud{bottom:238px}}
@media(max-height:550px) and (orientation:landscape){#pressure-hud,.online #pressure-hud,.solo.touch-enabled #pressure-hud{top:auto;bottom:67px;max-width:44%;font-size:8px;padding:6px 9px}}
:root{color-scheme:dark;--ink:#ede4d4;--muted:#b3aabb;--gold:#d4b57d;--line:#8d758d55}
.lobby{max-height:calc(100svh - 200px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8d758d66 transparent;padding-right:8px;padding-bottom:10px}
button,input,select,summary{-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #f0cf8d;outline-offset:4px}
header{padding:22px 32px}.brand{font-size:12px;letter-spacing:1.8px}.brand-icon{background:#cdb17f!important;color:#211c29!important;border-radius:6px}.brand small{font-size:6px;letter-spacing:1.6px}.edition{font-size:8px;letter-spacing:1.4px}.pill,.round{border-color:#b7a0b04d;background:#27222fe6;color:var(--ink);backdrop-filter:none}.header-right{gap:8px}
body:not(.playing):not(.online) #app{min-height:780px}.lobby{top:116px;left:6%;width:420px}.lobby h1{font-size:80px;line-height:.88;letter-spacing:-3px;margin:20px 0}.lobby h1 span{color:var(--gold)}.lobby>.eyebrow{font-size:8px;letter-spacing:1.7px;color:#d6c4a6}.lobby>.intro{font-size:13px;line-height:1.7;color:#c4b9c6;margin:18px 0 23px}.online-entry{width:100%;padding:17px 18px;background:#cdb27f;border:1px solid #e7cd98;color:#211d29;font-size:13px;border-radius:6px;margin:0;box-shadow:0 5px 24px #0003}.online-entry:hover{background:#dfc594}.online-entry span{font-size:8px}.online-entry-note{font-size:10px;color:#b5a9bb;margin:9px 0 21px}.mode-label{font-size:8px;letter-spacing:1.4px;margin:0 0 9px}.mode-picker{width:100%;gap:6px}.mode-picker button{padding:12px 8px;font-size:11px;min-height:42px;border-radius:5px}.mode-picker button[aria-pressed=true]{background:#514253;color:#f2dfbd;border-color:#b49a7a}#mode-detail{font-size:10px;line-height:1.6;min-height:30px;margin:9px 0 12px;color:#bbaec4}.route-picker{margin:10px 0 12px}#chapter-picker{border:1px solid var(--line);background:#24202de6;border-radius:5px;overflow:hidden}#chapter-picker summary{padding:12px 14px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;list-style:none;font-size:8px;letter-spacing:1px;color:#bca9bb}#chapter-picker summary::-webkit-details-marker{display:none}#chapter-picker summary b{font-size:11px;color:#e4d5c5;font-weight:500;letter-spacing:0;margin-left:12px}#chapter-picker summary i{font-style:normal;font-size:19px;color:#d0b78e}#chapter-picker[open] summary{border-bottom:1px solid var(--line)}.chapter-grid{width:100%;padding:9px;gap:5px}.chapter-grid button{min-height:42px;padding:8px;font-size:10px}.chapter-grid button small{font-size:6px;letter-spacing:.4px}.lobby #play{width:100%;padding:12px 17px;min-height:44px;background:#292632;border:1px solid #99838e;color:#e9ddca;font-size:12px;border-radius:5px}.lobby #play:hover{background:#3b3243}.resume-save{width:100%;font-size:11px}.lobby-note{font-size:9px;margin-top:13px;color:#aa9dad}.scene-note{right:8%;top:22%;transform:rotate(3deg);max-width:225px}.scene-note b{font-size:24px;line-height:1.2}.scene-note>span{font-size:9px;letter-spacing:1.8px}footer .control-card{background:#211e2adb;border:1px solid var(--line);padding:12px 15px;border-radius:6px}footer .control-card b{font-size:9px}footer .control-card>div>span{font-size:9px;color:#c1b5c5}kbd{font-size:9px;background:#3a3140;color:#e4d3bf;border-color:#78677e}.touch-enabled:not(.playing) footer{display:none}
.hud,.route-info,.threat{backdrop-filter:none}.hud{top:94px;left:28px;right:28px;gap:12px}.route-info{padding:11px 14px;min-width:210px;border-radius:5px;background:#24202ddf}.route-info>span{font-size:10px;letter-spacing:1px}.route-info small{font-size:7px;letter-spacing:1px}.progress{margin:8px 0 6px}.threat{border-radius:5px;padding:11px 15px;background:#302632e8;border-color:#79667577}.threat b{font-size:10px;letter-spacing:1px}.threat span{font-size:9px;color:#cabdca}.threat.hunt{background:#593340e8;border-color:#b57771;color:#ffe0c0}.right-hud #pause{width:40px;height:40px}.room-tip{font-size:9px;letter-spacing:.7px;max-width:430px}.playing #puzzle-hud{top:204px;max-width:300px;border-radius:6px;background:#25202ef2}.playing #puzzle-hud b{font-size:10px}.playing #puzzle-hud span{font-size:12px}.playing #puzzle-hud small{font-size:10px}.tether-hud{bottom:107px}.tether-hud>span{font-size:8px}.tether-hud small{font-size:9px}.overlay{backdrop-filter:blur(5px)}.modal{border-radius:10px}.modal p{font-size:13px}.modal .primary{min-height:46px}#toast{font-size:12px;border-radius:5px;padding:12px 18px}#partner-status,#ability-status{position:absolute;z-index:4;font-size:10px;background:#201e29df;border:1px solid #8e758659;border-radius:5px;padding:8px 12px;color:#d4c4d7;pointer-events:none}#partner-status{top:173px;right:28px}#ability-status{bottom:107px;right:28px;color:#dfc798}
.online .hud{top:129px}.online #partner-status{top:207px}.online.playing #puzzle-hud{top:215px}.online #online-bar{z-index:9;border-color:#8a728558;font-size:10px;background:#211e2de8}.online #online-status{font-size:10px}.online #online-wait{left:6%;top:142px;border-radius:8px;padding:27px 29px;background:#211e2bf2}.online #wait-title{font-size:35px;letter-spacing:-1px}.online .room-seats{gap:12px}.online .room-seats>div{padding:17px 13px}.online .room-seats b{font-size:11px}.online .room-seats span{font-size:12px}.online .online-small{font-size:11px}.online .wait-actions button{min-height:44px}.online #wait-help{font-size:12px}.online #room-invite{font-size:12px}.online #room-leave{min-height:32px}.online footer .avatar{display:none}.online #online-touch{z-index:5}.online-actions button{box-shadow:0 3px 12px #0003}.online-actions [data-net-action=jump]{background:#d1b681}.online-actions button:focus-visible{outline-offset:2px}
#graphics-dialog{width:min(460px,92vw);border-radius:10px}#graphics-dialog label{display:block;color:#cbbbd1;font-size:12px;margin-top:24px}#graphics-mode{width:100%;padding:13px;margin-top:8px;border-radius:5px;border:1px solid #927b92;color:#ebdfd2;background:#211c2a;font:14px 'DM Sans',sans-serif}#graphics-dialog p{font-size:12px;line-height:1.8;color:#bcaec3}#graphics-dialog h2{font-size:32px}#online-dialog{border-radius:10px}#room-error:empty{min-height:0;margin:0}.online-tabs button{min-height:44px}.wardrobe-card select{min-height:40px}
body:not(.playing):not(.online) #app{min-height:100svh}
@media(max-width:700px){.lobby{max-height:calc(100svh - 110px)}}
@media(max-height:550px) and (orientation:landscape){.lobby{max-height:calc(100svh - 100px)}}
@media(max-height:850px) and (min-width:901px){.lobby{top:96px}.lobby h1{font-size:66px;margin:15px 0}.lobby>.intro{margin:14px 0 17px}.online-entry{padding:14px 17px}.online-entry-note{margin-bottom:17px}.mode-picker button{padding:10px 7px}.lobby-note{font-size:8px}#chapter-picker[open]{position:relative;z-index:6}.scene-note{top:20%}}
@media(max-width:1050px){.edition{display:none}.lobby{left:5%;width:390px}.scene-note{right:4%;max-width:190px}.scene-note b{font-size:21px}.header-right .pill{font-size:10px;padding:0 10px}.brand{font-size:10px}.brand small{font-size:5px}}
@media(max-width:700px){body:not(.playing):not(.online) #app{min-height:740px}header{padding:15px 16px}.brand{font-size:9px;letter-spacing:1px}.brand-icon{width:28px;height:30px;font-size:25px}.brand small{letter-spacing:1px}.header-right{gap:5px}.header-right .pill{height:34px;font-size:9px;padding:0 9px}.header-right .round{width:32px;height:34px}.lobby{top:91px;left:6%;width:88%}.lobby h1{font-size:66px;margin:19px 0;letter-spacing:-2px}.lobby>.intro{font-size:12px;line-height:1.7;margin:17px 0 20px}.lobby>.eyebrow{font-size:7px;letter-spacing:1.1px}.online-entry{padding:17px 15px;font-size:13px}.online-entry span{font-size:7px;letter-spacing:.6px}.online-entry-note{font-size:10px;margin-bottom:22px}.mode-label{font-size:8px}.mode-picker button{font-size:10px;padding:11px 5px}.lobby #mode-detail{font-size:10px;min-height:31px}.route-picker{margin:12px 0}#chapter-picker summary{padding:12px}#chapter-picker summary b{font-size:10px;margin-left:9px}.lobby #play{font-size:12px;padding:13px 16px}.lobby-note{font-size:9px}.resume-save{font-size:11px}.chapter-grid button{font-size:9px}.chapter-grid button small{font-size:6px}.playing header{padding:12px}.playing .hud{top:67px;left:12px;right:12px;gap:8px}.playing .route-info{min-width:0;flex:1;padding:9px 11px}.route-info>span{display:block;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.route-info small{font-size:6px;letter-spacing:.5px}.playing .progress{margin:7px 0 5px}.playing .threat{padding:8px 11px}.threat b{font-size:9px}.threat span{font-size:8px}.playing #puzzle-hud{top:193px;left:12px;right:12px;max-width:none;padding:11px 13px}.playing #puzzle-hud b{font-size:9px}.playing #puzzle-hud span{font-size:11px}.playing #puzzle-hud small{font-size:10px}.playing #partner-status{top:178px;right:12px;font-size:9px;padding:6px 10px}#ability-status{display:none!important}.playing #toast{top:178px;font-size:11px;max-width:89%}.online #online-bar{top:56px;left:12px;right:12px;min-height:47px;padding:4px 9px;gap:3px 10px}.online #online-status{font-size:9px}.online #online-bar #room-leave{font-size:9px}.online .hud{top:117px}.online #partner-status{top:228px;right:12px}.online.playing #puzzle-hud{top:259px;max-width:none}.online #toast{top:224px}.online #online-wait{top:127px;left:5%;width:90%;max-height:calc(100svh - 145px);padding:23px}.online #wait-title{font-size:29px}.online .room-seats b{font-size:9px}.online .room-seats span{font-size:11px}.online .room-seats>div{padding:14px 10px}.online .online-small{font-size:10px}.online #room-invite{font-size:11px}.online .wait-actions{gap:7px}.online #room-ready,.online #room-start{font-size:11px;padding:12px 10px}.online .room-tip{bottom:173px;font-size:8px;max-width:86%;line-height:1.6}.online .tether-hud{bottom:142px!important}.online .tether-hud small{font-size:8px}.online #rescue-hud{bottom:212px;font-size:10px}.online .modal{margin-top:80px}.online header .brand>span:last-child{display:none}#wardrobe{border-radius:10px}}
@media(max-height:550px) and (orientation:landscape){body:not(.playing):not(.online) #app{min-height:740px}.lobby{top:88px}.lobby h1{font-size:58px}.lobby .route-picker{position:static;width:auto}.lobby .lobby-note{display:block}.playing #app,.online #app{height:100svh;min-height:100svh}.playing header{padding:8px 16px}.playing .header-right .pill,.playing .header-right .round{height:30px}.playing .hud{top:54px}.playing .route-info{flex:0;min-width:175px;padding:7px 11px}.playing .threat{order:0;margin:0;padding:8px 11px}.online #online-bar{top:48px;min-height:30px;padding:2px 9px;flex-wrap:nowrap}.online #online-status{order:0;width:auto;font-size:9px}.online #online-bar #room-leave{min-height:26px}.online .hud{top:87px}.online #online-wait{top:92px;left:50%;transform:translateX(-50%);width:480px;max-height:calc(100svh - 104px);padding:17px 23px}.online #wait-title{font-size:26px}.online .room-seats{margin:12px 0}.online #partner-status{top:152px;right:16px;font-size:9px}.playing #puzzle-hud,.online.playing #puzzle-hud{top:160px;left:50%;right:auto;transform:translateX(-50%);width:290px;max-width:290px;padding:9px 12px}.playing #puzzle-hud span{margin:5px 0}.playing .room-tip,.online .room-tip{bottom:43px;max-width:40%;font-size:7px;padding:8px 11px}.online .tether-hud{bottom:7px!important}.online .tether-hud small{font-size:7px}.playing #toast,.online #toast{top:151px;max-width:44%;font-size:10px}.online #rescue-hud{bottom:112px;font-size:9px;max-width:45%}.online .modal{max-height:calc(100svh - 100px);margin-top:70px}.playing #partner-status{top:122px}.online #partner-status{top:152px}.playing #ability-status{display:none!important}}

body:not(.playing):not(.online) #app{min-height:100svh}
.solo.touch-enabled #online-touch{display:flex}.solo #touch-controls{display:none!important}.solo.touch-enabled .tether-hud{bottom:146px}.solo.touch-enabled .room-tip{bottom:174px}
@media(max-height:550px) and (orientation:landscape){.solo.touch-enabled .tether-hud{bottom:8px}.solo.touch-enabled .room-tip{bottom:45px}}

.brand-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.solo .tether-hud>span,.online .tether-hud.no-rope>span{display:none}
@media(max-width:700px){.playing .threat{flex:0 0 100%;width:100%;max-width:none;justify-content:center}body.playing:not(.online) #puzzle-hud{top:219px}.online .room-tip{bottom:190px}}
@media(max-height:550px) and (orientation:landscape){.playing .threat{flex:0 1 auto;width:auto;max-width:290px}.online .room-tip{bottom:43px}body.playing:not(.online) #puzzle-hud{top:160px}}

/* Player count and location come before the cooperative gameplay rules. */
.lobby h1{font-size:64px;margin:14px 0}.lobby>.intro{margin:12px 0 17px}
.play-picker{display:grid;gap:7px}.play-picker button{display:flex;align-items:center;gap:12px;width:100%;min-height:57px;padding:10px 12px;border:1px solid #8d758d70;border-radius:6px;background:#201d2bea;color:var(--ink);text-align:left;cursor:pointer}
.play-picker button:hover{background:#3b3040}.play-picker button[aria-pressed=true]{background:#4a3b45;border-color:var(--gold)}.play-picker b{display:block;font-size:12px;font-weight:600;line-height:1.4}.play-picker small{display:block;font-size:10px;line-height:1.5;color:#c6bbca;margin-top:2px}.play-count{display:grid;place-items:center;flex:0 0 28px;height:30px;border:1px solid #9d899952;border-radius:4px;color:#dac092;font-size:13px}.play-check{margin-left:auto;color:var(--gold);opacity:0}.play-picker button[aria-pressed=true] .play-check{opacity:1}
#play-controls{font-size:10px;line-height:1.6;color:#c4b9c6;margin:10px 0 15px;min-height:32px}#coop-options{margin-bottom:12px}#coop-options #mode-detail{min-height:0;margin-bottom:0}.choosing-online:not(.online) footer .control-card:last-child,.choosing-online:not(.online) footer .center-note,.choosing-online #wardrobe-cards .wardrobe-card:nth-child(2){display:none}
#online-back{display:block;width:100%;padding:12px;margin-top:8px}#online-resume{margin-top:8px}#online-entry-slot{margin-top:4px}.lobby #play{margin-top:4px;background:#cdb27f;border-color:#e7cd98;color:#211d29}.lobby #play:hover{background:#dfc594}.lobby .route-picker{margin-bottom:12px}
@media(max-width:700px){.lobby h1{font-size:48px;margin:11px 0}.lobby>.intro{margin:10px 0 14px;font-size:12px}.play-picker button{min-height:56px;padding:9px 10px;gap:9px}.play-picker b{font-size:11px}.play-picker small{font-size:9px}.play-count{flex-basis:25px}#play-controls{margin-bottom:11px}}
@media(max-height:700px) and (max-width:700px) and (orientation:portrait){.lobby h1{font-size:34px;line-height:1}.lobby h1 br{display:none}.lobby>.intro{display:none}.lobby>.eyebrow{font-size:7px}.lobby-note{margin-top:9px}}
@media(max-height:550px) and (orientation:landscape){.lobby h1{font-size:36px}.lobby h1 br{display:none}.lobby>.intro{display:none}.play-picker button{min-height:51px}.play-picker small{font-size:9px}.lobby{width:360px}}
