.topbar nav{gap:12px;flex:none}
.header-balance{display:flex;align-items:center;gap:9px;min-height:34px;padding:3px 7px;border:1px solid #b6aa8b80;border-radius:999px;background:#151e1dcc;color:#f5eedf;white-space:nowrap}
.header-balance>svg{width:24px;height:24px;flex:none}
.header-balance>span{font-size:14px;font-weight:750;font-variant-numeric:tabular-nums;min-width:25px;text-align:center}
.header-balance button{display:grid;place-items:center;width:24px;height:24px;min-height:0;padding:0;border:0;border-radius:50%;background:#d6cbb8;color:#263331;font:700 22px/1 sans-serif;cursor:pointer;flex:none;clip-path:none}
.header-balance button:hover{background:#fff0ca}
.header-balance button:focus-visible{outline:2px solid #ffc928;outline-offset:3px}
.records-saved{margin:0 0 32px;padding:22px;border:1px solid #a18c5e55;border-radius:18px;background:linear-gradient(130deg,#b5944220,#191a1710)}
.records-section-heading{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.records-section-heading h2{margin:0;font-size:20px}
.records-section-heading>span{color:#edc86b;font-size:22px}
.records-section-heading small{display:grid;place-items:center;min-width:28px;height:26px;padding:0 7px;border-radius:999px;background:#d4af4920;color:#e5cf9c}
.records-saved .empty{grid-column:1/-1;margin:0;padding:28px 12px;text-align:center;line-height:1.8}
@media(max-width:700px){
  .topbar .bar-inner{flex-wrap:wrap;justify-content:center;gap:8px;padding-block:10px}
  .topbar .brand{margin-right:auto}
  .topbar nav{gap:6px;margin-left:auto}
  .header-balance{gap:5px;padding:3px 5px}
  .header-balance>svg{width:21px;height:21px}
  .header-balance>span{font-size:12px;min-width:18px}
  .header-balance button{width:22px;height:22px;font-size:20px}
  .records-saved{padding:16px;margin-bottom:24px}
}
@media(max-width:420px){.topbar .brand{margin-inline:auto}.topbar nav{width:100%;justify-content:center;margin:0}}

/* Shared shop artwork and an optically centered vector action. */
:root .header-balance{gap:8px;min-height:40px;padding:4px 5px 4px 9px;border-color:#a58c5666;background:linear-gradient(155deg,#29271f,#191b18);box-shadow:inset 0 1px #f8e7ba0b}
.header-currency-art{display:block;flex:none;object-fit:contain;filter:drop-shadow(0 1px 2px #0008)}
.header-currency-art.tokens{width:58px;height:28px}
.header-currency-art.coins{width:29px;height:29px}
:root .header-balance button{box-sizing:border-box;display:grid;place-items:center;width:30px;height:30px;min-width:30px;min-height:30px;padding:0!important;margin:0;border:1px solid #b9a26e66!important;border-radius:50%!important;clip-path:none;background:linear-gradient(145deg,#e9d6a6,#b99a5a);color:#33291b;box-shadow:inset 0 1px 0 #fff1c9aa,0 1px 3px #0005;line-height:0;transform:none;transition:background .15s,box-shadow .15s}
:root .header-balance button::before,:root .header-balance button::after{content:none!important;display:none!important}
:root .header-balance button svg{display:block;width:16px;height:16px;margin:0;flex:none;transform:none;pointer-events:none}
:root .header-balance button:hover{background:linear-gradient(145deg,#ffe7b5,#d5b46f);box-shadow:inset 0 1px #fff4d2,0 0 8px #d7b56b33}
:root .header-balance button:active{background:#c3a162}
.bottom-nav [data-tab="social"]{position:relative}
.social-notification-dot{position:absolute;top:7px;left:calc(50% + 9px);width:9px;height:9px;background:#ed554e;border:2px solid #211e15;border-radius:50%;box-shadow:0 0 0 1px #ed554e33;pointer-events:none}
.social-notification-dot[hidden]{display:none!important}
@media(max-width:700px){:root .header-balance{gap:6px;min-height:38px;padding:3px 4px 3px 7px}.header-currency-art.tokens{width:49px;height:24px}.header-currency-art.coins{width:26px;height:26px}:root .header-balance button{width:28px;height:28px;min-width:28px;min-height:28px}.header-balance>span{font-size:12px}}
@media(max-width:360px){:root .header-balance{gap:4px}.header-currency-art.tokens{width:44px}}

/* Low-profile currency counters: reserve the center for readable numbers. */
:root .header-balance{box-sizing:border-box;display:grid;grid-template-columns:26px minmax(0,1fr) 22px;gap:8px;width:156px;height:32px;min-height:32px;padding:3px 6px 3px 8px;background:#1d201b;border-color:#a58c5670;box-shadow:none}
:root .header-currency-art.tokens{width:26px;height:23px;object-fit:contain}
:root .header-currency-art.coins{width:25px;height:25px;object-fit:contain}
:root .header-balance>span{min-width:0;text-align:center;line-height:1;font-size:13px}
:root .header-balance button,:root .header-balance button:hover,:root .header-balance button:active{width:22px;height:22px;min-width:22px;min-height:22px;border:1px solid #d4c393!important;background:transparent!important;box-shadow:none!important;color:#e9d8ae}
:root .header-balance button svg{width:12px;height:12px}
:root .header-balance button:hover{border-color:#ffe6a9!important;color:#ffe6a9}
@media(max-width:700px){:root .header-balance{width:134px;height:30px;min-height:30px;grid-template-columns:24px minmax(0,1fr) 20px;gap:5px;padding:3px 5px 3px 6px}:root .header-balance>span{font-size:12px}:root .header-currency-art.tokens{width:24px;height:22px}:root .header-currency-art.coins{width:23px;height:23px}:root .header-balance button,:root .header-balance button:hover,:root .header-balance button:active{width:20px;height:20px;min-width:20px;min-height:20px}}
@media(max-width:360px){:root .header-balance{width:118px;gap:4px;grid-template-columns:22px minmax(0,1fr) 20px}:root .header-balance>span{font-size:11px}:root .header-currency-art.tokens{width:22px;height:21px}}

/* Keep the complete mobile header on one row, including the wordmark. */
@media(max-width:700px){
 :root .topbar .bar-inner{width:calc(100% - 24px);min-height:54px;flex-wrap:nowrap;justify-content:space-between;gap:6px;padding-block:8px}
 :root .topbar .brand{display:flex;align-items:center;gap:4px;flex:0 1 84px;min-width:0;margin:0;padding:0}
 :root .topbar .brand-mark{width:25px;height:29px;object-fit:contain;flex:none}
 :root .topbar .brand-name{display:flex;min-width:0}
 :root .topbar .brand-stack>span{font-size:8px!important;line-height:1.05}
 :root .topbar .brand-accent{font-size:7px!important}
 :root .topbar nav{display:flex;flex:none;width:auto;justify-content:flex-end;gap:4px;margin:0}
 :root .topbar .button.join-entry{width:28px;height:32px;min-height:32px;border:0!important;background:transparent}
 :root .topbar .button.join-entry .nav-drawing{width:23px;height:23px}
 :root .header-balance{width:104px;height:28px;min-height:28px;grid-template-columns:20px minmax(0,1fr) 18px;gap:3px;padding:3px 4px}
 :root .header-currency-art.tokens,:root .header-currency-art.coins{width:20px;height:20px}
 :root .header-balance>span{font-size:11px}
 :root .header-balance button,:root .header-balance button:hover,:root .header-balance button:active{width:18px;height:18px;min-width:18px;min-height:18px}
 :root .header-balance button svg{width:10px;height:10px}
}
@media(max-width:360px){
 :root .topbar .bar-inner{width:calc(100% - 16px);gap:4px}
 :root .topbar .brand{flex-basis:68px;gap:2px}
 :root .topbar .brand-mark{width:20px;height:25px}
 :root .topbar .brand-stack>span{font-size:7px!important}
 :root .topbar .brand-accent{font-size:6px!important}
 :root .topbar nav{gap:3px}
 :root .topbar .button.join-entry{width:25px}
 :root .header-balance{width:92px;grid-template-columns:18px minmax(0,1fr) 16px;gap:2px;padding:3px}
 :root .header-currency-art.tokens,:root .header-currency-art.coins{width:18px;height:19px}
 :root .header-balance>span{font-size:10px}
 :root .header-balance button,:root .header-balance button:hover,:root .header-balance button:active{width:16px;height:16px;min-width:16px;min-height:16px}
}
/* Use the shared frame system rather than the coupon's old inset border. */
:root .coupon-box.panel-card{width:100%;max-width:none;box-sizing:border-box;box-shadow:none;margin:0 0 24px;padding:24px}
:root .account-dashboard .coupon-box.panel-card{--fx-k:18px;--fx-c:#92773e;--fx-hi:#ffce47;--fx-lo:#66522d}

/* Explicit widths on desktop as well as mobile. */
:root .topbar .header-balance{width:116px;grid-template-columns:23px minmax(0,1fr) 20px;gap:4px;padding-inline:5px}
:root .topbar .header-currency-art.tokens,:root .topbar .header-currency-art.coins{width:23px;height:23px}
:root .topbar .header-balance button,:root .topbar .header-balance button:hover,:root .topbar .header-balance button:active{width:20px;height:20px;min-width:20px;min-height:20px}
@media(max-width:700px){:root .topbar .header-balance{width:88px;grid-template-columns:18px minmax(0,1fr) 16px;gap:2px;padding-inline:3px}:root .topbar .header-currency-art.tokens,:root .topbar .header-currency-art.coins{width:18px;height:19px}:root .topbar .header-balance>span{font-size:10px}:root .topbar .header-balance button,:root .topbar .header-balance button:hover,:root .topbar .header-balance button:active{width:16px;height:16px;min-width:16px;min-height:16px}}
@media(max-width:360px){:root .topbar .header-balance{width:82px}}
.checkout-retry[hidden]{display:none!important}
.account-dashboard .checkout-products>.account-product:last-child{margin-bottom:0}
:root .account-dashboard .coupon-box.panel-card{margin-top:24px;margin-bottom:24px}

/* A single desktop-derived image preserves the exact CHAT placement. */
:root .topbar .brand{display:block;width:167px;flex:0 0 167px;min-width:0;padding:0;margin:0;line-height:0}
:root .topbar .brand-lockup{display:block;width:100%;height:auto;max-width:none;object-fit:contain}
@media(max-width:700px){:root .topbar .brand{width:104px;flex-basis:104px}}
@media(max-width:360px){:root .topbar .brand{width:85px;flex-basis:85px}}

/* A focused story confirmation; products appear only when requested. */
:root .story-purchase-dialog{width:min(640px,calc(100vw - 32px))}
:root .story-purchase-dialog.story-confirm-view{width:min(520px,calc(100vw - 32px))}
.story-purchase-dialog .checkout-tabs[hidden]{display:none!important}
.story-purchase-dialog .checkout-heading{justify-content:flex-end;gap:12px;margin-bottom:26px}
.story-purchase-dialog .checkout-heading>h1.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.story-wallet-bar{display:flex;justify-content:flex-end;gap:7px;margin-left:auto}
.story-wallet-item{display:grid;grid-template-columns:23px minmax(30px,1fr) 20px;align-items:center;gap:5px;min-width:101px;height:30px;padding:2px 5px;border:1px solid #a58c5670;border-radius:999px;background:#1d201b;font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}
.story-wallet-item>img{width:23px;height:23px;object-fit:contain}.story-wallet-item>span{text-align:center}
:root .story-wallet-item>button{display:grid;place-items:center;width:20px;height:20px;padding:0!important;border:1px solid #d4c393!important;border-radius:50%;background:transparent!important;color:#e9d8ae;box-shadow:none;clip-path:none}
.story-wallet-item>button svg{width:12px;height:12px}.story-wallet-item>button::before,.story-wallet-item>button::after{content:none!important}
.checkout-story-simple{text-align:center;padding:0 8px 12px}.checkout-story-simple h2{font-size:clamp(22px,5vw,30px);line-height:1.35;margin:0 0 22px;word-break:keep-all}
.story-price{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:20px}.story-price img{width:38px;height:38px;object-fit:contain}.story-price strong{font-size:30px;color:#ffe3a1;font-variant-numeric:tabular-nums}
.story-purchase-note{font-size:13px;line-height:1.85;color:#c8bda7;max-width:390px;margin:0 auto 26px;word-break:keep-all}
.story-purchase-confirm{width:100%;min-height:48px}.story-purchase-back{border:0;background:none;color:#e9d8ae;padding:0 0 16px;cursor:pointer;font:inherit;font-size:13px}
.story-confirm-view .checkout-products:empty{display:none}.coin-shortfall{animation:coin-shortfall-pulse .75s ease-in-out 2}
@keyframes coin-shortfall-pulse{0%,100%{border-color:#e36c65;background:#432521;color:#fff}50%{border-color:#fff0ec;background:#793732;color:#fff}}
@media(prefers-reduced-motion:reduce){.coin-shortfall{animation:none;border-color:#ed7971;outline:1px solid #ed7971}}
@media(max-width:420px){.story-purchase-dialog .checkout-heading{gap:8px}.story-wallet-item{min-width:83px;grid-template-columns:20px minmax(24px,1fr) 18px;gap:3px;padding:2px 4px;font-size:11px}.story-wallet-item>img{width:20px;height:20px}:root .story-wallet-item>button{width:18px;height:18px}.story-purchase-dialog .checkout-heading>.button{font-size:12px;padding:7px 10px}.checkout-story-simple{padding-inline:0}}

.lobby-token-price{display:flex;align-items:center;justify-content:center;gap:9px;margin:24px 0 8px}.lobby-token-price>img{width:46px;height:39px;object-fit:contain}.lobby-token-price>strong{font-size:36px;font-weight:850;line-height:1.2;color:#ffe1a0;font-variant-numeric:tabular-nums}.lobby-token-price>span{font-size:14px;color:#c9bca1;align-self:flex-end;padding-bottom:4px}
.token-shop-link{display:block;margin:0 auto 22px;padding:3px 8px;border:0;background:none;color:#d6bc7d;font-size:12px;cursor:pointer}.token-covered-note{text-align:center;color:#bdd6ac;font-size:13px}
:root .token-help{position:relative;display:inline-block;margin:0;padding:0!important;border:0!important;box-shadow:none!important;background:none!important;clip-path:none!important;overflow:visible;--fx-w:0px;--fx-iw:0px}
:root .token-help::before,:root .token-help::after{content:none!important}
.token-help>summary{display:flex;align-items:center;gap:5px;list-style:none;cursor:pointer;color:#ddc483;line-height:1.2;font-size:12px}.token-help>summary::-webkit-details-marker{display:none}.token-help>summary>svg{display:block;width:14px;height:14px;flex:none}.token-help>summary:focus-visible{outline:2px solid #e6b675;outline-offset:4px;border-radius:50%}
.token-help-content{position:absolute;z-index:45;right:0;bottom:calc(100% + 10px);width:270px;max-width:calc(100vw - 74px);padding:14px 16px;border:1px solid #a58a50;border-radius:8px;background:#242018;color:#ded3bc;font-size:12px;line-height:1.85;box-shadow:0 7px 24px #0009;text-align:left;font-weight:400}.token-help-content p{margin:0 0 10px}.token-help-content .checkout-terms{margin:8px 0 0;font-size:11px}.token-help-content .token-usage{margin:0}.token-shop-help{margin-top:18px!important}.token-shop-help .token-help-content{left:0;right:auto}
.token-quote-simple{text-align:center;padding:0 5px 8px}.token-quote-simple h2{font-size:24px;margin:0 0 18px}.token-quote-simple .lobby-token-price{margin:12px 0 28px}.token-quote-total{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 18px;margin:0 0 12px;border:1px solid #aa8f5040;border-radius:12px;background:#c7a9580b}.token-quote-total>span{font-size:14px;color:#cfc2a8}.token-quote-total>strong{font-size:24px;color:#ffe1a0}.token-quote-credit{font-size:12px;color:#b4c9a9;margin:8px 0 16px}.token-quote-warning{font-size:13px;line-height:1.7;color:#f1b69e;margin:14px 0 20px}.token-quote-simple>.button{margin-top:12px;min-height:48px}
.token-quote-dialog .checkout-products:empty{display:none}.story-purchase-dialog .account-passes>header{margin-bottom:22px}.story-purchase-dialog .account-passes .account-pack-grid{gap:12px}.story-purchase-dialog .account-passes .account-pack{padding-top:24px}
@media(max-width:420px){.lobby-token-price>strong{font-size:32px}.token-help-content{width:232px;max-width:calc(100vw - 74px)}.token-quote-simple h2{font-size:21px}.story-purchase-dialog .account-passes>header h2{font-size:20px}}
.lobby-token-price{flex-wrap:wrap}.lobby-token-price>.token-help[open]{flex-basis:100%;margin-top:8px}.token-help[open]>.token-help-content{position:relative;inset:auto;box-sizing:border-box;width:100%;max-width:none;margin-top:10px}.token-shop-help[open]{display:block;width:100%}

/* Keep all token pack choices easy to scan on a phone. */
.story-purchase-dialog .account-passes>header{min-height:0;gap:12px;margin-bottom:14px}.story-purchase-dialog .account-passes>header>img{width:52px;height:44px}.story-purchase-dialog .account-passes>header h2{font-size:21px}.story-purchase-dialog .account-passes>header p{margin-block:4px}.story-purchase-dialog .account-passes>.account-product-note{margin:10px 0 14px;font-size:12px}.story-purchase-dialog .account-passes .account-pack{gap:6px;padding-top:23px!important}.story-purchase-dialog .account-passes .account-pack .ticket-art{width:58px;height:48px}.story-purchase-dialog .account-passes .account-pack h3{padding-bottom:10px;font-size:20px}.story-purchase-dialog .account-passes .account-pack-price{min-height:40px;font-size:15px}.story-purchase-dialog .account-passes .account-pack-bonus{padding:4px 7px;font-size:11px}

/* Room participants and invitation remain together above the stage navigation. */
.room-sticky{position:sticky;top:0;z-index:30;margin:0 -16px 22px;padding-top:env(safe-area-inset-top,0px);background:var(--page,#15130f);box-shadow:0 6px 14px #0003}
.room-sticky .g-steps{position:static;margin:0;padding-top:5px;padding-bottom:10px;width:100%;box-sizing:border-box}
.room-presence{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px 6px;min-width:0}
:root .room-people{position:relative;flex:none;margin:0;padding:0;border:0;background:none;clip-path:none;overflow:visible;box-shadow:none}
:root .room-people::before,:root .room-people::after{content:none}
.room-people>summary{display:flex;align-items:center;gap:7px;min-height:38px;padding:0;list-style:none;cursor:pointer}.room-people>summary::-webkit-details-marker{display:none}
.room-avatar-stack{display:flex;padding-left:0}.room-avatar-stack .room-avatar+.room-avatar{margin-left:-8px}
.room-avatar{position:relative;display:inline-grid;place-items:center;flex:none;width:34px;height:34px;border:2px solid #29251c;border-radius:50%;overflow:hidden;background:#514630;color:#ffe2a4;font-size:13px;font-weight:750}
.room-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.room-people-count,.room-people-more{font-size:12px;font-weight:700;color:#e1cc9e}.room-people-more{display:grid;place-items:center;min-width:30px;height:30px;border:1px solid #887343;border-radius:50%;background:#2a251b}
.room-people-list{position:absolute;top:calc(100% + 9px);left:0;z-index:50;width:220px;max-height:300px;overflow:auto;padding:10px;border:1px solid #8d7744;border-radius:12px;background:#211d16;box-shadow:0 10px 30px #0009}.room-people-list>div{display:flex;align-items:center;gap:10px;padding:6px;font-size:13px}.room-people-list>div>span:last-child{overflow-wrap:anywhere}.room-people-list small{color:#e6c16c}
.room-invite{display:flex;align-items:center;gap:12px;min-width:0}.room-invite>span{display:flex;align-items:center;gap:8px}.room-invite small{font-size:10px;color:#aaa08c}.room-invite strong{font:750 16px var(--mono,monospace);letter-spacing:1.4px;color:#f5d98c}.room-copy{display:flex;align-items:center;gap:6px;min-height:36px;padding:6px 9px;border:1px solid #6d5b38;border-radius:7px;background:#282218;color:#e7d5ad;font-size:11px;cursor:pointer}.room-copy svg{width:16px;height:16px;flex:none}.room-copy:hover{background:#44371f}.room-copy:focus-visible,.room-people>summary:focus-visible{outline:2px solid #ffd153;outline-offset:3px}
.create-room-button{display:flex;align-items:center;justify-content:center;gap:16px}.create-room-button [data-create-cost]:not(:empty){display:inline-flex;align-items:center;gap:5px;padding-left:14px;border-left:1px solid #7b540650}.create-room-button [data-create-cost] img{width:25px;height:25px;object-fit:contain}.create-room-button [data-create-cost] strong{font-size:17px;font-variant-numeric:tabular-nums}
@media(max-width:600px){.room-presence{gap:8px;padding:8px 16px 5px}.room-invite{gap:7px}.room-invite>span{flex-direction:column;align-items:flex-start;gap:1px}.room-invite strong{font-size:14px;letter-spacing:1px}.room-invite small{font-size:9px}.room-avatar{width:30px;height:30px}.room-people-list{max-width:calc(100vw - 48px)}.room-copy{gap:5px;padding:6px 8px;font-size:10px}}
@media(max-width:350px){.room-copy span{display:none}.room-invite{gap:5px}.room-presence{gap:6px}}

.att-history-pager{display:flex;align-items:center;justify-content:center;gap:16px;margin:15px 0}.att-history-pager>span{min-width:48px;text-align:center;color:#e7d29c;font-size:13px;font-variant-numeric:tabular-nums}.att-page-arrow{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #806a3e;border-radius:50%;background:#292319;color:#f5d88b;cursor:pointer}.att-page-arrow svg{width:20px;height:20px}.att-page-arrow:disabled{opacity:.3;cursor:default}.att-page-arrow:not(:disabled):hover{background:#48391e}.att-page-arrow:focus-visible{outline:2px solid #ffd153;outline-offset:3px}

#app .room-people{padding:0;border:0;background:none;clip-path:none;overflow:visible;box-shadow:none;border-radius:0}#app .room-people::before,#app .room-people::after{content:none}.attendance-panel,.att-head>div,.att-history{min-width:0;max-width:100%}.att-history-scroll{width:100%;max-width:100%;box-sizing:border-box}


.price-note .ownership-owned{color:#f4ce68;font-weight:800}.price-note .ownership-unowned{color:#d98d87;font-weight:800}
.ready-participants{width:100%;min-width:0;margin-top:16px}.ready-progress{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;color:#c5baa5;font-size:12px}.ready-progress>strong{color:#f4ce68;font-size:18px;font-variant-numeric:tabular-nums}.ready-progress>strong>span{font-size:12px;font-weight:500;color:#b4a78e}
.ready-people{display:flex;flex-wrap:wrap;justify-content:center;gap:16px 12px;list-style:none;margin:0;padding:0}.ready-person{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;width:76px;text-align:center}.ready-face{position:relative;display:block;width:44px;height:44px}.ready-face .room-avatar{width:44px;height:44px;border:2px solid #5b5345;font-size:16px;background:#353025;color:#bdb29e}.ready-person.is-ready .room-avatar{border-color:#e4bc59;box-shadow:0 0 0 3px #d6ad4220;color:#ffe2a4}.ready-person.is-waiting .room-avatar{filter:saturate(.35);opacity:.65}.ready-check{position:absolute;right:-3px;bottom:-2px;display:grid;place-items:center;width:17px;height:17px;border:2px solid #272219;border-radius:50%;background:#f0ca68;color:#2a2112}.ready-check svg{width:12px;height:12px}.ready-name{max-width:100%;font-size:12px;line-height:1.4;color:#d0c4af;overflow-wrap:anywhere}.ready-person.is-ready .ready-name{color:#f5dfad;font-weight:700}.ready-person>small{font-size:10px;color:#958c7b}.ready-person.is-ready>small{color:#d9b969}.room-avatar img[hidden]{display:none}
@media(max-width:420px){.ready-people{gap:14px 8px}.ready-person{width:64px}.ready-progress{margin-bottom:14px}.ready-box>.button{font-size:13px}}

.lobby-token-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px;padding:20px 24px;overflow:visible!important;clip-path:none!important}.lobby-token-panel .lobby-token-price{justify-content:flex-start;margin:0;gap:9px}.lobby-token-panel .lobby-token-price>strong{font-size:30px}.lobby-token-panel .lobby-token-price>img{width:40px;height:34px}.lobby-token-panel .lobby-token-price>span{font-size:12px}.lobby-token-panel .lobby-token-buy{flex:none;margin:0;min-height:42px;padding:10px 20px;font-size:13px;white-space:nowrap}.lobby-token-panel .token-help-content{left:0;right:auto;max-width:calc(100vw - 70px)}
@media(max-width:600px){.lobby-token-panel{padding:16px;gap:10px;margin-top:16px}.lobby-token-panel .lobby-token-price{gap:6px}.lobby-token-panel .lobby-token-price>img{width:32px;height:29px}.lobby-token-panel .lobby-token-price>strong{font-size:26px}.lobby-token-panel .lobby-token-price>span{font-size:11px}.lobby-token-panel .lobby-token-buy{padding:9px 12px;font-size:12px}.lobby-token-panel .token-help-content{left:-120px}}

.lobby-action-panel{align-items:center;gap:24px}.lobby-bottom-actions{display:flex;flex-direction:column;gap:10px;flex:1;max-width:660px}.lobby-bottom-actions>.button{margin:0}.lobby-bottom-actions>.link-button{align-self:center;margin-top:4px}.lobby-bottom-actions .token-covered-note{margin:0}.briefing-token-store{margin-top:24px}.briefing-token-store .checkout-context:empty{display:none}.briefing-token-store .checkout-products{margin:0}.briefing-token-store .account-passes{margin:0}.briefing-token-store .checkout-status:empty{display:none}@media(max-width:700px){.lobby-action-panel{flex-direction:column;align-items:stretch;gap:18px}.lobby-bottom-actions{width:100%;max-width:none}.lobby-action-panel .lobby-token-price{justify-content:center}.briefing-token-store{margin-top:20px}}

/* Centered briefing cost panel; keep every action below half of the panel width. */
:root .briefing-cost-panel{display:flex;flex-direction:column;align-items:center;gap:20px;padding:28px 24px;margin-top:24px;text-align:center}
:root .briefing-cost-panel .lobby-token-price{justify-content:center;width:100%;margin:0;gap:10px}
:root .briefing-cost-panel .lobby-token-price>strong{font-size:48px;line-height:1.1}
:root .briefing-cost-panel .lobby-token-price>img{width:44px;height:38px}
:root .briefing-cost-panel .lobby-bottom-actions{flex:none;align-items:center;width:100%;max-width:none;gap:10px}
:root .briefing-cost-panel .lobby-bottom-actions>.button{box-sizing:border-box;width:48%;max-width:360px;min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere;margin:0;padding:11px 14px}
:root .briefing-cost-panel .token-help-content{text-align:left}
:root .character-confirm-actions{justify-content:center;margin-top:24px;flex-direction:column;align-items:center;gap:12px}
:root .character-confirm-actions>.button{width:48%;max-width:360px;white-space:normal}
@media(max-width:600px){:root .briefing-cost-panel{padding:24px 14px;gap:18px}:root .briefing-cost-panel .lobby-token-price>strong{font-size:42px}:root .briefing-cost-panel .lobby-bottom-actions>.button{font-size:12px;padding:10px 8px}}

.dock.investigation-dock{width:min(960px,calc(100vw - 24px));display:grid;grid-template-columns:minmax(210px,.9fr) minmax(300px,1.1fr);grid-auto-flow:row;gap:12px 22px;padding:16px 20px 8px;background:#211e17f7;backdrop-filter:blur(16px);color:#ede0c7}
.dock-status{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0}.dock-actor{display:flex;flex-direction:column;gap:3px;min-width:0}.dock-actor small{font-size:10px;color:#b7a580}.dock-actor strong{font-size:17px;color:#f4d177;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dock-actor>span{font-size:11px;color:#c5bca7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dock-timer{text-align:right;flex:none}.dock-timer small{display:block;font-size:10px;color:#baad90}.dock-timer strong{font:750 23px var(--mono,monospace);letter-spacing:1px;color:#f1dca6}.dock-timer strong.urgent{color:#f0a19a}
.dock-advance{display:flex;flex-direction:column;gap:8px;min-width:0}.dock-advance>.button{width:100%;min-height:40px;margin:0;font-size:13px;padding:9px 12px}.dock-ready{display:flex;align-items:center;gap:8px;min-width:0}.dock-ready-faces{display:flex;gap:4px;min-width:0}.dock-ready-person{position:relative;display:block}.dock-ready-person .room-avatar{width:24px;height:24px;font-size:10px;border-color:#655b45;opacity:.55}.dock-ready-person.selected .room-avatar{opacity:1;border-color:#ebc65e}.dock-ready-person i{position:absolute;bottom:-2px;right:-3px;display:grid;place-items:center;width:11px;height:11px;border-radius:50%;font-size:8px;font-style:normal;background:#e7c15e;color:#211a0c}.dock-ready>span{white-space:nowrap;font-size:10px;color:#c6b78e}.dock-force{margin-left:auto!important;font-size:10px!important;padding:4px 0!important;white-space:nowrap}.dock-tools{grid-column:1/-1;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px;border-top:1px solid #a58b4538;padding-top:5px}.dock-tools .dock-btn{display:flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:6px 4px;font-size:12px}.dock-tools .dock-btn svg{width:19px;height:19px}.dock-tools .dock-btn b{position:static;min-width:16px;font-size:10px}.in-game .sheet-body{padding-bottom:24px}.in-game .phase-investigation{padding-bottom:calc(var(--dock-h) + 36px)}
@media(max-width:700px){.dock.investigation-dock{width:calc(100vw - 16px);grid-template-columns:minmax(0,1fr);gap:10px;padding:12px 14px 7px}.dock-status{gap:10px}.dock-actor strong{font-size:15px}.dock-actor>span{font-size:10px}.dock-timer strong{font-size:22px}.dock-advance>.button{min-height:38px;font-size:12px}.dock-ready{gap:6px}.dock-ready-faces{gap:3px}.dock-ready-person .room-avatar{width:22px;height:22px}.dock-force{font-size:9px!important}.dock-tools{gap:2px;padding-top:4px}.dock-tools .dock-btn{gap:4px;font-size:10px;min-height:34px}.dock-tools .dock-btn svg{width:17px;height:17px}.in-game .sheet{top:10px;bottom:calc(var(--dock-h) + 94px + env(safe-area-inset-bottom,0px))}}
@media(max-width:360px){.dock-ready-person .room-avatar{width:19px;height:19px}.dock-ready-faces{gap:2px}.dock-ready{gap:5px}.dock-force{font-size:8px!important}.dock-tools .dock-btn{font-size:9px;gap:3px}.dock-tools .dock-btn svg{width:15px;height:15px}}
.in-game .sheet{bottom:calc(var(--dock-h) + 94px + env(safe-area-inset-bottom,0px))}

.dock-timer[hidden]{display:none!important}.dock-advance>.button{white-space:nowrap}.dock-actor>span{display:none}.dock-timer strong{font-size:20px;letter-spacing:.5px}

/* Compact investigation controls retain their order at every viewport width. */
.dock.investigation-dock{box-sizing:border-box;width:min(510px,calc(100vw - 16px));display:grid;grid-template-columns:minmax(70px,.9fr) minmax(0,2.1fr) minmax(124px,1.35fr);grid-template-rows:auto;gap:0 clamp(4px,1.5vw,14px);padding:10px clamp(8px,2vw,14px);align-items:center}
.investigation-dock .dock-status{grid-column:1;grid-row:1;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-height:0}
.investigation-dock .dock-actor{max-width:100%;gap:3px}.investigation-dock .dock-actor strong{font-size:14px}.investigation-dock .dock-actor small{font-size:9px;white-space:nowrap}
.investigation-dock .dock-timer{text-align:left}.investigation-dock .dock-timer small{font-size:8px}.investigation-dock .dock-timer strong{font-size:16px}
.investigation-dock .dock-tools{grid-column:2;grid-row:1;min-width:0;border:0;padding:0;gap:clamp(0px,1vw,6px)}
.investigation-dock .dock-tools .dock-btn{position:relative;min-width:0;flex-direction:column;gap:4px;padding:4px 0;min-height:42px;font-size:10px;white-space:nowrap}.investigation-dock .dock-tools .dock-btn svg{width:18px;height:18px;flex-shrink:0}
.investigation-dock .dock-tools .dock-btn b{position:absolute;top:0;left:calc(50% + 5px);font-size:8px;min-width:12px}
.investigation-dock .dock-advance{grid-column:3;grid-row:1;gap:5px}.investigation-dock .dock-advance>.button{align-self:stretch;width:100%;min-width:0;min-height:32px;padding:6px 8px;font-size:12px}
.investigation-dock .dock-ready{justify-content:flex-end;flex-wrap:wrap;gap:3px 5px}.investigation-dock .dock-ready-faces{gap:0;padding-left:5px}.investigation-dock .dock-ready-person+.dock-ready-person{margin-left:-6px}.investigation-dock .dock-ready-person .room-avatar{width:18px;height:18px;font-size:8px}.investigation-dock .dock-ready-person i{width:8px;height:8px;font-size:6px}.investigation-dock .dock-ready>span{font-size:9px}.investigation-dock .dock-force{margin-left:0!important;font-size:9px!important}
@media(max-width:420px){.dock.investigation-dock{grid-template-columns:minmax(54px,.8fr) minmax(0,1.8fr) minmax(104px,1.25fr);gap:0 5px;padding:8px}.investigation-dock .dock-actor strong{font-size:12px}.investigation-dock .dock-actor small{font-size:8px}.investigation-dock .dock-timer small{font-size:7px}.investigation-dock .dock-timer strong{font-size:14px}.investigation-dock .dock-tools .dock-btn{font-size:9px;gap:3px}.investigation-dock .dock-tools .dock-btn svg{width:16px;height:16px}.investigation-dock .dock-advance>.button{font-size:10px;padding:6px 4px;min-height:30px}.investigation-dock .dock-ready>span,.investigation-dock .dock-force{font-size:8px!important}.investigation-dock .dock-ready-person .room-avatar{width:16px;height:16px}}
@media(max-width:350px){.dock.investigation-dock{grid-template-columns:minmax(48px,.7fr) minmax(0,1.8fr) minmax(91px,1.2fr);gap:0 3px;padding:7px}.investigation-dock .dock-tools .dock-btn{font-size:8px}.investigation-dock .dock-tools .dock-btn svg{width:14px;height:14px}.investigation-dock .dock-advance>.button{font-size:9px}.investigation-dock .dock-actor strong{font-size:11px}}

/* Wallet stays above a modal backdrop and currency changes float upward. */
:root .dialog-header-wallet{position:fixed;inset:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) auto auto;margin:0;padding:0;border:0;background:transparent;color:inherit;overflow:visible;display:flex;gap:12px;width:max-content;max-width:calc(100vw - 24px);box-shadow:none;clip-path:none}
:root .dialog-header-wallet:not(:popover-open){display:none}
:root .wallet-delta{position:fixed;inset:auto;margin:0;border:0;padding:0;background:transparent;overflow:visible;pointer-events:none;z-index:2147483647;font:800 21px/1.2 system-ui;text-shadow:0 2px 3px #000,0 0 8px #000;animation:wallet-delta-rise 1.65s ease-out forwards;clip-path:none;box-shadow:none}
:root .wallet-gain{color:#b5f5a4}:root .wallet-spend{color:#ffb7a2}
@keyframes wallet-delta-rise{0%{opacity:0;transform:translate(-50%,8px) scale(.9)}15%{opacity:1;transform:translate(-50%,0) scale(1.06)}65%{opacity:1}100%{opacity:0;transform:translate(-50%,-40px) scale(1)}}
@media(prefers-reduced-motion:reduce){:root .wallet-delta{animation:wallet-delta-fade 1.5s ease-out forwards}@keyframes wallet-delta-fade{0%,75%{opacity:1;transform:translateX(-50%)}100%{opacity:0;transform:translateX(-50%)}}}
@media(max-width:600px){:root .dialog-header-wallet{gap:8px}:root .dialog-header-wallet .header-balance{width:112px}}

/* Place clue counts sit beside the location name, away from the illustration. */
:root .tile .tile-head{flex:none;gap:5px;align-items:center;min-width:0}
:root .tile .tile-head>b{flex:1;min-width:0}
:root .tile .tile-clue-count{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;margin-left:auto;padding:3px 7px;border:1px solid #e7c56680;border-radius:6px;background:#171b20e8;color:#ffe8a6;font:750 11px/1.2 system-ui;white-space:nowrap;font-variant-numeric:tabular-nums;box-shadow:inset 0 1px #fff1}
:root .tile-clue-count small{font-size:9px;color:#c0bcae}
/* Center the action vertically, with participant portraits directly above it. */
:root .dock.investigation-dock{min-height:84px}
:root .investigation-dock .dock-advance{position:relative;align-self:stretch;justify-content:center;gap:0}
:root .investigation-dock .dock-advance>.button{min-height:34px;white-space:normal;line-height:1.25;padding:7px 5px}
:root .investigation-dock .dock-ready{position:absolute;left:0;right:0;bottom:calc(50% + 21px);justify-content:center;flex-wrap:nowrap;gap:5px;margin:0}
:root .investigation-dock .dock-ready-faces{flex-shrink:1;min-width:0;justify-content:center;padding-left:0}
:root .investigation-dock .dock-ready-person{flex-shrink:0;line-height:0}
:root .investigation-dock .dock-ready-person .room-avatar{width:20px;height:20px;opacity:.75}
:root .investigation-dock .dock-ready-person.selected .room-avatar{opacity:1}
:root .investigation-dock .dock-ready-person+.dock-ready-person{margin-left:-9px}
@media(max-width:600px){:root .tile .tile-clue-count{font-size:10px;padding:2px 4px;gap:3px}:root .investigation-dock .dock-ready-person .room-avatar{width:18px;height:18px}:root .investigation-dock .dock-ready-person+.dock-ready-person{margin-left:-10px}:root .investigation-dock .dock-ready{gap:3px}}
@media(max-width:360px){:root .investigation-dock .dock-ready-person+.dock-ready-person{margin-left:-12px}}

/* Two-line turn status and countdown. */
.investigation-dock .dock-status{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-width:0}.investigation-dock .dock-actor{min-width:0;max-width:100%}.investigation-dock .dock-actor strong{white-space:normal;overflow-wrap:anywhere}.investigation-dock .dock-timer{text-align:left}.investigation-dock .dock-timer strong{display:block;font-variant-numeric:tabular-nums}

/* Keep the frame clipped, not the participant names above its edge. */
:root .dock.investigation-dock{min-height:67px;padding-top:6px;padding-bottom:6px;clip-path:none;overflow:visible;background:none;backdrop-filter:none;isolation:isolate}
:root .dock.investigation-dock::before{content:"";position:absolute;inset:0;background:#211e17f7;clip-path:var(--fx-shape);z-index:-1;pointer-events:none}
:root .investigation-dock .dock-advance{position:static}
:root .investigation-dock .dock-ready{left:auto;right:10px;bottom:calc(100% + 5px);max-width:calc(100% - 20px);justify-content:flex-end;z-index:4}
.accepted-people{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:wrap;line-height:1.3}
.accepted-person{display:inline-flex;align-items:center;gap:4px;background:#211e17f2;border:1px solid #c8a44f88;border-radius:12px;padding:2px 6px 2px 2px;color:#f4deb2;font-size:10px;max-width:130px}
.accepted-person .room-avatar{width:19px;height:19px;flex:none;font-size:9px}
.accepted-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.accepted-people>small{font-size:10px;color:#f4deb2;background:#211e17ef;padding:3px 6px;border-radius:6px;white-space:nowrap}
.investigation-start{display:flex;flex-direction:column;gap:10px;align-items:center}.investigation-start .accepted-people{justify-content:center}.investigation-start>small{color:#bdb092}
:root .investigation-dock .dock-ai-label{display:block;font-size:9px;line-height:1;color:#e8c262;letter-spacing:1px}
:root .investigation-dock .dock-status{gap:2px}:root .investigation-dock .dock-actor{gap:2px}
@media(max-width:420px){.accepted-person{max-width:90px;font-size:9px}.accepted-person .room-avatar{width:17px;height:17px}:root .dock.investigation-dock{min-height:67px}}

.scene-clue small{position:absolute;right:-4px;bottom:-4px;min-width:17px;height:17px;border-radius:9px;background:#f1cb6e;color:#241c0a;font:800 10px/17px system-ui}.scene-pin-choices{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.scene-pin-choices [aria-pressed="true"]{background:#e6bd55;color:#201b10}@media(max-width:600px){.scene-clue{width:30px;height:30px}.scene-clue svg{width:17px;height:17px}.scene-clue.selected{outline-width:2px;outline-offset:2px}}
