/* === SIAPA CEPAT MODERN DESIGN SYSTEM === */
:root {
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311042 100%);
  --panel-bg: rgba(30, 41, 59, 0.7);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent: #ec4899;

  /* Kahoot 4 Colors */
  --k-red: #e21b3c;
  --k-blue: #1368ce;
  --k-yellow: #d89e00;
  --k-green: #26890c;

  --k-red-dark: #b8142f;
  --k-blue-dark: #0f52a5;
  --k-yellow-dark: #ac7e00;
  --k-green-dark: #1e6d0a;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Glass panel */
.glass {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Navigation bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--panel-border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: #fff;
}

.brand-logo img {
  height: 38px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.brand-badge {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-size: 1rem;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--panel-border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border-radius: var(--radius-lg);
}

/* Landing Page Hero */
.hero {
  padding: 4rem 1.5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 70%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.quick-join-card {
  max-width: 480px;
  margin: 0 auto 3rem auto;
  padding: 2rem;
  text-align: center;
}

.pin-input {
  width: 100%;
  font-size: 2rem;
  letter-spacing: 6px;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
  outline: none;
  transition: all 0.2s;
}

.pin-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3);
}

/* Quiz Card Grid */
.quiz-grid,
.quizzes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.quiz-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.quiz-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.4);
}

.quiz-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.quiz-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.quiz-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===================================================
   KAHOOT 4-COLOR SHAPE BUTTONS
=================================================== */
.kahoot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  height: 100%;
  flex-grow: 1;
  padding: 1rem;
}

.kahoot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  padding: 1.5rem;
  position: relative;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.25);
  user-select: none;
}

.kahoot-btn:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.k-red {
  background: var(--k-red);
  box-shadow: 0 8px 0 var(--k-red-dark);
}
.k-blue {
  background: var(--k-blue);
  box-shadow: 0 8px 0 var(--k-blue-dark);
}
.k-yellow {
  background: var(--k-yellow);
  box-shadow: 0 8px 0 var(--k-yellow-dark);
}
.k-green {
  background: var(--k-green);
  box-shadow: 0 8px 0 var(--k-green-dark);
}

.kahoot-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.kahoot-shape {
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kahoot-text {
  flex-grow: 1;
  text-align: left;
  line-height: 1.2;
}

/* For participant view with shapes only */
.kahoot-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: var(--radius-lg);
  font-size: 3.5rem;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.1s;
}

.kahoot-mobile-btn:active {
  transform: scale(0.95);
}

/* True / False layout */
.tf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
  padding: 1rem;
}

/* ===================================================
   HOST PRESENTER SCREEN
=================================================== */
.host-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: #0f172a;
}

.host-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--panel-border);
  z-index: 10;
}

.host-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 3rem;
  position: relative;
  overflow-y: auto;
}

/* Lobby View */
.lobby-card {
  max-width: 900px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  margin: auto;
}

.pin-display-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2.5rem;
  margin: 1.5rem 0;
}

.pin-label {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 2px;
}

.pin-digits {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 8px;
  color: #38bdf8;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.lobby-qr-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.qr-code-img {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.player-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-height: 200px;
  overflow-y: auto;
  padding: 1rem;
  margin-top: 1.5rem;
}

.player-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Question Banner */
.question-banner {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2.5rem;
  font-size: 1.9rem;
  font-weight: 800;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  line-height: 1.3;
}

/* Question Status Bar (Timer & Answers Count) */
.question-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 1.25rem;
}

.timer-circle {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  transition: all 0.3s;
}

.timer-circle.warning {
  animation: pulseWarning 0.5s infinite alternate;
}

@keyframes pulseWarning {
  0% { transform: scale(1); background: #ef4444; }
  100% { transform: scale(1.1); background: #b91c1c; }
}

.answers-counter-badge {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--panel-border);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Results Chart */
.chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
  height: 320px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

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

.chart-bar {
  width: 100%;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.5rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  min-height: 40px;
  position: relative;
}

.chart-label {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.correct-indicator {
  position: absolute;
  top: -36px;
  font-size: 1.7rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Leaderboard */
.leaderboard-card {
  max-width: 750px;
  width: 100%;
  padding: 2rem;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.3s;
}

.leaderboard-item.rank-1 {
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.25), rgba(255, 255, 255, 0.05));
  border-color: rgba(234, 179, 8, 0.5);
}

.rank-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-right: 1rem;
}

.player-info {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-score {
  font-size: 1.3rem;
  color: #38bdf8;
  font-weight: 800;
}

.streak-badge {
  font-size: 0.85rem;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

/* ===================================================
   PODIUM CELEBRATION (KAHOOT STYLE)
=================================================== */
.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  height: 400px;
  width: 100%;
  max-width: 800px;
  margin: 2rem 0;
}

.podium-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
}

.podium-pedestal {
  width: 100%;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: growUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes growUp {
  0% { height: 0; opacity: 0; }
  100% { opacity: 1; }
}

.podium-1 {
  height: 240px;
  background: linear-gradient(180deg, #f59e0b, #b45309);
  order: 2;
}

.podium-2 {
  height: 180px;
  background: linear-gradient(180deg, #94a3b8, #475569);
  order: 1;
}

.podium-3 {
  height: 130px;
  background: linear-gradient(180deg, #d97706, #78350f);
  order: 3;
}

.podium-avatar-box {
  margin-bottom: 0.75rem;
  text-align: center;
  animation: bounceIn 0.8s ease 0.4s both;
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.podium-avatar {
  font-size: 3rem;
  display: block;
}

.podium-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}

.podium-pts {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 700;
}

/* ===================================================
   PARTICIPANT / PLAYER MOBILE SCREEN
=================================================== */
.player-screen {
  max-width: 450px;
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  position: relative;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.avatar-btn {
  font-size: 1.8rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}

.avatar-btn.selected {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.25);
  transform: scale(1.08);
}

.feedback-banner {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feedback-correct {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.feedback-wrong {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

/* ===================================================
   WORD CLOUD & MENTIMETER STYLES
=================================================== */
.word-cloud-canvas {
  width: 100%;
  max-width: 900px;
  height: 380px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
}

.qa-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 750px;
  max-height: 450px;
  overflow-y: auto;
}

.qa-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
}

/* Canvas Confetti */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* Utilities */
.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.gap-2 { gap: 0.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* --- GAME SHOW: BIG TACTILE BUZZER STYLES --- */
.buzzer-btn-locked {
  background: radial-gradient(circle at 35% 35%, #475569, #1e293b 80%) !important;
  border: 8px solid #334155 !important;
  color: #94a3b8 !important;
  opacity: 0.85;
}
.buzzer-btn-locked:active {
  transform: scale(0.97) !important;
}
.buzzer-btn-countdown {
  background: radial-gradient(circle at 35% 35%, #f59e0b, #b45309 80%) !important;
  border: 8px solid #78350f !important;
  animation: buzzer-pulse 0.8s infinite alternate !important;
}
.buzzer-btn-open {
  background: radial-gradient(circle at 35% 35%, #ef4444, #991b1b 80%) !important;
  border: 8px solid #fca5a5 !important;
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.75), inset 0 8px 16px rgba(255,255,255,0.4) !important;
  animation: buzzer-glow 0.9s infinite alternate !important;
}
.buzzer-btn-open:active {
  transform: scale(0.92) !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.95), inset 0 4px 8px rgba(0,0,0,0.6) !important;
}
.buzzer-btn-active {
  background: radial-gradient(circle at 35% 35%, #10b981, #047857 80%) !important;
  border: 8px solid #6ee7b7 !important;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.7) !important;
}
.buzzer-btn-penalized {
  background: #1e293b !important;
  border: 8px solid #ef4444 !important;
  opacity: 0.65;
  cursor: not-allowed !important;
}

@keyframes buzzer-glow {
  0% { transform: scale(1); box-shadow: 0 0 30px rgba(239,68,68,0.5); }
  100% { transform: scale(1.05); box-shadow: 0 0 65px rgba(239,68,68,0.95); }
}
@keyframes buzzer-pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); }
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* ===================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
=================================================== */

/* Safe area support for iOS and Android notch devices */
@supports (padding-top: env(safe-area-inset-top)) {
  .player-screen {
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* Tablet & Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
  }
  
  .brand-logo {
    font-size: 1.25rem;
    gap: 0.5rem;
  }

  .brand-logo img {
    height: 30px;
    max-width: 155px;
  }
  
  .nav-links {
    gap: 0.4rem;
  }
  
  .nav-hide-mobile {
    display: none !important;
  }
  
  .hero {
    padding: 2.5rem 1rem 1.5rem 1rem;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 0.85rem;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
  
  .quick-join-card {
    padding: 1.5rem 1.1rem;
    margin-bottom: 2rem;
  }
  
  .pin-input {
    font-size: 1.6rem;
    letter-spacing: 4px;
    padding: 0.75rem;
  }
  
  /* Quiz library grid */
  .quiz-grid, .quizzes-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  /* Studio responsive */
  .studio-body {
    flex-direction: column;
  }
  .slides-sidebar {
    width: 100%;
    max-height: 220px;
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
  }
  .library-pane {
    display: none;
  }
  .editor-pane {
    padding: 1.25rem 1rem;
  }
  
  /* Host header responsive */
  .host-header {
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* Mobile Phones (<= 480px) */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .navbar {
    padding: 0.6rem 0.85rem;
  }

  .btn {
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 0.85rem 1.4rem;
    font-size: 1rem;
  }

  /* Player Mobile Screen */
  .player-screen {
    padding: 0.75rem;
  }

  .player-card {
    padding: 1.5rem 1rem !important;
    border-radius: var(--radius-md) !important;
  }

  .avatar-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
  }

  .avatar-btn {
    font-size: 1.5rem;
    padding: 0.35rem;
    border-radius: var(--radius-sm);
  }

  .kahoot-grid {
    gap: 0.6rem;
    padding: 0.25rem;
  }

  .kahoot-mobile-btn {
    font-size: 2.2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25);
  }

  .tf-grid {
    gap: 0.6rem;
    padding: 0.25rem;
  }

  #player-big-buzzer-btn {
    width: clamp(170px, 46vw, 210px) !important;
    height: clamp(170px, 46vw, 210px) !important;
  }

  /* Dashboard mobile layout */
  .dashboard-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .stats-card {
    padding: 1rem 0.85rem;
    gap: 0.75rem;
  }

  .stats-icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .dash-nav-tab {
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
  }

  /* Auth Card mobile */
  .auth-card {
    padding: 1.75rem 1.25rem !important;
    border-radius: var(--radius-md) !important;
  }
}
