body.is-live .topbar,
body.is-live .bottom-nav { display: none !important; }

.game-mode-teaser button:nth-child(3) { background: linear-gradient(135deg, var(--premium-a), var(--blue-b)); }

.live-mode-banner {
  width: 100%; min-height: 92px; display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 14px;
  margin-top: 14px; padding: 16px; border: 1px solid rgba(255,255,255,.72); border-radius: 24px;
  background: linear-gradient(135deg, rgba(91,0,184,.92), rgba(0,116,255,.9)); color: var(--white);
  box-shadow: 0 18px 38px rgba(91,0,184,.2); text-align: right;
}
.live-mode-banner > .dazzle-icon { width: 48px; height: 48px; }
.live-mode-banner > span:last-child,.live-mode-banner strong,.live-mode-banner small { display: block; }
.live-mode-banner strong { font-size: 19px; font-weight: 900; }
.live-mode-banner small { margin-top: 5px; color: rgba(255,255,255,.78); font-size: 13px; font-weight: 700; line-height: 1.6; }

.live-room-builder,.live-lobby,.live-finished { display: grid; gap: 14px; padding-bottom: 110px; }
.live-room-builder[hidden],.live-lobby[hidden],.live-game-shell[hidden],.live-finished[hidden] { display: none !important; }
.live-join-box,.live-code-card,.live-lobby-head,.live-finish-hero {
  border: 1px solid rgba(255,255,255,.78); border-radius: 24px; background: rgba(255,255,255,.64);
  box-shadow: 0 16px 36px rgba(32,54,104,.09), inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(1.35); -webkit-backdrop-filter: blur(20px) saturate(1.35);
}
.live-join-box { display: grid; gap: 10px; padding: 16px; }
.live-join-box > strong { color: var(--ink); font-size: 17px; font-weight: 900; }
.live-join-box > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.live-join-box input { min-width: 0; min-height: 50px; padding: 0 14px; border: 1px solid rgba(138,138,158,.2); border-radius: 16px; background: rgba(255,255,255,.78); direction: ltr; }
.live-join-box button { min-width: 86px; border-radius: 16px; background: linear-gradient(135deg,var(--blue-a),var(--blue-b)); color: white; font-weight: 900; }
.live-code-card { display: grid; justify-items: center; gap: 8px; padding: 22px; }
.live-code-card small { color: var(--muted); font-weight: 800; }
.live-code-card > strong { color: var(--ink); font-size: 34px; font-weight: 900; letter-spacing: 0; direction: ltr; }
.live-code-card button { min-height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 999px; background: linear-gradient(135deg,var(--red-a),var(--premium-b)); color: white; font-weight: 900; }
.live-code-card button .dazzle-icon { width: 20px; height: 20px; }
.live-lobby-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.live-lobby-head strong,.live-lobby-head small { display: block; }
.live-lobby-head strong { color: var(--ink); font-size: 18px; font-weight: 900; }
.live-lobby-head small { margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 700; }
.live-lobby-head > span { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; background: rgba(91,0,184,.1); color: var(--premium-a); font-weight: 900; }
.live-participants { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.live-person { min-width: 0; display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border: 1px solid rgba(255,255,255,.76); border-radius: 20px; background: rgba(255,255,255,.58); text-align: center; }
.live-person img,.live-person > span { width: 48px; height: 48px; display: grid; place-items: center; object-fit: cover; border-radius: 999px; background: linear-gradient(135deg,var(--blue-a),var(--premium-b)); color: white; font-weight: 900; }
.live-person.host img,.live-person.host > span { box-shadow: 0 0 0 3px rgba(255,0,106,.24); }
.live-person strong { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 13px; font-weight: 900; }
.live-person small { color: var(--premium-a); font-size: 11px; font-weight: 800; }

body:not(.is-game):not(.is-challenge).is-live-playing .live-room-page.page-surface { min-height: 100vh; padding: 0; background: var(--white); overflow: hidden; }
body.is-live-playing .live-room-page > .categories-header,body.is-live-playing .live-room-page > .categories-titlebar,body.is-live-playing .live-room-builder,body.is-live-playing .live-lobby { display: none !important; }
.live-game-shell .challenge-game-title { display: flex; align-items: center; justify-content: space-between; text-align: initial; font-size: 18px; }
.live-game-shell .challenge-game-title > span { display: grid; place-items: center; min-width: 62px; height: 42px; padding: 0 12px; border-radius: 999px; background: rgba(9,11,43,.2); font-size: 16px; }
.live-game-shell .challenge-game-title > strong { display: grid; place-items: center; min-width: 62px; height: 42px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); font-size: 18px; text-shadow: none; }
.live-game-shell .challenge-choice { flex-direction: column; gap: 24px; }
.live-percent { min-height: 28px; color: white; font-size: 18px; font-weight: 900; }
.live-round-status { position: absolute; left: 50%; top: calc(50% + 66px); z-index: 6; max-width: 78%; padding: 10px 16px; border-radius: 999px; background: rgba(9,11,43,.78); color: white; font-size: 13px; font-weight: 800; transform: translateX(-50%); text-align: center; box-shadow: 0 12px 26px rgba(9,11,43,.2); }
.live-host-action { bottom: max(28px,env(safe-area-inset-bottom)); }
.live-finish-hero { justify-items: center; padding: 24px; text-align: center; }
.live-finish-hero > span { width: 80px; height: 80px; display: grid; place-items: center; border-radius: 28px; background: linear-gradient(135deg,var(--red-a),var(--blue-b)); color: white; box-shadow: 0 16px 32px rgba(91,0,184,.2); }
.live-finish-hero .dazzle-icon { width: 44px; height: 44px; }
.live-finish-hero h3 { margin: 8px 0 0; color: var(--ink); font-size: 28px; font-weight: 900; }
.live-finish-hero p { margin: 0; color: var(--muted); font-size: 15px; font-weight: 700; }
.live-summary-list { display: grid; gap: 10px; }
.live-summary-list > div { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 14px; border-radius: 20px; background: rgba(255,255,255,.7); }
.live-summary-list span { grid-row: 1/5; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; background: linear-gradient(135deg,var(--red-a),var(--blue-b)); color: white; font-weight: 900; }
.live-summary-list strong { color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.6; }
.live-summary-list i { height: 8px; overflow: hidden; border-radius: 999px; background: linear-gradient(90deg,var(--blue-b),var(--blue-a)); }
.live-summary-list i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--red-a),var(--red-b)); }
.live-summary-list small { color: var(--muted); font-size: 12px; font-weight: 800; }

.dna-card { --dna-a: #00B8FF; --dna-b: #C000FF; position: relative; overflow: hidden; display: grid; justify-items: center; gap: 10px; padding: 28px 18px 22px; border: 1px solid rgba(255,255,255,.72); border-radius: 30px; background: linear-gradient(145deg,color-mix(in srgb,var(--dna-a) 82%,white),color-mix(in srgb,var(--dna-b) 82%,white)); color: white; box-shadow: 0 24px 52px color-mix(in srgb,var(--dna-b) 24%,transparent),inset 0 1px 0 rgba(255,255,255,.48); text-align: center; }
.dna-card::before { content: ""; position: absolute; width: 260px; height: 260px; left: -110px; top: -120px; border-radius: 50%; background: rgba(255,255,255,.16); }
.dna-orbit { position: relative; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 30px; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.dna-orbit .dazzle-icon { width: 48px; height: 48px; }
.dna-card > small { color: rgba(255,255,255,.76); font-size: 14px; font-weight: 800; }
.dna-card h3 { max-width: 100%; margin: 0; color: white; font-size: 30px; font-weight: 900; line-height: 1.4; }
.dna-card > p { max-width: 340px; margin: 0; color: rgba(255,255,255,.88); font-size: 15px; font-weight: 700; line-height: 1.8; }
.dna-traits { width: 100%; display: grid; gap: 10px; margin-top: 12px; }
.dna-trait { display: grid; grid-template-columns: 38px 1fr 42px; align-items: center; gap: 10px; padding: 10px; border-radius: 18px; background: rgba(255,255,255,.14); text-align: right; }
.dna-trait > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.16); }
.dna-trait .dazzle-icon { width: 22px; height: 22px; }
.dna-trait > div { min-width: 0; display: grid; gap: 6px; }
.dna-trait strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 800; }
.dna-trait i { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.2); }
.dna-trait i b { display: block; height: 100%; border-radius: inherit; background: white; }
.dna-trait em { font-style: normal; font-size: 13px; font-weight: 900; }
.dna-progress { margin-top: 4px; padding: 9px 14px; border-radius: 999px; background: rgba(9,11,43,.18); font-size: 13px; font-weight: 800; }
.dna-share { display: flex; align-items: center; justify-content: center; gap: 9px; }
.dna-share .dazzle-icon { width: 23px; height: 23px; }

.duel-report-card {
  display: grid; justify-items: center; gap: 10px; padding: 22px 16px; border-radius: 28px;
  background: linear-gradient(145deg,rgba(255,0,106,.95),rgba(192,0,255,.92) 50%,rgba(0,116,255,.94));
  color: white; box-shadow: 0 22px 48px rgba(91,0,184,.24); text-align: center;
}
.duel-players { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.duel-players > span:not(.duel-player) { min-width: 86px; min-height: 86px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 30px; font-weight: 900; box-shadow: 0 14px 28px rgba(9,11,43,.18); }
.duel-player { min-width: 0; display: grid; justify-items: center; gap: 5px; }
.duel-player img,.duel-player > b { width: 58px; height: 58px; display: grid; place-items: center; object-fit: cover; border: 3px solid rgba(255,255,255,.82); border-radius: 999px; background: rgba(9,11,43,.2); color: white; font-size: 22px; }
.duel-player small { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,.9); font-size: 12px; font-weight: 800; }
.duel-report-card > small { color: rgba(255,255,255,.72); font-size: 13px; font-weight: 800; }
.duel-report-card h4 { margin: 0; color: white; font-size: 25px; font-weight: 900; line-height: 1.45; }
.duel-report-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.duel-report-stats span { padding: 10px; border-radius: 16px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 800; }
.duel-report-stats b { margin-left: 4px; font-size: 20px; }
.duel-wild { width: 100%; display: grid; gap: 5px; padding: 12px; border-radius: 18px; background: rgba(9,11,43,.18); }
.duel-wild small { color: rgba(255,255,255,.68); font-size: 12px; font-weight: 800; }
.duel-wild strong { color: white; font-size: 14px; font-weight: 800; line-height: 1.7; }
.duel-wild i { padding: 2px 6px; border-radius: 999px; background: white; color: var(--ink); font-style: normal; }
.duel-report-card button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: 999px; background: white; color: var(--premium-a); font-weight: 900; }
.duel-report-card button .dazzle-icon { width: 20px; height: 20px; }
.duel-answer-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding-top: 4px; color: var(--muted); font-size: 12px; font-weight: 800; }

@media (max-width: 390px) {
  .live-participants { grid-template-columns: repeat(2,1fr); }
  .dna-card h3 { font-size: 27px; }
}
