/* Minigolfers League — single stylesheet.
   Visual targets per spec §13. */

body {
  background-color: #000;
  background-image: url('/img/bg-tile.jpg');
  background-repeat: repeat;
  background-size: auto;
  background-position: 0 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

a { color: #fff; text-decoration: none; }
a:hover { color: #ffff00; }

/* ============================================================
   Sidebar — spec §13. Section headers + bulleted nav with ► prefix,
   all-caps links, yellow hover. Logout is a POST form styled as a
   sidebar link so it visually matches the other items.
   ============================================================ */

#sidebar {
  width: 180px;
  padding: 8px 12px 8px 8px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
  background-color: #000;
  background-image: url('/img/bg-tile.jpg');
  background-repeat: repeat;
  border-right: 2px solid #555;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Sidebar "Links" block pinned to the bottom of the sidebar via flex
   margin-top: auto, with breathing room beneath so it isn't flush
   against the viewport edge. Requires #sidebar { display: flex;
   flex-direction: column }. */
.sidebar-bottom { margin-top: auto; padding-bottom: 30px; }

/* Pass 23 locale switcher — small, neutral block at the top of #sidebar
   above the Getting Started section. Active locale renders as bold
   plain text; the others are inline links separated by " | ". */
.locale-switcher {
  font-size: 11px;
  margin: 0 0 10px 0;
  color: #ccc;
}
.locale-switcher .locale-current { color: #fff; text-decoration: underline; }
.locale-switcher .locale-link { color: #88aaff; text-decoration: none; }
.locale-switcher .locale-link:hover { text-decoration: underline; }
.locale-switcher .locale-sep { color: #555; }

#sidebar .section-title {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  margin: 12px 0 4px 0;
}

#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 4px 0;
}

#sidebar li {
  font-size: 11px;
  padding: 1px 0;
}

#sidebar li::before {
  content: "►";
  color: #ffcc00;
  font-size: 8px;
  margin-right: 4px;
}

#sidebar a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

#sidebar a:hover {
  color: #ffff00;
  text-decoration: none;
}

/* The logout button is a POST form rendered to match the link styling. */
.sidebar-logout-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.sidebar-logout-form button {
  background: none;
  border: none;
  color: #fff;
  font: inherit;
  font-size: 11px;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.sidebar-logout-form button:hover {
  color: #ffff00;
}

.content {
  margin-left: 210px;
  padding: 16px;
}

h1 {
  font-size: 20px;
  margin: 0 0 12px;
  text-shadow: 1px 1px 2px #000;
}

/* ============================================================
   Tables — canonical .league-table, with existing class names
   tagging along so future tabular content can opt in by adding
   .league-table without touching any view. Spec §13 colors.
   ============================================================ */

table.league-table,
table.standings,
table.profile-stats,
table.profile-recent,
table.profile-h2h,
table.profile-top-table,
table.report-preview,
table.hof-table {
  background: #000;
  border: 2px solid #777;
  color: #fff;
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 12px;
}

table.league-table th,
table.standings thead th,
table.profile-stats th,
table.profile-recent thead th,
table.profile-h2h thead th,
table.profile-top-table thead th,
table.report-preview th,
table.hof-table thead th {
  background: #5a1a1a;
  color: #fff;
  font-weight: bold;
  text-align: left;
  padding: 4px 8px;
  border: 2px solid #888;
  font-size: 12px;
}

table.league-table th a,
table.standings thead th a {
  color: #fff;
  text-decoration: none;
}

/* Pass 22: clickable usernames in table body cells. Inherit the cell's
   text color (so suspended/cancelled-row tints carry through) and use
   underline-on-hover instead of the global yellow-color hover. */
table.league-table tbody a:not(.btn-default):not(.btn-danger),
table.standings tbody a:not(.btn-default):not(.btn-danger),
table.profile-recent tbody a:not(.btn-default):not(.btn-danger),
table.profile-h2h tbody a:not(.btn-default):not(.btn-danger),
table.profile-top-table tbody a:not(.btn-default):not(.btn-danger),
table.hof-table tbody a:not(.btn-default):not(.btn-danger) {
  color: inherit;
  text-decoration: none;
}
table.league-table tbody a:not(.btn-default):not(.btn-danger):hover,
table.standings tbody a:not(.btn-default):not(.btn-danger):hover,
table.profile-recent tbody a:not(.btn-default):not(.btn-danger):hover,
table.profile-h2h tbody a:not(.btn-default):not(.btn-danger):hover,
table.profile-top-table tbody a:not(.btn-default):not(.btn-danger):hover,
table.hof-table tbody a:not(.btn-default):not(.btn-danger):hover {
  color: inherit;
  text-decoration: underline;
}

table.league-table th a:hover,
table.standings thead th a:hover {
  color: #ffff00;
}

table.league-table td,
table.standings tbody td,
table.profile-stats td,
table.profile-recent tbody td,
table.profile-h2h tbody td,
table.profile-top-table tbody td,
table.report-preview td,
table.hof-table tbody td {
  background: #000;
  padding: 3px 8px;
  border: 2px solid #777;
  font-size: 12px;
}

/* No striping — the original relies on the gray grid for structure,
   not row-color contrast. Keep even rows the same as odd. */
table.league-table tbody tr:nth-child(even) td,
table.standings tbody tr:nth-child(even) td,
table.profile-recent tbody tr:nth-child(even) td,
table.profile-h2h tbody tr:nth-child(even) td,
table.hof-table tbody tr:nth-child(even) td {
  background: #000;
}

/* Column-stack the profile Stats table with the Recent Matches table
   directly below: column 1 (maroon labels in Stats / Date in Recent)
   and column 2 (values in Stats / Opponent in Recent) share fixed
   widths so the visible vertical lines align between the two grids.
   Both tables already render at width:100% inside the same .content
   container, so locking column widths is enough — no parent shim. */
table.profile-stats th,
table.profile-recent thead th:first-child,
table.profile-recent tbody td:first-child {
  width: 200px;
}
table.profile-stats td,
table.profile-recent thead th:nth-child(2),
table.profile-recent tbody td:nth-child(2) {
  width: 240px;
}

table.standings .empty {
  text-align: center;
  font-style: italic;
  color: #888;
  padding: 20px;
}

/* Standings column sizing + accent colors. The Name column flexes to
   absorb leftover width; everything else is sized to its content. */
table.standings { table-layout: auto; }

table.standings .col-rank-num,
table.standings .col-country,
table.standings .col-winrate,
table.standings .col-days-idle {
  width: 1%;
  white-space: nowrap;
}

/* Grouped section columns — comfortable padding so the numbers don't
   crowd the borders. Centered to align with the centered subheaders. */
table.standings .col-highest-rank,
table.standings .col-highest-skill,
table.standings .col-best-streak,
table.standings .col-weekly-wins,
table.standings .col-weekly-losses,
table.standings .col-weekly-streak {
  min-width: 55px;
  white-space: nowrap;
  text-align: center;
  padding: 4px 8px;
}

/* Header row 1 spacer cells. They sit above the 9 maroon column labels
   (which live in row 2, directly above the data) and exist only to keep
   column counts aligned with the colspan="3" group headers ("Highest",
   "Weekly best") on the same row. Visually invisible — transparent bg,
   no border/padding — so row 1 reads as just the green/blue group
   titles, and the maroon labels sit flush against the data rows. */
table.standings thead th.header-spacer {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

table.standings .col-country {
  text-align: center;
  padding: 2px 4px;
}

table.standings .col-name {
  width: auto;
}

/* Section colors — applied via .group-highest / .group-weekly so the
   spanning header cell AND the three subheader cells under it both pick
   up the section color (otherwise the default maroon thead background
   bleeds through under the subheaders). Body cells get the same class
   but stay black via the standings tbody td default. */
table.standings thead th.group-highest {
  background: #1b3a1a;
}

table.standings thead th.group-weekly {
  background: #1a2a4a;
}

table.standings thead th.group-cup {
  background: #5a3410;
}

/* Center the spanning section titles. */
table.standings thead th.grouped-header-highest,
table.standings thead th.grouped-header-weekly,
table.standings thead th.grouped-header-cup {
  text-align: center;
}

/* Rank-movement arrows: on the Handicap Ladder they sit inside the HCP
   cell to the right of the number; on the Standings table they live in
   the # column. Only up/down are rendered (null movements are skipped). */
.rank-arrow-up   { color: #4caf50; margin-left: 6px; font-weight: bold; }
.rank-arrow-down { color: #ff5252; margin-left: 6px; font-weight: bold; }
.rank-arrow-none { color: #888;    margin-left: 6px; }

/* Handicap Ladder: HCP cell holds "value (P?) ↑N" on a single line.
   Width sized for the worst case "+36.0 (P) ↑12". */
table.standings .col-hcp {
  white-space: nowrap;
  min-width: 110px;
}

.streak-icon {
  height: 14px;
  width: auto;
  vertical-align: middle;
  margin-left: 3px;
}

/* Section separators inside the Handicap Ladder table.
   - Provisional separator: between officials and provisionals (<5 weeks).
   - Inactive separator: between played-recently players and the sunk-down
     3-weeks-without-scoring ones.
   Both span the full table and dim the look of the rows underneath. */
table.standings tr.ladder-provisional-separator td,
table.standings tr.ladder-inactive-separator td {
  background: #222;
  color: #888;
  text-align: center;
  font-style: italic;
  padding: 6px 4px;
  letter-spacing: 1px;
}
table.standings tr.ladder-inactive td {
  color: #999;
}
table.standings tr.ladder-inactive a {
  color: #aaa;
}
/* Compact emoji-only badge — no padding/background so the row height
   stays identical to the rest of the ladder. */
.inactive-badge {
  margin-left: 4px;
  font-size: 13px;
  vertical-align: middle;
  cursor: help;
}

/* Fixed-width slot wrapping every country flag. Emitted by the flag
   partial whether or not a flag is present, so usernames in adjacent
   inline text start at the same x-coordinate across rows regardless of
   whether the user has a flag. Width covers the widest flags rendered
   at 14px tall (~22px) plus a 2px right gutter for readability. */
.flag-slot {
  display: inline-block;
  width: 22px;
  text-align: left;
  vertical-align: middle;
  margin-right: 4px;
}

.country-flag {
  height: 14px;
  width: auto;
  vertical-align: middle;
}

/* Inside the standings C column the flag has its own cell. Override
   the slot's left-aligned default and remove the trailing margin so
   the flag sits visually centered in the column. */
table.standings td.col-country .flag-slot {
  text-align: center;
  margin-right: 0;
}

.pagination {
  margin: 8px 0;
  font-size: 12px;
}

.pagination a {
  color: #ff9;
  margin: 0 4px;
}

.generated {
  color: #aaa;
  font-size: 11px;
  font-style: italic;
}

main {
  background: transparent;
  margin: 12px;
  padding: 16px;
}

/* ============================================================
   Pass 14 — uniform input + button styling.
   - Every text-style input renders dark gray with a thin neutral
     border. .form-input is the canonical class; the type selectors
     match anything that forgets to apply it.
   - Two button styles: .btn-default (gray neutral) for normal
     submits, .btn-danger (maroon) for destructive admin actions
     and Logout. Unclassed buttons inherit .btn-default via the
     bare-button rule below.
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
.form-input {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #555;
  padding: 4px 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  box-sizing: border-box;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
select:focus,
.form-input:focus {
  outline: 1px solid #888;
  outline-offset: 0;
}

button,
input[type="submit"] {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  padding: 4px 12px;
  cursor: pointer;
  background: #ddd;
  color: #000;
  border: 1px solid #888;
}
button:hover,
input[type="submit"]:hover {
  background: #eee;
}

.btn-default {
  background: #ddd;
  color: #000;
  border: 1px solid #888;
}
.btn-default:hover { background: #eee; }

.btn-danger {
  background: #5a1a1a;
  color: #fff;
  border: 1px solid #8a3a3a;
}
.btn-danger:hover { background: #7a2a2a; }
.btn-danger:disabled { background: #333; border-color: #555; color: #888; cursor: not-allowed; }

/* Self-delete danger panel on /profile/<u>/edit. Reuses .form-panel +
   .auth-panel base styling; .danger-panel overrides the border to
   signal destructive intent without inventing a wholly new layout. */
.form-panel.danger-panel { border-color: #8a3a3a; }
.danger-text { color: #f88; }

.error {
  color: #f88;
  font-weight: bold;
}

table.profile-recent .empty,
table.profile-h2h .empty {
  text-align: center;
  font-style: italic;
  color: #888;
  padding: 20px;
}

table.profile-recent tr.cancelled td {
  color: #888;
  text-decoration: line-through;
}

.badge-cancelled {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  font-size: 10px;
  background: #444;
  color: #ddd;
  border: 1px solid #666;
  text-decoration: none;
}

.profile-actions {
  margin: 6px 0 12px;
}

.report-form {
  margin: 12px 0;
}
.report-form select { margin: 0 8px; }
.report-form button[type="submit"] { margin-right: 8px; }

.cancel-link {
  color: #aaa;
  font-size: 12px;
  margin-left: 4px;
}

/* report-preview width override — narrower than full-width tables. */
table.report-preview {
  width: auto;
  min-width: 400px;
}

.delta-pos { color: #6f6; font-weight: bold; }
.delta-neg { color: #f88; font-weight: bold; }
.delta-zero { color: #aaa; }

.cascade-note {
  color: #ff9;
  font-style: italic;
  margin: 8px 0 12px;
}

/* ============================================================
   Form panels — spec §13. Inset blue panels with ridged border,
   used by Daily Results hub and (future) Report Loss + calculators.
   ============================================================ */

.form-panel {
  background: #000063;
  border: 2px ridge #4444aa;
  padding: 16px;
  margin: 20px auto;
  max-width: 720px;
  color: #fff;
}
.form-panel .columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-panel .col-header {
  font-style: italic;
  color: #fff;
  text-align: center;
  font-weight: normal;
  font-size: 18px;
  margin-bottom: 12px;
}
.form-panel label { color: #fff; }
/* Pass 14 review: keep the classic blue-panel chrome with white
   inset inputs and 3D outset gray buttons. The global .form-input /
   .btn-default rules apply to forms outside .form-panel; the rules
   below scope back the original myleague look for forms inside it
   (daily-results hub, report-loss, calculators). */
.form-panel input[type="text"],
.form-panel input[type="email"],
.form-panel input[type="password"],
.form-panel input[type="number"],
.form-panel input[type="search"],
.form-panel select,
.form-panel textarea {
  background: #fff;
  color: #000;
  border: 1px inset #888;
  padding: 1px 3px;
  font-family: Arial, sans-serif;
  font-size: 12px;
}
.form-panel input[type="submit"],
.form-panel button,
.form-panel button.btn-default,
.form-panel button.btn-danger {
  background: #ddd;
  color: #000;
  border: 2px outset #aaa;
  padding: 2px 12px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  cursor: pointer;
}
.form-panel input[type="submit"]:hover,
.form-panel button:hover {
  background: #eee;
}
.form-panel .submit-row {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 12px;
}

/* Daily Results hub: two side-by-side form-panels, centered. */
.hub-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.hub-panels .form-panel {
  margin: 0;
  max-width: none;
}
.hub-options {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hub-options li {
  padding: 3px 0;
}
.hub-options li::before {
  content: "►";
  color: #ffcc00;
  font-size: 8px;
  margin-right: 6px;
}
.hub-options a { color: #fff; text-decoration: none; }
.hub-options a:hover { color: #ffff00; }
.hub-search-form { text-align: center; }
.hub-search-form label { display: inline-block; margin-right: 6px; }
.hub-search-form .submit-row { margin-top: 10px; }

/* Match-list rows: cancelled matches dimmed + struck through (mirrors profile recent matches). */
table.league-table tr.cancelled td {
  color: #888;
  text-decoration: line-through;
}

.empty-message {
  font-style: italic;
  color: #aaa;
  padding: 16px 0;
}

/* Reusable centered page banner. Used by /hall-of-fame and (pass 14) /report-loss. */
.page-banner {
  display: block;
  margin: 0 auto 1.5em;
}

/* ============================================================
   Hall of Fame — inherits standings palette (#5a1a1a + black cells)
   via .hof-table aliased into the canonical .league-table selectors.
   HoF-specific overrides: bold-serif title row, darker column-header
   row (#330000) for visual hierarchy, and a flex 2-column layout.
   ============================================================ */

/* Pass 14 review (round 3): narrow each .hof-table to ~380px so the
   two columns of tables sit compact, content-sized, with a gap. The
   canonical .league-table rule sets width:100%, which we override.
   Tables are centered within their (wider) flex column so the gap
   between left + right columns falls naturally between the tables.
   Body cells still inherit the standings look. */
.hof-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  align-items: flex-start;
  max-width: 1160px;
  margin: 0 auto;
}
.hof-column {
  flex: 0 1 420px;
  min-width: 0;
}
table.hof-table {
  /* Pin an exact width so left + right columns compute to identical
     widths (previously `width: auto; max-width: 300px` let each table
     shrink to its content, so the two columns drifted apart visually).
     Column widths below (28+150+45+70) + border/padding fit inside this. */
  width: 320px;
  margin: 0 auto 16px;
  table-layout: fixed;
}
/* Tighter cell padding for the cramped 2005-style data block. Body
   font + border still inherit from the canonical .league-table rule.
   Flag stays at the canonical 14px (same as by-week). Row height
   is driven by the baseline of the 14px flag <img> in populated
   rows — ~22-24px with padding 2+2. Empty "—" rows would collapse
   to ~16px without an explicit floor, misaligning left+right
   columns. Pin tbody tr height so both kinds of rows share the
   same slot. */
table.hof-table tbody td,
table.hof-table thead tr.hof-headers th {
  padding: 2px 4px;
}
table.hof-table tbody tr {
  height: 22px;
}
table.hof-table tbody td {
  vertical-align: middle;
}
/* Keep flag + username on a single line in HoF rows. nowrap+ellipsis
   so a very long name truncates instead of pushing the row to 2 lines
   (which would break the horizontal alignment between left + right
   columns). */
table.hof-table tbody td.hof-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}

table.hof-table thead th.hof-title {
  background: #630000;
  text-align: center;
  font-weight: bold;
  padding: 4px 6px;
}
.hof-title-text {
  font-style: normal;
  font-weight: bold;
  font-size: 18px;
  color: #fff;
}
.hof-subtitle {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: #fff;
  margin-top: 2px;
  font-weight: normal;
}
/* Inline variant used by "Weeks at #1 HCP" — same look, no block/
   margin so the parenthetical sits next to the title text instead
   of wrapping to a second line (keeps the title bar at the same
   height as every other category). */
.hof-subtitle-inline {
  font-size: 12px;
  color: #fff;
  font-weight: normal;
  opacity: 0.75;
  margin-left: 4px;
}

/* Column-header row — darker maroon for hierarchy under the title.
   Border + padding inherit from the canonical .league-table rule. */
table.hof-table thead tr.hof-headers th {
  background: #330000;
}

/* Body-cell alignment helpers. Font-size + padding + border come from
   the canonical .league-table tbody td rule — do not override here.
   Column widths are pinned via the column-header th rules below; with
   table-layout:fixed those widths drive every cell in the column. */
table.hof-table tbody td.hof-rank  { font-weight: bold; text-align: right; }
table.hof-table tbody td.hof-value { text-align: right; white-space: nowrap; }
table.hof-table tbody td.hof-date  { white-space: nowrap; }
table.hof-table .hof-rank-col  { width: 22px;  text-align: right; }
table.hof-table .hof-name-col  { width: 140px; text-align: left; }
table.hof-table .hof-value-col { width: 64px;  text-align: right; }
table.hof-table .hof-date-col  { width: 72px;  white-space: nowrap; text-align: left; }
table.hof-table .hof-empty {
  text-align: center;
  font-style: italic;
  color: #888;
  padding: 12px;
}
/* Placeholder row for categories without enough data yet — keeps the
   HoF layout stable at exactly 10 rows per category so the two
   columns stay horizontally aligned. */
table.hof-table tr.hof-empty-row td {
  color: #555;
}

@media (max-width: 800px) {
  .hof-column {
    flex: 1 1 100%;
  }
}

/* ============================================================
   Admin panel — minimal styling, pass 14 will revisit alongside
   the rest of the visual polish. Goals: stat tiles legible,
   per-row admin action forms inline, audit JSON disclosure tidy.
   ============================================================ */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  max-width: 720px;
}
.admin-stat {
  background: #5a1a1a;
  border: 2px solid #888;
  padding: 8px 12px;
  text-align: center;
}
.admin-stat-label { font-size: 11px; color: #ddd; }
.admin-stat-value { font-size: 22px; font-weight: bold; color: #fff; }

.admin-recent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.admin-section-h {
  font-size: 14px;
  margin: 8px 0 6px;
  color: #fff;
}

.admin-search-form {
  margin: 8px 0 12px;
}
.admin-search-form input[type="text"] { width: 200px; }

.admin-actions { white-space: nowrap; }
.admin-inline-form {
  display: inline-block;
  margin: 0 4px 2px 0;
  padding: 0;
}
.admin-inline-form input[type="text"] {
  font-size: 11px;
  padding: 1px 3px;
  width: 100px;
}
.admin-inline-form button {
  font-size: 11px;
  padding: 1px 6px;
}

.admin-ok {
  color: #6f6;
  font-weight: bold;
}

table.admin-users-table td { font-size: 11px; }

.admin-run-inactivity { margin: 0 0 12px; }
.admin-run-inactivity button { font-size: 12px; padding: 3px 10px; }

.admin-settings-form .settings-row {
  display: grid;
  grid-template-columns: 280px 140px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.admin-settings-form .settings-row label { color: #fff; }
.settings-bounds { color: #aaa; font-size: 11px; }
/* Pass 31: per-field info icon. Uses the native title="..." tooltip — no
   JS, no positioning logic — so it inherits the browser/OS tooltip UX.
   tabindex=0 makes the icon focusable for keyboard users (Esc dismisses
   the OS tooltip on most platforms). */
.settings-info {
  display: inline-block;
  margin-left: 6px;
  color: #888;
  cursor: help;
  font-size: 12px;
  user-select: none;
}
.settings-info:hover,
.settings-info:focus { color: #fff; outline: none; }

/* Pass 31 follow-up: users list — only an Edit link per row; all other
   actions live on /admin/users/<username>/edit. */
.col-email { font-size: 11px; color: #ccc; word-break: break-all; max-width: 220px; }
.col-country .country-code { margin-left: 4px; font-size: 11px; color: #aaa; }
.col-edit .admin-edit-link { display: inline-block; color: #000; }
.col-edit .admin-edit-link:hover { color: #000; }
.admin-badge {
  display: inline-block; padding: 0 4px; margin-left: 4px;
  font-size: 10px; background: #345; color: #fff;
  border-radius: 2px; vertical-align: middle;
}
.admin-badge-inactive { background: #555; }
.admin-badge-suspended { background: #5a1a1a; }

/* user-edit Admin Actions section: each <details> collapses an inline
   form. Buttons (including <summary>) share the .btn-default look —
   already dark text on #ddd inside .form-panel. min-height makes the
   row look balanced regardless of button content. */
.user-edit-actions { margin-top: 12px; }
.admin-action-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.admin-action-detail { margin: 6px 0; }
.admin-action-detail > summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
  min-width: 140px;
  text-align: center;
}
.admin-action-detail > summary::-webkit-details-marker { display: none; }
.admin-action-detail[open] > summary { background: #eee; }
.admin-action-form {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: end;
  margin-top: 6px; padding: 8px;
  border: 1px solid #555;
  background: #2a2a2a;
}
.admin-action-form label { color: #fff; display: flex; flex-direction: column; gap: 2px; }
.admin-action-detail-danger > summary { color: #8a2a2a; }
.admin-action-detail-danger[open] > summary { background: #f5d6d6; }
.user-edit-actions .admin-suspend-state { color: #aaa; font-size: 11px; }

/* Consistent button height across admin pages. Applied to standalone
   buttons AND those inside .form-panel — both inherit the #ddd/black
   look already, this just normalizes height + alignment so rows of
   mixed-text buttons line up. */
.form-panel button.btn-default,
.form-panel input[type="submit"],
.admin-edit-link,
.admin-action-detail > summary {
  min-height: 28px;
  line-height: 22px;
  box-sizing: border-box;
}

/* user-edit form: reuse .settings-row grid; align dl in read-only panel. */
.user-edit-form .settings-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.user-edit-form .settings-row label { color: #fff; }
.user-edit-derived { color: #aaa; font-style: italic; }
.user-edit-readonly { margin-top: 12px; }
.user-edit-dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4px 8px;
  margin: 0;
}
.user-edit-dl dt { color: #aaa; }
.user-edit-dl dd { color: #fff; margin: 0; }
/* Pass 14 review: admin/settings inherits .form-panel chrome (blue
   ridge border, white-inset inputs, 3D outset gray button) so it
   matches the rest of the form-panel pages. No additional rules
   needed — restoring the .form-panel input/button overrides above
   was enough. */

.audit-json {
  background: #111;
  border: 1px solid #333;
  color: #ddd;
  font-size: 11px;
  padding: 6px 8px;
  margin: 4px 0 0;
  white-space: pre-wrap;
  max-width: 600px;
  overflow-x: auto;
}

/* Calculators + Rules (Pass 13) */
.calc-blurb { color: #ccc; max-width: 640px; margin: 0 0 16px; }
/* Calculator forms inherit .form-panel chrome (white inputs, gray
   3D button) — pass 14 review aligned them with /daily-results. */
.form-panel.calc-form { max-width: 520px; margin: 16px 0 24px; padding: 16px 20px; }

.calc-row { display: grid; grid-template-columns: 180px 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.calc-row label { color: #fff; }
.calc-radio-group { display: flex; gap: 14px; }
.calc-radio { color: #fff; font-weight: normal; cursor: pointer; }
.calc-result { background: #1c1c1c; border: 1px solid #444; padding: 10px 14px; max-width: 640px; }
.calc-result p { margin: 0; color: #fff; }
html { scroll-behavior: smooth; }
.how-toc { max-width: 720px; margin: 0 0 24px; padding: 12px 14px; background: #1a1a1a; border: 1px solid #333; border-radius: 6px; }
.how-toc-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.toc-btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #e8eaed;
  background: #282a2e;
  border: 1px solid #444;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.toc-btn:hover {
  background: #35383f;
  border-color: #8ab4f8;
  color: #fff;
  text-decoration: none;
}
.rules-section { max-width: 720px; margin: 0 0 26px; scroll-margin-top: 20px; }
.rules-section h2 { color: #fff; margin: 0 0 8px; font-size: 18px; border-bottom: 1px solid #333; padding-bottom: 4px; }
.rules-section h3 { color: #e8eaed; margin: 14px 0 6px; font-size: 15px; }
.rules-section p { color: #ddd; line-height: 1.55; margin: 0 0 10px; }
.rules-section a { color: #8ab4f8; }
.how-back-top { font-size: 12px; margin-top: 6px; }
.how-back-top a { color: #8ab4f8; text-decoration: none; opacity: 0.85; }
.how-back-top a:hover { opacity: 1; text-decoration: underline; }

/* Suspensions + per-row derank (Pass 12.5) */
.suspension-banner {
  background: #5a1a1a;
  color: #fff;
  border: 1px solid #a33;
  padding: 8px 12px;
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
}
#sidebar .suspension-banner { margin: 0 0 16px; max-width: 100%; }
.suspended-badge { color: #f88; font-weight: bold; font-size: 11px; }
tr.suspended td { color: #aaa; }
tr.suspended td .suspended-badge { color: #f88; }
.admin-derank-form input[type="number"] { width: 60px; }
.admin-derank-form input[type="text"] { width: 160px; }
.admin-suspend-form input[type="number"] { width: 60px; }
.admin-suspend-form input[type="text"] { width: 160px; }
.admin-suspend-state { display: inline-block; color: #f88; font-size: 10px; margin-left: 4px; }
.admin-setrank-form input[type="number"] { width: 60px; }
.admin-setrank-form input[type="text"]   { width: 160px; }
.admin-unrank-form  input[type="text"]   { width: 160px; }
.admin-delete-form  input[type="text"]   { width: 220px; }
.deleted-marker { color: #888; font-style: italic; font-size: 11px; }
tr.deleted-row td { color: #777; }
.report-note { color: #aaa; font-size: 12px; margin: 6px 0 0; font-style: italic; }


/* Login + signup auth panel — same .form-panel chrome and white
   inputs as Daily Results / Report Loss, centered on the page. */
.page-title-center { text-align: center; }
.auth-panel {
  max-width: 360px;
  margin: 16px auto 18px;
}
.auth-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.auth-row label { color: #fff; }
.auth-note { text-align: center; }
.auth-alt {
  text-align: center;
  color: #ddd;
  margin: 8px 0 0;
}
.auth-alt a { color: #ffcc00; }

/* ============================================================
   Report Loss panel (Pass 14 — item P).
   Two-column form-panel: REQUIRED (opponent autocomplete) on the
   left, OPTIONAL (comment) on the right. Inherits .form-panel
   chrome (blue inset border) and adds the autocomplete dropdown.
   ============================================================ */
.report-loss-panel {
  max-width: 720px;
  margin: 16px auto 24px;
}
.report-loss-panel .col-header {
  font-style: normal;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  border-bottom: 1px solid #4444aa;
  padding-bottom: 4px;
  margin-bottom: 10px;
  font-size: 14px;
}
/* Pass 14 review: center every element inside each column. The
   columns themselves stay side-by-side via .form-panel .columns
   grid; we center contents with text-align + auto margins. */
.report-loss-panel .columns > div { text-align: center; }
.rl-field { margin-bottom: 10px; }
.rl-field label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: #fff;
  text-align: center;
}
.rl-autocomplete { margin: 0 auto; max-width: 240px; }
.rl-field .rl-comment { display: block; margin: 0 auto; max-width: 240px; }
.rl-comment {
  resize: vertical;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 80px;
  width: 100%;
  box-sizing: border-box;
}
.rl-autocomplete .form-input { width: 100%; box-sizing: border-box; }
.rl-hint {
  margin: 4px 0 0;
  font-size: 11px;
  color: #ccd;
  text-align: center;
}

/* Autocomplete dropdown — sits below the white input inside the blue
   panel, so we match the input chrome (white background, inset gray
   border) instead of the dark global suggestions look. */
.rl-autocomplete { position: relative; }
.rl-suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #000;
  border: 1px inset #888;
  border-top: 0;
  max-height: 220px;
  overflow-y: auto;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 5;
}
.rl-suggestion {
  padding: 3px 6px;
  font-size: 12px;
  cursor: pointer;
}
.rl-suggestion:hover,
.rl-suggestion[aria-selected="true"] {
  background: #d8d8ff;
}
.rl-suggestion-rank { color: #555; font-size: 11px; margin-left: 4px; }

.rl-comment-preview {
  background: #1c1c1c;
  border: 1px solid #444;
  padding: 8px 12px;
  max-width: 600px;
  white-space: pre-wrap;
  color: #ddd;
  font-style: italic;
}

/* ------------------------------------------------------------
   Admin Actions cell layout (Pass 12.6)
   - Buttons stack inline; one inline panel reveals beneath
     the buttons when an action needs more inputs.
   - Destructive submits route through the styled <dialog> at
     the bottom of the page; non-destructive submit on click.
   ------------------------------------------------------------ */
.admin-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.admin-action-buttons button,
.admin-action-buttons .admin-inline-form button {
  font-size: 11px;
  padding: 2px 8px;
}

.admin-inline-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 4px 0 0;
  padding: 4px 6px;
  background: #1c1c1c;
  border: 1px solid #444;
}
.admin-inline-panel[hidden] { display: none; }
.admin-inline-panel label {
  color: #ddd;
  font-size: 11px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.admin-inline-panel input[type="text"],
.admin-inline-panel input[type="number"] {
  font-size: 11px;
  padding: 2px 4px;
}
.admin-inline-panel button {
  font-size: 11px;
  padding: 2px 8px;
}

/* /admin/admins permissions panel — vertical list of 9 checkboxes
   plus a Save/Cancel row. Sits inside .admin-inline-panel. */
.admins-perms-form { flex-direction: column; align-items: flex-start; min-width: 240px; }
.admins-perm-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: monospace;
  color: #fff;
  width: 100%;
}
.admins-perms-actions { display: flex; gap: 6px; margin-top: 6px; }

/* Styled confirm dialog — destructive admin actions */
.admin-dialog {
  background: #1c1c1c;
  color: #fff;
  border: 2px solid #8a3a3a;
  padding: 0;
  max-width: 420px;
  font-family: inherit;
}
.admin-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}
.admin-dialog-form {
  padding: 16px 18px;
  margin: 0;
}
.admin-dialog-message {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.4;
}
.admin-dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.admin-dialog-actions button {
  font-size: 12px;
  padding: 4px 14px;
}

/* World Cup inline match row (Pass 29 / polish pass) */
.wc-inline-match {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0;
  padding: 4px 6px;
  font-size: 14px;
}
.wc-inline-name {
  min-width: 0;
  flex: 0 1 auto;
}
.wc-inline-dash {
  color: #888;
}
.wc-inline-btn {
  font-size: 12px;
  padding: 2px 10px;
}
.wc-inline-readonly {
  /* opacity is now driven by wc-match-unreported / wc-match-reported */
}

/* Group letter badge prefix: 5–6ch wide so all rows align under it.
   Bracket rounds render an empty placeholder of the same width to keep
   alignment with adjacent group-round rows. */
.wc-group-badge {
  display: inline-block;
  min-width: 1.6em;
  text-align: center;
  font-family: monospace;
  font-size: 11px;
  color: #666;
  background: #ece6d4;
  border: 1px solid #cabf9a;
  border-radius: 2px;
  padding: 1px 4px;
  flex: 0 0 auto;
}
.wc-group-badge-empty {
  background: transparent;
  border-color: transparent;
}

/* Score box: shared geometry across all four states (filled / empty /
   editable / forfeit). Explicit pixel dimensions so every score column
   aligns vertically across all match rows, on any page. */
.wc-score-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  box-sizing: border-box;
  font-family: monospace;
  font-size: 14px;
  border-radius: 2px;
  padding: 0;
  text-align: center;
  flex: 0 0 auto;
}
.wc-score-box-filled {
  background: #f1eee0;
  border: 1px solid #c9bf94;
  color: #2a2a2a;
  font-weight: 700;
}
.wc-score-box-empty {
  background: transparent;
  border: 1px dashed #aaa;
  color: transparent;
}
.wc-score-box-editable {
  background: #fff;
  border: 1px solid #6b6b6b;
  color: #2a2a2a;
  font-weight: 600;
  text-align: center;
}
/* Override .wc-inline-input legacy width — wc-score-box geometry wins. */
.wc-inline-input.wc-score-box-editable { width: 32px; padding: 0; }

/* Match state classes (applied to the row). */
.wc-match-unreported   { opacity: 0.6; }
.wc-match-reported     { opacity: 1.0; }
.wc-match-fixture      { opacity: 0.55; }
/* Own match overrides any dimming. */
.wc-match-mine         { opacity: 1.0; }

/* Forfeit tag next to the N/A side. */
.wc-forfeit-tag {
  font-size: 11px;
  color: #777;
  font-style: italic;
  margin-left: 2px;
}
.wc-na-label {
  font-style: italic;
  opacity: 0.55;
}

/* Dashboard content wrapper (/world-cup/<name> only) — horizontally
   centered, fixed max-width. text-align: center cascades to all inline
   text content (headings, paragraphs, lists, the own-match card label).
   Match rows below keep their flex layout but justify-content: center
   so the player/score/player horizontal flow centers within each row.
   Other WC pages (groups/brackets/profile/hall-of-fame) stay left-aligned. */
.wc-dashboard-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.wc-dashboard-content .wc-inline-match {
  justify-content: center;
}
/* The base .admin-stats rule uses a 4-column grid for the admin dashboard.
   On the WC dashboard we usually have only 2 cards (Status + Joined), and
   sometimes 3 or 4 (registration timestamps). Switch to flex so cards
   naturally center as a group rather than pinning to the left half of a
   720px container. */
.wc-dashboard-content .admin-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-left: auto;
  margin-right: auto;
}
.wc-dashboard-content .admin-stats > .admin-stat {
  flex: 0 1 160px;
}
.wc-dashboard-content .admin-inline-form {
  display: inline-block;
}
/* Pool roster (POOL_OPEN / POOL_CLOSED). Each row: flag + username,
   optionally tagged "[You]". Centered as a column inside the dashboard
   wrapper. */
.wc-pool-list-title {
  font-size: 12px;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 16px 0 6px;
  font-weight: bold;
}
.wc-dashboard-content ul.wc-pool-list,
ul.wc-pool-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 320px;
}
ul.wc-pool-list > li {
  padding: 3px 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
ul.wc-pool-list > li.wc-pool-list-me {
  background: rgba(212, 164, 24, 0.15);
  border-left: 2px solid #d4a418;
  border-right: 2px solid #d4a418;
}
ul.wc-pool-list > li.wc-pool-list-me a { font-weight: bold; }
.wc-pool-list-you-tag {
  font-size: 11px;
  color: #d4a418;
  font-weight: bold;
  margin-left: 4px;
}

/* Dimmed inline note for "waiting on previous round" states on
   /admin/world-cup/<name>. Same rhythm as .report-note but a touch dimmer
   to signal a blocked-not-broken state. */
.admin-pending-note {
  font-size: 12px;
  color: #aaa;
  font-style: italic;
  margin: 6px 0;
  max-width: 720px;
}

/* Section header with right-aligned action button (e.g. Close Round).
   The label matches the .wc-own-match-card-title small-caps style for
   visual rhythm between the card above and the list below. */
.wc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 6px;
  max-width: 720px;
}
.wc-section-h-label {
  font-size: 11px;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: bold;
}
.wc-section-head-action {
  margin: 0;
}

/* Own-match card: pulls the viewer's current-round match above the full
   list. Maroon frame to match the Status / Joined stat boxes. */
.wc-own-match-card {
  background: #5a1a1a;
  border: 2px solid #888;
  padding: 10px 14px;
  margin: 8px 0 14px;
  max-width: 720px;
}
.wc-own-match-card-title {
  font-size: 11px;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.wc-own-match-card .wc-inline-match {
  margin: 0;
  padding: 0;
  color: #fff;
}
.wc-own-match-card .wc-inline-match .wc-inline-name,
.wc-own-match-card .wc-inline-match .wc-inline-dash { color: #fff; }
.wc-own-match-card .wc-group-badge {
  background: #4a1414;
  border-color: #8a4040;
  color: #ddd;
}
.wc-own-match-card .wc-score-box-empty { border-color: #c9a; }
.wc-own-match-card .wc-score-box-filled {
  background: #efe8c8;
  border-color: #d2c694;
  color: #2a2a2a;
}
.wc-own-match-card-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: #ddd;
}
/* Per-group section on /world-cup/<name>/groups. Wraps the group's
   heading + standings table + 3-column round grid in one block so we
   can visually separate adjacent groups (Group A → B → ...). */
.wc-group-section {
  margin-bottom: 40px;
}
.wc-group-section:last-of-type {
  margin-bottom: 0;
}
.wc-group-section > h2.admin-section-h {
  margin-top: 0;
}
.wc-round-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.wc-round-card h4,
.wc-round-card-h {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: bold;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 800px) {
  .wc-round-grid { grid-template-columns: 1fr; }
}

/* Fixture rows (future-round placeholders): muted, italic "vs" between
   the two names; no form. */
.wc-inline-fixture {
  color: #777;
  font-style: italic;
}
.wc-inline-fixture .wc-inline-vs {
  color: #999;
  margin: 0 4px;
}

/* Match card (groups page): two-row stacked cell that mirrors the
   bracket-page visual but in normal flow (not absolutely positioned).
   Cream-beige fill, sand border, internal divider between rows. */
.wc-match-card-wrap {
  margin: 6px 0;
}
.wc-match-card {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #c9bf94;
  border-radius: 2px;
  background: #f1eee0;
  box-sizing: border-box;
  overflow: hidden;
}
.wc-match-card.wc-match-fixture {
  background: transparent;
  border-style: dashed;
}
.wc-match-card.wc-match-mine {
  border-color: #d4a418;
  box-shadow: 0 0 0 1px #d4a418 inset;
}
.wc-match-card-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 6px;
  height: 32px;
  box-sizing: border-box;
  font-size: 13px;
  color: #2a2a2a;
}
.wc-match-card-row-bot {
  border-top: 1px solid #d8cfa6;
}
.wc-match-card-row.wc-bracket-winner {
  background: #eef5d6;
  font-weight: bold;
}
.wc-match-card-name {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2a2a2a;
}
.wc-match-card-row .wc-score-box {
  margin: 0;
  width: 28px;
  height: 22px;
  font-size: 12px;
  box-sizing: border-box;
}
.wc-match-card-meta {
  padding: 0 8px 4px;
  text-align: right;
  font-size: 11px;
  color: #555;
}
.wc-match-card-meta .wc-forfeit-tag,
.wc-match-card-meta .report-note {
  margin-left: 4px;
}
/* Editable card: the form IS the card. The Report button sits below
   the two player rows, right-aligned within the card. */
.wc-match-card-editable {
  padding-bottom: 4px;
}
.wc-match-card-submit {
  display: block;
  margin: 4px 6px 0 auto;
  font-size: 11px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* Bracket layout (v5): one .wc-bracket-match block per match, absolutely
   positioned by computed top. Each match holds two stacked rows (player1,
   player2) sharing one outer border; a thin internal divider separates
   the two rows. A 5th "Champion" column sits to the right of Final.
   Connector lines between rounds are drawn with pseudo-elements on each
   match block (a horizontal stub exiting right) plus a vertical bar
   entering the next column. */
.wc-bracket-wrap {
  overflow-x: auto;
  margin: 8px 0 12px;
}
.wc-bracket-title {
  text-align: center;
}
.wc-bracket-dropdown {
  text-align: center;
}
.wc-bracket-grid {
  display: grid;
  grid-template-columns: 200px 200px 200px 200px 180px;
  column-gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.wc-bracket-col {
  display: flex;
  flex-direction: column;
  position: relative;
}
.wc-bracket-col-h {
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  height: 18px;
}
.wc-bracket-col-body {
  position: relative;
  height: var(--wc-col-h, 592px);
}
.wc-bracket-match {
  position: absolute;
  left: 0;
  right: 0;
  border: 1px solid #c9bf94;
  border-radius: 2px;
  background: #f1eee0;
  height: 64px;
  box-sizing: border-box;
  overflow: visible;
}
.wc-bracket-match-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 6px;
  height: 32px;
  box-sizing: border-box;
  font-size: 13px;
  color: #2a2a2a;
}
.wc-bracket-match-row-bot {
  border-top: 1px solid #d8cfa6;
}
.wc-bracket-match-row-single {
  height: 64px;
  justify-content: center;
}
.wc-bracket-name {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2a2a2a;
}
/* Inside a bracket cell, the shared .wc-score-box is slightly narrower so
   the dashed/solid border has clearance from the cell's right edge. The
   match cell uses an 8px right padding (above) to guarantee a 2px+ gap
   between the score box's outer border and the cell's inner edge. */
.wc-bracket-match-row .wc-score-box {
  margin: 0;
  width: 28px;
  height: 22px;
  font-size: 12px;
  box-sizing: border-box;
}
.wc-bracket-winner {
  background: #eef5d6;
}
.wc-bracket-winner .wc-bracket-name { font-weight: bold; }
/* "±N vs par" readout to the left of the raw stroke box in a bracket
   cell. Green on light bg to read as "golf score" without crowding
   the name. "E" shown when exactly on par. */
.wc-bracket-match-row .wc-vspar {
  display: inline-block;
  min-width: 24px;
  padding: 0 4px;
  margin-right: 4px;
  font-size: 11px;
  font-weight: bold;
  text-align: right;
  color: #1b7a1b;
}
.wc-bracket-match-tbd,
.wc-bracket-match-champion {
  background: transparent;
  border-style: dashed;
}
.wc-bracket-match-tbd .wc-bracket-tbd,
.wc-bracket-match-champion .wc-bracket-tbd {
  width: 100%;
  text-align: center;
  font-style: italic;
  color: #888;
  font-size: 12px;
}
.wc-bracket-match-tbd .wc-bracket-match-row {
  height: 64px;
  justify-content: center;
}

.wc-bracket-tie-badge {
  position: absolute;
  top: -6px;
  right: -6px;
}

/* CSS connectors between rounds. Each match in RO16/QF/SF has a short
   horizontal stub exiting right (border-right on an absolutely-positioned
   pseudo-element). Pairs of matches share a vertical bar drawn on the
   second of each pair that joins back up to its partner. The math
   matches the per-round geometry — half the column-gap (14px) horizontal
   stub width on each side. */
.wc-bracket-col-ro16 .wc-bracket-match::after,
.wc-bracket-col-qf   .wc-bracket-match::after,
.wc-bracket-col-sf   .wc-bracket-match::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 14px;
  height: 0;
  border-top: 1px solid #6a6a6a;
}
/* Vertical join: on every EVEN-indexed match (i = 2, 4, ...), draw a
   vertical line spanning from this match's center up to the previous
   match's center. Match-pair vertical distance per round (with cell
   height 64 + gap 16 = 80 in RO16):
   RO16 pair distance = 80px, QF pair = 160, SF pair = 320. */
.wc-bracket-col-ro16 .wc-bracket-match:nth-child(even)::before {
  content: "";
  position: absolute;
  right: -14px;
  top: -48px;     /* match-2-center − match-2-top = 32 − 80 = -48 */
  height: 80px;
  width: 0;
  border-left: 1px solid #6a6a6a;
}
.wc-bracket-col-qf .wc-bracket-match:nth-child(even)::before {
  content: "";
  position: absolute;
  right: -14px;
  top: -128px;
  height: 160px;
  width: 0;
  border-left: 1px solid #6a6a6a;
}
.wc-bracket-col-sf .wc-bracket-match:nth-child(even)::before {
  content: "";
  position: absolute;
  right: -14px;
  top: -288px;
  height: 320px;
  width: 0;
  border-left: 1px solid #6a6a6a;
}

/* Champion column: borderless. Final's match still gets its horizontal
   stub from the rule above (it's in .wc-bracket-col-sf? no — final lives
   in .wc-bracket-col-final). Add a stub there too. */
.wc-bracket-col-final .wc-bracket-match::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 14px;
  height: 0;
  border-top: 1px solid #6a6a6a;
}
.wc-bracket-col-champion .wc-bracket-match {
  border-style: solid;
  border-color: #d4a418;
  background: #f9efc8;
}
.wc-bracket-col-champion .wc-bracket-match-row {
  height: 60px;
  justify-content: center;
  font-weight: bold;
}

@media (max-width: 800px) {
  /* Stack columns vertically on narrow screens; drop connector lines. */
  .wc-bracket-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .wc-bracket-col-body {
    position: static;
    height: auto;
  }
  .wc-bracket-match {
    position: static !important;
    margin: 4px 0;
  }
  .wc-bracket-match::before,
  .wc-bracket-match::after { display: none !important; }
  .wc-bracket-col + .wc-bracket-col {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #ccc;
  }
}

/* Pass 31 ext: profile chart + top-tables. */
.profile-chart-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 8px 0;
}
.profile-chart-toggle { display: inline-flex; gap: 0; }
.profile-chart-tab {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #555;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}
.profile-chart-tab + .profile-chart-tab { border-left: none; }
.profile-chart-tab.is-active { background: #5a1a1a; border-color: #5a1a1a; }
.profile-chart-range select {
  background: #222; color: #fff;
  border: 1px solid #555;
  padding: 3px 6px;
  font-size: 12px;
}
.profile-chart-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  background: #000;
  border: 2px solid #777;
  padding: 8px;
  box-sizing: border-box;
}
.profile-chart-empty {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: #888; margin: 0;
}
table.profile-top-table .top-delta { text-align: right; }

/* ============================================================
   Admin Panel — same layout/typography as the main site, red
   background tile. Applied via <body class="admin-panel"> on all
   /admin/* views so the sidebar + content area both share the
   red tile.
   ============================================================ */
body.admin-panel {
  background-image: url('/img/bg-tile-red.jpg');
}
body.admin-panel #sidebar {
  background-image: url('/img/bg-tile-red.jpg');
}
h1.admin-panel-title {
  text-align: center;
  margin: 8px 0 16px;
}
h1.admin-panel-title img {
  display: inline-block;
  max-width: 100%;
  width: 540px;
  height: auto;
}
.admin-active-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 16px;
}
.admin-active-tile {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid #888;
  padding: 10px 12px;
  text-align: center;
}
.admin-active-label {
  font-size: 11px;
  color: #ffcc00;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-active-value {
  font-size: 28px;
  font-weight: bold;
  margin-top: 4px;
  line-height: 1.1;
}
body.admin-panel #sidebar li .soon {
  color: #888;
  font-style: italic;
  cursor: default;
}

/* ─── Dashboard layout ───────────────────────────────────────── */
.admin-dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 16px;
}
.admin-dash-kpi {
  background: rgba(0,0,0,0.55);
  border: 1px solid #888;
  padding: 10px 12px;
}
.admin-dash-kpi-label {
  font-size: 11px;
  color: #ffcc00;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-dash-kpi-value {
  font-size: 24px;
  font-weight: bold;
  margin: 4px 0;
  line-height: 1.1;
}
.admin-dash-kpi-sub {
  font-size: 14px;
  color: #aaa;
  font-weight: normal;
}
.admin-dash-kpi-foot {
  font-size: 11px;
  color: #ccc;
}

.admin-dash-alerts {
  background: rgba(90, 26, 26, 0.6);
  border: 1px solid #c66;
  padding: 8px 14px;
  margin: 0 0 16px;
}
.admin-dash-alerts ul { margin: 4px 0 0; padding-left: 20px; }
.admin-dash-alerts li { margin: 2px 0; }

.admin-dash-actions { margin: 0 0 16px; }
.admin-dash-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-dash-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 16px;
}
.admin-dash-chart {
  background: rgba(0,0,0,0.4);
  border: 1px solid #777;
  padding: 10px 12px;
  min-width: 0;
}
.admin-dash-svg { display: block; max-width: 100%; }

.admin-dash-recent {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 1100px) {
  .admin-dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .admin-dash-charts { grid-template-columns: 1fr; }
  .admin-dash-recent { grid-template-columns: 1fr; }
}

/* ── Profile ─────────────────────────────────────────────────────── */

/* header */
.pf-header { margin-bottom: 20px; }
.pf-name { font-size: 1.6em; font-weight: bold; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.82em; color: #888; }
.pf-meta-item a { color: #aaa; }

/* stat panels */
.pf-panels { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.pf-panel { flex: 1; min-width: 180px; background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 10px; padding: 16px; }
.pf-panel-ladder { border-top: 3px solid #5a1a1a; }
.pf-panel-hcp    { border-top: 3px solid #4a3a00; }
.pf-panel-wt     { border-top: 3px solid #1a3a1a; }
.pf-panel-wc     { border-top: 3px solid #1a2a5a; }
.pf-panel-label  { font-size: 0.75em; font-weight: bold; color: #666; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.pf-panel-hero   { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.pf-big          { font-size: 2.4em; font-weight: bold; color: #fff; line-height: 1; }
.pf-big-sub      { font-size: 0.8em; color: #666; }
.pf-rows         { display: flex; flex-direction: column; gap: 0; }
.pf-row          { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid #1a1a1a; font-size: 0.85em; }
.pf-row span:first-child { color: #888; }
.pf-row strong   { color: #ddd; }
.pf-row-muted    { opacity: 0.6; }
.pf-pct          { font-size: 0.8em; color: #666; font-weight: normal; }

/* HCP panel — last 5 results mini-list */
.pf-hcp-history       { margin-top: 10px; border-top: 1px solid #2a2a2a; padding-top: 8px; }
.pf-hcp-history-title { font-size: 0.7em; color: #555; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px; }
.pf-hcp-history-row   { display: flex; justify-content: space-between; gap: 4px; padding: 3px 0; border-bottom: 1px solid #1a1a1a; font-size: 0.78em; }
.pf-hcp-history-row:last-child { border-bottom: none; }
.pf-hcp-hist-src      { font-size: 0.7em; font-weight: bold; padding: 1px 4px; border-radius: 3px; white-space: nowrap; }
.pf-hcp-src-wt        { background: #1a3a1a; color: #6a9; }
.pf-hcp-src-wc        { background: #1a2a5a; color: #6af; }
.pf-hcp-hist-week     { flex: 1; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.pf-hcp-hist-hcp      { color: #ccc; font-weight: bold; white-space: nowrap; }
.pf-hcp-hist-rank     { color: #888; white-space: nowrap; min-width: 32px; text-align: right; }
.pf-hcp-good          { color: #6a9; }

/* section headings */
.pf-section-h { font-size: 0.9em; font-weight: bold; color: #666; letter-spacing: 0.08em; text-transform: uppercase; margin: 28px 0 10px; border-bottom: 1px solid #222; padding-bottom: 6px; }

/* h2h table */
.h2h-bar  { display: flex; align-items: center; gap: 6px; min-width: 80px; }
.h2h-fill { height: 8px; background: #5a1a1a; border-radius: 4px; min-width: 2px; }
.h2h-pct  { font-size: 0.8em; color: #aaa; white-space: nowrap; }

/* charts — full width, one per row */
.profile-chart-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.profile-chart-toggle   { display: inline-flex; gap: 0; }
.profile-chart-tab      { padding: 4px 12px; background: transparent; color: inherit; border: 1px solid #444; cursor: pointer; font-size: 0.85em; }
.profile-chart-tab + .profile-chart-tab { border-left: none; }
.profile-chart-tab.is-active { background: #5a1a1a; border-color: #5a1a1a; color: #fff; }
.profile-chart-range select { background: #111; border: 1px solid #333; color: #ccc; padding: 3px 6px; font-size: 0.85em; }
.profile-chart-wrap { height: 220px; margin-bottom: 24px; }
.profile-chart-empty { color: #666; font-size: 0.85em; }
.wt-chart-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.wt-chart-tab  { padding: 4px 12px; background: transparent; color: inherit; border: 1px solid #4e9cff; border-radius: 4px; cursor: pointer; font-size: 0.85em; }
.wt-chart-tab.is-active { background: #4e9cff; color: #fff; }
.wt-chart-wrap { margin-bottom: 24px; }

/* collapsible history */
details.profile-history > summary { cursor: pointer; color: #666; font-size: 0.82em; margin: 24px 0 8px; padding: 7px 12px; border: 1px solid #252525; border-radius: 6px; background: #0a0a0a; letter-spacing: 0.04em; }
details.profile-history > summary:hover { color: #bbb; border-color: #444; }

/* misc keepalives from old profile */
.section-h { font-size: 1.05em; font-weight: bold; color: #ccc; margin: 20px 0 8px; border-bottom: 1px solid #333; padding-bottom: 4px; }
.profile-stat-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85em; padding: 4px 0; border-bottom: 1px solid #1a1a1a; color: #bbb; }
.profile-stat-row strong { color: #fff; }
.btn-link { color: #aaa; font-size: 0.85em; text-decoration: underline; }
.badge-beta { font-size: 0.6em; background: #2a1a5a; border: 1px solid #4a3a8a; padding: 1px 5px; border-radius: 4px; color: #aaa; vertical-align: middle; }

/* ── Speed Cup — Current Cup page ───────────────────────────────────── */
.sc-status-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.75em; font-weight: bold; letter-spacing: .05em; vertical-align: middle; }
.sc-status-q1, .sc-status-q2, .sc-status-q3 { background: #1a3a1a; color: #9f9; border: 1px solid #3a7a3a; }
.sc-status-completed { background: #1a1a3a; color: #99f; border: 1px solid #3a3a7a; }
.sc-status-cancelled { background: #2a1a1a; color: #f99; border: 1px solid #7a3a3a; }

.sc-round-block { border: 1px solid #333; border-radius: 8px; margin-bottom: 20px; overflow: hidden; }
.sc-round-active  { border-color: #3a7a3a; }
.sc-round-past    { border-color: #333; opacity: 0.85; }
.sc-round-future  { border-color: #252525; opacity: 0.6; }

.sc-round-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #0d0d1a; flex-wrap: wrap; }
.sc-round-active > .sc-round-header { background: #0d1a0d; }
.sc-round-name { font-weight: bold; font-size: 0.95em; color: #eee; flex: 1; }
.sc-round-countdown { font-size: 0.8em; color: #9f9; border: 1px solid #3a7a3a; padding: 2px 7px; border-radius: 4px; }
.sc-round-tag     { font-size: 0.78em; color: #888; border: 1px solid #333; padding: 2px 7px; border-radius: 4px; }
.sc-round-cutoff  { font-size: 0.78em; color: #aaa; }
.sc-round-attempts{ font-size: 0.78em; color: #666; }

.sc-lb-table { margin: 0; border-radius: 0; border: none; border-top: 1px solid #222; }
.sc-lb-eliminated td { color: #555; }
.sc-lb-eliminated td a { color: #555; }

/* ============================================================
   /play — Dedicated 3-Column Live Game Hub (no left sidebar)
   ============================================================ */

body.play-hub-body {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.play-hub-topbar {
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-sizing: border-box;
}

.play-hub-topbar-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.play-hub-topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-hub-topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.play-hub-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.play-hub-lang-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #88aaff;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
}

.play-hub-lang-btn:hover {
  color: #ffff00;
}

.play-hub-lang-btn.active {
  color: #ffcc00;
  font-weight: bold;
  border-color: rgba(255, 204, 0, 0.45);
  background: rgba(255, 204, 0, 0.12);
}

.play-hub-brand {
  color: #ffcc00;
  font-size: 14px;
  letter-spacing: 0.4px;
}

.play-hub-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
}

.play-hub-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 6px #2ecc71;
  display: inline-block;
}

.play-hub-muted,
.ph-muted {
  color: #aaa;
  font-size: 11px;
}

.play-hub-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 11px;
  cursor: pointer;
  line-height: 1.4;
}

.play-hub-btn:hover {
  border-color: #ffcc00;
  color: #ffcc00;
}

.play-hub-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.play-hub-link-btn {
  text-decoration: none;
  display: inline-block;
}

.play-hub-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(210px, 255px) minmax(620px, 1fr) minmax(210px, 255px);
}

.play-hub-grid.panels-hidden {
  grid-template-columns: 1fr;
}

.play-hub-grid.panels-hidden .play-hub-panel {
  display: none;
}

.play-hub-panel {
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.play-hub-panel-left {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.play-hub-panel-right {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.play-hub-panel::-webkit-scrollbar { width: 6px; }
.play-hub-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.play-hub-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: auto;
}

.play-hub-frame-wrap {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7);
  line-height: 0;
}

.play-hub-card {
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  padding: 8px 10px;
}

.play-hub-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-weight: bold;
  font-size: 12px;
  color: #ffcc00;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.play-hub-badge {
  font-size: 10px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ddd;
  white-space: nowrap;
}

.play-hub-badge-live {
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.55);
  background: rgba(46, 204, 113, 0.12);
}

.play-hub-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.play-hub-tbl th {
  text-align: left;
  color: #aaa;
  font-weight: normal;
  padding: 2px 4px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.play-hub-tbl td {
  padding: 3px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: middle;
}

.play-hub-tbl tr.play-hub-adv td:first-child {
  color: #2ecc71;
  font-weight: bold;
}

.play-hub-tbl .ph-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.play-hub-tbl .ph-name {
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-hub-card-ft {
  margin-top: 6px;
  text-align: right;
  font-size: 11px;
}

.play-hub-card-ft a {
  color: #88aaff;
}

.play-hub-card-ft a:hover {
  color: #ffff00;
}

.play-hub-empty {
  color: #999;
  font-size: 11px;
  padding: 4px 0;
}

.play-hub-tabs {
  display: inline-flex;
  gap: 4px;
}

.play-hub-tab {
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 10px;
  cursor: pointer;
}

.play-hub-tab.active {
  background: #ffcc00;
  color: #000;
  border-color: #ffcc00;
  font-weight: bold;
}

.play-hub-champ {
  font-size: 12px;
  padding: 4px 0 6px;
  color: #ffcc00;
  font-weight: bold;
}

.play-hub-matchups {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
}

.play-hub-matchups li {
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  line-height: 1.4;
}

.play-hub-matchups .ph-win a {
  color: #7ee2a8;
  font-weight: bold;
}

.play-hub-matchups .ph-time {
  color: #888;
  font-size: 10px;
  margin-left: 4px;
}

@media (max-width: 1179px) {
  body.play-hub-body {
    height: auto;
    overflow: auto;
  }
  .play-hub-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .play-hub-center {
    grid-column: 1 / -1;
    order: -1;
  }
  .play-hub-panel {
    overflow-y: visible;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 720px) {
  .play-hub-grid {
    grid-template-columns: 1fr;
  }
  .play-hub-topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 6px 10px;
  }
}

.play-hub-mode-pill {
  border-color: rgba(255, 204, 0, 0.45);
  color: #ffcc00;
}

.play-hub-mode-reset {
  background: rgba(255, 204, 0, 0.16);
  color: #ffcc00;
  border: 1px solid rgba(255, 204, 0, 0.4);
  border-radius: 3px;
  padding: 0 5px;
  font-size: 10px;
  cursor: pointer;
}

.play-hub-mode-reset:hover {
  background: #ffcc00;
  color: #000;
}

.play-hub-timer {
  font-size: 11px;
  font-weight: bold;
  color: #7ee2a8;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.35);
  border-radius: 4px;
  padding: 4px 8px;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.play-hub-card-active {
  border-color: rgba(255, 204, 0, 0.65);
}

.ph-streak {
  font-size: 10px;
  color: #ff9933;
  margin-left: 3px;
}

.play-hub-discord-btn {
  text-decoration: none;
  border-color: rgba(88, 101, 242, 0.7);
  background: rgba(88, 101, 242, 0.22);
  color: #dbe0ff;
}

.play-hub-discord-btn:hover {
  background: rgba(88, 101, 242, 0.42);
  border-color: #8895ff;
  color: #fff;
}

/* Gold / Silver / Bronze distinction for top 3 hole record holders */
.play-hub-tbl tr.ph-medal-1 {
  background: rgba(255, 215, 0, 0.14);
}
.play-hub-tbl tr.ph-medal-1 td:first-child,
.play-hub-tbl tr.ph-medal-1 a {
  color: #ffd700;
  font-weight: bold;
}

.play-hub-tbl tr.ph-medal-2 {
  background: rgba(192, 192, 192, 0.12);
}
.play-hub-tbl tr.ph-medal-2 td:first-child,
.play-hub-tbl tr.ph-medal-2 a {
  color: #e0e0e0;
  font-weight: bold;
}

.play-hub-tbl tr.ph-medal-3 {
  background: rgba(205, 127, 50, 0.14);
}
.play-hub-tbl tr.ph-medal-3 td:first-child,
.play-hub-tbl tr.ph-medal-3 a {
  color: #e59853;
  font-weight: bold;
}
