:root {
  --bg: #121018; --panel: #1d1a26; --panel2: #262233; --line: #34304a;
  --text: #ece8f5; --muted: #9a94b0; --accent: #a066ff; --pink: #ff4fa3; --red: #e5484d; --green: #46c37b; --gold: #ffd34f;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.4 system-ui, sans-serif; }
body { display: flex; flex-direction: column; overflow: hidden; }
button {
  font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 12px; cursor: pointer; transition: background .15s, transform .05s;
}
button:hover:not(:disabled) { background: #312c42; }
button:active:not(:disabled) { transform: scale(.97); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); }
button.primary:hover:not(:disabled) { background: #b182ff; }
button.danger { background: #3a1f26; border-color: #6a2e38; }
button.active { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink) inset; }
button.wanted { border-color: var(--gold); box-shadow: 0 0 10px #ffd34f66; animation: wantpulse 1s infinite; }
@keyframes wantpulse { 50% { box-shadow: 0 0 18px #ffd34faa; } }
button.big { padding: 11px 18px; font-size: 15px; }
button.tiny { padding: 2px 8px; font-size: 12px; }
.muted { color: var(--muted); font-size: 12px; }
.pad { padding: 8px 12px; }
.grow { flex: 1; }
[hidden] { display: none !important; }

/* HUD */
#hud { display: flex; gap: 14px; align-items: center; padding: 8px 14px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: nowrap; position: relative; z-index: 5; }
#hud > button { flex-shrink: 0; }
.stat { display: flex; flex-direction: column; min-width: 64px; }
.stat .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat > span:last-child { font-weight: 600; font-size: 16px; }
.stat.bar { min-width: 80px; flex: 0 1 100px; }
#hudMoney { display: inline-block; }
#hudMoney.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.25); color: var(--gold); } }
.goal-chip { font-size: 12px; padding: 5px 10px; border-radius: 20px; max-width: 320px; min-width: 0; flex-shrink: 1 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spacer { flex: 1; }
.meter { height: 8px; background: #0c0a12; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.meter > div { height: 100%; width: 50%; background: #f5c542; transition: width .3s; }
.meter.mood > div { background: var(--pink); }
.meter.food > div { background: var(--green); }
.meter.xp > div { background: var(--accent); }
.meter.small { height: 6px; width: 90px; margin: 0; }
.meter.small.wide { width: 100%; margin-top: 6px; }
.meter.bored > div { background: #8b8fa8; }
.meter.hype > div { background: var(--pink); }

main { flex: 1; min-height: 0; position: relative; }

/* Stream */
#streamView { display: grid; grid-template-columns: 1fr 330px; gap: 16px; height: 100%; padding: 16px; }
.stream-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow-y: auto; }
.cam { position: relative; width: 100%; aspect-ratio: 16/9; max-height: calc(100vh - 400px); min-height: 220px; border-radius: 12px; overflow: hidden; background: #000; border: 2px solid var(--line); transition: border-color .3s, box-shadow .3s; flex-shrink: 0; }
.cam.event { border-color: var(--pink); box-shadow: 0 0 24px #ff4fa366; animation: pulse 1.2s infinite; }
.cam.shake { animation: shake .4s; }
@keyframes pulse { 50% { box-shadow: 0 0 40px #ff4fa3aa; } }
@keyframes shake { 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, -1px); } 80% { transform: translate(2px, 1px); } }
.cam-layer { position: absolute; inset: 0; }
.cam-layer:empty { pointer-events: none; }
.cam-layer svg, .cam-layer img, .cam-layer canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.cam-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 8px; }
.cam-top span { background: #000a; padding: 3px 9px; border-radius: 6px; font-weight: 600; }
.cam-top .live { background: var(--red); }
.cam-top .duration { margin-left: auto; }
.cam-event { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); background: var(--pink); padding: 5px 14px; border-radius: 20px; font-weight: 700; }
.cam-bottom { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 12px; background: #000a; padding: 6px 10px; border-radius: 8px; }
.mini { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.cam-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fx { position: absolute; bottom: 18%; font-weight: 800; font-size: 18px; animation: floatup 1.8s ease-out forwards; text-shadow: 0 2px 6px #000; white-space: nowrap; }
.fx.tip { color: var(--gold); }
.fx.tip.big { font-size: 34px; color: #fff3a0; text-shadow: 0 0 16px #ffb000, 0 2px 6px #000; }
.fx.follow { color: #c9a8ff; font-size: 14px; }
.fx.heart { color: var(--pink); font-size: 30px; }
@keyframes floatup { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { transform: translateY(-20px) scale(1.1); opacity: 1; } 100% { transform: translateY(-160px) scale(1); opacity: 0; } }

.controls { display: flex; flex-direction: column; gap: 10px; }
.control-group h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-col { display: flex; flex-direction: column; gap: 8px; }
#toyButtons button, #actionButtons button { display: flex; flex-direction: column; min-width: 80px; }
.cd { font-size: 11px; color: var(--muted); }

.side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.wishes, .chat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; min-height: 0; }
.wishes { flex: 0 0 auto; max-height: 45%; }
.chat { flex: 1; }
.chat-head { padding: 9px 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
.wish-list { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.wish { background: var(--panel2); border: 1px solid #ffd34f55; border-radius: 8px; padding: 7px 9px; display: flex; flex-direction: column; gap: 5px; animation: slidein .3s; }
.wish.urgent { border-color: var(--red); }
.wish-top { display: flex; justify-content: space-between; font-size: 12px; }
.wish .reward { color: var(--gold); font-weight: 700; }
.wish .timer { width: 100%; }
.wish .timer > div { background: var(--gold); transition: width .25s linear; }
.wish.urgent .timer > div { background: var(--red); }
.wish button { align-self: flex-start; }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } }
.chat-log { flex: 1; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 3px; }
.chat-line { word-wrap: break-word; }
.chat-line.system { color: var(--muted); font-style: italic; }
.chat-line.tip { color: var(--gold); font-weight: 600; background: #ffd34f14; padding: 3px 6px; border-radius: 6px; }
.chat-line.follow { color: var(--accent); }
.chat-line.wish { background: #ffffff0d; border-left: 3px solid var(--gold); padding: 2px 6px; }

/* Wohnung (3D) */
#homeView { position: absolute; inset: 0; }
.world { position: absolute; inset: 0; }
.world canvas { display: block; touch-action: none; cursor: grab; }
.world canvas:active { cursor: grabbing; }
.floorplan { position: absolute; top: 12px; right: 12px; padding: 8px; background: #0c0a12cc; border-radius: 12px; border: 1px solid var(--line); backdrop-filter: blur(4px); }
.fp-inner { position: relative; }
.fp-title { font-size: 11px; color: var(--muted); margin-top: 6px; text-align: center; }
.room-tile { position: absolute; background: var(--c); border-radius: 4px; padding: 3px 5px; cursor: pointer; border: 2px solid transparent; font-size: 10px; font-weight: 600; overflow: hidden; display: flex; align-items: flex-end; }
.room-tile:hover { filter: brightness(1.3); }
.room-tile.here { border-color: var(--pink); }
.room-tile .me { position: absolute; top: 2px; right: 4px; color: var(--pink); font-size: 12px; }
.room-panel { position: absolute; left: 12px; bottom: 12px; width: 280px; background: #1d1a26e6; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; backdrop-filter: blur(4px); }
.room-panel h2 { margin: 0; font-size: 18px; }
.room-image:empty { display: none; }
.room-image { border-radius: 10px; overflow: hidden; }
.room-image svg, .room-image img { width: 100%; display: block; }
.world-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: #000a; padding: 6px 12px; border-radius: 8px; font-size: 12px; color: #ccc; max-width: calc(100% - 340px); text-align: center; }

/* Fallback ohne 3D */
body.no3d .world, body.no3d .world-hint { display: none; }
body.no3d #homeView { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 16px; align-items: start; padding: 16px; position: static; height: 100%; overflow: auto; }
body.no3d .floorplan, body.no3d .room-panel { position: static; width: auto; }

/* Modals */
.overlay { position: fixed; inset: 0; background: #000b; display: flex; align-items: center; justify-content: center; z-index: 10; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; width: min(460px, 92vw); max-height: 86vh; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.modal.wide { width: min(720px, 94vw); }
.modal h1, .modal h2 { margin: 0; }
.modal-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.modal-head .close { margin-left: auto; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { padding: 5px 10px; }
.shop-list { display: flex; flex-direction: column; gap: 8px; }
.shop-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--panel2); padding: 10px 12px; border-radius: 10px; }
.shop-item.locked { opacity: .6; }
.shop-item.done { opacity: .55; }
.shop-item button { min-width: 110px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
table.summary { width: 100%; border-collapse: collapse; }
table.summary td { padding: 5px 0; border-bottom: 1px solid var(--line); }
table.summary td:last-child { text-align: right; font-weight: 600; }
#ageGate { z-index: 100; background: #0e0c14; }

.banner { position: fixed; top: 22%; left: 50%; transform: translateX(-50%); z-index: 40; pointer-events: none; text-align: center;
  background: linear-gradient(135deg, #a066ffee, #ff4fa3ee); padding: 14px 34px; border-radius: 16px; font-size: 28px; font-weight: 800;
  box-shadow: 0 10px 40px #0008; display: flex; flex-direction: column; }
.banner small { font-size: 13px; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.banner.pop { animation: pop 2.6s forwards; }
@keyframes pop { 0% { transform: translateX(-50%) scale(.5); opacity: 0; } 10% { transform: translateX(-50%) scale(1.08); opacity: 1; } 16% { transform: translateX(-50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-20px); } }

#toasts { pointer-events: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 50; align-items: center; }
.toast { background: var(--panel2); border: 1px solid var(--accent); padding: 8px 16px; border-radius: 8px; transition: opacity .5s; }
.toast.out { opacity: 0; }

/* Toy-Knöpfe mit Farbmarkierung */
.toy-row button { border-left: 4px solid var(--tc, var(--line)); }
.badge { font-size: 10px; background: #ffffff14; border: 1px solid var(--line); border-radius: 10px; padding: 1px 7px; color: var(--muted); font-weight: 600; vertical-align: middle; }
.swatch.big { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; margin: 0; }

/* Einrichten */
.edit-btn { width: 100%; }
.edit-panel { position: absolute; left: 12px; bottom: 12px; width: 340px; max-height: calc(100% - 24px); overflow-y: auto; background: #1d1a26ee; border: 1px solid var(--accent);
  border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; backdrop-filter: blur(4px); z-index: 3; }
.edit-head { display: flex; align-items: center; justify-content: space-between; }
.edit-head h2 { margin: 0; font-size: 18px; }
.edit-status { font-size: 13px; padding: 6px 8px; border-radius: 6px; background: #ffffff0a; min-height: 1em; }
.edit-status:empty { display: none; }
.edit-status.ok { background: #46c37b22; color: #8ff0b5; }
.edit-status.bad { background: #e5484d22; color: #ff9a9d; }
.edit-inv { display: flex; flex-direction: column; gap: 6px; }
.inv-item { display: flex; align-items: center; gap: 8px; text-align: left; }
.inv-item .muted:last-child { margin-left: auto; }
body.editing .world-hint { display: none; }

/* Joystick (Handy) */
.joystick { position: absolute; left: 18px; bottom: 18px; width: 120px; height: 120px; border-radius: 50%; background: #ffffff14; border: 2px solid #ffffff33;
  touch-action: none; z-index: 4; display: flex; align-items: center; justify-content: center; }
.joystick .knob { width: 50px; height: 50px; border-radius: 50%; background: #a066ffcc; box-shadow: 0 2px 10px #0008; pointer-events: none; }

/* Tutorial */
.tut-card { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); width: min(460px, calc(100vw - 20px)); z-index: 60;
  background: linear-gradient(135deg, #2a2140f5, #1d1a26f5); border: 1px solid var(--accent); border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 10px 40px #000a; display: flex; flex-direction: column; gap: 10px; animation: slidein .3s; }
.tut-text { line-height: 1.5; }
.tut-row { display: flex; gap: 8px; align-items: center; }
.tut-row .tut-skip { margin-left: auto; }
.tut-hl { outline: 3px solid var(--gold) !important; outline-offset: 3px; animation: tutpulse 1s infinite; position: relative; z-index: 5; }
@keyframes tutpulse { 50% { outline-color: #ffd34f55; } }

/* ---------- Tablet / Handy ---------- */
@media (max-width: 860px) {
  body { overflow: auto; height: auto; min-height: 100%; }
  #hud { flex-wrap: wrap; gap: 8px 12px; padding: 6px 10px; }
  .stat .label { font-size: 9px; }
  .stat > span:last-child { font-size: 14px; }
  .stat { min-width: 0; }
  .stat.bar { min-width: 56px; flex: 1 1 56px; }
  .goal-chip { order: 10; flex: 1 1 100%; max-width: none; }
  .spacer { display: none; }
  #hud > button { padding: 6px 9px; }
  main { min-height: calc(100vh - 110px); }
  #streamView { grid-template-columns: 1fr; height: auto; padding: 10px; gap: 10px; }
  .stream-left { overflow: visible; }
  .cam { max-height: none; min-height: 0; }
  .controls { gap: 6px; }
  .btn-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .btn-row > * { flex-shrink: 0; }
  .controls > .btn-row:last-child { flex-wrap: wrap; }
  .controls > .btn-row:last-child button { flex: 1; }
  .side { order: -1; }
  .stream-left { order: 0; }
  .wishes { max-height: none; }
  .wish-list { flex-direction: row; overflow-x: auto; }
  .wish { min-width: 200px; }
  .chat { max-height: 200px; min-height: 140px; }
  #homeView { position: relative; height: calc(100vh - 110px); min-height: 420px; }
  .room-panel { left: auto; right: 10px; bottom: 10px; width: min(240px, 55vw); padding: 10px; gap: 6px; }
  .room-panel h2 { font-size: 15px; }
  .room-panel button { padding: 6px 10px; }
  .edit-panel { left: 0; right: 0; bottom: 0; width: auto; max-height: 48%; border-radius: 14px 14px 0 0; }
  .world-hint { display: none; }
  .floorplan { padding: 5px; top: 8px; right: 8px; }
  .room-tile { font-size: 8px; padding: 1px 3px; }
  .modal { padding: 14px; max-height: 92vh; }
  .shop-item { flex-wrap: wrap; }
  .shop-item button { min-width: 0; }
  .banner { font-size: 20px; padding: 10px 20px; }
  .tut-card { top: auto; bottom: 10px; }
  body.editing .tut-card, body.touch .tut-card { top: 8px; bottom: auto; }
}
/* Stream: Seitenleiste auf dem Handy unter der Cam */
@media (max-width: 860px) {
  #streamView { display: flex; flex-direction: column; }
  .side { order: 2; }
  .stream-left { order: 1; }
}
body.touch .world-hint { display: none; }
@media (min-width: 861px) {
  body.streaming .tut-card { left: auto; right: 16px; top: auto; bottom: 16px; transform: none; width: 330px; }
}

/* ---------- Streamer-Simulator: Shop, Qualität, Pakete ---------- */
.hud-chip { font-size: 13px; padding: 5px 9px; border-radius: 20px; flex-shrink: 0; }
.hud-chip.static { background: var(--panel2); border: 1px solid var(--line); }
.hud-chip.parcel { background: #b0844f; border-color: #d8a868; animation: wantpulse 1.2s infinite; }
.buy-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.buy-btns button { display: flex; flex-direction: column; align-items: center; min-width: 110px; font-size: 12px; }
.buy-btns .price { font-weight: 700; font-size: 13px; }
.shop-sec { margin: 10px 0 0; font-size: 14px; color: var(--text); }
.shop-sec:first-child { margin-top: 0; }
.quality-box, .quality-info { font-size: 12px; color: var(--muted); }
.quality-box { background: var(--panel2); padding: 8px 10px; border-radius: 8px; }
.quality-info { margin-bottom: 6px; }
.warn { color: #ffb35f; }
.cam-top .quality { font-size: 12px; }
.cam-top .quality.bad { background: #8a2a2acc; }
.cam-top .quality.mid { background: #8a6a2acc; }
.cam-top .quality.good { background: #2a7a4acc; }
.cam-layer.pixel canvas, .cam-layer.pixel img { image-rendering: pixelated; }
.cam-noise { position: absolute; inset: -20%; pointer-events: none; opacity: 0; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  animation: noise .25s steps(4) infinite; }
@keyframes noise { 0% { transform: translate(0, 0); } 25% { transform: translate(-5%, 3%); } 50% { transform: translate(4%, -4%); } 75% { transform: translate(-3%, -2%); } }
.cam-buffer { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 40px; background: #000a; border-radius: 50%; width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (max-width: 860px) {
  .hud-chip { font-size: 12px; padding: 4px 8px; }
  .buy-btns button { min-width: 0; flex: 1; }
  .buy-btns { width: 100%; }
}

#hudMoney.negative { color: #ff6b6e; }

/* Auswahl-Karten (Eigenschaft, Kategorie) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 12px; min-height: 110px; }
.choice .ic { font-size: 24px; }
.choice.last { border-color: var(--accent); }
.choice .pop { font-size: 12px; font-weight: 700; color: var(--muted); }
.choice .pop.hot { color: #ff9a4f; } .choice .pop.cold { color: #7a9aff; }
.cam-top .catbadge { font-size: 12px; background: #000a; }
.incident { position: absolute; left: 12px; bottom: 48px; width: min(340px, calc(100% - 24px)); background: #1d1a26f2; border: 1px solid var(--gold);
  border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; animation: slidein .3s; z-index: 2; }
.incident .inc-title { font-weight: 800; color: var(--gold); }
.incident .meter > div { background: var(--gold); transition: width .25s linear; }
.wish.whale { border-color: #4fd1ff; box-shadow: 0 0 12px #4fd1ff55; }
@media (max-width: 860px) { .choice-grid { grid-template-columns: 1fr 1fr; } .choice { min-height: 0; } .incident { bottom: 40px; } }

.code-row input { flex: 1; min-width: 0; font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }

/* Quicktime-Events */
.qte { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 70; width: min(420px, 92vw);
  background: #1d1a26f5; border: 2px solid var(--pink); border-radius: 14px; padding: 14px 16px; box-shadow: 0 10px 40px #000c;
  display: flex; flex-direction: column; gap: 10px; touch-action: none; user-select: none; }
.qte-title { font-weight: 800; font-size: 16px; text-align: center; }
.qte-bar { position: relative; height: 26px; background: #0c0a12; border-radius: 13px; overflow: hidden; border: 1px solid var(--line); }
.qte-zone { position: absolute; top: 0; bottom: 0; background: #46c37b88; border-left: 2px solid #46c37b; border-right: 2px solid #46c37b; }
.qte-marker { position: absolute; top: -2px; bottom: -2px; width: 6px; margin-left: -3px; background: #fff; border-radius: 3px; box-shadow: 0 0 10px #fff; }
.qte-row { display: flex; justify-content: space-between; align-items: center; }
.qte-btn { padding: 10px 26px; font-size: 16px; }
.qte-msg { text-align: center; min-height: 1.2em; font-weight: 700; }
.qte-msg.ok { color: #8ff0b5; } .qte-msg.bad { color: #ff9a9d; }
/* Autopilot */
.auto-btn.on { background: #2a7a4a; border-color: #46c37b; }
.auto-status { position: fixed; right: 12px; bottom: 12px; z-index: 30; background: #1d3a2acc; border: 1px solid #46c37b; padding: 6px 12px; border-radius: 20px; font-size: 13px; pointer-events: none; }
.toggle { align-items: center; gap: 8px; cursor: pointer; }

@media (max-width: 1250px) { #hud .lbl { display: none; } #hudFood { display: none; } .goal-chip { max-width: 170px; } #hud { gap: 10px; } }

.ic.big { font-size: 26px; }
.cam-goal { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); width: min(380px, 70%); background: #000b; border: 1px solid var(--gold);
  border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; }
.cam-goal .meter { height: 8px; margin: 0; }
.cam-goal .meter > div { background: linear-gradient(90deg, var(--gold), var(--pink)); }
.cam-goal.reached { border-color: var(--pink); animation: pulse 1.2s infinite; }
@media (max-width: 860px) { .cam-goal { bottom: 40px; width: 80%; } }

.merch-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; background: var(--panel2); padding: 10px; border-radius: 10px; align-items: end; }
.merch-form label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 4px; }
.merch-form select { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px; }
.merch-form .buy-btns { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .cam-top { gap: 4px; top: 6px; left: 6px; right: 6px; }
  .cam-top span { font-size: 10px; padding: 2px 5px; white-space: nowrap; }
  .cam-top .catbadge { max-width: 38%; overflow: hidden; text-overflow: ellipsis; }
  .room-panel { max-height: 46vh; overflow-y: auto; }
}
