/* LIVE tie-breaker games (Oct 19; duel-wheel.js, tv-display.js, multiplayer.js showLiveDuel). Layout only: the host panel,
   TV card and phone note sit inside the approved duel surfaces (.duelContent, .tvDuelCard, .playerDuelCard with their
   event-materials.css frames and buttons). No new artwork. */

/* ----- Host: game picker (setup) ----- */
#duelModal .duelLivePicker { margin: 4px 0 12px; text-align: left; }
#duelModal .duelLivePicker[hidden] { display: none; }
#duelModal .duelLivePickerHead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
#duelModal .duelLivePickerHead h3 { margin: 0; font-size: 14px; letter-spacing: 1px; }
#duelModal .duelLiveCount { font-weight: 800; color: #ffe39b; }
#duelModal .duelLiveQuick { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
#duelModal .duelLiveQuick button { flex: 1 1 120px; }
#duelModal .duelLiveGames { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
#duelModal .duelLiveGame {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 8px; align-items: center;
  min-height: 44px; padding: 8px 10px; border-radius: 12px; cursor: pointer;
  background: #0b265c; border: 2px solid rgba(227, 185, 90, 0.45); color: #fff7e5;
}
#duelModal .duelLiveGame.on { border-color: #ffe39b; background: #123c8a; }
#duelModal .duelLiveGame input { grid-row: span 2; width: 22px; height: 22px; margin: 0; accent-color: #f8cf4f; }
#duelModal .duelLiveGame:focus-within { outline: 3px solid white; outline-offset: 2px; }
#duelModal .duelLiveGameName { font-weight: 900; overflow-wrap: anywhere; }
#duelModal .duelLiveGameNeeds { font-size: 12px; color: #e5ecf5; overflow-wrap: anywhere; }
#duelModal .duelPaperNote { margin: 6px 0 0; font-size: 13px; text-align: left; }   /* both modes (Oct 20) */
#duelModal .duelLiveHint { min-height: 1.2em; margin: 10px 0 0; font-weight: 800; color: #ffe39b; }
#duelModal .duelLive .duelStartRow { flex-wrap: wrap; }
#duelModal .duelLive .duelSpinBtn { min-width: 0; flex: 1 1 260px; margin: 0; }

/* ----- Host: running panel ----- */
#duelModal .duelLive { text-align: left; }
#duelModal .duelLive .duelHeader2 { flex-wrap: wrap; }
#duelModal .duelLiveUpNext { margin: -2px 0 10px; font-weight: 800; color: #e5ecf5; overflow-wrap: anywhere; }
#duelModal .duelLiveCard {
  border-radius: 16px; padding: 14px; background: #0b265c; border: 2px solid rgba(227, 185, 90, 0.55);
}
#duelModal .duelLiveTitle { font-size: clamp(20px, 4.4vw, 28px); font-weight: 1000; color: #ffe39b; overflow-wrap: anywhere; }
#duelModal .duelLiveFamiliar { font-size: 0.7em; color: #e5ecf5; font-weight: 800; }
#duelModal .duelLiveReplay { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: #f8cf4f; color: #172a4f; font-weight: 900; }
#duelModal .duelLiveSteps { margin: 10px 0 0; padding-left: 22px; line-height: 1.35; }
#duelModal .duelLiveSteps li + li { margin-top: 4px; }
#duelModal .duelLiveFacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 14px; margin: 12px 0 0; }
#duelModal .duelLiveFacts div { min-width: 0; }
#duelModal .duelLiveFacts dt { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #ffe39b; font-weight: 900; }
#duelModal .duelLiveFacts dd { margin: 2px 0 0; color: #e5ecf5; overflow-wrap: anywhere; }
#duelModal .duelLiveStatus { font-size: 20px; font-weight: 1000; color: #ffe39b; }
#duelModal .duelLiveOnWheel { margin-top: 8px; color: #e5ecf5; line-height: 1.5; overflow-wrap: anywhere; }
#duelModal .duelLiveTimer { min-height: 0; margin-top: 10px; font-size: 24px; font-weight: 1000; text-align: center; color: #ffe39b; }
#duelModal .duelLiveTimer:empty { margin: 0; }
#duelModal .duelLiveControls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
#duelModal .duelLiveControls button { flex: 1 1 180px; min-height: 48px; }
#duelModal .duelLiveControls .duelMiniBtn { flex: 1 1 150px; min-height: 44px; }
#duelModal .duelLiveNote { flex: 1 1 100%; margin: 0; text-align: center; font-weight: 800; }
#duelModal .duelLiveWin { font-size: 22px; color: #ffe39b; }
#duelModal .duelLiveFooter { display: flex; justify-content: flex-end; margin-top: 12px; }
#duelModal .duelLiveFooter:empty { display: none; }

/* ----- TV card (fixed above the board, below the wheel) ----- */
.tvLiveTie {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: rgba(4, 12, 32, 0.9); padding: 2vh 2vw; box-sizing: border-box;
}
.tvLiveTie .tvLiveCard {
  width: min(94vw, 1500px); max-height: 96vh; overflow: hidden; box-sizing: border-box;
  padding: clamp(16px, 2.4vh, 36px) clamp(20px, 2.6vw, 48px);
  border: 10px solid #d9a441; border-image: url('ui-kit-navy-panel.webp') 72 fill / 30px stretch;
  background: #17418f padding-box; color: #fff7e5; border-radius: 20px;
  box-shadow: 0 5px 0 #6b4712, 0 16px 30px #07182d66; font-size: clamp(16px, 3vh, 40px);
}
.tvLiveHeader { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.tvLiveBadge { font-weight: 1000; padding: 0.2em 0.8em; border-radius: 999px; background: #0b265c; border: 2px solid #e3b95a; color: #ffe39b; letter-spacing: 0.04em; }
.tvLiveRound { font-weight: 900; letter-spacing: 0.08em; color: #e5ecf5; }
.tvLivePair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.8em; margin: 0.6em 0 0.2em; text-align: center; }
.tvLivePair span { font-size: 1.6em; font-weight: 1000; padding: 0.25em 0.5em; border-radius: 14px; background: #0b265c; border: 2px solid #e3b95a; overflow-wrap: anywhere; }
.tvLivePair b { font-size: 1.2em; color: #ffe39b; }
.tvLiveUpNext { text-align: center; color: #e5ecf5; font-weight: 800; overflow-wrap: anywhere; }
.tvLiveGame { margin-top: 0.6em; padding: 0.6em 0.9em; border-radius: 16px; background: #0b265c; border: 2px solid rgba(227, 185, 90, 0.6); }
.tvLiveTitle { font-size: 1.9em; font-weight: 1000; color: #ffe39b; line-height: 1.1; overflow-wrap: anywhere; }
.tvLiveTitle span { font-size: 0.55em; color: #e5ecf5; }
.tvLiveTitle em { font-style: normal; font-size: 0.5em; vertical-align: middle; padding: 0.1em 0.6em; border-radius: 999px; background: #f8cf4f; color: #172a4f; }
.tvLiveSteps { margin: 0.4em 0 0; padding-left: 1.3em; line-height: 1.3; font-size: 1.05em; }
.tvLiveSteps li + li { margin-top: 0.15em; }
.tvLiveFacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4em 1em; margin-top: 0.5em; }
.tvLiveFacts div { display: flex; flex-direction: column; min-width: 0; }
.tvLiveFacts b { font-size: 0.7em; letter-spacing: 0.08em; text-transform: uppercase; color: #ffe39b; }
.tvLiveFacts span { color: #e5ecf5; line-height: 1.25; overflow-wrap: anywhere; }
.tvLiveStage { margin-top: 0.5em; text-align: center; font-size: 1.25em; font-weight: 1000; color: #ffe39b; overflow-wrap: anywhere; }
.tvLiveStage.win { font-size: 1.6em; }
.tvLiveStage:empty { display: none; }
.tvLiveTimer { text-align: center; font-size: 1.6em; font-weight: 1000; color: #fff7e5; }
.tvLiveTimer:empty { display: none; }

/* ----- Phone note ----- */
.playerLiveDuel .playerDuelLocked { margin-top: 8px; }
