* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  color: #fff;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo h1 {
  font-size: 2.5rem;
  color: #4ecdc4;
  text-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
}

.subtitle {
  color: #8892b0;
  font-size: 1.1rem;
  margin-top: 5px;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: #8892b0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
  background: #4ecdc4;
  color: #1a1a2e;
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #ccd6f6;
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #4ecdc4;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

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

.btn-primary {
  background: #4ecdc4;
  color: #1a1a2e;
  font-weight: 600;
  width: 100%;
}

.btn-primary:hover {
  background: #3dbdb4;
}

.btn-primary:disabled {
  background: #2a6b65;
  cursor: not-allowed;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.waiting-room {
  margin-top: 20px;
}

.hidden {
  display: none !important;
}

.code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 2px dashed rgba(78, 205, 196, 0.3);
}

.code-label {
  color: #8892b0;
  font-size: 0.9rem;
}

.code-value {
  font-size: 2rem;
  font-weight: bold;
  color: #4ecdc4;
  letter-spacing: 4px;
  font-family: 'Courier New', monospace;
}

.btn-copy {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.btn-copy:hover {
  opacity: 1;
}

.hint {
  color: #8892b0;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 8px;
}

.hint a {
  color: #4ecdc4;
  word-break: break-all;
}

.players-list {
  margin: 16px 0;
}

.player-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 8px;
}

.player-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.player-name {
  flex: 1;
}

.player-host {
  font-size: 0.75rem;
  background: #4ecdc4;
  color: #1a1a2e;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.stats-section {
  margin-top: 30px;
  text-align: center;
}

.stats-section h3 {
  color: #ccd6f6;
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: 10px;
}

.stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  color: #4ecdc4;
}

.stat-label {
  font-size: 0.8rem;
  color: #8892b0;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 1000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Lobby espacial: queda aislado para no alterar la pantalla del tablero. */
body.lobby-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #050817;
  isolation: isolate;
}

body.lobby-page::before,
body.lobby-page::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.lobby-page::before {
  z-index: -3;
  opacity: .72;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.95) 0 1px, transparent 1.7px),
    radial-gradient(circle at 78% 14%, rgba(135,220,255,.8) 0 1px, transparent 1.6px),
    radial-gradient(circle at 42% 76%, rgba(255,255,255,.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 62%, rgba(149,96,255,.9) 0 1px, transparent 1.8px),
    radial-gradient(circle at 25% 48%, rgba(116,255,230,.75) 0 1px, transparent 1.5px);
  background-size: 197px 251px, 311px 277px, 173px 197px, 263px 211px, 229px 337px;
  animation: star-drift 30s linear infinite;
}

body.lobby-page::after {
  z-index: 5;
  opacity: .14;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(143,240,255,.12) 3px 4px);
  mix-blend-mode: screen;
}

.space-scene,
.space-scene > * {
  position: fixed;
  pointer-events: none;
}

.space-scene { inset: 0; z-index: -2; overflow: hidden; }

.nebula {
  width: 54vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .52;
  animation: nebula-pulse 12s ease-in-out infinite alternate;
}

.nebula-violet { top: -26vw; right: -15vw; background: radial-gradient(circle, rgba(123,74,255,.58), rgba(56,35,148,.26) 38%, transparent 70%); }
.nebula-cyan { bottom: -33vw; left: -20vw; background: radial-gradient(circle, rgba(22,215,218,.42), rgba(32,86,184,.2) 42%, transparent 72%); animation-delay: -5s; }

.stars { inset: 0; opacity: .8; }
.stars-far { background-image: radial-gradient(circle, #fff 0 1px, transparent 1.5px); background-size: 73px 91px; opacity: .2; animation: star-drift 55s linear infinite reverse; }
.stars-near { background-image: radial-gradient(circle, #9efeff 0 1px, transparent 2px); background-size: 181px 153px; opacity: .25; animation: star-drift 22s linear infinite; }

.planet {
  border-radius: 50%;
  box-shadow: inset -22px -20px 34px rgba(0,0,0,.68), inset 8px 7px 16px rgba(255,255,255,.12), 0 0 42px rgba(85,128,255,.22);
}
.planet-one { width: 120px; height: 120px; right: 5vw; bottom: 8vh; background: radial-gradient(circle at 30% 25%, #8a9eff, #2b397a 48%, #121b43 72%); opacity: .55; animation: planet-float 10s ease-in-out infinite; }
.planet-two { width: 48px; height: 48px; left: 7vw; top: 22vh; background: radial-gradient(circle at 30% 28%, #f5d496, #a85a57 52%, #3b1945 78%); opacity: .62; animation: planet-float 8s ease-in-out -3s infinite reverse; }

.shooting-star {
  width: 170px;
  height: 2px;
  border-radius: 100%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(177,255,255,.2), #e9ffff);
  box-shadow: 0 0 10px #78f8ff, 0 0 24px rgba(120,248,255,.6);
  transform: rotate(-28deg);
  animation: meteor 9s ease-in infinite;
}
.meteor-one { top: 8%; left: -16%; animation-delay: .8s; }
.meteor-two { top: 34%; left: -18%; animation-delay: 4.1s; animation-duration: 11s; }
.meteor-three { top: 62%; left: -18%; animation-delay: 7s; animation-duration: 13s; }
.meteor-four { top: 16%; left: -18%; animation-delay: 9.5s; animation-duration: 12s; }

.lobby-shell {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 54px 20px 42px;
}

.lobby-page .logo { margin-bottom: 30px; }
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 9px; font-size: .67rem; letter-spacing: .2em; color: #8af8ff; font-weight: 700; text-shadow: 0 0 14px rgba(100,246,255,.8); }
.eyebrow span { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, #65f7ff); }
.eyebrow span:last-child { transform: scaleX(-1); }
.lobby-page .logo h1 { margin-top: 10px; font-size: clamp(2.5rem, 9vw, 4.5rem); letter-spacing: .045em; color: #5bf1ee; text-shadow: 0 0 14px rgba(74,236,234,.62), 0 0 42px rgba(74,236,234,.25); }
.brand-mark { display: inline-flex; width: .68em; color: #ffcf74; text-shadow: 0 0 18px rgba(255,199,96,.8); animation: mark-spin 8s linear infinite; }
.lobby-page .subtitle { margin-top: 5px; color: #a9b9dc; font-size: clamp(1rem, 2.5vw, 1.2rem); letter-spacing: .03em; }

.lobby-page .card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(139,240,255,.28);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(29,38,75,.78), rgba(12,18,43,.83));
  box-shadow: 0 22px 70px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px rgba(88,150,255,.08);
  backdrop-filter: blur(20px) saturate(135%);
}
.lobby-page .card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 10%, rgba(148,246,255,.07) 45%, transparent 70%); transform: translateX(-100%); animation: card-sweep 8s ease-in-out infinite; }
.card-scanline { position: absolute; top: 0; left: 6%; width: 24%; height: 2px; background: #76fbff; box-shadow: 0 0 12px #76fbff; animation: scanline 5s ease-in-out infinite; }
.lobby-card-heading { position: relative; display: flex; align-items: center; gap: 9px; margin-bottom: 18px; color: #c8e3ff; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.lobby-card-heading small { margin-left: 5px; color: #70f9c6; font-size: .63rem; letter-spacing: .12em; }
.status-orb { width: 8px; height: 8px; border-radius: 50%; background: #6dffc7; box-shadow: 0 0 0 4px rgba(109,255,199,.12), 0 0 13px #6dffc7; animation: status-pulse 1.8s ease-in-out infinite; }

.lobby-page .tabs { position: relative; gap: 8px; margin-bottom: 20px; padding: 5px; border: 1px solid rgba(153,194,255,.14); border-radius: 13px; background: rgba(2,7,24,.35); }
.lobby-page .tab-btn { position: relative; border: 1px solid transparent; border-radius: 9px; padding: 13px 10px; background: transparent; color: #95a5ce; font-weight: 700; overflow: hidden; }
.lobby-page .tab-btn span { margin-right: 7px; color: #65f3f1; font-size: .68rem; }
.lobby-page .tab-btn:hover { color: #e8f7ff; background: rgba(115,174,255,.09); }
.lobby-page .tab-btn.active { color: #06152c; border-color: rgba(151,255,252,.65); background: linear-gradient(135deg, #5cf2e9, #65cbe9); box-shadow: 0 0 23px rgba(89,239,238,.26); }
.lobby-page .tab-btn.active span { color: #155274; }
.tab-intro { position: relative; margin: 0 0 19px; color: #98a9ce; font-size: .91rem; line-height: 1.45; }

.lobby-page .form-group label { color: #d7e8ff; font-weight: 650; }
.lobby-page .form-group label span { margin-right: 8px; color: #69f4f4; font-size: .62rem; letter-spacing: .12em; }
.lobby-page .form-group input,
.lobby-page .form-group select { border-color: rgba(121,212,255,.28); border-radius: 11px; background: rgba(3,10,29,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.lobby-page .form-group input::placeholder { color: #68779b; }
.lobby-page .form-group input:focus,
.lobby-page .form-group select:focus { border-color: #63f3ed; box-shadow: 0 0 0 3px rgba(99,243,237,.12), inset 0 1px 0 rgba(255,255,255,.05); }
.difficulty-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.difficulty-option { position: relative; min-height: 67px; padding: 10px 8px; overflow: hidden; border: 1px solid rgba(121,212,255,.24); border-radius: 10px; background: rgba(3,10,29,.6); color: #aebedf; cursor: pointer; text-align: left; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.difficulty-option::before { content: ''; position: absolute; top: 0; left: 12%; width: 42%; height: 1px; background: #66f4f0; box-shadow: 0 0 9px #66f4f0; opacity: 0; transition: opacity .2s ease; }
.difficulty-option strong { display: block; color: #dfeeff; font-size: .89rem; }
.difficulty-option small { display: block; margin-top: 4px; color: #8192b8; font-size: .68rem; line-height: 1.25; }
.difficulty-option:hover { transform: translateY(-2px); border-color: rgba(105,240,237,.55); background: rgba(49,105,157,.2); }
.difficulty-option.active { border-color: #68f4ef; background: linear-gradient(135deg, rgba(59,226,215,.26), rgba(67,114,228,.3)); box-shadow: 0 0 0 1px rgba(104,244,239,.12), 0 0 22px rgba(86,229,241,.14), inset 0 1px 0 rgba(255,255,255,.16); }
.difficulty-option.active::before { opacity: 1; }
.difficulty-option.active strong { color: #72fff1; text-shadow: 0 0 11px rgba(114,255,241,.38); }
.difficulty-option.danger.active { border-color: #ff8b96; background: linear-gradient(135deg, rgba(244,89,124,.22), rgba(137,68,206,.3)); box-shadow: 0 0 0 1px rgba(255,139,150,.12), 0 0 22px rgba(244,89,124,.13), inset 0 1px 0 rgba(255,255,255,.16); }
.difficulty-option.danger.active::before { background: #ff97a4; box-shadow: 0 0 9px #ff97a4; }
.lobby-page .btn-primary { position: relative; display: flex; justify-content: center; align-items: center; gap: 12px; overflow: hidden; border: 1px solid rgba(219,255,255,.54); border-radius: 11px; padding: 14px 20px; background: linear-gradient(110deg, #55e5de, #6ca7ff 55%, #a174f4); color: #07152d; font-weight: 900; letter-spacing: .08em; box-shadow: 0 8px 26px rgba(67,220,255,.28); }
.lobby-page .btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 28%, rgba(255,255,255,.62) 47%, transparent 64%); transform: translateX(-130%); transition: transform .55s ease; }
.lobby-page .btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 12px 34px rgba(67,220,255,.42); }
.lobby-page .btn-primary:hover::after { transform: translateX(130%); }
.lobby-page .btn-primary i { font-size: 1.35rem; font-style: normal; transition: transform .2s ease; }
.lobby-page .btn-primary:hover i { transform: translateX(4px); }

.lobby-page .stats-section { margin-top: 32px; }
.lobby-page .stats-section h3 { display: flex; align-items: center; justify-content: center; gap: 10px; color: #d8e6ff; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; }
.lobby-page .stats-section h3 span { color: #73f7ff; text-shadow: 0 0 12px #73f7ff; }
.lobby-page .stats-grid { gap: 10px; }
.lobby-page .stat-item { position: relative; overflow: hidden; padding: 15px 10px; border: 1px solid rgba(133,186,255,.16); border-radius: 14px; background: rgba(34,46,85,.48); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.lobby-page .stat-item::before { content: ''; position: absolute; left: 14%; right: 14%; top: 0; height: 1px; background: #65f5f3; box-shadow: 0 0 10px #65f5f3; opacity: .66; }
.lobby-page .stat-value { color: #63eee9; text-shadow: 0 0 14px rgba(99,238,233,.36); }
.lobby-page .stat-label { color: #a6b6d8; }
.lobby-page .waiting-room { margin-top: 0; }
.lobby-page .waiting-card h2 { position: relative; color: #e1efff; text-align: center; }
.lobby-page .code-display { position: relative; border-color: rgba(101,247,255,.55); background: rgba(1,9,27,.54); box-shadow: inset 0 0 20px rgba(69,211,255,.08), 0 0 26px rgba(69,211,255,.08); }
.lobby-page .code-value { color: #77fbf4; text-shadow: 0 0 16px rgba(119,251,244,.52); }
.lobby-page .player-item { position: relative; border: 1px solid rgba(139,193,255,.14); background: rgba(7,14,38,.45); }
.lobby-page .player-host { background: #d4af37; color: #19142a; }

@keyframes star-drift { to { background-position: 197px 251px, -311px 277px, 173px -197px, -263px -211px, 229px 337px; } }
@keyframes nebula-pulse { to { transform: scale(1.17) translate(4%, -3%); opacity: .68; } }
@keyframes planet-float { 50% { transform: translateY(-16px) translateX(6px); } }
@keyframes meteor { 0%, 12% { opacity: 0; transform: translate(-10vw, -6vh) rotate(-28deg); } 15% { opacity: 1; } 30%, 100% { opacity: 0; transform: translate(125vw, 58vh) rotate(-28deg); } }
@keyframes mark-spin { to { transform: rotate(360deg); } }
@keyframes card-sweep { 0%, 54% { transform: translateX(-120%); } 72%, 100% { transform: translateX(120%); } }
@keyframes scanline { 0%, 100% { left: 6%; width: 24%; opacity: .55; } 50% { left: 63%; width: 30%; opacity: 1; } }
@keyframes status-pulse { 50% { opacity: .45; transform: scale(.72); } }

@media (max-width: 560px) {
  .lobby-shell { padding-top: 34px; }
  .lobby-page .card { padding: 20px 16px; border-radius: 18px; }
  .lobby-page .logo h1 { font-size: 2.45rem; }
  .eyebrow { font-size: .56rem; letter-spacing: .15em; }
  .lobby-page .tab-btn { font-size: .85rem; padding: 12px 6px; }
  .difficulty-picker { grid-template-columns: 1fr; }
  .difficulty-option { min-height: 52px; padding: 8px 12px; }
  .difficulty-option strong, .difficulty-option small { display: inline; }
  .difficulty-option small { margin-left: 7px; }
  .planet-one { width: 76px; height: 76px; right: -12px; bottom: 4vh; }
}

@media (prefers-reduced-motion: reduce) {
  body.lobby-page *, body.lobby-page::before { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Game layout styles */
.game-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.room-info {
  color: #8892b0;
}

.header-center {
  display: flex;
  justify-content: center;
}

.face {
  font-size: 2.5rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s;
}

.face:active {
  transform: scale(0.9);
}

.header-right {
  display: flex;
  gap: 20px;
}

.counter {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 14px;
  border-radius: 8px;
}

.counter-value {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: bold;
  color: #ff6b6b;
}

.game-main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.board-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
}

.panel h3 {
  font-size: 0.95rem;
  color: #ccd6f6;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.players-list-game .player-item {
  font-size: 0.9rem;
}

.events-log {
  max-height: 300px;
  overflow-y: auto;
  font-size: 0.85rem;
}

.event-item {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #8892b0;
}

.event-item:last-child {
  border-bottom: none;
}

.cursors-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.remote-cursor {
  position: absolute;
  pointer-events: none;
  transition: all 0.1s linear;
  z-index: 20;
}

.remote-cursor svg {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.remote-cursor-label {
  position: absolute;
  top: 14px;
  left: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  white-space: nowrap;
  color: #fff;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 450px;
  width: 90%;
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.modal-content h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.modal-content p {
  color: #8892b0;
  margin-bottom: 20px;
}

.modal-stats {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn {
  flex: 1;
}

@media (max-width: 900px) {
  .game-main {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
  }
  .panel {
    flex: 1;
  }
}

@media (max-width: 600px) {
  .game-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .header-right {
    width: 100%;
    justify-content: center;
  }
  .sidebar {
    flex-direction: column;
  }
}
