@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root {
  font-family: 'DM Sans', 'Noto Sans KR', sans-serif;
  color: #f3f4fa;
  background: #101116;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #9295a5;
  --line: #292b36;
  --purple: #a88bff;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% -20%, #29213f 0, #17171f 36%, #101116 72%); }
.app-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.welcome-open-button { border: 1px solid #494454; border-radius: 99px; padding: 7px 11px; color: #d7c9ff; background: #211f29; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.welcome-open-button:hover { border-color: var(--purple); background: #2a2436; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #17131f; background: var(--purple); font-size: 18px; font-weight: 800; }
.season-tag { border: 1px solid #393441; border-radius: 99px; color: #c8bedc; padding: 7px 12px; font-size: 12px; }
.intro { text-align: center; padding: 66px 0 42px; }
.eyebrow { color: var(--purple); font-size: 10px; letter-spacing: .2em; font-weight: 700; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.06em; margin: 0; }
.intro-copy { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.builder { border: 1px solid #30313c; border-radius: 20px; padding: 28px; background: linear-gradient(145deg, rgba(31,31,42,.96), rgba(24,24,31,.96)); box-shadow: 0 24px 90px rgba(0,0,0,.25); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 7px; }
h2 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
.count-pill { padding: 8px 12px; border-radius: 99px; background: #2a2735; color: #d3c8f1; font-size: 12px; }
.roster-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.player-slot { border: 1px solid #343541; border-radius: 14px; padding: 15px; min-height: 184px; background: #1b1b24; transition: border-color .2s, transform .2s; }
.player-slot:focus-within { border-color: var(--purple); transform: translateY(-2px); }
.position { color: #b8a5ee; font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.player-visuals { display: flex; align-items: center; gap: 8px; margin: 12px 0 5px; }
.player-avatar { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid #4a4558; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #39314e, #282633); color: #d7c9ff; font-size: 18px; font-weight: 700; }
.player-photo { display: block; width: 58px; height: 58px; flex: 0 0 58px; border: 1px solid #4a4558; border-radius: 13px; object-fit: cover; object-position: center 28%; }
.player-photo[hidden] { display: none; }
.player-photo-credit { display: block; width: max-content; margin: 0 0 7px; color: #9f91c7; font-size: 9px; text-decoration: none; }
.player-photo-credit:hover { color: #d7c9ff; text-decoration: underline; }
.player-photo-credit[hidden] { display: none; }
.player-slot select { width: 100%; border: 0; outline: 0; color: #f3f4fa; background: transparent; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.player-slot select option { color: #17171d; }
.slot-hint { color: #777b8b; font-size: 11px; margin: 7px 0 0; }
.player-stats { min-height: 30px; margin: 6px 0 0; color: #a9a6b7; font-size: 10px; line-height: 1.5; }
.lineup-name-control { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 8px 12px; margin-top: 16px; padding: 14px; border: 1px solid #393542; border-radius: 11px; background: #201e29; }
.lineup-name-control label { color: #d8c9ff; font-size: 11px; font-weight: 700; }
.lineup-name-control input { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #494454; border-radius: 8px; outline: none; color: #f3f4fa; background: #17161e; font: inherit; font-size: 12px; }
.lineup-name-control input:focus { border-color: var(--purple); box-shadow: 0 0 0 2px #a98be933; }
.lineup-name-control input:disabled { opacity: .55; cursor: not-allowed; }
.lineup-name-control p { grid-column: 2; margin: -3px 0 0; color: #9295a5; font-size: 10px; line-height: 1.5; }
.summary { display: grid; grid-template-columns: .7fr 1.3fr; gap: 20px; align-items: center; margin-top: 18px; padding: 20px; border: 1px solid #34313e; border-radius: 14px; background: #201e29; }
.summary-label { color: #a5a2b1; font-size: 12px; }
.power-value { display: flex; align-items: baseline; gap: 5px; margin: 1px 0 10px; }
.power-value strong { color: #fff; font-size: 32px; letter-spacing: -.06em; }
.power-value span { color: #838392; font-size: 12px; }
.meter { height: 5px; border-radius: 9px; background: #393643; overflow: hidden; }
.meter-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #8266dc, #c2a4ff); transition: width .35s; }
.summary-note { display: flex; align-items: center; gap: 11px; min-height: 52px; padding-left: 20px; border-left: 1px solid #3b3845; }
.note-icon { color: #c4a8ff; font-size: 20px; }
.summary-note p { margin: 0; color: #c1bfcb; font-size: 13px; line-height: 1.6; }
.tournament-panel { margin-top: 18px; padding: 28px; border: 1px solid #30313c; border-radius: 20px; background: linear-gradient(145deg, rgba(31,31,42,.96), rgba(24,24,31,.96)); box-shadow: 0 24px 90px rgba(0,0,0,.18); }
.history-panel { margin-top: 18px; padding: 28px; border: 1px solid #30313c; border-radius: 20px; background: linear-gradient(145deg, rgba(31,31,42,.96), rgba(24,24,31,.96)); box-shadow: 0 24px 90px rgba(0,0,0,.16); }
.history-panel .section-heading { margin-bottom: 8px; }
.history-intro, .history-empty { margin: 0 0 14px; color: #9295a5; font-size: 11px; line-height: 1.6; }
.history-empty { padding: 14px; border: 1px dashed #494454; border-radius: 10px; }
.tournament-history-list { display: grid; gap: 9px; }
.history-record { border: 1px solid #3c3948; border-radius: 11px; background: #1b1a23; }
.history-record[open] { border-color: #67548c; }
.history-record summary { padding: 13px 15px; color: #e6dcff; font-size: 12px; font-weight: 700; cursor: pointer; }
.history-record-content { padding: 0 15px 15px; color: #aaa6b5; font-size: 10px; line-height: 1.6; }
.history-record-content > p { margin: 6px 0; }
.history-champion-line { color: #c7a9ff; font-size: 12px; font-weight: 700; }
.history-record-content h4 { margin: 13px 0 6px; color: #d8c9ff; font-size: 11px; }
.history-group ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin: 0; padding-left: 20px; }
.history-match-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; padding-left: 22px; }
.history-match-list li { min-width: 0; padding: 8px; border: 1px solid #34313e; border-radius: 8px; background: #22212b; }
.history-match-list strong { display: block; color: #e0d7f4; font-size: 10px; }
.history-match-list p { margin: 4px 0 0; color: #9e99aa; }
.history-match-list small { display: block; margin-top: 4px; color: #b7a0ef; line-height: 1.55; overflow-wrap: anywhere; }
.tournament-save-dialog { width: min(470px, calc(100% - 28px)); padding: 0; border: 1px solid #8065b7; border-radius: 16px; color: #f3f4fa; background: #211f2a; box-shadow: 0 22px 80px #0009; }
.tournament-save-dialog::backdrop { background: #09080dcc; backdrop-filter: blur(4px); }
.tournament-save-content { padding: 24px; }
.tournament-save-content .eyebrow { margin-bottom: 8px; }
.tournament-save-content h2 { margin-bottom: 10px; }
.tournament-save-content > p:not(.eyebrow) { color: #c0bbcc; font-size: 12px; line-height: 1.65; }
.tournament-save-content .history-storage-note { padding: 10px 12px; border: 1px solid #393542; border-radius: 9px; background: #191821; color: #aaa6b5 !important; font-size: 10px !important; }
.history-save-error { color: #ff9ea9 !important; }
.tournament-save-actions { display: flex; gap: 9px; margin-top: 16px; }
.tournament-save-actions button { flex: 1; }
.history-skip-button { border: 1px solid #494454; border-radius: 9px; padding: 10px 14px; color: #ded9e9; background: #292633; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.welcome-dialog { width: min(560px, calc(100% - 28px)); max-height: min(90vh, 760px); padding: 0; overflow: auto; border: 1px solid #725b9b; border-radius: 18px; color: #f3f4fa; background: #211f2a; box-shadow: 0 24px 90px #000b; }
.welcome-dialog::backdrop { background: #09080dd9; backdrop-filter: blur(5px); }
.welcome-content { padding: 26px; }
.welcome-content .eyebrow { margin-bottom: 8px; }
.welcome-content h2 { color: #f4efff; font-size: 22px; }
.welcome-lead { margin: 10px 0 17px; color: #c0bbcc; font-size: 12px; line-height: 1.65; }
.welcome-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.welcome-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 10px 11px; border: 1px solid #393542; border-radius: 10px; background: #191821; }
.welcome-steps li > span { color: #b79aff; font-size: 11px; font-weight: 800; }
.welcome-steps strong { color: #e6dcff; font-size: 11px; }
.welcome-steps p { margin: 3px 0 0; color: #aaa6b5; font-size: 10px; line-height: 1.55; }
.welcome-disclaimer { margin: 12px 0 0; color: #878392; font-size: 9px; line-height: 1.5; }
.welcome-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #393542; }
.welcome-actions label { display: inline-flex; align-items: center; gap: 7px; color: #bdb8c9; font-size: 11px; cursor: pointer; }
.welcome-actions input { width: 15px; height: 15px; margin: 0; accent-color: var(--purple); }
.welcome-actions button { min-width: 138px; margin: 0; padding: 11px 17px; }
.tournament-panel .section-heading { margin-bottom: 12px; }
.draw-bracket-button, .bracket-select-button { border: 0; border-radius: 9px; padding: 10px 14px; color: #18141f; background: var(--purple); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: opacity .2s, transform .2s; }
.draw-bracket-button:hover:not(:disabled), .bracket-select-button:hover:not(:disabled) { transform: translateY(-1px); }
.draw-bracket-button:disabled, .bracket-select-button:disabled { opacity: .4; cursor: not-allowed; }
.tournament-status { margin: 0; color: #e0d7f4; font-size: 13px; font-weight: 600; }
.tournament-note { margin: 7px 0 16px; color: #858392; font-size: 11px; line-height: 1.6; }
.exclusion-picker { display: flex; flex-direction: column; gap: 7px; max-width: 340px; margin: 0 0 14px; }
.exclusion-picker label { color: #c8bedc; font-size: 11px; font-weight: 600; }
.exclusion-picker select { width: 100%; padding: 10px 12px; border: 1px solid #494454; border-radius: 9px; color: #f3f4fa; background: #24212d; font: inherit; font-size: 12px; }
.exclusion-picker option { color: #f3f4fa; background: #24212d; }
.tournament-exclusion-summary { margin: 0 0 14px; color: #e6aab4; font-size: 11px; font-weight: 600; }
.group-stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.group-card { min-width: 0; padding: 14px; border: 1px solid #34313e; border-radius: 13px; background: #1b1b24; }
.group-card h3, .playoff-title { margin: 0 0 12px; color: #c8b5fa; font-size: 13px; }
.group-table { width: 100%; border-collapse: collapse; color: #b9b6c4; font-size: 10px; text-align: left; }
.group-table th, .group-table td { padding: 7px 5px; border-bottom: 1px solid #34313e; }
.group-table th { color: #858392; font-weight: 500; }
.group-table td:nth-child(1), .group-table td:nth-child(3), .group-table td:nth-child(4) { white-space: nowrap; }
.group-table .group-qualified td { color: #a8e0c7; }
.group-table .group-eliminated td { color: #e6aab4; }
.group-matches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.group-match { min-width: 0; padding: 9px; border: 1px solid #343541; border-radius: 9px; background: #22212b; }
.group-match.selected { border-color: var(--purple); }
.group-match.completed { border-color: #3e6558; }
.group-match-names { overflow-wrap: anywhere; color: #d5d1df; font-size: 10px; font-weight: 600; line-height: 1.5; }
.playoff-title { margin-top: 20px; }
.bracket-rounds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bracket-round { min-width: 0; padding: 14px; border: 1px solid #34313e; border-radius: 13px; background: #1b1b24; }
.bracket-round h3 { margin: 0 0 12px; color: #c8b5fa; font-size: 13px; }
.bracket-match { margin-top: 10px; padding: 10px; border: 1px solid #343541; border-radius: 10px; background: #22212b; }
.bracket-match.selected { border-color: var(--purple); box-shadow: 0 0 0 1px rgba(168,139,255,.2); }
.bracket-match.completed { border-color: #3e6558; }
.bracket-team { display: flex; justify-content: space-between; gap: 8px; padding: 7px 2px; color: #b9b6c4; font-size: 11px; }
.bracket-team + .bracket-team { border-top: 1px solid #35333e; }
.bracket-team span { overflow-wrap: anywhere; }
.bracket-team strong { color: #858392; }
.bracket-team.winner span, .bracket-team.winner strong { color: #a8e0c7; font-weight: 700; }
.bracket-match-status { margin: 7px 0 0; color: #8d899a; font-size: 10px; }
.bracket-select-button { width: 100%; margin-top: 8px; padding: 8px; font-size: 10px; }
.match-panel { margin-top: 18px; padding: 28px; border: 1px solid #30313c; border-radius: 20px; background: linear-gradient(145deg, rgba(31,31,42,.96), rgba(24,24,31,.96)); box-shadow: 0 24px 90px rgba(0,0,0,.18); }
.match-panel { scroll-margin-top: 16px; }
.match-panel .section-heading { margin-bottom: 18px; }
.format-picker { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border: 1px solid #393441; border-radius: 99px; color: #c8bedc; background: #24212d; }
.format-picker > span { font-size: 11px; }
.format-picker strong { max-width: 250px; color: #f3f4fa; font-size: 11px; line-height: 1.4; }
.matchup-teams { display: grid; grid-template-columns: 1fr 54px 1fr; gap: 16px; align-items: stretch; }
.team-card { min-height: 200px; padding: 18px; border: 1px solid #343541; border-radius: 15px; background: #1b1b24; }
.team-label { display: block; color: #a9a5b7; font-size: 12px; }
.own-team > strong { display: block; margin-top: 20px; font-size: 42px; letter-spacing: -.06em; }
.own-team > p { color: #777b8b; font-size: 12px; }
.opponent-team select { width: 100%; margin-top: 8px; padding: 8px 10px; border: 1px solid #44404e; border-radius: 8px; color: #f3f4fa; background: #24222d; font: inherit; font-weight: 600; }
.opponent-team select option { color: #17171d; }
.opponent-roster { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0 12px; padding: 0; list-style: none; }
.opponent-roster li { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 7px 5px; border-radius: 8px; background: #24222d; text-align: center; }
.opponent-roster li span { color: #8e89a0; font-size: 9px; }
.opponent-roster li strong { overflow: hidden; color: #e2d9fb; font-size: 10px; text-overflow: ellipsis; }
.opponent-score { color: #9b98a6; font-size: 11px; text-align: right; }
.opponent-score strong { margin-left: 5px; color: #fff; font-size: 17px; }
.versus { align-self: center; color: #827a96; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-align: center; }
.simulation-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; padding: 15px 18px; border: 1px solid #373342; border-radius: 12px; background: #201e29; }
.simulation-controls p { margin: 0; color: #b8b4c3; font-size: 13px; }
.simulation-controls p strong { margin-left: 8px; color: #c9b6ff; font-size: 21px; }
.simulation-controls button { border: 0; border-radius: 9px; padding: 11px 18px; color: #18141f; background: var(--purple); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: opacity .2s, transform .2s; }
.simulation-controls button:hover:not(:disabled) { transform: translateY(-1px); }
.simulation-controls button:disabled { opacity: .4; cursor: not-allowed; }
.match-result { margin-top: 14px; padding: 18px; border: 1px solid #51436d; border-radius: 12px; background: #282332; }
.match-result[hidden] { display: none; }
.result-kicker { margin: 0 0 6px; color: #b8a5ee; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.match-result h3 { margin: 0; font-size: 24px; }
.game-results { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.game-result { padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 700; }
.game-result.win { border-color: #3e6558; color: #a8e0c7; background: #1e332e; }
.game-result.loss { border-color: #69434c; color: #e9afb8; background: #38252b; }
.match-result > p:last-child { margin: 8px 0 0; color: #b9b5c3; font-size: 12px; line-height: 1.6; }
.match-result .result-draft-summary { margin-top: 12px; color: #d3c8f1; overflow-wrap: anywhere; }
.banpick-dialog { width: min(820px, calc(100% - 24px)); max-width: none; max-height: min(92vh, 900px); padding: 0; overflow: auto; border: 1px solid #51436d; border-radius: 18px; color: #f3f4fa; background: #191821; box-shadow: 0 28px 100px rgba(0,0,0,.55); }
.banpick-dialog::backdrop { background: rgba(8,8,12,.78); backdrop-filter: blur(4px); }
.banpick-content { position: relative; padding: 24px; }
.banpick-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.banpick-header h2 { margin: 0; }
.draft-close-button { border: 1px solid #45404f; border-radius: 8px; padding: 8px 12px; color: #d7d2e0; background: #24222d; font: inherit; font-size: 11px; cursor: pointer; }
.draft-matchup-title { margin: 14px 0; color: #c8b5fa; font-size: 13px; font-weight: 700; }
.draft-phase { padding: 16px; border: 1px solid #34313e; border-radius: 13px; background: #201e29; }
.draft-phase h3 { margin: 0 0 6px; font-size: 15px; }
.draft-phase h3.draft-turn-title { margin: 0 0 8px; padding: 11px 13px; border: 1px solid #53447a; border-left: 4px solid #a98be9; border-radius: 8px; color: #dccfff; background: #292437; font-size: 16px; }
.draft-phase h3.draft-turn-title.your-turn { border-color: #775bb0; border-left-color: #b996ff; color: #e7dcff; background: #302741; }
.draft-phase h3.draft-turn-title.opponent-turn { border-color: #41404d; border-left-color: #788197; color: #d1d2dc; background: #25252f; }
.draft-turn-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(8,7,12,.82); backdrop-filter: blur(5px); }
.draft-turn-overlay[hidden] { display: none; }
.draft-turn-popup { width: min(420px, 100%); padding: 22px; border: 1px solid #8065b7; border-radius: 14px; background: #211d2b; box-shadow: 0 20px 70px rgba(0,0,0,.55); text-align: center; }
.draft-turn-popup .eyebrow { margin: 0 0 8px; color: #bca0ff; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.draft-turn-popup h3 { margin: 0 0 8px; color: #f1eaff; font-size: 22px; }
.draft-turn-popup > p:not(.eyebrow) { margin: 0; color: #bdb8c9; font-size: 12px; line-height: 1.6; }
.draft-turn-popup .draft-primary-button { width: 100%; margin-top: 18px; padding: 12px; font-size: 12px; }
.draft-phase > p { margin: 0 0 14px; color: #aaa6b5; font-size: 11px; line-height: 1.6; }
.draft-select-card { display: flex; flex-direction: column; gap: 6px; color: #bdb8c9; font-size: 10px; }
.draft-select-card select { width: 100%; min-width: 0; padding: 9px; border: 1px solid #494454; border-radius: 8px; color: #f3f4fa; background: #24212d; font: inherit; font-size: 11px; }
.draft-select-card option { color: #f3f4fa; background: #24212d; }
.draft-champion-picker { gap: 8px; }
.draft-champion-picker > label { color: #d8c9ff; font-size: 11px; font-weight: 700; }
.draft-champion-picker input[type="search"] { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #5b4c75; border-radius: 8px; outline: none; color: #f3f4fa; background: #24212d; font: inherit; font-size: 12px; }
.draft-champion-picker input[type="search"]:focus { border-color: var(--purple); box-shadow: 0 0 0 2px #a98be933; }
.draft-champion-picker select[aria-hidden="true"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.draft-champion-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 6px; max-height: 290px; overflow-y: auto; padding: 2px; }
.draft-champion-option { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 8px; min-width: 0; padding: 6px 8px; border: 1px solid #393542; border-radius: 8px; color: #f3f4fa; background: #201e28; text-align: left; cursor: pointer; }
.draft-champion-option:hover, .draft-champion-option:focus-visible { border-color: #a98be9; background: #2a2436; }
.draft-champion-option.selected { border-color: var(--purple); background: #302744; }
.draft-champion-option:disabled { opacity: .55; cursor: not-allowed; }
.draft-champion-option img { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 6px; object-fit: cover; background: #34313e; }
.draft-champion-option strong { overflow: hidden; color: #f3f4fa; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.draft-champion-option small { color: #b8a5e5; font-size: 9px; white-space: nowrap; }
.draft-champion-search-note { min-height: 13px; margin: 0 !important; color: #aaa6b5 !important; font-size: 10px !important; }
.draft-primary-button { margin-top: 12px; border: 0; border-radius: 9px; padding: 10px 14px; color: #18141f; background: var(--purple); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.draft-primary-button:disabled { opacity: .4; cursor: not-allowed; }
.draft-message { min-height: 16px; margin: 8px 0 0 !important; color: #e6aab4 !important; }
.draft-ban-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.draft-ban-summary > div, .draft-opponent-preview { padding: 11px; border: 1px solid #34313e; border-radius: 9px; background: #191821; }
.draft-ban-summary strong, .draft-opponent-preview > strong { color: #c8bedc; font-size: 10px; }
.draft-chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.draft-chip-list li { padding: 5px 8px; border: 1px solid #494454; border-radius: 7px; color: #e0d7f4; background: #292633; font-size: 10px; }
.draft-champion-list li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; }
.draft-champion-list img, .draft-champion-preview img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; background: #34313e; }
.draft-champion-preview { display: flex; align-items: center; gap: 10px; margin-top: 9px; padding: 9px; border: 1px solid #494454; border-radius: 9px; background: #191821; }
.draft-champion-preview[hidden], .draft-select-card[hidden] { display: none; }
.draft-champion-preview img { width: 48px; height: 48px; }
.draft-champion-preview strong { min-width: 90px; color: #f3f4fa; font-size: 12px; }
.draft-lane-select { min-width: 145px; }
.draft-chip-list select { padding: 4px 6px; border: 1px solid #494454; border-radius: 6px; color: #f3f4fa; background: #24212d; font: inherit; }
.draft-reveal-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 16px 0 10px; text-align: center; }
.draft-reveal-head strong { color: #e6dcff; font-size: 13px; }
.draft-reveal-head span { color: #a98be9; font-size: 11px; font-weight: 800; }
.draft-final-lineup { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.draft-final-lineup li { display: grid; grid-template-columns: 70px 1fr 1fr; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #393542; border-radius: 9px; background: #191821; }
.draft-final-lineup .reveal-lane { color: #b7a0ef; font-size: 11px; font-weight: 700; }
.draft-final-lineup .reveal-champion { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 11px; }
.draft-final-lineup img { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; background: #34313e; }
.draft-final-lineup .opponent-reveal { justify-content: flex-start; text-align: left; }
.draft-final-lineup .my-reveal { justify-content: flex-end; text-align: right; }
.draft-game-phase .draft-primary-button { width: 100%; padding: 13px; font-size: 13px; }
.draft-win-analysis { margin-top: 12px; padding: 12px 14px; border: 1px solid #6c5699; border-radius: 10px; background: linear-gradient(110deg, #2a2436, #201e29); }
.draft-win-analysis-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #cfc0f4; font-size: 11px; }
.draft-win-analysis-heading strong { color: #c7a9ff; font-size: 24px; }
.draft-win-analysis p { margin: 2px 0 0; color: #eee8fb; font-size: 12px; font-weight: 700; }
.draft-win-analysis small { display: block; margin-top: 6px; color: #9a95a7; font-size: 9px; line-height: 1.5; }
.side-choice { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.side-choice label { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid #494454; border-radius: 9px; color: #f3f4fa; background: #24212d; cursor: pointer; }
.side-choice input { accent-color: var(--purple); }
.draft-meta-panel { padding: 12px; border: 1px solid #51436d; border-radius: 10px; background: #191821; }
.draft-fearless-panel { margin: 12px 0; padding: 11px 12px; border: 1px solid #51436d; border-radius: 10px; background: #191821; }
.draft-fearless-panel > strong { color: #d8c9ff; font-size: 11px; }
.draft-fearless-panel > p { margin: 5px 0 0; color: #aaa6b5; font-size: 10px; line-height: 1.5; }
.draft-meta-panel strong { color: #d8c9ff; font-size: 11px; }
.draft-meta-panel p { margin: 5px 0 0; color: #aaa6b5; font-size: 10px; }
.draft-meta-panel p a { color: #bba8f2; text-decoration: underline; text-underline-offset: 2px; }
.draft-footnote { margin: 14px 2px 0; color: #777986; font-size: 10px; line-height: 1.6; }
.simulation-note { margin: 13px 2px 0; color: #777986; font-size: 11px; line-height: 1.6; }
.data-note { margin: 16px 2px 0; color: #777986; font-size: 11px; line-height: 1.7; }
.data-note a { color: #bba8f2; text-decoration: none; }
.data-note a:hover { text-decoration: underline; }
footer { padding: 24px 0 36px; color: #70717d; text-align: center; font-size: 11px; }
@media (max-width: 760px) {
  .intro { padding: 48px 0 30px; }
  .builder { padding: 20px 16px; }
  .tournament-panel { padding: 20px 16px; }
  .welcome-content { padding: 20px 17px; }
  .welcome-content h2 { font-size: 19px; }
  .welcome-actions { align-items: stretch; flex-direction: column; }
  .welcome-actions button { width: 100%; }
  .history-panel { padding: 20px 16px; }
  .history-group ol, .history-match-list { grid-template-columns: 1fr; }
  .bracket-rounds { grid-template-columns: 1fr; }
  .group-stage-grid { grid-template-columns: 1fr; }
  .tournament-panel .section-heading { align-items: flex-start; flex-direction: column; }
  .draw-bracket-button { width: 100%; }
  .match-panel { padding: 20px 16px; }
  .format-picker { gap: 5px; padding: 6px 8px; }
  .format-picker strong { max-width: 190px; font-size: 9px; }
  .roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-slot:last-child { grid-column: 1 / -1; }
  .summary { grid-template-columns: 1fr; gap: 16px; }
  .lineup-name-control { grid-template-columns: 1fr; }
  .lineup-name-control p { grid-column: 1; }
  .summary-note { padding: 12px 0 0; border-left: 0; border-top: 1px solid #3b3845; }
  .matchup-teams { grid-template-columns: 1fr; gap: 9px; }
  .team-card { min-height: auto; }
  .own-team > strong { margin-top: 9px; font-size: 32px; }
  .versus { padding: 2px; }
  .simulation-controls { align-items: stretch; flex-direction: column; }
  .simulation-controls button { width: 100%; }
  .banpick-content { padding: 18px 14px; }
  .draft-ban-summary { grid-template-columns: 1fr; }
  .draft-final-lineup li { grid-template-columns: 48px 1fr 1fr; gap: 6px; padding: 8px 6px; }
  .draft-final-lineup img { width: 30px; height: 30px; }
  .draft-final-lineup .reveal-champion { gap: 4px; font-size: 9px; }
}

