﻿/* ═══════════════════════════════════════════════════════════
   PLAYVIBELY — Design System v2.0
   "Neon Party" — Bold midnight glass + electric accents
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  /* Background */
  --bg:            #08091a;
  --bg2:           #0e1128;
  --bg3:           #141830;

  /* Glass surfaces */
  --surface:       rgba(255,255,255,0.04);
  --surface-hi:    rgba(255,255,255,0.07);
  --surface-pop:   rgba(255,255,255,0.10);

  /* Borders */
  --border:        rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.15);
  --border-pop:    rgba(255,255,255,0.25);

  /* Brand colors */
  --primary:       #7c5cfc;
  --primary-light: #a88bfd;
  --primary-glow:  rgba(124,92,252,0.4);
  --primary-dim:   rgba(124,92,252,0.12);

  --secondary:     #ff3d6e;
  --secondary-glow:rgba(255,61,110,0.35);
  --secondary-dim: rgba(255,61,110,0.10);

  --teal:          #00ddb8;
  --teal-glow:     rgba(0,221,184,0.35);
  --teal-dim:      rgba(0,221,184,0.10);

  --gold:          #ffb626;
  --gold-glow:     rgba(255,182,38,0.3);

  /* State colors */
  --success:       #00ddb8;
  --success-dim:   rgba(0,221,184,0.10);
  --warning:       #ffb626;
  --warning-dim:   rgba(255,182,38,0.10);
  --danger:        #ff3d6e;
  --danger-dim:    rgba(255,61,110,0.10);
  --info:          #5ba3ff;
  --info-dim:      rgba(91,163,255,0.10);

  /* Text */
  --text:          #eef0ff;
  --text-muted:    #7b82a8;
  --text-dim:      #3f4460;

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #7c5cfc, #ff3d6e);
  --grad-cool:     linear-gradient(135deg, #5ba3ff, #7c5cfc);
  --grad-warm:     linear-gradient(135deg, #ffb626, #ff3d6e);
  --grad-teal:     linear-gradient(135deg, #00ddb8, #5ba3ff);
  --grad-meter:    linear-gradient(to right, #00ddb8, #5ba3ff, #7c5cfc, #ff3d6e, #ff3d6e);
  --grad-bg:       radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,92,252,0.15) 0%, transparent 60%),
                   radial-gradient(ellipse 60% 40% at 80% 90%,  rgba(255,61,110,0.08) 0%, transparent 50%),
                   #08091a;

  /* Shape */
  --radius:        16px;
  --radius-sm:     10px;
  --radius-lg:     24px;
  --radius-pill:   999px;

  /* Shadows */
  --shadow:        0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:     0 12px 48px rgba(0,0,0,0.6);
  --shadow-pop:    0 20px 80px rgba(0,0,0,0.7);

  /* Typography */
  --font-display:  'Fredoka', system-ui, sans-serif;
  --font-body:     'Nunito', system-ui, sans-serif;

  /* Layout */
  --post-phrase-top-offset: 7.5rem;
  --ref-y:         8.3vh;
  --card-gap:      8px;

  /* Scalable layout dimensions (updated by applyGlobalScale() in state.js) */
  --wrapper-max-w:  1180px;
  --app-max-w:       712px;
  --shell-max-w:     672px;
  --sidebar-w:       240px;
  --sidebar-offset:  356px;

  /* Scalable dial dimensions (updated by applyGlobalScale() in state.js) */
  --dial-max-w:         560px;
  --phrase-dial-max-w:  520px;
  --phrase-inputs-w:    500px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Base ───────────────────────────────────────────────── */
html, body {
  height: 100%;
  overflow: hidden;
}
body {
  background: var(--grad-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem; /* 17px at 1440px baseline (set by applyGlobalScale); scales up on wider screens */
  line-height: 1.5;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
}
h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.2vw, 1.65rem);
  font-weight: 500;
}
p { color: var(--text-muted); line-height: 1.6; }

/* ── Background sliding phrases ────────────────────────── */
#bg-phrases {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 48%, transparent 0%, transparent 20%, rgba(0,0,0,0.25) 30%, black 45%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 48%, transparent 0%, transparent 20%, rgba(0,0,0,0.25) 30%, black 45%);
}
#bg-phrases::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(8,9,26,0.65) 0%, transparent 100%);
  pointer-events: none;
}
.bg-phrase {
  position: absolute;
  white-space: nowrap;
  font-size: clamp(0.9rem, 1.8vw, 1.3rem);
  font-weight: 600;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.18);
  will-change: transform;
}
.bg-phrase.dir-left  { animation: bg-slide-left  linear infinite; }
.bg-phrase.dir-right { animation: bg-slide-right linear infinite; }
@keyframes bg-slide-left  { from { transform: translateX(110vw); } to { transform: translateX(-110vw); } }
@keyframes bg-slide-right { from { transform: translateX(-110vw); } to { transform: translateX(110vw); } }

/* ── App z-index ────────────────────────────────────────── */
#app-wrapper, #toast-container { z-index: 9999; }

/* ── Music volume widget ────────────────────────────────── */
#music-vol-widget {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(14,17,40,0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
}
#music-vol-icon { font-size: 1rem; cursor: pointer; user-select: none; line-height: 1; }
#music-vol-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.2s ease, margin-top 0.25s ease;
  margin-top: 0;
}
#music-vol-widget:hover #music-vol-drop,
#music-vol-widget.expanded #music-vol-drop { max-height: 120px; opacity: 1; margin-top: 0.4rem; }
#music-vol-slider {
  writing-mode: vertical-lr;
  direction: rtl;
  height: 90px;
  width: 28px;
  accent-color: var(--primary);
  cursor: pointer;
  margin: 0 0 0.25rem;
}

/* ── Google avatar pill ─────────────────────────────────── */
#google-avatar-pill {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#nav-logo {
  position: fixed;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  font-size: 4.15rem;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  letter-spacing: -0.01em;
  opacity: 1;
  transition: opacity 0.15s;
}
#nav-logo:hover { opacity: 0.7; }
#app-wrapper.home-screen #nav-logo { display: none; }
#app-wrapper.enter-name-stage #nav-logo { display: none; }
/* In lobby, the logo scrolls with the content so it doesn't float over expanded settings */
#app-wrapper.lobby-stage #nav-logo { position: absolute; }

/* ── Main Layout ────────────────────────────────────────── */
#app-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: var(--wrapper-max-w);
  margin: 0 auto;
  zoom: var(--global-ui-scale, 1);
  position: relative;
}
@supports not (zoom: 1) {
  #app-wrapper {
    transform: scale(var(--global-ui-scale, 1));
    transform-origin: top center;
    width: calc(100% / var(--global-ui-scale, 1));
  }
}
#app-wrapper {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
#app-wrapper::-webkit-scrollbar { display: none; }
#app {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  padding: var(--ref-y) 1.25rem var(--ref-y);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#app-wrapper.post-phrase-stage #app,
#app-wrapper.phrase-input-stage #app,
#app-wrapper.with-sidebar #app { justify-content: flex-start; }

#app-wrapper.lobby-stage #app:has(.lobby-fill) { justify-content: flex-start; padding-top: calc(var(--ref-y) + 2.75rem); }

/* Auto-center short game screens vertically between the reference lines.
   When content is shorter than the available space, margins split the remainder
   equally. When content is taller, margins collapse to 0 (flex-start behaviour). */
#app-wrapper.post-phrase-stage #app > .fade-in,
#app-wrapper.phrase-input-stage #app > .fade-in {
  margin-top: auto;
  margin-bottom: auto;
}

/* #app is always centered in the viewport, regardless of sidebar */
#app {
  max-width: var(--app-max-w);
  margin-left: auto;
  margin-right: auto;
}

/* ── Sidebar (fixed, never displaces #app) ──────────────── */
#leaderboard-sidebar {
  display: none;
  width: var(--sidebar-w);
  position: fixed;
  right: calc(50vw + var(--sidebar-offset) + 0.75rem);
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 1rem 0.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  scrollbar-width: none;
}
#leaderboard-sidebar::-webkit-scrollbar { display: none; }
#app-wrapper.with-sidebar #leaderboard-sidebar { display: flex; }
/* Hide sidebar when viewport is too narrow to show it beside content.
   The threshold is computed dynamically in applyGlobalScale() and applied
   via the .sidebar-too-narrow class so it scales with the UI scale. */
#app-wrapper.with-sidebar.sidebar-too-narrow #leaderboard-sidebar { display: none; }

/* ── Screen shell ───────────────────────────────────────── */
.screen-shell { width: 100%; }
/* Centered screens own their own vertical centering so they are
   immune to whatever justify-content the stage sets on #app. */
.screen-shell-centered {
  width: 100%;
  min-height: calc(100vh - 2 * var(--ref-y));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.screen-shell-inner {
  width: 100%;
  max-width: var(--shell-max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.screen-shell-inner-compact { max-width: var(--shell-max-w); }

/* ── Home screen overrides ──────────────────────────────── */
.home-screen #app { min-height: unset; padding-bottom: 0; justify-content: flex-start; }
.screen-hero-tight { padding-top: 0; width: 100%; }
.join-card, .lobby-card { margin: 0 auto; width: 100%; }
.join-card { max-width: var(--shell-max-w); }

/* ── Typography ─────────────────────────────────────────── */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(124,92,252,0.4));
}

.label-upper {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-family: var(--font-body);
}

/* ── Section title ──────────────────────────────────────── */
.section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

/* ── Cards / Panels ─────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s ease;
}
.card + .card { margin-top: var(--card-gap); }

.card.highlight {
  background: linear-gradient(135deg, rgba(124,92,252,0.08), rgba(255,61,110,0.05));
  border-color: rgba(124,92,252,0.3);
  box-shadow: 0 0 32px rgba(124,92,252,0.1), inset 0 1px 0 rgba(255,255,255,0.06);
}
.card.success {
  background: var(--success-dim);
  border-color: rgba(0,221,184,0.3);
  box-shadow: 0 0 20px rgba(0,221,184,0.08);
}
.card.danger {
  background: var(--danger-dim);
  border-color: rgba(255,61,110,0.3);
}

/* Universal card gap inside fade-in / screen-shell-inner */
.fade-in         > .card,
.fade-in         > .callout,
.screen-shell-inner > .card,
.screen-shell-inner > .callout { margin-bottom: 0 !important; }
.fade-in         > * + .card,
.fade-in         > * + .callout,
.screen-shell-inner > * + .card,
.screen-shell-inner > * + .callout { margin-top: var(--card-gap) !important; }

/* ── Callouts ───────────────────────────────────────────── */
.callout {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.callout-title {
  font-size: 0.93rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
}
.callout p { font-size: 0.93rem; margin: 0; }

.callout-warning {
  background: var(--warning-dim);
  border-color: rgba(255,182,38,0.3);
}
.callout-warning .callout-title { color: var(--gold); }

.callout-success {
  background: var(--success-dim);
  border-color: rgba(0,221,184,0.3);
}
.callout-success .callout-title { color: var(--teal); }

.callout-info {
  background: var(--info-dim);
  border-color: rgba(91,163,255,0.25);
}
.callout-info .callout-title { color: var(--info); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all 0.18s cubic-bezier(0.22,1,0.36,1);
  white-space: nowrap;
  letter-spacing: 0.02em;
  position: relative;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,92,252,0.4), 0 1px 0 rgba(255,255,255,0.15) inset;
}
.btn-primary:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,92,252,0.55), 0 4px 16px rgba(255,61,110,0.25), 0 1px 0 rgba(255,255,255,0.2) inset;
}
.btn-primary:not(:disabled):active { transform: translateY(0); box-shadow: 0 2px 8px rgba(124,92,252,0.4); }

.btn-secondary {
  background: var(--surface-hi);
  border: 1px solid var(--border-bright);
  color: var(--text);
}
.btn-secondary:not(:disabled):hover { background: var(--surface-pop); border-color: rgba(124,92,252,0.4); }

.btn-success {
  background: linear-gradient(135deg, #00ddb8, #00b896);
  color: #08091a;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0,221,184,0.35);
}
.btn-success:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,221,184,0.5);
}
.btn-success:not(:disabled):active { transform: translateY(0); }

.btn-danger {
  background: linear-gradient(135deg, #ff3d6e, #e02050);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,61,110,0.3);
}
.btn-danger:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,61,110,0.45); }

.btn-lg { padding: 0.85rem 2.4rem; font-size: 1.15rem; border-radius: var(--radius); }
.btn-full { width: 100%; }
.btn-group { display: flex; gap: 0.65rem; flex-wrap: wrap; }

/* ── Form Controls ──────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-body);
}

input[type="text"],
input[type="number"],
textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: var(--primary);
  background: rgba(124,92,252,0.06);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.2);
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

/* ── Divider ────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); }
hr.divider { border: none; border-top: 1px solid var(--border); }

/* ── Stack ──────────────────────────────────────────────── */
.stack-sm > * + * { margin-top: 0.5rem; }
.stack-md > * + * { margin-top: 0.75rem; }

/* ── Row between ────────────────────────────────────────── */
.row-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25em 0.65em;
  border-radius: 999px;
  font-family: var(--font-body);
}
.badge-purple {
  background: rgba(124,92,252,0.15);
  color: var(--primary-light);
  border: 1px solid rgba(124,92,252,0.3);
}
.badge-yellow, .badge-gold {
  background: rgba(255,182,38,0.12);
  color: var(--gold);
  border: 1px solid rgba(255,182,38,0.3);
}
.badge-teal {
  background: var(--teal-dim);
  color: var(--teal);
  border: 1px solid rgba(0,221,184,0.3);
}
.badge-pink {
  background: var(--secondary-dim);
  color: var(--secondary);
  border: 1px solid rgba(255,61,110,0.3);
}

/* ── Player list / items ────────────────────────────────── */
.player-list { display: flex; flex-direction: column; gap: 0.45rem; }

.player-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.player-item.you {
  border-color: rgba(124,92,252,0.4);
  background: rgba(124,92,252,0.06);
}
.player-item.host .player-name::after { content: ' 👑'; font-size: 0.85em; }
.player-item.vibeman {
  border-color: rgba(255,182,38,0.4);
  background: rgba(255,182,38,0.06);
}
.player-item.player-disconnected { opacity: 0.4; filter: grayscale(0.6); }

.player-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  flex-shrink: 0;
  font-family: var(--font-display);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 8 avatar gradient colors */
.avatar-0 { background: linear-gradient(135deg, #7c5cfc, #a88bfd); }
.avatar-1 { background: linear-gradient(135deg, #ff3d6e, #ff7aa0); }
.avatar-2 { background: linear-gradient(135deg, #00ddb8, #5ba3ff); }
.avatar-3 { background: linear-gradient(135deg, #ffb626, #ff7a00); }
.avatar-4 { background: linear-gradient(135deg, #5ba3ff, #7c5cfc); }
.avatar-5 { background: linear-gradient(135deg, #ff7a00, #ff3d6e); }
.avatar-6 { background: linear-gradient(135deg, #00ddb8, #7c5cfc); }
.avatar-7 { background: linear-gradient(135deg, #a88bfd, #ff3d6e); }

.player-name { font-weight: 600; font-size: 0.95rem; flex: 1; }
.player-score { font-size: 0.85rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.player-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag-you     { background: rgba(124,92,252,0.15); color: var(--primary-light); border: 1px solid rgba(124,92,252,0.35); }
.tag-host    { background: rgba(255,182,38,0.12); color: var(--gold); border: 1px solid rgba(255,182,38,0.3); }
.tag-vibeman { background: rgba(255,182,38,0.10); color: #fcd34d; border: 1px solid rgba(255,182,38,0.25); }

/* ── Phrase labels ──────────────────────────────────────── */
.phrase-label-1 { color: var(--teal);      font-weight: 700; }
.phrase-label-2 { color: var(--secondary); font-weight: 700; }
.phrase-vs      { color: var(--text-dim);  font-weight: 700; font-size: 0.8em; padding: 0 0.2em; }

/* ── Vibe Meter Bar ─────────────────────────────────────── */
.meter-wrap { margin: 1rem 0; }
.meter-labels { display: flex; justify-content: space-between; margin-bottom: 0.4rem; font-size: 0.85rem; }
.meter-label-left  { color: var(--teal);      font-weight: 700; }
.meter-label-right { color: var(--secondary); font-weight: 700; }
.meter-label-num   { font-size: 0.7rem; color: var(--text-dim); }
.meter-bar {
  position: relative;
  height: 20px;
  border-radius: 999px;
  background: var(--grad-meter);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 0 16px rgba(124,92,252,0.2);
  overflow: visible;
}
.meter-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  transition: left 0.5s cubic-bezier(.34,1.56,.64,1);
  z-index: 2;
  white-space: nowrap;
}
.meter-marker-label {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
}
.meter-marker.actual {
  width: 32px; height: 32px;
  background: #fff;
  border-color: #fff;
  color: #08091a;
  font-size: 0.72rem;
  z-index: 3;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.25), 0 4px 16px rgba(0,0,0,0.5);
}
.meter-marker.perfect { border-color: var(--teal);    box-shadow: 0 0 0 3px rgba(0,221,184,0.3); }
.meter-marker.good    { border-color: var(--gold); }
.meter-marker.ok      { border-color: var(--info); }
.meter-marker.miss    { border-color: var(--text-dim); opacity: 0.6; }

/* ── Half-Dial Gauge ─────────────────────────────────────── */
.dial-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.5rem 0 0;
  user-select: none;
}
.dial-svg {
  width: 100%;
  max-width: var(--dial-max-w);
  height: auto;
  overflow: visible;
  touch-action: none;
}
.vibe-man-write-dial {
  /* no override — uses --dial-max-w same as guessing dial */
}
.dial-track {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 24;
  stroke-linecap: round;
}
@keyframes dial-spectrum-spin {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}
.dial-fill {
  fill: none;
  stroke: url(#dialGrad);
  stroke-width: 24;
  stroke-linecap: round;
  stroke-dasharray: 408.407;
  stroke-dashoffset: 408.407;
  animation: dial-spectrum-spin 6s linear infinite;
}
.dial-tick      { stroke: rgba(255,255,255,0.15); stroke-width: 1.5; }
.dial-tick-end  { stroke: rgba(255,255,255,0.4);  stroke-width: 2.5; }
.dial-needle {
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(124,92,252,0.9));
  transition: x2 0.05s linear, y2 0.05s linear;
  pointer-events: none;
}
.dial-pivot {
  fill: #fff;
  filter: drop-shadow(0 0 8px rgba(124,92,252,0.6));
  pointer-events: none;
}
.dial-readout {
  font-size: 4rem;
  font-weight: 600;
  font-family: var(--font-display);
  line-height: 1;
  margin-top: 0.75rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  pointer-events: none;
  min-width: 6rem;
  text-align: center;
  filter: drop-shadow(0 0 14px rgba(124,92,252,0.5));
}
.dial-labels {
  width: 100%;
  max-width: var(--dial-max-w);
  position: relative;
  margin-top: 0.5rem;
  height: 3.3em;     /* 2-line text (line-height 1.3) + 0.5em padding on label boxes */
}
.dial-label-left, .dial-label-right {
  position: absolute;
  top: 0;
  width: max-content;
  max-width: 40%;
  font-size: 1.05rem;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 0.25em 0.5em;
  background: rgba(255,255,255,0.04);
}
/* Box centers align with arc endpoints: viewBox "-50 0 400 163" maps x=20 → 17.5%, x=280 → 82.5% */
.dial-label-left  { left: 17.5%; transform: translateX(-50%); text-align: center; }
.dial-label-right { left: 82.5%; transform: translateX(-50%); text-align: center; }
.dial-label-num { font-size: 0.7rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* ── Phrase-input dial face ─────────────────────────────── */
.phrase-input-card {
  padding: 1.25rem 1rem 1rem;
  transition: border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}
.phrase-input-card.phrase-submitted {
  border-color: var(--border);
  background: rgba(255,255,255,0.03);
}
.phrase-dial-shell { display: flex; flex-direction: column; gap: 1rem; }
.phrase-dial-wrap {
  width: 100%;
  margin: 0;
  --phrase-left-input-center: 7%;
  --phrase-right-input-center: 93%;
  --phrase-input-width: min(34vw, 180px);
}
.phrase-dial-svg { max-width: var(--phrase-dial-max-w); }
.phrase-dial-fill { opacity: 0.95; }
.phrase-dial-inputs input:disabled { opacity: 0.6; cursor: default; pointer-events: none; }
.phrase-waiting-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  gap: 0.35rem;
  text-align: center;
}
.phrase-waiting-text { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.phrase-waiting-bar { width: 100%; margin-top: 0; }
.phrase-dial-inputs {
  width: min(90%, var(--phrase-inputs-w));
  margin-top: -3rem;
  position: relative;
  height: 50px;
}
.phrase-dial-input-group { width: var(--phrase-input-width); max-width: 180px; position: absolute; top: 0; }
.phrase-dial-input-left  { left: var(--phrase-left-input-center);  transform: translateX(-50%); }
.phrase-dial-input-right { left: var(--phrase-right-input-center); transform: translateX(-50%); }
.phrase-dial-inputs input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-bright);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  text-align: center;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.phrase-dial-inputs input::placeholder { text-align: center; }
.phrase-dial-input-left  input { color: var(--teal); }
.phrase-dial-input-left  input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-dim); background: rgba(0,221,184,0.04); }
.phrase-dial-input-left  input::placeholder { color: rgba(0,221,184,0.4); }
.phrase-dial-input-right input { color: var(--secondary); }
.phrase-dial-input-right input:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px var(--secondary-dim); background: rgba(255,61,110,0.04); }
.phrase-dial-input-right input::placeholder { color: rgba(255,61,110,0.4); }

@media (max-width: 640px) {
  .phrase-input-card { padding: 1rem 0.85rem 0.9rem; }
  .phrase-dial-wrap {
    --phrase-left-input-center: 22%;
    --phrase-right-input-center: 78%;
    --phrase-input-width: min(34vw, 150px);
  }
  .phrase-dial-inputs { width: 100%; height: 40px; }
  .phrase-dial-input-group { max-width: 150px; }
}

/* ── Phrase face eye animations ─────────────────────────── */
.phrase-face-eye-group {
  transform-box: fill-box;
  transform-origin: center center;
  animation: phrase-eye-blink 4s ease-in-out infinite;
  transition: transform 0.25s ease;
}
@keyframes phrase-eye-blink {
  0%, 84%, 100% { transform: scaleY(1); }
  90%           { transform: scaleY(0.07); }
  96%           { transform: scaleY(1); }
}
.phrase-eye-white { fill: rgba(255,255,255,0.88); transition: fill 0.3s ease, filter 0.3s ease; }
.phrase-eye-pupil { fill: #0a0b18; }
.phrase-eyebrow {
  fill: none;
  stroke: rgba(255,255,255,0.6);
  stroke-width: 3;
  stroke-linecap: round;
  transition: transform 0.25s ease, stroke 0.25s ease;
  transform-box: fill-box;
  transform-origin: center bottom;
}
.phrase-dial-wrap.face-left-focus .phrase-face-eye-left { animation: none; transform: scaleY(1.14); }
.phrase-dial-wrap.face-left-focus .phrase-eye-left-white { filter: drop-shadow(0 0 7px var(--teal)); }
.phrase-dial-wrap.face-left-focus .phrase-eyebrow-left { transform: translateY(-3px); stroke: rgba(0,221,184,0.85); }
.phrase-dial-wrap.face-right-focus .phrase-face-eye-right { animation: none; transform: scaleY(1.14); }
.phrase-dial-wrap.face-right-focus .phrase-eye-right-white { filter: drop-shadow(0 0 7px var(--secondary)); }
.phrase-dial-wrap.face-right-focus .phrase-eyebrow-right { transform: translateY(-3px); stroke: rgba(255,61,110,0.85); }
.phrase-dial-wrap.face-both-filled .phrase-face-eye-group { animation: phrase-eye-excited 3s ease-in-out infinite; }
.phrase-dial-wrap.face-both-filled .phrase-eye-white { filter: drop-shadow(0 0 8px rgba(124,92,252,0.65)); }
.phrase-dial-wrap.face-both-filled .phrase-eyebrow { transform: translateY(-4px); stroke: rgba(124,92,252,0.85); }
@keyframes phrase-eye-excited {
  0%, 80%, 100% { transform: scaleY(1); }
  88%           { transform: scaleY(0.08); }
  95%           { transform: scaleY(1); }
}
@keyframes expr-brow-shocked {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  8%, 85%  { transform: translateY(-9px) rotate(0deg); }
}
@keyframes expr-brow-interesting-l {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  10%, 80% { transform: translateY(-8px) rotate(-10deg); }
}
@keyframes expr-brow-interesting-r {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  10%, 80% { transform: translateY(3px) rotate(6deg); }
}
@keyframes expr-brow-confused-l {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  15%, 75% { transform: translateY(4px) rotate(18deg); }
}
@keyframes expr-brow-confused-r {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  15%, 75% { transform: translateY(-7px) rotate(-10deg); }
}
@keyframes expr-brow-crazy {
  0%   { transform: translateY(0) rotate(0deg); }
  10%  { transform: translateY(-9px) rotate(12deg); }
  25%  { transform: translateY(-3px) rotate(-9deg); }
  40%  { transform: translateY(-10px) rotate(14deg); }
  55%  { transform: translateY(-2px) rotate(-7deg); }
  70%  { transform: translateY(-8px) rotate(10deg); }
  85%  { transform: translateY(-1px) rotate(-4deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
@keyframes expr-brow-what {
  0%, 100% { transform: translateY(0); }
  12%      { transform: translateY(-11px); }
  22%      { transform: translateY(-5px); }
  35%      { transform: translateY(-11px); }
  48%      { transform: translateY(-5px); }
  62%      { transform: translateY(-11px); }
  80%      { transform: translateY(-2px); }
}
@keyframes expr-brow-angry-l {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  15%, 70% { transform: translateY(6px) rotate(20deg); }
}
@keyframes expr-brow-angry-r {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  15%, 70% { transform: translateY(6px) rotate(-20deg); }
}
.phrase-dial-wrap.face-expr-shocked     .phrase-eyebrow            { animation: expr-brow-shocked     2s   ease-in-out forwards; }
.phrase-dial-wrap.face-expr-interesting .phrase-eyebrow-left        { animation: expr-brow-interesting-l 2.2s ease-in-out forwards; }
.phrase-dial-wrap.face-expr-interesting .phrase-eyebrow-right       { animation: expr-brow-interesting-r 2.2s ease-in-out forwards; }
.phrase-dial-wrap.face-expr-confused    .phrase-eyebrow-left        { animation: expr-brow-confused-l  2.5s ease-in-out forwards; }
.phrase-dial-wrap.face-expr-confused    .phrase-eyebrow-right       { animation: expr-brow-confused-r  2.5s ease-in-out forwards; }
.phrase-dial-wrap.face-expr-crazy       .phrase-eyebrow            { animation: expr-brow-crazy        1.8s linear     forwards; }
.phrase-dial-wrap.face-expr-what        .phrase-eyebrow-right       { animation: expr-brow-what         2s   ease-in-out forwards; }
.phrase-dial-wrap.face-expr-angry       .phrase-eyebrow-left        { animation: expr-brow-angry-l      2s   ease-in-out forwards; }
.phrase-dial-wrap.face-expr-angry       .phrase-eyebrow-right       { animation: expr-brow-angry-r      2s   ease-in-out forwards; }

/* ── Breathe border animation ───────────────────────────── */
.breathe-border {
  border-color: rgba(124,92,252,0.3) !important;
  box-shadow: var(--shadow);
  animation: breathe-border-highlight 2.4s ease-in-out infinite;
}
@keyframes breathe-border-highlight {
  0%, 100% {
    border-color: rgba(124,92,252,0.25);
    box-shadow: 0 0 0 1px rgba(124,92,252,0.1), var(--shadow);
  }
  50% {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,92,252,0.18), 0 0 24px rgba(124,92,252,0.22), var(--shadow);
  }
}
.breathe-border:focus, .breathe-border:focus-within {
  animation-play-state: paused;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(124,92,252,0.25) !important;
}

/* ── Invite link card ───────────────────────────────────── */
.invite-link-card {
  background: rgba(91,163,255,0.06);
  border: 1px solid rgba(91,163,255,0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 0 24px rgba(91,163,255,0.06);
}
.invite-copy-btn {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.invite-link-code {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #fff;
  user-select: all;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(91,163,255,0.6), 0 0 40px rgba(91,163,255,0.3);
}

/* ── Room code row ──────────────────────────────────────── */
.room-code-row { display: flex; align-items: center; gap: 0.5rem; }
.room-code-row input { flex: 1; min-width: 0; }

/* ── Live activity badge ────────────────────────────────── */
.live-activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* ── How to Play ────────────────────────────────────────── */
.how-to-play-steps { display: flex; flex-direction: column; gap: 0.85rem; }
.htp-step { display: flex; align-items: flex-start; gap: 0.7rem; }
.htp-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.05rem; }
.htp-title { font-size: 0.88rem; font-weight: 700; color: var(--text); font-family: var(--font-display); }
.htp-desc  { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ── Join-card header ───────────────────────────────────── */
.join-card-header { text-align: center; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.join-card-header h2 { font-size: 1.6rem; font-weight: 600; margin: 0 0 0.35rem; }
.join-card-header p  { font-size: 0.85rem; margin: 0; }

/* ── Connecting screen ──────────────────────────────────── */
.connecting-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  gap: 1rem;
  color: var(--text-muted);
}

/* ── Spinner ────────────────────────────────────────────── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border-bright);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Waiting pulse ──────────────────────────────────────── */
.waiting-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: pulse-dot 1.4s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 0.3rem;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── Spectral title text ────────────────────────────────── */
@keyframes spectral-shift {
  0%   { color: #a88bfd; text-shadow: 0 0 16px #a88bfdaa, 0 0 40px #a88bfd44; }
  20%  { color: #ff3d6e; text-shadow: 0 0 16px #ff3d6eaa, 0 0 40px #ff3d6e44; }
  40%  { color: #ffb626; text-shadow: 0 0 16px #ffb626aa, 0 0 40px #ffb62644; }
  60%  { color: var(--teal); text-shadow: 0 0 16px rgba(0,221,184,0.7), 0 0 40px rgba(0,221,184,0.3); }
  80%  { color: #5ba3ff; text-shadow: 0 0 16px #5ba3ffaa, 0 0 40px #5ba3ff44; }
  100% { color: #a88bfd; text-shadow: 0 0 16px #a88bfdaa, 0 0 40px #a88bfd44; }
}
@keyframes spectral-glitch {
  0%, 90%, 100% { transform: none; }
  91%  { transform: skewX(-1.5deg) translateX(2px); }
  92%  { transform: skewX(0deg); }
  93%  { transform: skewX(1deg) translateX(-2px); }
  94%  { transform: none; }
}
.spectral-text {
  animation: spectral-shift 4s linear infinite, spectral-glitch 8s ease-in-out infinite;
  display: inline;
}

/* ── Phase Hero ─────────────────────────────────────────── */
.phase-hero {
  text-align: center;
  padding: 0.75rem 1rem 1rem;
}
.phase-hero .emoji-big { font-size: 3rem; display: block; margin-bottom: 0.4rem; }
.phase-hero h2 { margin-bottom: 0.3rem; }
.phase-hero p  { max-width: 520px; margin: 0 auto; }

/* ── Phase Topline (round / vibe man chip) ──────────────── */
.phase-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-family: var(--font-body);
}

/* ── Big Number ─────────────────────────────────────────── */
.big-number {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 600;
  font-family: var(--font-display);
  text-align: center;
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.5rem 0;
  filter: drop-shadow(0 0 18px rgba(124,92,252,0.6)) drop-shadow(0 0 36px rgba(255,61,110,0.3));
}

/* ── Story box ──────────────────────────────────────────── */
.story-box {
  background: rgba(124,92,252,0.05);
  border: 1px solid rgba(124,92,252,0.18);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
  position: relative;
  box-shadow: inset 0 0 20px rgba(124,92,252,0.04), 0 0 20px rgba(124,92,252,0.06);
}
.story-box::before {
  content: '\201C';
  position: absolute;
  top: -0.6rem;
  left: 0.75rem;
  font-size: 3.5rem;
  color: var(--primary);
  line-height: 1;
  font-family: var(--font-display);
  text-shadow: 0 0 16px rgba(124,92,252,0.5);
  pointer-events: none;
}

/* ── Progress Bar ───────────────────────────────────────── */
.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ── Countdown Bar ──────────────────────────────────────── */
.countdown-bar-wrap {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
.countdown-bar {
  height: 100%;
  width: 100%;
  background: var(--grad-primary);
  border-radius: 999px;
  animation: countdown-drain 5s linear forwards;
  transform-origin: left center;
}
@keyframes countdown-drain { from { width: 100%; } to { width: 0%; } }

.countdown-bar-75  { height: 100%; width: 100%; background: var(--grad-primary); border-radius: 999px; animation: countdown-drain 7.5s  linear forwards; transform-origin: left center; }
.countdown-bar-15  { height: 100%; width: 100%; background: var(--grad-primary); border-radius: 999px; animation: countdown-drain 15s   linear forwards; transform-origin: left center; }
.countdown-bar-90  { height: 100%; width: 100%; background: var(--grad-primary); border-radius: 999px; animation: countdown-drain 90s   linear forwards; transform-origin: left center; }
.countdown-bar-120 { height: 100%; width: 100%; background: var(--grad-primary); border-radius: 999px; animation: countdown-drain 120s  linear forwards; transform-origin: left center; }
.countdown-bar-30  { height: 100%; width: 100%; background: var(--grad-primary); border-radius: 999px; animation: countdown-drain 30s   linear forwards; transform-origin: left center; }
.countdown-bar-60  { height: 100%; width: 100%; background: var(--grad-primary); border-radius: 999px; animation: countdown-drain 60s   linear forwards; transform-origin: left center; }

/* ── Toast ──────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--bg3);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: slide-in 0.25s cubic-bezier(0.22,1,0.36,1);
  pointer-events: all;
  max-width: 340px;
}
.toast.error { border-color: rgba(255,61,110,0.5); color: #ffa0b4; background: rgba(255,61,110,0.08); }
.toast.removing { animation: slide-out 0.28s ease forwards; }
@keyframes slide-in   { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes slide-out  { to   { opacity: 0; transform: translateX(20px); } }

/* ── Page timer bar ─────────────────────────────────────── */
#page-timer-wrap {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,0.05);
  z-index: 9997;
  pointer-events: none;
}
#page-timer-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%; width: 0%;
  background: var(--grad-primary);
  transition: none;
  box-shadow: 0 0 10px rgba(124,92,252,0.7), 0 0 20px rgba(255,61,110,0.4);
}

/* ── Fade-in transitions ───────────────────────────────── */

/* ── Google signin pill ─────────────────────────────────── */
.g-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(14,17,40,0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text);
  transition: all 0.15s ease;
}
.g-pill:hover { border-color: var(--border-pop); background: rgba(20,24,48,0.9); }
.g-pill-signed-in { padding: 0.25rem; }
.g-pill-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.g-pill-avatar-fallback {
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
}
.g-pill-avatar-lg { width: 36px; height: 36px; font-size: 1rem; }
.g-pill-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 230px;
  background: var(--bg2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: var(--shadow-lg);
  z-index: 10001;
}
.g-pill-dropdown[hidden] { display: none; }
.g-pill-dropdown-profile { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.g-pill-dropdown-info strong { display: block; font-size: 0.9rem; }
.g-pill-dropdown-info span   { font-size: 0.75rem; color: var(--text-muted); }
.g-pill-dropdown-hint { font-size: 0.75rem; color: var(--text-dim); padding: 0.35rem 0; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem; }
.g-pill-unlink-btn { width: 100%; margin-top: 0.25rem; font-size: 0.8rem; }

/* ── Lobby redesign ─────────────────────────────────────── */
.lobby-fill {
  display: flex;
  flex-direction: column;
  width: 100%;
  /* No extra padding — #app already provides the ref-y top/bottom padding */
}

/* Room code hero ticket */
.lobby-code-hero {
  text-align: center;
  padding: 0.85rem 1.25rem 0.9rem;
  background: linear-gradient(135deg, rgba(124,92,252,0.14) 0%, rgba(255,61,110,0.08) 100%);
  border: 1px solid rgba(124,92,252,0.30);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.lobby-code-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124,92,252,0.18), transparent);
  pointer-events: none;
}
.lch-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.lch-code {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text);
  line-height: 1;
  margin: 0 0 0.6rem;
  filter: drop-shadow(0 0 18px rgba(124,92,252,0.5));
}
.lch-copy-btn { font-size: 0.82rem; padding: 0.45rem 1.1rem; }

/* Player avatar grid */
.player-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem 0.5rem;
}
.player-avatar-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.player-avatar-xl {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  font-family: var(--font-display);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  position: relative;
  flex-shrink: 0;
}
.player-avatar-xl.avatar-you {
  box-shadow: 0 0 0 3px var(--primary), 0 4px 14px rgba(0,0,0,0.35);
}
.pac-host-crown {
  position: absolute;
  top: -10px;
  right: -5px;
  font-size: 0.9rem;
  line-height: 1;
}
.pac-name {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.pac-you-label {
  font-size: 0.58rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pac-tag {
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.empty-slot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}

/* legacy — kept for player (non-host) rules panel */
.lobby-rules-fill { flex: 1; }

/* ── Settings panel ─────────────────────────────────────── */
.settings-details {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.settings-body { padding: 1rem 1.1rem; }
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.25rem;
  row-gap: 0.85rem;
  align-items: start;
}
@media (max-width: 520px) {
  .settings-grid { grid-template-columns: 1fr; }
}

/* ── Game settings sliders ──────────────────────────────── */
.setting-row { margin-bottom: 0; }
.setting-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.3rem; }
.setting-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.setting-hint { font-size: 0.7rem; color: var(--text-dim); display: block; margin-top: 0.1rem; }
.setting-value-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(124,92,252,0.12);
  color: var(--primary-light);
  border: 1px solid rgba(124,92,252,0.25);
}
.slider-wrap { display: flex; flex-direction: column; gap: 0.25rem; }
.setting-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  border: none;
  padding: 0;
}
.setting-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3), 0 0 0 2px var(--primary);
}
.setting-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3), 0 0 0 2px var(--primary);
}
.setting-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-dim);
  padding: 0 0.2rem;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}
.toggle-label-wrap { flex: 1; }
.toggle-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.toggle-desc  { font-size: 0.72rem; color: var(--text-dim); display: block; margin-top: 0.1rem; }
.pill-toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.pill-toggle input { opacity: 0; width: 0; height: 0; }
.pill-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--surface-hi);
  border: 1px solid var(--border-bright);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pill-track::before {
  content: '';
  position: absolute;
  left: 3px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: left 0.2s cubic-bezier(0.22,1,0.36,1), background 0.2s ease;
}
.pill-toggle input:checked + .pill-track { background: var(--primary-dim); border-color: rgba(124,92,252,0.5); }
.pill-toggle input:checked + .pill-track::before { left: 21px; background: var(--primary); }
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}
.rules-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  padding: 0.35rem 0.5rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.rules-item-label { color: var(--text-muted); }
.rules-item-value { font-weight: 700; color: var(--text); }
.callout-title.settings-heading { font-size: 0.78rem; }

/* ── Mini dial grid (guessing) ──────────────────────────── */
.mini-dial-grid {
  display: grid;
  grid-template-columns: repeat(var(--mini-cols, 3), 1fr);
  gap: 0.5rem;
}
.mini-dial-card {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 0.35rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.mini-dial-card.mini-dial-submitted {
  border-color: rgba(0,221,184,0.4);
  background: rgba(0,221,184,0.05);
}
.mini-dial-card.mini-dial-waiting { opacity: 0.6; }
/* No CSS transitions on the live dial — updates arrive every ~40ms from
   live-pos events; transitioning lets the two elements' interpolation
   curves drift apart (style-change vs setAttribute paths differ across
   browsers). Snapping per-event keeps needle and fill exactly in sync. */
.mini-fill { transition: none; }
.mini-needle { transition: none; }
.mini-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.mini-lock { margin-left: 0.2rem; }

/* ── Phrase card (phrase input screen) ──────────────────── */
.phrase-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}
.phrase-card.current { border-color: rgba(124,92,252,0.3); background: rgba(124,92,252,0.04); }
.phrase-submitted-badge { margin-left: auto; color: var(--teal); }

/* ── Phrase pick row ────────────────────────────────────── */
.phrase-pick-btn { width: 100%; }
.phrase-pick-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.phrase-pick-row .phrase-label-1 { text-align: right; font-size: 1.05rem; }
.phrase-pick-row .phrase-label-2 { text-align: left;  font-size: 1.05rem; }
.phrase-pick-row .phrase-vs { font-size: 0.9rem; text-align: center; min-width: 2rem; }
.phrase-pick-by {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: -0.5rem;
}

/* ── Phrase select btn hover ────────────────────────────── */
.phrase-pick-btn:not(:disabled):hover {
  border-color: rgba(124,92,252,0.4);
  background: rgba(124,92,252,0.06);
}

/* ── Round results scoring ──────────────────────────────── */
.results-score-list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.75rem; }
.results-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
}
.results-row.you-row { border-color: rgba(124,92,252,0.35); background: rgba(124,92,252,0.06); }
.results-pts {
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1rem;
  min-width: 1.8rem;
  text-align: right;
  flex-shrink: 0;
}
.results-name { flex: 1; font-weight: 600; }
.results-diff { font-size: 0.78rem; color: var(--text-dim); margin-left: auto; }

/* ── Game over ──────────────────────────────────────────── */
.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.leaderboard-row:first-child {
  background: linear-gradient(135deg, rgba(255,182,38,0.08), rgba(124,92,252,0.06));
  border-color: rgba(255,182,38,0.3);
}
.lb-rank { font-size: 1.2rem; min-width: 2rem; text-align: center; }
.lb-name { flex: 1; font-weight: 700; font-size: 0.95rem; }
.lb-score { font-size: 1.1rem; font-weight: 800; font-family: var(--font-display); color: var(--primary-light); }

/* ── Leaderboard sidebar ────────────────────────────────── */
.lb-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  text-align: center;
  width: 100%;
}
.lb-list { display: flex; flex-direction: column; gap: 0.4rem; width: 100%; }
.lb-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.87rem;
  transition: background 0.15s ease;
}
.lb-row.lb-you {
  border-color: rgba(124,92,252,0.4);
  background: rgba(124,92,252,0.08);
  box-shadow: 0 0 12px rgba(124,92,252,0.1);
}
.lb-row.lb-disconnected { opacity: 0.4; filter: grayscale(0.7); }
.lb-bullseye { font-size: 0.68rem; font-weight: 700; color: var(--gold); min-width: 2rem; text-align: right; flex-shrink: 0; white-space: nowrap; }
.lb-medal { font-size: 1rem; min-width: 1.3rem; text-align: center; flex-shrink: 0; }
.lb-pname { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-pts {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-light);
  min-width: 1.8rem;
  text-align: right;
  flex-shrink: 0;
  text-shadow: 0 0 8px rgba(124,92,252,0.45);
}
.lb-streak-inline { width: 2rem; text-align: right; font-size: 0.78rem; font-weight: 700; color: var(--gold); flex-shrink: 0; white-space: nowrap; }
.lb-delta-inline { min-width: 1.8rem; text-align: left; font-size: 0.82rem; font-weight: 800; color: var(--teal); flex-shrink: 0; white-space: nowrap; }
.lb-delta-zero { color: var(--text-dim); font-weight: 600; opacity: 0.5; }
.lb-penalty { color: var(--danger); font-weight: 800; font-size: 0.78rem; margin-left: 0.2rem; white-space: nowrap; }
.lb-spectators { margin-top: 0.75rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }
.lb-spec-title { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 0.4rem; }
.lb-spec-row { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--text-muted); padding: 0.25rem; border-radius: var(--radius-sm); }
.lb-spec-row.lb-spec-pending { color: var(--text); }
.lb-spec-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-spec-badge { font-size: 0.62rem; font-weight: 700; color: var(--teal); background: var(--teal-dim); border: 1px solid rgba(0,221,184,0.3); padding: 1px 5px; border-radius: 999px; flex-shrink: 0; }
.lb-entry { display: flex; align-items: center; gap: 0.25rem; }
.lb-entry .lb-row { flex: 1; min-width: 0; }
.lb-streak-col { width: 2.5rem; text-align: right; font-size: 0.85rem; font-weight: 700; color: var(--gold); flex-shrink: 0; white-space: nowrap; }
.lb-delta-col  { min-width: 2rem; text-align: left; font-size: 0.85rem; font-weight: 800; color: var(--teal); flex-shrink: 0; white-space: nowrap; }
.lb-away { font-size: 0.62rem; opacity: 0.5; }
.lb-tie-group { display: flex; flex-direction: column; gap: 0; }
.lb-tie-group .lb-entry:not(:last-child)  .lb-row { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: rgba(255,255,255,0.04); }
.lb-tie-group .lb-entry:not(:first-child) .lb-row { border-top-left-radius: 0;    border-top-right-radius: 0; }

/* Condensed row for players beyond the top-5 cut */
.lb-rest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.35rem 0.1rem 0;
}
.lb-rest-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}
.lb-rest-chip.lb-rest-you {
  border-color: rgba(124,92,252,0.4);
  background: rgba(124,92,252,0.08);
  color: var(--text);
}
.lb-rest-pts { color: var(--primary-light); font-weight: 800; }

/* ── Phrase suggestions panel ───────────────────────────── */
.sp-panel { width: 100%; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.sp-title { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 0.5rem; }
.sp-trigger { font-size: 0.78rem; margin-bottom: 0.65rem; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sp-popover-wrapper { position: relative; margin-bottom: 0.65rem; }
.sp-popover {
  position: fixed;
  background: var(--bg2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 0.75rem;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  animation: sp-pop-in 0.18s cubic-bezier(0.22,1,0.36,1) both;
}
.sp-popover[hidden] { display: none; }
@keyframes sp-pop-in {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.sp-popover-header { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-dim); margin-bottom: 0.6rem; }
.sp-inputs-row { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.55rem; }
.sp-input-wrap { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.sp-vs-divider { font-size: 0.6rem; font-weight: 800; color: var(--text-dim); letter-spacing: 0.05em; flex-shrink: 0; }
.sp-popover input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 0.78rem; padding: 0.38rem 0.45rem; outline: none; transition: border-color 0.15s; font-family: var(--font-body); }
.sp-input-left  input { border-color: rgba(0,221,184,0.2); color: var(--teal); }
.sp-input-right input { border-color: rgba(255,61,110,0.2); color: var(--secondary); }
.sp-input-left  input:focus { border-color: var(--teal); }
.sp-input-right input:focus { border-color: var(--secondary); }
.sp-input-left  input::placeholder { color: rgba(0,221,184,0.35); }
.sp-input-right input::placeholder { color: rgba(255,61,110,0.35); }
.sp-popover-footer { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.1rem; }
.sp-random-icon-btn { flex-shrink: 0; font-size: 1rem; padding: 0.3rem 0.5rem; line-height: 1; }
.sp-popover-submit { flex: 1; font-size: 0.78rem; }
.sp-popover-ok { display: flex; flex-direction: column; align-items: center; padding: 0.6rem 0.5rem 0.5rem; gap: 0.2rem; animation: sp-pop-in 0.22s cubic-bezier(0.22,1,0.36,1) both; }
.sp-popover-ok[hidden] { display: none; }
.sp-popover-ok-title { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-top: 0.15rem; }
.sp-popover-ok-sub   { font-size: 0.7rem; color: var(--text-dim); }
.sp-list { display: flex; flex-direction: column; gap: 0.4rem; }
.sp-item { padding: 0.45rem 0.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.sp-pair { display: flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; flex-wrap: wrap; }
.sp-label-1 { color: var(--teal); font-weight: 700; }
.sp-label-2 { color: var(--secondary); font-weight: 700; }
.sp-vs { color: var(--text-dim); font-size: 0.68rem; font-weight: 700; }
.sp-meta { font-size: 0.68rem; color: var(--text-dim); margin: 0.15rem 0; }
.sp-counts { opacity: 0.7; }
.sp-votes { display: flex; gap: 0.3rem; margin-top: 0.3rem; }
.sp-vote-btn {
  font-size: 0.72rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.sp-vote-btn.yes.active { color: var(--teal);      border-color: rgba(0,221,184,0.4);  background: var(--teal-dim); }
.sp-vote-btn.no.active  { color: var(--secondary); border-color: rgba(255,61,110,0.4); background: var(--secondary-dim); }
.sp-vote-btn:hover      { border-color: var(--border-bright); }

/* spec join panel */
.spec-join-panel { }

/* ── Hot zone overlays ──────────────────────────────────── */
.rz-arc, .rz-label { pointer-events: none; }
.rz-spacer { width: 16px; }

/* ── WAIT TIPS ──────────────────────────────────────────── */
.tip-card {
  background: rgba(91,163,255,0.04);
  border: 1px solid rgba(91,163,255,0.15);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.5;
}
.tip-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--info);
  margin-bottom: 0.25rem;
}
.tip-text { color: var(--text-muted); }

/* ── Vibe-write timer bar ───────────────────────────────── */
#vibe-write-timer-bar { transition: none; }

/* ── Local play mode ────────────────────────────────────── */
.lp-mode body { font-family: var(--font-body) !important; }

/* ── Phrase selection screen ────────────────────────────── */
.phrase-action-row { width: 100%; }
.phrase-action-buttons { display: flex; gap: 0.5rem; }

/* ── Page-level home layout ─────────────────────────────── */
.home-screen #app {
  padding-top: calc(var(--ref-y) * 0.7);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --ref-y: 4.5vh; }
  .card { padding: 1.1rem; }
  #leaderboard-sidebar { width: 220px; }
}
@media (max-width: 480px) {
  :root { --ref-y: 3vh; }
  .card { padding: 0.85rem 1rem; }
  .btn-lg { padding: 0.75rem 1.8rem; }
  .dial-readout { font-size: 3rem; }
}

