@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&display=swap');
:root { --lime:#b494ff; --muted:#a5a2ad; --cyan:#06b6d4; --brand-purple:#8b5cf6; --panel:#191920; --panel-border:#ffffff20; --panel-radius:24px; --control-radius:16px; --display-font:'Barlow Condensed',Impact,'Arial Narrow',sans-serif; background:#0b0b13; color:#f3f0f8; }
body { min-height:100svh; background:linear-gradient(180deg,#0b0b1300 25%,#0b0b13 100%),linear-gradient(90deg,#8b5cf647 0%,#8b5cf647 48%,#06b6d44d 52%,#06b6d44d 100%),#0b0b13; background-size:100% clamp(430px,65vw,500px); background-repeat:no-repeat; }
header { max-width:760px; padding:22px 26px; border-color:#ffffff12; }
.brand { display:inline-flex; align-items:baseline; gap:0; flex-shrink:0; white-space:nowrap; font-family:'Barlow Condensed',Impact,'Arial Narrow',sans-serif; font-size:28px; font-weight:800; line-height:1; letter-spacing:0; }
.brand .brand-battle,.brand .brand-zero { font:inherit; font-style:normal; letter-spacing:0; }
.brand .brand-battle { color:var(--brand-purple); }
.brand .brand-divider { font:inherit; color:#fff; letter-spacing:normal; }
.brand .brand-zero { color:#fff; }
footer .brand { font-size:20px; }
.history-link { display:block; margin:0; color:#d5bcff; font-size:14px; }
header { flex-wrap:wrap; gap:8px 16px; }
.header-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:4px 16px; margin-left:auto; }
.header-actions nav { min-width:0; }
@media(max-width:480px) { .header-actions { flex-direction:column; align-items:flex-end; gap:0; } .header-actions .version { font-size:10px; padding:4px 7px; } }
#saved-battles { max-width:620px; margin:auto; }
#saved-battles .result-heading { font-family:'Barlow Condensed',Impact,sans-serif; font-size:clamp(36px,8vw,52px); letter-spacing:-.5px; }
.history-note { color:#b8b2c4; font-size:14px; line-height:1.6; }
.saved-list { list-style:none; padding:0; display:grid; gap:14px; margin:24px 0; }
.saved-card { min-width:0; padding:22px; border:1px solid #ffffff20; border-radius:18px; background:#191920; }
.saved-date { color:#a5a2ad; font-size:13px; }
.saved-topic { color:#f3f0f8; font-size:16px; overflow-wrap:anywhere; margin:12px 0 18px; }
.saved-winner { color:#d5bcff; font-size:27px; overflow-wrap:anywhere; margin:5px 0 20px; line-height:1.15; }
.saved-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.saved-actions button { min-height:44px; font-size:14px; }
.saved-actions .text-button { margin-left:auto; color:#b8b2c4; padding:10px; }
.history-confirm { margin:16px 0; padding:20px; border:1px solid #b494ff; border-radius:14px; background:#211a2c; }
.history-confirm p { margin-top:0; overflow-wrap:anywhere; line-height:1.5; }
.history-confirm button { margin-right:10px; min-height:44px; font-size:14px; }
.version { font-size:12px; letter-spacing:1px; padding:7px 9px; border-radius:20px; background:#ffffff08; color:#c1bccb; }
main { max-width:760px; padding:18px 24px 36px; }
#setup { max-width:510px; }
.pulse-strip { display:flex; justify-content:space-between; gap:12px; background:#ffffff06; border:1px solid #ffffff05; padding:8px 14px; border-radius:30px; font-size:12px; font-weight:700; letter-spacing:1px; color:#b8b2c4; }
.pulse-strip span:first-child { color:var(--lime); }
.setup-hero { text-align:center; padding:22px 10px 18px; }
.setup-hero .eyebrow { display:inline-block; margin:0 0 12px; padding:6px 12px; border-radius:30px; background:#06b6d416; color:#67e8f9; font-size:12px; letter-spacing:1.2px; }
#setup-title { font-family:'Barlow Condensed',Impact,'Arial Narrow',sans-serif; font-weight:800; font-size:clamp(33px,7vw,48px); letter-spacing:-.5px; line-height:1.02; margin:0; text-shadow:-1px 0 #8b5cf666,1px 0 #06b6d455; }
#setup-title span { color:inherit; }
#setup-title .title-that { color:var(--lime); }
.setup-hero .intro { font-size:16px; line-height:1.5; color:#c8c2d2; margin:14px 0 0; }
.setup-panel { margin-top:0; border-radius:28px; padding:23px; border:1px solid #ffffff09; background:linear-gradient(125deg,#222128e8,#1b1922df); box-shadow:0 12px 40px #0003,inset 0 1px 0 #ffffff04; backdrop-filter:blur(18px); }
.topic-label { font-size:12px; color:#c3bccf; letter-spacing:1.5px; margin:0 0 10px; }
.topic-field { display:flex; align-items:center; gap:10px; border:1px solid #ffffff09; border-radius:30px; padding:0 16px; background:#100e13a6; }
.topic-field>span { color:var(--lime); font-size:32px; line-height:1; }
.topic-field:focus-within { border-color:var(--lime); }
.topic-field input { min-width:0; border:0; border-radius:0; background:transparent; padding:16px 0; color:#f3f0f8; font-size:17px; font-weight:600; }
.topic-field input:focus-visible { outline-offset:1px; outline-width:2px; }
.setup-tabs { display:grid; grid-template-columns:1fr 2fr; padding:5px; gap:4px; margin:18px 0; border-radius:15px; background:#100e1380; }
.setup-tabs button { border:0; padding:11px 7px; min-height:44px; border-radius:11px; background:transparent; color:#b7afc3; font-size:14px; font-weight:600; }
.setup-tabs [aria-selected=true] { background:#342744; color:var(--lime); box-shadow:inset 0 0 0 1px #b494ff18; }
#play-panel .mode-picker { margin:0; padding:0; gap:10px; }
#play-panel .mode-picker legend { font-size:12px; letter-spacing:1.2px; color:#beb6c9; margin-bottom:10px; }
#play-panel .mode-picker label { position:relative; display:flex; align-items:center; gap:10px; padding:13px 10px; background:#292630a1; border:1px solid transparent; border-radius:19px; min-width:0; font-size:16px; }
#play-panel .mode-picker input { position:absolute; width:1px; height:1px; margin:0; opacity:0; }
#play-panel .mode-picker label:has(input:checked) { background:#352647; border-color:#b494ff55; }
#play-panel .mode-picker label:has(input:focus-visible) { outline:3px solid var(--lime); outline-offset:3px; }
.mode-icon { display:grid; place-items:center; width:33px; height:33px; flex-shrink:0; border-radius:50%; color:var(--lime); background:#8b5cf61a; font-size:22px; }
#play-panel .mode-picker label:last-child .mode-icon { color:#67e8f9; background:#06b6d41a; }
#play-panel .mode-picker small { font-size:12px; line-height:1.4; margin-top:4px; color:#bfb6cc; }
.lineup-summary { font-size:13px; color:#c0b4d1; text-align:center; margin:14px 0 3px; }
#modify-panel .list-head { align-items:center; flex-wrap:wrap; }
#modify-panel .list-head label { font-size:12px; letter-spacing:1px; margin:0; }
#modify-panel #count { font-size:13px; }
#contenders { margin-top:12px; background:#100e13a8; border:1px solid #4c405e; color:#f3f0f8; border-radius:14px; font-size:16px; line-height:1.7; padding:14px; }
#choices-note { font-size:14px; margin-bottom:0; }
#done-modifying { color:var(--lime); font-size:14px; padding:12px 0; }
#error { margin:12px 0; font-size:14px; line-height:1.4; }
#error:empty { margin:0; }
.primary { border-radius:28px; color:#0b0b13; font-weight:800; }
#start { margin-top:16px; width:100%; justify-content:center; gap:12px; padding:15px; font-family:'Barlow Condensed',Impact,'Arial Narrow',sans-serif; font-size:24px; letter-spacing:.7px; box-shadow:0 0 22px #b494ff28; }
#start span { font-family:Arial,sans-serif; font-size:26px; }
.primary:hover { background:linear-gradient(110deg,#a78bfa,#67e8f9); }
.source-note { text-align:center; font-size:14px; line-height:1.5; color:#d5c9e5; margin:10px 0 0; }
.starter-section { padding:26px 2px 4px; }
.section-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.section-heading h2 { font-size:13px; margin:0; font-weight:800; letter-spacing:.5px; }
.section-heading>span { color:#67e8f9; font-size:12px; }
.topics { margin:14px 0 0; gap:8px; }
.topics button { font-size:14px; padding:10px 14px; background:#242129; border-color:#ffffff05; color:#ded7e7; min-height:40px; }
.topics button.selected { color:var(--lime); background:#352647; border-color:#b494ff33; }
.trending-topics { gap:8px 10px; }
.trending-topics button { display:inline-flex; flex-wrap:wrap; max-width:100%; text-align:left; align-items:center; gap:8px; padding:8px 12px; background:#18171f; border-color:transparent; font-weight:600; }
.trending-topics button.selected { background:#282037; border-color:#8b5cf647; }
.trending-topics .custom-topic { color:#67e8f9; background:transparent; font-weight:400; }
.matchup-preview { margin-top:23px; padding:18px; border-radius:23px; background:linear-gradient(140deg,#25222be8,#19171fed); border:1px solid #ffffff08; }
.matchup-preview .section-heading>span { color:#b4a9c4; }
#preview-topic { font-size:14px; line-height:1.4; color:#beb4cb; margin:9px 0 13px; overflow-wrap:anywhere; }
.preview-pair { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; position:relative; }
.preview-choice { display:flex; flex-direction:column; justify-content:center; min-height:115px; overflow:hidden; border-radius:13px; background:#332645; text-align:center; }
.preview-choice:last-child { background:#16404a; }
.preview-choice strong { display:block; width:100%; font-size:16px; padding:12px 8px; line-height:1.2; overflow-wrap:anywhere; }
.preview-choice .contender-image { width:100%; height:110px; flex-shrink:0; object-fit:contain; object-position:center; background:#14151a; }
.preview-choice.image-logo .contender-image { background:#fff; padding:14px; object-fit:contain; }
.preview-vs { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%) rotate(-7deg); background:#100e13; padding:7px; border-radius:50%; font-size:12px; font-weight:800; z-index:1; }
.matchup-accent { height:5px; border-radius:5px; background:linear-gradient(90deg,#8b5cf6 50%,var(--cyan) 50%); margin-top:14px; }
.matchup-preview .image-credits { font-size:12px; margin:12px 0 0; }
footer { max-width:760px; border-color:#ffffff0d; padding:24px; font-size:12px; }
.secondary { border-radius:16px; background:#27232e; border-color:#ffffff18; font-size:14px; }
.game-top,.hint,.recent { font-size:14px; }
.winner-box { background:linear-gradient(135deg,#c4a5ff,#67e8f9); }
#result .result-heading,.challenge-heading { font-family:'Barlow Condensed',Impact,'Arial Narrow',sans-serif; letter-spacing:-.5px; }
#result .footer-note,#challenge-preview .footer-note { font-size:13px; }
.video-playing { background:#0b0b13; }
.video-playing main { padding:12px 12px 24px; }
@media(min-width:800px) { #setup { max-width:530px; } .setup-hero { padding-top:26px; } }
@media(max-width:380px) { header { padding:18px 16px; } .brand { font-size:22px; } main { padding:14px 14px 28px; } .setup-panel { padding:17px; } .mode-icon { width:27px; height:27px; } #play-panel .mode-picker label { gap:7px; padding:12px 8px; } .section-heading { flex-wrap:wrap; gap:5px; } }
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; } }


/* Compact topic-first setup; review/edit follows topic confirmation. */
.setup-hero { padding:10px 0 16px; text-align:left; }
#setup-title { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:baseline; column-gap:.22em; font-size:clamp(30px,6vw,38px); line-height:1.08; }
#setup-title .title-this { text-align:right; }
#setup-title .title-or { text-align:center; }
#setup-title .title-that { text-align:left; }
.setup-hero .intro { margin:8px 0 0; font-size:14px; }
#play-panel { margin-top:18px; }
#review-title { font-size:24px; margin:20px 0 8px; }
#review-note { margin:0 0 18px; }
#review-panel .matchup-preview { margin:16px 0; padding:14px; }
.review-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.review-actions .primary { justify-content:center; gap:10px; }
@media(min-width:800px) { .setup-hero { padding-top:10px; } }

/* Shared page rhythm and action hierarchy; the centered THIS / OR / THAT stays intact. */
#result,#saved-battles,#challenge-preview { max-width:620px; }
#result .result-heading,#saved-battles .result-heading,.challenge-heading {
  font-family:var(--display-font); font-weight:800; font-size:clamp(36px,8vw,52px);
  line-height:1.08; letter-spacing:-.5px; margin:20px 0 16px;
}
#game:not(.video-mode) #battle-title { font-size:clamp(28px,5vw,36px); line-height:1.2; }
.game-top { gap:16px; align-items:center; }
.primary,.secondary { min-height:48px; padding:13px 18px; line-height:1.4; }
.secondary { border-radius:var(--control-radius); background:#27232e; border-color:var(--panel-border); }
.text-button { min-height:44px; font-size:14px; line-height:1.4; }
.secondary:hover:not(:disabled) { background:#352647; border-color:#b494ff66; }
.text-button:hover:not(:disabled) { color:#d5bcff; }
.saved-card,.matchup-preview,.challenge-share { border-radius:var(--panel-radius); border-color:var(--panel-border); background:var(--panel); }
.contender { border-radius:var(--panel-radius); }
.preview-choice { border-radius:var(--control-radius); }
.winner-box { border-radius:var(--panel-radius); padding:28px; }
.winner-box h2 { margin:20px 0; }
.winner-box p { font-size:15px; line-height:1.5; }
.winner-mark,.eyebrow { font-size:12px; line-height:1.5; }
.saved-card { padding:24px; }
.saved-list { gap:16px; }
.saved-winner { font-weight:700; line-height:1.2; }
.share-block { margin-top:24px; padding-top:24px; }
.challenge-share { padding:24px; }
.share-block>p,.history-note { color:#b8b2c4; font-size:14px; line-height:1.6; }
.path-heading { gap:12px; flex-wrap:wrap; margin-top:24px; }
.path-heading span { font-size:13px; }
#path li { font-size:15px; line-height:1.5; padding:16px 0; }
#path li>span { min-width:0; overflow-wrap:anywhere; }
.result-actions,.saved-actions { gap:12px; }
.history-note:empty,.history-confirm p:empty { display:none; }
.history-confirm { border-radius:var(--control-radius); }
.history-confirm p[role=alert] { margin:12px 0 0; color:#ffb49c; }
footer { gap:16px; align-items:center; flex-wrap:wrap; line-height:1.5; }
@media(max-width:600px) {
  .winner-box,.saved-card,.challenge-share { padding:20px; }
  .result-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .result-actions>button { width:100%; min-width:0; }
  .saved-actions .secondary { flex:1; min-width:0; }
  .share-block .primary { justify-content:center; }
}

/* Keep each choice readable, with the surviving contender leading the line. */
#path li { font-size:16px; line-height:1.65; }
#path strong { color:#d5bcff; font-weight:700; }
#path small { color:#a5a2ad; font-size:14px; font-weight:400; margin:0 .35em; }

.trending-topics .trend-heat { white-space:nowrap; font-size:13px; line-height:1.3; }

.copy-link-fallback { margin:8px 0 16px; font-size:14px; }
