@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================
   DESIGN SYSTEM — "Arcade Night Club"
   ============================================ */

:root {
  /* Deep palette — NOT generic */
  --bg-deep: #06080f;
  --bg-surface: #0d1117;
  --bg-elevated: #151b27;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(24, 33, 50, 0.92);

  --border-subtle: rgba(148, 163, 184, 0.08);
  --border-default: rgba(148, 163, 184, 0.12);
  --border-focus: rgba(124, 93, 250, 0.5);

  --text-primary: #f1f5f9;
  --text-secondary: #8b9dc3;
  --text-muted: #4a5a78;

  /* Signature colors — crafted, not raw */
  --accent-violet: #7c5dfa;
  --accent-violet-light: #a78bfa;
  --accent-violet-glow: rgba(124, 93, 250, 0.35);

  --color-red: #ef4468;
  --color-red-deep: #c9254d;
  --color-red-glow: rgba(239, 68, 104, 0.3);

  --color-blue: #3b82f6;
  --color-blue-deep: #2563eb;
  --color-blue-glow: rgba(59, 130, 246, 0.3);

  --color-amber: #f59e0b;
  --color-amber-deep: #d97706;
  --color-amber-glow: rgba(245, 158, 11, 0.3);

  --color-emerald: #10b981;
  --color-emerald-deep: #059669;
  --color-emerald-glow: rgba(16, 185, 129, 0.3);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.25);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(124, 93, 250, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 50% 90%, rgba(239, 68, 104, 0.06) 0%, transparent 60%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-top: 1px solid rgba(124, 93, 250, 0.15);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
}

/* Legacy alias — maps old glass-card to new card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ============================================
   BUTTONS
   ============================================ */

button {
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--ease-out);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  background: var(--accent-violet);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.1) inset,
    0 -2px 0 0 rgba(0,0,0,0.15) inset,
    0 4px 16px var(--accent-violet-glow);
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.15) inset,
    0 -2px 0 0 rgba(0,0,0,0.15) inset,
    0 8px 24px var(--accent-violet-glow);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.05) inset,
    0 -1px 0 0 rgba(0,0,0,0.2) inset,
    0 2px 8px var(--accent-violet-glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  background: transparent;
  border: 1.5px solid var(--border-default);
  color: var(--text-primary);
  padding: 0.85rem 2rem;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.btn-outline:hover {
  background: rgba(124, 93, 250, 0.06);
  border-color: rgba(124, 93, 250, 0.3);
  color: #fff;
}

.btn-outline:active {
  transform: translateY(1px);
}

.btn-danger {
  background: var(--color-red);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px var(--color-red-glow);
}

.btn-danger:hover {
  background: var(--color-red-deep);
  transform: translateY(-1px);
}

/* ============================================
   INPUT FIELDS
   ============================================ */

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid var(--border-default);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.25s ease;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px var(--accent-violet-glow), 0 0 16px rgba(124, 93, 250, 0.1);
  background: rgba(15, 23, 42, 0.8);
}

input::placeholder {
  color: var(--text-muted);
}

/* ============================================
   HEADER
   ============================================ */

header {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 8, 15, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10;
  position: sticky;
  top: 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: -0.03em;
  user-select: none;
}

.logo-accent {
  color: var(--accent-violet);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--color-emerald);
  border-radius: 50%;
  display: inline-block;
  animation: dotPulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--color-emerald-glow);
}

@keyframes dotPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* ============================================
   LANDING PAGE — "kahoot-bg" class
   ============================================ */

.kahoot-bg {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 70% 50% at 30% 20%, rgba(124, 93, 250, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 75% 75%, rgba(239, 68, 104, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 60% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 55%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
}

/* Brand hero */
.kahoot-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  color: #fff;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: -0.04em;
  position: relative;
}

.kahoot-logo::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-violet), var(--color-blue));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.landing-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 340px;
}

/* Admin header bar on landing */
.landing-admin-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
  z-index: 10;
  gap: 0.5rem;
  align-items: center;
}

.admin-badge {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  background: rgba(124, 93, 250, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(124, 93, 250, 0.2);
}

.admin-btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: var(--font-body);
}

.admin-btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}

.admin-btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.admin-btn-danger {
  background: rgba(239, 68, 104, 0.1);
  border: 1px solid rgba(239, 68, 104, 0.2);
  color: var(--color-red);
}

.admin-btn-danger:hover {
  background: rgba(239, 68, 104, 0.18);
}

.kahoot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-top: 1px solid rgba(124, 93, 250, 0.2);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
}

.kahoot-btn {
  width: 100%;
  display: block;
  background: var(--accent-violet);
  color: #ffffff;
  border: none;
  border-radius: var(--r-md);
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
  text-align: center;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.1) inset,
    0 -2px 0 0 rgba(0,0,0,0.15) inset,
    0 4px 14px var(--accent-violet-glow);
}

.kahoot-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.15) inset,
    0 -2px 0 0 rgba(0,0,0,0.2) inset,
    0 8px 28px var(--accent-violet-glow);
  filter: brightness(1.08);
}

.kahoot-btn:active {
  transform: translateY(1px);
}

.kahoot-btn.btn-dark {
  background: var(--bg-elevated);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.05) inset,
    0 -2px 0 0 rgba(0,0,0,0.2) inset,
    var(--shadow-sm);
}

.kahoot-btn.btn-dark:hover {
  background: #1e2738;
  box-shadow: var(--shadow-md);
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  width: 92%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s var(--ease-spring), opacity 0.3s ease;
  opacity: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Scrollbar inside modals */
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 3px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.close-btn {
  font-size: 1.6rem;
  background: transparent;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
}

.close-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

/* ============================================
   QUIZ LIST (Modal items)
   ============================================ */

.quiz-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.quiz-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  gap: 1rem;
}

.quiz-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-default);
  transform: translateX(4px);
}

.quiz-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.quiz-info p {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.quiz-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ============================================
   QUIZ CREATOR
   ============================================ */

.question-builder-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.q-edit-card {
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  padding: 1.5rem;
  border-radius: var(--r-md);
  position: relative;
}

.q-number-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--accent-violet);
  padding: 2px 12px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.creator-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.option-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.5);
  padding: 0.5rem;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}

.option-input-group.correct {
  border-color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.06);
}

.option-input-group.option-red { border-left: 3px solid var(--color-red); }
.option-input-group.option-blue { border-left: 3px solid var(--color-blue); }
.option-input-group.option-yellow { border-left: 3px solid var(--color-amber); }
.option-input-group.option-green { border-left: 3px solid var(--color-emerald); }

.radio-correct {
  width: 18px;
  height: 18px;
  accent-color: var(--color-emerald);
  cursor: pointer;
}

/* ============================================
   HOST LAYOUT
   ============================================ */

.host-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 60% 50% at 15% 25%, rgba(124, 93, 250, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 75%, rgba(59, 130, 246, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 50% 80%, rgba(239, 68, 104, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 75% 15%, rgba(245, 158, 11, 0.06) 0%, transparent 45%);
}

.host-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: rgba(6, 8, 15, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10;
}

/* PIN display */
.pin-display {
  background: #fff;
  color: #0f172a;
  padding: 0.5rem 2.2rem;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  border-radius: var(--r-md);
  letter-spacing: 6px;
  box-shadow:
    0 0 0 1px rgba(124, 93, 250, 0.2),
    0 0 20px rgba(124, 93, 250, 0.15),
    0 8px 24px rgba(0,0,0,0.3);
  animation: pinGlow 3s ease-in-out infinite alternate;
}

@keyframes pinGlow {
  0% { box-shadow: 0 0 0 1px rgba(124,93,250,0.2), 0 0 20px rgba(124,93,250,0.15), 0 8px 24px rgba(0,0,0,0.3); }
  100% { box-shadow: 0 0 0 1px rgba(124,93,250,0.35), 0 0 35px rgba(124,93,250,0.25), 0 8px 24px rgba(0,0,0,0.3); }
}

/* ============================================
   LOBBY SCREEN
   ============================================ */

.lobby-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2rem;
  gap: 1.5rem;
}

.lobby-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.02em;
}

.player-grid {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 380px;
  background: rgba(13, 17, 23, 0.5);
  border: 2px dashed rgba(124, 93, 250, 0.2);
  border-radius: var(--r-lg);
  margin-top: 0.75rem;
  overflow: hidden;
  box-shadow: inset 0 4px 30px rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.player-card-bounce {
  position: absolute;
  width: 190px;
  height: 56px;
  background: #fff;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
  animation: cardPopIn 0.45s var(--ease-spring) forwards;
}

@keyframes cardPopIn {
  from { transform: scale(0) rotate(-8deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

.avatar-holder {
  width: 52px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.name-holder {
  flex: 1;
  padding: 0 0.75rem;
  color: #0f172a;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   QUESTION SCREEN
   ============================================ */

.question-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
  padding: 1.5rem;
  justify-content: space-between;
}

.question-text-box {
  width: 100%;
  text-align: center;
  padding: 1.5rem 2rem;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  background: rgba(13, 17, 23, 0.5);
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.question-middle-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  margin-bottom: 1.5rem;
  min-height: 200px;
}

/* Timer ring */
.timer-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 10px solid var(--accent-violet);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 700;
  background: rgba(13, 17, 23, 0.6);
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow:
    0 0 0 4px rgba(124, 93, 250, 0.08),
    0 0 30px var(--accent-violet-glow);
}

.timer-circle.warning {
  border-color: var(--color-red);
  box-shadow:
    0 0 0 4px rgba(239, 68, 104, 0.1),
    0 0 40px var(--color-red-glow);
  animation: timerShake 0.4s infinite alternate;
}

@keyframes timerShake {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* Answers badge */
.answers-count-badge {
  position: absolute;
  left: 6%;
  background: var(--color-blue);
  color: white;
  padding: 1.2rem;
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px var(--color-blue-glow);
}

.answers-count-badge span:first-child {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.answers-count-badge span:last-child {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* Question visual element */
.question-media-placeholder {
  position: absolute;
  right: 6%;
  width: 180px;
  height: 110px;
  background: rgba(124, 93, 250, 0.04);
  border: 2px dashed rgba(124, 93, 250, 0.2);
  border-radius: var(--r-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.inner-question-mark {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-amber);
  text-shadow: 0 0 20px var(--color-amber-glow);
  z-index: 5;
  animation: questionFloat 3s ease-in-out infinite;
}

@keyframes questionFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

.pulse-ring-wave {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 2px solid rgba(245, 158, 11, 0.25);
  border-radius: 50%;
  opacity: 0;
  z-index: 1;
}

.pulse-ring-wave.wave-1 { animation: pulseRing 2.4s ease-out infinite; }
.pulse-ring-wave.wave-2 { animation: pulseRing 2.4s ease-out 0.8s infinite; }
.pulse-ring-wave.wave-3 { animation: pulseRing 2.4s ease-out 1.6s infinite; }

@keyframes pulseRing {
  0% { transform: scale(0.4); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ============================================
   OPTIONS GRID
   ============================================ */

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  margin-top: auto;
}

.option-box {
  padding: 1.6rem 1.5rem;
  border-radius: var(--r-md);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease;
  cursor: default;
}

.option-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.option-box.red {
  background: var(--color-red);
  box-shadow: 0 4px 20px var(--color-red-glow), 0 -2px 0 var(--color-red-deep) inset;
}
.option-box.blue {
  background: var(--color-blue);
  box-shadow: 0 4px 20px var(--color-blue-glow), 0 -2px 0 var(--color-blue-deep) inset;
}
.option-box.yellow {
  background: var(--color-amber);
  box-shadow: 0 4px 20px var(--color-amber-glow), 0 -2px 0 var(--color-amber-deep) inset;
}
.option-box.green {
  background: var(--color-emerald);
  box-shadow: 0 4px 20px var(--color-emerald-glow), 0 -2px 0 var(--color-emerald-deep) inset;
}

/* Shapes */
.shape-triangle { width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 24px solid rgba(255,255,255,0.9); }
.shape-diamond { width: 20px; height: 20px; background: rgba(255,255,255,0.9); transform: rotate(45deg); }
.shape-circle { width: 24px; height: 24px; background: rgba(255,255,255,0.9); border-radius: 50%; }
.shape-square { width: 22px; height: 22px; background: rgba(255,255,255,0.9); border-radius: 3px; }

/* ============================================
   RESULTS / STATS SCREEN
   ============================================ */

.results-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  padding: 1.5rem;
  gap: 1.5rem;
}

.chart-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 260px;
  gap: 2rem;
  width: 100%;
  max-width: 560px;
  margin: 1.5rem 0;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.chart-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
  gap: 0.5rem;
}

.chart-bar {
  width: 80px;
  border-radius: 10px 10px 0 0;
  transition: height 1s var(--ease-spring) forwards;
  height: 0;
  position: relative;
  display: flex;
  justify-content: center;
}

.chart-bar.red { background: var(--color-red); box-shadow: 0 0 20px var(--color-red-glow); }
.chart-bar.blue { background: var(--color-blue); box-shadow: 0 0 20px var(--color-blue-glow); }
.chart-bar.yellow { background: var(--color-amber); box-shadow: 0 0 20px var(--color-amber-glow); }
.chart-bar.green { background: var(--color-emerald); box-shadow: 0 0 20px var(--color-emerald-glow); }

.bar-value {
  position: absolute;
  top: -32px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.chart-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 6px;
}

.chart-label-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.chart-label-badge.red-badge { background: var(--color-red); }
.chart-label-badge.blue-badge { background: var(--color-blue); }
.chart-label-badge.yellow-badge { background: var(--color-amber); color: #0f172a; }
.chart-label-badge.green-badge { background: var(--color-emerald); }

.is-correct-indicator {
  font-size: 1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  font-weight: 700;
}

.is-correct-indicator.correct-badge {
  background: var(--color-emerald);
  color: #fff;
  box-shadow: 0 0 12px var(--color-emerald-glow);
}

.is-correct-indicator.incorrect-badge {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 0 8px var(--color-red-glow);
}

/* ============================================
   LEADERBOARD
   ============================================ */

.leaderboard-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.leaderboard-title {
  font-family: var(--font-heading);
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-red), var(--color-blue), var(--color-amber), var(--color-emerald), var(--accent-violet));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes leaderboard-slide-in {
  0% { opacity: 0; transform: translateY(24px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  max-width: 580px;
}

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-out);
}

.leaderboard-row:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow-md);
}

.leaderboard-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rank-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--bg-card);
  flex-shrink: 0;
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  color: #78350f;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}
.rank-badge.rank-2 {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #1e293b;
  box-shadow: 0 0 8px rgba(148, 163, 184, 0.3);
}
.rank-badge.rank-3 {
  background: linear-gradient(135deg, #fdba74, #ea580c);
  color: #fff;
  box-shadow: 0 0 8px rgba(234, 88, 12, 0.3);
}

.player-name-lbl {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.player-score-lbl {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-violet-light);
}

/* Rank row highlights */
.leaderboard-row.rank-row-1 {
  background: rgba(245, 158, 11, 0.06) !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
}
.leaderboard-row.rank-row-2 {
  background: rgba(148, 163, 184, 0.04) !important;
  border-color: rgba(148, 163, 184, 0.15) !important;
}
.leaderboard-row.rank-row-3 {
  background: rgba(234, 88, 12, 0.04) !important;
  border-color: rgba(234, 88, 12, 0.15) !important;
}

.player-score-lbl.score-1 { color: var(--color-amber) !important; }
.player-score-lbl.score-2 { color: #cbd5e1 !important; }
.player-score-lbl.score-3 { color: #fb923c !important; }

/* ============================================
   PODIUM
   ============================================ */

.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 420px;
  gap: 6px;
  width: 100%;
  max-width: 600px;
  margin: 1.5rem auto;
  position: relative;
  padding-bottom: 10px;
}

.podium-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 3%;
  width: 94%;
  height: 6px;
  background: linear-gradient(90deg, #94a3b8, #fcd34d 50%, #f59e0b);
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  z-index: 5;
}

.podium-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  flex: 1;
  transition: opacity 0.6s var(--ease-out);
}

.podium-avatar-top {
  font-size: 4.8rem;
  line-height: 1;
  margin-bottom: -8px;
  z-index: 10;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
  animation: avatarFloat 3s ease-in-out infinite alternate;
}

@keyframes avatarFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.podium-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  border-radius: 14px 14px 0 0;
  padding: 3rem 0.5rem 1rem;
  position: relative;
  border: none;
  gap: 0.4rem;
  overflow: hidden;
}

/* Metallic shine sweep */
.podium-stand::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: shineSweep 5s infinite ease-in-out;
  z-index: 5;
  pointer-events: none;
}

@keyframes shineSweep {
  0% { left: -150%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

.podium-stand.first {
  height: 230px;
  z-index: 3;
  background: linear-gradient(180deg, #fefce8 0%, #fef08a 40%, #facc15 100%);
  border: 2px solid #eab308;
  border-bottom: none;
  box-shadow: 0 10px 40px rgba(250, 204, 21, 0.25), 0 4px 12px rgba(0,0,0,0.2);
}

.podium-stand.second {
  height: 170px;
  z-index: 2;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 40%, #94a3b8 100%);
  border: 2px solid #94a3b8;
  border-bottom: none;
  box-shadow: 0 8px 30px rgba(148, 163, 184, 0.2), 0 4px 12px rgba(0,0,0,0.2);
}

.podium-stand.third {
  height: 125px;
  z-index: 1;
  background: linear-gradient(180deg, #fff7ed 0%, #fed7aa 40%, #ea580c 100%);
  border: 2px solid #c2410c;
  border-bottom: none;
  box-shadow: 0 8px 25px rgba(194, 65, 12, 0.15), 0 4px 12px rgba(0,0,0,0.2);
}

.podium-badge-rank {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 46px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 50% 100%, 0% 70%);
  z-index: 12;
}

.podium-badge-rank.rank-1 {
  background: linear-gradient(180deg, #fcd34d, #b45309);
  width: 46px; height: 52px;
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.4));
}
.podium-badge-rank.rank-2 {
  background: linear-gradient(180deg, #e2e8f0, #475569);
}
.podium-badge-rank.rank-3 {
  background: linear-gradient(180deg, #fed7aa, #9a3412);
}

.podium-name {
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  color: #1e1b4b;
  word-break: break-word;
  width: 100%;
  margin-top: 0.2rem;
}

#podium-name-1 { font-size: 1.4rem; animation: winnerPulse 1.5s ease-in-out infinite alternate; }
#podium-name-2 { font-size: 1.2rem; color: #334155; }
#podium-name-3 { font-size: 1.05rem; color: #475569; }

@keyframes winnerPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); }
}

.podium-score {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: var(--r-full);
  margin-top: auto;
}

#podium-score-1 { background: #fef9c3; color: #92400e; font-size: 0.95rem; }
#podium-score-2 { background: #f1f5f9; color: #475569; }
#podium-score-3 { background: #ffedd5; color: #9a3412; }

/* ============================================
   PLAYER LAYOUT
   ============================================ */

.player-body {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.player-view-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  width: 100%;
}

.player-join-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pin-input {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 6px;
}

.nickname-input {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Player answer buttons */
.player-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 600px;
  flex: 1;
  margin: 0.75rem 0;
}

.player-btn {
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s ease, filter 0.2s ease;
  color: #fff;
  font-family: var(--font-heading);
}

/* 3D pressed effect for each color button */
.player-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 40%);
  pointer-events: none;
}

.player-btn:active {
  transform: scale(0.93);
}

.player-btn.btn-red {
  background: var(--color-red);
  box-shadow: 0 6px 0 var(--color-red-deep), 0 8px 24px var(--color-red-glow);
}
.player-btn.btn-blue {
  background: var(--color-blue);
  box-shadow: 0 6px 0 var(--color-blue-deep), 0 8px 24px var(--color-blue-glow);
}
.player-btn.btn-yellow {
  background: var(--color-amber);
  box-shadow: 0 6px 0 var(--color-amber-deep), 0 8px 24px var(--color-amber-glow);
}
.player-btn.btn-green {
  background: var(--color-emerald);
  box-shadow: 0 6px 0 var(--color-emerald-deep), 0 8px 24px var(--color-emerald-glow);
}

.player-btn:active.btn-red { box-shadow: 0 2px 0 var(--color-red-deep), 0 4px 12px var(--color-red-glow); }
.player-btn:active.btn-blue { box-shadow: 0 2px 0 var(--color-blue-deep), 0 4px 12px var(--color-blue-glow); }
.player-btn:active.btn-yellow { box-shadow: 0 2px 0 var(--color-amber-deep), 0 4px 12px var(--color-amber-glow); }
.player-btn:active.btn-green { box-shadow: 0 2px 0 var(--color-emerald-deep), 0 4px 12px var(--color-emerald-glow); }

.player-btn.disabled {
  filter: grayscale(0.65) opacity(0.45);
  pointer-events: none;
  box-shadow: none;
}

/* ============================================
   PLAYER FEEDBACK SCREEN
   ============================================ */

.feedback-screen {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  width: 100%;
  animation: screenFadeIn 0.35s ease forwards;
}

.feedback-screen.correct-bg {
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
}

.feedback-screen.incorrect-bg {
  background: radial-gradient(ellipse at center, rgba(239, 68, 104, 0.12) 0%, transparent 70%);
}

.feedback-icon {
  font-size: 5.5rem;
  margin-bottom: 1.5rem;
  animation: feedbackBounce 0.6s var(--ease-spring) infinite alternate;
}

@keyframes feedbackBounce {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-12px) scale(1.05); }
}

.feedback-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.feedback-points {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feedback-streak {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-amber);
  background: rgba(245, 158, 11, 0.08);
  padding: 0.3rem 1rem;
  border-radius: var(--r-full);
  display: inline-block;
  margin-top: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.feedback-standing {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 1.25rem;
}

/* ============================================
   CONFETTI
   ============================================ */

.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
}

/* ============================================
   UTILITIES
   ============================================ */

.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Legacy aliases */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in { animation: fadeIn 0.4s ease forwards; }

@keyframes pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes tick-tock {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ============================================
   PLAYER LOBBY BALL GRADIENTS
   ============================================ */

.ball-0 { background: radial-gradient(circle at 30% 30%, #f87171 0%, var(--color-red) 70%, var(--color-red-deep) 100%); }
.ball-1 { background: radial-gradient(circle at 30% 30%, #60a5fa 0%, var(--color-blue) 70%, var(--color-blue-deep) 100%); }
.ball-2 { background: radial-gradient(circle at 30% 30%, #fbbf24 0%, var(--color-amber) 70%, var(--color-amber-deep) 100%); }
.ball-3 { background: radial-gradient(circle at 30% 30%, #34d399 0%, var(--color-emerald) 70%, var(--color-emerald-deep) 100%); }
.ball-4 { background: radial-gradient(circle at 30% 30%, #a78bfa 0%, var(--accent-violet) 70%, #5b21b6 100%); }
.ball-5 { background: radial-gradient(circle at 30% 30%, #fb923c 0%, #f97316 70%, #c2410c 100%); }

/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */

@media (max-width: 768px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
  .creator-options-grid {
    grid-template-columns: 1fr;
  }
  .host-header {
    padding: 0.75rem 1.25rem;
  }
  .host-header .logo {
    font-size: 1.2rem;
  }
  .pin-display {
    font-size: 2rem;
    padding: 0.4rem 1.5rem;
    letter-spacing: 4px;
  }
  .lobby-title {
    font-size: 1.4rem;
  }
  .player-grid {
    height: 280px;
  }
  .timer-circle {
    width: 120px;
    height: 120px;
    font-size: 2.8rem;
    border-width: 8px;
  }
  .answers-count-badge {
    width: 80px;
    height: 80px;
    padding: 0.8rem;
    left: 3%;
  }
  .answers-count-badge span:first-child {
    font-size: 1.5rem;
  }
  .question-media-placeholder {
    display: none;
  }
  .question-text-box {
    font-size: 1.3rem;
    padding: 1rem 1.25rem;
  }
  .option-box {
    padding: 1.2rem 1rem;
    font-size: 1.1rem;
  }
  .chart-bar {
    width: 60px;
  }
  .chart-wrapper {
    gap: 1rem;
    height: 200px;
  }
  .leaderboard-title {
    font-size: 2rem;
  }
  .podium-container {
    height: 340px;
  }
  .podium-avatar-top {
    font-size: 3.5rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.75rem 1rem;
  }
  .logo {
    font-size: 1.3rem;
  }
  .player-view-container {
    padding: 1rem;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }
  .player-join-card {
    padding: 1.5rem;
    gap: 1rem;
  }
  .player-join-card h2 {
    font-size: 1.4rem;
  }
  .pin-input {
    font-size: 1.5rem;
  }
  .nickname-input {
    font-size: 1.05rem;
  }
  .player-buttons-grid {
    gap: 0.5rem;
    margin: 0.4rem 0;
    grid-template-rows: 1fr 1fr;
    height: 100%;
  }
  .player-btn {
    flex-direction: row !important;
    gap: 0.5rem;
    padding: 0.7rem;
    border-radius: var(--r-md);
    touch-action: manipulation;
  }
  .player-btn span {
    font-size: 2rem !important;
  }
  .player-btn [class^="shape-"] {
    transform: scale(0.65) !important;
  }
  .shape-diamond {
    transform: scale(0.65) rotate(45deg) !important;
  }
  .feedback-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }
  .feedback-title {
    font-size: 1.7rem;
  }
  .feedback-points {
    font-size: 1.1rem;
  }
  .feedback-standing {
    font-size: 0.9rem;
    margin-top: 0.75rem;
  }
  #feedback-content {
    padding: 1.25rem;
  }
  #screen-lobby-wait,
  #screen-submitted {
    padding: 1.25rem;
  }
  #screen-lobby-wait div:first-child,
  #screen-submitted div:first-child {
    font-size: 3rem !important;
  }
  #screen-lobby-wait h2 {
    font-size: 1.3rem;
  }
  .kahoot-logo {
    font-size: 2.8rem;
  }
  .landing-subtitle {
    font-size: 0.95rem;
  }
  .kahoot-card {
    max-width: 100%;
    padding: 1.25rem;
  }
}
