@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Lilita+One&display=swap");

:root {
  --bg: #0d1020;
  --bg2: #151a33;
  --panel: #1b2142;
  --panel2: #232a52;
  --line: #2f3868;
  --ink: #eef1ff;
  --muted: #9aa3d1;
  --accent: #ffd23f;
  --accent-ink: #1a1400;
  --good: #34d399;
  --bad: #f87171;
  --shield: #7dd3fc;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 10% -10%, #2a1f5c 0%, transparent 60%),
              radial-gradient(900px 500px at 110% 10%, #0f3a5c 0%, transparent 55%), var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
h1, h2, h3, .display { font-family: "Lilita One", "Fredoka", sans-serif; font-weight: 400; letter-spacing: .5px; margin: 0; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--ink); }
a { color: var(--accent); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.btn {
  border: 0; border-radius: 12px; padding: 12px 20px; font-weight: 600; font-size: 16px;
  background: var(--panel2); color: var(--ink); box-shadow: 0 4px 0 rgba(0,0,0,.35);
  transition: transform .06s, filter .15s; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.danger { background: #e2465a; color: #fff; }
.btn.good { background: #10b981; color: #fff; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.btn.big { font-size: 20px; padding: 16px 28px; border-radius: 14px; }
.btn.sm { padding: 6px 12px; font-size: 14px; border-radius: 9px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label, .lbl { font-size: 14px; color: var(--muted); font-weight: 500; }
.input, select, textarea {
  background: var(--bg2); border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; outline: none;
}
.input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 200px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; line-height: 1.5; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.toggle input { width: 44px; height: 24px; appearance: none; background: var(--line); border-radius: 99px; position: relative; cursor: pointer; flex: none; transition: background .2s; }
.toggle input::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: left .2s; }
.toggle input:checked { background: var(--good); }
.toggle input:checked::after { left: 23px; }
.seg { display: inline-flex; background: var(--bg2); border-radius: 10px; padding: 3px; border: 2px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 7px 12px; border-radius: 7px; font-weight: 600; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.val { font-weight: 700; color: var(--accent); min-width: 56px; text-align: right; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--panel2); font-size: 13px; font-weight: 600; }

.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: rgba(13,16,32,.7); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 20; }
.brand { font-family: "Lilita One"; font-size: 24px; display: flex; align-items: center; gap: 10px; }
.brand .bolt { color: var(--accent); }

/* toasts */
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; align-items: center; pointer-events: none; }
.toast { background: #000c; border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; font-weight: 600; transition: opacity .4s, transform .4s; }
.toast.bad { border-color: var(--bad); }
.toast.good { border-color: var(--good); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* team pieces */
.tchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 99px; background: color-mix(in srgb, var(--tc) 22%, transparent); border: 2px solid var(--tc); font-weight: 600; }
.hpbar { position: relative; height: 14px; background: #0007; border-radius: 99px; overflow: hidden; }
.hpbar .hp { position: absolute; inset: 0 auto 0 0; background: var(--tc, var(--good)); transition: width .4s; border-radius: 99px; }
.hpbar .sh { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(45deg, #bae6fdcc 0 6px, #7dd3fcaa 6px 12px); transition: width .4s; border-radius: 99px; mix-blend-mode: screen; }
.fallen { filter: grayscale(.9); opacity: .6; }
.hit { animation: hit .45s; }
@keyframes hit { 0%,100% { transform: none; } 20% { transform: translateX(-6px) rotate(-1deg); } 40% { transform: translateX(6px) rotate(1deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* surge meter */
.surge { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.surge .x { font-family: "Lilita One"; font-size: 22px; color: var(--accent); text-shadow: 0 0 calc(var(--glow, 0) * 18px) #ffb800; }
.surge-track { width: 140px; height: 10px; border-radius: 99px; background: #0007; overflow: hidden; }
.surge-fill { height: 100%; background: linear-gradient(90deg, #22d3ee, #facc15, #f97316, #ef4444); background-size: 140px 100%; transition: width 1s linear; }

/* feed */
.feed { display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.feed .ev { background: var(--bg2); border-left: 4px solid var(--line); padding: 8px 10px; border-radius: 8px; font-size: 14px; animation: slidein .3s; }
.feed .ev.ko { border-color: var(--bad); background: #3b1220; font-weight: 600; }
.feed .ev.sys { border-color: var(--accent); }
.feed .ev.mend, .feed .ev.shield { border-color: var(--good); }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } }

/* podium */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin: 20px auto 10px; max-width: 760px; }
.pod { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; animation: rise .9s cubic-bezier(.2,1.4,.4,1) both; }
.pod-2 { animation-delay: .5s; } .pod-1 { animation-delay: 1s; } .pod-3 { animation-delay: 0s; }
.pod-icon { font-size: 54px; filter: drop-shadow(0 6px 10px #0008); }
.pod-1 .pod-icon { font-size: 76px; }
.pod-name { font-family: "Lilita One"; font-size: 26px; margin-top: 4px; }
.pod-score { color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.pod-block { width: 100%; border-radius: 14px 14px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--tc, #555) 85%, #fff 15%), color-mix(in srgb, var(--tc, #555) 60%, #000 40%)); display: flex; justify-content: center; padding-top: 12px; box-shadow: inset 0 -6px 0 #0004; }
.pod-block span { font-family: "Lilita One"; font-size: 48px; color: #fff; text-shadow: 0 3px 0 #0006; }
.pod-1 .pod-block { height: 190px; } .pod-2 .pod-block { height: 135px; } .pod-3 .pod-block { height: 95px; }
.pod.empty .pod-block { background: var(--panel2); }
@keyframes rise { from { opacity: 0; transform: translateY(60px) scale(.9); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* ---------- index ---------- */
.landing { max-width: 880px; margin: 0 auto; padding: 50px 20px; text-align: center; }
.landing h1 { font-size: clamp(44px, 8vw, 84px); line-height: .95; }
.landing h1 span { color: var(--accent); }
.landing .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 36px; text-align: left; }

/* ---------- host ---------- */
.host-setup { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; padding: 22px; max-width: 1400px; margin: 0 auto; }
.host-setup .col { display: flex; flex-direction: column; gap: 18px; }
.sect h2 { font-size: 22px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.slider-row { display: flex; align-items: center; gap: 12px; }
.team-edit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.team-edit .te { display: flex; gap: 6px; align-items: center; background: var(--bg2); border: 2px solid var(--line); border-radius: 10px; padding: 4px 6px; }
.team-edit .te input[type=text] { background: transparent; border: 0; padding: 6px 4px; min-width: 0; flex: 1; outline: none; }
.team-edit .te .ic { width: 42px; text-align: center; font-size: 18px; }
.team-edit .te input[type=color] { width: 30px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; flex: none; }
.team-edit .te.off { opacity: .35; }
.curve { width: 100%; height: 120px; background: var(--bg2); border-radius: 10px; border: 2px solid var(--line); }
.qpreview { max-height: 260px; overflow: auto; font-size: 14px; }
.qpreview .qi { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.qpreview .qi b { color: var(--good); }
.qpreview .qi .w { color: var(--muted); }
.create-bar { position: sticky; bottom: 0; padding: 14px 22px; background: rgba(13,16,32,.9); border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: flex-end; z-index: 10; }

.lobby { padding: 22px; max-width: 1400px; margin: 0 auto; }
.joinbox { display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; padding: 26px; }
.joinbox .code { font-family: "Lilita One"; font-size: clamp(60px, 10vw, 120px); letter-spacing: 8px; color: var(--accent); line-height: 1; }
.joinbox .url { font-size: 24px; font-weight: 600; }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 18px; }
.tcol { background: var(--panel); border: 2px solid var(--tc); border-radius: var(--radius); overflow: hidden; }
.tcol .th { background: color-mix(in srgb, var(--tc) 30%, var(--panel)); padding: 10px 12px; display: flex; align-items: center; gap: 8px; font-family: "Lilita One"; font-size: 20px; }
.tcol .th .n { margin-left: auto; font-family: "Fredoka"; font-size: 14px; font-weight: 600; background: #0005; padding: 2px 9px; border-radius: 99px; }
.tcol ul { list-style: none; margin: 0; padding: 6px; max-height: 260px; overflow: auto; }
.tcol li { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 8px; font-weight: 500; }
.tcol li:hover { background: var(--bg2); }
.tcol li .off { opacity: .45; }
.tcol li select { width: auto; padding: 2px 4px; font-size: 12px; margin-left: auto; border-width: 1px; }
.xbtn { border: 0; background: transparent; color: var(--muted); font-size: 16px; padding: 2px 6px; border-radius: 6px; }
.xbtn:hover { color: var(--bad); background: #0004; }

.live { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; padding: 18px 22px; max-width: 1600px; margin: 0 auto; }
.timer { font-family: "Lilita One"; font-size: 44px; line-height: 1; min-width: 130px; text-align: center; }
.timer.low { color: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.battle { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tcard { background: var(--panel); border: 3px solid var(--tc); border-radius: var(--radius); padding: 14px; position: relative; overflow: hidden; }
.tcard .tc-top { display: flex; align-items: center; gap: 10px; }
.tcard .tc-icon { font-size: 40px; }
.tcard .tc-name { font-family: "Lilita One"; font-size: 24px; line-height: 1; }
.tcard .tc-score { margin-left: auto; text-align: right; font-family: "Lilita One"; font-size: 26px; }
.tcard .tc-score small { display: block; font-family: "Fredoka"; font-size: 12px; color: var(--muted); font-weight: 600; }
.tcard .tc-hp { margin-top: 12px; }
.tcard .tc-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.tcard .fallen-tag { position: absolute; top: 10px; right: -34px; transform: rotate(35deg); background: var(--bad); color: #fff; font-weight: 700; padding: 3px 40px; font-size: 12px; letter-spacing: 1px; }
.tcard.dead { border-style: dashed; }
.tcard.dead .tc-icon, .tcard.dead .tc-name, .tcard.dead .hpbar { filter: grayscale(1); opacity: .55; }
.sidebar { display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 110px); position: sticky; top: 90px; }
.sidebar .feed { max-height: 50vh; }
table.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); cursor: pointer; position: sticky; top: 0; background: var(--panel); }
.ptable td { padding: 6px 8px; border-bottom: 1px solid #ffffff10; }
.ptable td.num { text-align: right; font-variant-numeric: tabular-nums; }
.paused-banner { background: var(--accent); color: var(--accent-ink); text-align: center; font-weight: 700; padding: 8px; font-size: 18px; }

.results { max-width: 1100px; margin: 0 auto; padding: 24px; text-align: center; }
.results h1 { font-size: clamp(40px, 6vw, 64px); }
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 22px 0; }
.award { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.award .a-ic { font-size: 30px; }
.award .a-t { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.award .a-n { font-family: "Lilita One"; font-size: 22px; }
.rank-list { text-align: left; max-width: 640px; margin: 0 auto; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--panel); border-radius: 12px; margin-bottom: 8px; border-left: 6px solid var(--tc); }
.rank-row .r { font-family: "Lilita One"; font-size: 22px; width: 34px; }
.rank-row .s { margin-left: auto; font-weight: 700; }

/* ---------- player ---------- */
.p-wrap { max-width: 980px; margin: 0 auto; padding: 16px; }
.p-join { max-width: 460px; margin: 8vh auto; text-align: center; }
.p-join .input { font-size: 22px; text-align: center; padding: 14px; }
.code-input { letter-spacing: 8px; font-family: "Lilita One"; font-size: 34px !important; }
.team-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.team-pick button { border: 3px solid var(--tc); background: color-mix(in srgb, var(--tc) 18%, var(--panel)); color: var(--ink); border-radius: 14px; padding: 12px; font-weight: 700; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.team-pick button.on { background: var(--tc); color: var(--on); }
.p-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 3px solid var(--tc); border-radius: var(--radius); padding: 10px 14px; }
.p-head .myteam { display: flex; align-items: center; gap: 8px; font-family: "Lilita One"; font-size: 22px; }
.p-head .myhp { flex: 1; min-width: 160px; }
.p-head .energy { font-family: "Lilita One"; font-size: 28px; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.p-head .ptimer { font-family: "Lilita One"; font-size: 26px; }
.tabs { display: flex; gap: 8px; margin: 14px 0; }
.tabs button { flex: 1; border: 0; padding: 12px; border-radius: 12px; background: var(--panel); color: var(--muted); font-weight: 700; font-size: 17px; }
.tabs button.on { background: var(--accent); color: var(--accent-ink); }
.qcard { background: var(--panel); border-radius: var(--radius); padding: 26px; text-align: center; border: 1px solid var(--line); }
.qtext { font-size: clamp(20px, 3vw, 28px); font-weight: 600; line-height: 1.3; min-height: 80px; display: flex; align-items: center; justify-content: center; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.opt { border: 0; border-radius: 14px; padding: 20px 14px; font-size: 19px; font-weight: 600; color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.35); transition: transform .06s, filter .15s; min-height: 84px; }
.opt:hover { filter: brightness(1.1); }
.opt:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.opt:nth-child(1) { background: #2563eb; } .opt:nth-child(2) { background: #db2777; } .opt:nth-child(3) { background: #059669; } .opt:nth-child(4) { background: #d97706; } .opt:nth-child(5) { background: #7c3aed; } .opt:nth-child(6) { background: #0891b2; }
.opt.right { outline: 5px solid #fff; background: #10b981 !important; }
.opt.wrong { background: #7f1d1d !important; opacity: .8; }
.typed { display: flex; gap: 10px; margin-top: 20px; }
.typed .input { font-size: 20px; }
.feedback { font-family: "Lilita One"; font-size: 30px; margin-top: 14px; min-height: 40px; }
.feedback.good { color: var(--good); } .feedback.bad { color: var(--bad); }
.streak { color: var(--accent); font-weight: 700; }
.shop h3 { font-size: 20px; margin: 18px 0 10px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.item { background: var(--panel); border: 2px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; text-align: left; color: var(--ink); }
.item:not(:disabled):hover { border-color: var(--accent); }
.item:disabled { opacity: .5; cursor: not-allowed; }
.item .it-top { display: flex; align-items: center; gap: 8px; font-family: "Lilita One"; font-size: 20px; }
.item .it-ic { font-size: 26px; }
.item .it-d { font-size: 14px; color: var(--muted); }
.item .it-amt { font-weight: 700; color: var(--good); }
.item .it-cost { margin-top: auto; font-weight: 700; color: var(--accent); }
.lvl { display: flex; gap: 4px; }
.lvl i { width: 18px; height: 6px; border-radius: 3px; background: var(--line); }
.lvl i.on { background: var(--accent); }
.targets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.target { border: 3px solid var(--tc); background: var(--panel); color: var(--ink); border-radius: 14px; padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.target:hover { background: color-mix(in srgb, var(--tc) 20%, var(--panel)); }
.target .tt { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 18px; }
.modal-bg { position: fixed; inset: 0; background: #000a; display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 20px; width: min(760px, 100%); max-height: 90vh; overflow: auto; }
.fallen-banner { background: #3b1220; border: 2px solid var(--bad); border-radius: 12px; padding: 10px 14px; margin-top: 12px; font-weight: 600; text-align: center; }
.mini-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.mini { background: var(--panel); border-radius: 10px; padding: 8px 10px; border-left: 5px solid var(--tc); font-size: 14px; font-weight: 600; }
.mini .hpbar { height: 8px; margin-top: 5px; }
.wait { text-align: center; padding: 40px 10px; }
.wait .big-ic { font-size: 90px; }
.ticker { margin-top: 14px; }
.ticker .ev { font-size: 13px; }
.flash { position: fixed; inset: 0; pointer-events: none; z-index: 40; animation: flash .5s forwards; }
@keyframes flash { from { opacity: .45; } to { opacity: 0; } }

@media (max-width: 1000px) {
  .host-setup, .live { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; }
}
@media (max-width: 560px) {
  .opts { grid-template-columns: 1fr; }
  .grid2, .team-edit { grid-template-columns: 1fr; }
  .p-head .energy { font-size: 22px; }
}

/* ---------- setting rows (label + description on the left, dropdown on the right) ---------- */
.srow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sect [data-group] > .srow:last-child { border-bottom: 0; }
.stxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stxt b { font-size: 16px; }
.stxt span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.srow select { width: auto; min-width: 92px; max-width: 290px; flex: none; padding: 8px 34px 8px 12px; font-weight: 600; cursor: pointer;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa3d1' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.team-details { margin-top: 10px; }
.team-details summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 6px 0; }
.team-details .team-edit { margin-top: 8px; }
.demo-card { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: #3a3000; border: 1px solid #a37f00; cursor: pointer; }
.demo-card input { width: 26px; height: 26px; flex: none; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.demo-card b { display: block; font-size: 17px; margin-bottom: 4px; }
.demo-card span { color: #e9dca6; font-size: 14.5px; line-height: 1.45; }
.sheet-box { background: var(--bg2); border: 2px dashed #2f8f5b; border-radius: 12px; padding: 12px; }
.qpreview .qi img { max-height: 44px; max-width: 70px; border-radius: 6px; vertical-align: middle; margin: 2px 4px; background: #fff; }

/* ---------- live join / add + drop ---------- */
.live-join .live-code { font-family: "Lilita One"; font-size: 40px; letter-spacing: 4px; color: var(--accent); line-height: 1.1; }
.live-join select, #lobby select#x { width: auto; }
.jm-url { font-size: clamp(26px, 4vw, 44px); font-weight: 700; }
.jm-code { font-family: "Lilita One"; font-size: clamp(80px, 15vw, 170px); letter-spacing: 10px; color: var(--accent); line-height: 1; }
.removed { margin-top: 10px; font-size: 14px; }
.removed .lbl { margin-bottom: 4px; }
.removed .rm { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid #ffffff10; }
.removed .rm span { flex: 1; color: var(--muted); }
.bot-tag { font-size: 11px; opacity: .7; margin-left: 4px; }

/* ---------- pictures in questions/answers ---------- */
.qimg { display: block; max-width: 100%; max-height: 34vh; margin: 0 auto 10px; border-radius: 12px; background: #fff; object-fit: contain; }
.opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.opt img { max-width: 100%; max-height: 22vh; border-radius: 10px; background: #fff; object-fit: contain; pointer-events: none; }
.answer-img { max-height: 120px; border-radius: 8px; display: block; margin: 8px auto 0; background: #fff; }
.removed-box { text-align: center; }
.qtext.short { min-height: 0; }
