:root{--ink:#36453e;--paper:#f3eee2;--orange:#db8962}*{box-sizing:border-box}body{margin:0;overflow:hidden;color:var(--paper);background:#56666a;font-family:'Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',sans-serif}button,input{font:inherit}button{color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:hover{filter:brightness(1.12)}button:focus-visible,input:focus-visible{outline:2px solid #ebba86;outline-offset:4px}#world{width:100vw;height:100dvh;display:block;touch-action:none;outline:none}.glass{background:linear-gradient(125deg,#33433dbd,#34403bb0);border:1px solid #d4ddc435;box-shadow:0 5px 22px #0f26171a;backdrop-filter:blur(14px)}header{position:fixed;top:22px;left:24px;right:24px;display:flex;gap:14px;align-items:center;pointer-events:none;z-index:5}header>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:14px;border-radius:40px;padding:11px 19px 11px 14px}.brand-symbol{font-size:26px;color:#e4ac81}.brand b{font-size:14px;letter-spacing:-.5px}.brand small{display:block;font-size:9px;color:#d8dfce99;margin-top:5px}.brand i{height:25px;width:1px;background:#bfc9ad33;margin:0 1px 0 10px}.clock{font:12px monospace;color:#e1d8ba}.top-nav{display:flex;border-radius:30px;padding:5px}.top-nav button{background:none;border:0;padding:10px 12px;font-size:11px}.top-nav button+button{border-left:1px solid #b1c2a62e}.top-right{margin-left:auto;display:flex;gap:9px;align-items:center}.mode-pill{font-size:10px;padding:13px 17px;border-radius:30px;color:#dfdfca}.round-button{border-radius:50%;width:47px;height:47px;font-size:18px}.round-button small{display:block;font-size:7px;margin-top:-2px}.directions{position:fixed;top:110px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:11px;color:#e8eddfa6;text-shadow:0 1px 6px #1b302f;padding:9px 17px;border-radius:30px;background:#33433930;pointer-events:none;transition:opacity 1s}.intro-copy{position:fixed;bottom:30px;left:30px;pointer-events:none;text-shadow:0 2px 12px #172a2470;transition:opacity 1s}.intro-copy>span{font:9px monospace;letter-spacing:2.5px;color:#dfd7b8}.intro-copy h1{font-size:27px;font-weight:500;line-height:1.45;letter-spacing:-1.1px;margin:10px 0}.intro-copy p{font-size:10px;color:#e2e5d4a6}.right-rail{position:fixed;right:25px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:9px}.right-rail button{width:52px;height:59px;font-size:22px;border-radius:16px}.right-rail small{display:block;font-size:9px;margin-top:3px;color:#e0e5d2b0}.bottom-wrap{position:fixed;bottom:19px;left:50%;transform:translateX(-50%);text-align:center;z-index:7}.dock{display:flex;gap:7px;padding:7px 11px;border-radius:23px}.dock button{position:relative;min-width:69px;padding:9px 12px 10px;border-radius:17px;border:1px solid transparent;background:none}.dock button.selected{background:#e0b68b25;border-color:#e0ba825e;box-shadow:inset 0 0 16px #e6c68e0d}.dock button>span{font-size:24px;height:31px;display:block;font-family:sans-serif;line-height:30px}.dock button>small{display:block;font-size:10px;margin-top:4px;color:#ececdad4}.dock button[data-tool=fire]>span{font-size:31px;color:#e6a26e}.dock-divider{width:1px;background:#c6d3bb33;margin:13px 3px}.key-guide{margin-top:9px;font-size:8px;letter-spacing:1px;color:#e4e8d7a6;text-shadow:0 1px 3px #293d32}#context-hint{font-size:11px;line-height:1.7;color:#f4ecd3;margin:0 auto 13px;text-shadow:0 1px 6px #243c30;background:#304a3f75;width:max-content;max-width:90vw;padding:5px 12px;border-radius:15px}#toast{padding:11px 18px;margin:0 auto 10px;max-width:90vw;background:#ece8d9ee;color:#4e6050;font-size:12px;border-radius:8px;box-shadow:0 5px 30px #182c3122;opacity:0;transition:opacity .2s;pointer-events:none;width:max-content}#toast.show{opacity:1}#player-label{position:fixed;top:0;left:0;pointer-events:none;transform:translate(-50%,-100%);font-size:10px;white-space:nowrap;border:1px solid #f5f2d52e;background:#3d524155;padding:5px 9px;border-radius:15px;backdrop-filter:blur(5px);display:none}#player-label span{font-size:8px;background:#ecedda;color:#6a7b5f;border-radius:50%;padding:2px 3px;margin-right:6px}#player-label b{font-weight:400}#speech{position:fixed;top:0;left:0;pointer-events:none;transform:translate(-50%,-100%);background:#f5f0e0ed;border:1px solid #f5efd3;border-radius:12px;padding:10px 14px;color:#61715d;font-size:12px;display:none;white-space:nowrap;max-width:90vw}.panel{position:fixed;top:99px;right:23px;width:315px;max-height:calc(100dvh - 120px);overflow:auto;background:#f1eee3f5;color:var(--ink);border:1px solid #e8e8d0;border-radius:16px;padding:25px 22px;box-shadow:0 15px 55px #172d3b33;backdrop-filter:blur(15px);z-index:12}.close-panel,.close-modal{position:absolute;top:8px;right:11px;font-size:25px;background:none;border:0;color:#8e9888}.eyebrow{font:8px monospace;letter-spacing:2px;color:#9b9276}.panel h2{font-size:18px;letter-spacing:-.7px;margin:12px 0 8px}.panel-desc{font-size:10px;color:#8c9984;line-height:1.6;margin-bottom:23px}.panel label{font-size:10px;color:#8c967c}.input-line{display:flex;border-bottom:1px solid #c9d0bb;padding:8px 0}.input-line input{width:100%;min-width:0;background:transparent;border:0;outline:0;color:#475c48;font-size:13px;font-weight:600}.input-line button{border:0;background:none;font-size:10px;color:#839676;white-space:nowrap}.colors{display:flex;align-items:center;gap:10px;margin:18px 0 22px}.colors>span{font-size:10px;color:#8c9984;margin-right:auto}.colors button{width:19px;height:19px;border:3px solid #f4f1e7;background:var(--c);border-radius:50%;outline:1px solid #c7cdbb}.colors button.selected{outline:2px solid #8a9f7b}.upload-list{display:flex;flex-direction:column;gap:8px}.upload-list button{background:#e7e9dd;border:1px solid #d6ddc8;border-radius:8px;display:flex;align-items:center;gap:12px;padding:13px 10px;color:#58704f;text-align:left}.upload-list button>span{font-size:21px;color:#829577}.upload-list b{font-size:11px;font-weight:500;display:block}.upload-list small{font-size:9px;display:block;margin-top:6px;color:#9ba68b;max-width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upload-list i{margin-left:auto;font-size:17px;font-style:normal;color:#9bab8d}.fine-print{font-size:10px;line-height:1.8;color:#94a086;margin:18px 0}.solid-button{border:0;background:#637b5a;color:#f7f1dc;padding:13px 18px;border-radius:7px;font-size:12px;width:100%}.text-button{font-size:9px;color:#9fa88f;border:0;background:none;padding:12px 0 0;display:block;margin:auto}dialog{position:relative;border:1px solid #dee2cd;border-radius:15px;background:#f3f0e4;color:#52654d;max-width:min(450px,calc(100vw - 30px));padding:30px}dialog::backdrop{background:#1a332e70;backdrop-filter:blur(6px)}dialog h2{font-size:23px;letter-spacing:-1px}dialog dt{font-size:12px;font-weight:700;margin:17px 0 6px}dialog dd{font-size:11px;line-height:1.8;margin:0;color:#8a987e}.receipt{text-align:center;min-width:275px}.receipt>span{font:10px monospace;letter-spacing:3px}.receipt h2{font-size:30px;margin-top:28px}.receipt>p{font-size:10px;color:#9ba68c}#receipt-lines{border-top:1px dashed #a6b494;border-bottom:1px dashed #a6b494;margin:24px 0;padding:15px 0}#receipt-lines p{display:flex;justify-content:space-between;font-size:12px;margin:12px 0}.receipt>strong{font-size:17px}.receipt>small{display:block;font-size:9px;margin:12px 0 30px;color:#99a687}#loading{position:fixed;inset:0;background:#e6e2d6;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:99;color:#60745d;transition:opacity .8s}#loading>span{font-size:48px;color:#cc8b65}#loading h1{font-size:25px;font-weight:500;letter-spacing:-1px;margin:12px}#loading p{font-size:12px;color:#8f9a81}#loading small{font-size:10px;color:#a6ad97;margin-top:30px}#loading.loaded{opacity:0;pointer-events:none}.visually-quiet .intro-copy,.visually-quiet .directions{opacity:0}.panel[hidden]{display:none}
@media(max-width:800px){header{top:13px;left:12px;right:12px;gap:7px}.brand{padding:10px 13px;gap:9px}.brand b{font-size:12px}.brand small{font-size:8px}.brand i,.clock,.mode-pill{display:none}.brand-symbol{font-size:22px}.top-nav button{padding:9px 8px;font-size:10px}.top-right{gap:0}.round-button{width:40px;height:40px}.intro-copy{left:18px;bottom:145px}.intro-copy h1{font-size:22px}.intro-copy p{display:none}.intro-copy>span{font-size:8px}.directions{font-size:9px;top:84px;max-width:90vw;white-space:normal;text-align:center}.right-rail{right:12px}.right-rail button{width:44px;height:53px;font-size:20px}.bottom-wrap{bottom:14px;width:calc(100% - 22px);max-width:470px}.dock{justify-content:space-evenly;padding:6px 5px;gap:1px;border-radius:20px}.dock button{min-width:52px;padding:7px 9px}.dock button>span{font-size:22px}.dock button>small{font-size:9px}.dock-divider{margin:13px 1px}.key-guide{font-size:7px}.panel{right:12px;top:81px;width:min(315px,calc(100vw - 24px));max-height:calc(100dvh - 100px)}#context-hint{font-size:9px;margin-bottom:10px}#toast{font-size:11px}#player-label{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Chat stays at the edge; the room remains the main screen. */
[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
#chat-toggle{position:fixed;left:24px;bottom:24px;border-radius:24px;padding:12px 18px;font-size:12px;z-index:9}
#chat-panel{position:fixed;left:24px;bottom:78px;width:320px;border-radius:18px;z-index:9;overflow:hidden;color:#f2eddf;background:linear-gradient(145deg,#263932e8,#253330e3)}
.chat-heading{padding:15px 16px 12px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d8e4d321}.chat-heading b{font-size:13px}.chat-heading small{display:block;font-size:9px;color:#c2cdbda6;margin-top:5px}.chat-heading button{background:none;border:0;font-size:23px;padding:2px 6px;color:#c2cdbd}
#chat-log{height:175px;overflow-y:auto;overscroll-behavior:contain;padding:12px 15px;scrollbar-width:thin;scrollbar-color:#788a72 transparent}.chat-line{font-size:12px;line-height:1.65;margin-bottom:12px;overflow-wrap:anywhere}.chat-line b{font-size:10px;display:block;color:#e6c498;margin-bottom:2px}.chat-line.system{font-size:10px;color:#c2cdbdaa}.chat-line.system b{font-size:9px;color:#b4c9a4}.chat-line span{white-space:pre-wrap}
#chat-form{display:flex;margin:0 12px;border:1px solid #b9c9ad45;border-radius:10px;background:#13211a66;padding:5px}#chat-input{width:100%;min-width:0;border:0;background:none;color:#f4ecdd;font-size:12px;padding:8px;outline-offset:0}#chat-input::placeholder{color:#afbea58f}#chat-form button{background:#d7b68c;color:#35443b;border:0;border-radius:7px;width:33px;flex-shrink:0;font-size:20px}.chat-footnote{font-size:8px;color:#b3c5a990;margin:9px 16px 12px}
#penalty-banner{position:fixed;top:100px;left:50%;transform:translateX(-50%);width:340px;z-index:10;padding:17px 20px 12px;background:#4c201df2;border:1px solid #f0926266;border-radius:16px;box-shadow:0 10px 35px #42171333;display:grid;grid-template-columns:1fr auto;gap:8px 15px;color:#ffedda}#penalty-banner span{font-size:10px;color:#f6b080;letter-spacing:1px}#penalty-banner strong{display:block;font-size:14px;margin:7px 0}#penalty-banner small{font-size:10px;color:#eabda3}#penalty-time{font:26px monospace;align-self:center;font-variant-numeric:tabular-nums}#penalty-progress{grid-column:1/-1;width:100%;height:5px;border:0;accent-color:#eda367;border-radius:3px;overflow:hidden}#penalty-progress::-webkit-progress-bar{background:#8b5b4733}#penalty-progress::-webkit-progress-value{background:#f0ae75}#penalty-banner p{grid-column:1/-1;margin:3px 0 0;font-size:9px;color:#d9a78b}.on-penalty #directions{display:none}.on-penalty #coffee-btn,.on-penalty #seat-btn,.on-penalty #beer-btn,.on-penalty #reset-btn{opacity:.4}#return-break{position:fixed;top:105px;left:50%;transform:translateX(-50%);padding:15px 24px;border-radius:30px;z-index:10;background:#f4dfb8;color:#3c5344;font-size:12px}
@media(max-width:1150px){#chat-panel{bottom:160px;width:300px}#chat-toggle{bottom:135px}}
@media(max-width:600px){#chat-panel{left:12px;bottom:177px;width:min(300px,calc(100vw - 72px))}#chat-toggle{left:12px;bottom:132px;padding:10px 14px;font-size:11px}#chat-log{height:115px}.chat-heading{padding:12px}.chat-heading small{font-size:8px}#penalty-banner{top:83px;width:min(330px,calc(100vw - 24px));padding:12px 15px}#penalty-banner strong{font-size:12px}#penalty-time{font-size:23px}.directions{display:none}#return-break{top:83px;white-space:nowrap}#chat-form input{font-size:16px}}
@media(max-height:650px){#chat-log{height:85px}#chat-panel{bottom:130px}.chat-heading{padding:9px 12px}#chat-toggle{bottom:91px}.chat-footnote{display:none}#chat-form{margin-bottom:10px}}
/* Heat: the office side of the screen should feel hot, the pantry clean. */
#heat{position:fixed;inset:0;z-index:2;pointer-events:none;opacity:0;background:radial-gradient(ellipse at 50% 55%,transparent 40%,#ff4a1040 76%,#c81e0a80 100%)}
#thermo{position:fixed;top:84px;right:24px;z-index:5;display:flex;align-items:center;gap:8px;border-radius:30px;padding:9px 16px;font-size:11px;color:#e3e6d6;transition:background .6s,border-color .6s}
#thermo b{font:13px monospace;font-variant-numeric:tabular-nums;color:#f4ecd3}#thermo small{font-size:9px;color:#d8dfce99}#thermo i{width:1px;height:16px;background:#bfc9ad33}
#thermo.hot{background:linear-gradient(125deg,#7a1f14e6,#a8341ad9);border-color:#ffb07a66}#thermo.hot #thermo-temp{color:#ffe53b}#thermo.hot small{color:#ffd0b0}
.pow{position:fixed;z-index:8;pointer-events:none;white-space:nowrap;font:900 46px 'AppleMyungjo','Gungsuh','Batang','Nanum Myeongjo',serif;color:#ffe53b;-webkit-text-stroke:7px #b3161a;paint-order:stroke fill;text-shadow:4px 4px 0 #2a0d0d,0 0 18px #ff5a1c;transform:translate(-50%,-50%) rotate(var(--r,0deg));animation:pow .9s cubic-bezier(.2,1.6,.4,1) forwards}
.pow.big{font-size:72px}
@keyframes pow{0%{opacity:0;scale:.3}18%{opacity:1;scale:1.25}35%{scale:1}75%{opacity:1}100%{opacity:0;scale:1.05;translate:0 -40px}}
#vibe{position:fixed;top:128px;right:24px;z-index:5;display:flex;align-items:center;gap:8px;border-radius:30px;padding:8px 15px;font-size:11px;color:#e3e6d6;background:linear-gradient(125deg,#5b4420e0,#6e5226d6);border-color:#ffd58a55}#vibe b{font:12px monospace;color:#ffe9b8}#vibe small{font-size:9px;color:#f1dfb9aa}#vibe i{width:1px;height:14px;background:#ffe9b833}
#world.drunk{filter:blur(.8px) saturate(1.25)}.dock button>small{white-space:nowrap}
@media(max-width:800px){#vibe{top:104px;right:12px;padding:6px 11px;font-size:10px}.dock button{min-width:44px!important;padding:7px 5px!important}#thermo{top:66px;right:12px;padding:7px 12px;font-size:10px}.pow{font-size:34px}.pow.big{font-size:50px}}
@media(prefers-reduced-motion:reduce){.pow{animation:none;opacity:.95}}

/* Multiplayer: other visitors' name tags and speech, room tools. */
.peer-label{position:fixed;top:0;left:0;pointer-events:none;transform:translate(-50%,-100%);font-size:10px;white-space:nowrap;border:1px solid #f5f2d52e;background:#3d524199;padding:5px 9px;border-radius:15px;display:none;color:#f3eee2;z-index:3}
.peer-speech{position:fixed;top:0;left:0;pointer-events:none;transform:translate(-50%,-100%);background:#f5f0e0ed;border:1px solid #f5efd3;border-radius:12px;padding:8px 12px;color:#61715d;font-size:12px;display:none;white-space:nowrap;max-width:60vw;overflow:hidden;text-overflow:ellipsis;z-index:3}
.room-tools{display:flex;gap:6px;margin:8px 12px 0}.room-tools button{flex:1;background:#d7b68c22;border:1px solid #d7b68c55;color:#f2eddf;border-radius:8px;font-size:10px;padding:7px 4px}

/* Reactions and round tally. */
#reactions{position:fixed;right:24px;bottom:24px;z-index:6;display:flex;gap:8px}
#reactions button{width:50px;height:54px;border-radius:14px;font-size:19px;line-height:1.1}#reactions small{display:block;font-size:8px;margin-top:3px;color:#e3e6d6}
.emote-pop{position:fixed;z-index:7;pointer-events:none;font-size:34px;transform:translate(-50%,-100%);animation:emote-rise 1.4s ease-out forwards}
@keyframes emote-rise{0%{opacity:0;translate:0 10px;scale:.5}15%{opacity:1;scale:1.2}30%{scale:1}100%{opacity:0;translate:0 -70px}}
@media(max-width:1150px){#reactions{bottom:118px}}
@media(max-width:800px){#reactions{right:12px;bottom:112px;flex-direction:column;gap:6px}#reactions button{width:42px;height:44px;font-size:16px}#thermo small:nth-of-type(2),#thermo small:nth-of-type(2)+b,#thermo i:nth-of-type(1){display:none}}
@media(prefers-reduced-motion:reduce){.emote-pop{animation:none}}

/* Avatar picker, impact flash. */
.looks{margin:14px 0 4px}.looks>span{display:block;font-size:10px;color:#c2cdbdcc;margin-bottom:7px}.looks>div{display:flex;flex-wrap:wrap;gap:5px}
.looks button{background:#ffffff14;border:1px solid #ffffff2a;border-radius:14px;padding:6px 10px;font-size:10px;color:inherit}.looks button.selected{background:#e9c79a;color:#3a4a40;border-color:#e9c79a}
#flash{position:fixed;inset:0;z-index:4;pointer-events:none;opacity:0;background:radial-gradient(circle at 50% 45%,#fff 0%,#fff6d8 35%,#ffb05a00 80%)}

/* Boss raid. */
#boss-banner{position:fixed;top:132px;left:50%;transform:translateX(-50%);z-index:9;padding:11px 20px;border-radius:30px;background:#b3161af2;color:#fff3d0;font-size:13px;border:2px solid #ffe14a;box-shadow:0 8px 30px #5a0d0d55;white-space:nowrap;animation:boss-pulse .7s ease-in-out infinite alternate}
#boss-banner b{color:#ffe14a}#boss-time{font:14px monospace}
@keyframes boss-pulse{from{scale:1}to{scale:1.05}}
.boss-label{background:#b3161a!important;border-color:#ffe14a!important;color:#ffe14a!important;font-weight:700;font-size:12px!important}
.boss-speech{background:#fff3d0!important;color:#b3161a!important;font-weight:700;font-size:14px!important;border:2px solid #b3161a!important}
@media(max-width:800px){#boss-banner{top:100px;font-size:11px;padding:8px 14px}}
@media(prefers-reduced-motion:reduce){#boss-banner{animation:none}}

/* Entry: nickname and seat. */
#entry-dialog{width:min(430px,calc(100vw - 30px))}#entry-dialog h2{margin:10px 0 20px}#entry-dialog label,.seat-pick>span{display:block;font-size:10px;color:#8c967c}
.seat-pick{margin:22px 0 4px}.seat-pick>span small{float:right;font:10px monospace;color:#9ba68b}
#seat-map{display:grid;gap:5px;margin:9px 0 8px}
#seat-map button{min-width:0;background:#e7e9dd;border:1px solid #d6ddc8;border-radius:8px;padding:7px 2px 6px;color:#58704f}
#seat-map button b{display:block;font:12px monospace}#seat-map button small{display:block;font-size:8px;margin-top:3px;color:#9ba68b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#seat-map button.selected{background:#637b5a;border-color:#637b5a;color:#f7f1dc}#seat-map button.selected small{color:#e3e6d6}
#seat-map .boss-row{margin-top:3px;padding:6px 4px;border-radius:8px;background:#4c5a50;color:#f3ecd6;font-size:9px;text-align:center;letter-spacing:.3px}
#seat-map button.taken{background:#dcd9cc;color:#a6ad97;cursor:not-allowed;filter:none}
#entry-note{font-size:10px;line-height:1.7;color:#94a086;margin:0 0 16px;min-height:17px}
.solid-button:disabled{opacity:.45;cursor:not-allowed;filter:none}
.link-button{border:0;background:none;padding:0;font-size:10px;color:#637b5a;text-decoration:underline}
.on-penalty #bread-btn{opacity:.4}
@media(max-width:800px){.dock button>span{font-size:19px}.dock button>small{font-size:8px}}

/* Phones: one calm arrangement. Status at the top, side buttons under it, a single row (chat · reactions) above the dock, chat closed until asked for. */
@media(max-width:600px){
.key-guide,#context-hint{display:none}
.bottom-wrap{bottom:calc(8px + env(safe-area-inset-bottom))}
.dock{gap:0;padding:5px 4px;border-radius:18px;justify-content:space-between}
.dock button{min-width:0!important;flex:1 1 0;padding:6px 1px!important}
.dock button>span{font-size:19px;height:24px;line-height:24px}.dock button[data-tool=fire]>span{font-size:22px}
.dock button>small{font-size:8px;margin-top:2px;letter-spacing:-.4px}
.dock-divider{display:none}
#toast{margin-bottom:54px}
#chat-toggle{left:12px;bottom:calc(76px + env(safe-area-inset-bottom));padding:9px 13px;font-size:11px}
#reactions{right:12px;bottom:calc(76px + env(safe-area-inset-bottom));flex-direction:row;gap:6px}
#reactions button{width:36px;height:36px;font-size:16px;border-radius:50%;padding:0}#reactions small{display:none}
.right-rail{top:104px;right:12px;transform:none;gap:6px}
.right-rail button{width:42px;height:44px;font-size:16px;border-radius:13px;padding:0}.right-rail small{font-size:8px;margin-top:1px;white-space:nowrap}
#vibe{top:104px;right:62px}
#boss-banner{top:104px;left:12px;right:62px;transform:none;white-space:normal;text-align:center;font-size:11px;padding:8px 12px;border-radius:16px}
#penalty-banner{top:104px;left:12px;right:62px;width:auto;transform:none}
#return-break{top:104px;left:12px;transform:none}
#chat-panel{left:12px;right:12px;width:auto;bottom:calc(122px + env(safe-area-inset-bottom))}
#chat-log{height:104px}.chat-footnote{display:none}.room-tools{margin-bottom:10px}
#chat-toggle.unread::after{content:' ●';color:#e6c498}
}
#work-dialog{width:min(640px,calc(100vw - 24px));max-width:none;padding:0;border:8px solid #161616;border-radius:16px;background:#fff;color:#111;overflow:hidden}
.work-bar{display:flex;align-items:center;gap:10px;padding:6px 6px 10px 8px;background:#161616;color:#e9e9e9;font-size:11px}
.work-bar b{flex:1;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.work-dots{font-size:7px;letter-spacing:2px;color:#777}
#work-dialog .close-modal{position:static;color:#e9e9e9;font-size:22px;line-height:1;padding:0 6px}
.work-page{padding:22px 26px 14px;max-height:calc(100dvh - 150px);overflow:auto}
.work-page h2{margin:0 0 16px;text-align:center;font-size:20px;letter-spacing:6px;color:#111}
.work-meta{border-top:2px solid #111;border-bottom:1px solid #111}
.work-meta p{display:flex;align-items:center;gap:12px;margin:0;padding:8px 2px;border-bottom:1px solid #d9d9d9;font-size:13px;color:#111}
.work-meta p:last-child{border-bottom:0}
.work-meta span{flex:none;width:52px;font-size:12px;color:#666}
.work-meta b{font-weight:500}
.work-meta input{flex:1;min-width:0;border:0;border-radius:4px;background:none;padding:3px 4px;margin:-3px -4px;font-size:16px;font-weight:600;color:#111}
.work-meta input:focus-visible{outline:0;background:#f0f0f0}
#work-text{display:block;width:100%;height:min(308px,36dvh);margin-top:14px;padding:0 2px;border:0;outline:0;resize:none;font:inherit;font-size:16px;line-height:28px;color:#111;background:repeating-linear-gradient(#fff 0 27px,#e2e2e2 27px 28px) local}
#work-text::placeholder,.work-meta input::placeholder{color:#a8a8a8;font-weight:400}
.work-foot{display:flex;align-items:center;gap:8px;padding:10px 14px;border-top:1px solid #111;font-size:11px;color:#666}
#work-count{flex:1}
.work-foot button{padding:9px 14px;border-radius:6px;font-size:12px;border:1px solid #111;background:#fff;color:#111}
#work-save{background:#111;color:#fff}
@media(max-width:600px){.work-page{padding:16px 16px 10px}#work-text{height:min(260px,30dvh)}.work-foot{padding:8px 10px}.work-foot button{padding:9px 11px}}
#update-btn{display:block;margin:0 auto 8px;padding:10px 18px;border:0;border-radius:30px;background:#f4dfb8;color:#3c5344;font-size:12px;box-shadow:0 5px 30px #182c3144}
#update-btn[hidden]{display:none}

/* The language choice on the entry card. Choosing the other one reloads the page in that language. */
.lang-pick{display:flex;gap:6px;margin:0 0 16px}.lang-pick button{border:1px solid #c9cfb8;background:none;color:#7c8a74;border-radius:999px;padding:6px 13px;font-size:11px;cursor:pointer}.lang-pick button[aria-pressed="true"]{background:#637b5a;border-color:#637b5a;color:#f7f1dc}
/* The first thing a newcomer sees: which language. */
#lang-gate{width:min(380px,calc(100vw - 30px));text-align:center;padding:34px 30px 30px}#lang-gate .flame{font-size:30px;line-height:1}#lang-gate h2{margin:10px 0 4px}#lang-gate p{margin:0 0 22px;font-size:12px;color:#8c967c}#lang-gate .choices{display:flex;gap:10px}#lang-gate .choices button{flex:1;border:1px solid #c9cfb8;background:#fbf9f0;color:#52654d;border-radius:11px;padding:18px 8px;font-size:16px;font-weight:700;cursor:pointer}#lang-gate .choices button:hover,#lang-gate .choices button:focus-visible{background:#637b5a;border-color:#637b5a;color:#f7f1dc;outline:none}
