/* The full decision sits behind Details; the game keeps its compact summary. */
.game-decision { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: 13px; }
.decision-summary { display: inline-flex; align-items: center; gap: 9px; }
.decision-summary strong { font-weight: 500; }
.decision-summary svg { width: 18px; height: 18px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.decision-details { border: 0; padding: 4px 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.decision-details:hover { text-decoration: underline; }
.decision-contest { margin-left: auto; padding: 4px 0; color: var(--muted); }
.decision-dialog { width: min(560px, calc(100% - 32px)); }
.decision-eyebrow { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.decision-dialog h2 { font-size: 22px; }
.decision-game, .decision-date { color: var(--muted); font-size: 12px; }
.decision-dialog p { line-height: 1.65; }
.decision-explanation { margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.decision-explanation h3 { margin: 0 0 8px; font-size: 14px; }
.decision-explanation p { margin: 8px 0 0; }
.decision-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; font-size: 13px; }
.decision-footer span { color: var(--muted); }
.contest-page { max-width: 660px; margin: 12px auto; }
.contest-form { margin-top: 24px; }
.contest-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.contest-form textarea { display: block; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: var(--panel); color: var(--ink); resize: vertical; font: inherit; }
.contest-form .muted { font-size: 13px; }
.contest-error { color: var(--warn); }
.contest-text { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.contest-response { border-left: 3px solid var(--accent); }
.contest-admin-link { display: flex; flex-wrap: wrap; gap: 12px; }
.adjustment-event { white-space: nowrap; }
.adjustment-event a { margin-left: 6px; }
/* The longer event label uses the compact history columns on tablets as well as phones. */
@media (max-width: 900px) {
  .history:has(.rating-adjustment) .hide-s { display: none; }
  .history:has(.rating-adjustment) .show-s { display: block; }
  .adjustment-event { display: block; white-space: normal; }
  .adjustment-label { display: block; white-space: nowrap; }
  .adjustment-event a { display: block; margin-left: 0; font-size: 11px; line-height: 1.5; white-space: nowrap; }
}
@media (max-width: 640px) {
  .game-decision { gap: 2px 12px; padding: 8px 12px; }
  .decision-contest { flex-basis: 100%; margin-left: 27px; font-size: 12px; }
  .decision-dialog h2 { font-size: 20px; }
  .contest-queue { display: block; overflow-x: auto; }
}
@media (max-width: 360px) {
  .history:has(.rating-adjustment) td { padding-left: 2px; padding-right: 2px; font-size: 12px; }
  .history:has(.rating-adjustment) th { padding-left: 2px; padding-right: 2px; font-size: 10px; }
}

/* Keep the recorded result in its original row; the mark describes the finding, not a new placement. */
.foul-result .place, .foul-result .position, .foul-result .verdict-bar { color: var(--muted); }
.foul-result .verdict-bar span { background: var(--muted); }
.foul-result s { text-decoration-thickness: 1.5px; }
.history tr.foul-result { position: relative; }
.history tr.foul-result::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--muted); pointer-events: none; }
.foul-result .cup { filter: grayscale(1); }
.fair-play-flag { color: var(--warn); margin-left: 5px; }
.player-head .fair-play-flag { display: inline-block; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; line-height: 1; vertical-align: middle; text-decoration: none; cursor: pointer; }
.fair-play-case-games { padding-left: 20px; margin-bottom: 0; }
.fair-play-case-games li + li { margin-top: 6px; }
.case-evidence small { display: block; color: var(--muted); font-size: 12px; }
.case-evidence td { white-space: normal; }
.prepared-case { max-width: 960px; }
.player-tabs { max-width: 100%; overflow-x: auto; box-sizing: border-box; }
.rw-reported-badge { font-size: 11px; font-weight: 600; color: var(--accent); }
.rw-related-cases a { display: inline-block; margin-right: 12px; }
