/* Vibe Check's table: the tuner, the side column and the Your move card,
   on the room's structure (games/room/room.css), from the tokens in
   vibe-check.css.

   Steadiness first: the tuner is as big as the height allows and never
   changes size; the Your move card keeps its place at the foot of the side
   column; what comes and goes (the target, the call, the mover's pill) is
   drawn on the dial. The tuner is drawn in its own unit, --k (a 700-wide
   tuner's pixel), so it scales as one object; words on it never go under
   their size on a phone. One light, up to the left: the cabinet, the knob
   and the card cast shadows; the window, the slot and the display are
   recessed (FRAME, "Depth"). */

/* ── the frame ───────────────────────────────────────────────────────── */
.felt.vibe { position: relative; height: calc(100dvh - 2 * var(--frame)); min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.felt.vibe.docked { grid-template-columns: minmax(0, 1fr) 320px; }
.vibe .logdock { min-height: 0; display: flex; flex-direction: column; }
.vibe .logdock:empty { display: none; }
.vibe .logdock .gamelog { flex: 1; }
.vibe .tablemain { display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; }
.vibe .gamelog.drawer { position: absolute; z-index: 30; right: 14px; top: 64px; bottom: 24px; width: min(360px, calc(100% - 28px)); box-shadow: -10px 10px 30px rgba(0, 0, 0, .45); }
.vibe .logbtn.on { background: var(--pick-tint); box-shadow: var(--pick-ring); }
.vibe .bar .tools .stop.unseen { visibility: hidden; }
.vibe .bar .more svg { display: block; }

.vibe .stagebox { flex: 1; min-height: 0; min-width: 0; container-type: size; }
.vibe .stage {
  --sw: clamp(340px, calc(100cqw - 716px), 516px);
  --bw: min(calc(100cqw - var(--sw) - 16px), calc((100cqh - 44px) * 1.08));
  height: 100%; display: grid; gap: 16px; grid-template-rows: minmax(0, 1fr);
  grid-template-columns: var(--bw) var(--sw); justify-content: center;
}
.vibe .vchips { display: none; }
.vibe .boardcol { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 10px; }
.vibe .vwhere { margin: 8px 0 0; font-size: var(--t-note); line-height: 1.4; color: var(--soft); text-align: center; min-height: 1.4em; }
.vibe .side { display: flex; flex-direction: column; gap: 16px; min-height: 0; min-width: 0; }
.vibe .vflex { flex: 1 1 0; min-height: 0; }

/* ── panels (flat: no shadows) ───────────────────────────────────────── */
.vibe .vpanel { flex: none; padding: 16px; border-radius: var(--panel-radius); background: var(--panel); border: var(--panel-edge); display: flex; flex-direction: column; gap: 12px; }
.vibe .vh { margin: 0; font: var(--display-weight) var(--t-heading)/1.2 var(--display); color: var(--ink); }
.vibe .vhrow { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.vibe .vnote { font-size: var(--t-note); line-height: 1.4; color: var(--soft); }
.vibe .vflexgap { flex: 1; }
.vibe .vfig { font: 800 var(--t-figure)/1 var(--ui-font); font-variant-numeric: tabular-nums; }

/* the score track: First to 10, both pegs */
.vibe .vtrack { position: relative; height: 34px; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); align-items: center; justify-items: center; }
.vibe .vtrackline { position: absolute; left: 8px; right: 8px; top: 15px; height: 4px; border-radius: 2px; background: rgba(247, 234, 214, .16); }
.vibe .vstop { position: relative; display: flex; align-items: center; justify-content: center; min-width: 16px; min-height: 16px; }
.vibe .vstop .tmark + .tmark { margin-left: -8px; }
.vibe .vstop .tmark { position: relative; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.vibe .vstop .tmark .tdisc { stroke: var(--den); stroke-width: 1.5; }
.vibe .vdot { width: 8px; height: 8px; border-radius: 50%; background: #6d5a44; }
.vibe .vstop.goal::before { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 4px; background: var(--btn); box-shadow: 0 0 10px rgba(255, 181, 71, .5); }
.vibe .vstop.goal .tmark { z-index: 1; }

.vibe .vteam { border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.vibe .vteam.up { box-shadow: inset 0 0 0 2px var(--turn), 0 0 18px rgba(255, 209, 102, .18); }
.vibe .vtrow { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vibe .vtname { font: var(--display-weight) 18px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vibe .vpill { flex: none; font: 600 13px/1 var(--ui-font); padding: 4px 8px; border-radius: 999px; border: 1.5px solid rgba(247, 234, 214, .4); color: #e6d6bd; white-space: nowrap; }
.vibe .vpill.hot { border-color: var(--turn); color: var(--turn); }
.vibe .vgot { flex: none; font: 800 14px/1 var(--ui-font); color: var(--den); background: var(--turn); padding: 4px 8px; border-radius: 999px; }
.vibe .vchiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.vibe .vchip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 7px; border-radius: 999px; background: var(--chip); font: 600 16px/1 var(--ui-font); white-space: nowrap; min-width: 0; max-width: 100%; }
.vibe .vchip .vcname { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vibe .vchip .vyou { font-weight: 400; }
.vibe .vchip.away { opacity: 1; }
.vibe .vchip.away .seatmark { opacity: .55; }
.vibe .vlive { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--seat); box-shadow: 0 0 0 3px color-mix(in srgb, var(--seat) 30%, transparent); }
.vibe .vpips { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; }
.vibe .vpip { height: 34px; border-radius: 8px; border: 1.5px dashed rgba(247, 234, 214, .3); display: grid; place-items: center; font: 800 16px/1 var(--ui-font); font-variant-numeric: tabular-nums; }
.vibe .vpip.played { border-style: solid; border-color: rgba(247, 234, 214, .45); }
.vibe .vpip.p4 { background: var(--turn); color: var(--den); border-color: var(--turn); }

/* earlier rounds */
.vibe .vrounds { flex: 0 1 auto; min-height: 0; overflow: hidden; padding-bottom: 6px; }
.vrlist { list-style: none; margin: 0; padding: 0; min-height: 0; overflow: auto; scrollbar-width: thin; }
.vrrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; border-top: 1px solid rgba(247, 234, 214, .10); }
.vrtext { font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vrtext b { font-weight: 600; }
.vrpts { font: 800 16px/1 var(--ui-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vrpts.none { color: var(--soft); }
.vrpts small { font-weight: 600; font-size: 13px; color: var(--soft); }
.vrnum { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--ui-font); background: rgba(247, 234, 214, .14); }
.vibe .vempty { margin: 0; }

/* who's deciding, on a phone */
.vibe .vmates { display: none; }
.vibe .vkicker { font: 700 12px/1 var(--ui-font); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }

/* ── the Your move card ──────────────────────────────────────────────── */
.vibe .vmove { flex: none; border-radius: 12px; padding: 16px; background: var(--panel); border: var(--panel-edge); display: flex; flex-direction: column; gap: 14px; min-height: 124px; justify-content: center; }
.vibe .vmove.yours { border-color: transparent; background: rgba(10, 5, 2, .34); box-shadow: inset 0 0 0 2px var(--turn), 0 0 24px rgba(255, 209, 102, .16); }
.vibe .vsay { margin: 0; font-size: var(--t-body); line-height: 1.45; }
.vibe .vmove.yours .vsay b { color: var(--turn); }
.vibe .vacts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.vibe .vacts.vclue { flex-wrap: nowrap; }
.vibe .vclueinput { flex: 1 1 auto; min-width: 0; height: var(--btn-h); font: 600 17px/1 var(--ui-font); }
.vibe .vnudge { display: inline-flex; align-items: center; gap: 4px; margin-right: auto; }
.vibe .vnudge kbd { position: static; }
.vibe .vcount { font: 800 var(--t-figure)/1 var(--ui-font); font-variant-numeric: tabular-nums; color: var(--turn); min-width: 1.2em; }
.vibe .vseg { display: inline-flex; border: 1.5px solid rgba(247, 234, 214, .35); border-radius: 10px; overflow: hidden; }
.vibe .vseg button { min-height: var(--btn-h); padding: 0 16px; border: 0; background: transparent; color: var(--ink); font: 400 16px/1 var(--ui-font); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.vibe .vseg button.on { background: var(--pick-tint); box-shadow: var(--pick-ring); font-weight: var(--pick-weight); }

/* ── the tuner ───────────────────────────────────────────────────────── */
.vcabinet { --k: calc(var(--bw, 700px) / 700); position: relative; width: 100%; max-width: 100%; padding-bottom: calc(30 * var(--k)); flex: none; }
/* (its contact shadow on the table, and the two feet) */
.vcabinet::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: calc(4 * var(--k)); height: calc(44 * var(--k)); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .6), transparent 70%); z-index: 0; }
.vfoot { position: absolute; bottom: calc(18 * var(--k)); width: calc(46 * var(--k)); height: calc(16 * var(--k)); border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #2a170a, #150b04); z-index: 0; }
.vfoot.l { left: 10%; } .vfoot.r { right: 10%; }
.vtuner {
  position: relative; z-index: 1; box-sizing: border-box; padding: calc(16 * var(--k)); border-radius: calc(20 * var(--k));
  background: linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 8%, transparent 92%, rgba(0, 0, 0, .22)),
    repeating-linear-gradient(178deg, rgba(255, 220, 170, .035) 0 2px, transparent 2px 9px, rgba(0, 0, 0, .05) 9px 11px, transparent 11px 23px),
    linear-gradient(180deg, var(--walnut-hi), var(--walnut) 55%, var(--walnut-lo));
  box-shadow: inset 0 1.5px 0 rgba(255, 214, 160, .35), inset 0 -2px 0 rgba(0, 0, 0, .4), 0 2px 3px rgba(0, 0, 0, .45), 0 22px 40px rgba(0, 0, 0, .5);
}
.vplate {
  position: relative; box-sizing: border-box; padding: calc(16 * var(--k)); border-radius: calc(10 * var(--k));
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .10) 0 1px, transparent 1px 3px), linear-gradient(180deg, var(--alu-hi), var(--alu) 60%, var(--alu-lo));
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column; gap: calc(14 * var(--k)); color: var(--card-ink);
}
.vscrew { position: absolute; width: max(8px, calc(10 * var(--k))); height: max(8px, calc(10 * var(--k))); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f4f2ec, #9a958b 70%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.vscrew::after { content: ""; position: absolute; left: 20%; right: 20%; top: calc(50% - .75px); height: 1.5px; background: #6e695f; transform: rotate(35deg); }
.vscrew.tl { left: calc(5 * var(--k)); top: calc(5 * var(--k)); } .vscrew.tr { right: calc(5 * var(--k)); top: calc(5 * var(--k)); }
.vscrew.bl { left: calc(5 * var(--k)); bottom: calc(5 * var(--k)); } .vscrew.br { right: calc(5 * var(--k)); bottom: calc(5 * var(--k)); }
.veng { font: 400 12px/1 var(--engraving); letter-spacing: .1em; color: var(--engrave); text-transform: uppercase; text-shadow: 0 1px 0 rgba(255, 255, 255, .55); white-space: nowrap; }

.vhead { min-height: max(42px, calc(48 * var(--k))); display: flex; align-items: center; gap: calc(16 * var(--k)); }
.vbrand { flex: none; display: flex; flex-direction: column; gap: 6px; width: calc(148 * var(--k)); margin-left: 4px; }
.vbrandname { font: 400 max(16px, calc(20 * var(--k)))/1 var(--display); color: #2b241c; letter-spacing: .02em; white-space: nowrap; }
.vled {
  flex: 1; min-width: 0; align-self: stretch; box-sizing: border-box; display: flex; align-items: center; gap: max(10px, calc(14 * var(--k))); padding: 0 max(12px, calc(16 * var(--k)));
  border-radius: 8px; background: linear-gradient(180deg, var(--led-bg), #1a1006); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .7);
}
.vledkick { flex: none; font: 700 12px/1 var(--ui-font); letter-spacing: .16em; text-transform: uppercase; color: var(--led-dim); }
.vclue { min-width: 0; padding: 6px 0; font: 600 max(17px, calc(21 * var(--k)))/1.15 var(--ui-font); color: var(--led); text-shadow: 0 0 12px rgba(255, 181, 71, .55); overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vled.waiting .vclue { color: var(--led-dim); text-shadow: none; font-weight: 500; }
.vledgap { flex: 1; }
.vfrom { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--ui-font); color: #c9a57a; white-space: nowrap; }
.vfrom:empty { display: none; }

.vwindow { position: relative; box-sizing: border-box; padding: calc(8 * var(--k)); border-radius: calc(10 * var(--k)); background: radial-gradient(ellipse 80% 100% at 50% 100%, var(--cream), #f6e3bf 70%, var(--cream-lo)); box-shadow: inset 0 3px 10px rgba(90, 50, 15, .35), inset 0 0 0 1px rgba(60, 30, 8, .35), 0 1px 0 rgba(255, 255, 255, .75); }
.vdial { display: block; width: 100%; height: auto; aspect-ratio: 600 / 312; overflow: visible; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.vdial.can { cursor: grab; }
.vdial.can.dragging { cursor: grabbing; }
.vdial:focus-visible { outline: 3px solid var(--card-ink); outline-offset: 4px; border-radius: 6px; }
.vdial .vband { stroke: #7a4a24; stroke-opacity: .55; stroke-width: 2.5; stroke-linejoin: round; }
.vdial .vdots circle { fill: #b5835a; }
.vneedle { stroke: var(--needle); stroke-width: calc(10 * var(--z, 1)); stroke-linecap: round; filter: drop-shadow(0 3px 3px rgba(60, 30, 8, .35)); }
.vtip { fill: var(--tip); stroke: #fff3dc; stroke-width: 3.5; filter: drop-shadow(0 2px 3px rgba(60, 30, 8, .4)); }
.vgrip { fill: transparent; stroke: none; }
.vdial.can .vgrip { stroke: #ff8c61; stroke-width: calc(3.5 * var(--z, 1)); stroke-dasharray: 8 7; fill: rgba(255, 140, 97, .08); }
.vtarget path { stroke: #2a1406; stroke-width: 2; stroke-linejoin: round; }
.vtarget path.w2 { fill: #fff6df; } .vtarget path.w3 { fill: #f2a541; } .vtarget path.w4 { fill: #c23d1d; }
.vtarget .wn { font: 400 calc(22px * min(var(--z, 1), 1.4))/1 var(--display); text-anchor: middle; fill: #2a1406; stroke: none; }
.vtarget .wn.w4 { fill: #fff6df; }
.vtarget .wplate { stroke: none; }
.vtarget .wplate.w2 { fill: #fff6df; } .vtarget .wplate.w3 { fill: #f2a541; } .vtarget .wplate.w4 { fill: #c23d1d; }
.vtarget:not(.revealed) path { stroke-dasharray: 5 4; }
.vpilltext { font: 600 14px/1 var(--ui-font); fill: #f7ead6; }
.vpilltext.b { font-weight: 700; }

.vslot { min-height: max(46px, calc(60 * var(--k))); box-sizing: border-box; padding: max(5px, calc(6 * var(--k))); border-radius: 9px; background: #2a241c; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .75), 0 1px 0 rgba(255, 255, 255, .7); display: flex; }
.vcard { flex: 1; position: relative; display: grid; grid-template-columns: 1fr 1fr; border-radius: 5px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .5); }
.vhalf { display: flex; align-items: center; gap: 10px; padding: 4px max(10px, calc(16 * var(--k))); font: 700 max(15px, calc(18 * var(--k)))/1.1 var(--ui-font); color: var(--card-ink); min-width: 0; }
.vhalf.l { background: linear-gradient(180deg, color-mix(in srgb, var(--lc, #ffa96b) 78%, #fff), var(--lc, #ffa96b)); padding-right: 24px; }
.vhalf.r { background: linear-gradient(180deg, color-mix(in srgb, var(--rc, #5fcdbf) 78%, #fff), var(--rc, #5fcdbf)); justify-content: flex-end; text-align: right; padding-left: 24px; }
.vend { min-width: 0; overflow-wrap: anywhere; }
.varrow { flex: none; stroke: var(--card-ink); }
.vcardhub { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #2a241c; box-shadow: 0 0 0 3px #f7ead6; display: grid; place-items: center; }
.vcardhub svg { display: block; }

.vcontrols { min-height: max(36px, calc(64 * var(--k))); display: flex; align-items: center; gap: calc(16 * var(--k)); min-width: 0; }
.vreadout { flex: none; width: calc(128 * var(--k)); height: calc(56 * var(--k)); border-radius: 6px; background: linear-gradient(180deg, #f6e3b8, #e7cf95); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .7); overflow: hidden; }
.vreadout svg { display: block; width: 100%; height: 100%; }
.vwave1 { fill: none; stroke: #ff9f5a; stroke-width: 3; stroke-linecap: round; }
.vwave2 { fill: none; stroke: #4fc3b4; stroke-width: 2.5; stroke-linecap: round; opacity: .9; }
.vtoggles { display: flex; gap: calc(18 * var(--k)); }
.vtog { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vtoggle { width: 14px; height: 26px; border-radius: 7px; background: #3a352d; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6); display: block; }
.vflip { display: block; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #9d978c); box-shadow: 0 2px 3px rgba(0, 0, 0, .4); transition: transform var(--m-press, 150ms); }
.vtoggle.down .vflip { transform: translateY(12px); }
.vtuned { display: flex; align-items: center; gap: 8px; }
.vlamp { width: 10px; height: 10px; border-radius: 50%; background: #6b4a22; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.vlamp.on { background: #ff9d2e; box-shadow: 0 0 8px #ff9d2e, 0 0 0 2px rgba(0, 0, 0, .25); }
.vlamp.blink { animation: vblink 1s steps(2, jump-none) infinite; }
@keyframes vblink { 50% { background: #6b4a22; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); } }
.vgap { flex: 1; }

.vknob { position: relative; flex: none; width: max(36px, calc(64 * var(--k))); height: max(36px, calc(64 * var(--k))); border-radius: 50%; background: repeating-conic-gradient(from 0deg, #cfcac0 0 4deg, #9e988d 4deg 8deg); box-shadow: 0 2px 3px rgba(0, 0, 0, .4), 0 10px 18px rgba(0, 0, 0, .35); }
.vknobface { position: absolute; inset: 11%; border-radius: 50%; background: radial-gradient(circle at 38% 30%, #fbfaf6, #c9c4ba 55%, #8e887d); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .25); }
.vknobmark { position: absolute; inset: 0; display: block; }
.vknobmark::after { content: ""; position: absolute; left: calc(50% - 2px); top: 17%; width: 4px; height: 20%; border-radius: 2px; background: var(--tip); }

/* ── the reveal's band and badge (house announce, ADR 0051) ───────────── */
.vbadge .vbdisc { fill: #f2a541; stroke: var(--den); stroke-width: 3; }
.vbadge.p4 .vbdisc { fill: #c23d1d; }
.vbadge.p2 .vbdisc { fill: #fff6df; }
.vbadge.p0 .vbdisc { fill: #6d5a44; }
.vbadge .vbring { fill: none; stroke: var(--den); stroke-width: 1.5; opacity: .35; }
.vbadge .vbnum { font: 400 40px/1 var(--display); fill: var(--den); }
.vbadge.p4 .vbnum { fill: #fff6df; }

/* ── the result ──────────────────────────────────────────────────────── */
.house-scrim-result .house-sheet.v-result { --house-sheet-width: 560px; }
.vfinal { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 0; font-size: 18px; }
.vfinal b { font: 800 28px/1 var(--ui-font); font-variant-numeric: tabular-nums; margin-left: 8px; }
.vfteam { display: inline-flex; align-items: center; gap: 8px; }
.vresult { text-align: left; }
.vresult .vrlist { max-height: 40vh; }

/* ── the waiting room's teams ────────────────────────────────────────── */
.vwait { display: flex; flex-direction: column; gap: 14px; }
.vwlead { margin: 0; }
.vwteams { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vwteams.one { grid-template-columns: 1fr; }
.vwteam { min-width: 0; }
.vwhead { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.vwtname { font: var(--display-weight) 18px/1.2 var(--display); color: var(--ink); min-width: 0; flex: 1; }
input.vwtname { background: transparent; border: 0; border-bottom: 1.5px dashed rgba(247, 234, 214, .4); padding: 6px 0; min-height: 36px; }
input.vwtname:focus-visible { outline: none; border-bottom: 2px solid var(--focus); }
.vwcount { font-size: var(--t-note); }
.vwlist { list-style: none; margin: 0; padding: 0; }
.vwrow { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid rgba(247, 234, 214, .10); }
.vwrow.picked { background: var(--pick-tint); box-shadow: var(--pick-ring); border-radius: 8px; padding: 0 6px; }
.vwname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.vwname .tag { margin-left: 6px; }
.vwhere { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--soft); }
.vwhere.on { color: var(--good); }
.vwdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.vswitch { font-size: 14px; }
.vwdrop { min-width: 32px; }
.vwhint { margin: 0; font-size: var(--t-note); }
.vdeck { position: relative; display: flex; align-items: center; gap: 16px; min-height: 120px; padding-top: 12px; border-top: 1px solid rgba(247, 234, 214, .10); }
.vdecktext { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vdecktext p { margin: 0; font-size: 15px; line-height: 1.4; }
.vfan { position: relative; flex: 0 0 320px; height: 120px; }
.vfancard { position: absolute; width: 176px; height: 58px; border-radius: 6px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; font: 700 13px/1.1 var(--ui-font); color: var(--card-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 2px rgba(0, 0, 0, .45), 0 10px 18px rgba(0, 0, 0, .4); }
.vfancard span { display: flex; align-items: center; padding: 0 10px; }
.vfancard span:first-child { background: var(--lc); }
.vfancard span:last-child { background: var(--rc); justify-content: flex-end; text-align: right; }
.vfancard.c0 { left: 0; top: 40px; transform: rotate(-7deg); }
.vfancard.c1 { left: 76px; top: 24px; transform: rotate(-1deg); }
.vfancard.c2 { left: 144px; top: 38px; transform: rotate(6deg); }
.lobbyart .vcabinet { --bw: 300px; width: 300px; }
.lobbyart .vcontrols, .lobbyart .vhead, .lobbyart .vslot { display: none; }

/* ── tall windows: the tuner above the side column ────────────────────── */
@media (max-aspect-ratio: 6/5) and (min-width: 641px) {
  .vibe .stage { --bw: min(100cqw, calc(100cqh * .56 * 1.136), 700px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .vibe .boardcol { flex: none; width: var(--bw); padding-top: 0; }
  .vibe .side { flex: 1 1 0; width: min(100%, 700px); }
  .vibe .vrounds { display: none; }
}

/* ── phones ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .felt.vibe { height: 100dvh; gap: 0; }
  .vibe .tablemain { gap: 6px; }
  .felt.vibe .bar .tools { display: none; }
  .felt.vibe .bar .more { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .vibe .stage { --bw: 100cqw; display: flex; flex-direction: column; gap: 10px; }
  .vibe .vchips { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
  .vibe .vtchip { flex: 1 1 0; min-width: 0; height: 44px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; background: var(--panel); border: var(--panel-edge); }
  .vibe .vtchip.up { box-shadow: inset 0 0 0 2px var(--turn); border-color: transparent; }
  .vibe .vtchip .vtname { flex: 1; font-size: 16px; }
  .vibe .vtchip .vfig { font-size: 18px; }
  .vibe .vtchip .vnote { white-space: nowrap; }
  .vibe .vchipnote { flex: 1 0 100%; margin: -2px 0 0; text-align: center; font-size: 13px; color: var(--soft); }
  .vibe .boardcol { flex: none; padding-top: 0; }
  .vibe .vwhere { display: none; }
  .vibe .side { flex: 1 1 0; gap: 8px; }
  .vibe .vmates { order: -1; }
  .vibe .vflex { display: none; }
  .vibe .vmove { margin-top: auto; }
  .vhalf .varrow { display: none; }
  .vhalf.l { padding-right: 24px; } .vhalf.r { padding-left: 24px; }
  .vibe .vscore, .vibe .vrounds { display: none; }
  .vibe .vmates:not([hidden]) { display: flex; flex-direction: column; gap: 8px; }
  .vibe .vmates .vchip { height: 36px; font-size: 15px; padding-right: 10px; }
  .vibe .vmates .vnote { margin: 0; }
  .vibe .vmove { padding: 14px; gap: 12px; min-height: 0; margin-bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
  .vibe .vacts { gap: 8px; }
  .vibe .vacts .btn:last-child { flex: 1 1 auto; }
  .vibe .vacts.vclue { flex-wrap: wrap; }
  .vibe .vacts.vclue .vclueinput { flex: 1 0 100%; }
  .vibe .vnudge { display: none; }
  .vibe .vmove kbd { display: none; }
  .vbrand, .vreadout, .vtoggles { display: none; }
  .vplate { gap: 8px; padding: 10px; }
  .vtuner { padding: 10px; border-radius: 16px; }
  .vhead { min-height: 42px; }
  .vcontrols { gap: 10px; }
  .vfinal { gap: 16px; font-size: 16px; }
  .vwteams { grid-template-columns: 1fr; gap: 12px; }
  .vfan { display: none; }
  .vwrow { grid-template-columns: 24px minmax(0, 1fr) auto auto; }
  .vwrow .vwhere { display: none; }
}
@media (max-width: 400px) {
  .vfrom > span { display: none; }
}
@media (max-width: 640px) and (max-height: 720px) {
  .vcontrols, .vibe .vchipnote, .vibe .vmates .vnote, .vibe .vkicker { display: none !important; }
  .vibe .stage { gap: 8px; }
}
@media (max-width: 360px) {
  .vtgame { display: none; }
  .vhalf { font-size: 14px; gap: 6px; }
  .vhalf .varrow { display: none; }
  .vledkick { display: none; }
}

/* phones on their side: the tuner at the left, as tall as the screen */
@media (max-height: 520px) {
  #app { padding: 0; }
  .felt.vibe {
    height: 100dvh; border: 0; border-radius: 0; gap: 0;
    padding: max(4px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(6px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  }
  .felt.vibe .bar .tools { display: none; }
  .felt.vibe .bar .more { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 32px; }
  .vibe .tablemain { gap: 2px; }
  .vibe .stage { --sw: min(360px, calc(100cqw - 300px)); --bw: min(calc(100cqw - var(--sw) - 12px), calc((100cqh - 8px) * 1.3)); gap: 12px; display: grid; grid-template-columns: var(--bw) var(--sw); }
  .vibe .vchips { display: none; }
  .vibe .boardcol { padding-top: 0; justify-content: center; }
  .vibe .vwhere, .vcabinet::after, .vfoot { display: none; }
  .vcabinet { padding-bottom: 0; }
  .vbrand, .vreadout, .vtoggles, .vcontrols { display: none; }
  .vplate { gap: 6px; padding: 8px; }
  .vtuner { padding: 8px; border-radius: 14px; }
  .vhead { min-height: 36px; }
  .vslot { min-height: 40px; }
  .vibe .side { gap: 6px; }
  .vibe .vrounds, .vibe .vmates { display: none !important; }
  .vibe .vscore { padding: 8px 10px; gap: 6px; }
  .vibe .vscore .vtrack, .vibe .vscore .vchiprow, .vibe .vscore .vpips { display: none; }
  .vibe .vteam { padding: 4px 8px; }
  .vibe .vmove { padding: 10px; gap: 8px; min-height: 0; }
  .vibe .vsay { font-size: 14px; line-height: 1.35; }
  .vibe .vmove kbd, .vibe .vnudge { display: none; }
}
@media (pointer: coarse) {
  .felt.vibe .bar .btn { min-height: 44px; }
  .vibe .vswitch, .vibe .vwdrop { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .vflip { transition: none; }
  .vlamp.blink { animation: none; }
}

.venter { display: block; }
/* (in the result, every round's words wrap: nothing cut off) */
.vresult .vrtext { white-space: normal; }
