/**
 * Trader Duel - NADO COLORS + CASINO ENERGY
 * Dark Nado palette with gambling excitement retained
 */

/* ===== CSS RESET & BASE ===== */
* {
  box-sizing: border-box;
}

/* ===== CASINO ANIMATIONS ===== */
@keyframes casino-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.9; }
}

@keyframes glow-enhance {
  0%, 100% { 
    box-shadow: 0 8px 32px rgba(229, 62, 62, 0.15);
  }
  50% { 
    box-shadow: 0 12px 48px rgba(229, 62, 62, 0.25);
  }
}

@keyframes ranking-highlight {
  0%, 100% { 
    background: rgba(229, 62, 62, 0.04);
    box-shadow: 0 4px 16px rgba(229, 62, 62, 0.2);
  }
  50% { 
    background: rgba(229, 62, 62, 0.08);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.3);
  }
}

/* ===== MAIN CONTAINER ===== */
#duel-container {
  background: #000000;
  min-height: calc(100vh - 200px);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #ffffff;
  padding: 0;
}

.duel-game-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
}

/* ===== ENHANCED HEADER SECTION ===== */
.duel-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 32px;
  background: #0a0b0d;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.duel-header h1 {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(229, 62, 62, 0.6);
}

.duel-subtitle {
  font-size: 1.1rem;
  color: #9ca3af;
  font-weight: 500;
  margin: 0;
}

/* ===== LOBBY SECTION ===== */
.duel-lobby {
  margin-bottom: 40px;
}

.duel-lobby h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 24px 0;
  text-align: center;
}

/* ===== TOURNAMENT GRID ===== */
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* ===== ENHANCED TOURNAMENT CARDS ===== */
.tournament-card {
  background: #0a0b0d;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}

.tournament-card:hover {
  background: #0f1012;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 20px rgba(229, 62, 62, 0.1);
  transform: translateY(-4px);
  animation: glow-enhance 2s ease-in-out infinite;
}

.tournament-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.tournament-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.01em;
}

.tournament-type {
  background: #111214;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Tournament type indicators with glow */
.tournament-card.quick-duel {
  border-left: 3px solid #e53e3e;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 3px 0 8px rgba(229, 62, 62, 0.1);
}

.tournament-card.arena {
  border-left: 3px solid #6366f1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 3px 0 8px rgba(99, 102, 241, 0.1);
}

.tournament-card.marathon {
  border-left: 3px solid #eab308;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 3px 0 8px rgba(234, 179, 8, 0.1);
}

/* ===== TOURNAMENT INFO ===== */
.tournament-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.info-item {
  text-align: center;
}

.info-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.info-value.prize {
  color: #e53e3e;
  text-shadow: 0 0 10px rgba(229, 62, 62, 0.5);
}

.info-value.duration {
  color: #eab308;
  text-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

/* ===== PARTICIPANT LIST ===== */
.participant-list {
  margin-bottom: 20px;
}

.participant-list h4 {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 600;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.participants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.participant {
  background: #111214;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: #c4c9d4;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.participant:hover {
  background: #171a21;
  transform: translateY(-1px);
}

.participant.you {
  background: rgba(229, 62, 62, 0.1);
  color: #e53e3e;
  border-color: rgba(229, 62, 62, 0.2);
  box-shadow: 0 0 10px rgba(229, 62, 62, 0.3);
}

/* ===== ENHANCED ACTION BUTTONS ===== */
.tournament-actions {
  text-align: center;
}

.join-btn {
  background: #e53e3e;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4), 0 0 20px rgba(229, 62, 62, 0.2);
  animation: casino-pulse 3s ease-in-out infinite;
}

.join-btn:hover {
  background: #c53030;
  box-shadow: 0 8px 28px rgba(229, 62, 62, 0.5), 0 0 30px rgba(229, 62, 62, 0.3);
  transform: translateY(-2px);
}

.join-btn:disabled {
  background: #374151;
  color: #6b7280;
  cursor: not-allowed;
  box-shadow: none;
  animation: none;
}

.leave-btn {
  background: #ef4444;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4), 0 0 20px rgba(239, 68, 68, 0.2);
}

.leave-btn:hover {
  background: #dc2626;
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.5), 0 0 30px rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

/* ===== ACTIVE DUEL SECTION ===== */
.duel-active {
  margin-top: 40px;
}

.duel-active .tournament-header {
  background: #0a0b0d;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.duel-active .tournament-title {
  font-size: 1.5rem;
  text-align: center;
}

/* ===== ENHANCED COUNTDOWN TIMER ===== */
.duel-countdown {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
  background: #0a0b0d;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.duel-countdown h1 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
}

.countdown-timer {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #eab308;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(234, 179, 8, 0.8), 0 0 40px rgba(234, 179, 8, 0.4);
  animation: casino-pulse 2s ease-in-out infinite;
}

/* ===== TRADING INTERFACE ===== */
.duel-trading {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  margin-bottom: 32px;
}

/* ===== PRICE CHART AREA ===== */
.chart-area {
  background: #0a0b0d;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chart-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.price-ticker {
  display: flex;
  gap: 12px;
}

.ticker-item {
  background: #000000;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 8px 16px;
  text-align: center;
  min-width: 80px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  transition: all 0.2s ease;
}

.ticker-item:hover {
  background: #0f1012;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.2);
}

.ticker-symbol {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.ticker-price {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.ticker-change {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 2px;
}

.ticker-change.positive { 
  color: #22c55e; 
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}
.ticker-change.negative { 
  color: #ef4444; 
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* ===== CHART CONTAINER ===== */
.chart-container {
  background: #000000;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  height: 400px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

#duel-chart {
  width: 100%;
  height: 100%;
}

/* ===== ENHANCED TRADING PANEL ===== */
.trade-panel {
  background: #0a0b0d;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 24px;
  height: fit-content;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.trade-panel h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 24px 0;
  text-align: center;
  text-shadow: 0 0 15px rgba(229, 62, 62, 0.6);
}

/* ===== SYMBOL SELECTOR ===== */
.symbol-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.symbol-btn {
  background: #111214;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 6px;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.symbol-btn:hover,
.symbol-btn.active {
  background: #171a21;
  color: #ffffff;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.2);
  transform: translateY(-2px);
}

/* ===== PRICE DISPLAY ===== */
.price-display {
  margin-bottom: 24px;
}

.price-box {
  background: #000000;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.symbol-label {
  font-size: 0.9rem;
  color: #e53e3e;
  font-weight: 600;
  margin-bottom: 8px;
}

.price {
  font-size: 1.8rem;
  color: #ffffff;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  margin: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.price-change {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
}

/* ===== TRADE CONTROLS ===== */
.trade-controls {
  margin-bottom: 24px;
}

.control-group {
  margin-bottom: 20px;
}

.control-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.control-input {
  width: 100%;
  background: #000000;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 16px;
  box-sizing: border-box;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

.control-input:focus {
  outline: none;
  border-color: #e53e3e;
  box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.15), inset 0 2px 4px rgba(0,0,0,0.3);
}

/* ===== SLIDER CONTROLS ===== */
.slider-group {
  margin-bottom: 20px;
}

.slider {
  width: 100%;
  height: 6px;
  background: #111214;
  border-radius: 3px;
  outline: none;
  appearance: none;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: #e53e3e;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(229, 62, 62, 0.5);
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #e53e3e;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(229, 62, 62, 0.5);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.slider-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.slider-value {
  font-size: 0.85rem;
  color: #e53e3e;
  font-weight: 700;
  text-align: center;
  margin-top: 8px;
  text-shadow: 0 0 10px rgba(229, 62, 62, 0.5);
}

/* ===== ENHANCED TRADE BUTTONS ===== */
.trade-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.trade-btn {
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trade-btn.long {
  background: #e53e3e;
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4), 0 0 20px rgba(229, 62, 62, 0.2);
}

.trade-btn.long:hover {
  background: #c53030;
  box-shadow: 0 8px 28px rgba(229, 62, 62, 0.5), 0 0 30px rgba(229, 62, 62, 0.3);
  transform: translateY(-2px);
}

.trade-btn.short {
  background: #ef4444;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4), 0 0 20px rgba(239, 68, 68, 0.2);
}

.trade-btn.short:hover {
  background: #dc2626;
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.5), 0 0 30px rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

.trade-btn:disabled {
  background: #374151;
  color: #6b7280;
  cursor: not-allowed;
  box-shadow: none;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
  margin-bottom: 24px;
}

.portfolio h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #9ca3af;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-info {
  background: #000000;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.portfolio-item {
  text-align: center;
}

.portfolio-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-value {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.portfolio-value.profit {
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.portfolio-value.loss {
  color: #ef4444;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

/* ===== POSITION CARDS ===== */
.position-card {
  background: #000000;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.position-card:hover {
  background: #0f1012;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.position-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.position-symbol {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.position-type {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.position-type.long {
  background: rgba(229, 62, 62, 0.1);
  color: #e53e3e;
  box-shadow: 0 0 8px rgba(229, 62, 62, 0.3);
}

.position-type.short {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.position-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-size: 0.8rem;
}

.position-detail {
  text-align: center;
}

.position-detail-label {
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.position-detail-value {
  color: #ffffff;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.close-position-btn {
  background: #ef4444;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  transition: all 0.2s ease;
}

.close-position-btn:hover {
  background: #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
  transform: scale(1.1);
}

/* ===== ENHANCED RANKINGS SECTION ===== */
.rankings {
  background: #0a0b0d;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.rankings h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px 0;
  text-align: center;
  text-shadow: 0 0 15px rgba(229, 62, 62, 0.6);
}

.rankings-list {
  max-height: 400px;
  overflow-y: auto;
}

.ranking-row {
  background: #000000;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ranking-row:hover {
  background: #0f1012;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.ranking-row.highlight {
  border-color: rgba(229, 62, 62, 0.2);
  background: rgba(229, 62, 62, 0.04);
  box-shadow: 0 4px 16px rgba(229, 62, 62, 0.2);
  animation: ranking-highlight 3s ease-in-out infinite;
}

.ranking-position {
  font-size: 1.2rem;
  font-weight: 800;
  color: #e53e3e;
  min-width: 40px;
  text-shadow: 0 0 10px rgba(229, 62, 62, 0.5);
}

.ranking-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-left: 16px;
}

.ranking-pnl {
  text-align: right;
}

.pnl-badge {
  background: transparent;
  border: 1px solid;
  border-radius: 4px;
  padding: 4px 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
}

.pnl-badge.positive {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.2);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.pnl-badge.negative {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .duel-trading {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .trade-panel {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .duel-game-wrapper {
    padding: 20px 16px;
  }
  
  .duel-header {
    padding: 24px 20px;
  }
  
  .duel-header h1 {
    font-size: 2rem;
  }
  
  .tournament-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .tournament-card {
    padding: 20px;
  }
  
  .tournament-info {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .chart-area,
  .trade-panel {
    padding: 20px;
  }
  
  .symbol-selector {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .trade-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .position-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .countdown-timer {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .duel-header h1 {
    font-size: 1.8rem;
  }
  
  .tournament-card {
    padding: 16px;
  }
  
  .chart-container {
    height: 250px;
  }
  
  .countdown-timer {
    font-size: 1.8rem;
  }
  
  .price {
    font-size: 1.5rem;
  }
}

/* ===== SCROLLBAR STYLING ===== */
.rankings-list::-webkit-scrollbar {
  width: 4px;
}

.rankings-list::-webkit-scrollbar-track {
  background: #000000;
}

.rankings-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.rankings-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.15);
}