.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, .12);
}

.menu-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.menu-icon {
  display: flex;
  width: 1.25rem;
  flex-direction: column;
  gap: .3rem;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
}

/* Palette inspirée de la charte Swisscom : bleu marine, bleu vif et gris clairs. */
:root {
  --navy: #001155;
  --navy-dark: #000b33;
  --blue: #0a5aff;
  --blue-dark: #0044cc;
  --blue-light: #4d7fff;
  --sky: #e6edfa;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --line: #d6dde9;
  --text: #16181d;
  --muted: #5b6676;
  --danger: #d2262b;
  --danger-hover: #b91c1c;
  --success: #0f8a5f;
  --success-light: #10b981;
  --warning: #f59e0b;
  --sidebar-width: 280px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all 0.2s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ==================== RULES ==================== */
.rules-page {
  --rules-green: #1b7a44;
  --rules-green-light: #e8f5ed;
  --rules-red: #c8102e;
  --rules-border: #d6dde9;
  --rules-muted: #5b6676;
  background: #fbfcfd;
  padding-bottom: 4rem;
}

.rules-hero {
  padding: 4rem 1.5rem 3.25rem;
  background: var(--rules-green);
  color: #fff;
  text-align: center;
}

.rules-hero h1 {
  margin: .4rem 0;
  font-size: 2.2rem;
  line-height: 1.2;
}

.rules-hero p {
  margin: 0;
}

.rules-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .88;
}

.rules-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.rules-toc {
  margin: -1.75rem 0 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rules-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rules-toc h2 {
  margin: 0 0 .6rem;
  color: var(--rules-muted);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rules-toc ol {
  columns: 2;
  margin: 0;
  padding-left: 1.25rem;
}

.rules-toc li {
  margin: .25rem 0;
}

.rules-toc a,
.rules-links a {
  color: var(--rules-green);
  font-weight: 600;
  text-decoration: none;
}

.rules-toc a:hover,
.rules-links a:hover {
  text-decoration: underline;
}

.rules-page section {
  margin: 0 0 2.75rem;
  scroll-margin-top: 1.25rem;
}

.rules-page section>h2 {
  margin: 0 0 1rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--rules-green-light);
  font-size: 1.35rem;
}

.rules-page section>h2 span {
  color: var(--rules-green);
}

.rules-page h3 {
  margin: 1.4rem 0 .35rem;
  font-size: 1rem;
}

.rules-page p {
  margin: .6rem 0;
}

.rules-page ul:not(.rules-links) {
  margin: .7rem 0;
  padding-left: 1.4rem;
}

.rules-page li {
  margin: .45rem 0;
}

.rules-page li::marker {
  color: var(--rules-green);
}

.rules-callout {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--rules-green);
  border-radius: 0 6px 6px 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.rules-callout h3 {
  margin-top: 0;
}

.rules-callout-warning {
  border-left-color: var(--rules-red);
  background: #fff6f7;
}

.rules-table-scroll {
  overflow-x: auto;
  margin: 1rem 0;
}

.rules-page table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.rules-page caption {
  padding-bottom: .5rem;
  color: var(--rules-muted);
  text-align: left;
}

.rules-page th,
.rules-page td {
  padding: .7rem .85rem;
  border: 1px solid var(--rules-border);
  text-align: left;
  vertical-align: top;
}

.rules-page th {
  background: var(--rules-green-light);
  font-size: .85rem;
  text-transform: uppercase;
}

.rules-links {
  display: grid;
  gap: .6rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.rules-links li {
  margin: 0;
  padding: .75rem 1rem;
  border: 1px solid var(--rules-border);
  border-radius: 6px;
  background: #fff;
}

.rules-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rules-border);
  color: var(--rules-muted);
  font-size: .9rem;
}

@media (max-width: 560px) {
  .rules-hero {
    padding: 2.75rem 1.25rem 2.5rem;
  }

  .rules-hero h1 {
    font-size: 1.8rem;
  }

  .rules-toc ol {
    columns: 1;
  }

  .rules-page th,
  .rules-page td {
    min-width: 9rem;
  }
}

/* ==================== ADMIN LAYOUT ==================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-icon {
  font-size: 1.75rem;
}

.sidebar-nav {
  flex: 1;
  padding: 1.5rem 1rem;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-section-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
  padding: 0 0.75rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 0.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-link.active {
  background: var(--blue);
  color: #fff;
}

.nav-link.logout-link {
  color: rgba(255, 255, 255, 0.7);
}

.nav-link.logout-link:hover {
  background: rgba(234, 179, 8, 0.15);
  color: #fbbf24;
}

.nav-icon {
  font-size: 1.25rem;
  width: 1.5rem;
  text-align: center;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.user-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.admin-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.visible {
  display: block;
  opacity: 1;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle:hover {
  background: var(--bg);
}

.hamburger {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.hamburger::before {
  top: -4px;
}

.hamburger::after {
  bottom: -4px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb-link {
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-link:hover {
  color: var(--blue);
}

.breadcrumb-separator {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-content {
  flex: 1;
  padding: 2rem;
}

/* ==================== STANDARD LAYOUT ==================== */

/* ==================== STANDARD LAYOUT ==================== */
.topbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--navy);
  color: #fff;
}

.topbar a {
  color: #fff;
}

.topbar .brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .01em;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar nav form {
  margin: 0;
}

.topbar .user {
  color: var(--sky);
  font-size: .85rem;
}

.topbar .icon-link {
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--blue);
  text-decoration: underline;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.admin-content main {
  max-width: none;
  margin: 0;
  padding: 0;
}

h1 {
  margin-top: 0;
  color: var(--navy);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  margin-top: 2rem;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 600;
}

h3 {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 600;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--line);
}

.page-header h1 {
  margin: 0;
  font-size: 2rem;
}

.page-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.flash {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash.notice {
  background: #d1fae5;
  border-left: 4px solid var(--success);
  color: #065f46;
}

.flash.alert {
  background: #fee2e2;
  border-left: 4px solid var(--danger);
  color: #991b1b;
}

.flash ul {
  margin: 0;
  padding-left: 1.2rem;
}

.panel,
.card,
.match {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.card h2 a {
  color: var(--navy);
}

.card h2 a:hover {
  color: var(--blue);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.cards.dashboard-cards {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 769px) {
  .cards.dashboard-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .cards.dashboard-cards {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, .8fr);
  }
}

.dashboard-cards>.card {
  min-width: 0;
}

.dashboard-updates {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.cards.tournament-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tournament-groups>.card {
  min-width: 0;
}

.tournament-overview>.card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tournament-team-pages {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .75rem;
  min-width: 0;
}

.tournament-team-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tournament-team-list.paginated {
  min-height: 16rem;
  flex-shrink: 0;
}

.tournament-team-list li {
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
}

.tournament-team-list li:first-child {
  padding-top: 0;
}

.tournament-team-list li:last-child {
  border-bottom: none;
}

.tournament-team-list li.current-team {
  padding: .65rem;
  background: var(--sky);
  border-left: 3px solid var(--blue);
}

.team-summary-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem .5rem;
}

.team-owner-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.team-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: auto;
  padding-top: .5rem;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  color: var(--muted);
}

.team-pagination .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  font-size: .8rem;
  line-height: 1;
}

.team-pagination [aria-disabled="true"] {
  opacity: .4;
}

@media (min-width: 1100px) {
  .tournament-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Dashboard Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: var(--sky);
}

.stat-icon.green {
  background: #d1fae5;
}

.stat-icon.orange {
  background: #fef3c7;
}

.stat-icon.purple {
  background: #e9d5ff;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-value .badge {
  white-space: normal;
  max-width: 100%;
}

.stat-trend {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.stat-trend.up {
  color: var(--success);
}

.stat-trend.down {
  color: var(--danger);
}

.recent-user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.recent-user-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.recent-user-meta {
  min-width: 0;
  flex: 1;
}

.recent-user-name,
.recent-user-email {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.recent-user-status {
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--sky);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge.status-acceptee,
.badge.status-realisee {
  background: #d1fae5;
  color: #065f46;
}

.badge.status-refusee {
  background: #fee2e2;
  color: #991b1b;
}

.badge.status-etudiee {
  background: #fef3c7;
  color: #92400e;
}

.badge.success {
  background: #d1fae5;
  color: #065f46;
}

.badge.warning {
  background: #fef3c7;
  color: #92400e;
}

.badge.danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge.info {
  background: var(--sky);
  color: var(--navy);
}

.tournament-card-header {
  text-align: center;
}

.cup {
  text-align: center;
  padding: 2rem 1.25rem;
  background: linear-gradient(180deg, var(--sky) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card.cup-card {
  text-align: center;
}

.cup-trophy {
  font-size: 4.5rem;
  line-height: 1;
}

.cup-winners {
  margin-top: 0.75rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.cup-country {
  margin-top: 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.actions form {
  margin: 0;
}

.suggestion-actions>form {
  margin-left: auto;
}

.page-header .actions {
  margin: 0;
}

.button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.button:hover,
input[type="submit"]:hover {
  background: var(--blue-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button:active {
  transform: translateY(0);
}

.button.secondary,
input[type="submit"].secondary {
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--line);
}

.button.secondary:hover {
  background: var(--bg);
  border-color: var(--blue);
}

.button.danger {
  background: var(--danger);
  color: #fff;
}

.button.danger:hover {
  background: var(--danger-hover);
}

.button.small,
input[type="submit"].small {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.button.large {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.form {
  max-width: 460px;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.field label {
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

input,
select,
textarea {
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--blue-light);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 90, 255, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.wide {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th {
  background: var(--sky);
  color: var(--navy);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.875rem 1rem;
}

th,
td {
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--line);
}

tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background: var(--bg);
}

tbody tr:last-child td {
  border-bottom: none;
}

tr.qualified td {
  background: #eef7ff;
  font-weight: 600;
}

tr.unconfirmed td {
  background: #fff6e6;
}

.pending {
  color: #a35a00;
  font-weight: 600;
}

.hint {
  color: var(--muted);
  font-size: .85rem;
}

.roster-hint {
  display: block;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 400;
}

.suggestion {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.suggestion:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue-light);
}

.suggestion-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.suggestion-column {
  min-width: 0;
}

.suggestion-preview {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.suggestion-read-link {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
}

.suggestion-response-note {
  margin-top: .65rem;
}

.suggestion-refused {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.suggestion-refused>h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.suggestion-refused-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.suggestion-column>h2,
.suggestion-archive>h2 {
  margin-top: 0;
  font-size: 1rem;
}

.suggestion-archive {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}

.suggestion-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.suggestion-identifiers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.suggestion-kind.kind-amelioration {
  background: var(--sky);
  color: var(--blue-dark);
  text-decoration: none;
}

.suggestion-kind.kind-bug {
  background: #fbe0df;
  color: #8f2320;
  text-decoration: none;
}

.suggestion-head>.suggestion-reference {
  margin-left: auto;
}

.suggestion-head h2 {
  margin: 0;
  font-size: 1.1rem;
  flex: 1;
}

.suggestion-head h3 {
  margin: 0;
  font-size: 1.05rem;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.suggestion-reading-nav,
.suggestion-detail {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.suggestion-reading-nav {
  margin-bottom: 1.75rem;
}

.suggestion-back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
}

.suggestion-detail {
  overflow-wrap: anywhere;
}

.suggestion-detail .suggestion-head {
  display: block;
}

.suggestion-detail-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}

.suggestion-reference {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}

.suggestion-status-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  max-width: 100%;
}

.suggestion-status-form label {
  font-size: .8rem;
  color: var(--muted);
}

.suggestion-status-form select {
  min-width: 10rem;
  max-width: 100%;
  padding: .4rem .65rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: .85rem;
}

.suggestion-remark {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.suggestion-remark h2 {
  margin: 0 0 .75rem;
  font-size: 1rem;
}

.suggestion-detail h1 {
  min-width: 0;
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.25;
}

.suggestion-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  margin: 1.25rem 0 2rem;
  padding: .85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
}

.suggestion-meta strong {
  color: var(--text);
}

.suggestion-detail p {
  line-height: 1.8;
}

.suggestion-detail .suggestion-body>p:first-child {
  font-size: 1.1rem;
}

.suggestion-detail .actions {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.admin-response {
  background: var(--sky);
  border-left: 4px solid var(--blue);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 0.75rem;
}

.suggestion-detail .admin-response {
  margin-top: 2rem;
  padding: 1rem 0 1rem 1.25rem;
  background: transparent;
  border-left-width: 3px;
  border-radius: 0;
}

.suggestion-detail .admin-response h2 {
  margin: 0 0 .75rem;
  color: var(--blue-dark);
  font-size: 1rem;
}

.suggestion-detail .admin-response p:last-child {
  margin-bottom: 0;
}

.badge.status-acceptee,
.badge.status-realisee {
  background: #d9f2e6;
  color: #0f6b4a;
}

.badge.status-refusee {
  background: #fbe0df;
  color: #8f2320;
}

.badge.status-etudiee {
  background: #fdeccd;
  color: #8a5a00;
}

textarea {
  padding: .55rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
}

.match-filters {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  max-width: 34rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.match-filters a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .65rem .5rem;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
}

.match-filters a:hover,
.match-filters a[aria-current="page"] {
  color: var(--blue-dark);
  background: var(--sky);
  border-bottom-color: var(--blue);
}

.match {
  margin-bottom: .75rem;
}

.match.played {
  background: #fafbfd;
}

.dashboard-match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}

.dashboard-match>div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-match>.button {
  flex-shrink: 0;
}

.dashboard-match-teams {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .4rem;
  font-weight: 500;
}

.dashboard-team-name {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match.personal-match,
.dashboard-match.personal-match {
  background: var(--sky);
  border-color: var(--blue);
  border-left-width: 3px;
}

.dashboard-match.personal-match {
  padding: .75rem;
  border-left-style: solid;
}

.match-owner-label {
  margin: 0 0 .5rem;
  color: var(--blue-dark);
  font-size: .8rem;
  font-weight: 600;
}

.match-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .85rem;
  color: var(--muted);
}

.match-head .date {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.date-edit {
  display: inline-block;
}

.date-edit>summary {
  list-style: none;
  cursor: pointer;
  padding: .1rem .35rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  line-height: 1.2;
}

.date-edit>summary::-webkit-details-marker {
  display: none;
}

.date-edit>summary:hover {
  background: var(--sky);
  border-color: var(--blue);
}

.date-edit[open]>summary {
  background: var(--sky);
  border-color: var(--blue);
}

.date-edit[open]>.date-edit-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .35rem);
  z-index: 10;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .6rem;
  box-shadow: 0 6px 18px rgba(0, 17, 85, .15);
  width: min(28rem, 100%);
  white-space: normal;
}

.match-editor-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin-left: auto;
  margin-bottom: .35rem;
}

.date-edit .hint {
  margin-top: .35rem;
}

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin: .6rem 0;
  font-size: 1.05rem;
}

.match-teams> :last-child {
  text-align: right;
}

.match-teams .score {
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}

.match-teams .winner {
  font-weight: 700;
  color: var(--blue-dark);
}

.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.score-edit>summary,
.group-matches>summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-size: .85rem;
  font-weight: 600;
}

.score-edit-panel {
  margin-top: .5rem;
}

.group-matches {
  margin-top: .75rem;
}

.group-matches .match {
  background: var(--bg);
}

.group-matches .match-head {
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
}

.group-matches .match-head .date {
  display: block;
  max-width: 100%;
}

.group-matches[open]>summary {
  margin-bottom: .5rem;
}

.availability-match-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.availability-team-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.availability-team-progress h2 {
  margin: 0 0 .75rem;
  font-size: 1.1rem;
}

.availability-team-progress ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.availability-team-progress li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}

.availability-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.availability-form legend {
  font-weight: 600;
  margin-bottom: .75rem;
}

.availability-grid-actions {
  margin-bottom: .75rem;
}

.availability-filter {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  cursor: pointer;
}

.availability-filter input {
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--blue);
}

.availability-form [hidden] {
  display: none !important;
}

.availability-grid-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.availability-grid {
  width: 100%;
  min-width: calc(9rem + var(--availability-days, 10) * 6rem);
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0;
  box-shadow: none;
}

.availability-grid th,
.availability-grid td {
  padding: .35rem;
  text-align: center;
  font-size: .85rem;
  border: 1px solid var(--line);
}

.availability-grid th {
  white-space: nowrap;
}

.availability-grid th:first-child {
  position: sticky;
  left: 0;
  width: 9rem;
  background: var(--surface);
  color: var(--text);
  z-index: 1;
}

.availability-grid-sticky-header {
  position: fixed;
  top: 0;
  z-index: 20;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.availability-grid-sticky-header[hidden] {
  display: none;
}

.availability-grid-sticky-table {
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0;
  box-shadow: none;
}

.availability-grid-sticky-table th {
  padding: .35rem;
  text-align: center;
  font-size: .85rem;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--surface);
}

.availability-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2.75rem;
  margin: 0;
  cursor: pointer;
}

.availability-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  margin: 0;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
}

.availability-option:has(input:checked) {
  background: var(--sky);
  border-color: var(--blue);
}

.availability-option input,
.availability-day input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--blue);
}

.availability-votes {
  display: flex;
  justify-content: center;
  gap: .15rem;
  list-style: none;
  padding: 0;
  margin: .25rem 0;
  font-size: .75rem;
}

.availability-votes li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.8rem;
  flex: 0 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  line-height: 1;
}

.availability-player-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-weight: 700;
}

.availability-voter-number {
  font-size: .65rem;
}

.availability-vote-status {
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
}

.availability-votes [data-status="available"] {
  color: #17613a;
  background: #e7f4ee;
}

.availability-votes [data-status="unavailable"] {
  color: #b42318;
  background: #fbeaea;
}

.availability-votes [data-status="pending"] {
  color: var(--muted);
  background: var(--surface);
}

.availability-form fieldset:disabled .availability-option {
  opacity: .5;
  cursor: default;
}

.availability-confirmation {
  padding: 1rem 0 1rem 1.25rem;
  border-left: 3px solid var(--success);
  margin-top: 1.5rem;
}

.availability-confirmation h2 {
  font-size: 1.2rem;
  margin-top: 0;
}

.availability-history {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.availability-history summary {
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 768px) {
  .availability-team-progress {
    grid-template-columns: minmax(0, 1fr);
  }
}

.inline-form {
  display: flex;
  gap: .4rem;
  align-items: center;
  flex-wrap: wrap;
}

.score-input {
  width: 4rem;
}

.bracket {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: .5rem;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  flex: 0 0 300px;
  min-width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .75rem;
}

.round-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .75rem;
  margin-bottom: 1.25rem;
}

.round-matches {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: .75rem;
}

.round-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .6rem;
  margin: -.75rem -.75rem .75rem;
  background: var(--navy);
  color: #fff;
  border-radius: 8px 8px 0 0;
}

.round-header h2,
.round-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  flex: 1;
}

.round-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--blue);
  font-size: .8rem;
  font-weight: 700;
}

.round-count {
  font-size: .8rem;
  color: var(--sky);
}

.bracket-round .match,
.round-block .match {
  background: var(--bg);
}

.poster-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 214, 0, .42), transparent 22rem),
    radial-gradient(circle at 88% 18%, rgba(255, 61, 90, .38), transparent 20rem),
    linear-gradient(135deg, #071021 0%, #132048 45%, #09111f 100%);
  color: #fff;
}

.poster-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: .75rem;
  padding: .75rem;
  background: rgba(7, 16, 33, .82);
  backdrop-filter: blur(12px);
}

.tournament-poster {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1rem;
  width: min(100%, 210mm);
  aspect-ratio: 210 / 297;
  margin: 1.5rem auto 3rem;
  padding: 10mm;
  overflow: hidden;
  border: 4mm solid #f6ff00;
  border-radius: 0;
  background: #071021;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .38);
  isolation: isolate;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tournament-poster::before,
.tournament-poster::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.tournament-poster::before {
  inset: 1rem;
  border: 2px solid rgba(255, 255, 255, .28);
  z-index: 2;
}

.tournament-poster::after {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 33, .18) 0%, rgba(7, 16, 33, .1) 42%, rgba(7, 16, 33, .82) 100%),
    linear-gradient(90deg, rgba(7, 16, 33, .52) 0%, transparent 28%, transparent 72%, rgba(7, 16, 33, .52) 100%);
  z-index: 0;
}

.poster-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
}

.poster-arena,
.poster-callout,
.poster-footer {
  position: relative;
  z-index: 1;
}

.poster-kicker,
.poster-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  color: #08101f;
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.poster-kicker span,
.poster-footer span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .38rem .75rem;
  background: #f6ff00;
  box-shadow: 5px 5px 0 #00f0b8;
}

.poster-arena {
  min-height: 0;
  margin: .25rem 0;
}

.foosball-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 5px solid #fff;
  background:
    linear-gradient(90deg, transparent calc(50% - 2px), rgba(255, 255, 255, .85) 0 calc(50% + 2px), transparent 0),
    repeating-linear-gradient(110deg, rgba(0, 240, 184, .95) 0 18px, rgba(6, 16, 31, .96) 18px 36px);
  box-shadow: 12px 12px 0 #071021;
  transform: rotate(-2deg);
}

.field-circle,
.field-line,
.goal,
.rod,
.ball {
  position: absolute;
  display: block;
}

.field-circle {
  left: 50%;
  top: 50%;
  width: 8.5rem;
  height: 8.5rem;
  border: 4px solid rgba(255, 255, 255, .86);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.field-line {
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  background: rgba(255, 255, 255, .82);
  transform: translateY(-50%);
}

.goal {
  top: 37%;
  width: 3.2rem;
  height: 26%;
  border: 4px solid rgba(255, 255, 255, .9);
}

.goal-left {
  left: -4px;
  border-left: 0;
}

.goal-right {
  right: -4px;
  border-right: 0;
}

.rod {
  left: -4%;
  right: -4%;
  height: 9px;
  background: #f6ff00;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .28);
}

.rod-one {
  top: 18%;
}

.rod-two {
  top: 39%;
}

.rod-three {
  top: 61%;
}

.rod-four {
  top: 82%;
}

.rod i {
  position: absolute;
  top: 50%;
  width: 1.05rem;
  height: 2.8rem;
  border-radius: 999px 999px 4px 4px;
  background: #ff3d5a;
  box-shadow: 0 0 0 4px #071021;
  transform: translateY(-50%);
}

.rod i:nth-child(1) {
  left: 18%;
}

.rod i:nth-child(2) {
  left: 36%;
}

.rod i:nth-child(3) {
  left: 58%;
}

.rod i:nth-child(4) {
  left: 78%;
}

.rod-two i,
.rod-four i {
  background: #fff;
}

.ball {
  left: 58%;
  top: 47%;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #f6ff00;
  box-shadow: 0 0 0 5px #071021, 0 0 30px rgba(246, 255, 0, .9);
}

.poster-arena-caption {
  position: absolute;
  right: 1.25rem;
  bottom: -1rem;
  display: grid;
  gap: .35rem;
  max-width: 16rem;
  padding: 1rem 1.15rem;
  background: #fff;
  color: #071021;
  box-shadow: 9px 9px 0 #f6ff00;
  transform: rotate(2deg);
}

.poster-arena-caption span {
  color: #ff3d5a;
  font-size: .85rem;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.poster-arena-caption strong {
  font-size: 1.65rem;
  line-height: .95;
  text-transform: uppercase;
}

.poster-callout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 1.25rem;
  align-items: end;
  align-self: end;
}

.poster-copy {
  padding: 1.25rem;
  background: rgba(7, 16, 33, .84);
  border: 2px solid rgba(255, 255, 255, .36);
  box-shadow: 10px 10px 0 rgba(0, 240, 184, .72);
}

.poster-copy .poster-kicker {
  margin: 0 0 .75rem;
}

.poster-copy h1 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: .88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 #071021, 7px 7px 0 #00f0b8;
}

.poster-copy h1 span {
  display: block;
  color: #f6ff00;
  font-size: .48em;
}

.poster-hook {
  max-width: 28rem;
  margin: .65rem 0 1.15rem;
  color: #d9fff7;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.poster-label {
  display: inline-block;
  margin: 0 0 .75rem;
  padding: .32rem .65rem;
  background: #ff3d5a;
  color: #fff;
  font-size: .8rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.poster-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 1.9rem;
  line-height: .9;
  text-transform: uppercase;
}

.poster-copy p:not(.poster-label) {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: #d9fff7;
  font-size: 1.05rem;
  line-height: 1.35;
}

.poster-meta {
  display: grid;
  gap: .45rem;
  margin-top: 1.15rem;
  color: #fff;
  font-size: .98rem;
}

.poster-meta span {
  display: block;
  padding-left: .75rem;
  border-left: 5px solid #f6ff00;
}

.poster-qr-frame {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .55rem;
  padding: 1rem;
  background: #fff;
  color: #071021;
  box-shadow: 12px 12px 0 #00f0b8;
}

.poster-scan-badge {
  position: absolute;
  top: -.85rem;
  right: -.65rem;
  padding: .38rem .7rem;
  background: #f6ff00;
  color: #071021;
  font-size: .75rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(6deg);
}

.poster-qr {
  display: grid;
  place-items: center;
  width: min(100%, 140px);
  aspect-ratio: 1;
  padding: .35rem;
  background: #fff;
}

.poster-qr img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.poster-footer {
  align-self: end;
  justify-content: center;
  padding-top: .4rem;
}

.poster-footer i {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #fff;
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {

  html,
  body,
  .poster-page {
    width: 210mm;
    min-height: 297mm;
    background: #071021 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .poster-toolbar {
    display: none;
  }

  .tournament-poster {
    width: 210mm;
    height: 297mm;
    aspect-ratio: auto;
    margin: 0;
    padding: 10mm;
    border-width: 4mm;
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

@media (min-width: 769px) {
  .topbar .nav-menu[hidden] {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .admin-main {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .sidebar-overlay.visible {
    display: block;
  }

  .suggestion-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .topbar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .75rem 1rem;
  }

  .topbar .brand {
    line-height: 1.25;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 20;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: .75rem 1rem 1rem;
    background: var(--navy-dark);
    border-top: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 8px 18px rgba(0, 11, 51, .22);
  }

  .topbar .nav-menu[hidden] {
    display: none;
  }

  .topbar .nav-menu>a {
    padding: .75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .topbar .nav-menu .user {
    padding: .75rem 0 .35rem;
  }

  .topbar .nav-menu form,
  .topbar .nav-menu form .button {
    width: 100%;
  }

  .topbar .nav-menu form .button {
    margin-top: .5rem;
  }

  main {
    padding: 1.25rem 1rem;
  }

  .admin-content {
    padding: 1rem;
  }

  .admin-topbar {
    padding: 1rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .match-head {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
  }

  .match-head>.badge {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .match-head .date {
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .cards.tournament-groups {
    grid-template-columns: 1fr;
  }

  .suggestion-board,
  .suggestion-refused-list {
    grid-template-columns: 1fr;
  }

  .breadcrumb {
    display: none;
  }
}
