/* JustKaizoXD World — cozy island theme: soft white cards on a daytime sky, warm coral accent. */
:root {
  --ink: #2a2f3a;
  --dim: #6b7280;
  --faint: #a3a9b6;
  --card: rgba(255, 255, 255, 0.92);
  --card-solid: #ffffff;
  --soft: #f3f1ec;
  --soft-hover: #e9e5dd;
  --line: rgba(42, 47, 58, 0.1);
  --accent: #e8835a;
  --accent-ink: #c45f37;
  --live: #e5534b;
  --ok: #3ccf91;
  --warn: #f5b83d;
  --gold: #e8a33d;
  --shadow: 0 8px 28px rgba(40, 50, 70, 0.14), 0 2px 6px rgba(40, 50, 70, 0.08);
  --r: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --sans: 'Nunito', system-ui, sans-serif;
  font-family: var(--sans);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #a9d3f7; color: var(--ink); -webkit-tap-highlight-color: transparent; }
body { font-size: 15px; line-height: 1.4; overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg.i { width: 20px; height: 20px; flex: none; display: block; }
[data-icon] { display: inline-flex; }
.num { font-variant-numeric: tabular-nums; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--faint); }
.dot.online { background: var(--ok); } .dot.idle { background: var(--warn); } .dot.dnd { background: var(--live); }
.dot.live { background: var(--live); box-shadow: 0 0 0 3px rgba(229,83,75,.22); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(229,83,75,0); } }

.loading { position: fixed; inset: 0; display: grid; place-items: center; z-index: 50; transition: opacity .5s;
  background: linear-gradient(#7fbdf5, #cfe6fb 60%, #ffe3c8); }
.loading .logo svg { width: 56px; height: 56px; color: #fff; animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.loading.done { opacity: 0; pointer-events: none; }
.noscript { padding: 2rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 12px;
  background: var(--card); box-shadow: var(--shadow); font-size: 14px; font-weight: 800; white-space: nowrap; transition: transform .12s, background .12s; }
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.square { width: 40px; padding: 0; }
.btn.primary { width: 100%; height: 50px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 900; box-shadow: 0 6px 18px rgba(232,131,90,.4); }
.btn.primary:hover { background: #ee8d64; }
.btn.primary:disabled { opacity: .6; cursor: wait; }
.btn.live-btn { background: var(--live); color: #fff; }

/* ---------- join: character creator ---------- */
.screen { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; padding: 20px max(20px, 5vw); pointer-events: none; }
.card { pointer-events: auto; width: min(400px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 24px 24px 18px; background: var(--card-solid); border-radius: 24px; box-shadow: var(--shadow); animation: rise .5s cubic-bezier(.2,.8,.2,1); scrollbar-width: thin; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.card-head .logo { width: 52px; height: 52px; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: 16px; }
.card-head .logo svg { width: 36px; height: 36px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
h1 { margin: 0; font-size: 32px; line-height: 1; font-weight: 900; }
.join-status { display: flex; align-items: center; gap: 8px; min-height: 22px; margin: 6px 0 16px; color: var(--dim); font-size: 14px; font-weight: 700; }
.join-status .live-text { color: var(--live); }
.field { display: block; margin-bottom: 16px; }
.label { display: block; font-size: 13px; font-weight: 800; color: var(--dim); margin-bottom: 8px; }
.field input { width: 100%; height: 46px; padding: 0 14px; background: var(--soft); border: 2px solid transparent; border-radius: 12px; outline: none; font-size: 16px; font-weight: 700; }
.field input:focus { border-color: var(--accent); background: #fff; }
.field input::placeholder { color: var(--faint); font-weight: 600; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kind { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; background: var(--soft); border: 2px solid transparent; border-radius: 14px; font-weight: 800; font-size: 14px; color: var(--dim); }
.kind svg.i { width: 28px; height: 28px; }
.kind:hover { background: var(--soft-hover); color: var(--ink); }
.kind[aria-checked="true"] { border-color: var(--accent); background: #fff4ee; color: var(--accent-ink); }
.colours { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.colour-row .label { margin-bottom: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .12s; position: relative; }
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.swatch.custom { background: conic-gradient(#e5534b, #f5b83d, #3ccf91, #5b8def, #a970ff, #e5534b); cursor: pointer; overflow: hidden; }
.swatch.custom[aria-pressed="true"] { background: var(--c); }
.swatch.custom::after { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 18px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.swatch.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.rules { text-align: center; color: var(--faint); font-size: 13px; font-weight: 600; margin: 12px 0 0; }

/* sign in */
.signin p { margin: 0 0 14px; color: var(--dim); font-weight: 600; }
.btn.discord { width: 100%; height: 50px; border-radius: 14px; background: #5865f2; color: #fff; font-size: 16px; font-weight: 900; text-decoration: none; box-shadow: 0 6px 18px rgba(88,101,242,.35); }
.btn.discord:hover { background: #6773f5; }
.btn.discord svg.i { width: 24px; height: 24px; }
.me-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 16px; background: var(--soft); border-radius: 14px; }
.me-row img, .avatar-fallback { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #5865f2; }
.me-names { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.me-names b { font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-names span { color: var(--dim); font-size: 13px; font-weight: 700; }
.link { color: var(--accent-ink); font-weight: 800; font-size: 14px; text-decoration: none; }
.link:hover { text-decoration: underline; }
.btn.signout { width: 100%; margin-top: 12px; box-shadow: none; background: var(--soft); text-decoration: none; color: var(--ink); }
#playerList li .handle { flex: none; color: var(--faint); font-size: 12px; font-weight: 700; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- top bar ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 14px; z-index: 5; pointer-events: none; }
.top > * { pointer-events: auto; }
.spacer { flex: 1; pointer-events: none; }
.brand { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; background: var(--ink); color: #fff; border-radius: 12px; font-weight: 900; font-size: 15px; box-shadow: var(--shadow); }
.brand svg.i { width: 24px; height: 24px; }
.status { display: flex; align-items: center; height: 40px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.stat { display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 13px; background: none; border: 0; font-size: 14px; font-weight: 800; min-width: 0; }
button.stat:hover { background: var(--soft); }
.stat svg.i { width: 18px; height: 18px; color: var(--dim); }
#liveText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34vw; color: var(--dim); }
#livePill.live #liveText { color: var(--live); }
.sep { width: 1px; height: 20px; background: var(--line); }
.voice-group { display: flex; gap: 4px; }
#voiceBtn .num { color: var(--dim); }
#voiceBtn.on { background: #e8faf2; color: #1f8f5f; }
#voiceBtn.muted-mic { background: #fdecea; color: var(--live); }

/* ---------- panels ---------- */
.panel { position: fixed; top: 66px; right: 14px; width: min(320px, calc(100vw - 28px)); max-height: 70vh; overflow: auto; padding: 16px 18px; z-index: 6;
  background: var(--card-solid); border-radius: var(--r); box-shadow: var(--shadow); animation: rise .2s; }
.panel h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.panel ul { list-style: none; margin: 0; padding: 0; }
#playerList li { display: flex; align-items: center; gap: 10px; min-height: 38px; border-top: 1px solid var(--line); font-weight: 700; }
#playerList li:first-child { border-top: 0; }
#playerList li > i:first-child { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
#playerList li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#playerList li .tag, .admin-list li .tag { flex: none; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); background: var(--soft); padding: 2px 7px; border-radius: 6px; }
#playerList li.admin .tag:first-of-type { color: var(--gold); background: #fdf3e3; }
#playerList li svg.i { width: 16px; height: 16px; color: var(--dim); }
#playerList li.speaking svg.i { color: var(--ok); }
#playerList li button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; background: var(--soft); border: 0; border-radius: 8px; color: var(--ink); }
#playerList li button.off { color: var(--live); }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; align-items: center; }
.keys dt { display: flex; gap: 3px; }
.keys dd { margin: 0; color: var(--dim); font-weight: 600; }
kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; background: var(--soft); border-radius: 6px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); font: 800 12px var(--sans); color: var(--ink); }
.note { color: var(--dim); font-size: 13px; margin: 12px 0 0; font-weight: 600; }
.row { display: flex; gap: 12px; align-items: center; min-height: 40px; cursor: pointer; font-weight: 700; }
.row input[type=checkbox] { appearance: none; width: 40px; height: 24px; margin: 0; border-radius: 12px; background: var(--soft-hover); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.row input[type=checkbox]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s; }
.row input[type=checkbox]:checked { background: var(--ok); }
.row input[type=checkbox]:checked::after { left: 19px; }

/* collapsible sections */
details.sec { border-top: 1px solid var(--line); padding-bottom: 4px; }
.panel > h3 + details.sec { border-top: 0; }
details[open].sec { padding-bottom: 12px; }
details > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 42px; cursor: pointer; user-select: none; font-weight: 800; }
details > summary::-webkit-details-marker { display: none; }
details > summary .chev { margin-left: auto; display: inline-flex; }
details > summary .lead + .chev { margin-left: 0; }
details > summary .chev svg.i { width: 18px; height: 18px; color: var(--dim); transition: transform .15s; }
details[open] > summary .chev svg.i { transform: rotate(180deg); }
details > summary .lead { margin-left: auto; color: var(--dim); font-size: 13px; }
.key-entry { margin-top: 12px; }
.key-entry summary span { color: var(--dim); font-size: 14px; }

/* admin */
.admin-panel { width: min(380px, calc(100vw - 28px)); max-height: 78vh; }
.role, .tag-owner { font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); background: #fdf3e3; padding: 2px 8px; border-radius: 6px; }
.tag-owner { margin-left: 6px; }
.admin-panel .row { justify-content: space-between; }
.admin-panel .row .hint { margin-left: auto; color: var(--dim); font-size: 13px; }
.inline { display: flex; gap: 6px; margin: 6px 0; }
.inline > input, .inline > select { flex: 1; min-width: 0; }
.panel select, .panel input:not([type=checkbox]), .panel textarea { height: 38px; padding: 0 10px; background: var(--soft); border: 2px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 700; outline: none; }
.panel textarea { width: 100%; height: auto; padding: 8px 10px; resize: vertical; }
.panel select:focus, .panel input:focus, .panel textarea:focus { border-color: var(--accent); background: #fff; }
.seg { display: flex; gap: 4px; }
.seg button { height: 32px; min-width: 44px; background: var(--soft); border: 0; border-radius: 8px; font-weight: 800; color: var(--dim); }
.seg button[aria-pressed="true"] { color: #fff; background: var(--ink); }
.time-seg { flex-wrap: wrap; margin: 4px 0; }
.time-seg button { flex: 1; color: var(--ink); }
.time-seg button:hover { background: var(--soft-hover); }
.admin-panel .btn { height: 36px; box-shadow: none; background: var(--soft); font-size: 13px; }
.admin-panel .btn:hover { background: var(--soft-hover); }
.admin-panel .btn svg.i { width: 16px; height: 16px; }
.admin-list { list-style: none; margin: 4px 0 0; padding: 0; }
.admin-list li { display: flex; align-items: center; gap: 6px; min-height: 40px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.admin-list li:first-child { border-top: 0; }
.admin-list li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-list li > i:first-child { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.admin-list li .acts { display: flex; gap: 3px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.admin-list li .acts button { height: 28px; padding: 0 8px; background: var(--soft); border: 0; border-radius: 8px; font-size: 12px; font-weight: 800; color: var(--ink); }
.admin-list li .acts button:hover { background: var(--soft-hover); }
.admin-list li .acts button.bad { color: var(--live); }
.admin-list li .acts button:disabled { opacity: .35; cursor: default; }
.admin-list li.empty { color: var(--faint); }
.new-key { display: flex; flex-direction: column; gap: 6px; padding: 12px; margin: 6px 0; background: #fdf3e3; border-radius: 12px; }
.new-key .label { color: var(--accent-ink); margin: 0; }
.new-key code { font-size: 12px; word-break: break-all; user-select: all; }

/* ---------- chat ---------- */
.chat { position: fixed; left: 14px; bottom: calc(14px + var(--safe-b)); width: min(380px, calc(100vw - 28px)); z-index: 5; }
.log { max-height: 32vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; scrollbar-width: none; align-items: flex-start;
  mask-image: linear-gradient(to bottom, transparent, #000 24px); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24px); }
.log::-webkit-scrollbar { display: none; }
.msg { max-width: 100%; padding: 6px 12px; background: var(--card); border-radius: 14px; box-shadow: 0 2px 8px rgba(40,50,70,.08); overflow-wrap: anywhere; font-weight: 600; animation: msgIn .2s ease-out; transition: opacity 1s; }
.msg b { font-weight: 900; margin-right: 6px; }
.msg.system { background: rgba(255,255,255,.6); color: var(--dim); font-size: 13px; box-shadow: none; }
.msg .badge { display: inline-flex; vertical-align: -3px; margin-right: 4px; color: var(--gold); }
.msg .badge svg.i { width: 16px; height: 16px; }
.chat.idle .msg:not(:nth-last-child(-n+3)) { opacity: 0; }
@keyframes msgIn { from { opacity: 0; transform: translateY(4px); } }
#chatInput { width: 100%; height: 46px; padding: 0 16px; background: var(--card); border: 2px solid transparent; border-radius: 14px; box-shadow: var(--shadow); outline: none; font-size: 16px; font-weight: 700; }
#chatInput:focus { background: #fff; border-color: var(--accent); }
#chatInput::placeholder { color: var(--faint); }

/* ---------- emotes ---------- */
.reactions { position: fixed; right: 14px; bottom: calc(14px + var(--safe-b)); display: flex; flex-direction: row-reverse; gap: 6px; z-index: 5; }
.reactions button { height: 46px; min-width: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; background: var(--card); border: 0; border-radius: 14px; box-shadow: var(--shadow); font-weight: 800; font-size: 14px; transition: transform .12s, background .12s; }
.reactions button span { display: none; }
.reactions button:hover { transform: translateY(-2px); background: #fff; }
.reactions button:hover span { display: inline; }
.reactions:not(.open) button:not(.react-toggle) { display: none; }
.reactions .react-toggle { padding: 0; width: 46px; color: var(--accent); }
.reactions.open .react-toggle { background: var(--accent); color: #fff; }

/* ---------- toasts, announcements, prompts ---------- */
.toasts { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; z-index: 8; pointer-events: none; width: min(420px, calc(100vw - 28px)); }
.toast { padding: 10px 16px; background: var(--card-solid); border-radius: 12px; box-shadow: var(--shadow); text-align: center; font-weight: 700; animation: rise .2s; transition: opacity .4s; }
.toast.warn { background: #fff6e5; color: #8a5a00; }
.announce { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 28px)); display: flex; align-items: center; gap: 12px; padding: 14px 18px; z-index: 9;
  background: var(--accent); color: #fff; border-radius: 16px; box-shadow: var(--shadow); font-size: 16px; font-weight: 800; animation: rise .3s; }
.announce svg.i { width: 24px; height: 24px; }
.prompt { position: fixed; left: 50%; bottom: 26%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; z-index: 7;
  background: var(--card-solid); border: 0; border-radius: 14px; box-shadow: var(--shadow); font-weight: 800; white-space: nowrap; animation: rise .15s; }
.prompt kbd { background: var(--ink); color: #fff; box-shadow: none; min-width: 28px; height: 28px; }
.prompt:not(:has(kbd:not([hidden]))) { padding-left: 16px; }

/* ---------- touch controls ---------- */
.stick { position: fixed; left: 26px; bottom: calc(110px + 15vh + var(--safe-b)); width: 110px; height: 110px; border-radius: 50%; z-index: 4; background: rgba(255,255,255,.35); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); touch-action: none; }
.stick .knob { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.jump-btn { position: fixed; right: 24px; bottom: calc(118px + 15vh + var(--safe-b)); width: 62px; height: 62px; display: grid; place-items: center; z-index: 4; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: var(--shadow); touch-action: none; }
.jump-btn svg.i { width: 26px; height: 26px; }

/* ---------- stream player ---------- */
.player { position: fixed; right: 14px; top: 66px; width: min(480px, calc(100vw - 28px)); z-index: 7; background: var(--card-solid); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; animation: rise .2s; }
.player-bar { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; font-weight: 800; }
.player-bar span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-bar .btn { height: 32px; width: 32px; box-shadow: none; background: var(--soft); }
.player-frame { aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }


/* ---------- creator: tabs, items, coins, shop ---------- */
.coins { display: inline-flex; align-items: center; gap: 5px; font-weight: 900; color: #b9741c; background: #fdf3e3; padding: 4px 10px 4px 6px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.coins svg.i { width: 20px; height: 20px; color: #e8a33d; }
.hud-coins { height: 40px; padding: 0 14px 0 10px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.creator-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.creator-tabs button { flex: 1; min-width: 56px; height: 34px; border: 0; border-radius: 10px; background: var(--soft); font-weight: 800; font-size: 13px; color: var(--dim); }
.creator-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.creator-pane { min-height: 150px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.creator-pane > .label { margin: 4px 0 -4px; }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.item { position: relative; min-height: 40px; padding: 6px 6px; border: 2px solid transparent; border-radius: 10px; background: var(--soft); font-weight: 800; font-size: 12.5px; line-height: 1.15; color: var(--ink); }
.item:hover { background: var(--soft-hover); }
.item[aria-pressed="true"] { border-color: var(--accent); background: #fff4ee; color: var(--accent-ink); }
.item.locked { color: var(--dim); }
.item .price { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 2px; font-size: 11px; color: #b9741c; }
.item .price svg.i { width: 13px; height: 13px; color: #e8a33d; }
.buy-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; background: #fdf3e3; border-radius: 12px; font-weight: 700; font-size: 14px; }
.buy-bar #buyText { flex: 1; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.buy-bar #buyText svg.i { width: 16px; height: 16px; color: #e8a33d; }
.buy-bar .btn { height: 34px; box-shadow: none; background: #e8a33d; color: #fff; }
.buy-bar .btn:disabled { background: var(--soft-hover); color: var(--dim); cursor: default; }
.close-wardrobe { display: none; width: 34px; height: 34px; box-shadow: none; background: #fff; }
body.wardrobe .close-wardrobe { display: inline-flex; }
body.wardrobe .signout-link { display: none; }
body.wardrobe #hud .top, body.wardrobe #hud .chat, body.wardrobe #hud .reactions, body.wardrobe #hud .stick, body.wardrobe #hud .jump-btn, body.wardrobe #portalPrompt { display: none; }
body.wardrobe .join-status, body.wardrobe .card-head, body.wardrobe .rules { display: none; }

@media (max-width: 720px), (pointer: coarse) {
  .screen { align-items: flex-end; padding: 12px; }
  .card { width: 100%; max-height: 60vh; padding: 18px 18px 14px; border-radius: 22px; }
  .card-head .logo { width: 44px; height: 44px; } h1 { font-size: 26px; }
  .top { padding: 10px; gap: 6px; }
  .brand span { display: none; } .brand { padding: 0 8px; }
  .hud-coins { padding: 0 10px 0 6px; }
  .items { grid-template-columns: repeat(2, 1fr); }
  #liveText { max-width: 26vw; }
  #voiceLabel { display: none; }
  #watchBtn span { display: none; }
  .chat { width: calc(100vw - 28px); }
  .chat .log { max-height: 15vh; }
  .reactions { bottom: auto; top: 62px; right: 10px; flex-direction: column-reverse; }
  .panel { top: 62px; right: 66px; width: min(290px, calc(100vw - 80px)); }
  .player { top: auto; bottom: calc(220px + var(--safe-b)); left: 14px; right: 14px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
