/* ⭐ دکمه تغییر کلمه */
.btn-sm {
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
}

.game-info .info-badge button {
    background: #794cfb !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    transition: var(--transition);
}

.game-info .info-badge button:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 3px 12px rgba(253, 203, 110, 0.4) !important;
}







/* ============================================
   استایل کامل بازی اسم فامیل FLR
   ============================================ */

/* فونت فارسی */
/* فونت ایران‌سنس (Vazirmatn) - نسخه آپلود شده */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  
  /* اعمال فونت به کل سایت */
  :root {
      --font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  * {
      font-family: var(--font-family);
  }
  
  /* برای اطمینان بیشتر */
  body, input, textarea, select, button, h1, h2, h3, h4, h5, h6, p, span, div, a, li, td, th {
      font-family: var(--font-family);
  }
  
  /* تنظیم وزن فونت برای عناوین */
  h1, h2, h3, h4, h5, h6 {
      font-weight: 700;
  }
  
  /* تنظیم وزن فونت برای دکمه‌ها */
  .btn {
      font-weight: 500;
  }
  
  /* تنظیم وزن فونت برای لینک‌های ناوبری */
  .nav-link {
      font-weight: 500;
  }
  
  /* تنظیم وزن فونت برای متن معمولی */
  body {
      font-weight: 400;
      line-height: 1.8;
  }

/* ریست و تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --secondary: #00CEC9;
    --accent: #FD79A8;
    --success: #00B894;
    --warning: #FDCB6E;
    --danger: #E17055;
    --dark: #2D3436;
    --light: #DFE6E9;
    --white: #FFFFFF;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-game: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.4);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--gradient-game);
    min-height: 100vh;
    color: var(--dark);
    direction: rtl;
    overflow-x: hidden;
}

/* افکت ذرات پس‌زمینه */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(108, 92, 231, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 206, 201, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(253, 121, 168, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   هدر بازی
   ============================================ */
.game-header {
    height: 65px;
    background: #ffffff12;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-logo {
    display: flex;
    gap: 12px;
    display: flex;
    align-items: baseline;

}

.game-logo i {
    font-size: 28px;
    color: var(--warning);
    animation: logoSpin 3s linear infinite;
}

@keyframes logoSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.game-logo h1 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.round-badge {
    background: var(--gradient-2);
    padding: 8px 16px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   منوی اصلی
   ============================================ */
.main-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover, .nav-btn.active {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   کانتینر اصلی
   ============================================ */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ============================================
   سکشن‌ها
   ============================================ */
.section {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   کارت‌ها
   ============================================ */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.card-header i {
    font-size: 24px;
    color: var(--primary);
}

.card-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

/* ============================================
   فرم‌ها
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light);
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
    background: white;
    direction: rtl;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.form-input::placeholder {
    color: #aaa;
}

/* ============================================
   دکمه‌ها
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--gradient-3);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 184, 148, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #e17055, #d63031);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-3dpx);
    box-shadow: 0 5px 20px rgba(225, 112, 85, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #fdcb6e, #f39c12);
    color: white;
}

.btn-warning:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(253, 203, 110, 0.4);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 18px;
}

/* ============================================
   بخش ورود
   ============================================ */
.login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
}

.login-card {
    max-width: 450px;
    width: 100%;
    text-align: center;
}

.login-icon {
    font-size: 60px;
    color: var(--primary);
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.login-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: #666;
    margin-bottom: 30px;
}

/* ============================================
   بخش لابی
   ============================================ */
.lobby-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rooms-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.rooms-list::-webkit-scrollbar {
    width: 8px;
}

.rooms-list::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 10px;
}

.rooms-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.room-item {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border: 2px solid var(--light);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
}

.room-item:hover {
    border-color: var(--primary);
    transform: translateX(-5px);
    box-shadow: var(--shadow-sm);
}

.room-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
}

.room-info p {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.room-players {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   بخش اتاق انتظار
   ============================================ */
.waiting-room {
    text-align: center;
}

.room-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.room-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(253, 203, 110, 0.2);
    color: #f39c12;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 25px;
}

.room-status i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.player-card {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border: 2px solid var(--light);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: var(--transition);
}

.player-card.creator {
    border-color: var(--warning);
    background: linear-gradient(135deg, #fff9e6, #fff);
}

.player-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.player-card.creator i {
    color: var(--warning);
}

.player-card span {
    font-weight: 600;
    font-size: 14px;
}

.creator-badge {
    display: inline-block;
    background: var(--warning);
    color: white;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    margin-top: 5px;
}

.room-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* ============================================
   بخش بازی
   ============================================ */
.game-section {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.game-header-bar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: var(--shadow-md);
}

.letter-display {
    background: var(--gradient-1);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    box-shadow: var(--shadow-glow);
    animation: letterPop 0.5s ease;
}

@keyframes letterPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.timer-display {
    background: linear-gradient(135deg, #2d3436, #636e72);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timer-display.warning {
    background: linear-gradient(135deg, #e17055, #d63031);
    animation: timerPulse 0.5s infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.game-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.info-badge {
    background: var(--light);
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   فرم جواب‌ها
   ============================================ */
.answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.answer-card {
    background: white;
    border: 2px solid var(--light);
    border-radius: 14px;
    padding: 15px;
    transition: var(--transition);
}

.answer-card.locked {
    border-color: var(--success);
    background: linear-gradient(135deg, #e8fff5, #fff);
}

.answer-card .category-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.answer-input-group {
    display: flex;
    gap: 8px;
}

.answer-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.answer-input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.answer-input-group input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.answer-input-group input.locked {
    background: #e8fff5;
    border-color: var(--success);
}

.btn-lock {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: var(--success);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-lock:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 3px 15px rgba(0, 184, 148, 0.4);
}

.btn-lock:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-lock.locked {
    background: var(--success);
}

/* دکمه استپ */
.stop-section {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--light);
}

/* ============================================
   بخش امتیازدهی
   ============================================ */
.scoring-section {
    animation: fadeInUp 0.5s ease;
}

.scoring-header {
    text-align: center;
    margin-bottom: 30px;
}

.scoring-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.scoring-header p {
    color: #666;
}

.scoring-my-answers {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
}

.scoring-my-answers h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--light);
    flex-wrap: wrap;
    gap: 10px;
}

.score-row:last-child {
    border-bottom: none;
}

.score-category {
    width: 150px;
    font-weight: 600;
    font-size: 14px;
}

.score-answer {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--light);
    font-size: 14px;
}

.score-options {
    display: flex;
    gap: 8px;
}

.score-btn {
    width: 45px;
    height: 40px;
    border: 2px solid var(--light);
    border-radius: 8px;
    background: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.score-btn:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
}

.score-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.scoring-actions {
    text-align: center;
    margin-top: 25px;
}

.waiting-message {
    text-align: center;
    padding: 30px;
    color: #666;
}

.waiting-message i {
    font-size: 40px;
    color: var(--warning);
    margin-bottom: 15px;
    animation: spin 2s linear infinite;
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.players-score-status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.score-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.score-status-badge.done {
    background: rgba(0, 184, 148, 0.2);
    color: var(--success);
}

.score-status-badge.pending {
    background: rgba(253, 203, 110, 0.2);
    color: #f39c12;
}

/* ============================================
   بخش نتایج
   ============================================ */
.results-section {
    animation: fadeInUp 0.5s ease;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h2 {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.leaderboard {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
}

.leaderboard h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.leaderboard-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.leaderboard-item.first {
    background: linear-gradient(135deg, #fff9e6, #fff);
    border: 2px solid var(--warning);
}

.leaderboard-item.second {
    background: linear-gradient(135deg, #f0f0f0, #fff);
    border: 2px solid #aaa;
}

.leaderboard-item.third {
    background: linear-gradient(135deg, #ffe8d6, #fff);
    border: 2px solid #cd7f32;
}

.rank-badge {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    margin-left: 15px;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: white;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    color: white;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #e17055, #d63031);
    color: white;
}

.rank-badge.normal {
    background: var(--light);
    color: var(--dark);
}

.player-name-result {
    flex: 1;
    font-weight: 700;
    font-size: 16px;
}

.player-score {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   بخش راهنما
   ============================================ */
.guide-section {
    animation: fadeInUp 0.5s ease;
}

.guide-content {
    line-height: 2;
}

.guide-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 25px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-content p, .guide-content li {
    font-size: 15px;
    color: #444;
    margin-bottom: 10px;
}

.guide-content ul {
    padding-right: 25px;
}

.guide-content .step {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-right: 4px solid var(--primary);
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 0 12px 12px 0;
}

.guide-content .tip {
    background: rgba(0, 206, 201, 0.1);
    border: 1px solid var(--secondary);
    padding: 15px 20px;
    border-radius: 12px;
    margin: 15px 0;
}

.guide-content .warning {
    background: rgba(225, 112, 85, 0.1);
    border: 1px solid var(--danger);
    padding: 15px 20px;
    border-radius: 12px;
    margin: 15px 0;
}

/* ============================================
   نوتیفیکیشن
   ============================================ */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-180px);
    background: white;
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 90%;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

.notification.success {
    border-right: 4px solid var(--success);
}

.notification.error {
    border-right: 4px solid var(--danger);
}

.notification.info {
    border-right: 4px solid var(--primary);
}

/* ============================================
   لودر
   ============================================ */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* ============================================
   رسپانسیو
   ============================================ */
  
@media (min-width: 768px) {
        .game-logo {
        display: none;
    }
}
   
   
@media (max-width: 768px) {

    .game-header {
        background: #a558ffa1;
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .header-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .game-logo h1 {
        font-size: 20px;
    }
    
    .main-nav {
        padding: 8px 15px;
    }
    
    .nav-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .main-container {
        padding: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .lobby-grid {
        grid-template-columns: 1fr;
    }
    
    .game-header-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .letter-display {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    
    .answers-grid {
        grid-template-columns: 1fr;
    }
    
    .score-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .score-category {
        width: 100%;
    }
    
    .score-options {
        justify-content: center;
    }
    
    .room-actions {
        flex-direction: column;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .players-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .game-logo h1 {
        font-size: 18px;
    }
    
    .nav-btn {
        padding: 7px 12px;
        font-size: 12px;
    }
    
    .card-header h2 {
        font-size: 18px;
    }
    
    .login-title {
        font-size: 22px;
    }
    
    .letter-display {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .timer-display {
        font-size: 20px;
        padding: 12px 18px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .players-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   انیمیشن‌های اضافی
   ============================================ */
.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
}

.pop {
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(108, 92, 231, 0.3); }
    50% { box-shadow: 0 0 20px rgba(108, 92, 231, 0.6); }
}