/* Lagos Hotel — styles. Layout: full-screen game canvas, Habbo-style bottom toolbar, floating draggable
   windows, Gist House as a paper-toned overlay. Single-theme by design (Lagos night, danfo-yellow accent). */
/* Layout: full-screen game canvas; Habbo-style bottom toolbar; floating draggable windows; Gist House is a paper-toned overlay.
   Deliberately single-theme: a Lagos night palette with danfo-yellow as the signature accent. */
:root {
  color-scheme: dark;
  --night: #120f22; --panel: #1f1b35; --panel-hi: #2b2648; --line: #3d3666; --ink: #f3efe4; --muted: #aaa3c9;
  --danfo: #f5c518; --danfo-ink: #1b1608; --green: #14a061; --green-hi: #1fbf74; --red: #e2412d; --pink: #ff4fa0;
  --paper: #f2ead8; --paper-2: #fbf6ea; --paper-ink: #24211a; --paper-mute: #7b7466; --gh-green: #2a8f5c;
  --f-display: "Pixelify Sans", "Courier New", monospace; --f-body: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --tb-h: 64px;
}
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font: 15px/1.4 var(--f-body); overflow: hidden; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--danfo); outline-offset: 2px; }
#app { position: fixed; inset: 0; top: env(safe-area-inset-top, 0px); }
canvas { display: block; image-rendering: pixelated; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }

/* ---- screens ---- */
#hotel, #roomWrap { position: absolute; inset: 0 0 calc(var(--tb-h) + env(safe-area-inset-bottom, 0px)) 0; }
#hotelCv, #roomCv { width: 100%; height: 100%; touch-action: none; }
.hotel-cta { position: absolute; left: 16px; top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: min(380px, calc(100% - 32px)); padding: 16px 18px; background: rgba(18,15,34,.78); border: 3px solid #000; border-radius: 14px; box-shadow: 0 8px 0 rgba(0,0,0,.35); }
.hotel-cta h1 { font: 700 clamp(28px, 5vw, 40px)/1 var(--f-display); margin: 0; color: var(--danfo); text-shadow: 3px 3px 0 #000, 0 0 24px rgba(245,197,24,.35); letter-spacing: 1px; text-wrap: balance; }
.hotel-cta p { margin: 0; color: #fff; text-shadow: 1px 1px 0 #000; max-width: 42ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
/* "Happening now": what is on in the hotel, beside the street scene (below it on narrow screens) */
.hotel-live { position: absolute; right: 16px; top: 72px; width: min(330px, calc(100% - 32px)); max-height: calc(100% - 88px); overflow: auto; display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 10px; background: rgba(18,15,34,.82); border: 3px solid #000; border-radius: 14px; box-shadow: 0 8px 0 rgba(0,0,0,.35); }
.hotel-live header { display: flex; align-items: center; gap: 8px; }
.hotel-live h2 { margin: 0; font: 700 18px var(--f-display); color: var(--danfo); text-shadow: 2px 2px 0 #000; }
.live-dot { width: 10px; height: 10px; flex: none; background: #6b6585; box-shadow: 0 0 0 2px #000; }
.hotel-live.busy .live-dot { background: var(--green-hi); animation: livePulse 1.6s steps(2) infinite; }
@keyframes livePulse { 50% { background: #0b6a3c; } }
.hl-sub { margin: 0 0 2px; font-size: 12.5px; color: #9ff0c0; text-shadow: 1px 1px 0 #000; }
.hl-list { display: flex; flex-direction: column; gap: 4px; }
.hl-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 6px 8px; background: rgba(255,255,255,.04); border: 2px solid #000; border-radius: 0; color: var(--ink); }
.hl-row:hover, .hl-row:focus-visible { background: rgba(245,197,24,.14); border-color: var(--danfo); }
.hl-ico .pi { width: 24px; height: 24px; }
.hl-txt { display: flex; flex-direction: column; min-width: 0; }
.hl-txt b { font: 600 14px var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-txt small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-badge { font: 700 11px var(--f-display); padding: 1px 6px; background: var(--green); color: #fff; border: 2px solid #000; white-space: nowrap; }
#hotelTag { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; background: #1b1320; color: #fff; border: 2px solid #000; font: 600 13px var(--f-display); padding: 2px 8px; white-space: nowrap; }
@media (max-width: 900px) {
  .hotel-live { top: auto; bottom: 8px; left: 8px; right: 8px; width: auto; max-height: 46%; padding: 8px 10px; }
  .hotel-live h2 { font-size: 15px; }
  .hl-row:nth-child(n+4) { display: none; }
}
@media (max-width: 640px) {
  .hotel-cta { top: 64px; } .hotel-cta p { display: none; } /* below the buttons along the top; the panel says what's on */
  .hotel-cta .btn.big { font-size: 15px; padding: 4px 10px; }
  .hl-row:nth-child(n+3) { display: none; }
}

#bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubble { position: absolute; left: 0; top: 0; max-width: 300px; background: #fff; color: #111; border: 2px solid #111; border-radius: 10px; padding: 3px 9px 3px 3px; font-size: 13px; line-height: 1.3; display: flex; align-items: center; gap: 4px; box-shadow: 0 2px 0 rgba(0,0,0,.35); transition: transform .25s ease-out; will-change: transform; }
.bubble img { width: 26px; height: 26px; image-rendering: pixelated; flex: none; border-radius: 6px; background: #eee; }
.bubble b { white-space: nowrap; }
.bubble span { overflow-wrap: anywhere; }
.bubble.bot { background: #fff4c2; } .bubble.mine { background: #d9f7e6; }
#tag { position: absolute; left: 0; top: 0; pointer-events: none; background: rgba(0,0,0,.75); color: #fff; font: 600 12px var(--f-display); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }

#roomPanel { position: absolute; left: 12px; top: 12px; max-width: min(360px, calc(100% - 150px)); background: rgba(18,15,34,.86); border: 2px solid #000; border-radius: 10px; padding: 8px 10px; backdrop-filter: blur(4px); }
.rp-name { font: 700 17px var(--f-display); color: var(--danfo); }
.rp-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.rp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--panel-hi); border: 1.5px solid #000; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; }
.chip svg { width: 14px; height: 14px; } .chip.on { background: var(--danfo); color: var(--danfo-ink); }
#placeBar { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; background: var(--danfo); color: var(--danfo-ink); border: 2px solid #000; border-radius: 10px; padding: 6px 8px 6px 12px; font-weight: 600; z-index: 5; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 32px); }

#topRight { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; align-items: center; z-index: 6; }
.ico { width: 38px; height: 38px; display: grid; place-items: center; background: rgba(18,15,34,.86); border: 2px solid #000; border-radius: 10px; }
.ico svg { width: 20px; height: 20px; } .ico.off { opacity: .45; }
#walletBtn { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; background: var(--danfo); color: var(--danfo-ink); border: 2px solid #000; border-radius: 10px; font: 700 15px var(--f-display); box-shadow: inset 0 -3px rgba(0,0,0,.2); font-variant-numeric: tabular-nums; }

/* ---- toolbar ---- */
#toolbar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--tb-h); padding-bottom: env(safe-area-inset-bottom, 0px); background: linear-gradient(#26213f, #19162c); border-top: 3px solid #000; box-shadow: 0 -2px 0 var(--danfo) inset; display: flex; align-items: center; gap: 10px; padding-inline: 10px; z-index: 30; }
#tbLeft { display: flex; gap: 2px; flex: none; }
.tb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 58px; height: 54px; border: 0; background: none; border-radius: 10px; color: #e8e4f6; }
.tb svg { width: 24px; height: 24px; filter: drop-shadow(1px 1px 0 #000); } .tb span { font: 600 10.5px var(--f-display); white-space: nowrap; }
.tb:hover { background: rgba(255,255,255,.08); color: var(--danfo); }
#chatForm { flex: 1; min-width: 0; display: flex; gap: 6px; }
#chatIn { flex: 1; min-width: 0; height: 40px; border: 2px solid #000; border-radius: 10px; padding: 0 12px; background: #fff; color: #111; }
#chatIn::placeholder { color: #8a8599; }
#chatSend { width: 44px; border: 2px solid #000; border-radius: 10px; background: var(--green); color: #fff; display: grid; place-items: center; }
#chatSend svg { width: 20px; height: 20px; }
body:not([data-screen="room"]) #chatForm { visibility: hidden; }

/* ---- buttons ---- */
.btn { border: 2px solid #000; border-radius: 9px; padding: 7px 13px; background: var(--panel-hi); color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px rgba(0,0,0,.28); line-height: 1.15; }
.btn:hover:not(:disabled) { filter: brightness(1.12); } .btn:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 -1px rgba(0,0,0,.28); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.gold { background: var(--danfo); color: var(--danfo-ink); } .btn.green { background: var(--green); color: #fff; } .btn.ghost { background: transparent; border-color: var(--line); box-shadow: none; }
.btn.danger { color: #ff8b7a; } .btn.small { padding: 4px 10px; font-size: 13px; } .btn.wide { width: 100%; margin-top: 10px; }
.btn.big { font: 700 17px var(--f-display); padding: 11px 20px; }

/* ---- windows ---- */
#windows { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.win { position: absolute; pointer-events: auto; background: var(--panel); border: 3px solid #000; border-radius: 12px; box-shadow: 0 10px 0 rgba(0,0,0,.35), 0 20px 50px rgba(0,0,0,.45); display: flex; flex-direction: column; max-height: calc(100% - 90px); }
.win header { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 0; background: var(--panel-hi); border-bottom: 2px solid #000; border-radius: 9px 9px 0 0; cursor: grab; user-select: none; touch-action: none; }
.win .stripe { width: 30px; align-self: stretch; border-radius: 9px 0 0 0; background: repeating-linear-gradient(135deg, var(--danfo) 0 6px, #111 6px 10px); }
.win h2 { margin: 0; flex: 1; font: 700 16px var(--f-display); letter-spacing: .3px; }
.x { width: 28px; height: 28px; border: 2px solid #000; border-radius: 7px; background: var(--red); color: #fff; font: 700 18px/1 var(--f-display); display: grid; place-items: center; padding: 0; }
.wbody { padding: 12px; overflow: auto; min-height: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.tab { border: 2px solid #000; background: var(--panel-hi); border-radius: 8px; padding: 4px 10px; font-weight: 600; font-size: 13px; }
.tab.on { background: var(--danfo); color: var(--danfo-ink); }
.navlist { display: flex; flex-direction: column; gap: 6px; }
.navrow { display: flex; align-items: center; gap: 10px; background: var(--panel-hi); border: 1.5px solid #000; border-radius: 9px; padding: 8px 10px; }
.nr-main { flex: 1; min-width: 0; } .nr-title { font-weight: 700; } .nr-sub { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.count { min-width: 30px; text-align: center; font: 700 13px var(--f-display); color: var(--muted); background: #0003; border-radius: 6px; padding: 2px 6px; font-variant-numeric: tabular-nums; }
.count.live { color: #0f2; color: #8ff0b8; } .count:empty { display: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #555; flex: none; } .dot.on { background: var(--green-hi); box-shadow: 0 0 6px var(--green-hi); }
.navsearch { width: 100%; box-sizing: border-box; margin-bottom: 8px; height: 36px; border: 2px solid #000; border-radius: 8px; background: #fff; color: #111; padding: 0 10px; }
.form { display: grid; gap: 6px; } .form label { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.form input:not([type=checkbox]), .form select { height: 36px; border: 2px solid #000; border-radius: 8px; padding: 0 10px; background: #fff; color: #111; }
.form .check { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; background: #fff1; border: 2px solid #000; border-radius: 9px; }
.cell img { width: 64px; height: 64px; image-rendering: pixelated; } .cell span { font: 600 12px var(--f-display); font-variant-numeric: tabular-nums; }
.cell.on { background: #f5c51833; border-color: var(--danfo); } .cell:disabled { opacity: .55; cursor: default; }
.cat { display: grid; grid-template-columns: 140px 1fr; gap: 10px; } .cat-side { display: flex; flex-direction: column; gap: 4px; } .cat-side .tab { text-align: left; }
.cat-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cat-detail { display: flex; gap: 12px; align-items: center; background: #0003; border: 2px solid #000; border-radius: 10px; padding: 8px; }
.cat-detail img { width: 96px; height: 96px; image-rendering: pixelated; flex: none; background: radial-gradient(#fff2, transparent 70%); }
.cd-name { font: 700 17px var(--f-display); color: var(--danfo); } .cd-desc { font-size: 13px; margin: 2px 0 4px; } .cd-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.menu { display: flex; flex-direction: column; gap: 6px; } .menurow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; background: var(--panel-hi); border: 1.5px solid #000; border-radius: 9px; padding: 6px 8px; }
.menurow b { font: 700 14px var(--f-display); color: var(--danfo); font-variant-numeric: tabular-nums; }
.wallet-big { font: 700 40px var(--f-display); color: var(--danfo); text-shadow: 3px 3px 0 #000; font-variant-numeric: tabular-nums; }
.log { max-height: 50vh; overflow: auto; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.logrow time { color: var(--muted); font-size: 11.5px; margin-right: 6px; font-variant-numeric: tabular-nums; } .logrow b.npc { color: var(--danfo); }
.wardrobe { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.w-prev { display: flex; flex-direction: column; align-items: center; gap: 6px; background: radial-gradient(circle at 50% 70%, #3a3570, #1a1730); border: 2px solid #000; border-radius: 10px; padding: 8px; }
.w-prev canvas { width: 108px; height: 198px; }
.w-turn { display: flex; gap: 6px; } .w-right { min-width: 0; }
.w-label { font: 600 12.5px var(--f-display); color: var(--muted); margin: 8px 0 4px; }
.acct { margin-top: 14px; padding-top: 10px; border-top: 2px dashed var(--line); }
/* Games lounge: the game window */
.gm-status { font: 700 15px var(--f-display); margin-bottom: 6px; color: var(--ink); } .gm-status.mine { color: var(--danfo); }
.gm-seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px; margin-bottom: 8px; }
.gm-seat { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 3px 6px; border: 2px solid #000; background: var(--panel-hi); font-size: 13px; }
.gm-seat.turn { outline: 2px solid var(--danfo); } .gm-seat.me .gm-name { color: var(--danfo); font-weight: 700; }
.gm-seat .gm-name { flex: 1; min-width: 0; overflow-wrap: anywhere; } .gm-seat .btn { flex: none; }
.gm-dot { width: 12px; height: 12px; border: 2px solid #000; border-radius: 50%; flex: none; }
.gm-wrap { display: flex; justify-content: center; } .gm-board { display: block; max-width: 100%; cursor: pointer; touch-action: manipulation; }
.gm-info { display: flex; align-items: center; gap: 10px; min-height: 8px; margin: 6px 0; flex-wrap: wrap; }
.gm-die { --c: #fff; display: grid; grid-template-columns: repeat(3, 8px); grid-template-rows: repeat(3, 8px); gap: 2px; padding: 5px; background: #f7f3ea; border: 3px solid #000; box-shadow: inset 0 -3px 0 var(--c); }
.gm-die span { border-radius: 50%; } .gm-die span.on { background: #1b1320; }
.gm-dice { display: flex; gap: 8px; } button.gm-die { cursor: pointer; } button.gm-die:disabled { cursor: default; } .gm-die.used { opacity: .35; } .gm-die.sel { outline: 3px solid var(--danfo); outline-offset: 2px; }
body.shot #toolbar, body.shot #roomPanel, body.shot #guide, body.shot #toasts, body.shot #chatDock, body.shot #topRight, body.shot #reactBar, body.shot #bubbles { display: none !important; }
body.shot #hotel, body.shot #roomWrap { inset: 0; }
.cd-spon { font-size: 12.5px; color: #8ff0b8; margin: 4px 0; } .tags-sp { position: absolute; top: 2px; left: 2px; background: #2bd47a; color: #04210f; font: 700 10px var(--f-display); padding: 0 4px; border: 2px solid #000; font-style: normal; }
.gm-invite { position: absolute; top: 72px; left: 50%; transform: translateX(-50%); width: min(380px, calc(100% - 24px)); pointer-events: auto; z-index: 60; padding: 10px 12px; border: 6px solid transparent; border-image: var(--frame-gold) 4 fill / 6px stretch; color: var(--danfo-ink); box-shadow: 0 8px 0 rgba(0,0,0,.35); }
.gm-invite .gm-inv-text { margin-bottom: 8px; font-size: 14px; } .gm-invite .muted { color: #4a3a08; } .gm-invite .gm-acts { margin: 0; }
.gm-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; } .gm-help summary { cursor: pointer; font-weight: 600; color: var(--muted); }
/* Marina Money House */
.bank-bal { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.gold-big { display: flex; align-items: center; gap: 6px; font: 700 28px var(--f-display); color: #ffd84a; text-shadow: 2px 2px 0 #000; font-variant-numeric: tabular-nums; }
.gold-big .pi { width: 24px; height: 24px; }
.note.warn { background: #3a1f12; border: 2px solid #000; padding: 6px 8px; color: #ffcf9a; font-size: 13px; }
.ledger { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow: auto; }
.lrow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 5px 4px; border-bottom: 1px solid #0006; font-size: 13.5px; }
.lrow .l-what { min-width: 0; overflow-wrap: anywhere; } .lrow .l-when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.lrow b { font: 700 13.5px var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; } .lrow b.pos { color: #8ff0b8; } .lrow b.neg { color: #ff9a8a; }
.gold-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.gpack { position: relative; border: 6px solid transparent; border-image: var(--frame-hi) 4 fill / 6px stretch; padding: 8px 6px 4px; text-align: center; }
.gpack .g-amt { font: 700 18px var(--f-display); color: #ffd84a; text-shadow: 1px 1px 0 #000; } .gpack .g-price { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.gpack .g-tag { position: absolute; top: -10px; right: 2px; background: #ff4fa0; color: #fff; border: 2px solid #000; font: 700 10.5px var(--f-display); padding: 0 5px; }
.ajo { border: 6px solid transparent; border-image: var(--frame-hi) 4 fill / 6px stretch; padding: 6px 6px 4px; margin-bottom: 8px; } .ajo.done { opacity: .7; }
.ajo-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; } .ajo-head b { font: 700 15px var(--f-display); overflow-wrap: anywhere; } .ajo-amt { color: var(--danfo); font: 700 13px var(--f-display); white-space: nowrap; }
.ajo-members { margin: 6px 0 4px; padding-left: 22px; font-size: 13px; } .ajo-members li { padding: 1px 0; } .ajo-members li > span { display: inline; }
.ajo-members .ajo-st { color: var(--muted); margin-left: 6px; } .ajo-members li.me .ajo-nick { color: var(--danfo); font-weight: 700; } .ajo-members li.turn .ajo-st { color: #8ff0b8; }
.ajo-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ajo-form { margin-top: 8px; } .ajo-form select { height: 36px; border: 3px solid #000; background: #fff; color: #111; padding: 0 8px; }

.w-row { display: flex; flex-wrap: wrap; gap: 5px; }
.sw { width: 26px; height: 26px; border-radius: 7px; border: 2px solid #000; padding: 0; } .sw.on { outline: 3px solid var(--danfo); outline-offset: 1px; }
.w-item { position: relative; display: flex; flex-direction: column; align-items: center; width: 64px; padding: 3px; border: 2px solid #000; border-radius: 9px; background: #fff1; font-size: 10.5px; line-height: 1.15; }
.w-item canvas { width: 36px; height: 66px; } .w-item span { text-align: center; } .w-item.on { border-color: var(--danfo); background: #f5c51826; }
.w-item.locked canvas { opacity: .5; } .w-item em { position: absolute; top: 2px; right: 2px; font: 700 10px var(--f-display); font-style: normal; background: var(--danfo); color: var(--danfo-ink); border-radius: 4px; padding: 0 3px; }
.w-pane { max-height: 46vh; overflow: auto; padding-right: 4px; }

/* ---- info stand ---- */
#infostand { position: absolute; right: 12px; bottom: calc(var(--tb-h) + 12px + env(safe-area-inset-bottom, 0px)); width: min(300px, calc(100% - 24px)); background: var(--panel); border: 3px solid #000; border-radius: 12px; padding: 10px; z-index: 15; box-shadow: 0 8px 0 rgba(0,0,0,.35); }
#infostand .x { position: absolute; right: 8px; top: 8px; }
.is-top { display: flex; gap: 10px; align-items: center; padding-right: 30px; }
.is-av { width: 54px; height: 99px; flex: none; background: radial-gradient(circle at 50% 75%, #3a3570, transparent 70%); }
.is-thumb { width: 72px; height: 72px; image-rendering: pixelated; flex: none; }
.is-name { font: 700 17px var(--f-display); color: var(--danfo); overflow-wrap: anywhere; } .is-motto { font-size: 13px; color: var(--ink); opacity: .85; }
.tags { display: flex; gap: 4px; margin-top: 4px; } .tagp { font: 600 11px var(--f-display); background: var(--panel-hi); border: 1px solid #000; border-radius: 5px; padding: 0 5px; } .tagp.npc { background: var(--danfo); color: var(--danfo-ink); }
.is-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .is-acts p { margin: 4px 0 0; width: 100%; }

/* ---- toasts ---- */
#toasts { position: absolute; left: 50%; top: 60px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; z-index: 60; pointer-events: none; width: min(460px, calc(100% - 32px)); }
.toast { background: var(--panel); border: 2px solid #000; border-left: 8px solid var(--danfo); border-radius: 10px; padding: 8px 12px; font-weight: 600; box-shadow: 0 6px 0 rgba(0,0,0,.3); animation: tin .25s ease-out; transition: opacity .4s, transform .4s; }
.toast.good { border-left-color: var(--green-hi); } .toast.warn { border-left-color: var(--red); } .toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes tin { from { opacity: 0; transform: translateY(-10px); } }

/* ---- boot & check-in ---- */
#boot, #checkin { position: absolute; inset: 0; z-index: 80; display: flex; padding: 16px; background: radial-gradient(circle at 50% 30%, #3a1f4f, var(--night) 70%); overflow: auto; }
.boot-in, .ci { margin: auto; }
.boot-in { text-align: center; display: grid; gap: 14px; justify-items: center; }
.logo { font: 700 clamp(38px, 9vw, 72px)/0.95 var(--f-display); color: var(--danfo); text-shadow: 4px 4px 0 #000; }
.logo small { display: block; font-size: .32em; color: var(--ink); letter-spacing: 6px; margin-top: 8px; text-shadow: 2px 2px 0 #000; }
.loader { width: 220px; height: 14px; border: 2px solid #000; border-radius: 8px; overflow: hidden; background: #000; }
.loader i { display: block; height: 100%; width: 40%; background: repeating-linear-gradient(135deg, var(--danfo) 0 8px, #111 8px 13px); animation: ld 1s linear infinite; }
@keyframes ld { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
#bootTip { max-width: 40ch; color: var(--muted); }
.ci { width: min(760px, 100%); background: var(--panel); border: 3px solid #000; border-radius: 14px; box-shadow: 0 12px 0 rgba(0,0,0,.4); overflow: hidden; }
.ci-head { padding: 16px 18px 10px; background: linear-gradient(90deg, #2b2648, #3a1f4f); border-bottom: 2px solid #000; }
.ci-head h1 { margin: 0; font: 700 26px var(--f-display); color: var(--danfo); } .ci-head p { margin: 4px 0 0; color: var(--muted); }
.ci-body { padding: 14px 18px 18px; display: grid; gap: 12px; }
.ci-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ci-fields label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ci-fields input { height: 40px; border: 2px solid #000; border-radius: 9px; padding: 0 12px; background: #fff; color: #111; }
#ciErr { color: #ff8b7a; min-height: 1em; margin: 0; font-weight: 600; }

/* ---- Gist House (paper overlay) ---- */
#gist { position: absolute; inset: 0 0 calc(var(--tb-h) + env(safe-area-inset-bottom, 0px)) 0; z-index: 40; background: var(--paper); color: var(--paper-ink); display: flex; flex-direction: column; }
.gh-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #0001; }
.gh-brand { font: 700 22px var(--f-display); color: var(--gh-green); } .gh-brand small { font: 600 13px var(--f-body); color: var(--paper-mute); margin-left: 8px; }
#ghTitle { flex: 1; text-align: right; font: 600 13px var(--f-body); color: var(--paper-mute); letter-spacing: 1.5px; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-pill { border: 0; border-radius: 999px; padding: 6px 12px; background: #e6dcc6; color: var(--paper-ink); font-weight: 600; font-size: 13px; }
.gh-pill.on { background: var(--gh-green); color: #fff; }
#ghBody { flex: 1; overflow: auto; padding: 16px; padding-bottom: 110px; position: relative; }
.gh-list { display: grid; gap: 12px; max-width: 680px; margin: 0 auto; }
.gh-card { text-align: left; background: var(--paper-2); border: 0; border-radius: 22px; padding: 16px 18px; box-shadow: 0 1px 2px #0002; display: grid; gap: 8px; color: var(--paper-ink); }
.gh-card:hover { box-shadow: 0 3px 10px #0002; }
.gh-club { font: 700 11.5px var(--f-body); letter-spacing: 1.4px; color: var(--gh-green); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gh-badge { font-size: 10px; letter-spacing: 1px; background: #e9e0cb; color: var(--paper-mute); border-radius: 999px; padding: 1px 8px; }
.gh-topic { font: 800 18px/1.25 var(--f-body); text-wrap: balance; }
.gh-who { display: flex; gap: 12px; align-items: center; }
.gh-heads { position: relative; width: 74px; height: 56px; flex: none; }
.gh-heads img { position: absolute; width: 42px; height: 42px; border-radius: 15px; image-rendering: pixelated; background: #d9cdb2; border: 2px solid var(--paper-2); }
.gh-heads img:nth-child(1) { left: 0; top: 0; } .gh-heads img:nth-child(2) { left: 26px; top: 12px; } .gh-heads img:nth-child(3) { left: 8px; top: 22px; }
.gh-names { font-size: 14px; font-weight: 600; } .gh-count { font-size: 13px; color: var(--paper-mute); font-variant-numeric: tabular-nums; }
.gh-quote { font-size: 13.5px; color: #4a4538; background: #efe6d2; border-radius: 12px; padding: 6px 10px; }
.gh-dock { position: fixed; left: 0; right: 0; bottom: calc(var(--tb-h) + 16px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; pointer-events: none; z-index: 2; }
.gh-start { pointer-events: auto; border: 0; border-radius: 999px; background: var(--gh-green); color: #fff; font: 700 16px var(--f-body); padding: 12px 26px; box-shadow: 0 4px 12px #2a8f5c55; }
.gh-start.small { padding: 8px 16px; font-size: 14px; }
.gh-ghost { border: 0; background: transparent; color: var(--paper-mute); font-weight: 600; padding: 8px 14px; }
.gh-form { max-width: 520px; margin: 0 auto; display: grid; gap: 8px; } .gh-form label { font-weight: 700; font-size: 13px; color: var(--paper-mute); }
.gh-form input, .gh-form select { height: 44px; border: 1.5px solid #d6cab0; background: #fff; color: var(--paper-ink); border-radius: 12px; padding: 0 12px; }
.gh-row { display: flex; justify-content: flex-end; gap: 8px; }
.gh-talk { max-width: 760px; margin: 0 auto; background: var(--paper-2); border-radius: 26px; padding: 16px 18px 20px; box-shadow: 0 1px 2px #0002; }
.gh-back { border: 0; background: none; color: var(--paper-mute); font-weight: 700; padding: 0; }
.gh-ttopic { font: 800 21px/1.25 var(--f-body); margin: 8px 0 4px; text-wrap: balance; }
.gh-sec { font: 700 11.5px var(--f-body); letter-spacing: 1.4px; text-transform: uppercase; color: var(--paper-mute); margin: 14px 0 8px; }
.gh-stage, .gh-aud { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 8px; }
.gh-aud { grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); }
.gh-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.gh-sq { position: relative; width: 52px; height: 52px; border-radius: 19px; background: #d9cdb2; display: grid; place-items: center; transition: box-shadow .2s; }
.gh-tile.big .gh-sq { width: 72px; height: 72px; border-radius: 26px; }
.gh-sq img { width: 100%; height: 100%; border-radius: inherit; image-rendering: pixelated; }
.gh-tile.speaking .gh-sq { box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 6px var(--gh-green); animation: talk .9s ease-in-out infinite alternate; }
@keyframes talk { to { box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 8px #2a8f5c88; } }
.gh-tname { font-size: 12.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-hand { position: absolute; right: -6px; bottom: -4px; font-size: 18px; } .gh-star { position: absolute; left: -4px; bottom: -4px; background: var(--gh-green); color: #fff; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; display: grid; place-items: center; }
.gh-mini { border: 0; background: #e6dcc6; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 2px 8px; color: var(--paper-ink); }
.gh-more { align-self: center; font-size: 13px; color: var(--paper-mute); font-weight: 600; }
.gh-float { position: absolute; top: -10px; left: 50%; font-size: 26px; animation: fl 1.6s ease-out forwards; pointer-events: none; }
@keyframes fl { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -50px); opacity: 0; } }
.gh-trans { margin-top: 14px; background: #efe6d2; border-radius: 16px; padding: 10px 14px; display: grid; gap: 4px; font-size: 14.5px; min-height: 60px; }
.gh-trans p { margin: 0; } .gh-trans p:last-child { font-weight: 600; }
.gh-trans .muted, #gist .muted { color: var(--paper-mute); }
.gh-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tb-h) + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; align-items: center; padding: 10px 16px; background: var(--paper-2); border-top: 1px solid #0001; z-index: 3; flex-wrap: wrap; }
.gh-leave { border: 0; border-radius: 999px; background: #efe6d2; color: #c0392b; font-weight: 700; padding: 9px 16px; margin-right: auto; }
.gh-react { border: 0; background: #efe6d2; border-radius: 50%; width: 40px; height: 40px; font-size: 19px; }
.gh-handbtn { border: 0; border-radius: 999px; background: var(--gh-green); color: #fff; font-weight: 700; padding: 9px 16px; } .gh-handbtn.on { background: #c9a227; }
.gh-sayform { position: fixed; left: 0; right: 0; bottom: calc(var(--tb-h) + 62px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; padding: 8px 16px; background: var(--paper); border-top: 1px solid #0001; z-index: 3; }
.gh-sayform input { flex: 1; min-width: 0; height: 40px; border: 1.5px solid #d6cab0; border-radius: 999px; padding: 0 16px; background: #fff; color: var(--paper-ink); }
#gist :focus-visible { outline-color: var(--gh-green); }

/* ---- phone ---- */
@media (max-width: 640px) {
  :root { --tb-h: 108px; }
  #toolbar { flex-direction: column-reverse; height: var(--tb-h); padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); gap: 6px; align-items: stretch; }
  #tbLeft { justify-content: space-between; } .tb { width: auto; flex: 1; height: 48px; } .tb span { font-size: 9px; }
  body:not([data-screen="room"]) #chatForm { display: none; } body:not([data-screen="room"]) { --tb-h: 62px; }
  .win { left: 8px !important; right: 8px; width: auto !important; top: auto !important; bottom: calc(var(--tb-h) + 8px); max-height: 72%; }
  .cat { grid-template-columns: 1fr; } .cat-side { flex-direction: row; flex-wrap: wrap; }
  .wardrobe { grid-template-columns: 1fr; } .w-prev { flex-direction: row; justify-content: center; } .w-prev canvas { width: 72px; height: 132px; }
  .ci-fields { grid-template-columns: 1fr; }
  #roomPanel { max-width: calc(100% - 24px); top: 58px; }
  #topRight { left: 12px; justify-content: flex-end; }
  .gh-top { flex-wrap: wrap; } .gh-brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .hotel-live.busy .live-dot { animation: none; } }

/* room-to-room transition */
#fade { position: absolute; inset: 0; background: #0b0918; opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 70; }
#fade.on { opacity: 1; }

/* =====================================================================
   Phase 2 — pixel-art interface. 9-slice pixel frames (see LH.installFrames in js/icons.js):
   every frame pixel is 2 screen px, matching the game at zoom 2.
   ===================================================================== */
.pi { image-rendering: pixelated; display: block; flex: none; }
.win, #infostand, #roomPanel, .toast, #placeBar, .hotel-cta, .hotel-live, #guide, #chatDock, #moreSheet, .ci {
  border: 8px solid transparent; border-image: var(--frame-panel) 4 fill / 8px stretch; background: none; border-radius: 0; box-shadow: none;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.35));
}
.win { padding: 0; }
.win header { border-radius: 0; background: var(--panel-hi); border-bottom: 0; padding: 6px 6px 10px 8px; margin: -2px -2px 0; position: relative; }
.win header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--danfo) 0 8px, #111 8px 16px); }
.win .stripe { display: none; }
.win h2 { font-size: 17px; text-shadow: 2px 2px 0 #000; color: var(--danfo); }
.x { width: 32px; height: 32px; border: 6px solid transparent; border-image: var(--frame-red) 4 fill / 6px stretch; background: none; border-radius: 0; font: 700 16px/1 var(--f-display); color: #fff; text-shadow: 1px 1px 0 #000; }
.btn { border: 8px solid transparent; border-image: var(--frame-hi) 4 fill / 8px stretch; background: none; border-radius: 0; box-shadow: none; padding: 2px 8px; font-family: var(--f-display); font-weight: 700; letter-spacing: .2px; text-shadow: 1px 1px 0 rgba(0,0,0,.45); }
.btn.gold { border-image-source: var(--frame-gold); background: none; color: var(--danfo-ink); text-shadow: none; }
.btn.green { border-image-source: var(--frame-green); background: none; }
.btn.ghost { border-image-source: var(--frame-night); background: none; }
.btn.danger { border-image-source: var(--frame-red); color: #fff; }
.btn.small { padding: 0 6px; font-size: 13px; } .btn.big { padding: 6px 14px; font-size: 18px; }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.tab { border: 6px solid transparent; border-image: var(--frame-hi) 4 fill / 6px stretch; background: none; border-radius: 0; padding: 0 6px; font-family: var(--f-display); }
.tab.on { border-image-source: var(--frame-gold); background: none; color: var(--danfo-ink); }
.chip { border: 6px solid transparent; border-image: var(--frame-hi) 4 fill / 6px stretch; background: none; border-radius: 0; padding: 0 6px; font-family: var(--f-display); }
.chip.on { border-image-source: var(--frame-gold); background: none; color: var(--danfo-ink); }
.chip .pi { width: 16px; height: 16px; }
.ico { width: 44px; height: 44px; border: 6px solid transparent; border-image: var(--frame-night) 4 fill / 6px stretch; background: none; border-radius: 0; }
.ico .pi { width: 32px; height: 32px; } .ico.off .pi { opacity: .4; }
#walletBtn { height: 44px; border: 6px solid transparent; border-image: var(--frame-gold) 4 fill / 6px stretch; background: none; border-radius: 0; box-shadow: none; padding: 0 8px 0 4px; gap: 4px; }
#walletBtn .pi { width: 32px; height: 32px; }
.tb svg { width: 26px; height: 26px; } .ico svg { width: 22px; height: 22px; color: var(--ink); } #chatSend svg { width: 22px; height: 22px; color: #fff; margin: auto; } #walletBtn svg { width: 20px; height: 20px; }
.cell { border: 6px solid transparent; border-image: var(--frame-hi) 4 fill / 6px stretch; background: none; border-radius: 0; padding: 2px; position: relative; }
.cell.on { border-image-source: var(--frame-gold); background: none; } .cell.on span { color: var(--danfo-ink); }
.navrow, .menurow { border: 6px solid transparent; border-image: var(--frame-hi) 4 fill / 6px stretch; background: none; border-radius: 0; }
.navsearch, .form input:not([type=checkbox]), .form select, #chatIn, .ci-fields input { border: 3px solid #000; border-radius: 0; box-shadow: inset 2px 2px 0 #d8d2c4; }
.toast { padding: 4px 8px; }
.toast.good { border-image-source: var(--frame-green); } .toast.warn { border-image-source: var(--frame-red); }
#roomPanel { padding: 2px 4px; backdrop-filter: none; }
#placeBar { border-image-source: var(--frame-gold); background: none; color: var(--danfo-ink); }
.hotel-cta { padding: 8px 10px; }
.bubble { border-radius: 0; border: 3px solid #111; box-shadow: 3px 3px 0 rgba(0,0,0,.35); }
.bubble img { border-radius: 0; }
#tag { border-radius: 0; border: 2px solid #000; background: #1b1320; }

/* ---- toolbar ---- */
#toolbar { background: #19162c; border-top: 0; box-shadow: none; }
#toolbar::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; background: repeating-linear-gradient(90deg, var(--danfo) 0 12px, #111 12px 24px); border-top: 2px solid #000; }
.tb { width: 64px; height: 56px; border-radius: 0; gap: 1px; }
.tb .pi { width: 32px; height: 32px; } .tb span { font-size: 11px; text-shadow: 1px 1px 0 #000; }
.tb:hover { background: #2b2648; } .tb.on { background: #2b2648; box-shadow: inset 0 -4px 0 var(--danfo); }
.tb.m-only { display: none; }
#chatSend { width: 48px; height: 44px; border: 6px solid transparent; border-image: var(--frame-green) 4 fill / 6px stretch; background: none; border-radius: 0; }
#chatSend .pi { width: 32px; height: 32px; margin: auto; }
#chatIn { height: 44px; box-sizing: border-box; }

/* ---- quick reactions ---- */
#reactBar { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 4px; z-index: 12; }
.rx { width: 44px; height: 44px; padding: 0; border: 6px solid transparent; border-image: var(--frame-night) 4 fill / 6px stretch; background: none; display: grid; place-items: center; }
.rx .pi { width: 32px; height: 32px; } .rx:hover { border-image-source: var(--frame-hi); } .rx:active { transform: translateY(2px); }

/* ---- docked chat history ---- */
#chatDock { position: absolute; left: 12px; bottom: 66px; width: min(340px, calc(100% - 24px)); max-height: min(46%, 360px); display: flex; flex-direction: column; z-index: 11; }
#chatDock header { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 6px; font: 700 15px var(--f-display); color: var(--danfo); text-shadow: 2px 2px 0 #000; }
#chatDockList { overflow: auto; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; padding-right: 4px; min-height: 40px; }
#chatDockList .logrow b { font-family: var(--f-display); }
#chatDockList .logrow b.me { color: #8ff0b8; }

/* ---- tutorial guide (Aunty Bisi) ---- */
#guide { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); z-index: 14; display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: start; padding: 4px; }
#guide img.face { width: 64px; height: 64px; image-rendering: pixelated; background: #3a3570; border: 3px solid #000; }
#guide .g-name { font: 700 14px var(--f-display); color: var(--danfo); }
#guide .g-text { font-size: 14.5px; margin: 2px 0 6px; }
#guide .g-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#guide .g-dots { display: flex; gap: 4px; margin-right: auto; } #guide .g-dots i { width: 8px; height: 8px; background: #3d3666; border: 2px solid #000; } #guide .g-dots i.on { background: var(--danfo); }

/* ---- More sheet (phones) ---- */
#moreSheet { position: absolute; right: 8px; bottom: calc(var(--tb-h) + 10px); z-index: 45; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; width: min(320px, calc(100% - 16px)); }
#moreSheet .tb { width: auto; height: 64px; background: #2b2648; border: 3px solid #000; }

/* ---- navigator cards ---- */
.nav-sec { font: 700 13px var(--f-display); color: var(--danfo); margin: 10px 0 6px; text-shadow: 1px 1px 0 #000; display: flex; align-items: center; gap: 6px; }
.nav-sec:first-child { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.card { text-align: left; padding: 0; border: 6px solid transparent; border-image: var(--frame-hi) 4 fill / 6px stretch; background: none; display: flex; flex-direction: column; gap: 0; position: relative; min-width: 0; }
.card:hover { border-image-source: var(--frame-gold); } .card:hover .c-name { color: var(--danfo-ink); text-shadow: none; } .card:hover .c-sub { color: #3b2f05; }
.card .thumb { width: 100%; aspect-ratio: 16 / 9; display: block; background: #0f0d1d; object-fit: cover; border: 2px solid #000; box-sizing: border-box; }
.card .c-body { padding: 4px 2px 2px; min-width: 0; }
.card .c-name { font: 700 14px var(--f-display); text-shadow: 1px 1px 0 #000; }
.card .c-sub { font-size: 12px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card .c-count { position: absolute; top: 4px; right: 4px; display: flex; align-items: center; gap: 2px; background: #000c; color: #8ff0b8; font: 700 12px var(--f-display); padding: 1px 5px 1px 2px; font-variant-numeric: tabular-nums; }
.card .c-count .pi { width: 16px; height: 16px; } .card .c-count.zero { color: var(--muted); }
.card .c-badge { position: absolute; top: 4px; left: 4px; background: #ff4fa0; color: #fff; font: 700 11px var(--f-display); padding: 1px 6px; border: 2px solid #000; }
.empty-note { font-size: 13px; color: var(--muted); margin: 0 0 4px; }

/* ---- shop tags, bundles, preview ---- */
.tagn, .tags-s { position: absolute; top: -2px; left: -2px; font: 700 10px var(--f-display); padding: 0 4px; border: 2px solid #000; z-index: 1; }
.tagn { background: #1fbf74; color: #04210f; } .tags-s { background: #ff4fa0; color: #fff; left: auto; right: -2px; }
.cell s, .cd-price s { color: var(--muted); font-size: 11px; margin-right: 3px; }
.bundle { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; border: 6px solid transparent; border-image: var(--frame-hi) 4 fill / 6px stretch; padding: 2px; }
.bundle .b-name { font: 700 15px var(--f-display); color: var(--danfo); } .bundle .b-desc { font-size: 12.5px; color: var(--muted); }
.bundle .b-items { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.bundle .b-items span { display: flex; align-items: center; gap: 2px; background: #0004; padding: 0 4px 0 0; font: 600 11px var(--f-display); }
.bundle .b-items img { width: 32px; height: 32px; image-rendering: pixelated; }
.bundles { display: grid; gap: 8px; }
.cd-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- phone layout ---- */
@media (max-width: 640px) {
  :root { --tb-h: 64px; }
  body:not([data-screen="room"]) { --tb-h: 64px; }
  #toolbar { flex-direction: row; height: var(--tb-h); padding: 0 4px env(safe-area-inset-bottom, 0px); gap: 0; align-items: center; }
  #tbLeft { flex: 1; justify-content: space-around; }
  .tb { flex: 1; width: auto; height: 58px; } .tb span { font-size: 10px; }
  .tb.d-only { display: none; } .tb.m-only { display: flex; }
  #chatForm { position: absolute; left: 6px; right: 6px; bottom: calc(var(--tb-h) + 8px); display: none; gap: 6px; z-index: 31; }
  body.chat-open[data-screen="room"] #chatForm { display: flex; visibility: visible; }
  body:not([data-screen="room"]) #chatForm { display: none !important; }
  #reactBar { bottom: auto; top: 112px; left: 8px; flex-direction: column; }
  body.chat-open #reactBar { flex-direction: row; top: auto; bottom: calc(var(--tb-h) + 62px); }
  #chatDock { left: 8px; right: 8px; width: auto; bottom: calc(var(--tb-h) + 8px); max-height: 38%; }
  body.chat-open #chatDock { bottom: calc(var(--tb-h) + 112px); }
  .win { left: 6px !important; right: 6px; width: auto !important; top: auto !important; bottom: calc(var(--tb-h) + 6px); max-height: 78%; transition: transform .18s ease-out; }
  .win header { cursor: grab; padding-top: 14px; }
  .win header::before { content: ""; position: absolute; left: 50%; top: 4px; width: 44px; height: 4px; margin-left: -22px; background: #6b6394; }
  #infostand { left: 6px; right: 6px; width: auto; bottom: calc(var(--tb-h) + 6px); }
  #guide { top: 150px; }
  .cards { grid-template-columns: 1fr 1fr; }
}

/* ---- Lagos clock (top bar) ---- */
.clock { height: 44px; display: flex; align-items: center; gap: 4px; padding: 0 6px; border: 6px solid transparent; border-image: var(--frame-night) 4 fill / 6px stretch; background: none; font: 700 13px var(--f-display); color: var(--ink); text-shadow: 1px 1px 0 #000; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock .pi { width: 16px; height: 16px; }
@media (max-width: 640px) { .clock span { display: none; } }
/* check-in: the 18+ confirmation */
.ci-age { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 4px; }
.ci-age input { width: 18px; height: 18px; accent-color: var(--danfo); }
/* a public room the hotel has closed (admin dashboard) */
.card.closed { opacity: .55; filter: grayscale(.6); }
/* accounts: save your progress, sign in, Google */
#windows.top { z-index: 90; } /* above the check-in screen when signing in from there */
.linkbtn { background: none; border: 0; padding: 0; color: var(--danfo); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cta-acct { margin: 0; font-size: 13px; color: #fff; text-shadow: 1px 1px 0 #000; } .cta-acct:empty { display: none; }
.ci-signin { margin: 8px 0 0; text-align: center; } .ci-signin .linkbtn { font-size: 14px; }
.btn.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 3px solid #000; border-image: none; border-radius: 0; font-weight: 600; }
.btn.gbtn span { color: #1f1f1f; }
.acct-or { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; color: var(--muted); font-size: 12px; }
.acct-or::before, .acct-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.acct-err { color: #ff8b7a; margin: 0; min-height: 1em; } .acct-switch { margin-top: 10px; }

/* ---- pickpocket minigame (js/pickpocket.js) ---- */
#pick { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(360px, calc(100% - 24px)); z-index: 18; padding: 4px 8px 6px;
  border: 8px solid transparent; border-image: var(--frame-panel) 4 fill / 8px stretch; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); }
#pick.fail, #pick.miss { border-image-source: var(--frame-red); } #pick.ok { border-image-source: var(--frame-green); }
#pick.flash .pk-track { animation: pk-flash .5s; }
@keyframes pk-flash { 30% { border-color: #f0a020; box-shadow: 0 0 0 3px #f0a020; } }
.pk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--f-display); }
.pk-head b { color: var(--danfo); text-shadow: 2px 2px 0 #000; font-size: 16px; overflow-wrap: anywhere; }
.pk-dots { display: flex; gap: 4px; flex: none; } .pk-dots i { width: 12px; height: 12px; border: 2px solid #000; background: var(--panel-hi); }
.pk-dots i.clean { background: var(--green); } .pk-dots i.sloppy { background: #f0a020; }
.pk-track { position: relative; height: 38px; margin: 18px 0 10px; background: #1b1320; border: 3px solid #000; }
.pk-zone { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(90deg, rgba(20,160,97,.55) 0 4px, rgba(20,160,97,.38) 4px 8px); border-inline: 2px solid #50dc8c; }
.pk-zone .pi { width: 16px; height: 16px; }
.pk-hand { position: absolute; top: -14px; bottom: 0; width: 2px; margin-left: -1px; background: var(--danfo); pointer-events: none; }
.pk-hand .pi { position: absolute; top: -6px; left: -7px; width: 16px; height: 16px; }
.pk-time { position: absolute; left: 0; bottom: -8px; height: 3px; width: 100%; background: var(--red); }
.pk-msg { font-size: 13px; color: var(--muted); min-height: 2.7em; margin-bottom: 4px; }
.pk-row { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
@media (max-width: 640px) { #pick { bottom: 8px; } }
