:root {
  --bg: #08090b;
  --panel: #101216;
  --panel-2: #15181e;
  --line: rgba(255, 255, 255, 0.11);
  --line-hot: rgba(242, 75, 58, 0.45);
  --text: #f5f0e8;
  --muted: #8c8e97;
  --dim: #4f525c;
  --red: #e63d37;
  --red-deep: #801e29;
  --gold: #e9b44c;
  --green: #2dc98a;
  --blue: #67a9ff;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 82% 10%, rgba(142, 24, 37, .22), transparent 34rem), radial-gradient(circle at 18% 90%, rgba(226, 171, 66, .06), transparent 30rem), var(--bg); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.scanline { position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .06; background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(255,255,255,.16) 4px); mix-blend-mode: screen; }
.shell { width: min(1780px, 100%); margin: 0 auto; padding: 24px 28px 38px; position: relative; }
.shell::before { content: ""; position: absolute; top: 0; left: 7%; width: 170px; height: 5px; background: var(--red); box-shadow: 0 0 28px rgba(230, 61, 55, .75); }
.topbar { min-height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); gap: 24px; }
.brand-lockup { display: flex; align-items: baseline; gap: 18px; }
.brand-mark { font-size: 13px; letter-spacing: .18em; font-weight: 900; color: var(--gold); }
.brand-mark span { color: var(--red); padding: 0 4px; }
.brand-subtitle { color: var(--muted); font-size: 11px; letter-spacing: .05em; }
.topbar-title { text-transform: uppercase; letter-spacing: .2em; font-size: 11px; font-weight: 800; color: var(--muted); }
.period-chip { justify-self: end; display: flex; align-items: center; gap: 14px; color: var(--text); }
.chip-label { font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.period-chip strong { font-size: 12px; color: var(--gold); border-left: 1px solid var(--line); padding-left: 14px; }
.workspace { display: grid; grid-template-columns: minmax(290px, 340px) minmax(0, 1fr); gap: 26px; padding-top: 26px; align-items: start; }
.control-panel { position: sticky; top: 20px; background: linear-gradient(150deg, rgba(29, 30, 35, .98), rgba(13, 14, 17, .98)); border: 1px solid var(--line); padding: 30px 26px 24px; box-shadow: var(--shadow); overflow: hidden; }
.control-panel::after { content: "UPLOAD"; position: absolute; top: 118px; right: -30px; transform: rotate(-90deg); color: rgba(255,255,255,.04); font-size: 72px; font-weight: 900; letter-spacing: .16em; }
.eyebrow { font-size: 10px; letter-spacing: .19em; color: var(--gold); font-weight: 800; margin-bottom: 24px; }
.eyebrow.red { color: var(--red); margin-bottom: 10px; }
h1, h2, h3, p { margin: 0; }
h1 { position: relative; z-index: 1; font-size: clamp(36px, 3.2vw, 54px); line-height: .98; letter-spacing: -.055em; font-weight: 900; }
h1 em { color: var(--red); font-style: normal; }
.lead { position: relative; z-index: 1; color: var(--muted); font-size: 13px; line-height: 1.75; margin: 22px 0 25px; max-width: 250px; }
.template-button, .upload-button { position: relative; z-index: 1; width: 100%; min-height: 48px; border: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; text-decoration: none; cursor: pointer; transition: .18s ease; }
.template-button { background: var(--gold); color: #251b0d; font-size: 13px; font-weight: 900; letter-spacing: .03em; }
.template-button:hover { background: #ffd36b; transform: translateY(-2px); }
.button-icon { font-size: 22px; font-weight: 300; line-height: 1; }
.button-tail { font-size: 9px; letter-spacing: .16em; opacity: .62; }
.drop-zone { position: relative; z-index: 1; min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 8px; border: 1px dashed rgba(255,255,255,.28); background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 7px, transparent 7px, transparent 14px); cursor: pointer; transition: .18s ease; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--red); background-color: rgba(230,61,55,.09); }
.drop-zone input { display: none; }
.drop-mark { color: var(--red); font-size: 28px; font-weight: 200; line-height: 1; }
.drop-title { font-size: 13px; font-weight: 800; }
.drop-hint { color: var(--dim); font-size: 10px; }
.selected-file { position: relative; z-index: 1; min-height: 22px; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-button { margin-top: 13px; background: var(--red); color: white; font-weight: 900; letter-spacing: .08em; }
.upload-button:not(:disabled):hover { background: #ff5148; box-shadow: 0 0 24px rgba(230,61,55,.35); transform: translateY(-2px); }
.upload-button:disabled { cursor: not-allowed; background: #3e2226; color: #80636a; }
.button-arrow { font-size: 19px; font-weight: 300; }
.upload-status { position: relative; z-index: 1; min-height: 22px; margin-top: 10px; color: var(--green); font-size: 11px; line-height: 1.45; }
.upload-status.error { color: #ff8d84; }
.rule-stack { position: relative; z-index: 1; margin-top: 28px; border-top: 1px solid var(--line); }
.rule-item { display: grid; grid-template-columns: 28px 70px 1fr; gap: 5px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rule-item span { color: var(--red); font-size: 10px; font-weight: 900; }
.rule-item b { font-size: 11px; }
.rule-item small { color: var(--muted); font-size: 10px; }
.source-note { position: relative; z-index: 1; margin-top: 18px; color: var(--dim); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-panel { min-width: 0; }
.report-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
h2 { font-size: clamp(26px, 3vw, 42px); letter-spacing: -.055em; font-weight: 900; }
h2 span { color: var(--red); }
.refresh-button { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 8px 12px; font-size: 11px; cursor: pointer; }
.refresh-button:hover { border-color: var(--gold); color: var(--gold); }
.leader-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.leader-card { min-height: 110px; position: relative; overflow: hidden; padding: 18px 20px; background: linear-gradient(115deg, rgba(117, 27, 37, .65), rgba(29, 25, 27, .96)); border: 1px solid rgba(230,61,55,.35); }
.leader-card:nth-child(2) { background: linear-gradient(115deg, rgba(194, 132, 31, .34), rgba(28, 27, 24, .96)); border-color: rgba(233,180,76,.38); }
.leader-card:nth-child(3) { background: linear-gradient(115deg, rgba(58, 77, 110, .45), rgba(18, 22, 29, .96)); border-color: rgba(103,169,255,.32); }
.leader-card::after { content: attr(data-index); position: absolute; right: 12px; bottom: -20px; color: rgba(255,255,255,.05); font-size: 90px; font-weight: 900; font-style: italic; line-height: 1; }
.leader-label { color: rgba(255,255,255,.58); font-size: 10px; letter-spacing: .15em; font-weight: 800; }
.leader-main { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 10px; }
.leader-area { font-size: 25px; letter-spacing: -.06em; font-weight: 900; }
.leader-value { color: var(--gold); font-size: 24px; font-weight: 900; letter-spacing: -.04em; }
.leader-card:nth-child(1) .leader-value { color: #ff8b62; }
.leader-card:nth-child(3) .leader-value { color: #93c3ff; }
.leader-sub { position: relative; z-index: 1; color: var(--muted); font-size: 10px; margin-top: 8px; }
.report-section { background: rgba(16,18,22,.84); border: 1px solid var(--line); margin-bottom: 16px; box-shadow: 0 12px 35px rgba(0,0,0,.16); }
.section-title-row { min-height: 74px; padding: 15px 20px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.section-no { color: var(--red); font-size: 26px; font-weight: 900; font-style: italic; line-height: 1; }
.section-kicker { color: var(--muted); font-size: 9px; letter-spacing: .18em; font-weight: 800; margin-bottom: 4px; }
h3 { font-size: 19px; letter-spacing: -.045em; }
.section-period { margin-left: auto; color: var(--gold); font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { color: var(--dim); font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 16px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.06); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
th.left, td.left { text-align: left; }
.battle-table tbody tr { transition: .16s ease; }
.battle-table tbody tr:hover { background: rgba(230,61,55,.08); }
.battle-table tbody tr:first-child { background: linear-gradient(90deg, rgba(230,61,55,.16), transparent 68%); }
.rank-number { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 900; }
.rank-number.top { color: #1d1305; background: var(--gold); border-color: var(--gold); }
.area-cell { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 15px; letter-spacing: -.04em; }
.area-dot { width: 6px; height: 22px; background: var(--red); display: inline-block; }
.weekly-number { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 700; }
.growth { font-weight: 900; font-variant-numeric: tabular-nums; }
.growth.positive { color: var(--green); }
.growth.negative { color: #ff7667; }
.growth.neutral { color: var(--muted); }
.points-badge { color: var(--gold); font-weight: 900; }
.title-badge { display: inline-block; padding: 4px 8px; color: var(--gold); border: 1px solid rgba(233,180,76,.35); font-size: 10px; }
.challenge-rule-badge { margin-left: auto; color: #ff9b8c; border: 1px solid rgba(230,61,55,.35); padding: 6px 9px; font-size: 10px; }
.duel-grid { display: grid; gap: 12px; padding: 14px; }
.duel-card { display: grid; grid-template-columns: 1fr 110px 1fr; min-height: 142px; border: 1px solid var(--line); background: #0c0e11; position: relative; overflow: hidden; }
.duel-card::before { content: attr(data-code); position: absolute; top: 8px; right: 10px; color: var(--dim); font-size: 10px; letter-spacing: .15em; }
.duel-side { padding: 22px 22px 17px; position: relative; }
.duel-side.left { text-align: left; border-right: 1px solid var(--line); }
.duel-side.right { text-align: right; border-left: 1px solid var(--line); }
.duel-card.left-hot .duel-side.left { background: linear-gradient(90deg, rgba(230,61,55,.22), transparent); }
.duel-card.right-hot .duel-side.right { background: linear-gradient(270deg, rgba(230,61,55,.22), transparent); }
.duel-side .side-tag { color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.duel-side .duel-area { margin-top: 7px; font-size: 28px; font-weight: 900; letter-spacing: -.07em; }
.duel-side .duel-volume { color: var(--muted); font-size: 10px; margin-top: 5px; }
.duel-growth { margin-top: 11px; font-size: 23px; font-weight: 900; letter-spacing: -.05em; }
.duel-side.right .duel-growth { text-align: right; }
.score-track { height: 5px; margin-top: 10px; background: rgba(255,255,255,.1); }
.duel-side.right .score-track { display: flex; justify-content: flex-end; }
.score-fill { height: 100%; background: var(--red); box-shadow: 0 0 12px rgba(230,61,55,.65); }
.duel-side.right .score-fill { background: var(--gold); box-shadow: 0 0 12px rgba(233,180,76,.55); }
.side-result { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.duel-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 6px, transparent 6px, transparent 12px); }
.vs-mark { color: var(--red); font-size: 15px; font-weight: 900; font-style: italic; }
.gap-mark { color: var(--gold); font-size: 16px; font-weight: 900; white-space: nowrap; }
.gap-label { color: var(--dim); font-size: 9px; letter-spacing: .12em; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px; }
.compact-section { min-width: 0; }
.compact-section .section-title-row { min-height: 64px; }
.points-table td, .points-table th { padding-left: 12px; padding-right: 12px; }
.points-table td:first-child { text-align: left; font-weight: 800; }
.points-row-highlight { background: rgba(233,180,76,.08); }
.streak { color: var(--gold); font-weight: 800; }
.bonus-list { padding: 8px 16px 4px; }
.bonus-row { display: grid; grid-template-columns: 72px 1fr 78px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.bonus-row:last-child { border-bottom: 0; }
.bonus-area { font-weight: 800; }
.bonus-bar { height: 6px; background: rgba(255,255,255,.08); position: relative; }
.bonus-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); }
.bonus-money { text-align: right; color: var(--gold); font-weight: 900; font-variant-numeric: tabular-nums; }
.bonus-detail { color: var(--dim); font-size: 9px; grid-column: 2 / 4; margin-top: -7px; }
.ops-pool { margin: 10px 16px 16px; padding: 13px 14px; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(100deg, rgba(233,180,76,.13), rgba(233,180,76,.04)); border: 1px solid rgba(233,180,76,.28); }
.ops-pool div { display: grid; gap: 4px; }
.ops-pool span { font-size: 11px; font-weight: 900; }
.ops-pool small { color: var(--muted); font-size: 9px; }
.ops-pool strong { color: var(--gold); font-size: 22px; }
.report-footer { display: flex; justify-content: space-between; color: var(--dim); font-size: 10px; padding: 3px 2px; }
.loading { color: var(--muted); padding: 20px 16px; }
.empty { color: var(--dim); padding: 22px 16px; text-align: center; font-size: 11px; }

@media (max-width: 1120px) {
  .workspace { grid-template-columns: 280px minmax(0, 1fr); gap: 17px; }
  .control-panel { padding-left: 20px; padding-right: 20px; }
  .rule-item { grid-template-columns: 25px 60px 1fr; }
  .duel-card { grid-template-columns: 1fr 92px 1fr; }
}

@media (max-width: 820px) {
  .shell { padding: 15px 14px 28px; }
  .topbar { grid-template-columns: 1fr auto; min-height: 62px; }
  .topbar-title { display: none; }
  .brand-lockup { display: block; }
  .brand-subtitle { margin-top: 5px; }
  .workspace { grid-template-columns: 1fr; }
  .control-panel { position: relative; top: auto; }
  .control-panel::after { top: 30px; right: -12px; font-size: 62px; }
  .lead { max-width: 420px; }
  .leader-strip { grid-template-columns: 1fr; }
  .leader-card { min-height: 88px; }
  .lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .period-chip { display: block; text-align: right; }
  .period-chip strong { display: block; border-left: 0; padding-left: 0; margin-top: 4px; font-size: 10px; }
  .section-title-row { padding-left: 14px; padding-right: 14px; gap: 10px; }
  .section-period { display: none; }
  .duel-card { grid-template-columns: 1fr 66px 1fr; min-height: 160px; }
  .duel-side { padding: 24px 12px 13px; }
  .duel-side .duel-area { font-size: 22px; }
  .duel-growth { font-size: 18px; }
  .gap-mark { font-size: 12px; }
  th, td { padding-left: 10px; padding-right: 10px; }
  .report-footer { display: grid; gap: 7px; }
}

/* Separate raw-data import screen */
.report-link, .report-nav a { color: var(--gold); text-decoration: none; font-size: 11px; letter-spacing: .08em; font-weight: 800; }
.report-link:hover, .report-nav a:hover { color: white; }
.upload-layout { display: grid; grid-template-columns: minmax(330px, .78fr) minmax(0, 1.22fr); gap: 28px; padding-top: 42px; align-items: start; }
.upload-hero { position: relative; padding: 25px 0 12px; }
.upload-hero::before { content: "01"; position: absolute; top: -60px; left: -24px; color: rgba(230,61,55,.08); font-size: 190px; font-weight: 900; line-height: 1; font-style: italic; pointer-events: none; }
.upload-hero h1, .upload-hero .lead, .upload-hero .upload-actions, .upload-hero .drop-zone, .upload-hero .selected-file, .upload-hero button, .upload-hero .upload-status, .upload-hero .rule-stack { position: relative; z-index: 1; }
.upload-hero h1 { font-size: clamp(50px, 6vw, 88px); max-width: 730px; }
.upload-hero h1 em { display: inline-block; color: var(--red); }
.lead.wide { max-width: 680px; margin: 24px 0 28px; font-size: 14px; }
.lead code { color: var(--gold); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.upload-actions { display: flex; align-items: center; gap: 16px; margin-bottom: 17px; }
.upload-actions .template-button { width: 280px; flex: 0 0 auto; }
.template-note { color: var(--muted); font-size: 10px; line-height: 1.5; max-width: 300px; }
.drop-zone.large { min-height: 176px; max-width: 680px; margin: 0 0 10px; }
.selected-file { max-width: 680px; }
.upload-hero .upload-button { max-width: 680px; margin-top: 14px; }
.compact-rules { max-width: 680px; margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; border-top: 1px solid var(--line); }
.compact-rules .rule-item { grid-template-columns: 28px 76px 1fr; }
.preview-panel { min-width: 0; padding: 25px 0 0; }
.preview-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.preview-heading h2 { font-size: clamp(28px, 3.3vw, 46px); }
.preview-heading h2 span { color: var(--red); }
.preview-state { color: var(--gold); font-size: 11px; border: 1px solid rgba(233,180,76,.35); padding: 8px 11px; white-space: nowrap; }
.preview-empty { min-height: 430px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(230,61,55,.06), rgba(16,18,22,.84) 50%); text-align: center; padding: 30px; }
.preview-empty strong { font-size: 15px; }
.preview-empty span { max-width: 330px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.empty-cross { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(230,61,55,.48); color: var(--red); font-size: 29px; font-weight: 200; transform: rotate(45deg); }
.empty-cross::first-letter { transform: rotate(-45deg); }
.hidden { display: none !important; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 13px; }
.summary-card { min-height: 88px; display: flex; flex-direction: column; justify-content: space-between; padding: 13px 14px; border: 1px solid var(--line); background: rgba(16,18,22,.82); }
.summary-card span { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.summary-card strong { font-size: 25px; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.summary-card.hot { border-color: rgba(230,61,55,.55); background: linear-gradient(145deg, rgba(230,61,55,.18), rgba(16,18,22,.8)); }
.summary-card.hot strong { color: #ff846d; }
.summary-card.warn { border-color: rgba(233,180,76,.42); }
.summary-card.warn strong { color: var(--gold); }
.validation-card { border: 1px solid var(--line); background: rgba(16,18,22,.84); margin-bottom: 13px; }
.validation-title { display: flex; align-items: baseline; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.validation-title span { color: var(--red); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.validation-title strong { font-size: 13px; }
.area-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.area-preview { position: relative; overflow: hidden; display: flex; align-items: end; justify-content: space-between; min-height: 66px; padding: 12px; background: #0b0d10; border-left: 3px solid var(--red); }
.area-preview span { color: var(--muted); font-size: 11px; }
.area-preview strong { color: var(--text); font-size: 22px; font-variant-numeric: tabular-nums; }
.area-preview i { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.warning-card { min-height: 90px; }
.validation-list { padding: 11px 15px 13px; display: grid; gap: 7px; }
.validation-item, .validation-ok { color: var(--muted); font-size: 10px; line-height: 1.5; }
.validation-item span, .validation-ok span { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 7px; color: #1c1608; background: var(--gold); font-weight: 900; }
.validation-ok { color: var(--green); }
.validation-ok span { color: #0c2318; background: var(--green); }
.confirm-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 16px; border: 1px solid rgba(230,61,55,.4); background: linear-gradient(100deg, rgba(230,61,55,.16), rgba(16,18,22,.92)); }
.confirm-row div { display: grid; gap: 5px; }
.confirm-row strong { font-size: 12px; }
.confirm-row small { color: var(--muted); font-size: 10px; }
.confirm-button { min-height: 43px; padding: 0 16px; border: 0; background: var(--red); color: white; font-size: 12px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.confirm-button:hover:not(:disabled) { background: #ff5148; box-shadow: 0 0 22px rgba(230,61,55,.38); }
.confirm-button:disabled { background: #3e2226; color: #80636a; cursor: not-allowed; }
.confirm-button span { margin-left: 16px; font-size: 17px; }
.upload-footer { margin-top: 34px; }
.upload-footer a { color: var(--gold); text-decoration: none; }

/* Report-only screen */
.report-shell { padding-top: 22px; }
.report-nav { justify-self: end; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; }
.report-nav a { border-left: 1px solid var(--line); padding-left: 12px; }
.demo-ribbon { margin-top: 16px; padding: 10px 14px; color: #241805; background: var(--gold); border-left: 5px solid var(--red); font-size: 11px; font-weight: 900; letter-spacing: .1em; box-shadow: 0 0 22px rgba(233,180,76,.18); }
.live-dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; box-shadow: 0 0 12px var(--red); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.72); } }
.report-only { padding-top: 30px; }
.report-only > .report-heading { margin-bottom: 20px; }
.report-only > .report-heading h1 { font-size: clamp(42px, 5vw, 72px); letter-spacing: -.07em; }
.report-only > .report-heading h1 em { color: var(--red); font-style: normal; }
.report-only .leader-strip { margin-bottom: 20px; }
.report-only .battle-section { border-color: rgba(230,61,55,.24); }
.metric-label { display: block; color: var(--dim); font-size: 8px; font-weight: 500; margin-top: 3px; }
.battle-table tbody tr.row-champion { background: linear-gradient(90deg, rgba(230,61,55,.24), rgba(230,61,55,.04) 66%, transparent); box-shadow: inset 4px 0 0 var(--red); }
.battle-table tbody tr.row-champion .area-cell { font-size: 17px; }
.draw-hot .duel-center { background-color: rgba(233,180,76,.05); }

@media (max-width: 980px) {
  .upload-layout { grid-template-columns: 1fr; }
  .upload-hero { padding-top: 0; }
  .preview-panel { padding-top: 0; }
  .preview-empty { min-height: 260px; }
}

@media (max-width: 650px) {
  .upload-actions { display: block; }
  .upload-actions .template-button { width: 100%; }
  .template-note { margin-top: 9px; }
  .compact-rules { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .area-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .confirm-row { display: grid; }
  .confirm-button { width: 100%; }
  .report-nav { gap: 7px; }
  .report-nav span:not(.live-dot) { display: none; }
}
