/* ═══════════════════════════════════════════
   롱숏모드 - 실시간 멀티플레이어 (Kahoot-style)
   ═══════════════════════════════════════════ */

/* ── Page / Body ── */
body.long-short-page {
  background: radial-gradient(circle at 40% 70%, #0b2242 0%, #15161b 100%) !important;
  overflow: hidden !important;
  height: 100dvh !important;
}
body.long-short-page .main-content {
  padding-top: var(--navbar-height) !important;
  height: 100dvh;
  overflow: hidden;
}
body.long-short-page .hero-section.start {
  background: radial-gradient(circle at 40% 70%, #0b2242 0%, #15161b 100%);
  color: #fff;
  min-height: calc(100dvh - var(--navbar-height));
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
}
@media (min-width: 769px) {
  body.long-short-page .mobile-bottom-nav {
    display: none !important;
  }
}
body.long-short-page .footer-custom {
  display: none !important;
}

/* ── 데스크톱: 게임 시작 후 navbar 숨김, 호버 시 나타남 ── */
@media (min-width: 769px) {
  body.long-short-page.ls-game-active .main-content {
    padding-top: 0 !important;
  }
  body.long-short-page.ls-game-active .hero-section.start {
    min-height: 100dvh;
    height: 100dvh;
  }
  body.long-short-page.ls-game-active .navbar {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  body.long-short-page.ls-game-active .navbar:hover,
  body.long-short-page.ls-game-active .navbar.navbar-revealed {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  body.long-short-page.ls-game-active .ls-navbar-trigger {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 18px;
    z-index: 10001;
    pointer-events: auto;
  }
  body.long-short-page.ls-game-active .long-short-game-page {
    height: 100dvh;
  }
}

/* ── 모바일: 하단 네비 공간 확보, 스크롤 없이 한 화면에 맞춤 ── */
@media (max-width: 768px) {
  body.long-short-page .hero-section.start {
    height: 100dvh;
  }
  body.long-short-page .long-short-game-page {
    height: calc(100dvh - 80px);
  }
  body.long-short-page .long-short-game-wrap {
    height: calc(100dvh - 80px);
    padding-top: 1.5rem;
  }
  body.long-short-page .mp-home {
    max-height: calc(100dvh - 80px - 2rem);
  }
}

/* ── Background Decorations ── */
.long-short-game-page {
  height: calc(100dvh - var(--navbar-height));
  padding: 0;
  background: radial-gradient(circle at 40% 70%, #0b2242 0%, #15161b 100%);
  position: relative;
  overflow: hidden;
}
.ls-bg-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(#1e293b 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
}
.ls-ambient-glow {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.ls-ambient-glow--top {
  top: -10%; left: -10%; width: 40%; height: 40%;
  background: rgba(37, 99, 235, 0.2); filter: blur(120px);
}
.ls-ambient-glow--bottom {
  bottom: -10%; right: -10%; width: 50%; height: 50%;
  background: rgba(5, 150, 105, 0.1); filter: blur(150px);
}

@keyframes ls-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ls-ticker {
  position: absolute; top: 0; left: 0; width: 100%; height: 2.5rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  overflow: hidden; display: flex; align-items: center; z-index: 1;
}
.ls-ticker-inner {
  display: flex; width: 200%;
  animation: ls-marquee 40s linear infinite; white-space: nowrap;
}
.ls-ticker-track {
  display: flex; flex-shrink: 0; align-items: center;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
}
.ls-ticker-track span { margin: 0 1rem; }
.ls-ticker .text-slate-400 { color: #94a3b8; }
.ls-ticker .text-emerald-400 { color: #34d399; }
.ls-ticker .text-rose-400 { color: #fb7185; }

.ls-floating-data {
  position: absolute; inset: 0; pointer-events: none; user-select: none;
}
.ls-float {
  position: absolute; font-weight: 900; letter-spacing: -0.05em;
  transform: rotate(-10deg);
}
.ls-float--1 { top: 15%; left: 10%; color: rgba(52,211,153,0.2); filter: blur(4px); font-size: 2.25rem; }
.ls-float--2 { top: 60%; left: 15%; color: rgba(251,113,133,0.1); filter: blur(8px); font-size: 3.75rem; }
.ls-float--3 { top: 25%; left: 80%; color: rgba(59,130,246,0.2); filter: blur(2px); font-size: 3rem; }
.ls-float--4 { top: 75%; left: 75%; color: rgba(251,113,133,0.15); filter: blur(4px); font-size: 1.875rem; }
.ls-float--5 { top: 40%; left: 85%; color: rgba(148,163,184,0.1); filter: blur(8px); font-size: 4.5rem; }
.ls-float--6 { top: 80%; left: 5%; color: rgba(148,163,184,0.1); filter: blur(8px); font-size: 5rem; }

/* ── Game Container ── */
.long-short-game-wrap {
  position: relative; z-index: 10;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 0.75rem; padding-top: 2.5rem;
  box-sizing: border-box;
  color: #fff; font-family: inherit;
  overflow: hidden;
}

/* ═══════════════════════════════════════════
   HOME VIEW
   ═══════════════════════════════════════════ */
/* 모드 선택 버튼 */
.mp-mode-select {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  padding: 0;
}
.mp-mode-btn {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; padding: 1.25rem;
  border: none; border-radius: 1rem; cursor: pointer;
  transition: transform 0.1s, filter 0.2s;
  text-align: center;
}
.mp-mode-btn:active { transform: scale(0.97); }
.mp-mode-btn-solo {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
  border: 1.5px solid rgba(59,130,246,0.5);
  box-shadow: 0 4px 20px rgba(37,99,235,0.2);
  color: #fff;
  margin-bottom: 0.75rem;
}
.mp-mode-btn-solo:hover { filter: brightness(1.12); }
.mp-mode-icon { font-size: 1.75rem; margin-bottom: 0.25rem; }
.mp-mode-name { font-size: 1.1rem; font-weight: 900; font-style: italic; letter-spacing: -0.025em; }
.mp-mode-desc { font-size: 0.75rem; color: #94a3b8; margin-top: 0.2rem; }
.mp-mode-divider {
  text-align: center; color: #475569; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; margin: 0.5rem 0; position: relative;
}
.mp-mode-divider::before, .mp-mode-divider::after {
  content: '';
  position: absolute; top: 50%; width: 40%;
  height: 1px; background: #334155;
}
.mp-mode-divider::before { left: 0; }
.mp-mode-divider::after { right: 0; }

.mp-home {
  width: 100%; max-width: 26rem;
  max-height: calc(100dvh - 3.5rem);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
  animation: mp-fade-in 0.4s ease-out;
  display: flex; flex-direction: column;
}
.mp-home-inner { display: none; }
.mp-mode-select { display: flex; flex-direction: column; }

/* 데스크톱: 가로 2열 레이아웃 */
@media (min-width: 769px) {
  .mp-home {
    max-width: 50rem;
    max-height: calc(100dvh - var(--navbar-height) - 3rem);
  }
  .mp-home-inner {
    display: flex; flex-direction: row;
    flex: 1; min-height: 0; overflow: hidden;
  }
  .mp-home-left {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2rem;
    border-right: 1px solid rgba(51,65,85,0.5);
  }
  .mp-home-left .mp-mode-btn-solo {
    width: 100%; max-width: 18rem;
    padding: 2rem;
    margin-bottom: 0;
  }
  .mp-home-left .mp-mode-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
  .mp-home-left .mp-mode-name { font-size: 1.4rem; }
  .mp-home-left .mp-mode-desc { font-size: 0.9rem; }
  .mp-home-right {
    flex: 1; display: flex; flex-direction: column;
    justify-content: center;
    padding: 1.5rem 2rem;
    overflow-y: auto;
  }
  .mp-home-right .mp-join-section { padding: 0 0 1rem; }
  .mp-home-right .mp-create-section { padding: 0.75rem 0 0; }
  .mp-home-header {
    padding: 1.25rem 1.5rem 0.75rem;
  }
  .mp-mode-select { display: none; }
}
.mp-home-header {
  text-align: center;
  padding: 1.5rem 1.5rem 1rem;
  background: linear-gradient(to bottom, rgba(59,130,246,0.08), transparent);
  flex-shrink: 0;
}
.mp-home-title {
  font-size: 2rem; font-weight: 900; font-style: italic;
  letter-spacing: -0.05em; margin: 0 0 0.3rem;
  color: #ffffff;
}
.mp-home-subtitle {
  color: #94a3b8; font-size: 0.8rem; margin: 0;
}
.mp-join-section {
  padding: 0 0 1rem;
  flex-shrink: 0;
}
.mp-section-title {
  font-size: 1.1rem; font-weight: 800; margin: 0 0 0.7rem; text-align: center;
}
.mp-home .mp-section-title {
  color: #ffffff;
}
.mp-input {
  display: block; width: 100%; box-sizing: border-box;
  padding: 0.7rem 0.9rem; margin-bottom: 0.5rem;
  background: rgba(15,23,42,0.8); color: #fff;
  border: 2px solid #334155; border-radius: 0.75rem;
  font-size: 1rem; font-weight: 700;
  text-align: center; outline: none;
  transition: border-color 0.2s;
}
.mp-input:focus {
  border-color: #3b82f6;
}
.mp-input::placeholder {
  color: #64748b; font-weight: 500;
}
.mp-join-error {
  color: #fca5a5; font-size: 0.8rem; font-weight: 600;
  text-align: center; margin: 0 0 0.5rem;
  background: rgba(220,38,38,0.15); padding: 0.4rem;
  border-radius: 0.5rem;
}
.mp-btn {
  display: block; width: 100%; box-sizing: border-box;
  padding: 0.7rem; border: none; border-radius: 0.75rem;
  font-size: 1rem; font-weight: 800; cursor: pointer;
  transition: transform 0.1s, filter 0.2s;
}
.mp-btn:active { transform: scale(0.97); }
.mp-btn-primary {
  background: #2563eb; color: #fff;
  box-shadow: 0 6px 16px rgba(37,99,235,0.35);
}
.mp-btn-primary:hover { filter: brightness(1.1); }
.mp-btn-secondary {
  background: #334155; color: #e2e8f0;
  border: 1px solid #475569;
}
.mp-btn-secondary:hover { background: #3f4f63; }
.mp-btn-leave {
  background: transparent; color: #94a3b8;
  border: 1px solid #334155; font-size: 0.8rem;
  padding: 0.45rem 1rem; margin-top: 0.75rem;
}
.mp-btn-leave:hover { background: rgba(239,68,68,0.1); color: #f87171; border-color: #f87171; }
.mp-create-section {
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(51,65,85,0.5);
  flex-shrink: 0;
}
.mp-create-label {
  color: #94a3b8; font-size: 0.8rem; text-align: center;
  margin: 0 0 0.5rem;
}
.mp-section-disabled {
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

/* ═══════════════════════════════════════════
   HOST VIEW (Full-Screen Overlay)
   ═══════════════════════════════════════════ */
.mp-host {
  position: fixed; inset: 0; z-index: 10000;
  background: #111827; color: #fff;
  display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
}
.mp-host-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.5rem;
  background: #0f172a; border-bottom: 1px solid #1e293b;
  flex-shrink: 0; z-index: 10;
}
.mp-host-pin-label { color: #94a3b8; font-weight: 700; font-size: 0.9rem; }
.mp-host-pin {
  font-size: 2.25rem; font-weight: 900; letter-spacing: 0.2em;
  color: #fff; margin-left: 0.75rem;
}
.mp-host-players {
  display: flex; align-items: center; gap: 0.5rem;
  color: #cbd5e1; font-weight: 700; font-size: 1.1rem;
  background: #1e293b; padding: 0.4rem 1rem; border-radius: 9999px;
}
.mp-host-leave {
  padding: 0.5rem 1rem; border: none; border-radius: 0.5rem;
  background: rgba(220,38,38,0.7); color: #fff;
  font-weight: 700; cursor: pointer; font-size: 0.85rem;
  transition: background 0.2s;
}
.mp-host-leave:hover { background: #dc2626; }

/* Host Lobby */
.mp-host-lobby {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(to bottom, #111827, #0f172a);
  overflow: hidden;
}
.mp-host-lobby h1 {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.mp-host-lobby-hint {
  color: #64748b; font-size: clamp(1rem, 2vw, 1.5rem); animation: mp-pulse 2s ease-in-out infinite;
}
.mp-host-lobby-hint strong { color: #fff; }
.mp-player-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center; margin-bottom: 2rem;
  max-width: 60rem; min-height: 2rem;
}
.mp-player-tag {
  padding: 0.5rem 1.5rem; background: #1e293b;
  border-radius: 9999px; font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 700;
  border: 1px solid #334155;
  animation: mp-pop-in 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.mp-start-game-btn {
  padding: 1.25rem 3.5rem; border: none; border-radius: 9999px;
  background: #22c55e; color: #fff;
  font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 900; cursor: pointer;
  box-shadow: 0 6px 0 #15803d;
  transition: transform 0.1s, box-shadow 0.1s;
}
.mp-start-game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #15803d;
}
.mp-start-game-btn:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #15803d;
}

/* Host Question */
.mp-host-question {
  flex: 1; position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mp-hq-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}
.mp-hq-overlay {
  position: absolute; inset: 0;
  background: rgba(15,23,42,0.7); backdrop-filter: blur(4px);
}
.mp-hq-content {
  position: relative; z-index: 1;
  flex: 1; display: flex; flex-direction: column;
  padding: 1.25rem 1.5rem;
  overflow: hidden;
}
.mp-hq-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
.mp-hq-badge {
  font-size: 1rem; font-weight: 700;
  background: rgba(0,0,0,0.5); padding: 0.4rem 1rem;
  border-radius: 9999px; border: 1px solid #334155;
  backdrop-filter: blur(8px);
}
.mp-hq-responses { color: #60a5fa; }
.mp-hq-center {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; max-width: 70rem; margin: 0 auto; width: 100%;
  padding: 0 1rem;
  overflow: hidden;
  min-height: 0;
}
.mp-hq-headline {
  font-size: clamp(1.4rem, 3.5vw, 3rem);
  font-weight: 900; line-height: 1.2;
  margin: 0 0 1rem;
  text-shadow: 0 8px 16px rgba(0,0,0,0.6);
  word-break: keep-all;
  color: #ffffff;
}
.mp-hq-timer {
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 900; line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: 0 0 40px rgba(0,0,0,0.8);
  transition: color 0.3s;
}
.mp-hq-timer.mp-timer-urgent {
  color: #ef4444; animation: mp-pulse 0.5s ease-in-out infinite;
}
.mp-hq-meta {
  display: flex; gap: 0.75rem; margin-top: 1rem;
  flex-shrink: 0;
}
.mp-hq-meta-item {
  font-size: 0.8rem; font-weight: 700; color: #94a3b8;
  background: rgba(0,0,0,0.4); padding: 0.35rem 0.9rem;
  border-radius: 9999px; border: 1px solid #334155;
}
.mp-hq-meta-item strong { color: #fff; }
.mp-hq-bottom {
  display: flex; justify-content: flex-end; padding-top: 0.75rem;
  flex-shrink: 0;
}
.mp-hq-skip-btn {
  padding: 0.75rem 2rem; border: none; border-radius: 1rem;
  background: rgba(255,255,255,0.1); color: #fff;
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.mp-hq-skip-btn:hover { background: rgba(255,255,255,0.2); }

/* Host Result */
.mp-host-result {
  flex: 1; display: flex; flex-direction: column;
  background: #111827;
  overflow: hidden;
}
.mp-hr-content {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1rem 1.5rem;
  overflow-y: auto;
  min-height: 0;
}
.mp-hr-label {
  font-size: 1.2rem; color: #94a3b8; font-weight: 700;
  margin: 0 0 0.5rem;
  flex-shrink: 0;
}
.mp-hr-change {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900; margin: 0 0 0.75rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.mp-hr-change.positive { color: #34d399; }
.mp-hr-change.negative { color: #f43f5e; }
.mp-hr-explanation {
  font-size: 1rem; color: #e2e8f0; line-height: 1.5;
  max-width: 50rem; text-align: center;
  background: rgba(30,41,59,0.6); padding: 1rem 1.5rem;
  border-radius: 1rem; border: 1px solid #334155;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.mp-hr-leaderboard {
  width: 100%; max-width: 36rem;
  background: #1e293b; border-radius: 1rem;
  border: 1px solid #334155; overflow: hidden;
  flex-shrink: 1; min-height: 0;
}
.mp-hr-lb-header {
  padding: 0.6rem 1.25rem; font-size: 0.95rem; font-weight: 700;
  background: #334155; border-bottom: 1px solid #475569;
}
.mp-hr-lb-empty {
  padding: 1.5rem; text-align: center; color: #64748b; font-size: 0.9rem;
}
.mp-hr-lb-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid rgba(51,65,85,0.5);
}
.mp-hr-lb-row:last-child { border-bottom: none; }
.mp-hr-lb-left {
  display: flex; align-items: center; gap: 0.75rem;
}
.mp-hr-lb-rank {
  font-size: 1.2rem; font-weight: 900; color: #64748b;
  width: 1.75rem; text-align: center;
}
.mp-hr-lb-name { font-size: 1.05rem; font-weight: 700; }
.mp-hr-lb-score {
  font-size: 1.05rem; font-weight: 900; font-family: ui-monospace, monospace;
  color: #facc15;
}
.mp-hr-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #1e293b;
  display: flex; justify-content: flex-end;
  flex-shrink: 0;
}
.mp-hr-next-btn {
  padding: 0.75rem 2rem; border: none; border-radius: 0.75rem;
  background: #2563eb; color: #fff;
  font-size: 1.1rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 16px rgba(37,99,235,0.35);
  transition: filter 0.2s, transform 0.1s;
}
.mp-hr-next-btn:hover { filter: brightness(1.1); }
.mp-hr-next-btn:active { transform: scale(0.97); }

/* Host Podium */
.mp-host-podium {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 1.5rem 1.5rem 0; overflow: hidden;
  background: linear-gradient(to top, #111827, #1e293b);
  position: relative;
}
.mp-podium-title {
  position: absolute; top: 2.5rem;
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900;
  color: #eab308;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.mp-podium-blocks {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 0.75rem; width: 100%; max-width: 50rem;
  height: 55vh;
}
.mp-podium-col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
}
.mp-podium-name {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.mp-podium-score {
  font-size: 1.1rem; font-weight: 700; font-family: ui-monospace, monospace;
  color: #94a3b8; margin-bottom: 1rem;
}
.mp-podium-name.gold { font-size: 2.5rem; font-weight: 900; color: #facc15; }
.mp-podium-score.gold { font-size: 1.5rem; color: #fef08a; }
.mp-podium-block {
  width: 100%; border-radius: 1rem 1rem 0 0;
  display: flex; justify-content: center; padding-top: 1.5rem;
  font-size: 4rem; font-weight: 900;
  box-shadow: inset 0 4px 0 rgba(255,255,255,0.2);
}
.mp-podium-block.p1 {
  height: 60%; background: #eab308; color: #78350f;
  animation: mp-rise 0.6s ease-out 0.5s both;
}
.mp-podium-block.p2 {
  height: 42%; background: #9ca3af; color: #374151;
  animation: mp-rise 0.6s ease-out both;
}
.mp-podium-block.p3 {
  height: 30%; background: #c2410c; color: #7c2d12;
  animation: mp-rise 0.6s ease-out 1s both;
}

/* ═══════════════════════════════════════════
   PLAYER VIEW (Full-Screen Overlay)
   ═══════════════════════════════════════════ */
.mp-player {
  position: fixed; inset: 0; z-index: 10000;
  background: #111827; color: #fff;
  display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
}
.mp-player-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem;
  background: #0f172a; border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
}
.mp-player-nick {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1rem;
}
.mp-player-avatar {
  width: 2rem; height: 2rem;
  background: #1e293b; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800;
}
.mp-player-pts {
  background: #1e293b; padding: 0.35rem 0.9rem; border-radius: 9999px;
  font-family: ui-monospace, monospace; font-weight: 800;
  font-size: 1rem; color: #facc15;
  border: 1px solid #334155;
}

/* Player Lobby */
.mp-player-lobby {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem; text-align: center;
  overflow: hidden;
}
.mp-player-lobby-icon {
  width: 6rem; height: 6rem;
  background: #2563eb; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  animation: mp-bounce 1s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(37,99,235,0.5);
}
.mp-player-lobby-icon svg {
  width: 3rem; height: 3rem; color: #fff;
}
.mp-player-lobby h2 {
  font-size: 2rem; font-weight: 900; margin: 0 0 1rem;
  color: #ffffff;
}
.mp-player-lobby-msg {
  background: #1e293b; padding: 1.25rem 2rem;
  border-radius: 1.5rem; border: 1px solid #334155;
  color: #cbd5e1; font-size: 1.1rem; line-height: 1.6;
}

/* Player Question - 2x2 Grid */
.mp-player-grid {
  flex: 1; display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px; background: #111827;
  padding-bottom: 2px;
}
.mp-answer-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: none; cursor: pointer;
  transition: filter 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.mp-answer-btn:active { filter: brightness(0.85); }
.mp-answer-btn svg {
  width: 4rem; height: 4rem; color: #fff; margin-bottom: 0.5rem;
}
.mp-answer-label {
  font-size: 2rem; font-weight: 900; color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.mp-btn-surge { background: #16a34a; }
.mp-btn-plunge { background: #dc2626; }
.mp-btn-rise { background: #22c55e; }
.mp-btn-fall { background: #ef4444; }

/* Player Waiting (after answering) */
.mp-player-waiting {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem; text-align: center;
  background: #1e293b;
}
.mp-player-waiting svg {
  width: 5rem; height: 5rem; color: #3b82f6;
  margin-bottom: 1.5rem;
  animation: mp-spin 3s linear infinite;
}
.mp-player-waiting h2 {
  font-size: 2rem; font-weight: 900; margin: 0 0 1rem;
  color: #ffffff;
}
.mp-player-waiting-msg {
  color: #94a3b8; font-size: 1.1rem;
  background: #111827; padding: 0.75rem 1.5rem;
  border-radius: 9999px; border: 1px solid #334155;
}

/* Player Result */
.mp-player-result {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem; text-align: center;
  transition: background 0.3s;
  overflow: hidden;
}
.mp-player-result.correct { background: #16a34a; }
.mp-player-result.wrong { background: #dc2626; }
.mp-player-result.no-answer { background: #374151; }
.mp-player-result svg {
  width: 6rem; height: 6rem; color: #fff;
  margin-bottom: 1.5rem;
}
.mp-player-result.correct svg { animation: mp-bounce 0.6s ease-in-out; }
.mp-player-result h2 {
  font-size: 2.5rem; font-weight: 900; margin: 0 0 0.75rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.mp-pr-change {
  font-size: 1.5rem; font-weight: 800;
  background: rgba(0,0,0,0.2); padding: 0.5rem 1.5rem;
  border-radius: 9999px; margin-bottom: 2rem;
}
.mp-pr-rank-box {
  background: rgba(0,0,0,0.25); padding: 1.5rem 2rem;
  border-radius: 1.5rem; border: 1px solid rgba(255,255,255,0.15);
  min-width: 14rem;
}
.mp-pr-rank-label {
  color: rgba(255,255,255,0.7); font-weight: 700; font-size: 1rem;
  margin-bottom: 0.5rem;
}
.mp-pr-rank-value {
  font-size: 3.5rem; font-weight: 900;
}
.mp-pr-rank-suffix {
  font-size: 1.5rem; font-weight: 500; color: rgba(255,255,255,0.7);
}

/* Player Podium */
.mp-player-podium {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem; text-align: center;
  background: #111827;
  overflow: hidden;
}
.mp-pp-trophy {
  font-size: 5rem; margin-bottom: 1rem;
}
.mp-pp-trophy.top3 { color: #facc15; }
.mp-pp-trophy.other { color: #64748b; }
.mp-player-podium h2 {
  font-size: 2.5rem; font-weight: 900; margin: 0 0 1.5rem;
}
.mp-pp-info {
  background: #1e293b; padding: 2rem;
  border-radius: 1.5rem; border: 1px solid #334155;
  margin-bottom: 2rem; min-width: 16rem;
}
.mp-pp-info-label {
  color: #94a3b8; font-weight: 700; font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.mp-pp-info-rank {
  font-size: 4rem; font-weight: 900; margin-bottom: 0.5rem;
}
.mp-pp-info-rank-suffix {
  font-size: 2rem; color: #64748b;
}
.mp-pp-info-score {
  font-size: 2rem; font-weight: 900; font-family: ui-monospace, monospace;
  color: #facc15;
}
.mp-pp-home-btn {
  padding: 1rem 2rem; border: none; border-radius: 1rem;
  background: #334155; color: #fff;
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  border: 1px solid #475569;
  width: 100%; max-width: 18rem;
  transition: background 0.2s;
}
.mp-pp-home-btn:hover { background: #475569; }

/* Loading */
.mp-loading {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: #94a3b8;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes mp-fade-in {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mp-pop-in {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes mp-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}
@keyframes mp-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes mp-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes mp-rise {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .long-short-game-wrap {
    padding: 0.5rem; padding-top: 2rem;
    align-items: center;
  }
  .mp-home {
    max-width: 100%; border-radius: 1.25rem;
    max-height: calc(100dvh - 80px - 1rem);
    overflow-y: auto;
  }
  .mp-home-header { padding: 0.6rem 1rem 0.4rem; }
  .mp-home-title { font-size: 1.35rem; margin-bottom: 0.15rem; }
  .mp-home-subtitle { font-size: 0.7rem; }
  .mp-mode-select { padding: 0 0.75rem 0.75rem; }
  .mp-mode-btn { padding: 0.75rem; border-radius: 0.75rem; }
  .mp-mode-btn-solo { margin-bottom: 0.4rem; }
  .mp-mode-icon { font-size: 1.25rem; margin-bottom: 0.1rem; }
  .mp-mode-name { font-size: 0.95rem; }
  .mp-mode-desc { font-size: 0.65rem; margin-top: 0.1rem; }
  .mp-mode-divider { margin: 0.25rem 0; font-size: 0.65rem; }
  .mp-join-section { padding: 0 0 0.5rem; }
  .mp-section-title { font-size: 0.85rem; margin-bottom: 0.35rem; }
  .mp-create-section { padding: 0.5rem 0 0; }
  .mp-create-label { font-size: 0.7rem; margin-bottom: 0.3rem; }
  .mp-input { font-size: 0.85rem; padding: 0.5rem 0.7rem; margin-bottom: 0.3rem; }
  .mp-btn { padding: 0.5rem; font-size: 0.85rem; }

  .mp-host-header { padding: 0.4rem 0.75rem; }
  .mp-host-pin { font-size: 1.3rem; }
  .mp-host-players { font-size: 0.85rem; padding: 0.3rem 0.75rem; }
  .mp-host-lobby h1 { font-size: 1.5rem; }
  .mp-player-tag { font-size: 0.9rem; padding: 0.4rem 1rem; }
  .mp-start-game-btn { font-size: 1.1rem; padding: 0.9rem 2rem; }

  .mp-hq-content { padding: 0.75rem 1rem; }
  .mp-hq-headline { font-size: 1.1rem; margin-bottom: 0.5rem; }
  .mp-hq-timer { font-size: 4.5rem; }
  .mp-hq-badge { font-size: 0.8rem; padding: 0.3rem 0.75rem; }
  .mp-hq-meta-item { font-size: 0.7rem; padding: 0.25rem 0.6rem; }

  .mp-hr-label { font-size: 0.95rem; }
  .mp-hr-change { font-size: 2.5rem; }
  .mp-hr-explanation { font-size: 0.85rem; padding: 0.75rem 1rem; }
  .mp-hr-lb-header { font-size: 0.85rem; padding: 0.5rem 1rem; }
  .mp-hr-lb-row { padding: 0.4rem 1rem; }
  .mp-hr-lb-rank { font-size: 1rem; }
  .mp-hr-lb-name { font-size: 0.9rem; }
  .mp-hr-lb-score { font-size: 0.9rem; }
  .mp-hr-next-btn { padding: 0.6rem 1.5rem; font-size: 0.95rem; }

  .mp-answer-btn svg { width: 2.5rem; height: 2.5rem; }
  .mp-answer-label { font-size: 1.25rem; }

  .mp-podium-title { font-size: 1.5rem; top: 1.5rem; }
  .mp-podium-name { font-size: 0.9rem; }
  .mp-podium-name.gold { font-size: 1.3rem; }
  .mp-podium-block { font-size: 2rem; padding-top: 1rem; }
  .mp-podium-score { font-size: 0.9rem; }

  .mp-player-lobby-icon { width: 4rem; height: 4rem; margin-bottom: 1rem; }
  .mp-player-lobby-icon svg { width: 2rem; height: 2rem; }
  .mp-player-lobby h2 { font-size: 1.5rem; }
  .mp-player-lobby-msg { font-size: 0.9rem; padding: 0.9rem 1.25rem; }

  .mp-player-result svg { width: 4rem; height: 4rem; margin-bottom: 1rem; }
  .mp-player-result h2 { font-size: 1.8rem; }
  .mp-pr-change { font-size: 1.1rem; }
  .mp-pr-rank-box { padding: 1rem 1.5rem; min-width: 10rem; }
  .mp-pr-rank-value { font-size: 2.5rem; }

  .mp-player-podium h2 { font-size: 1.8rem; }
  .mp-pp-trophy { font-size: 3.5rem; }
  .mp-pp-info { padding: 1.25rem; min-width: 12rem; }
  .mp-pp-info-rank { font-size: 2.5rem; }
  .mp-pp-info-score { font-size: 1.5rem; }
}

/* ═══════════════════════════════════════════
   SOLO MODE — Full-screen layout
   ═══════════════════════════════════════════ */
.ls-solo {
  position: fixed; inset: 0; z-index: 10000;
  background: radial-gradient(circle at 40% 70%, #0b2242 0%, #15161b 100%);
  color: #fff; display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
}
.ls-header {
  padding: 0.75rem 1.5rem; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #1e293b; background: #0f172a;
  flex-shrink: 0; z-index: 10;
}
.ls-brand { display: flex; align-items: center; gap: 0.5rem; }
.ls-brand-icon { background: #2563eb; padding: 0.375rem; border-radius: 0.5rem; box-shadow: 0 4px 14px rgba(37,99,235,0.4); }
.ls-brand-icon svg { display: block; width: 1.25rem; height: 1.25rem; fill: white; }
.ls-brand-text { font-weight: 900; font-style: italic; letter-spacing: -0.05em; font-size: 1.25rem; }
.ls-score-label { font-size: 10px; color: #64748b; font-weight: 700; text-transform: uppercase; margin-bottom: 0.25rem; }
.ls-score-value { font-size: 1.5rem; font-weight: 900; }
.ls-score-value.negative { color: #ef4444; }
.ls-score-value.positive { color: #60a5fa; }
.ls-content {
  flex: 1; min-height: 0;
  padding: 2rem; display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow: hidden;
}
.ls-content--ranking { overflow-y: auto; overflow-x: hidden; justify-content: flex-start; }

/* Rules icon */
.ls-rules-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; padding: 0;
  border: none; background: transparent; color: #fff;
  cursor: pointer; border-radius: 0.25rem; transition: opacity 0.2s;
}
.ls-rules-icon:hover { opacity: 0.85; }
.ls-rules-icon svg { width: 1.125rem; height: 1.125rem; display: block; }
.ls-rules-icon-header { margin-left: -0.15rem; transform: translateY(2px); }
.ls-rules-icon-header svg { width: 1rem; height: 1rem; }

/* READY */
.ls-ready { text-align: center; max-width: 32rem; }
.ls-ready-icon { width: 5rem; height: 5rem; margin: 0 auto 2rem; color: #3b82f6; animation: ls-bounce 1s ease-in-out infinite; }
@keyframes ls-bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.ls-ready-title { font-size: 2.5rem; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.025em; margin-bottom: 1.25rem; color: #fff; }
.ls-ready-desc { color: #94a3b8; font-size: 1rem; max-width: 360px; margin: 0 auto 2rem; line-height: 1.6; }
.ls-start-btn {
  display: block; width: 100%; max-width: 24rem; margin: 0 auto; padding: 1.25rem 2rem;
  background: #2563eb; color: white; border: none; border-radius: 1rem;
  font-weight: 900; font-size: 1.35rem; cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(37,99,235,0.3);
  transition: background 0.2s, transform 0.1s;
}
.ls-start-btn:hover { background: #3b82f6; transform: scale(1.02); }
.ls-start-btn:active { transform: scale(0.98); }

/* PLAYING */
.ls-playing { width: 100%; max-width: 52rem; margin: 0 auto; animation: ls-fade-in 0.3s ease-out; }
@keyframes ls-fade-in { from{opacity:0} to{opacity:1} }
.ls-playing-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.ls-timer {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.25rem; border-radius: 9999px; border: 1px solid #334155;
  color: #cbd5e1; font-size: 1rem; font-family: ui-monospace,monospace; font-weight: 900;
}
.ls-timer--urgent { color: #ef4444; border-color: #ef4444; background: rgba(239,68,68,0.1); }
.ls-timer svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.ls-combo {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: rgba(249,115,22,0.1); padding: 0.35rem 1rem;
  border-radius: 9999px; border: 1px solid rgba(249,115,22,0.3);
  color: #f97316; font-weight: 900; font-style: italic; font-size: 0.9rem;
  animation: ls-pulse 1.5s ease-in-out infinite;
}
@keyframes ls-pulse { 0%,100%{opacity:1} 50%{opacity:0.8} }
.ls-news-wrap { position: relative; margin-bottom: 1.75rem; }
.ls-badge-breaking {
  position: absolute; top: -0.75rem; left: 1.5rem; z-index: 10;
  font-size: 11px; font-weight: 900; color: white; background: #2563eb;
  padding: 0.3rem 0.9rem; border-radius: 0.25rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2);
}
.ls-news-card {
  background: white; color: #0f172a; padding: 2.5rem;
  border-radius: 1.25rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); position: relative; overflow: hidden;
}
.ls-news-title { font-size: 1.75rem; font-weight: 800; line-height: 1.3; margin-top: 0.5rem; }
.ls-news-meta {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #f1f5f9;
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.1em;
}
.ls-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding-top: 0.75rem; }
.ls-buttons-col { display: flex; flex-direction: column; gap: 0.6rem; }
.ls-btn-long {
  height: 5rem; background: #10b981; color: white; border: none; border-radius: 1rem;
  font-weight: 900; font-size: 1.25rem; cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(16,185,129,0.3); transition: background 0.2s, transform 0.1s;
}
.ls-btn-long:hover { background: #34d399; }
.ls-btn-long:active { transform: scale(0.95); }
.ls-btn-short {
  height: 5rem; background: #f43f5e; color: white; border: none; border-radius: 1rem;
  font-weight: 900; font-size: 1.25rem; cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(244,63,94,0.3); transition: background 0.2s, transform 0.1s;
}
.ls-btn-short:hover { background: #fb7185; }
.ls-btn-short:active { transform: scale(0.95); }
.ls-btn-aggressive {
  padding: 0.85rem; border-radius: 0.75rem; font-weight: 900;
  font-size: 11px; font-style: italic; text-transform: uppercase;
  letter-spacing: -0.05em; cursor: pointer; border: 1px solid; transition: background 0.2s;
}
.ls-btn-aggressive-long { background: rgba(5,46,22,0.6); border-color: rgba(16,185,129,0.4); color: #34d399; }
.ls-btn-aggressive-long:hover { background: #064e3b; }
.ls-btn-aggressive-short { background: rgba(76,5,25,0.6); border-color: rgba(244,63,94,0.4); color: #fb7185; }
.ls-btn-aggressive-short:hover { background: #881337; }

/* RESULT */
.ls-result {
  width: 100%; max-width: 36rem; text-align: center;
  animation: ls-slide-up 0.5s ease-out;
}
@keyframes ls-slide-up { from{opacity:0;transform:translateY(1rem)} to{opacity:1;transform:translateY(0)} }
@keyframes ls-slide-up-mobile { from{opacity:0;transform:translateY(0.5rem)} to{opacity:1;transform:translateY(0)} }
.ls-result-title-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.ls-result-title { font-size: 2.5rem; font-weight: 900; font-style: italic; letter-spacing: -0.05em; }
.ls-result-title.jackpot { color: #facc15; }
.ls-result-title.great { color: #34d399; }
.ls-result-title.close-call { color: #fb923c; }
.ls-result-title.fail { color: #ef4444; }
.ls-result-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: #facc15; color: #000; padding: 0.375rem 1rem; border-radius: 9999px;
  font-weight: 900; font-size: 11px; text-transform: uppercase;
  animation: ls-bounce 0.6s ease-in-out infinite; box-shadow: 0 0 15px rgba(234,179,8,0.4);
}
.ls-result-badge svg { width: 0.75rem; height: 0.75rem; }
.ls-result-box {
  background: rgba(30,41,59,0.4); padding: 1.5rem; border-radius: 1rem;
  border: 1px solid #334155; margin-bottom: 1rem;
}
.ls-result-box.jackpot { border-color: rgba(234,179,8,0.5); box-shadow: 0 0 30px rgba(234,179,8,0.15); background: rgba(234,179,8,0.05); }
.ls-result-date { font-size: 11px; color: #64748b; text-transform: uppercase; font-weight: 900; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.ls-result-change { font-size: 3.5rem; font-weight: 900; letter-spacing: -0.05em; margin-bottom: 0.75rem; }
.ls-result-change.positive { color: #34d399; }
.ls-result-change.negative { color: #fb7185; }
.ls-result-reason { width: 3rem; height: 1px; background: #334155; margin: 0 auto 0.75rem; }
.ls-result-reason-text { color: #cbd5e1; font-size: 0.95rem; line-height: 1.5; font-weight: 500; padding: 0 0.5rem; }
.ls-result-points {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 1.75rem; font-weight: 900; margin-bottom: 0.75rem;
}
.ls-result-points.positive { color: #60a5fa; }
.ls-result-points.positive.jackpot { color: #facc15; }
.ls-result-points.negative { color: #ef4444; }
.ls-result-points svg { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.ls-result-points-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; width: 100%; }
.ls-next-btn {
  width: 100%; max-width: 24rem; padding: 1rem; background: white; color: #0f172a;
  border: none; border-radius: 1rem; font-weight: 900; font-size: 1.1rem;
  text-transform: uppercase; cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2); transition: background 0.2s, transform 0.1s;
}
.ls-next-btn:hover { background: #e2e8f0; }
.ls-next-btn:active { transform: scale(0.95); }

/* GAME OVER */
.ls-over { text-align: center; }
.ls-over-label { font-size: 1rem; font-weight: 900; color: #64748b; text-transform: uppercase; letter-spacing: 0.3em; margin-bottom: 0.75rem; }
.ls-over-title { font-size: 3.5rem; font-weight: 900; font-style: italic; letter-spacing: -0.05em; margin-bottom: 1.25rem; color: #fff; }
.ls-over-score { font-size: 6rem; font-weight: 900; color: #fff; text-shadow: 0 4px 12px rgba(0,0,0,0.3); margin-bottom: 2rem; }

/* RANKING */
.ls-ranking { width: 100%; max-width: 36rem; animation: ls-fade-in 0.4s ease-out; }
.ls-ranking-header { text-align: center; padding-bottom: 1.25rem; border-bottom: 1px solid #1e293b; margin-bottom: 1.25rem; }
.ls-ranking-title {
  font-size: 1.5rem; font-weight: 900; font-style: italic; letter-spacing: -0.025em;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-bottom: 1rem; color: #fff;
}
.ls-ranking-title svg { color: #3b82f6; width: 1.5rem; height: 1.5rem; }
.ls-ranking-your-label { font-size: 11px; color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.25rem; }
.ls-ranking-your-score { font-size: 3.5rem; font-weight: 900; font-style: italic; letter-spacing: -0.05em; color: #fff; margin-bottom: 0.75rem; }
.ls-ranking-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: rgba(37,99,235,0.2); border: 1px solid rgba(59,130,246,0.3);
  padding: 0.375rem 0.75rem; border-radius: 9999px; font-size: 0.8rem; font-weight: 700; color: #93c5fd;
}
.ls-ranking-badge svg { width: 0.875rem; height: 0.875rem; color: #60a5fa; }
.ls-ranking-badge strong { color: #fff; font-weight: 900; }
.ls-ranking-list { display: flex; flex-direction: column; gap: 0.5rem; padding: 0 0.25rem 0.25rem; }
.ls-rank-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem; border-radius: 1rem; border: 1px solid #1e293b;
  background: rgba(30,41,59,0.2); position: relative;
}
.ls-rank-item--gold { background: rgba(250,204,21,0.08); border-color: rgba(250,204,21,0.4); box-shadow: 0 0 15px rgba(250,204,21,0.15); }
.ls-rank-item--silver { background: rgba(203,213,225,0.06); border-color: rgba(203,213,225,0.35); }
.ls-rank-item--bronze { background: rgba(249,115,22,0.06); border-color: rgba(249,115,22,0.35); }
.ls-rank-item--me { outline: 2px solid #3b82f6; outline-offset: -2px; transform: scale(1.02); background: rgba(30,41,59,0.6); }
.ls-rank-you-tag {
  position: absolute; top: -0.5rem; right: -0.5rem;
  background: #2563eb; color: #fff; font-size: 9px; font-weight: 900;
  padding: 0.125rem 0.5rem; border-radius: 0.25rem; text-transform: uppercase;
}
.ls-rank-left { display: flex; align-items: center; gap: 0.75rem; }
.ls-rank-icon { width: 2rem; display: flex; justify-content: center; flex-shrink: 0; }
.ls-rank-icon svg { width: 1.25rem; height: 1.25rem; }
.ls-rank-icon--gold svg { color: #facc15; filter: drop-shadow(0 0 5px rgba(250,204,21,0.8)); }
.ls-rank-icon--silver svg { color: #cbd5e1; filter: drop-shadow(0 0 5px rgba(203,213,225,0.6)); }
.ls-rank-icon--bronze svg { color: #fb923c; filter: drop-shadow(0 0 5px rgba(249,115,22,0.6)); }
.ls-rank-number { font-weight: 900; font-size: 0.95rem; color: #64748b; width: 2rem; text-align: center; flex-shrink: 0; }
.ls-rank-name { font-weight: 700; font-size: 0.95rem; color: #e2e8f0; display: flex; align-items: center; gap: 0.375rem; }
.ls-rank-name--me { color: #fff; }
.ls-rank-name svg { width: 0.875rem; height: 0.875rem; color: #60a5fa; }
.ls-rank-score { font-weight: 900; font-style: italic; font-size: 1.2rem; letter-spacing: -0.025em; }
.ls-rank-score--gold { color: #facc15; }
.ls-rank-score--silver { color: #cbd5e1; }
.ls-rank-score--bronze { color: #fb923c; }
.ls-rank-score--default { color: #94a3b8; }
.ls-rank-score--me { color: #60a5fa; }
.ls-ranking-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.ls-ranking-actions button { flex: 1; padding: 0.9rem; border-radius: 0.75rem; font-weight: 900; font-size: 1.05rem; cursor: pointer; transition: background 0.2s, transform 0.1s; border: none; }
.ls-ranking-actions button:active { transform: scale(0.95); }
.ls-ranking-retry-btn { background: #2563eb; color: #fff; box-shadow: 0 10px 15px -3px rgba(37,99,235,0.3); }
.ls-ranking-retry-btn:hover { background: #3b82f6; }
.ls-ranking-empty { text-align: center; color: #64748b; font-size: 0.9rem; padding: 2rem 0; }

/* Rules Modal */
.ls-rules-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
.ls-rules-modal.ls-modal-open { pointer-events: auto; opacity: 1; visibility: visible; }
.ls-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); cursor: pointer; }
.ls-modal-content {
  position: relative; width: 100%; max-width: 22rem; max-height: 90vh; overflow-y: auto;
  background: #1e293b; border: 1px solid #334155; border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); padding: 1.5rem;
}
.ls-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.ls-modal-title { font-size: 1.25rem; font-weight: 800; color: #fff; margin: 0; }
.ls-modal-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; padding: 0; border: none; background: transparent;
  color: #94a3b8; font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: 0.25rem;
}
.ls-modal-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.ls-modal-rules { margin: 0; padding-left: 1.25rem; color: #cbd5e1; font-size: 0.9375rem; line-height: 1.7; }
.ls-modal-rules li { margin-bottom: 0.75rem; }
.ls-modal-rules li:last-child { margin-bottom: 0; }

/* Solo mobile */
@media (max-width: 768px) {
  .ls-solo { background: #111827; }
  .ls-header { padding: 0.5rem 0.75rem; }
  .ls-brand-text { font-size: 1rem; }
  .ls-score-value { font-size: 1.25rem; }
  .ls-content { padding: 0.75rem; }
  .ls-content--ranking { overflow-y: auto; overflow-x: hidden; justify-content: flex-start; }
  .ls-ready-icon { width: 2.5rem; height: 2.5rem; margin-bottom: 0.75rem; }
  .ls-ready-title { font-size: 1.35rem; margin-bottom: 0.5rem; }
  .ls-ready-desc { font-size: 0.8rem; margin-bottom: 0.75rem; }
  .ls-start-btn { padding: 0.75rem; font-size: 1rem; max-width: 100%; }
  .ls-playing { max-width: 100%; }
  .ls-playing-top { margin-bottom: 0.5rem; }
  .ls-news-wrap { margin-bottom: 0.5rem; }
  .ls-news-card { padding: 1rem; }
  .ls-news-title { font-size: 1.05rem; margin-top: 0.25rem; }
  .ls-news-meta { margin-top: 0.75rem; padding-top: 0.5rem; font-size: 9px; }
  .ls-buttons { gap: 0.5rem; padding-top: 0.25rem; }
  .ls-btn-long, .ls-btn-short { height: 3.5rem; font-size: 0.95rem; }
  .ls-btn-aggressive { padding: 0.5rem; font-size: 9px; }
  .ls-result { transform: none; animation: ls-slide-up-mobile 0.4s ease-out; max-width: 100%; }
  .ls-result-title { font-size: 1.5rem; }
  .ls-result-box { padding: 0.75rem; margin-bottom: 0.75rem; }
  .ls-result-change { font-size: 2rem; margin-bottom: 0.5rem; }
  .ls-result-reason-text { font-size: 0.75rem; }
  .ls-result-points { font-size: 1.25rem; margin-bottom: 0.5rem; }
  .ls-next-btn { padding: 0.75rem; font-size: 1rem; max-width: 100%; }
  .ls-over-title { font-size: 2rem; margin-bottom: 0.5rem; }
  .ls-over-score { font-size: 2.5rem; margin-bottom: 1rem; }
  .ls-ranking { max-width: 100%; }
  .ls-ranking-your-score { font-size: 2.25rem; margin-bottom: 0.5rem; }
  .ls-ranking-title { font-size: 1rem; margin-bottom: 0.5rem; }
  .ls-ranking-header { padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
  .ls-ranking-list { gap: 0.375rem; }
  .ls-rank-item { padding: 0.5rem 0.75rem; border-radius: 0.75rem; }
  .ls-rank-score { font-size: 0.95rem; }
  .ls-rank-name { font-size: 0.8125rem; }
  .ls-ranking-actions { margin-top: 0.5rem; }
  .ls-ranking-actions button { padding: 0.625rem; font-size: 0.875rem; }
}
