:root{--paper:#f6f3ed;--ink:#302d29;--muted:#817b72;--line:#e2ddd4;--accent:#955047;--accent-dark:#783c35;--wood:#ac8260;--radius:14px;font-family:-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Noto Sans KR',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;color:inherit;background:none;touch-action:manipulation}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b07955;outline-offset:4px}button,a,input{-webkit-tap-highlight-color:transparent}h1,h2,h3,p{margin:0}h1{font-size:48px;letter-spacing:-2.8px;line-height:1.25;font-weight:650}h2{font-size:24px;letter-spacing:-1px}h3{font-size:17px}p{line-height:1.7}.accent{color:var(--accent)}.rail{position:fixed;inset:0 auto 0 0;width:116px;border-right:1px solid var(--line);background:#f0ece4;display:flex;align-items:center;flex-direction:column;padding:35px 10px 24px;z-index:5}.wordmark{font-size:28px;line-height:1.1;letter-spacing:-3px;font-weight:800;text-align:center}.wordmark>span{display:block}.wordmark i{display:block;font-style:normal;font-size:8px;letter-spacing:1.5px;margin:11px 0 0}.rail nav{display:grid;gap:16px;margin-top:70px;width:100%}.nav-item{display:flex;flex-direction:column;align-items:center;gap:8px;padding:13px 6px;color:#8b8377;font-size:12px;border-radius:12px}.nav-item b{font-size:28px;font-weight:400;line-height:1}.nav-item.active{color:var(--accent);background:#e9dfd3}.rail-bottom{margin-top:auto}.main{margin-left:0;min-height:100dvh}.topbar{height:92px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 48px}.crumb{font-size:13px;color:#655e55}.crumb>span{margin:0 15px;color:#b5ada1}.top-actions{display:flex;align-items:center;gap:20px}.mode-tag{font-size:11px;border:1px solid #d1c7b9;padding:5px 10px;border-radius:5px;color:#817263}.profile-chip{display:flex;align-items:center;gap:10px;font-size:13px}.profile-chip>span:last-child{margin-left:12px}.mini-avatar{width:30px;height:34px;overflow:hidden;background:#e6ded2;border-radius:50%;display:block}.mini-avatar svg{width:30px;height:44px}.eyebrow{color:var(--accent);font-size:12px;letter-spacing:1px;margin-bottom:17px}.lead{color:var(--muted);font-size:15px;margin-top:19px;line-height:1.85}.home-layout{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:1.15fr 1fr;gap:74px;padding:48px 56px 38px}.home-copy h1{font-size:46px}.home-picture{position:relative;margin-top:30px;border-radius:110px 110px 14px 14px;overflow:hidden;max-width:540px;background:#ddd2c1;aspect-ratio:1.25}.home-art{width:100%;height:100%;object-fit:cover;display:block}.picture-label{position:absolute;left:25px;bottom:22px;font-size:9px;letter-spacing:2px;color:#efe6d7}.avatar-name{position:absolute;right:24px;bottom:20px;font-size:11px;color:#eee4d3}.dresser{padding-top:6px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.section-title small{font-size:12px;color:var(--muted);display:block;margin-bottom:6px}.step{font-size:19px;color:var(--accent)}.step span{font-size:13px;color:#aaa194}.segmented{display:grid;grid-template-columns:1fr 1fr;background:#eae5dc;padding:4px;border-radius:9px;margin-bottom:22px}.segmented button{padding:11px;font-size:13px;border-radius:6px;color:#847a6e}.segmented button.selected{background:#fffdf8;color:var(--ink);box-shadow:0 2px 6px #43321e0a}.field{display:block;font-size:12px;color:#6e655a;margin-bottom:20px}.field input,.field select,.field textarea{display:block;width:100%;margin-top:9px;border:1px solid var(--line);border-radius:8px;background:#fbf9f5;padding:12px 14px;color:var(--ink);font-size:14px}.field input::placeholder{color:#a49a8f}.hair-options{display:flex;gap:12px;margin-top:10px}.hair-option{border:1px solid var(--line);background:#eeeadf;border-radius:10px;flex:1;height:101px;overflow:hidden;display:flex;align-items:center;flex-direction:column;position:relative}.hair-option svg{width:68px;height:90px;margin-top:8px}.hair-option>span{position:absolute;bottom:0;background:#f4f0e7ed;width:100%;font-size:11px;padding:5px}.hair-option.selected{border:1.5px solid var(--accent);background:#e9ddd0}.palette-row{display:flex;gap:30px;justify-content:space-between}.swatches{display:flex;gap:9px;margin-top:12px}.swatch{height:27px;width:27px;border-radius:50%;background:var(--swatch);border:3px solid var(--paper);outline:1px solid #d9cfc2}.swatch.selected{outline:2px solid var(--accent)}.option-row{display:flex;gap:8px;margin-top:10px}.option{border:1px solid var(--line);border-radius:6px;padding:9px 13px;font-size:12px}.option.selected{border-color:#b98b76;background:#eee0d5;color:var(--accent)}.primary,.secondary{border-radius:8px;padding:14px 20px;font-size:14px;font-weight:600;transition:background .2s,transform .2s}.primary{background:var(--accent);color:#fff9ee}.primary:hover{background:var(--accent-dark)}.primary:active{transform:translateY(1px)}.secondary{background:#e9e2d8;color:#56483b}.wide{width:100%;margin-top:6px}.wide>span{float:right}.fine{font-size:11px;color:#958a7c;text-align:center;margin-top:14px;line-height:1.7}.footer{margin:0 48px;padding:24px 0;display:flex;justify-content:space-between;border-top:1px solid var(--line);font-size:11px;color:#958a7d}.footer button{font-size:11px;color:#958a7d}.street{max-width:1280px;margin:auto;padding:46px 56px 55px}.street>h1{font-size:42px}.store-list{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:34px}.store-card{text-align:left;padding:0;overflow:hidden;border-radius:14px;background:#eee9df;transition:transform .2s}.store-card:hover{transform:translateY(-5px)}.store-art{height:220px;position:relative;background:#2c2a2a;overflow:hidden}.store-moon{position:absolute;right:30px;top:30px;width:22px;height:22px;border-radius:50%;background:#d7bd8b;box-shadow:0 0 40px #d7bd8b33}.building{position:absolute;left:12%;bottom:10px;width:76%;height:155px;background:#514038;border-top:5px solid #70594b;border-left:9px solid #3e322c;border-right:9px solid #3e322c}.store-sign{display:block;background:var(--store);color:#eadcc3;text-align:center;padding:11px;font-size:24px;letter-spacing:7px;font-weight:700}.store-sign small{font-size:9px;letter-spacing:1px;display:block;margin-top:6px}.store-front{display:flex;justify-content:center;gap:8px;padding:9px 9px 0}.store-window{width:30%;height:62px;background:repeating-linear-gradient(90deg,#8f5c37 0px,#8f5c37 12px,#5f3525 14px,#5f3525 18px);border:4px solid #2d2b28;box-shadow:0 0 22px #e4bb5b22}.store-door{height:73px;width:26%;background:#b08a53;border:5px solid #302b27;position:relative}.store-door i{position:absolute;right:3px;top:35px;width:3px;height:10px;background:#e4c897}.pavement{display:block;position:absolute;bottom:-6px;left:-14px;right:-14px;height:8px;background:#7d6a55}.store-info{padding:22px}.store-info small{font-size:9px;letter-spacing:1.5px;color:#948674}.store-info h2{font-size:23px;margin:8px 0}.store-info h2 span{float:right;font-size:20px;color:#987d62}.store-info p{font-size:13px;color:#847667}.occupancy{display:inline-block;margin-top:18px;font-size:11px;color:#766c5f}.street-note{margin-top:32px;padding-left:18px;border-left:2px solid #b69b7e}.street-note>span{font-size:15px}.street-note p{font-size:12px;margin-top:5px;color:var(--muted)}.text-button{font-size:12px;color:var(--accent);padding:12px 0;text-decoration:underline;text-underline-offset:4px}.bar-page{padding:32px 36px 30px;max-width:1650px;margin:auto}.bar-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.bar-heading h1{font-size:31px;letter-spacing:-1.5px}.bar-heading .eyebrow{font-size:10px;margin-bottom:8px}.bar-meta{display:flex;align-items:center;gap:7px;font-size:12px;color:#81776a}.live-dot{height:6px;width:6px;border-radius:50%;background:#7f9173}.subtle{margin-left:13px;font-size:11px;border:1px solid var(--line);padding:9px;border-radius:6px}.bar-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px}.room-frame{background:#292221;color:#ded1bc;border-radius:14px;overflow:hidden}.room-topline{display:flex;justify-content:space-between;padding:20px 23px 6px;gap:10px;font-size:12px}.room-topline small{font-size:8px;letter-spacing:2px;margin-left:8px;color:#947d66}.room-topline>span:last-child{font-size:10px;color:#b9a991}.room-stage{position:relative;width:100%;aspect-ratio:1000/650}.room-art{width:100%;height:100%;display:block}.seat{position:absolute;width:8%;height:15%;transform:translate(-50%,-50%);padding:0;display:flex;align-items:center;justify-content:center;border-radius:40%;z-index:2}.stool{position:absolute;width:67%;height:30%;border-radius:50%;background:#2e2724;border:3px solid #79614b;box-shadow:0 6px 0 #201d1b,0 13px 8px #0004;top:55%}.stool:after{content:'';position:absolute;top:85%;left:48%;height:30px;width:3px;background:#24201e;box-shadow:12px 0 #24201e,-12px 0 #24201e}.seat.near .stool{border-color:#bbac7c;box-shadow:0 6px 0 #201d1b,0 0 22px #d3b57844}.seat.mine .stool{border-color:#e7c589}.seat-plus{color:#d3b691;font-size:22px;position:absolute;top:48%;opacity:.6}.empty-label{position:absolute;top:86%;color:#bfac91;font-size:10px;white-space:nowrap;opacity:0}.seat:hover .empty-label,.seat:focus-visible .empty-label{opacity:1}.seat:hover .seat-plus{opacity:1}.seated-avatar{position:absolute;width:75%;height:120%;bottom:15%;pointer-events:none}.seated-avatar svg{width:100%;height:100%;filter:drop-shadow(0 3px 2px #0003)}.seat-name{position:absolute;bottom:-11%;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:10px;background:#1c1919ce;padding:4px 8px;border-radius:5px;color:#dbcdb9;pointer-events:none}.mine .seat-name{background:#ead9b9;color:#584531}.table-drink{position:absolute;width:36%;height:60%;right:-10%;top:0;pointer-events:none}.table-drink svg{width:100%;height:100%}.speech{position:absolute;bottom:135%;left:50%;transform:translateX(-50%);border-radius:11px 11px 11px 0;padding:9px 11px;font-size:12px;background:#fff6df;color:#463a30;box-shadow:0 3px 12px #0003;min-width:85px;max-width:180px;width:max-content;overflow-wrap:anywhere;z-index:10;pointer-events:none}.room-legend{padding:6px 22px 16px;display:flex;gap:12px;justify-content:space-between;color:#9c8d77;font-size:9px}.room-legend i{display:inline-block;border:1px solid #b9a977;border-radius:50%;height:7px;width:7px;margin-right:4px}.bar-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:15px 0}.bar-tools button{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid var(--line);border-radius:10px;padding:15px 12px;background:#f9f6f0;font-size:12px}.bar-tools button:hover{background:#eee6da}.tool-icon{font-size:28px;color:#987257}.bar-tools small{display:block;font-size:9px;color:#998b7a;margin-top:6px}.wallet{display:flex;align-items:center;gap:22px;font-size:11px;color:#918170;padding:9px 3px}.wallet b{font-variant-numeric:tabular-nums;color:#655244;font-size:14px;font-weight:500;margin-left:6px}.wallet button{margin-left:auto;font-size:10px;color:#9a8570}.chat-panel{background:#eeeadf;border:1px solid var(--line);border-radius:14px;display:flex;flex-direction:column;min-height:500px;max-height:700px;overflow:hidden}.chat-panel>header{padding:24px 20px 16px}.chat-panel h2{font-size:17px;letter-spacing:-.5px}.chat-panel h2 span{font-size:12px;color:#a58164;margin-left:5px}.chat-panel header p{font-size:10px;color:#92816f;margin-top:8px}.nearby-faces{display:flex;gap:10px;padding:0 20px 12px;border-bottom:1px solid #dfd6c9;min-height:70px}.nearby-faces button{padding:0;font-size:9px;display:flex;flex-direction:column;align-items:center}.nearby-faces svg{width:35px;height:45px}.nearby-faces p{font-size:11px;color:#9b8d7b;align-self:center}.chat-log{flex:1;min-height:180px;max-height:400px;overflow:auto;padding:20px 16px}.chat-empty{text-align:center;padding:20px 5px;color:#9d8b76}.chat-empty>span{font-family:Georgia,serif;font-size:65px;line-height:.8;color:#c9bca7}.chat-empty h3{font-size:14px;margin:10px 0}.chat-empty p{font-size:11px}.chat-empty small{display:block;font-size:10px;margin-top:22px;line-height:1.8;color:#aa9b87}.chat-message{margin-bottom:18px;overflow-wrap:anywhere}.chat-message>span{display:block;font-size:10px;color:#82725f;margin:0 3px 6px}.chat-message small{font-size:8px;color:#a79782;margin-left:5px}.chat-message p{display:inline-block;font-size:12px;padding:10px 12px;border-radius:0 12px 12px 12px;background:#fbf8f2;color:#584b3c}.chat-message.own{text-align:right}.chat-message.own p{background:#dfd0bc;border-radius:12px 0 12px 12px}.chat-panel form{padding:12px}.effect-toggle{display:flex;align-items:center;gap:4px;font-size:9px;color:#8e7c67;margin-bottom:9px}.effect-toggle input{accent-color:var(--accent);width:12px;height:12px}.chat-compose{display:flex;background:#fcfaf5;border:1px solid #ddd2c2;border-radius:9px;padding:5px}.chat-compose input{min-width:0;width:100%;border:0;background:transparent;padding:8px;font-size:12px;color:var(--ink)}.chat-compose button{background:var(--accent);border-radius:7px;color:#fff;width:34px;flex-shrink:0;font-size:20px}.tipsy{animation:sway 3s ease-in-out infinite alternate}@keyframes sway{from{rotate:-2deg}to{rotate:2deg}}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:100;background:#332d27;color:#fff4df;font-size:13px;padding:14px 22px;border-radius:10px;box-shadow:0 7px 30px #0002;transition:.2s;max-width:90vw;width:max-content}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #d7cbb9;border-radius:20px;background:var(--paper);color:var(--ink);padding:30px;width:min(640px,calc(100vw - 32px));max-height:85dvh;overflow:auto;box-shadow:0 20px 100px #0004}dialog::backdrop{background:#211c18aa;backdrop-filter:blur(3px)}.modal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:20px}.modal-heading h2{font-size:24px}.close{font-size:28px;color:#99856e;line-height:1;padding:4px 8px}.muted{font-size:13px;color:#8a7b69;line-height:1.8;margin-bottom:18px}.menu-items{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.drink-card{text-align:center;background:#ece6dc;padding:16px 10px;border-radius:12px}.drink-card>div{height:130px}.drink-card svg{height:100%;width:100%}.drink-card h3{font-size:14px;margin:12px 0 7px}.drink-card p{font-size:10px;color:#93816a;min-height:32px}.drink-card small{font-size:10px;display:block;margin:10px 0;color:#897155}.drink-card button{font-size:11px;width:100%;padding:12px 5px}.check{display:flex;gap:8px;font-size:12px;align-items:center;margin:15px 0}.check input{accent-color:var(--accent)}.actions{display:flex;gap:10px;margin-top:18px}.actions>*{flex:1}#auth-error{color:#a1443b;font-size:12px;margin-top:12px}.person-preview{width:100px;height:140px;margin:0 auto 15px}.person-preview svg{width:100%;height:100%}.game-option{display:flex;align-items:center;gap:15px;padding:20px 0;border-bottom:1px solid var(--line)}.game-option input{accent-color:var(--accent)}.game-option small{display:block;font-size:11px;color:#96836c;margin-top:5px}.game-option>span:last-child{margin-left:auto;font-size:11px;color:#97846e}.game-option b{font-size:14px}.game-question{font-size:24px;text-align:center;margin:30px 0}.choice-buttons{display:flex;gap:12px;margin-bottom:25px}.choice-buttons button{flex:1;padding:28px 12px}.game-result{font-size:30px;padding:35px 0;color:var(--accent);font-weight:600}.bell-cards{display:flex;gap:15px;justify-content:center;align-items:center;height:140px;color:#9d7b57}.bell-cards span{display:flex;align-items:center;justify-content:center;width:70px;height:100px;background:#e8d6b9;border-radius:12px;color:#875c40;font-size:38px}.bell-button{display:block;margin:15px auto;width:130px;height:70px;border-radius:50% 50% 15px 15px;background:#bf9858;box-shadow:0 7px 0 #8e6b3c;color:#fff8df;font-weight:600}.info-lines p{padding:18px 0;border-bottom:1px solid var(--line);font-size:13px}.info-lines span{display:block;font-size:11px;color:#99836a}.info-lines{margin-bottom:24px}.policy h3{margin:25px 0 10px;font-size:15px}.policy p{font-size:12px;color:#857763}.danger{color:#a54339}.primary.danger{background:#9e4238;color:white}blockquote{margin:30px 0;background:#e9dfd2;border-radius:12px;padding:24px;overflow-wrap:anywhere;font-size:20px}
@media(min-width:1500px){.home-layout{padding-top:65px}.home-picture{aspect-ratio:1.13}.bar-page{padding-top:44px}.chat-panel{max-height:780px}.chat-log{max-height:480px}}
@media(max-width:1150px){.rail{width:86px}.main{margin-left:0}.topbar{padding:0 30px;height:78px}.home-layout{gap:35px;padding:35px}.home-copy h1{font-size:36px}.palette-row{gap:15px}.swatches{gap:7px}.swatch{width:24px;height:24px}.bar-page{padding:25px}.bar-layout{grid-template-columns:minmax(0,1fr) 255px;gap:15px}.bar-tools{gap:7px}.bar-tools button{gap:6px;padding:12px 8px}.bar-tools small{font-size:8px}.room-topline{padding:15px 16px 5px}.room-topline>span:last-child{font-size:9px}.room-stage{min-width:600px}.room-scroll{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#78614e transparent}.seat-name{font-size:9px}.bar-meta{font-size:10px}.wallet{flex-wrap:wrap;gap:12px}.wallet button{margin-left:0}.street{padding:35px}.store-list{gap:16px}.store-info{padding:17px}.building{left:8%;width:84%}}
@media(max-width:850px){.home-layout{grid-template-columns:1fr 1fr;gap:24px;padding:30px 25px}.home-copy h1{font-size:32px}.home-picture{aspect-ratio:.78;margin-top:25px;border-radius:100px 100px 12px 12px}.home-art{width:130%;max-width:none;margin-left:-15%}.palette-row{flex-direction:column;gap:0}.hair-option{height:90px}.home-copy .lead{font-size:13px}.bar-layout{grid-template-columns:1fr}.chat-panel{min-height:350px;max-height:none}.chat-log{min-height:150px;max-height:220px}.bar-heading h1{font-size:28px}.nearby-faces{min-height:0}.room-stage{min-width:650px}.bar-tools small{font-size:10px}.bar-tools button{padding:14px}.store-list{grid-template-columns:1fr}.store-card{display:grid;grid-template-columns:42% 1fr}.store-art{height:210px}.store-info{padding:25px}.street>h1{font-size:36px}.room-scroll{overscroll-behavior-x:contain}}
@media(max-width:600px){.rail{inset:auto 0 0;width:100%;height:calc(65px + env(safe-area-inset-bottom));padding:5px 15px env(safe-area-inset-bottom);flex-direction:row;border-right:0;border-top:1px solid var(--line);background:#f6f3edf5;backdrop-filter:blur(10px)}.wordmark{display:none}.rail nav{display:flex;justify-content:space-around;flex:1;margin:0;gap:0}.nav-item{padding:6px 20px;gap:4px;font-size:10px}.nav-item b{font-size:24px}.rail-bottom{margin:0}.main{margin:0;padding-bottom:0}.topbar{height:calc(69px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 22px 0}.crumb{font-size:12px}.crumb>span{margin:0 9px}.top-actions{gap:12px}.profile-chip{font-size:11px;gap:5px}.profile-chip>span:last-child{display:none}.mode-tag{font-size:9px;padding:4px 7px}.home-layout{display:flex;flex-direction:column;padding:27px 24px;gap:30px}.home-copy h1{font-size:36px;letter-spacing:-2px}.home-copy .lead{font-size:13px;margin-top:14px}.eyebrow{font-size:10px;margin-bottom:12px}.home-picture{aspect-ratio:1.35;border-radius:80px 80px 12px 12px;max-width:100%;margin-top:22px}.home-art{width:100%;margin:0}.picture-label{font-size:8px;bottom:15px;left:17px}.avatar-name{font-size:9px;right:17px;bottom:15px}.dresser{padding:0}.section-title h2{font-size:23px}.section-title{margin-bottom:20px}.palette-row{flex-direction:row;gap:20px;justify-content:flex-start}.swatches{gap:9px}.swatch{width:26px;height:26px}.hair-option{height:105px}.field input,.field select,.field textarea,.chat-compose input{font-size:16px}.field{margin-bottom:22px}.footer{margin:0 24px;font-size:10px}.footer button{font-size:10px}.street{padding:28px 24px}.store-card{grid-template-columns:45% 1fr}.store-art{height:180px}.building{height:135px;bottom:12px}.store-sign{font-size:20px;padding:7px}.store-front{padding:7px 4px}.store-window{height:54px}.store-door{height:61px}.store-info{padding:20px 16px}.store-info h2{font-size:21px}.store-info p{font-size:11px}.occupancy{font-size:10px;margin-top:10px}.store-moon{right:15px;top:17px;width:16px;height:16px}.bar-page{padding:24px 16px}.bar-heading{gap:10px;margin-bottom:18px;align-items:flex-end}.bar-heading h1{font-size:27px}.bar-heading .eyebrow{font-size:9px}.bar-meta{font-size:0;gap:0}.bar-meta .live-dot{display:none}.subtle{font-size:10px;margin:0;padding:8px}.room-topline{padding:16px 14px 8px;flex-direction:column;gap:6px}.room-stage{min-width:710px}.room-legend{font-size:8px;padding:7px 12px 14px;gap:5px}.bar-tools button{flex-direction:column;align-items:flex-start;gap:7px;padding:12px;font-size:12px}.tool-icon{font-size:23px}.bar-tools small{font-size:8px;line-height:1.5}.wallet{padding:6px 4px 12px;gap:17px}.wallet button{font-size:9px;margin-left:auto}.chat-panel>header{padding:20px 18px 14px}.chat-log{max-height:280px}.chat-panel{min-height:380px}.chat-compose input{font-size:14px}.chat-compose button{height:40px;width:40px}.effect-toggle{font-size:10px}.nearby-faces button{font-size:10px}.chat-message p{font-size:13px}dialog{padding:24px 20px;border-radius:16px}.modal-heading h2{font-size:22px}.menu-items{grid-template-columns:1fr}.drink-card{display:grid;grid-template-columns:80px 1fr;text-align:left;column-gap:14px;align-items:center;padding:15px}.drink-card>div{grid-row:1/5;height:110px}.drink-card h3{margin:0}.drink-card p{min-height:0}.drink-card small{margin:4px 0}.drink-card button{margin-top:5px}.check{font-size:11px;align-items:flex-start}.actions{gap:8px}.actions button{font-size:12px;padding:13px 8px}#toast{bottom:90px;font-size:12px;padding:12px 16px}.primary.wide{padding:17px}.choice-buttons button{padding:25px 12px}.policy p{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.bar-left{min-width:0}.room-scroll{max-width:100%;overflow-x:auto}.room-legend button{font-size:10px;color:#d1b78f;padding:3px 0}.seat-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.seat-list button{background:#e9dfd1;border-radius:10px;padding:18px 10px;font-size:12px}.seat-list small{display:block;margin-top:6px;color:#8b7660}.seated-avatar{bottom:-8%}
@media(max-width:600px){.room-stage{min-width:0}.seat-name{font-size:7px;padding:3px 4px}.seat:not(.near):not(.mine) .seat-name{display:none}.speech{font-size:10px;padding:6px 8px;max-width:120px;min-width:65px}.stool{border-width:2px}.stool:after{height:16px;box-shadow:7px 0 #24201e,-7px 0 #24201e}.seat-plus{font-size:15px}.empty-label{font-size:7px}.room-legend>span:last-child{display:none}.room-legend button{font-size:10px}.room-stage.zoomed{min-width:710px}.room-topline{flex-direction:row;align-items:center}.room-topline small{display:none}.room-topline>span:last-child{max-width:155px;line-height:1.6;text-align:right}}
/* Third-person 3D lounge: persistent canvas, camera-follow controls and projected chat. */
#world-host{height:560px;position:relative;width:100%;overflow:hidden;isolation:isolate;background:#302621;touch-action:none}#world-host canvas{width:100%;height:100%;display:block;outline:none;touch-action:none}.world-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.world-person,.world-seat{position:absolute;top:0;left:0;pointer-events:auto;will-change:transform;padding:0}.world-person{display:flex;align-items:center;flex-direction:column;gap:8px;z-index:3}.world-name{color:#f0e0c2;font-size:10px;background:#211a17bb;padding:4px 9px;border-radius:5px;white-space:nowrap;box-shadow:0 2px 8px #0002}.is-me .world-name{background:#e8d4b0;color:#614935}.world-speech{padding:9px 12px;background:#fff5dd;color:#4a3b2d;font-size:12px;max-width:200px;overflow-wrap:anywhere;line-height:1.5;border-radius:12px 12px 12px 2px;box-shadow:0 4px 20px #0004;min-width:70px}.world-speech[hidden]{display:none}.world-seat{width:34px;height:34px;border:1px solid #e2c28b77;background:#34271ba6;border-radius:50%;color:#f5ddb2;font-size:22px;line-height:30px;z-index:2}.world-seat:hover{background:#a57a45;color:white}.world-seat[hidden]{display:none!important}.world-controls{position:absolute;inset:auto 20px 28px;display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none;z-index:5}.joystick{height:90px;width:90px;border:1px solid #dfc29855;border-radius:50%;background:#17151233;display:grid;place-items:center;touch-action:none;pointer-events:auto;box-shadow:inset 0 0 20px #0002}.joystick span{display:block;width:36px;height:36px;background:#e4ceaa66;border:1px solid #f6dfba99;border-radius:50%;box-shadow:0 3px 8px #0003;pointer-events:none}.world-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:250px}.world-actions button{pointer-events:auto;padding:9px 11px;color:#e9d6b4;font-size:10px;background:#261e19b8;border:1px solid #d4b18144;border-radius:6px}.world-actions button[hidden]{display:none}.world-hint{position:absolute;top:16px;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:.4px;color:#f1dfc5;background:#251c1799;padding:8px 12px;border-radius:6px;white-space:nowrap;pointer-events:none;z-index:4}.world-status{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);font-size:9px;color:#d7bd94;white-space:nowrap;pointer-events:none;z-index:5}.world-fallback,.world-loading{padding:30px;color:#d9c49e;font-size:13px}.room-topline{padding-bottom:13px}.room-legend{padding-top:13px}.control-note{font-size:9px;color:#bca483}.bar-layout{grid-template-columns:minmax(0,1fr) 280px}.chat-panel{max-height:790px}.chat-log{max-height:510px}
@media(min-width:1500px){#world-host{height:650px}}
@media(max-width:1150px){.bar-layout{grid-template-columns:minmax(0,1fr) 250px}#world-host{height:510px}}
@media(max-width:850px){.bar-layout{grid-template-columns:1fr}#world-host{height:540px}.chat-panel{max-height:600px}.chat-log{max-height:260px}}
@media(max-width:600px){#world-host{height:480px}.bar-page{padding:20px 12px}.world-controls{inset:auto 14px 32px}.joystick{width:82px;height:82px}.world-actions{max-width:170px;gap:5px}.world-actions button{font-size:9px;padding:9px}.world-hint{font-size:8px;padding:7px 10px;top:12px}.world-name{font-size:9px;padding:3px 7px}.world-speech{font-size:11px;max-width:145px;padding:8px 10px}.world-seat{width:36px;height:36px;font-size:23px}.world-status{bottom:12px;font-size:8px}.room-topline>span:last-child{font-size:8px}.control-note{display:none}}
.toy-picture{border-radius:120px 120px 18px 18px;aspect-ratio:1;overflow:hidden;background:#ebe5d9}.toy-picture .avatar-name{color:#92745c;font-size:12px;bottom:22px}.studio-hint{position:absolute;left:22px;bottom:22px;color:#9c8872;font-size:10px;pointer-events:none}#avatar-studio{height:100%;width:100%;touch-action:none}#avatar-studio canvas{display:block;width:100%;height:100%;touch-action:none}.studio-emotes{display:flex;justify-content:center;gap:9px;margin-top:15px}.studio-emotes button{font-size:11px;color:#8a6b54;padding:9px 15px;border:1px solid #dacebc;border-radius:18px}.studio-emotes button:hover{background:#e9dfd1}.wardrobe-tabs{display:flex;border-bottom:1px solid var(--line);margin:8px 0 20px}.wardrobe-tabs button{flex:1;padding:13px 2px;font-size:12px;color:#978878;border-bottom:2px solid transparent}.wardrobe-tabs button[aria-selected=true]{border-color:var(--accent);color:var(--accent);font-weight:600}.wardrobe-panel{min-height:248px}.style-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}.style-choice{text-align:left;border:1px solid var(--line);border-radius:9px;padding:15px 10px;font-size:11px;background:#f3eee5}.style-choice>span{float:right;color:#b49c80}.style-choice.selected{background:#eadbcb;border-color:#b99178;color:#874d42}.swatches.wrap{flex-wrap:wrap;gap:12px}.gesture-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.gesture-grid button{background:#e8dccb;border:1px solid #d3bfa3;border-radius:12px;padding:25px 10px;color:#775741;font-size:13px}.bar-tools{grid-template-columns:repeat(4,1fr)}.bar-tools button{padding:12px 8px;gap:7px}.bar-tools small{font-size:8px}
@media(max-width:1100px){.home-layout{gap:30px}.style-grid{grid-template-columns:repeat(2,1fr)}.wardrobe-panel{min-height:290px}.bar-tools .tool-icon{font-size:23px}.bar-tools button{flex-direction:column;align-items:flex-start}}
@media(max-width:600px){.toy-picture{aspect-ratio:1.05;border-radius:100px 100px 14px 14px}.home-copy h1{font-size:34px}.studio-hint{font-size:9px;bottom:17px;left:17px}.toy-picture .avatar-name{font-size:10px;bottom:17px;right:17px}.style-grid{grid-template-columns:repeat(3,1fr)}.style-choice{font-size:11px;padding:16px 9px}.wardrobe-panel{min-height:230px}.bar-tools{gap:7px}.bar-tools button{padding:12px 9px;font-size:11px}.bar-tools small{font-size:8px;line-height:1.6}.gesture-grid{grid-template-columns:repeat(2,1fr)}}
.wardrobe-tabs button.selected{border-bottom-color:var(--accent);color:var(--accent);font-weight:700}.wardrobe-panel .field{margin-top:24px}.studio-emotes{flex-wrap:wrap}.toy-picture{max-height:460px}.home-copy .lead{margin-bottom:20px}
.waiting-banner{display:flex;align-items:center;justify-content:space-between;padding:20px;background:#eadbcb;border:1px solid #b99178;border-radius:12px;margin:24px 0}
/* Full-window bar: scene behind compact controls. */
body.immersive{overflow:hidden;background:#302621}body.immersive .rail,body.immersive .topbar,body.immersive .footer{display:none}body.immersive .main{margin:0;min-height:100dvh}body.immersive .bar-page{padding:0}body.immersive .bar-layout{display:block;margin:0}body.immersive .room-frame{border:0;border-radius:0;padding:0}body.immersive .room-scroll{overflow:hidden}body.immersive #world-host{position:fixed;inset:0;width:100vw;height:100dvh}body.immersive .bar-heading{position:fixed;top:0;left:0;right:0;z-index:8;padding:18px 24px;margin:0;pointer-events:none;color:#f4e5ce;background:linear-gradient(#16110bb3,transparent);display:flex;align-items:center;justify-content:space-between;gap:12px}body.immersive .bar-heading h1{font-size:22px;letter-spacing:-1px}body.immersive .bar-heading .eyebrow{font-size:10px;color:#d1b99a;margin-bottom:6px}body.immersive .bar-meta{color:#e8d5b6;pointer-events:auto}body.immersive .subtle{color:#f2dfbf;border:1px solid #c8ab7666;background:#231a16bb;border-radius:8px;padding:9px 12px}body.immersive .room-legend{display:none}body.immersive .bar-tools{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:8;display:flex;gap:8px;margin:0}body.immersive .bar-tools button{background:#251d17dc;color:#f3dfbd;border:1px solid #c9ab7566;border-radius:12px;padding:12px 16px;white-space:nowrap;flex-direction:row}body.immersive .wallet{position:fixed;top:92px;left:24px;z-index:7;background:#211a16a8;color:#e8d1ad;border:0;border-radius:8px;padding:9px 12px;font-size:11px;gap:14px}body.immersive .wallet button{display:none}body.immersive .chat-panel{display:none;position:fixed;right:20px;top:90px;bottom:100px;width:310px;z-index:10;background:#f6f3edf5;border-radius:14px;max-height:none}body.immersive.chat-open .chat-panel{display:flex}body.immersive .world-hint{top:96px}body.immersive .world-controls{bottom:24px}body.immersive .world-status{bottom:6px}
@media(max-width:600px){body.immersive .bar-heading{padding:14px 12px;align-items:flex-start}body.immersive .bar-heading h1{font-size:18px}body.immersive .bar-meta{font-size:0;gap:6px}body.immersive .bar-meta button{font-size:12px}body.immersive .bar-meta .live-dot{display:none}body.immersive .wallet{left:12px;top:78px}body.immersive .world-hint{display:none}body.immersive .bar-tools{bottom:20px;gap:4px}body.immersive .bar-tools button{padding:10px 8px;font-size:11px}body.immersive .bar-tools .tool-icon{display:none}body.immersive .world-controls{bottom:76px}body.immersive .chat-panel{right:12px;left:12px;top:120px;bottom:130px;width:auto}}
.game-turn{text-align:center;margin:16px;font-weight:700}.gomoku-board{display:grid;grid-template-columns:repeat(9,1fr);aspect-ratio:1;background:#cda66e;border:8px solid #845c39;border-radius:8px;margin:18px auto;max-width:420px}.gomoku-board button{position:relative;display:grid;place-items:center;padding:0;border:1px solid #98794f;aspect-ratio:1}.gomoku-board button:disabled{opacity:1}.stone{width:76%;height:76%;border-radius:50%;box-shadow:1px 3px 4px #0004}.stone.black{background:#27282b}.stone.white{background:#f8f1de}.pirate-scene{text-align:center;padding:20px}.pirate-head{font-size:65px;transition:transform .6s}.pirate-scene.popped .pirate-head{animation:pirate-pop 1s ease-out forwards}.barrel{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;background:repeating-linear-gradient(90deg,#98643e 0 45px,#805132 46px 49px);border:12px solid #4c453e;border-radius:45px;padding:28px 20px;max-width:330px;margin:auto}.barrel button{border-radius:50%;background:#30221b;color:#f4dbac;aspect-ratio:1;font-size:20px}.barrel button:disabled{opacity:.7}.finger-scores{display:flex;justify-content:space-around;margin:25px 0}.finger-scores strong{display:block;font-size:24px;color:#a16a42;margin-top:12px}@keyframes pirate-pop{50%{transform:translateY(-70px) rotate(20deg)}100%{transform:translateY(-15px) rotate(-12deg)}}@media(prefers-reduced-motion:reduce){.pirate-scene.popped .pirate-head{animation:none;transform:translateY(-15px)}}
.pirate-head{position:relative;width:96px;height:105px;margin:10px auto -6px;z-index:1}.pirate-hat{position:absolute;top:0;left:0;width:96px;height:48px;background:#26252b;border-radius:45px 45px 8px 8px;color:#eee3d1;font-size:27px;z-index:2}.pirate-face{position:absolute;left:15px;top:33px;width:66px;height:65px;background:#e8b78c;border-radius:15px 15px 30px 30px;font-size:19px;border-bottom:12px solid #6a3f30}.pirate-face i{position:absolute;top:18px;left:10px;width:22px;height:17px;background:#24232a;border-radius:6px}.pirate-face b{position:absolute;top:14px;right:10px;font-size:15px}.pirate-face em{position:absolute;bottom:-2px;right:20px;font-size:24px;font-style:normal;color:#7b4634}
.studio-emotes{width:100%;max-width:540px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 0}.studio-emotes button{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 8px;font-size:14px;font-weight:600;border-radius:14px;text-align:center}.gesture-grid button{display:flex;align-items:center;justify-content:center;min-height:74px;font-size:16px;font-weight:600;text-align:center}#avatar-studio{position:relative}.studio-gesture-label,.world-gesture-label{background:#fff7e8;color:#754b3c;border:1px solid #dbc2a4;border-radius:15px;padding:10px 17px;font-size:14px;font-weight:600;white-space:nowrap;box-shadow:0 4px 14px #33200f18;pointer-events:none}.studio-gesture-label{position:absolute;top:8%;left:50%;transform:translateX(-50%);z-index:3}.studio-gesture-label[hidden],.world-gesture-label[hidden]{display:none}.world-gesture-label{font-size:13px;padding:9px 14px}.toy-picture .picture-label{color:#7d6d59;letter-spacing:0;font-size:11px}@media(max-width:600px){.studio-emotes{gap:8px}.studio-emotes button{font-size:13px;min-height:46px}.gesture-grid button{min-height:68px}}
.home-copy .toy-picture,.home-copy .studio-emotes{width:100%;max-width:460px}.home-copy .toy-picture{aspect-ratio:1;max-height:none}
.wordmark .brand-name{display:block;font-size:25px;letter-spacing:-1.5px;white-space:nowrap}.wordmark .brand-sub{display:block;font-size:13px;letter-spacing:3px;font-weight:500;margin-top:8px;padding-left:3px}.location-card{padding:22px;margin:24px 0;border:1px solid var(--line);border-radius:14px;background:#eee8dd}.location-card .primary{margin:14px 0}.location-card [role=status]{font-size:13px;color:var(--accent)}.store-card:disabled{cursor:not-allowed;opacity:.55}.wardrobe-panel .option-row{flex-wrap:wrap;gap:8px}.wardrobe-panel .swatches{flex-wrap:wrap}
.wardrobe-panel .option{min-height:46px;padding:12px 16px;transition:background .15s,box-shadow .15s,transform .15s;font-size:13px}.wardrobe-panel .option.selected{background:#935449;color:#fff8ed;border-color:#935449;box-shadow:0 4px 10px #74413724}.wardrobe-panel .option.selected::after{content:' ✓';margin-left:5px}.wardrobe-panel .swatch{width:38px;height:38px;transition:transform .15s,box-shadow .15s}.wardrobe-panel .swatch.selected{transform:scale(1.16);box-shadow:0 0 0 3px var(--paper),0 0 0 5px var(--accent)}.wardrobe-panel .option:hover{transform:translateY(-2px)}#avatar-studio.style-applied{box-shadow:inset 0 0 0 4px #b9875b55}.wardrobe-panel .option:active{transform:scale(.96)}@media(prefers-reduced-motion:reduce){.wardrobe-panel .option,.wardrobe-panel .swatch{transition:none}.wardrobe-panel .option:hover,.wardrobe-panel .option:active{transform:none}}
.character-apply{display:grid;gap:10px}.character-apply .fine{margin:0 0 8px;text-align:center}.segmented button.selected{background:#925347;color:#fff8ee;box-shadow:0 3px 10px #60362a25;font-weight:700}.character-apply .primary{min-height:54px;font-size:15px}

/* Minimal entrance; customization remains the first step for new visitors. */
.intro-page{min-height:100svh;width:100%;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 38%,#513026 0,#281b18 48%,#171211 100%);color:#f4e6d3;position:relative;padding:32px;box-sizing:border-box}
.intro-sign{text-align:center;width:min(320px,100%)}
.intro-sign h1{display:flex;flex-direction:column;gap:12px;margin:0 0 72px;font-size:clamp(56px,10vw,88px);line-height:1.05;letter-spacing:.06em;color:#f4e6d3}
.intro-sign h1 span:last-child{font-size:24px;letter-spacing:.25em}
.intro-actions .primary{background:#e9d5b8;color:#35241e;min-height:56px;border:0}
.intro-edit,.intro-policy{background:none;border:0;color:#d6c1ac;padding:16px;cursor:pointer}
.intro-actions p{font-size:13px;color:#edc4af;line-height:1.6}
.intro-policy{position:absolute;bottom:22px;font-size:12px}
.intro-preview{position:absolute;top:24px;right:24px;color:#bfa38e;font-size:12px}
#app:has(.intro-page){display:block}

.store-location-note{color:#8b7767;font-size:14px;margin:12px 0 28px;line-height:1.5}

.idle-warning{background:#8e4031;color:#fff3df;padding:10px 14px;border-radius:12px;font-size:13px}

.journey{position:fixed;inset:0;z-index:1000;background:#241d24;display:grid;place-items:center;overflow:hidden}.journey-scene{position:relative;width:min(850px,94vw);height:400px;background:radial-gradient(ellipse at 75% 70%,#674335,transparent 65%)}.journey-road{position:absolute;left:0;right:0;bottom:42px;height:24px;background:#6e5b50;border-top:3px solid #a38a70}.journey-house{position:absolute;left:5%;bottom:66px;width:120px;height:155px;background:#665b66;border-radius:8px 8px 0 0;border-top:35px solid #8a7880;text-align:center;color:#e8dcca;padding-top:12px}.journey-house i{display:block;width:36px;height:67px;background:#e8be7b;position:absolute;bottom:0;left:42px}.journey-shop{position:absolute;right:5%;bottom:66px;width:210px;height:190px;background:#694335;border-top:18px solid #3e302c;text-align:center;color:#f6dfad;padding-top:12px;box-shadow:0 0 60px #cb914025}.journey-shop strong{display:block;font-size:35px}.journey-shop span{font-size:14px}.journey-shop i{position:absolute;bottom:0;left:85px;width:45px;height:85px;background:#e8bd72;box-shadow:-65px 0 0 -8px #d2a86a,65px 0 0 -8px #d2a86a}.journey-walker{position:absolute;bottom:48px;left:8%;width:140px;height:210px;animation:walk-to-bar 3.2s linear forwards}.journey-skip{position:absolute;right:24px;bottom:24px;color:#e8dcca;background:transparent;border:1px solid #75645c;border-radius:24px;padding:12px 20px;cursor:pointer}@keyframes walk-to-bar{0%{left:8%;opacity:0}10%{opacity:1}85%{left:70%;opacity:1}100%{left:74%;opacity:0}}@media(max-width:600px){.journey-house{width:80px}.journey-house i{left:24px}.journey-shop{width:145px}.journey-shop i{left:53px;box-shadow:none}.journey-walker{transform:scale(.8);transform-origin:bottom center}}@media(prefers-reduced-motion:reduce){.journey-walker{animation:none;left:60%}}

.staff-offer{position:absolute;bottom:110px;left:50%;transform:translateX(-50%);z-index:20;background:#f3e8d7;color:#38251d;padding:16px 22px;border-radius:18px;box-shadow:0 8px 32px #0005;min-width:250px;text-align:center}.staff-offer p{margin:0 0 12px;font-weight:600}.staff-offer button{border:1px solid #aa8b70;background:transparent;color:#493125;border-radius:20px;padding:9px 18px;margin:0 4px;cursor:pointer}.staff-offer button:first-of-type{background:#80513f;color:white}

.pirate-scene{perspective:800px;min-height:340px}.barrel{transform:rotateX(10deg);box-shadow:inset 18px 0 25px #0005,inset -18px 0 25px #0005,0 18px 0 #493728,0 30px 30px #0003}.barrel button:not(:disabled):hover{transform:translateY(-4px);background:#745543}.inserted-sword{display:block;animation:sword-in .3s ease-out}.gomoku-board{transform:perspective(900px) rotateX(14deg);box-shadow:0 14px 0 #6d482c,0 24px 30px #0003;margin-bottom:35px}.stone.black{background:radial-gradient(circle at 30% 25%,#72717c,#18171d 65%)}.stone.white{background:radial-gradient(circle at 30% 25%,#fff,#d9cdbb 75%)}.new-stone{animation:stone-drop .35s ease-out}.bell-button{background:radial-gradient(ellipse at 35% 20%,#fff0a7,#bc8133 65%,#805123);box-shadow:0 9px 0 #69452d,0 15px 22px #0003;transition:transform .12s,box-shadow .12s}.bell-button:active{transform:translateY(7px);box-shadow:0 2px 0 #69452d}.bell-cards span{animation:card-deal .45s ease-out;box-shadow:3px 6px 0 #bc9a71}.game-result{animation:result-pop .5s ease-out;text-align:center}@keyframes stone-drop{from{transform:translateY(-65px) scale(1.2);opacity:0}70%{transform:translateY(3px) scale(.95)}to{transform:none;opacity:1}}@keyframes sword-in{from{transform:translateZ(50px) scale(1.8);opacity:0}to{transform:none;opacity:1}}@keyframes card-deal{from{transform:perspective(600px) rotateY(90deg) translateY(-20px)}to{transform:none}}@keyframes result-pop{from{transform:scale(.7);opacity:0}to{transform:scale(1);opacity:1}}@media(prefers-reduced-motion:reduce){.inserted-sword,.new-stone,.bell-cards span,.game-result{animation:none}}

/* Interactive 3D pirate stage: the twelve targets track the barrel in 3D. */
.pirate-modal{width:min(650px,calc(100vw - 24px));padding:24px}.pirate-modal .modal-heading{margin-bottom:12px}.pirate-modal .game-turn{margin:8px;font-size:20px}.pirate-stage{position:relative;width:100%;height:360px;overflow:hidden;border-radius:22px;background:#263c3b}.pirate-stage canvas{display:block;width:100%;height:100%}.pirate-slot{position:absolute;transform:translate(-50%,-50%);width:38px;height:38px;border-radius:50%;background:#fff4d9eb;color:#3c3328;border:2px solid #d7ab61;box-shadow:0 3px 6px #0005;font-size:13px;font-weight:700;transition:background .15s,opacity .15s}.pirate-slot:not(:disabled):hover{background:#ffe09b;box-shadow:0 0 0 5px #eec97840}.pirate-slot:disabled{opacity:.32}.pirate-slot.used{opacity:0;pointer-events:none}.pirate-score{display:flex;justify-content:space-between;padding:10px 5px;color:#786755;font-size:13px}.pirate-rule{text-align:center;font-size:13px;color:#89765f;margin:12px 0}.pirate-modal .game-result{padding:12px 0;font-size:25px}.pirate-modal>.primary,.pirate-modal>.secondary{margin:6px 8px 8px 0}.pirate-modal>.fine{font-size:11px;margin-top:10px}@media(max-width:500px){.pirate-modal{padding:18px 12px}.pirate-stage{height:320px}.pirate-slot{width:32px;height:32px;font-size:12px}}
/* A quiet room HUD: speech lives above people, with only a composer below. */
body.immersive .room-bottom{position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(560px,calc(100% - 32px));z-index:8;display:grid;gap:10px}
body.immersive .room-bottom .bar-tools{position:static;transform:none;display:flex;justify-content:center;gap:6px;flex-wrap:wrap}
body.immersive .room-bottom .bar-tools button{padding:10px 12px;font-size:12px;border-radius:9px}
.room-bottom #chat-form{padding:0;margin:0;border:0}.room-bottom .chat-compose{display:flex;align-items:center;background:#f7efdf;border:1px solid #dfc6a2;border-radius:14px;padding:5px 6px 5px 16px;box-shadow:0 5px 25px #170d0740;gap:8px}
.room-bottom .chat-compose input{border:0;outline:0;background:transparent;padding:8px 0;min-width:0;width:100%;color:#493c30;font-size:14px;height:36px}.room-bottom .chat-compose input::placeholder{color:#887765}.room-bottom .chat-compose button{width:36px;height:36px;border-radius:10px;flex-shrink:0;background:#98594a;color:#fff7e7;font-size:21px}
.room-bottom .chat-compose:focus-within{outline:2px solid #e0b978;outline-offset:3px}
body.immersive .world-controls{bottom:24px;max-width:none}.world-actions{max-width:220px}
.world-seat{font-size:12px;font-weight:600;width:30px;height:30px;line-height:28px;background:#31251ba6}.world-activity{font-size:9px;line-height:1;color:#ebd8ba;background:#2e241dc9;border:1px solid #ceb58438;border-radius:20px;padding:5px 8px;letter-spacing:.2px}.world-activity[hidden]{display:none}
.world-speech.new-message{animation:bubble-arrive .2s ease-out}.world-person{gap:5px}.world-speech{max-width:230px;max-height:190px;overflow:auto;white-space:pre-wrap}
@keyframes bubble-arrive{from{opacity:.3;translate:0 5px;scale:.94}to{opacity:1;translate:0 0;scale:1}}
.exit-actions{display:flex;gap:10px;margin-top:25px}.exit-actions button{flex:1}.seat-groups{display:grid;grid-template-columns:1fr 1fr;gap:18px}.seat-groups h3{font-size:14px;margin-bottom:10px}.seat-groups h3 small{font-size:11px;color:#8b7763;font-weight:400}.seat-group-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;background:#d1b38d;padding:9px;border-radius:10px}.seat-group-grid button{display:grid;gap:4px;background:#f6ecdc;border-radius:7px;padding:9px 4px}.seat-group-grid button:nth-child(3),.seat-group-grid button:nth-child(4){margin-top:10px}.seat-group-grid small{font-size:10px}.seat-group-grid b{font-size:15px}.seat-group-grid button:disabled{background:#c8b69d;opacity:.7}
@media(max-width:1100px){body.immersive .world-controls{bottom:145px}.world-actions{max-width:220px}}
@media(max-width:600px){body.immersive .room-bottom{width:calc(100% - 24px);bottom:max(12px,env(safe-area-inset-bottom))}body.immersive .room-bottom .bar-tools{gap:4px}body.immersive .room-bottom .bar-tools button{padding:10px 7px;font-size:10px}.room-bottom .chat-compose input{font-size:16px}.world-speech{max-width:170px;font-size:12px}.seat-groups{gap:12px}.world-activity{font-size:8px}.world-controls .joystick{width:64px;height:64px}body.immersive .world-controls{bottom:140px}}
@media(prefers-reduced-motion:reduce){.world-speech.new-message{animation:none}}
.arcade-stage{position:relative;border-radius:18px;overflow:hidden;background:#496f70}.arcade-canvas{height:380px}.arcade-canvas canvas{width:100%;height:100%;display:block}.arcade-hud{position:absolute;top:14px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#192c2ad9;color:#fff3d9;padding:8px 15px;border-radius:20px;font-variant-numeric:tabular-nums;font-size:13px;z-index:1}.arcade-feedback{position:absolute;top:57px;left:10px;right:10px;text-align:center;color:#fff4d7;text-shadow:0 2px 6px #1d242f;font-size:24px;font-weight:750;pointer-events:none}.arcade-tap{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);padding:14px 32px;min-width:150px;border:2px solid #ffe2a1;border-radius:14px;background:#eec374;color:#37332b;box-shadow:0 5px 0 #a67d45;font-weight:750;font-size:18px}.arcade-tap:active{translate:0 3px;box-shadow:0 2px 0 #a67d45}.arcade-tap:disabled{opacity:.65}.balance-meter{position:absolute;bottom:92px;width:65%;left:17.5%;height:15px;background:#291e38c9;border:1px solid #d6c0ae66;border-radius:12px}.balance-meter[hidden]{display:none}.balance-target{position:absolute;left:42%;width:16%;top:0;height:100%;background:#a6d2b8;border-radius:4px}.balance-needle{position:absolute;top:-5px;width:5px;height:23px;background:#fff4d0;border-radius:3px;transform:translateX(-50%)}.arcade-result-actions{display:flex;gap:8px;margin-top:12px}.arcade-result-actions button{flex:1}.now-playing{font-size:10px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.now-playing:empty{display:none}
@media(max-width:600px){.arcade-canvas{height:340px}.arcade-feedback{font-size:21px}.arcade-tap{font-size:16px}.now-playing{display:none}}
.game-guests{border:0;padding:0;margin:0 0 18px}.game-guests legend{font-size:12px;margin-bottom:10px;color:#857564}.game-guests label{display:inline-flex;align-items:center;gap:7px;background:#e9e2d7;padding:9px 12px;border-radius:9px;margin:0 7px 7px 0;font-size:13px}.game-guests input{accent-color:#955047}.game-lobby{margin-bottom:22px}.game-lobby>div{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid #ded4c5}.game-lobby small{color:#8e7861}.arcade-ranks{position:absolute;left:12px;top:53px;z-index:1;display:grid;gap:5px;max-width:145px;width:24%;pointer-events:none}.arcade-ranks>div{font-size:10px;color:#fff6df;text-shadow:0 1px 2px #253f3a}.arcade-ranks span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.arcade-ranks i{display:block;height:4px;background:#253b3c88;border-radius:4px;margin-top:3px;overflow:hidden}.arcade-ranks b{display:block;height:100%;background:#d1ddd2;transform-origin:left;transform:scaleX(0)}.arcade-ranks .my-rank b{background:#f2c76e}.arcade-ranks .my-rank span{color:#ffe3a1}.arcade-feedback{top:66px;left:28%;right:12px;font-size:23px}
/* Entry sign, compact sound control and approximate guest distance. */
.intro-page{background:radial-gradient(ellipse at 50% 34%,#5a3b28 0,transparent 55%),repeating-linear-gradient(0deg,#211a17 0 42px,#171310 42px 44px);isolation:isolate}
.intro-sign{width:min(540px,100%);position:relative}
.sign-board{position:relative;padding:50px 32px 42px;border:10px solid #382921;border-radius:6px;background:linear-gradient(135deg,#704432,#472b24);box-shadow:0 0 0 2px #87613d,inset 0 0 0 1px #b68a58,0 22px 60px #0009,0 -12px 70px #ffb85220}
.sign-board h1{margin:0;gap:18px;color:#ffedcc;text-shadow:0 2px 0 #8f6038,0 0 22px #ffa54460;letter-spacing:.13em}
.sign-board h1 span:last-child{font-size:clamp(23px,5vw,34px);letter-spacing:.2em}
.sign-screw{position:absolute;top:12px;width:7px;height:7px;border-radius:50%;background:#d5b079;box-shadow:0 1px 2px #000}
.sign-screw.left{left:12px}.sign-screw.right{right:12px}
.sign-lamp{margin:0 auto 30px;width:86px;height:23px;background:#2d2520;border-radius:50% 50% 12% 12%;border-bottom:4px solid #ffdb9a;box-shadow:0 22px 50px 8px #ffbc6040;position:relative}
.sign-lamp:before{content:'';position:absolute;bottom:25px;left:41px;height:70px;width:4px;background:#16100e}
.intro-actions{max-width:300px;margin:42px auto 0}
.sound-icon{display:grid;place-items:center;width:42px;height:42px;font-size:23px;border:1px solid #8f775540;border-radius:50%;background:#e3ba7420;flex-shrink:0}
.sound-icon[aria-pressed=true]{background:#e3ba743a;border-color:#cba967}
button.now-playing{border:0;background:none;padding:0;color:#d7c4a7;font-size:10px;max-width:190px;text-align:left;line-height:1.4;min-height:0}
.world-distance{display:block;width:max-content;max-width:140px;margin:0 auto 2px;padding:2px 5px;border-radius:4px;color:#f4d9a5;background:#241d19b8;font-size:9px;font-weight:500;line-height:1.3;white-space:nowrap}
.world-distance[hidden]{display:none}
.welcome-guide{list-style:none;padding:0;display:grid;gap:18px;margin:24px 0}
.welcome-guide li{display:grid;gap:5px}.welcome-guide b{font-size:16px}.welcome-guide span{font-size:13px;color:#84745f;line-height:1.6}
#modal:has(.welcome-guide){max-width:480px}#modal:has(.welcome-guide) h2{font-size:24px;line-height:1.45}
@media(max-width:600px){button.now-playing{max-width:94px;font-size:9px}.sign-board{padding:42px 20px}.bar-meta{gap:6px}.sound-icon{width:36px;height:36px}}
.crowd-preview-label{font-size:10px;color:#c9bda6;border:1px solid #8f775550;border-radius:4px;padding:3px 5px}
.world-name{white-space:nowrap;font-size:11px;max-width:230px}
.arcade-canvas{position:relative;overflow:hidden}.arcade-horse-label{position:absolute;left:0;top:0;padding:5px 9px;background:#263a35ed;border:2px solid var(--lane);color:#fff9e9;border-radius:10px;font-size:12px;font-weight:700;line-height:1.3;white-space:nowrap;pointer-events:none;box-shadow:0 3px 12px #0003}.arcade-horse-label.is-mine{background:#fbdf9a;color:#3e3529}.arcade-horse-label[hidden]{display:none}
.coming-game{border:1px dashed #c5b8a4;color:#988977;padding:14px;margin:10px 0 20px;background:transparent;border-radius:10px}
.jenga-canvas{height:clamp(280px,42vh,420px);overflow:hidden;border-radius:18px;background:#292329}.jenga-canvas canvas{display:block;width:100%;height:100%}.jenga-hud{text-align:center;padding:6px 0 14px;font-weight:700;font-size:19px}.jenga-controls{display:grid;gap:10px;margin-top:12px}.jenga-controls label{font-size:12px;display:flex;gap:10px;align-items:center}.jenga-controls select{padding:7px 12px;border:1px solid #c5b8a4;border-radius:8px;background:#f5f0e8;color:#594832}.jenga-picks{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.jenga-picks button{min-height:48px;border:1px solid #b89769;border-radius:10px;background:#e9d3b3;font-weight:600;color:#5a422b}.jenga-picks button:disabled{opacity:.42}

/* Keep the tap target below the track so it never covers a horse. */
.arcade-stage{padding-bottom:86px}.arcade-canvas{height:320px}.arcade-tap{touch-action:manipulation;user-select:none;-webkit-user-select:none;width:min(90%,360px);white-space:nowrap}@media(max-width:600px){.arcade-canvas{height:300px}}

/* Phone-first walking HUD. Keep the room clear; only nearby guests are labelled. */
.world-name>span{display:inline}.world-name>small{display:inline;font-size:inherit;line-height:inherit;color:#d3bfa0;margin-top:0}.world-name>small:not(:empty)::before{content:" · "}.is-me .world-name>small{color:#755c3e}
.world-person.mobile-hidden{display:none!important}
.world-controls .joystick{user-select:none;-webkit-user-select:none}
.world-controls .joystick:after{content:'이동';position:absolute;bottom:-20px;color:#deccad;font-size:10px;pointer-events:none}
.is-seated .joystick{opacity:.3}.is-seated .joystick:after{content:'착석 중'}
@media(max-width:600px){
 body.immersive{background:#282322}
 body.immersive #world-host{top:60px;bottom:174px;height:auto;width:100%;}
 body.immersive .bar-heading{padding:12px 16px;min-height:60px;align-items:center;background:#282322;gap:8px}
 body.immersive .bar-heading h1{font-size:17px;letter-spacing:-.7px;white-space:nowrap}
 body.immersive .bar-meta{gap:6px}body.immersive .bar-meta .sound-icon{width:44px;height:44px;font-size:22px}
 body.immersive .crowd-preview-label{font-size:8px;border:0;padding:0;max-width:26px;line-height:1.4;text-align:center}
 body.immersive .room-bottom{width:calc(100% - 24px);bottom:max(10px,env(safe-area-inset-bottom));gap:8px}
 body.immersive .room-bottom .bar-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
 body.immersive .room-bottom .bar-tools button{padding:0 2px;min-height:44px;font-size:12px;letter-spacing:-.4px;border-radius:10px;background:#35291f;color:#f4e1c1}
 body.immersive .room-bottom .bar-tools [data-action=leave]{color:#d9b2a0;border-color:#88664c}
 .room-bottom .chat-compose{border-radius:13px;padding:5px 5px 5px 13px;min-height:52px;gap:4px}
 .room-bottom .chat-compose input{font-size:16px;height:40px}
 .room-bottom .chat-compose button{min-width:44px;width:44px;height:40px}
 body.immersive .world-controls{position:fixed;left:18px;right:12px;bottom:calc(124px + env(safe-area-inset-bottom));align-items:flex-end;gap:16px;}
 .world-controls .joystick{position:relative;width:86px;height:86px;flex:0 0 86px;background:#30271dcc;border-color:#c6a57480}
 .world-controls .joystick span{width:38px;height:38px;background:#d9c29888}
 .world-controls .joystick:after{display:none}
 .world-actions{max-width:none}.world-actions button{min-height:44px;padding:10px 14px;font-size:12px;border-radius:12px;background:#30271ded}
 .world-name{font-size:11px;line-height:1.3;padding:5px 8px;border-radius:7px;background:#211a17ed;max-width:none}
 .world-name>small{font-size:inherit}.world-person{gap:3px;min-height:44px;min-width:44px;justify-content:flex-end}
 .world-speech{max-width:148px;font-size:12px;line-height:1.4;padding:8px 10px;max-height:90px}
 .world-gesture-label{font-size:12px;padding:6px 10px}
 .world-activity{font-size:9px;padding:3px 5px}.world-seat{width:44px;height:44px;line-height:42px;font-size:17px}
 .world-hint,.world-status{display:none}#modal{max-height:calc(100dvh - 24px);overflow:auto}
 .idle-warning{position:fixed;top:60px;right:12px;font-size:11px}
}
@media(max-width:600px){
 body.immersive .room-bottom .bar-tools button{display:flex;align-items:center;justify-content:center;text-align:center}
 body.immersive .crowd-preview-label{max-width:none;white-space:nowrap;font-size:8px}

 body.immersive .room-bottom{bottom:calc(max(10px,env(safe-area-inset-bottom)) + var(--keyboard-lift,0px))}
 body.immersive:has(#chat-input:focus) .world-controls{visibility:hidden}
}

@media(max-width:360px){.world-speech{max-width:124px;font-size:11px}.world-gesture-label{font-size:11px;padding:5px 8px}}

.world-actions [data-world^=zoom-]{font-size:24px;line-height:1;min-width:44px;min-height:44px;padding:7px;display:grid;place-items:center}
@media(max-width:600px){
 .world-actions{display:grid;grid-template-columns:44px 44px minmax(0,1fr);width:188px;gap:6px}
 .world-actions button[data-world=table]{font-size:11px;padding:6px;white-space:nowrap}
 body.immersive .world-controls{gap:10px}
}

.world-person.mobile-quiet .world-speech{display:none}

/* Conversation takes priority over small identity and activity captions. */
.world-name{font-size:10px;padding:3px 6px}
@media(max-width:600px){
 .world-name{font-size:9px;line-height:1.3;padding:3px 5px;border-radius:5px}
 .world-activity{font-size:7.5px;padding:2px 4px;line-height:1.2}
 .world-gesture-label{font-size:10px;padding:4px 7px}
 .world-person{gap:4px}
 .world-speech{position:absolute;bottom:calc(100% + 10px);left:50%;margin-left:-90px;width:180px;max-width:180px;min-width:0;font-size:14px;line-height:1.5;padding:10px 12px;max-height:140px;border-radius:13px;z-index:8;background:#fff8e9;color:#38291e;box-shadow:0 4px 16px #0005;text-align:left}
 .mobile-speaking{z-index:6}.mobile-speaking .world-gesture-label,.mobile-speaking .world-activity{display:none}
}

.speech-links{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;overflow:hidden}.speech-links line{stroke:#fff0ca;stroke-width:1.2;stroke-opacity:.6}.world-labels{z-index:2}
@media(max-width:600px){
 body.immersive #world-host{inset:0;width:100%;height:100dvh}
 body.immersive .bar-heading{background:linear-gradient(#20150ee0,transparent);padding-top:max(12px,env(safe-area-inset-top));pointer-events:none}
 body.immersive .room-bottom{padding:0;background:none}
 body.immersive .room-bottom .bar-tools button{background:#271d15d9;backdrop-filter:blur(10px);box-shadow:0 3px 12px #0003}
 .room-bottom .chat-compose{background:#fff5e8ed;backdrop-filter:blur(12px);box-shadow:0 4px 18px #0003}
 .world-actions button{background:#271d15d9;backdrop-filter:blur(8px)}
 .world-speech{width:min(170px,calc((100vw - 32px)/2));max-width:none;left:50%;margin-left:calc(min(170px,(100vw - 32px)/2) / -2);font-size:13px;line-height:1.5;max-height:130px;padding:9px 11px;overscroll-behavior:contain;touch-action:pan-y;cursor:default}
 .world-speech::before{content:attr(data-speaker);display:block;font-size:9px;line-height:1.3;font-weight:700;color:#98745c;margin-bottom:4px}
 .world-person.mobile-speaking .world-gesture-label,.world-person.mobile-speaking .world-activity{display:none}
 body.immersive:has(#chat-input:focus):not(.keyboard-open) #world-host{bottom:auto;height:100dvh}
}

.world-table-activity{position:absolute;left:0;top:0;pointer-events:none;z-index:2;white-space:nowrap;border-radius:20px;padding:3px 6px;font-size:9px;line-height:1.25;background:#241b16cf;color:#dcc9ab;border:1px solid #c7a97d44}.world-table-activity.is-playing{color:#dde5b7;border-color:#a4b57855}.world-table-activity[hidden]{display:none!important}
@media(max-width:600px){.world-table-activity{font-size:8px;padding:3px 5px}}

@media(max-width:600px){.chat-docked .world-speech{width:calc((100vw - 32px)/2);height:88px;max-height:88px;font-size:12px;line-height:1.45;box-sizing:border-box}.chat-docked .world-speech.new-message{animation:none}}

.restricted-page{max-width:520px;margin:15vh auto;padding:28px;text-align:center}.restricted-page .primary{display:inline-block;margin-top:20px}.intro-contact{color:inherit;font-size:12px;margin-top:18px}

@media(max-width:600px){.chat-docked .world-name,.chat-docked .world-activity,.chat-docked .world-gesture-label{visibility:hidden}.chat-docked .world-speech::before{white-space:nowrap;font-size:9px}}

.character-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:24px 0}.character-choice{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:8px 6px 12px;border:2px solid transparent;border-radius:16px;background:#ebe5d9;color:#43362e;overflow:hidden}.character-choice img{display:block;width:100%;aspect-ratio:180/210;object-fit:contain;border-radius:10px}.character-choice span{font-weight:700;font-size:14px}.character-choice small{font-size:11px;color:#856d5d}.character-choice.selected{border-color:#985c49;background:#f4e9db}.character-choice.selected small{color:#985c49}.character-picker .dresser{align-self:center}.character-picker h1{margin-bottom:20px}@media(max-width:700px){.character-picker .toy-picture{height:300px;min-height:0}.character-picker .dresser{padding-top:12px}.character-choices{margin:16px 0;gap:8px}.character-choice{padding:4px 4px 10px}.character-picker h1{font-size:28px;margin-bottom:12px}}

/* Mobile movement uses floor taps; leave room for the scene. */
@media(max-width:700px),(pointer:coarse){.world-controls .joystick{display:none}body.immersive .world-controls{justify-content:flex-end}.world-controls .world-actions{margin-left:auto}}

.region-categories{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 16px}.region-categories button{border:1px solid #dacebc;border-radius:20px;padding:10px 16px;font-size:13px;min-height:42px}.region-categories button.selected{background:#955047;border-color:#955047;color:#fff9ee}@media(max-width:600px){.region-categories{flex-wrap:nowrap;overflow-x:auto;padding:3px 3px 10px;scrollbar-width:thin}.region-categories button{flex:0 0 auto}}

/* Polling must not replay speech entrance animations. */
.world-speech.new-message{animation:none}

.location-recovery{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 20px}.location-help ol{padding-left:22px;margin:18px 0}.location-help li{margin:12px 0;line-height:1.7;font-size:14px}.location-help>a{display:block;text-align:center;font-size:12px;color:#955047;margin:18px 0}.location-help .fine{text-align:left}

/* A stable messenger for the four people seated together. */
.table-chat{background:#dce3e5f5;border:1px solid #ffffff66;border-radius:16px 16px 8px 8px;overflow:hidden;color:#342e29;box-shadow:0 4px 20px #0002}
.table-chat header{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid #0000000c;font-size:12px}.table-chat header span{font-size:11px;color:#655f58}
#chat-log{height:170px;max-height:24dvh;overflow-y:auto;padding:12px;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;display:flex;flex-direction:column;gap:10px}
.table-message{display:flex;flex-direction:column;align-items:flex-start;flex-shrink:0;gap:4px}.table-message.mine{align-items:flex-end}.table-sender{font-size:10px;color:#605b54}.table-message-body{max-width:85%;border-radius:3px 12px 12px 12px;padding:9px 11px;background:#fff;color:#302d28;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 1px 2px #0000000a}.mine .table-message-body{background:#ffe476;border-radius:12px 3px 12px 12px}.table-chat-empty{margin:auto;text-align:center;font-size:12px;color:#706d67}
.room-bottom #chat-form[hidden]{display:none}body.immersive:has(.table-chat) .world-controls{bottom:365px}body.immersive:has(.table-chat) .room-bottom{gap:6px}
@media(max-width:600px){body.immersive:has(.table-chat) .world-controls{bottom:calc(min(170px,24dvh) + 177px)}.table-message-body{font-size:14px}.table-chat header{padding:8px 12px}}

.world-person .world-gesture-label{display:none}
/* Camera controls stay above the scene, away from the conversation. */
body.immersive .world-controls .world-actions{position:fixed;top:calc(74px + env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));bottom:auto;margin:0;visibility:visible;display:flex;flex-wrap:nowrap;gap:6px;width:auto;max-width:none}
.world-actions button[data-world=table]{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 12px}
.drink-card button[data-order]{display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.2;min-height:44px;padding:10px 12px;margin:0}
@media(max-width:600px){.menu-items .drink-card{grid-template-columns:80px minmax(0,1fr);grid-template-rows:1fr 1fr;gap:6px 14px;min-height:126px;padding:14px}.menu-items .drink-card>div{grid-column:1;grid-row:1/3;height:98px;align-self:center}.menu-items .drink-card h3{grid-column:2;grid-row:1;align-self:end;margin:0;text-align:center;line-height:1.4}.menu-items .drink-card button[data-order]{grid-column:2;grid-row:2;align-self:start;width:100%}}

body.immersive .visitor-count{position:fixed;top:calc(55px + env(safe-area-inset-top));left:24px;z-index:8;color:#e2cdb4;font-size:10px;line-height:1.4;pointer-events:none;font-variant-numeric:tabular-nums;text-shadow:0 1px 3px #000}
@media(max-width:600px){body.immersive .visitor-count{left:12px;font-size:9px;top:calc(52px + env(safe-area-inset-top))}}

#chat-resize{height:24px;display:flex;align-items:center;justify-content:center;cursor:ns-resize;touch-action:none;user-select:none;-webkit-user-select:none;background:#e8edee;border-bottom:1px solid #00000008}#chat-resize span{width:40px;height:4px;border-radius:4px;background:#929c9e}#chat-resize:focus-visible{outline:2px solid #955047;outline-offset:-3px}#chat-log{height:clamp(80px,var(--table-chat-height,170px),min(420px,50dvh));max-height:none}.table-chat header{padding-top:6px;padding-bottom:6px}

.table-chat{background:rgb(220 227 229 / var(--chat-opacity,.95))}#chat-resize{background:rgb(232 237 238 / var(--chat-opacity,.95))}.table-message-body{background:rgb(255 255 255 / var(--chat-opacity,.95));color:#211c17;text-shadow:0 0 3px #ffffffaa}.mine .table-message-body{background:rgb(255 228 118 / var(--chat-opacity,.95))}.chat-opacity-control{display:flex;align-items:center;gap:6px;margin-left:auto;margin-right:10px;font-size:10px;white-space:nowrap}.chat-opacity-control input{width:72px;min-width:0;height:24px;padding:0;margin:0;accent-color:#955047;cursor:pointer;touch-action:pan-x}.table-chat header{gap:8px}.table-chat header strong{font-size:11px;white-space:nowrap}
/* Compact camera toolbar. */
body.immersive .world-controls .world-actions{gap:4px}
body.immersive .world-actions button[data-world^=zoom-]{width:32px;min-width:32px;height:32px;min-height:32px;padding:0;font-size:19px;border-radius:9px}
body.immersive .world-actions button[data-world=table]{height:32px;min-height:32px;padding:0 9px;font-size:10px;border-radius:9px}

/* All venue actions sit together beside the sound switch. */
body.immersive .bar-heading{flex-direction:column;align-items:stretch;gap:8px;padding-bottom:8px}body.immersive .bar-heading h1{margin:0}body.immersive .bar-heading .bar-meta{display:flex;align-items:center;justify-content:flex-end;gap:5px;font-size:11px}body.immersive .bar-heading .bar-tools{position:static;transform:none;display:flex;flex-wrap:nowrap;gap:4px;margin:0;pointer-events:auto}body.immersive .bar-heading .bar-tools button{display:flex;align-items:center;justify-content:center;height:32px;min-height:32px;padding:0 9px;font-size:10px;border-radius:8px}body.immersive .bar-heading .sound-icon{width:32px;height:32px;min-width:32px;min-height:32px;padding:0;font-size:18px}.bar-heading .now-playing{display:none}body.immersive .visitor-count{top:94px}body.immersive .world-controls .world-actions{top:114px}
@media(max-width:600px){body.immersive .bar-heading{padding:12px;gap:8px}body.immersive .bar-heading .bar-meta{justify-content:space-between;gap:4px}body.immersive .bar-heading .bar-tools{flex:1;justify-content:flex-end;gap:4px}body.immersive .bar-heading .bar-tools button{padding:0 8px;flex:1;font-size:10px}body.immersive .visitor-count{top:84px}body.immersive .world-controls .world-actions{top:104px}}
.bar-heading .now-playing{display:block;position:absolute;right:12px;top:16px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px!important;padding:0}.bar-heading .now-playing:empty{display:none}

body.immersive .bar-heading{flex-direction:row;align-items:center;gap:8px}body.immersive .bar-heading .bar-meta{flex:0;gap:6px}body.immersive .top-exit{height:32px;padding:0 10px;background:#251d17dc;border:1px solid #c9ab7566;border-radius:8px;color:#f3dfbd;font-size:10px!important;white-space:nowrap}.room-bottom .bar-tools button{flex:1}body.immersive .visitor-count{top:60px}body.immersive .world-controls .world-actions{top:82px}.bar-heading .now-playing{top:60px}
@media(max-width:600px){body.immersive .bar-heading{padding:12px;align-items:center}body.immersive .bar-heading h1{font-size:16px}body.immersive .visitor-count{top:52px}body.immersive .world-controls .world-actions{top:74px}.bar-heading .now-playing{top:52px}}

.world-person .world-gesture-label:not([hidden]){display:block;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);margin:0;padding:6px 10px;border-radius:12px;background:#fff2cf;color:#68432a;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap;box-shadow:0 2px 8px #0003;z-index:6}.world-person .world-gesture-label[hidden]{display:none}
/* Four balanced actions centered beneath the composer. */
body.immersive .room-bottom .bar-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:8px;align-items:center;justify-content:center;margin:0}
body.immersive .room-bottom .bar-tools button{display:flex;align-items:center;justify-content:center;width:100%;height:44px;min-height:44px;margin:0;padding:0 4px;text-align:center;line-height:1.2;font-size:12px;font-weight:600;border-radius:11px}
@media(max-width:600px){body.immersive .room-bottom .bar-tools{gap:6px}body.immersive .room-bottom .bar-tools button{font-size:11px;padding:0 3px}}

/* Quiet live badges and a vertical zoom pair under Exit. */
body.immersive .visitor-count{display:flex;flex-wrap:wrap;gap:5px;max-width:calc(100vw - 110px);text-shadow:none}.visitor-pill{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border-radius:999px;background:#241a14d9;border:1px solid #cba56b4d;box-shadow:0 2px 7px #0002;color:#ead7bc;white-space:nowrap;font-size:9px;line-height:1.2}.visitor-pill b{font-weight:600;color:#fff0d6}.visitor-pill i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#8bce9b;box-shadow:0 0 5px #8bce9b99;flex-shrink:0}.visitor-pill.today i{background:#e7be77;box-shadow:0 0 5px #e7be7788}
body.immersive .world-controls .world-actions{top:58px;right:24px;display:grid;grid-template-columns:auto 32px;grid-template-rows:32px 32px;gap:5px;align-items:start}body.immersive .world-actions [data-world=zoom-in]{grid-column:2;grid-row:1}body.immersive .world-actions [data-world=zoom-out]{grid-column:2;grid-row:2}body.immersive .world-actions button[data-world=table]{grid-column:1;grid-row:2}
@media(max-width:600px){body.immersive .world-controls .world-actions{top:52px;right:16px}.visitor-pill{font-size:9px;padding:5px 7px}}

body.immersive .world-actions button[data-world=table]{width:32px;min-width:32px;padding:0;display:grid;place-items:center}body.immersive .world-actions button[data-world=table] svg{display:block;pointer-events:none}
body.immersive .world-controls .world-actions{grid-template-columns:32px;grid-template-rows:repeat(3,32px)}body.immersive .world-actions [data-world=zoom-in]{grid-column:1;grid-row:1}body.immersive .world-actions [data-world=zoom-out]{grid-column:1;grid-row:2}body.immersive .world-actions button[data-world=table]{grid-column:1;grid-row:3}

/* Keep gaps around the persistent chat panel available for floor movement. */
.room-bottom{pointer-events:none}.room-bottom>.table-chat,.room-bottom>#chat-form,.room-bottom>.bar-tools{pointer-events:auto}
.field select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #ded7cd;border-radius:9px;background:#faf8f4;color:#342e29;font:inherit}

#connection-status{position:fixed;top:calc(env(safe-area-inset-top) + 12px);left:50%;transform:translateX(-50%);z-index:10000;padding:9px 15px;border-radius:24px;background:#32271fec;color:#fff4db;font-size:12px;pointer-events:none;white-space:nowrap}

body.immersive .room-bottom .bar-tools{grid-template-columns:repeat(5,minmax(0,1fr))}

/* Short feedback without moving the chat or the scene. */
.bar-tools button,.world-actions button,.chat-compose button{transition:background-color .15s ease,box-shadow .15s ease,transform .12s ease;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.bar-tools button:active,.world-actions button:active,.chat-compose button:active{transform:scale(.96)}
#modal[open]{animation:panel-in .18s ease-out}#modal::backdrop{animation:backdrop-in .18s ease-out}
@keyframes panel-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}@keyframes backdrop-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.bar-tools button,.world-actions button,.chat-compose button{transition:none}#modal[open],#modal::backdrop{animation:none}}

/* Keep the regional strip stable while counts refresh. */
.region-categories{max-width:100%;min-width:0;overscroll-behavior-x:contain;overflow-anchor:none}
.region-categories button{touch-action:pan-x pan-y;white-space:nowrap}
@media(max-width:600px){.region-categories{overflow-x:auto;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.street{min-width:0;max-width:100%}}
body.immersive .world-controls .joystick{display:grid;position:fixed;left:16px;bottom:calc(var(--room-bottom-height,52px) + max(24px,env(safe-area-inset-bottom)));width:84px;height:84px;flex:none;z-index:9;touch-action:none}
body.immersive .world-controls .joystick span{width:38px;height:38px}
body.immersive .world-controls .joystick:after{display:block;bottom:-16px}
#chat-form[hidden]{display:none!important}

#chat-typing{min-height:22px;padding:2px 12px 5px;font-size:11px;color:#62584c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:700px),(pointer:coarse){
 body.immersive.keyboard-open #world-host{top:var(--keyboard-top,0px);height:var(--keyboard-visible-height);bottom:auto}
 body.immersive.keyboard-open .room-bottom{gap:4px}
 body.immersive.keyboard-open #chat-log{height:clamp(44px,calc(var(--keyboard-visible-height,450px)*.16),78px);min-height:0}
 body.immersive.keyboard-open #chat-resize,body.immersive.keyboard-open .chat-opacity-control,body.immersive.keyboard-open .bar-tools,body.immersive.keyboard-open .world-controls{display:none}
 body.immersive.keyboard-open .table-chat header{padding:4px 10px}
 body.immersive.keyboard-open .table-message-body{padding:6px 9px;font-size:13px}
 body.immersive.keyboard-open .table-chat{border-radius:12px}
}

/* Compact character selection, with no live preview canvas. */
.home-layout.character-picker{display:flex;flex-direction:column;gap:0;width:100%;max-width:560px;padding:30px 24px 24px;margin:0 auto;box-sizing:border-box}
.character-picker .home-copy,.character-picker .dresser{width:100%;padding:0}
.character-picker .home-copy h1{font-size:28px;margin:0 0 20px;letter-spacing:-1px}
.character-picker .character-choices{margin:16px 0 22px}
.character-picker .character-choice img{max-height:150px}
.character-picker .field{margin-bottom:16px}
.character-picker .character-apply .fine:empty{display:none}
@media(max-width:600px){.home-layout.character-picker{padding:22px 20px}.character-picker .character-choice img{max-height:112px}.character-picker .character-choice span{font-size:12px}.character-picker .character-choice small{font-size:10px}}
/* Warm sign lighting: a slow flicker, followed by a steady glow. */
.sign-lamp:after{content:'';position:absolute;z-index:-1;pointer-events:none;top:20px;left:50%;width:420px;height:340px;transform:translateX(-50%);background:radial-gradient(ellipse at 50% 0,#ffc87555,transparent 70%);animation:sign-light-flicker 6.8s ease-in-out infinite}
.sign-lamp{animation:sign-lamp-flicker 6.8s ease-in-out infinite}
.sign-board h1{animation:sign-letter-flicker 6.8s ease-in-out infinite}
@keyframes sign-light-flicker{0%,14%,32%,100%{opacity:1}7%,23%{opacity:.18}45%,72%{opacity:.8}}
@keyframes sign-lamp-flicker{0%,14%,32%,100%{border-bottom-color:#ffdb9a;box-shadow:0 22px 50px 8px #ffbc6066}7%,23%{border-bottom-color:#88623f;box-shadow:0 12px 24px 2px #ffbc6012}45%,72%{border-bottom-color:#f1c486;box-shadow:0 22px 50px 8px #ffbc6040}}
@keyframes sign-letter-flicker{0%,14%,32%,100%{color:#ffedcc;text-shadow:0 2px 0 #8f6038,0 0 22px #ffa544aa}7%,23%{color:#b39a77;text-shadow:0 2px 0 #69472d,0 0 4px #ffa54422}45%,72%{color:#f6dfb8;text-shadow:0 2px 0 #8f6038,0 0 18px #ffa54470}}
@media(prefers-reduced-motion:reduce){.sign-lamp,.sign-lamp:after,.sign-board h1{animation:none}}

/* Anchor all keyboard UI to the visible viewport, including iOS automatic pan. */
@media(max-width:700px),(pointer:coarse){
 body.immersive.keyboard-open .room-bottom{top:calc(var(--keyboard-top,0px) + var(--keyboard-visible-height) - var(--room-bottom-height) - 8px);bottom:auto}
 body.immersive.keyboard-open .bar-heading{top:var(--keyboard-top,0px);padding:8px 12px}
 body.immersive.keyboard-open .visitor-count,body.immersive.keyboard-open .now-playing{display:none}
 body.immersive.keyboard-open .idle-warning{top:calc(var(--keyboard-top,0px) + 44px)}
}

@media(max-width:700px),(pointer:coarse){
 body.immersive.keyboard-open #chat-log{height:48px;padding:4px 8px;min-height:0}
 body.immersive.keyboard-open #chat-log:has(.table-chat-empty){height:24px;overflow:hidden}
 body.immersive.keyboard-open .table-chat-empty{margin:0;padding:2px 0;font-size:11px;line-height:20px}
 body.immersive.keyboard-open #chat-typing:empty{display:none}
 body.immersive.keyboard-open .table-message{margin-bottom:4px}
}

/* Table conversations float above each speaker; only the composer stays at the bottom. */
.world-labels>.world-speech{position:absolute;left:0;top:0;bottom:auto;display:block;width:min(180px,calc((100% - 28px)/2));max-width:none;max-height:88px;overflow:auto;margin:0;padding:9px 11px;border-radius:14px;background:#fff7e8;color:#49392f;box-shadow:0 3px 12px #0002;font-size:12px;line-height:1.5;pointer-events:auto;touch-action:pan-y;z-index:5;white-space:normal;overflow-wrap:anywhere;text-align:left}
.world-labels>.world-speech::before{content:attr(data-speaker);display:block;font-size:9px;font-weight:700;line-height:1.4;color:#98745c;margin-bottom:3px}
.world-labels>.world-speech[hidden]{display:none!important}
@media(max-width:700px),(pointer:coarse){body.keyboard-open .world-labels>.world-speech{max-height:62px;padding:6px 8px;font-size:11px}}

.has-table-speech .world-gesture-label{display:none!important}

.character-picker .field select{display:block;width:100%;margin-top:8px;padding:13px 14px;border:1px solid #ddd3c7;border-radius:10px;background:#faf7f1;color:#342d28;font:inherit;font-size:16px}

/* A single translucent floating toolbar, with compact icon labels. */
body.immersive .room-bottom .bar-tools{width:min(100%,340px);margin:0 auto;padding:4px 10px;gap:2px;border:1px solid #ffffff55;border-radius:999px;background:rgba(40,32,27,.58);backdrop-filter:blur(12px);box-shadow:0 5px 20px #0002;grid-template-columns:repeat(5,minmax(0,1fr))}
body.immersive .room-bottom .bar-tools button{display:flex;flex-direction:column;gap:3px;height:44px;min-height:44px;padding:3px 2px;border:0;border-radius:24px;background:transparent;box-shadow:none;backdrop-filter:none;color:#fff7eb;font-size:10px;font-weight:400;letter-spacing:0}
body.immersive .room-bottom .bar-tools button svg{width:18px;height:18px;flex-shrink:0}
body.immersive .room-bottom .bar-tools button:hover{background:#ffffff12}
body.immersive .room-bottom .bar-tools button:active{background:#ffffff22}
body.immersive.keyboard-open .room-bottom .bar-tools{display:none}

.staff-seat-guide{position:absolute;z-index:12;top:108px;left:18px;width:min(245px,calc(100% - 90px));padding:13px 15px;border:1px solid #ead6b455;border-radius:18px;background:#fff7e9ed;color:#382a20;box-shadow:0 6px 24px #0002;pointer-events:auto;backdrop-filter:blur(8px)}
.staff-seat-guide[hidden]{display:none}.staff-guide-name{font-size:10px;color:#98634c}.staff-seat-guide p{font-size:13px;margin:5px 0 10px;line-height:1.5}.staff-seat-guide>div{display:flex;gap:8px}.staff-seat-guide button{min-height:36px;padding:7px 11px;border-radius:10px;font-size:11px}.guide-accept{background:#955047;color:#fff}.guide-dismiss{background:#e9dfd2;color:#675747}
body.keyboard-open .staff-seat-guide{display:none}

/* Match the composer to the translucent toolbar while retaining mobile keyboard sizing. */
body.immersive .room-bottom .chat-compose{border:1px solid #ffffff55;border-radius:28px;background:rgba(40,32,27,.68);backdrop-filter:blur(12px);box-shadow:0 5px 20px #0002;padding:5px 6px 5px 16px;gap:8px}
body.immersive .room-bottom .chat-compose:focus-within{border-color:#f5dfb899;box-shadow:0 0 0 2px #f5dfb81a}
body.immersive .room-bottom .chat-compose input{background:transparent!important;color:#fff7eb;border:0!important;box-shadow:none!important;outline:none;min-height:42px;font-size:16px;padding:6px 0}
body.immersive .room-bottom .chat-compose input::placeholder{color:#e8d9c9b8}
body.immersive .room-bottom .chat-compose button{width:40px;height:40px;min-width:40px;border-radius:50%;border:1px solid #fff5e940;background:#fff5e917;color:#fff7eb;box-shadow:none;font-size:23px}
body.immersive .room-bottom .chat-compose button:hover{background:#fff5e929}

/* Align the message composer with the compact bottom toolbar. */
body.immersive .room-bottom{gap:4px}
body.immersive .room-bottom #chat-form{width:min(100%,340px);margin:0 auto}
body.immersive .room-bottom .chat-compose{height:54px;min-height:54px;width:100%;padding:5px 6px 5px 14px;border-radius:999px}
body.immersive .room-bottom .chat-compose input{min-width:0;height:42px;min-height:42px}
.seat-discovery-hint{position:absolute;z-index:11;bottom:calc(var(--room-bottom-height,54px) + 30px);left:50%;transform:translateX(-50%);max-width:calc(100% - 36px);width:max-content;margin:0;padding:10px 15px;border:1px solid #f4dfbe33;border-radius:20px;background:#2c221ad9;backdrop-filter:blur(8px);color:#f8e8cd;font-size:12px;line-height:1.5;text-align:center;pointer-events:none;animation:hint-appear .35s ease}
.seat-discovery-hint[hidden]{display:none}@keyframes hint-appear{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.seat-discovery-hint{animation:none}}

/* Wall cinema opens only on request; the 3D room keeps its existing camera. */
.projection-modal{width:min(760px,calc(100vw - 24px));max-width:760px;background:#29231e;color:#f6ecd9;border:1px solid #a18c6a;border-radius:22px}
.projection-modal h2,.projection-modal .close{color:#f6ecd9}.projection-modal a{color:#e6c38e}.projection-modal .fine{color:#d0bda4}
.projection-player{width:100%;aspect-ratio:16/9;min-height:200px;background:#111;border-radius:10px;overflow:hidden}
.projection-player iframe{width:100%;height:100%;border:0;display:block}
.projection-shortcut{font-size:23px}

.wall-video-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0;background:#282322}.world-webgl{position:relative;z-index:1}.wall-video-panel{background:#141312;pointer-events:none;backface-visibility:hidden}.wall-video-panel iframe{display:block;width:100%;height:100%;border:0;pointer-events:none}

.food-menu-icon{display:grid;place-items:center;font-size:52px;width:90px;height:90px;margin:auto}.ambient-guest{opacity:.8}
