/* ==========================================
   HALAT ÇEKME: FEN BİLİMLERİ
   testçöz.com
   ========================================== */

:root {
  /* Takım Renkleri */
  --blue-team: #1976D2;
  --blue-team-dark: #1565C0;
  --blue-team-light: #42A5F5;
  --blue-team-bg: #E3F2FD;

  --red-team: #D32F2F;
  --red-team-dark: #C62828;
  --red-team-light: #EF5350;
  --red-team-bg: #FFEBEE;

  /* Aksan */
  --primary: #FF9800;
  --primary-dark: #F57C00;
  --primary-darker: #E65100;

  /* Durum */
  --success: #43A047;
  --success-dark: #2E7D32;
  --danger: #E53935;
  --danger-dark: #C62828;

  /* Arka Plan */
  --bg-body: #f0f3f7;
  --bg-card: #ffffff;
  --bg-subtle: #f5f5f5;

  /* Yazı */
  --text-primary: #212121;
  --text-secondary: #757575;
  --text-muted: #9e9e9e;

  /* Gölge */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.18);

  /* Köşe */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Geçiş */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Oyun Tahtası */
  --board-max-width: 1280px;
  --board-max-height: 520px;
  --board-gap: clamp(10px, 1.6vw, 20px);

  /* Tipografi */
  --panel-title-size: clamp(13px, 1.4vw, 16px);
  --question-size: clamp(14px, 2vh, 18px);
  --option-size: clamp(13px, 1.8vh, 16px);
}


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

html, body {
  height: 100%;
  overflow: hidden;
  touch-action: manipulation;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  height: 100svh;
  display: grid;
  place-items: center;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ===== ÜST & ALT BANNER ===== */
.site-header-bar,
.site-footer-bar {
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  letter-spacing: 0.3px;
  z-index: 10;
  flex-shrink: 0;
}

.site-header-bar a,
.site-footer-bar a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.site-header-bar a:hover,
.site-footer-bar a:hover {
  color: var(--blue-team);
}

.site-header-bar strong {
  color: var(--blue-team);
  font-weight: 700;
}


/* ===== OYUN KABUK ===== */
.game-shell {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(8px, 1.5vw, 16px);
  overflow: hidden;
}

.game-stage {
  --game-scale: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: scale(var(--game-scale));
  transform-origin: center;
  transition: transform 0.25s ease;
  will-change: transform;
}

.game-board {
  width: var(--board-max-width);
  max-width: 100%;
  height: var(--board-max-height);
  max-height: 100%;
  display: grid;
  gap: var(--board-gap);
  align-items: stretch;
  grid-template-columns: 0.92fr 1.7fr 0.92fr;
  grid-template-areas: 'left arena right';
}


/* ===== QUIZ PANELLERİ ===== */
.quiz-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.panel-left {
  grid-area: left;
  border-top: 4px solid var(--blue-team);
}

.panel-right {
  grid-area: right;
  border-top: 4px solid var(--red-team);
}

.panel-header {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: var(--panel-title-size);
  flex: 0 0 auto;
}

.panel-left .panel-header {
  background: linear-gradient(135deg, var(--blue-team), var(--blue-team-dark));
  color: #fff;
}

.panel-right .panel-header {
  background: linear-gradient(135deg, var(--red-team), var(--red-team-dark));
  color: #fff;
}

.panel-header h3 {
  flex: 1;
  margin-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: inherit;
}

.score-badge {
  background: #fff;
  color: var(--blue-team);
  padding: 3px 10px;
  border-radius: 18px;
  font-size: clamp(16px, 2.2vh, 20px);
  font-weight: 900;
  min-width: 36px;
  text-align: center;
  flex: 0 0 auto;
}

.panel-right .score-badge {
  color: var(--red-team);
}


/* Soru Gösterimi */
.question-display {
  padding: 10px 12px;
  text-align: center;
  font-size: var(--question-size);
  font-weight: 700;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: var(--transition);
  line-height: 1.35;
}

.left-question {
  background: var(--blue-team-bg);
  color: var(--blue-team);
}

.right-question {
  background: var(--red-team-bg);
  color: var(--red-team);
}

.question-display.flash-correct {
  background: rgba(67, 160, 71, 0.25) !important;
  transform: scale(1.03);
}

.question-display.flash-wrong {
  background: rgba(229, 57, 53, 0.25) !important;
  animation: shakeBox 0.4s;
}

@keyframes shakeBox {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}


/* ===== SEÇENEK GRID ===== */
.options-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px 10px;
  background: var(--bg-subtle);
}

.option-btn {
  flex: 1 1 0;
  min-height: 0;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  overflow: hidden;
}

.option-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: #bdbdbd;
}

.option-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.option-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-sm);
}

.option-letter {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.option-text {
  flex: 1;
  font-size: var(--option-size);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  text-align: left;
}

/* Seçenek durumları */
.option-btn.selected {
  border-color: var(--blue-team);
  background: var(--blue-team-bg);
}

.option-btn.selected .option-letter {
  background: var(--blue-team);
  color: #fff;
}

.panel-right .option-btn.selected {
  border-color: var(--red-team);
  background: var(--red-team-bg);
}

.panel-right .option-btn.selected .option-letter {
  background: var(--red-team);
  color: #fff;
}

.option-btn.correct {
  border-color: var(--success);
  background: rgba(67, 160, 71, 0.12);
}

.option-btn.correct .option-letter {
  background: var(--success);
  color: #fff;
}

.option-btn.wrong {
  border-color: var(--danger);
  background: rgba(229, 57, 53, 0.12);
}

.option-btn.wrong .option-letter {
  background: var(--danger);
  color: #fff;
}


/* ===== ARENA ===== */
.arena-container {
  grid-area: arena;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.arena-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  border-radius: var(--radius-md);
  font-size: 13px;
  flex: 0 0 auto;
}

.score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  min-width: 80px;
}

.score-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 700;
}

.score-value {
  font-size: clamp(18px, 2.8vh, 26px);
  font-weight: 900;
}

.score-value.blue { color: var(--blue-team); }
.score-value.red { color: var(--red-team); }

.timer-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(14px, 2vh, 18px);
  font-weight: 900;
  color: var(--blue-team-dark);
  background: var(--bg-card);
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.timer-display.urgent {
  color: var(--danger);
  animation: timerPulse 0.5s infinite;
}

@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.timer-icon {
  font-size: 14px;
}


/* Oyun Alanı */
.arena {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.center-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    #90A4AE 0, #90A4AE 6px,
    transparent 6px, transparent 12px
  );
  z-index: 2;
  opacity: 0.5;
  pointer-events: none;
}

.rope-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.25, 1.5, 0.5, 1);
  z-index: 1;
}

.rope-container video {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Arena Mesaj */
.arena-msg {
  position: absolute;
  bottom: 4%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(13px, 1.8vh, 18px);
  font-weight: 800;
  z-index: 4;
  pointer-events: none;
  min-height: 20px;
}


/* ===== HALAT ANİMASYONLARI ===== */
.rope-container.pull-effect video {
  animation: pullBounce 0.3s ease;
}

@keyframes pullBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}


/* ===== TOZ EFEKTİ ===== */
.dust {
  position: absolute;
  border-radius: 50%;
  background: rgba(139, 119, 101, 0.45);
  pointer-events: none;
  animation: dustFloat 0.8s ease-out forwards;
  z-index: 5;
}

@keyframes dustFloat {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}


/* ===== SKOR POP ===== */
.score-pop {
  position: absolute;
  font-size: clamp(16px, 2.5vh, 24px);
  font-weight: 900;
  pointer-events: none;
  z-index: 10;
  animation: scorePop 0.8s ease-out forwards;
}

@keyframes scorePop {
  0% { opacity: 1; transform: translateY(0) scale(0.5); }
  40% { transform: translateY(-20px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-40px) scale(0.8); }
}


/* ===== KONFETİ ===== */
.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: -10px;
  pointer-events: none;
  z-index: 6;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  to {
    transform: translateY(120%) rotate(720deg);
    opacity: 0;
  }
}


/* ===== KAZANAN OVERLAY ===== */
.winner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border-radius: 14px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.winner-content {
  text-align: center;
  color: #fff;
  padding: 16px 20px;
}

.winner-trophy {
  font-size: clamp(48px, 8vh, 72px);
  margin-bottom: 6px;
  animation: trophyDrop 0.7s ease-out;
}

@keyframes trophyDrop {
  0% { transform: scale(0) rotate(-180deg); }
  60% { transform: scale(1.15) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}

.winner-title {
  font-size: clamp(20px, 3.5vh, 32px);
  font-weight: 900;
  margin-bottom: 4px;
}

.winner-message {
  font-size: clamp(12px, 2vh, 16px);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.winner-stats {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  justify-content: center;
  margin-bottom: 14px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-val {
  font-size: clamp(20px, 3.5vh, 30px);
  font-weight: 900;
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.winner-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.btn-replay {
  padding: 10px 28px;
  font-size: clamp(14px, 2vh, 18px);
  font-weight: 800;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.btn-replay:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-replay:active {
  transform: translateY(0);
}

.winner-share {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-copy { background: #546E7A; color: #fff; }
.share-whatsapp { background: #25D366; color: #fff; }
.share-twitter { background: #000; color: #fff; }

.winner-brand {
  display: inline-block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.winner-brand:hover {
  color: rgba(255, 255, 255, 0.7);
}


/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-overlay[style*="display: none"] {
  pointer-events: none;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: min(640px, 92vw);
  max-height: 90svh;
  overflow-y: auto;
  padding: clamp(18px, 2.5vw, 28px) clamp(16px, 2.5vw, 24px);
  animation: slideUp 0.35s ease;
}

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

.modal-title {
  text-align: center;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-team), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2px;
}

.modal-subtitle {
  text-align: center;
  font-size: clamp(13px, 1.6vw, 16px);
  color: var(--text-secondary);
  margin-bottom: 18px;
}


/* Ayar Grupları */
.setting-group {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.setting-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.grade-btn {
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}

.grade-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.grade-btn.active {
  border-color: var(--primary);
  background: rgba(255, 152, 0, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.15);
}

.grade-num {
  display: block;
  font-size: 1.4em;
  font-weight: 900;
  color: var(--text-primary);
}

.grade-btn.active .grade-num {
  color: var(--primary-dark);
}

.grade-text {
  display: block;
  font-size: 0.7em;
  font-weight: 600;
  color: var(--text-muted);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.time-btn {
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}

.time-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.time-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
}

.time-num {
  display: block;
  font-size: 1.6em;
  font-weight: 900;
}

.time-text {
  display: block;
  font-size: 0.7em;
  font-weight: 600;
  opacity: 0.6;
}


/* Nasıl Oynanır */
.how-to-play {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.how-to-play h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.how-to-play p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 3px;
}

.how-to-play .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.how-to-play strong {
  color: var(--success);
}


/* Başla Butonu */
.start-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 12px;
  padding: 14px 24px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 900;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 6px 0 var(--primary-darker), var(--shadow-md);
  transition: var(--transition);
  letter-spacing: 1px;
}

.start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--primary-darker), var(--shadow-lg);
}

.start-btn:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--primary-darker);
}

.modal-brand {
  text-align: center;
}

.modal-brand a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.modal-brand a:hover {
  color: var(--primary);
}


/* ===== GERİ SAYIM ===== */
.countdown-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 998;
  font-size: clamp(60px, 12vw, 100px);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 24px rgba(25, 118, 210, 0.8);
  animation: cdPop 0.5s ease-out;
}

.countdown-overlay.go {
  color: var(--success);
  text-shadow: 0 0 24px rgba(67, 160, 71, 0.8);
}

@keyframes cdPop {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}


/* ===== ANA SAYFA + KONTROL BUTONLARI ===== */
.home-btn {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  color: var(--blue-team-dark);
  cursor: pointer;
  transition: var(--transition);
}

.home-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.home-btn:active {
  transform: translateY(0);
}

.view-controls {
  position: fixed;
  left: max(10px, env(safe-area-inset-left));
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 1001;
}

.view-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-team-dark);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.view-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.view-btn:active {
  transform: translateY(0);
}


/* ===== YATAY ÇEVİR MESAJI ===== */
.rotate-msg {
  display: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1a237e, #283593);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 30px;
  text-align: center;
}

.rotate-icon {
  font-size: 52px;
  margin-bottom: 16px;
  animation: spinPhone 2s infinite;
}

@keyframes spinPhone {
  0%, 100% { transform: rotate(0); }
  25%, 75% { transform: rotate(-90deg); }
  50% { transform: rotate(-90deg); }
}

.rotate-msg p {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.rotate-hint {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 820px) {
  :root {
    --board-max-height: 100%;
  }

  .game-board {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 0.82fr 1.18fr;
    grid-template-areas:
      'arena arena'
      'left right';
  }

  .quiz-panel {
    height: 100%;
  }

  .options-grid {
    gap: 4px;
    padding: 6px 8px 8px;
  }

  .arena-scoreboard {
    font-size: 12px;
  }

  .score-item {
    min-width: 60px;
  }
}

@media (max-height: 420px) {
  .question-display {
    padding: 6px 8px;
    min-height: 38px;
  }

  .options-grid {
    gap: 3px;
    padding: 4px 6px 6px;
  }

  .option-btn {
    padding: 0 8px;
    gap: 6px;
  }

  .option-letter {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .panel-header {
    padding: 6px 10px;
  }

  .arena-scoreboard {
    padding: 6px 10px;
  }
}

@media (max-height: 620px) {
  .modal-content {
    max-height: 90svh;
    overflow-y: auto;
  }
}

/* Dikey telefon düzeni */
@media (max-width: 600px) and (orientation: portrait) {
  .game-shell {
    padding: 0 4px;
  }

  .game-board {
    grid-template-rows: 1fr auto;
    gap: 6px;
  }

  .arena-container {
    padding: 6px 8px;
    border-radius: var(--radius-sm);
  }

  .arena {
    margin-top: 4px;
    border-radius: 8px;
  }

  .arena-scoreboard {
    padding: 5px 8px;
  }

  .score-item {
    min-width: 46px;
    gap: 1px;
  }

  .score-label {
    font-size: 10px;
  }

  .timer-display {
    padding: 3px 10px;
    font-size: 13px;
  }

  .quiz-panel {
    border-radius: var(--radius-sm);
    height: clamp(300px, 56svh, 420px);
  }

  .panel-header {
    padding: 5px 8px;
  }

  .score-badge {
    padding: 2px 7px;
    font-size: 13px;
    min-width: 28px;
  }

  .question-display {
    padding: 5px 6px;
    min-height: 36px;
    font-size: clamp(11px, 3vw, 14px);
  }

  .options-grid {
    gap: 3px;
    padding: 4px 5px 5px;
  }

  .option-btn {
    border-radius: 6px;
    padding: 0 6px;
    gap: 6px;
    border-width: 1.5px;
  }

  .option-letter {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .option-text {
    font-size: clamp(10px, 2.8vw, 13px);
  }

  .home-btn {
    padding: 5px 8px;
    border-radius: 8px;
    top: 4px;
    left: 4px;
  }

  .home-btn svg {
    width: 14px;
    height: 14px;
  }

  .view-controls {
    bottom: 4px;
    left: 4px;
  }

  .view-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }
}


/* Dokunmatik cihazlar */
@media (hover: none) and (pointer: coarse) {
  .option-btn:hover,
  .grade-btn:hover,
  .time-btn:hover,
  .start-btn:hover,
  .btn-replay:hover,
  .share-btn:hover {
    transform: none;
    box-shadow: inherit;
  }

  .option-btn:active {
    transform: scale(0.98);
  }

  .start-btn:active,
  .btn-replay:active {
    transform: translateY(2px);
  }
}

/* Mobil portrait - kazanan overlay tam ekran */
@media (max-width: 600px) and (orientation: portrait) {
  .winner-overlay {
    position: fixed;
    inset: 0;
    border-radius: 0;
    z-index: 9990;
  }
  .winner-content {
    padding: 20px 16px;
  }
  .winner-trophy {
    font-size: 52px;
    margin-bottom: 8px;
  }
  .winner-title {
    font-size: clamp(22px, 5vw, 30px);
  }
  .winner-stats {
    margin-bottom: 16px;
  }
}

/* Diğer Oyunlar butonu */
.btn-other-games {
  padding: 10px 28px;
  font-size: clamp(14px, 2vh, 18px);
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,0.12);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}
.btn-other-games:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}
