:root {
  color-scheme: dark;
  --ink: #10100f;
  --panel: #171715;
  --panel-soft: #1c1c19;
  --line: #30302b;
  --muted: #898981;
  --paper: #f1eee5;
  --orange: #ff6a2a;
  --orange-light: #ff9a58;
  --acid: #c4e86a;
  --lilac: #b4a1f2;
  --display: "Bebas Neue", Impact, sans-serif;
  --body: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); }
body { margin: 0; min-height: 100vh; color: var(--paper); background: var(--ink); font-family: var(--body); font-size: 14px; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
[hidden] { display: none !important; }
.ambient { position: fixed; z-index: 0; width: 420px; height: 420px; pointer-events: none; filter: blur(100px); opacity: .08; border-radius: 50%; }
.ambient-one { top: -240px; right: 12%; background: var(--orange); }
.ambient-two { bottom: -300px; left: 28%; background: #7a56c4; opacity: .06; }

.join-screen { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(470px, .92fr); min-height: 100svh; overflow: hidden; }
.join-art { position: relative; min-height: 100svh; background: linear-gradient(90deg, rgba(10,10,9,.03) 25%, #10100f 100%), linear-gradient(0deg, #10100f 0%, transparent 36%), url("https://images.unsplash.com/photo-1509557965875-b88c97052f0e?auto=format&fit=crop&w=1500&q=85") center 48% / cover; }
.join-art::after { position: absolute; inset: 20px; border: 1px solid rgba(241,238,229,.13); content: ""; }
.join-content { display: flex; flex-direction: column; justify-content: space-between; padding: 38px clamp(28px, 5vw, 78px) 25px 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-decoration: none; }
.brand-mark { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid var(--orange); color: var(--orange); font-size: 17px; }
.join-copy { max-width: 510px; padding: 55px 0 70px; }
.eyebrow, .nav-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; }
.live-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px rgba(196,232,106,.7); }
h1, h2, h3, p { margin-top: 0; }
.join-copy h1 { margin: 0 0 17px; font-family: "Creepster", Georgia, serif; font-size: clamp(56px, 7vw, 92px); font-weight: 400; line-height: .91; letter-spacing: 0; }
.join-copy h1 span { color: var(--orange); }
.intro { max-width: 365px; margin: 0 0 39px; color: #b5b3aa; font-size: 14px; line-height: 1.75; }
.join-form label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.input-row { display: flex; gap: 8px; max-width: 440px; }
.input-row input { min-width: 0; flex: 1; padding: 0 15px; border: 1px solid #393933; border-radius: 2px; color: var(--paper); background: #191916; }
.input-row input::placeholder { color: #77776f; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 15px; border: 0; border-radius: 2px; cursor: pointer; font-size: 12px; font-weight: 700; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { padding: 0 20px; color: #1a100b; background: var(--orange); box-shadow: 0 0 20px rgba(255,106,42,.12); }
.button-primary:hover { background: var(--orange-light); box-shadow: 0 0 25px rgba(255,106,42,.25); }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.form-note span { padding-right: 5px; color: var(--lilac); }
.join-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; color: #77776f; font-size: 9px; font-weight: 600; letter-spacing: 1px; }
.join-footer b { color: #c7c3b9; }

.app-shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }
.sidebar { display: flex; position: fixed; inset: 0 auto 0 0; z-index: 3; width: 250px; flex-direction: column; border-right: 1px solid var(--line); padding: 27px 17px 18px; background: rgba(17,17,15,.95); }
.sidebar .wordmark { margin: 0 0 42px 6px; }
.party-status { display: flex; align-items: center; gap: 10px; margin: 0 3px 39px; padding: 12px 11px; border: 1px solid #33332d; color: #aaa99f; font-size: 9px; line-height: 1.6; letter-spacing: 1px; }
.party-status b { color: var(--acid); font-size: 10px; }
.status-pulse { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--acid); box-shadow: 0 0 9px var(--acid); }
.nav-label { margin: 0 0 12px 10px; font-size: 9px; }
.main-nav { display: grid; gap: 4px; }
.nav-item { display: flex; width: 100%; min-height: 44px; align-items: center; gap: 11px; border: 1px solid transparent; border-radius: 2px; padding: 0 10px; color: #a4a39a; background: transparent; text-align: left; cursor: pointer; font-size: 12px; transition: .18s ease; }
.nav-item:hover { color: var(--paper); background: #1a1a17; }
.nav-item.active { border-color: #3a2a20; color: var(--paper); background: linear-gradient(90deg, rgba(255,106,42,.13), rgba(255,106,42,.025)); }
.nav-item.active .nav-icon { color: var(--orange); }
.nav-icon { width: 18px; color: #8d8c84; font-size: 16px; text-align: center; }
.nav-index { margin-left: auto; color: #6f6f67; font-size: 9px; }
.sidebar-bottom { margin-top: auto; }
.player-chip { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 17px 3px 16px; }
.avatar, .top-avatar { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border: 1px solid #514031; border-radius: 50%; color: var(--orange-light); background: #28211a; font-family: var(--display); font-size: 17px; }
.player-chip > div:nth-child(2) { display: grid; gap: 4px; }
.player-name { max-width: 130px; overflow: hidden; color: var(--paper); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.player-points { color: var(--acid); font-size: 8px; letter-spacing: 1px; }
.more-icon { margin-left: auto; color: var(--muted); font-size: 18px; }
.text-button { display: flex; width: 100%; justify-content: space-between; border: 0; padding: 9px 5px; color: #85847d; background: transparent; cursor: pointer; text-align: left; font-size: 10px; }
.text-button:hover { color: var(--orange-light); }
.workspace { width: calc(100% - 250px); min-height: 100vh; margin-left: 250px; }
.topbar { position: sticky; top: 0; z-index: 2; display: flex; height: 65px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 clamp(22px, 4vw, 58px); background: rgba(16,16,15,.88); backdrop-filter: blur(16px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #85847d; font-size: 9px; font-weight: 700; letter-spacing: 1.15px; }
.breadcrumb b { color: #cfcdc4; font-weight: 600; }
.crumb-slash { color: var(--orange); }
.topbar-actions { display: flex; align-items: center; gap: 16px; color: #a4a39a; font-size: 10px; }
.guest-count { display: flex; align-items: center; gap: 7px; }
.guest-count b { color: var(--paper); }
.people-icon { color: var(--lilac); font-size: 16px; }
.topbar-divider { width: 1px; height: 23px; background: var(--line); }
.top-avatar { width: 30px; height: 30px; min-width: 30px; border: 1px solid #514031; cursor: pointer; }
.view-root { width: min(1120px, 100%); margin: 0 auto; padding: 44px clamp(22px, 4vw, 58px) 64px; animation: appear .35s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.kicker { margin-bottom: 9px; color: var(--orange-light); font-size: 9px; font-weight: 700; letter-spacing: 1.7px; }
.page-heading h1 { margin: 0; font-family: var(--display); font-size: clamp(39px, 5vw, 60px); font-weight: 400; line-height: .96; }
.page-heading h1 em { color: var(--orange); font-style: normal; }
.page-subtitle { margin: 11px 0 0; color: #9c9b93; font-size: 12px; line-height: 1.6; }
.heading-note { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: #85847d; font-size: 10px; white-space: nowrap; }
.heading-note strong { color: var(--acid); font-weight: 600; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(230px, .8fr); gap: 14px; }
.panel { border: 1px solid var(--line); border-radius: 3px; background: rgba(25,25,22,.86); }
.mission-panel { position: relative; min-height: 310px; overflow: hidden; padding: 27px; background: linear-gradient(130deg, #201b17 0%, #191916 59%); }
.mission-panel::after { position: absolute; right: -40px; bottom: -99px; width: 300px; height: 300px; border: 1px solid rgba(255,106,42,.13); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,106,42,.025), 0 0 0 55px rgba(255,106,42,.018); content: ""; }
.panel-label { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: #a5a39a; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.mission-stamp { display: inline-grid; width: 25px; height: 25px; place-items: center; border: 1px solid #633b25; color: var(--orange); font-size: 14px; }
.mission-panel h2 { position: relative; z-index: 1; max-width: 450px; margin: 0 0 13px; font-family: var(--display); font-size: clamp(31px, 4vw, 46px); font-weight: 400; line-height: 1.02; }
.mission-panel h2 span { color: var(--orange-light); }
.mission-panel > p { position: relative; z-index: 1; max-width: 410px; margin-bottom: 26px; color: #aaa89f; font-size: 12px; line-height: 1.7; }
.mission-target { display: inline-flex; position: relative; z-index: 1; align-items: center; gap: 10px; border: 1px solid #36332e; padding: 9px 12px; color: #c5c2b9; background: rgba(16,16,15,.5); font-size: 10px; }
.target-dot { width: 22px; height: 22px; border-radius: 50%; background: #514133; color: #ffd2a9; display: grid; place-items: center; font-family: var(--display); font-size: 13px; }
.target-hidden { color: #77766f; }
.stat-panel { display: flex; flex-direction: column; justify-content: space-between; padding: 24px; }
.stat-panel h3 { margin: 0; color: #b9b7ad; font-size: 11px; font-weight: 600; }
.stat-number { display: block; margin: 19px 0 2px; color: var(--paper); font-family: var(--display); font-size: 59px; line-height: 1; }
.stat-caption { color: #88877f; font-size: 10px; }
.stat-rule { height: 1px; margin: 17px 0 14px; background: var(--line); }
.stat-row { display: flex; align-items: center; justify-content: space-between; color: #aaa89f; font-size: 10px; }
.stat-row strong { color: var(--acid); font-size: 11px; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(230px, .8fr); gap: 14px; margin-top: 14px; }
.activity-panel { padding: 21px 23px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.panel-title h3 { margin: 0; font-size: 12px; font-weight: 600; }
.panel-title span { color: #898981; font-size: 9px; }
.activity-item { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid #2d2d28; }
.activity-icon { display: grid; flex: 0 0 29px; width: 29px; height: 29px; place-items: center; border: 1px solid #3c332a; color: var(--orange-light); background: #211d18; font-size: 12px; }
.activity-text { flex: 1; color: #c1bfb5; font-size: 10px; line-height: 1.4; }
.activity-text small { display: block; margin-top: 3px; color: #7e7d75; font-size: 9px; }
.activity-points { color: var(--acid); font-size: 9px; }
.report-panel { display: flex; flex-direction: column; justify-content: space-between; padding: 22px; background: #1a1916; }
.report-symbol { color: var(--orange); font-size: 24px; }
.report-panel h3 { margin: 10px 0 6px; font-family: var(--display); font-size: 26px; font-weight: 400; }
.report-panel p { margin-bottom: 16px; color: #96958c; font-size: 10px; line-height: 1.6; }
.button-outline { min-height: 39px; border: 1px solid #65422f; padding: 0 12px; color: var(--orange-light); background: transparent; font-size: 10px; }
.button-outline:hover { border-color: var(--orange); background: rgba(255,106,42,.08); }
.mobile-footer { display: none; }

.mission-list { display: grid; gap: 9px; }
.challenge-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid var(--line); padding: 15px 17px; background: rgba(25,25,22,.82); transition: border-color .2s, background .2s; }
.challenge-row.completed { border-color: #424a2e; background: rgba(196,232,106,.045); }
.challenge-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #3e3429; color: var(--orange-light); background: #211d18; font-size: 15px; }
.challenge-copy strong { display: block; margin-bottom: 4px; color: #e4e1d8; font-size: 11px; font-weight: 600; }
.challenge-copy span { color: #898981; font-size: 10px; line-height: 1.45; }
.challenge-reward { margin-right: 10px; color: var(--acid); font-size: 10px; white-space: nowrap; }
.check-button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #4a4941; border-radius: 50%; color: #8d8c84; background: transparent; cursor: pointer; }
.completed .check-button { border-color: var(--acid); color: var(--ink); background: var(--acid); }
.score-strip { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; border: 1px solid #47432e; padding: 14px 17px; background: rgba(196,232,106,.05); color: #b8b6a8; font-size: 10px; }
.score-strip strong { color: var(--acid); font-size: 13px; }
.oracle-tabs { display: flex; gap: 20px; margin-bottom: 13px; border-bottom: 1px solid var(--line); }
.oracle-tab { border: 0; border-bottom: 2px solid transparent; padding: 0 0 12px; color: #898981; background: transparent; cursor: pointer; font-size: 10px; }
.oracle-tab.active { border-color: var(--orange); color: var(--paper); }
.poll-list { display: grid; gap: 12px; }
.poll-card { border: 1px solid var(--line); padding: 18px; background: rgba(25,25,22,.82); }
.poll-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 13px; color: #85847d; font-size: 9px; }
.poll-top span:first-child { color: var(--lilac); letter-spacing: 1px; }
.poll-card h3 { margin: 0 0 14px; font-size: 12px; font-weight: 600; }
.poll-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
.poll-option { position: relative; min-height: 38px; overflow: hidden; border: 1px solid #3b3b34; padding: 0 11px; color: #c6c4bb; background: #191916; cursor: pointer; text-align: left; font-size: 10px; }
.poll-option:hover { border-color: #a15a37; }
.poll-option.selected { border-color: var(--orange); color: var(--paper); }
.poll-option .result-bar { position: absolute; inset: 0 auto 0 0; background: rgba(255,106,42,.16); }
.poll-actions { display: flex; align-items: center; gap: 12px; margin-top: 13px; }
.poll-actions .button { min-height: 34px; }
.poll-actions small { color: #77776f; font-size: 9px; }
.trivia-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(220px, .7fr); gap: 14px; }
.trivia-card { padding: 23px; }
.trivia-category { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; color: var(--lilac); font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.trivia-category span:last-child { color: #838279; font-weight: 500; letter-spacing: 0; }
.trivia-card h2 { max-width: 580px; margin: 0 0 21px; font-family: var(--display); font-size: clamp(25px, 3vw, 35px); font-weight: 400; line-height: 1.15; }
.answer-list { display: grid; gap: 7px; }
.answer-option { display: flex; min-height: 44px; align-items: center; gap: 12px; border: 1px solid #393932; padding: 0 12px; color: #c5c2b9; background: #191916; cursor: pointer; text-align: left; font-size: 10px; transition: border-color .16s, background .16s; }
.answer-option:hover { border-color: #716149; }
.answer-option.selected { border-color: var(--lilac); background: rgba(180,161,242,.08); }
.answer-option.correct { border-color: var(--acid); background: rgba(196,232,106,.07); }
.answer-option.wrong { border-color: #ca6256; background: rgba(202,98,86,.07); }
.answer-key { display: grid; flex: 0 0 21px; width: 21px; height: 21px; place-items: center; border: 1px solid #46453f; color: #929188; font-size: 9px; }
.trivia-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.trivia-footer small { color: #898981; font-size: 9px; }
.trivia-footer .button { min-height: 36px; }
.trivia-side { display: flex; flex-direction: column; justify-content: space-between; padding: 22px; background: linear-gradient(145deg, #211d27, #191916 70%); }
.trivia-side .side-symbol { color: var(--lilac); font-size: 24px; }
.trivia-side h3 { margin: 17px 0 8px; font-family: var(--display); font-size: 28px; font-weight: 400; }
.trivia-side p { color: #a4a19e; font-size: 10px; line-height: 1.7; }
.trivia-side .stat-rule { margin: 14px 0; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; max-width: calc(100vw - 32px); border: 1px solid #454536; padding: 13px 17px; color: var(--paper); background: #22221d; box-shadow: 0 8px 32px #0008; font-size: 11px; animation: appear .2s ease both; }

@media (min-width: 1440px) { .view-root { padding-top: 54px; } }
@media (max-width: 850px) {
  .join-screen { grid-template-columns: .75fr 1fr; }
  .join-content { padding-right: 28px; }
  .sidebar { width: 218px; }
  .workspace { width: calc(100% - 218px); margin-left: 218px; }
  .section-grid, .lower-grid { grid-template-columns: minmax(0, 1.3fr) minmax(190px, .8fr); }
  .view-root { padding-right: 23px; padding-left: 23px; }
}
@media (max-width: 650px) {
  .join-screen { display: flex; min-height: 100svh; flex-direction: column; }
  .join-art { position: absolute; inset: 0; min-height: 100%; opacity: .48; background-position: 45% center; }
  .join-art::after { inset: 12px; }
  .join-content { position: relative; min-height: 100svh; padding: 24px 24px 20px; background: linear-gradient(90deg, rgba(16,16,15,.9), rgba(16,16,15,.69)); }
  .join-copy { padding: 70px 0 54px; }
  .join-copy h1 { font-size: clamp(60px, 17vw, 88px); }
  .intro { max-width: 325px; }
  .join-footer { font-size: 8px; }
  .join-footer span:last-child { text-align: right; }
  .sidebar { inset: auto 0 0; width: 100%; height: 66px; flex-direction: row; align-items: center; border-top: 1px solid var(--line); border-right: 0; padding: 0 6px env(safe-area-inset-bottom); background: rgba(17,17,15,.97); }
  .sidebar > .wordmark, .party-status, .nav-label, .sidebar-bottom { display: none; }
  .main-nav { display: grid; width: 100%; grid-template-columns: repeat(4, 1fr); gap: 0; }
  .nav-item { min-height: 59px; flex-direction: column; justify-content: center; gap: 3px; padding: 5px 1px; font-size: 8px; }
  .nav-icon { width: auto; font-size: 16px; }
  .nav-index { display: none; }
  .workspace { width: 100%; min-height: 100svh; margin: 0; padding-bottom: 82px; }
  .topbar { height: 56px; padding: 0 17px; }
  .breadcrumb { gap: 7px; font-size: 8px; }
  .topbar-actions { gap: 10px; font-size: 9px; }
  .topbar-divider { height: 18px; }
  .top-avatar { width: 27px; height: 27px; min-width: 27px; font-size: 14px; }
  .view-root { padding: 28px 16px 27px; }
  .page-heading { align-items: flex-start; margin-bottom: 19px; }
  .page-heading h1 { font-size: 45px; }
  .page-subtitle { max-width: 310px; font-size: 11px; }
  .heading-note { display: none; }
  .section-grid, .lower-grid, .trivia-layout { grid-template-columns: 1fr; gap: 10px; }
  .mission-panel { min-height: 296px; padding: 21px; }
  .mission-panel h2 { font-size: 36px; }
  .stat-panel { min-height: 176px; }
  .lower-grid { margin-top: 10px; }
  .report-panel { min-height: 180px; }
  .activity-panel { padding: 17px; }
  .mobile-footer { display: flex; justify-content: space-between; padding: 0 17px 13px; color: #77776f; font-size: 8px; letter-spacing: .7px; }
  .mobile-footer > span:first-child { display: flex; align-items: center; gap: 7px; }
  .mobile-footer i { color: var(--orange); font-style: normal; }
  .challenge-row { grid-template-columns: 32px minmax(0,1fr) auto; gap: 9px; padding: 13px 11px; }
  .challenge-icon { width: 30px; height: 30px; }
  .challenge-reward { margin-right: 4px; font-size: 9px; }
  .poll-options { grid-template-columns: 1fr; }
  .trivia-side { min-height: 165px; }
  .trivia-side h3 { margin-top: 8px; }
  .toast { right: 12px; bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ── Etapa 1: registro, canal en vivo y lobby de invitados ── */
.avatar-field { margin-top: 16px; }
.avatar-label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.avatar-row { display: flex; flex-wrap: wrap; gap: 8px; max-width: 440px; }
.avatar-option { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #393933; border-radius: 3px; color: #8d8c84; background: #191916; font-size: 18px; cursor: pointer; transition: border-color .18s ease, color .18s ease, transform .18s ease; }
.avatar-option:hover { transform: translateY(-1px); color: var(--paper); border-color: #4a4a42; }
.avatar-option.selected { color: var(--orange); border-color: var(--orange); box-shadow: 0 0 16px rgba(255,106,42,.14); }

.guest-chip-wrap { position: relative; }
.guest-count { border: 0; padding: 0; background: none; cursor: pointer; }
.guest-popover { position: absolute; top: calc(100% + 12px); right: 0; z-index: 5; width: 262px; max-width: calc(100vw - 32px); border: 1px solid var(--line); border-radius: 3px; padding: 13px; color: var(--paper); background: #1b1b18; box-shadow: 0 18px 48px #000c; animation: appear .2s ease both; }
.guest-popover-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #8d8c84; font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.guest-rows { display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; }
.guest-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #26261f; font-size: 11px; }
.guest-row:last-child { border-bottom: 0; }
.guest-row.left { opacity: .45; }
.guest-avatar { display: grid; width: 30px; height: 30px; min-width: 30px; place-items: center; border: 1px solid #454536; color: var(--orange-light); font-size: 14px; }
.guest-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest-status { display: flex; align-items: center; gap: 6px; color: #8d8c84; font-size: 10px; }
.guest-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px rgba(196,232,106,.6); }
.guest-row.left .guest-dot { background: #6a6a63; box-shadow: none; }
.guest-empty { margin: 4px 0; color: var(--muted); font-size: 11px; }

/* Indicador de conexión en tiempo real */
#status-dot.offline { background: #ff5240; box-shadow: 0 0 12px rgba(255,82,64,.7); }
#status-text.offline { color: #ff5240; }

/* ── Sección 3: El Oráculo (apuestas y encuestas en vivo) ── */
.poll-card.type-bet { border-color: #4e392a; background: linear-gradient(150deg, rgba(255,106,42,.06), rgba(25,25,22,.82)); }
.poll-card.type-bet .poll-top span:first-child { color: var(--orange); }
.poll-status.closed { color: var(--acid); }
.poll-option.result { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: default; }
.poll-option.result span { position: relative; z-index: 1; }
.poll-option.result .result-pct { position: relative; z-index: 1; flex: 0 0 auto; color: #9a978e; font-style: normal; font-size: 9px; }
.poll-option.result.mine { border-color: var(--orange); color: var(--paper); }
.poll-option.result.winner { border-color: var(--acid); color: var(--paper); }
.poll-option.result.winner .result-pct { color: var(--acid); font-weight: 700; }
.poll-option.result.empty .result-bar { display: none; }
.oracle-empty { margin: 0; border: 1px dashed #3a3a34; padding: 26px 18px; color: var(--muted); font-size: 11px; text-align: center; }

/* ── Sección 2: Misiones y retos + clasificación en vivo ── */
.missions-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, .8fr); gap: 14px; align-items: start; }
.ranking-panel { padding: 21px 23px; }
.ranking-list { display: flex; flex-direction: column; }
.ranking-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #2d2d28; font-size: 11px; }
.ranking-row:first-child { border-top: 0; }
.ranking-row.left { opacity: .45; }
.ranking-pos { flex: 0 0 22px; color: #898981; font-family: var(--display); font-size: 15px; text-align: center; }
.ranking-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cfcdc4; }
.ranking-points { color: var(--acid); font-size: 12px; font-weight: 700; }
.ranking-points small { margin-left: 3px; color: #898981; font-size: 8px; font-weight: 600; }
.ranking-row.me .ranking-pos { color: var(--orange); }
.ranking-row.me .ranking-name { color: var(--orange-light); }
.check-button:disabled { cursor: default; }
.check-button:not(:disabled):hover { border-color: var(--acid); color: var(--acid); }
@media (max-width: 850px) { .missions-layout { grid-template-columns: minmax(0, 1.3fr) minmax(200px, .8fr); } }
@media (max-width: 650px) { .missions-layout { grid-template-columns: 1fr; } }

/* ── Sección 4: ¿Quién es quién? (trivia social) ── */
.trivia-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; justify-content: space-between; margin-bottom: 14px; }
.trivia-top .score-strip { flex: 1 1 260px; margin-bottom: 0; }
.trivia-top .button { min-height: 46px; flex: 0 0 auto; }
.trivia-list { display: grid; gap: 14px; }
.trivia-card h2 { font-size: clamp(21px, 2.4vw, 28px); }
.trivia-meta { color: #898981; font-size: 9px; white-space: nowrap; }
.answer-option:disabled { cursor: default; }
.toast.ok { border-color: var(--acid); background: #1d2418; }
.toast.error { border-color: #ff5240; background: #2a1c1a; }

/* Modal: crear pregunta secreta */
.modal-overlay { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(10,10,9,.78); animation: appear .2s ease both; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid var(--line); border-radius: 3px; padding: 22px; background: var(--panel); box-shadow: 0 30px 80px #000d; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.modal-head h3 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 400; letter-spacing: 1px; }
.modal-close { width: 32px; height: 32px; border: 1px solid #3f3f38; border-radius: 50%; color: #8d8c84; background: transparent; cursor: pointer; }
.modal-close:hover { color: var(--paper); border-color: var(--orange); }
.modal label { display: block; margin: 13px 0 7px; color: #b5b3aa; font-size: 11px; font-weight: 600; }
.modal input, .modal select { width: 100%; min-height: 42px; border: 1px solid #393933; border-radius: 2px; color: var(--paper); background: #191916; padding: 0 12px; }
.modal .check-row { display: flex; align-items: center; gap: 9px; margin: 15px 0; font-size: 11px; }
.modal .check-row input { width: auto; min-height: 0; accent-color: var(--orange); }
.modal-hint { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ── Sección 1: El espía secreto (roles ocultos) ── */
.role-card { padding: 24px; }
.role-card.fallen { opacity: .9; }
.role-mission { margin: 0 0 10px; color: var(--paper); font-size: 13px; line-height: 1.65; }
.role-mission b { color: var(--orange-light); }
.role-hint { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.role-hint b { color: var(--paper); }
.role-list { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.role-list li { border: 1px dashed #3a3a34; padding: 9px 12px; color: #cfcdc4; font-size: 11px; line-height: 1.5; }
.role-list.role-clues li { border-color: #4a4458; color: #d6cff0; }
.role-assassin { border-color: #5a3020; background: linear-gradient(150deg, rgba(255,82,64,.07), rgba(25,25,22,.9)); }
.role-assassin h3 { color: #ff7a5c; }
.role-doctor { border-color: #3f4a2e; background: linear-gradient(150deg, rgba(196,232,106,.06), rgba(25,25,22,.9)); }
.role-doctor h3 { color: var(--acid); }
.role-detective { border-color: #4a4458; background: linear-gradient(150deg, rgba(180,161,242,.07), rgba(25,25,22,.9)); }
.role-detective h3 { color: var(--lilac); }
.role-death { margin-top: 14px; border: 1px solid #6e2f28; padding: 13px 15px; color: #ffb3a6; background: rgba(255,82,64,.08); font-size: 12px; line-height: 1.6; }
.role-death b { color: #ff8a75; }
.assassin-wait-copy { margin: 0 0 14px; color: #a4a19e; font-size: 11px; line-height: 1.7; }
.assassin-wait-copy b { color: var(--paper); }
.assassin-actions .button { margin-top: 4px; }
.assassin-targets { display: grid; gap: 8px; }
.assassin-target-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 9px 12px; }
.assassin-target-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.assassin-citizen { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #2d2d28; font-size: 11px; }
.assassin-citizen:first-child { border-top: 0; }
.assassin-citizen.dead { opacity: .5; }
.assassin-citizen.dead .assassin-status { color: #ff8a75; }
.assassin-status { color: var(--acid); font-size: 9px; font-weight: 700; white-space: nowrap; }
.assassin-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; border: 1px solid; padding: 15px 17px; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.assassin-banner.good { border-color: #424a2e; color: var(--acid); background: rgba(196,232,106,.06); }
.assassin-banner.bad { border-color: #6e2f28; color: #ff8a75; background: rgba(255,82,64,.06); }
.assassin-admin-access { display: flex; justify-content: center; margin: 18px 0 6px; }

/* Panel del organizador (modo dios) */
.admin-modal { width: min(680px, 100%); }
.admin-lock { display: grid; gap: 10px; }
.admin-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.admin-table th { padding: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: 1px; text-align: left; white-space: nowrap; }
.admin-table td { padding: 10px; border-bottom: 1px solid #26261f; vertical-align: top; }
.admin-mission { color: #a4a19e; max-width: 220px; }
.role-badge { display: inline-block; border: 1px solid #55534a; padding: 3px 8px; color: #cfcdc4; font-size: 8px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.role-badge.bad { border-color: #6e2f28; color: #ff8a75; }
.role-badge.warn { border-color: #6e5a2f; color: #ffd27a; }
.role-badge.good { border-color: #4a4458; color: var(--lilac); }
.role-badge.heal { border-color: #424a2e; color: var(--acid); }
.alive-tag { color: var(--acid); font-weight: 700; white-space: nowrap; }
.dead-tag { color: #ff8a75; font-weight: 700; white-space: nowrap; }
.admin-match-state { margin-bottom: 2px; }
.admin-log-title { margin-top: 16px; }
@media (max-width: 650px) {
  .admin-controls .button { flex: 1 1 auto; }
  .assassin-banner { font-size: 10px; padding: 12px 14px; }
}
