* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gradient: linear-gradient(135deg, #8b5cf6, #3b82f6);
  --card-bg: rgba(0, 0, 0, 0.6);
  --card-border: rgba(107, 114, 128, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --star-color: #fbbf24;
  --gold-color: #ffd700;
  --silver-color: #c0c0c0;
  --bronze-color: #cd7f32;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.app {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.background {
  position: absolute;
  inset: 0;
  background-image: url("5720745.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.content {
  position: relative;
  z-index: 10;
  padding: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 6rem;
}

/* Profile Card */
.profile-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  margin-top: 3rem; /* Добавляем отступ сверху */
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.profile-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #4b5563;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.username {
  color: var(--text-primary);
  font-weight: bold;
  font-size: 1.125rem;
  margin-bottom: 0.125rem;
}

.user-number {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.user-level {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.profile-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.score {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(251, 191, 36, 0.2);
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
}

.score i {
  color: var(--star-color);
  font-size: 1rem;
}

.score span {
  color: var(--text-primary);
  font-weight: bold;
}

.settings-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.settings-btn i {
  font-size: 1.25rem;
}

/* Streamer Mode Blur Effect */
.blurable {
  position: relative;
  transition: var(--transition);
}

.blurable.blurred {
  filter: blur(8px);
  cursor: pointer;
  user-select: none;
}

.blurable.blurred::after {
  content: "👁️ Нажмите чтобы показать";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
}

.blurable.blurred:hover::after {
  opacity: 1;
}

.blurable.revealed {
  filter: none;
  animation: revealAnimation 0.3s ease-out;
}

@keyframes revealAnimation {
  0% {
    filter: blur(8px);
    opacity: 0.5;
  }
  100% {
    filter: none;
    opacity: 1;
  }
}

/* Main Section */
.main-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Main Card - добавляем закругленные края */
.main-card {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(107, 114, 128, 0.3);
  border-radius: 2rem; /* Увеличиваем закругление */
  padding: 1.5rem;
  margin: 0 auto;
  width: 100%;
  max-width: 28rem;
  min-height: 400px;
  position: relative;
  transition: var(--transition);
}

/* Game Content - адаптивная высота */
.game-content {
  opacity: 1;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 400px; /* По умолчанию */
}

.game-content.reduced-height {
  min-height: 300px;
}

.game-image-container {
  position: relative;
  margin-bottom: 1.5rem;
}

/* Game Image - добавляем закругленные края */
.game-image {
  aspect-ratio: 16 / 9;
  background: rgba(31, 41, 55, 0.5);
  border-radius: 1.5rem; /* Увеличиваем закругление */
  overflow: hidden;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border: none;
  color: var(--text-primary);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}

.nav-arrow.visible {
  opacity: 1;
  visibility: visible;
}

.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.nav-left {
  left: 0.5rem;
}

.nav-right {
  right: 0.5rem;
}

.game-description {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  transition: var(--transition);
}

/* Buttons - добавляем закругленные края */
.tickets-btn {
  width: 100%;
  background: var(--primary-gradient);
  border: none;
  color: var(--text-primary);
  font-weight: bold;
  padding: 1rem;
  border-radius: 1.5rem; /* Увеличиваем закругление */
  font-size: 1.125rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.tickets-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}

.tickets-btn:active {
  transform: translateY(0);
}

/* Top Content */
.top-content,
.profile-content {
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
}

.top-content.active,
.profile-content.active {
  opacity: 1;
  pointer-events: all;
  position: static;
}

.section-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
}

.top-list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.top-list::-webkit-scrollbar {
  width: 4px;
}

.top-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.top-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.top-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.top-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  transition: var(--transition);
  animation: slideInTop 0.3s ease-out;
}

.top-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

@keyframes slideInTop {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rank-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.rank-badge.gold {
  background: linear-gradient(135deg, var(--gold-color), #ffed4e);
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.rank-badge.silver {
  background: linear-gradient(135deg, var(--silver-color), #e5e7eb);
  color: #000;
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.rank-badge.bronze {
  background: linear-gradient(135deg, var(--bronze-color), #d97706);
  color: white;
  box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.player-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-name {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-level {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.player-score {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.score-number {
  color: var(--text-primary);
  font-weight: bold;
  font-size: 1rem;
}

.score-star {
  font-size: 1rem;
}

/* Profile Content - Профессиональный дизайн без эмодзи */
.profile-content {
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.profile-content.active {
  opacity: 1;
  pointer-events: all;
  position: static;
}

.profile-content::-webkit-scrollbar {
  width: 4px;
}

.profile-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.profile-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

/* Profile Header - Минималистичный дизайн */
.profile-header {
  margin-bottom: 2rem;
  text-align: center;
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.avatar-ring {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  padding: 3px;
  position: relative;
}

.avatar-ring::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(45deg, #8b5cf6, #3b82f6, #10b981, #f59e0b);
  opacity: 0.3;
  animation: avatarGlow 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes avatarGlow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #1f2937;
  border: 2px solid #000;
}

.avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.level-badge {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border-radius: 12px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  border: 2px solid #000;
}

.level-number {
  font-size: 0.875rem;
  font-weight: 900;
}

.level-text {
  font-size: 0.625rem;
  opacity: 0.9;
}

.profile-info-section {
  text-align: center;
}

.profile-name {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.profile-badges {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.badge-gold {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.badge-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.2));
  border-color: rgba(139, 92, 246, 0.3);
  color: #8b5cf6;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Modern Stat Cards - Профессиональный стиль */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card-modern {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.stat-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-gradient), transparent);
  transform: scaleX(0);
  transition: var(--transition);
}

.stat-card-modern:hover::before {
  transform: scaleX(1);
}

.stat-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
}

.stat-card-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  transition: var(--transition);
  border-radius: 16px;
}

.stat-card-modern.primary .stat-card-bg {
  background: radial-gradient(circle at 70% 30%, #3b82f6, transparent 70%);
}

.stat-card-modern.success .stat-card-bg {
  background: radial-gradient(circle at 70% 30%, #10b981, transparent 70%);
}

.stat-card-modern.warning .stat-card-bg {
  background: radial-gradient(circle at 70% 30%, #f59e0b, transparent 70%);
}

.stat-card-modern.info .stat-card-bg {
  background: radial-gradient(circle at 70% 30%, #8b5cf6, transparent 70%);
}

.stat-card-modern:hover .stat-card-bg {
  opacity: 0.1;
}

.stat-icon-wrapper {
  position: relative;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
}

.stat-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  position: relative;
  z-index: 2;
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.stat-card-modern.primary .stat-icon {
  color: #3b82f6;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
  border-color: rgba(59, 130, 246, 0.2);
}

.stat-card-modern.success .stat-icon {
  color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border-color: rgba(16, 185, 129, 0.2);
}

.stat-card-modern.warning .stat-icon {
  color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  border-color: rgba(245, 158, 11, 0.2);
}

.stat-card-modern.info .stat-icon {
  color: #8b5cf6;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
  border-color: rgba(139, 92, 246, 0.2);
}

.stat-pulse {
  display: none;
}

.stat-content h3 {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trend-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 4px;
  color: #10b981;
  font-size: 10px;
}

/* Level Progress Card - Минималистичный стиль */
.level-progress-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
}

.level-progress-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8b5cf6, #3b82f6, #10b981, transparent);
  opacity: 0.6;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.progress-header h3 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-percentage {
  color: #10b981;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.progress-bar-container {
  position: relative;
  margin-bottom: 0.75rem;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6, #10b981);
  border-radius: 3px;
  transition: width 1s ease-out;
  position: relative;
}

.progress-glow {
  display: none;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Mode Indicators */
.mode-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.indicator {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.indicator.active {
  background: var(--text-primary);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal - добавляем закругленные края */
.modal {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 2rem 2rem 0 0; /* Увеличиваем закругление */
  padding: 1.5rem;
  width: 100%;
  transform: translateY(100%);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  position: relative;
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-header h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.tickets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding-bottom: 1.5rem;
}

.ticket-option {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-weight: bold;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  cursor: pointer;
  transition: var(--transition);
}

.ticket-option:hover {
  background: rgba(55, 65, 81, 0.5);
}

.ticket-option.active {
  background: var(--primary-gradient);
  border-color: transparent;
}

/* Settings Modal */
.settings-modal {
  align-items: center;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  transition: var(--transition);
}

.setting-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.setting-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.setting-icon {
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  border-radius: 50%;
  flex-shrink: 0;
}

.setting-text h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.setting-text p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
}

.toggle-switch input[type="checkbox"] {
  display: none;
}

.toggle-label {
  display: block;
  width: 3rem;
  height: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.toggle-slider {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-label {
  background: var(--primary-gradient);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-label .toggle-slider {
  transform: translateX(1.5rem);
}

/* Password Input */
.password-input {
  width: 8rem;
}

.coming-soon-input {
  width: 100%;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: center;
  cursor: not-allowed;
}

.coming-soon-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* Bottom Navigation - добавляем закругленные края */
.bottom-nav {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(107, 114, 128, 0.3);
  border-radius: 2.5rem; /* Увеличиваем закругление */
  padding: 0.75rem 1.5rem;
  display: flex;
  gap: 2rem;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: navFloat 3s ease-in-out infinite;
}

@keyframes navFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0px);
  }
  50% {
    transform: translateX(-50%) translateY(-3px);
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem; /* Увеличиваем закругление */
  cursor: pointer;
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.6);
  min-width: 60px;
}

.nav-item:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav-item.active {
  color: #ffffff;
  background: var(--primary-gradient);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.nav-item i {
  font-size: 1.25rem;
  margin-bottom: 0.125rem;
}

.nav-item span {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .content {
    padding: 0.75rem;
    padding-bottom: 5.5rem;
  }

  .profile-card {
    padding: 0.75rem;
  }

  .main-card {
    padding: 1rem;
  }

  .tickets-btn {
    font-size: 1rem;
    padding: 0.875rem;
  }

  .modal {
    padding: 1rem;
  }

  .tickets-grid {
    gap: 0.5rem;
  }

  .ticket-option {
    padding: 0.75rem;
    font-size: 1rem;
  }

  .bottom-nav {
    bottom: 0.75rem;
    padding: 0.5rem 1rem;
    gap: 1.5rem;
  }

  .nav-item {
    padding: 0.375rem 0.75rem;
    min-width: 50px;
  }

  .nav-item i {
    font-size: 1.125rem;
  }

  .nav-item span {
    font-size: 0.7rem;
  }

  .top-item {
    gap: 0.75rem;
    padding: 0.5rem;
  }

  .player-name {
    font-size: 0.9rem;
  }

  .score-number {
    font-size: 0.9rem;
  }

  .settings-content {
    gap: 1rem;
  }

  .setting-item {
    padding: 0.75rem;
  }

  .setting-icon {
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
  }

  .setting-text h4 {
    font-size: 0.9rem;
  }

  .setting-text p {
    font-size: 0.8rem;
  }
}

/* Play Button */
.play-btn {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: var(--text-primary);
  font-weight: bold;
  padding: 0.875rem 1rem;
  border-radius: 1.5rem; /* Увеличиваем закругление */
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.play-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.play-btn:hover::before {
  left: 100%;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.play-btn:active {
  transform: translateY(0);
}

.play-btn i {
  font-size: 1.125rem;
}

/* Disabled play button styles */
.play-btn:disabled {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: 0 4px 10px rgba(107, 114, 128, 0.2);
}

.play-btn:disabled:hover {
  transform: none;
  box-shadow: 0 4px 10px rgba(107, 114, 128, 0.2);
}

/* Warning Modal */
.warning-modal {
  max-width: 400px;
  margin: 0 auto;
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.warning-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.warning-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.warning-header h3 {
  color: #ef4444;
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0;
}

.warning-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.warning-text {
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: justify;
  margin: 0;
}

.warning-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  border-bottom: 1px solid rgba(107, 114, 128, 0.2);
}

.checkbox-input {
  display: none;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-custom {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.25rem;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
  transition: var(--transition);
}

.checkbox-input:checked + .checkbox-label .checkbox-custom {
  background: var(--primary-gradient);
  border-color: transparent;
}

.checkbox-input:checked + .checkbox-label .checkbox-custom::after {
  transform: translate(-50%, -50%) scale(1);
}

.checkbox-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.warning-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cancel-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.875rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.start-game-btn {
  flex: 2;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  color: white;
  font-weight: bold;
  padding: 0.875rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.start-game-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.start-game-btn i {
  font-size: 1rem;
}

/* Loading Modal */
.loading-modal {
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.loading-content {
  text-align: center;
  padding: 2rem 1rem;
}

.loading-spinner {
  margin-bottom: 2rem;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(59, 130, 246, 0.2);
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.loading-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.loading-progress {
  margin-bottom: 2rem;
}

.progress-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  30% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.cancel-search-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cancel-search-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* Error Modal (No Players) */
.error-modal {
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.error-content {
  text-align: center;
  padding: 2rem 1rem;
}

.error-icon {
  font-size: 4rem;
  color: #ef4444;
  margin-bottom: 1rem;
  animation: errorPulse 2s ease-in-out infinite;
}

@keyframes errorPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.error-title {
  color: #ef4444;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.error-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.retry-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  color: white;
  font-weight: bold;
  padding: 0.875rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.retry-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.solo-mode-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: white;
  font-weight: bold;
  padding: 0.875rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.solo-mode-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Rotate Modal */
.rotate-modal {
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.rotate-content {
  text-align: center;
  padding: 2rem 1rem;
}

.rotate-icon {
  font-size: 3rem;
  color: #8b5cf6;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.rotate-arrow {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1.5rem;
  animation: rotateAnimation 2s ease-in-out infinite;
}

@keyframes rotateAnimation {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(90deg);
  }
}

.rotate-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.rotate-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.phone-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.phone-vertical,
.phone-horizontal {
  width: 60px;
  height: 100px;
  background: linear-gradient(135deg, #374151, #1f2937);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #4b5563;
  position: relative;
}

.phone-horizontal {
  width: 100px;
  height: 60px;
}

.phone-screen {
  width: 80%;
  height: 80%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 4px;
}

.rotation-arrow {
  color: #8b5cf6;
  font-size: 1.5rem;
  animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.continue-btn {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border: none;
  color: white;
  font-weight: bold;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.continue-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Contests Section */
/* Contests Content - убираем серый контейнер */
.contests-content {
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  display: none;
}

.contests-content.active {
  opacity: 1;
  pointer-events: all;
  position: static;
  display: block;
}

.contests-content .section-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

/* Contest Card - убираем серый фон */
.contest-card {
  position: relative;
  width: 100%;
  background: transparent; /* Убираем серый фон */
  border: none; /* Убираем границу */
  border-radius: 1.5rem;
  padding: 0; /* Убираем внутренние отступы */
  margin: 0 auto;
  max-width: 28rem;
}

/* Prize Count Badge */
.prize-count-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Contest Image Container - добавляем закругленные края */
.contest-image-container {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 1.5rem; /* Увеличиваем закругление */
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Blurred Background */
.contest-bg-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  opacity: 0.3;
  z-index: 1;
}

/* Contest Image Wrapper */
.contest-image-wrapper {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contest-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

/* GIF Badge */
.gif-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  background: rgba(16, 185, 129, 0.9);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  animation: gifPulse 2s ease-in-out infinite;
}

@keyframes gifPulse {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
}

/* Time Left Badge */
.time-left-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 20;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Contest Navigation Arrows */
.contest-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: none;
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  z-index: 15;
}

.contest-nav-arrow.visible {
  opacity: 1;
  visibility: visible;
}

.contest-nav-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.contest-nav-left {
  left: 0.5rem;
}

.contest-nav-right {
  right: 0.5rem;
}

/* Contest Info */
.contest-info {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contest-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.contest-equivalent {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.ton-amount {
  color: #3b82f6;
  font-weight: bold;
}

/* Wallet Input Section */
.wallet-input-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ton-wallet-input {
  width: 100%;
  padding: 0.875rem;
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(107, 114, 128, 0.3);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: var(--transition);
}

.ton-wallet-input::placeholder {
  color: var(--text-muted);
}

.ton-wallet-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.participate-btn {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: white;
  font-weight: bold;
  padding: 0.875rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.participate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.participate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.participate-btn.loading {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

.participate-btn.success {
  background: linear-gradient(135deg, #10b981, #059669);
}

/* Contest Indicators */
.contest-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.contest-indicator {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: var(--transition);
  cursor: pointer;
}

.contest-indicator.active {
  background: var(--text-primary);
}

.contest-indicator:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Mobile Optimizations */
@media (max-width: 480px) {
  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stat-card-modern {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .avatar-ring {
    width: 4rem;
    height: 4rem;
  }

  .profile-name {
    font-size: 1.25rem;
  }

  .level-progress-card {
    padding: 1rem;
  }

  .contest-card {
    padding: 1rem;
  }

  .contest-title {
    font-size: 1.25rem;
  }

  .phone-vertical,
  .phone-horizontal {
    width: 50px;
    height: 80px;
  }

  .phone-horizontal {
    width: 80px;
    height: 50px;
  }
}

/* Адаптивная высота для разных режимов */
@media (max-width: 480px) {
  .game-content {
    min-height: 350px;
  }

  .game-content.reduced-height {
    min-height: 250px;
  }
}
