    :root {
      --primary-color: #0077cc;
      --primary-hover: #005fa3;
      --success-color: #28a745;
      --danger-color: #dc3545;
      --danger-hover: #c82333;
      --bg-color: #f4f7f9;
      --container-bg: #ffffff;
      --text-color: #333;
      --light-gray: #e6e6e6;
      --modal-bg: #ffffff;
      --modal-shadow: rgba(0, 0, 0, 0.15);
      --modal-border-radius: 12px;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
   body {
      font-family: 'Roboto', sans-serif;
      background: var(--bg-color);
      color: var(--text-color);
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      position: relative;
    } 
    
    .container {
      background: var(--container-bg);
      border-radius: var(--modal-border-radius);
      box-shadow: 0 4px 20px var(--modal-shadow);
      width: 90%;
      max-width: 800px;
      overflow: hidden;
      position: relative;
    }
    header {
      background: linear-gradient(135deg, var(--primary-color), #005fa3);
      padding: 20px;
      color: #fff;
    }
    .header-info { display: flex; justify-content: space-between; align-items: center; }
    .header-left, .header-right { font-size: 18px; font-weight: 500; }
    .header-center { font-size: 26px; font-weight: bold; text-align: center; }
    main { padding: 30px 20px; }
    .section { margin-bottom: 30px; }
    .section.hidden { display: none; }
    .form-group { margin-bottom: 20px; }
    label { display: block; margin-bottom: 8px; font-weight: 500; }
    input[type="text"] {
      width: 100%; padding: 14px; border: 1px solid var(--light-gray); border-radius: 8px; font-size: 16px;
    }
    button {
      background: var(--primary-color); color: #fff; border: none;
      padding: 14px 28px; font-size: 16px; border-radius: 8px; cursor: pointer;
      transition: background 0.3s, transform 0.2s; margin-top: 10px;
    }
    button:not(:disabled):hover { background: var(--primary-hover); transform: scale(1.02); }
    button:disabled { cursor: not-allowed; }
    #liveCall { margin-right: 10px; background: var(--success-color); }
    #liveCall:not(:disabled):hover { background: #218838; }
    #waitCall { background: #0077cc; }
    #waitCall:not(:disabled):hover { background: #005fa3; }
    .question-img { max-width: 100%; width: 450px; margin: 20px auto; display: block; border-radius: 8px; }
    .answers { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 20px; }
    .answer-btn {
      width: 40px; height: 40px; border-radius: 50%;
      border: 2px solid var(--primary-color); display: flex; justify-content: center; align-items: center;
      font-size: 16px; font-weight: bold; cursor: pointer; transition: background 0.3s, transform 0.2s;
      color: var(--primary-color);
    }
    .answer-btn:hover { background: rgba(0, 119, 204, 0.1); transform: scale(1.05); }
    .answer-btn.selected { background: var(--primary-color); color: #fff; }
    .confirm-btn {
      background: var(--primary-color); color: #fff; border: none; padding: 14px 28px;
      font-size: 16px; border-radius: 8px; cursor: pointer; transition: background 0.3s, transform 0.2s;
      margin-top: 10px; margin-right: 10px;
    }
    .confirm-btn:not(:disabled):hover { background: var(--primary-hover); transform: scale(1.02); }
    .confirm-btn:disabled { background: #cccccc; color: #666666; cursor: not-allowed; }
    .progress-row {
      display: flex; justify-content: space-between; align-items: center;
      padding: 10px 20px; margin-bottom: 20px; flex-wrap: nowrap;
    }
    .progress-left { width: 60px; height: 60px; position: relative; }
    .progress-left svg {
      position: absolute; top: 0; left: 0; transform: rotate(-90deg); width: 60px; height: 60px;
    }
    .progress-left circle { fill: none; stroke-width: 8; stroke-linecap: round; }
    .timer-bg { stroke: var(--light-gray); }
    .timer-progress {
      stroke: #ffcc00; stroke-dasharray: 163; stroke-dashoffset: 0;
      transition: stroke-dashoffset 1s linear;
    }
    .timer-text {
      position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
      font-size: 14px; font-weight: bold; color: var(--text-color);
    }
    .progress-right { font-size: 20px; font-weight: 600; }
    #callInfo {
      margin-top: 10px; padding: 15px; background: #e9ecef; border-left: 5px solid var(--primary-color);
      font-style: italic; min-height: 50px; display: flex; align-items: center; justify-content: center;
      overflow: hidden; border-radius: 8px;
    }
    .spinner {
      display: inline-block; width: 24px; height: 24px; border: 3px solid rgba(0,0,0,0.1);
      border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite;
      margin-right: 10px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .status-msg { animation: fadeSlide 1.5s ease-in-out; }
    @keyframes fadeSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
    .animated-seconds { display: inline-block; margin-left: 5px; font-weight: bold; color: blue; }
    .pulse { animation: pulse 1s; }
    #result {
      margin-top: 20px; padding: 20px; background: #f8f9fa; border-radius: 8px;
      border: 1px solid #ddd; font-size: 16px; line-height: 1.6;
    }
    @media (max-width: 600px) {
      .answers { gap: 10px; }
      .answer-btn { width: 40px; height: 40px; font-size: 16px; }
      .header-info { flex-direction: row; }
      .progress-row { flex-direction: row; }
    }
    /* MODAL STİLLERİ */
    .modal {
      position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center;
      z-index: 9999;
    }
    .modal.hidden { display: none; }
    .modal-content {
      background: var(--modal-bg); padding: 30px 40px; border-radius: var(--modal-border-radius);
      text-align: center; max-width: 450px; width: 90%; box-shadow: 0 4px 15px rgba(0,0,0,0.15); margin: 20px;
    }
    .modal-content h2 { margin-bottom: 20px; font-size: 22px; color: var(--primary-color); }
    .modal-content p { margin-bottom: 20px; font-size: 16px; line-height: 1.6; }
    .modal-content button {
      margin: 10px; padding: 10px 20px; font-size: 16px; border: none; border-radius: 6px;
      cursor: pointer; transition: background 0.3s;
    }
    #confirmExit { background: var(--danger-color); color: #fff; }
    #confirmExit:hover { background: var(--danger-hover); }
    #cancelExit { background: #6c757d; color: #fff; }
    #cancelExit:hover { background: #5a6268; }
    #exitContest { background: #dc3545; margin-top: 10px; }
    #exitContest:hover { background: #c82333; }
    /* GEÇİŞ ÖZELLİĞİ */
    .transition-overlay {
      position: absolute; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.4); display: flex; justify-content: center; align-items: center;
      z-index: 1000; pointer-events: none; opacity: 0; animation: overlayFadeIn 0.5s forwards;
    }
    .transition-overlay span {
      font-size: 48px; font-weight: bold; color: #ffcc00;
      animation: countdownPulse 1s infinite;
    }
    @keyframes overlayFadeIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes overlayFadeOut { from { opacity: 1; } to { opacity: 0; } }
    @keyframes countdownPulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
    .animated-seconds { color: #0077cc; }
    /* SOHBET ALANI */
    #chatArea {
      border-top: 1px solid var(--light-gray); padding: 20px; background: #fff;
    }
    #chatArea h3 {
      margin-bottom: 10px; font-size: 20px; border-bottom: 1px solid var(--light-gray); padding-bottom: 10px;
    }
    #chatMessages {
      max-height: 300px; overflow-y: auto; padding: 10px; background: #f9f9f9; border-radius: 8px; margin-bottom: 10px;
    }
    .chat-message {
      margin-bottom: 10px; padding: 12px 15px; border-radius: 12px; max-width: 70%; word-wrap: break-word;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .chat-message.user { background: #0077cc; color: #fff; margin-left: auto; text-align: right; }
    .chat-message.opponent { background: #e0e0e0; color: #333; margin-right: auto; text-align: left; }
    .chat-header { font-size: 14px; font-weight: bold; margin-bottom: 5px; }
    .chat-text { font-size: 16px; margin-bottom: 5px; }
    .chat-timestamp { font-size: 10px; color: #000; display: block; text-align: right; }
    #chatArea input[type="text"] {
      width: calc(100% - 22px); padding: 10px; border: 1px solid var(--light-gray); border-radius: 8px;
      margin-bottom: 10px; font-size: 16px;
    }
    #chatArea button {
      padding: 10px 20px; border: none; background: var(--primary-color); color: #fff;
      border-radius: 8px; cursor: pointer; font-size: 16px;
    }
    #chatArea button:hover { background: var(--primary-hover); }
    .typing-indicator { display: inline-block; }
    .typing-indicator::after { content: '...'; animation: blink 1s infinite; }
    @keyframes blink { 0% { opacity: 0.2; } 20% { opacity: 1; } 100% { opacity: 0.2; } }
    /* EKSTRA ONAY MODALİ */
    #confirmationModal .modal-content p { margin-bottom: 20px; }
    #confirmationModal .modal-content span#opponentNameConfirm:hover { text-decoration: underline; }
    /* Modern ikon stilleri */
    .modal-icon { font-size: 24px; margin-right: 8px; vertical-align: middle; }
    /* MATCHMAKING OVERLAY */
    .matchmaking-overlay {
      position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center;
      z-index: 11000; color: #fff; flex-direction: column; font-size: 24px;
      text-align: center; padding: 20px;
    }
    .matchmaking-overlay.hidden { display: none; }
    
    /* Gelişmiş Profesyonel Zaman Kısıtlı Modal */
.time-disabled-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(0,0,0,0.7));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: fadeInOverlay 0.8s ease forwards;
}

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

.overlay-content {
  position: relative;
  background: #fff;
  padding: 50px 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  animation: slideDown 0.8s ease forwards;
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.overlay-icon {
  font-size: 70px;
  color: #ff4d4d;
  margin-bottom: 20px;
  animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.overlay-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
}

.overlay-content p {
  font-size: 16px;
  line-height: 1.5;
  color: #666;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #333;
}

.animated-warning {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 0, 0.9);
  padding: 20px 30px;
  border: 2px solid #ffc107;
  border-radius: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #dc3545;
  animation: fadeInOut 1s ease;
  z-index: 9999;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
  }
}