:root {
  --ink: #0b0a09;
  --paper: #f4eedf;
  --paper-dark: #d8cfbd;
  --red: #e62921;
  --green: #168447;
  --muted: #6d675d;
  --line: 2px solid var(--ink);
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 300px;
  background-color: var(--paper);
}

.matchup-page { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100dvh; overflow: hidden; }
.matchup-page main, .matchup-page #matchup { min-height: 0; }
.matchup-page #matchup { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.matchup-page .content-state { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.matchup-page .site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: 6px; }
.matchup-page .site-footer > :last-child { justify-self: end; }
.footer-upload { padding: 8px 13px; border-color: var(--paper); box-shadow: none; text-decoration: none; }

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 4px solid #1778ff;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.masthead {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 84px;
  border-bottom: var(--line);
  background: var(--paper);
}

.site-title { display: flex; margin: 0; }

.wordmark {
  display: flex;
  align-items: center;
  padding: 8px 24px;
  text-decoration: none;
  text-transform: uppercase;
  font: 900 clamp(2.8rem, 5vw, 4.8rem)/.8 Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  letter-spacing: -.035em;
}

.auth-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  max-width: 52%;
  padding: 14px 22px;
  border-left: var(--line);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.auth-controls a { text-underline-offset: 4px; }
.auth-controls .login-link { padding: 12px 14px; background: var(--ink); color: var(--paper); text-decoration: none; }
.identity { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity b { color: var(--red); }
.auth-loading { color: var(--muted); }

.editorial-head {
  display: grid;
  grid-template-columns: minmax(120px, .45fr) minmax(340px, 1.5fr) minmax(200px, .75fr);
  align-items: end;
  gap: 32px;
  padding: clamp(36px, 6vw, 88px) max(22px, 4vw) 34px;
  border-bottom: var(--line);
}

.editorial-head h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  font-size: clamp(4.4rem, 12vw, 10.5rem);
  font-weight: 900;
  line-height: .77;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.compact-head h1 { font-size: clamp(4rem, 10vw, 8rem); }
.versus-head { display: flex; align-items: center; justify-content: center; padding: 7px max(14px, 2vw); }
.game-toolbar { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; }
.mode-switch { display: flex; border: 1px solid var(--ink); }
.mode-button { border: 0; padding: 7px 10px; background: transparent; cursor: pointer; font-size: .66rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.mode-button.active { background: var(--ink); color: var(--paper); }
.game-progress { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.game-progress.endless { display: block; }
.progress-bubble { display: grid; width: 25px; height: 25px; place-items: center; border: 2px solid var(--paper-dark); border-radius: 50%; background: transparent; color: var(--muted); font-size: .76rem; line-height: 1; }
.progress-bubble.current { border-color: var(--ink); background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.progress-bubble.correct { border-color: var(--green); background: var(--green); color: white; }
.progress-bubble.wrong { border-color: var(--red); background: var(--red); color: white; }
.editorial-head > p:last-child { max-width: 30ch; margin: 0; font: italic 1.05rem/1.45 Georgia, serif; }
.edition { margin: 0; font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

.content-state { min-height: 320px; }
.state-message { padding: 60px max(22px, 4vw); border-bottom: var(--line); font: italic 1.2rem Georgia, serif; }
.state-message.error { color: var(--red); }
.state-message button { margin-left: 14px; }

.text-button, .small-button { border: 0; padding: 8px 0; background: transparent; cursor: pointer; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.small-button { padding: 8px 12px; border: 1px solid var(--ink); text-decoration: none; }
.small-button.danger { border-color: var(--red); color: var(--red); }

.versus-grid { display: grid; grid-template-columns: 1fr 1fr; height: 100%; min-height: 0; border-bottom: var(--line); }
.versus-choice { position: relative; min-width: 0; min-height: 0; border-right: var(--line); }
.versus-choice:last-child { border-right: 0; }
.versus-stage { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; background: var(--ink); }
.versus-image-button { position: relative; width: 100%; height: 100%; border: 0; padding: 14px; background: var(--ink); cursor: pointer; }
.versus-image-button img { width: 100%; height: 100%; object-fit: contain; }
.versus-image-button.hover-preview::after { content: ""; position: absolute; inset: 14px; border: clamp(5px, .7vw, 10px) solid var(--red); pointer-events: none; }
.versus-overlay { position: absolute; z-index: 2; inset: 14px; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; pointer-events: none; }
.versus-report { border: 0; padding: 8px 11px; background: rgba(244, 238, 223, .92); color: var(--ink); cursor: pointer; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; pointer-events: auto; }
.versus-choice:first-child .versus-report { align-self: flex-start; }
.versus-details { max-width: min(290px, calc(100% - 14px)); padding: 12px 14px; background: rgba(11, 10, 9, .84); color: white; backdrop-filter: blur(5px); }
.versus-details h2 { max-width: 18ch; margin: 0 0 8px; overflow: hidden; font: 900 clamp(1.1rem, 2.4vw, 2.2rem)/.9 "Arial Narrow", Arial, sans-serif; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.pending-pick .versus-stage { box-shadow: inset 0 0 0 8px #f4c430; }
.revealed .versus-image-button { cursor: default; }
.revealed .versus-image-button.hover-preview::after { content: none; }
.crowd-winner .versus-stage { box-shadow: inset 0 0 0 8px var(--green); }
.crowd-other .versus-stage { box-shadow: inset 0 0 0 8px var(--red); filter: saturate(.65) brightness(.76); }
.crowd-tie .versus-stage { box-shadow: inset 0 0 0 8px #f4c430; }
.your-pick .versus-stage::after { content: "YOUR PICK"; position: absolute; z-index: 3; top: 14px; left: 50%; padding: 7px 10px; transform: translateX(-50%); background: #f4c430; color: var(--ink); font-size: .65rem; font-weight: 900; letter-spacing: .1em; }
.prediction-stats { display: grid; gap: 2px; margin-top: 6px; text-transform: uppercase; }
.prediction-stats strong { font: 900 clamp(1.5rem, 4vw, 3rem)/.85 Impact, sans-serif; }
.prediction-stats span { font-size: .65rem; font-weight: 800; }
.round-result { position: relative; display: grid; grid-template-columns: auto minmax(120px, 1fr) auto; align-items: center; gap: 16px; min-height: 86px; padding: 10px max(18px, 3vw) 14px; border-top: var(--line); background: var(--paper); overflow: hidden; }
.round-result-title { font: 900 clamp(1.5rem, 4vw, 2.7rem)/.85 Impact, sans-serif; text-transform: uppercase; }
.round-result-copy { font: italic .9rem/1.3 Georgia, serif; }
.round-result-source { color: var(--muted); font-size: .6rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.round-skip { border: var(--line); padding: 9px 12px; background: var(--ink); color: white; cursor: pointer; font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.round-countdown { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: var(--red); transform-origin: left; animation: round-countdown 3s linear forwards; }
@keyframes round-countdown { to { transform: scaleX(0); } }
.last-versus { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 10px; min-height: 86px; padding: 8px max(14px, 2vw); border-top: var(--line); background: var(--paper); animation: last-versus-arrive .18s ease-out; }
.last-versus-label { align-self: center; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.last-versus-card { display: grid; min-width: 0; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px; border: 3px solid var(--ink); background: white; overflow: hidden; }
.last-versus-card img { width: 64px; height: 64px; object-fit: cover; background: var(--ink); }
.last-versus-card.selected { border-color: var(--green); background: #e4f3e8; }
.last-versus-card.not-selected { opacity: .62; filter: grayscale(.65); }
.last-versus-summary { display: grid; min-width: 0; gap: 2px; padding-right: 8px; font-size: .68rem; text-transform: uppercase; }
.last-versus-summary strong { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }

@keyframes last-versus-arrive {
  from { opacity: 0; transform: translateY(8px); }
}
.game-recap { height: 100%; padding: clamp(24px, 5vw, 56px); overflow: auto; text-align: center; }
.game-recap h2 { margin: 10px 0; font: 900 clamp(4rem, 12vw, 9rem)/.8 Impact, sans-serif; }
.game-recap > p { margin: 0 0 22px; font: italic 1rem Georgia, serif; }
.recap-results { display: grid; max-width: 760px; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 auto 24px; }
.recap-result { display: grid; grid-template-columns: auto 42px minmax(0, 1fr); align-items: center; gap: 5px; border: var(--line); padding: 5px; text-align: left; }
.recap-result img { width: 42px; height: 42px; object-fit: cover; }
.recap-result.correct, .recap-result.tie { border-color: var(--green); background: #e4f3e8; }
.recap-result.wrong { border-color: var(--red); }
.recap-result strong { font-size: .62rem; text-transform: uppercase; }
.recap-actions { display: flex; justify-content: center; gap: 18px; }

.action-button {
  border: var(--line);
  padding: 15px 22px;
  background: var(--red);
  color: white;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--ink);
}
.action-button:hover { background: var(--ink); }
.action-button:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.action-button:disabled { cursor: not-allowed; filter: grayscale(1); opacity: .55; }

.auth-note { padding: 18px max(22px, 4vw); border-bottom: var(--line); background: var(--red); color: white; font-weight: 800; }
.auth-note:empty { display: none; }
.auth-note a { font-weight: 900; }
.upload-page { padding: clamp(32px, 6vw, 72px) max(20px, 4vw) 0; }
.upload-panel { max-width: 900px; margin: 0 auto; }
.upload-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.upload-heading h1 { margin: 0; font: 900 clamp(2.8rem, 5vw, 4.25rem)/.85 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; letter-spacing: -.025em; text-transform: uppercase; }
.upload-heading p { max-width: 20ch; margin: 0; color: var(--muted); font: italic 1rem/1.4 Georgia, serif; }
.upload-form { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr); border: var(--line); }
.file-drop { position: relative; display: grid; min-height: 250px; align-content: center; justify-items: center; gap: 10px; padding: 28px; border-right: var(--line); cursor: pointer; background: var(--ink); color: var(--paper); text-align: center; transition: background-color 120ms ease, color 120ms ease; }
.file-drop strong { font: 900 clamp(2rem, 5vw, 3.8rem)/.9 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; text-transform: uppercase; }
.file-hint { color: var(--paper-dark); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop:focus-within { outline: 4px solid #1778ff; outline-offset: -7px; }
.file-preview { position: absolute; z-index: 1; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; background: var(--ink); pointer-events: none; }
.file-preview[hidden] { display: none; }
.file-drop.has-preview .file-prompt, .file-drop.has-preview .file-hint { visibility: hidden; }
.upload-controls { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.text-field { width: 100%; padding: 24px 28px; border-bottom: var(--line); color: var(--muted); }
.text-field > span { display: block; margin-bottom: 8px; font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.text-field small { font-weight: 400; }
.text-field input { width: 100%; border: 0; border-bottom: 1px solid var(--muted); padding: 8px 0; background: transparent; color: var(--ink); font: .95rem Georgia, serif; }
.upload-controls > .action-button { margin: 28px; }
.form-status { min-height: 1.4em; margin: 0 28px 28px; font-weight: 800; }
.form-status.error { color: var(--red); }
body.file-drag-active::before { content: ""; position: fixed; z-index: 90; inset: 12px; border: 8px solid var(--red); background: rgba(255, 248, 232, .92); pointer-events: none; }
body.file-drag-active::after { content: "DROP IMAGE TO ADD"; position: fixed; z-index: 91; inset: 0; display: grid; place-items: center; color: var(--ink); font: 900 clamp(2.8rem, 9vw, 8rem)/.82 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; letter-spacing: -.025em; text-align: center; text-transform: uppercase; pointer-events: none; }
body.file-drag-active .file-drop { background: var(--red); color: var(--paper); }

.owner-photos { max-width: 1100px; margin: clamp(52px, 8vw, 96px) auto 0; border-top: 8px solid var(--ink); }
.owner-heading { padding: 24px 0; border-bottom: var(--line); }
.owner-heading h2 { margin: 0; font: 900 clamp(2rem, 5vw, 4rem)/.9 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; text-transform: uppercase; }
.owner-photos .content-state { min-height: 0; }
.owner-photos .state-message { padding: 28px 0 48px; border-bottom: 0; }
.mine-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: var(--line); }
.mine-item { min-width: 0; padding: 12px; border-right: var(--line); border-bottom: var(--line); }
.mine-item:nth-child(3n) { border-right: 0; }
.mine-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--ink); }
.mine-item form { display: flex; margin-top: 12px; border-bottom: 1px solid var(--ink); }
.mine-item input { min-width: 0; flex: 1; border: 0; padding: 10px 4px; background: transparent; font-weight: 800; }
.mine-item .item-stats { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.mine-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.mine-pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: var(--line); padding: 18px 0; }
.pagination-summary, .pagination-position { font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.pagination-controls { display: flex; align-items: center; gap: 12px; }
.pagination-controls .small-button:disabled { opacity: .35; cursor: default; }

dialog { border: var(--line); padding: 0; background: var(--paper); color: var(--ink); box-shadow: 12px 12px 0 var(--red); }
dialog::backdrop { background: rgba(11, 10, 9, .88); }
.report-dialog h2 { margin: 0; font: 900 clamp(3.5rem, 10vw, 6.5rem)/.8 Impact, sans-serif; text-transform: uppercase; }
.report-dialog { width: min(580px, calc(100% - 36px)); }
.report-dialog form { display: grid; gap: 12px; padding: 28px; }
.report-guidance { margin: 0 0 8px; font: italic .95rem/1.45 Georgia, serif; }
.report-dialog label { margin-top: 10px; font-weight: 900; text-transform: uppercase; }
.report-dialog select, .report-dialog textarea { width: 100%; border: var(--line); border-radius: 0; padding: 12px; background: white; }
.dialog-rule { display: flex; align-items: center; justify-content: space-between; border-bottom: var(--line); padding-bottom: 12px; }
.icon-button { border: 0; padding: 0 8px; background: transparent; cursor: pointer; font-size: 2rem; line-height: 1; }

.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 30px max(22px, 4vw); background: var(--ink); color: var(--paper); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.moderation-list { display: grid; gap: 0; }
.moderation-card { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr); border-bottom: var(--line); }
.moderation-card > img { width: 100%; height: min(560px, 60vh); padding: 14px; background: var(--ink); object-fit: contain; }
.moderation-body { padding: clamp(24px, 4vw, 52px); }
.moderation-body h2 { margin: 14px 0; font: 900 clamp(2rem, 5vw, 4rem)/.9 "Arial Narrow", Arial, sans-serif; text-transform: uppercase; }
.moderation-meta { color: var(--muted); font-size: .75rem; }
.moderation-body textarea { width: 100%; margin-top: 20px; border: var(--line); padding: 12px; background: white; }
.moderation-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.curator-warning { max-width: 760px; margin: 0 0 1.5rem; padding: 1rem 1.1rem; border-left: 4px solid var(--red); background: rgba(188, 39, 49, .09); line-height: 1.55; }
.curator-card .moderation-body > input[type="text"] { width: 100%; box-sizing: border-box; margin-top: 1rem; }
.curator-check { display: flex; gap: .65rem; align-items: flex-start; margin-top: .7rem; font-size: .88rem; line-height: 1.35; }
.curator-check input { flex: 0 0 auto; margin-top: .2rem; }
.danger-action { background: var(--ink); }

.leaderboard-main { max-width: 1100px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) max(20px, 4vw); }
.leaderboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.leaderboard-heading h1 { margin: 0; font: 900 clamp(2.8rem, 6vw, 5rem)/.85 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; text-transform: uppercase; }
.leaderboard-heading p { margin: 0; color: var(--muted); font: italic 1rem/1.4 Georgia, serif; }
.leaderboard-tabs { display: flex; border: var(--line); margin-bottom: 24px; }
.leaderboard-tabs button { flex: 1; border: 0; border-right: var(--line); padding: 13px 16px; background: transparent; cursor: pointer; font-size: .75rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.leaderboard-tabs button:last-child { border-right: 0; }
.leaderboard-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.leaderboard-main > .state-message { padding: 28px 0; border: 0; }
.leaderboard-list { border: var(--line); }
.leaderboard-list.tiered { border: 0; }
.leaderboard-entry { display: grid; min-height: 240px; grid-template-columns: 72px minmax(0, 1fr) 190px; align-items: stretch; border-bottom: var(--line); }
.leaderboard-entry:last-child { border-bottom: 0; }
.leaderboard-rank { display: grid; min-width: 0; place-items: center; border-right: var(--line); color: var(--red); font: 900 2.25rem/1 Impact, sans-serif; }
.leaderboard-entry img { width: 100%; height: 240px; padding: 10px; background: var(--ink); object-fit: contain; }
.leaderboard-record { display: grid; align-content: center; gap: 3px; padding: 20px; }
.leaderboard-record strong { font: 900 clamp(2rem, 4vw, 3rem)/.9 Impact, sans-serif; }
.leaderboard-record span { font-weight: 900; text-transform: uppercase; }
.tier-list { border-top: var(--line); }
.tier-group { --tier-color: var(--red); display: grid; grid-template-columns: 88px minmax(0, 1fr); border: var(--line); border-top: 0; }
.tier-heading { display: grid; min-height: 176px; place-items: center; margin: 0; border-right: var(--line); background: var(--tier-color); color: var(--ink); font: 900 3.25rem/1 Impact, sans-serif; }
.tier-s { --tier-color: #ed5d58; }
.tier-a { --tier-color: #ef9852; }
.tier-b { --tier-color: #e8c75d; }
.tier-c { --tier-color: #91bd6e; }
.tier-d { --tier-color: #78a9c9; }
.tier-entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 2px; padding: 2px; background: var(--ink); }
.tier-entry { min-width: 0; background: var(--paper); }
.tier-entry img { display: block; width: 100%; height: 132px; background: var(--ink); object-fit: contain; }
.tier-record { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 9px; }
.tier-record strong { font: 900 1.15rem/1 Impact, sans-serif; }
.tier-record span { font-size: .63rem; font-weight: 900; text-transform: uppercase; }
.ranking-note { margin: 16px 0 0; color: var(--muted); font-size: .75rem; }

@media (max-width: 760px) {
  .masthead { display: block; }
  .site-title { justify-content: center; }
  .wordmark { min-height: 68px; justify-content: center; font-size: 3rem; }
  .auth-controls { max-width: none; min-height: 54px; flex-wrap: wrap; justify-content: center; border-top: var(--line); border-left: 0; padding: 10px 14px; font-size: .68rem; }
  .editorial-head { display: block; padding-top: 50px; }
  .editorial-head h1 { margin: 28px 0; font-size: clamp(4rem, 23vw, 7rem); }
  .versus-head { padding-block: 7px; }
  .editorial-head > p:last-child { margin-left: auto; }
  .upload-form { grid-template-columns: 1fr; }
  .moderation-card { grid-template-columns: 1fr; }
  .leaderboard-heading { display: block; }
  .leaderboard-heading p { margin-top: 10px; }
  .leaderboard-tabs button { padding: 11px 7px; font-size: .64rem; letter-spacing: .03em; }
  .tier-group { grid-template-columns: 56px minmax(0, 1fr); }
  .tier-heading { min-height: 142px; font-size: 2.4rem; }
  .tier-entries { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); }
  .tier-entry img { height: 104px; }
  .tier-record { display: grid; gap: 3px; padding: 7px; }
  .leaderboard-entry { min-height: 0; grid-template-columns: 52px minmax(0, 1fr); }
  .leaderboard-rank { grid-row: 1 / span 2; font-size: 2rem; }
  .leaderboard-entry img { height: 220px; }
  .leaderboard-record { grid-column: 2; padding: 14px 16px 16px; }
  .leaderboard-record strong { font-size: 1.7rem; }
  .leaderboard-record span { font-size: .7rem; }
  .file-drop { min-height: 220px; border-right: 0; border-bottom: var(--line); }
  .mine-grid { grid-template-columns: 1fr 1fr; }
  .mine-item:nth-child(3n) { border-right: var(--line); }
  .mine-item:nth-child(2n) { border-right: 0; }
  .mine-pagination { align-items: stretch; flex-direction: column; }
  .pagination-controls { justify-content: space-between; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 460px) {
  .upload-page { padding-inline: 14px; }
  .upload-heading { display: block; }
  .upload-heading p { margin-top: 10px; }
  .upload-heading h1 { font-size: 2.8rem; }
  .upload-controls > .action-button { width: calc(100% - 40px); margin: 20px; }
  .owner-photos { margin-top: 52px; }
  .matchup-page .versus-head { padding: 5px 7px; }
  .game-toolbar { gap: 6px; }
  .mode-button { padding: 6px; font-size: .54rem; }
  .game-progress { gap: 3px; font-size: .58rem; }
  .progress-bubble { width: 20px; height: 20px; border-width: 1.5px; font-size: .62rem; }
  .progress-bubble.current { box-shadow: 0 0 0 1px var(--paper), 0 0 0 2px var(--ink); }
  .matchup-page .site-footer { gap: 7px; padding: 5px 9px; }
  .matchup-page .site-footer > span, .matchup-page .site-footer > :last-child { font-size: .58rem; }
  .footer-upload { padding: 7px 9px; font-size: .58rem; }
  .versus-image-button { padding: 7px; }
  .versus-image-button.hover-preview::after { inset: 7px; border-width: 5px; }
  .versus-overlay { inset: 7px; }
  .versus-report { padding: 6px 7px; font-size: .6rem; }
  .versus-details { max-width: calc(100% - 7px); padding: 8px; }
  .versus-details h2 { font-size: 1rem; }
  .your-pick .versus-stage::after { top: 7px; padding: 5px 6px; font-size: .52rem; }
  .prediction-stats strong { font-size: 1.35rem; }
  .prediction-stats span { font-size: .52rem; }
  .round-result { grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; min-height: 80px; padding: 7px 7px 11px; }
  .round-result-title { font-size: 1.25rem; }
  .round-result-copy { font-size: .66rem; }
  .round-result-source { font-size: .46rem; }
  .round-skip { padding: 7px; font-size: .52rem; }
  .last-versus { gap: 5px; min-height: 80px; padding: 6px; }
  .last-versus-label { font-size: .55rem; }
  .last-versus-card { grid-template-columns: 42px minmax(0, 1fr); gap: 5px; border-width: 2px; }
  .last-versus-card img { width: 42px; height: 58px; }
  .last-versus-summary { gap: 1px; padding-right: 3px; font-size: .56rem; }
  .last-versus-summary strong { font-size: .64rem; }
  .game-recap { padding: 20px 10px; }
  .recap-results { grid-template-columns: repeat(2, 1fr); }
  .mine-grid { grid-template-columns: 1fr; }
  .mine-item, .mine-item:nth-child(3n) { border-right: 0; }
  .mine-actions { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
