:root {
  /* IK Raid: royal blue jerseys, white accents, black outlines, red sparingly */
  --color-raid-blue: #0047ab;
  --color-raid-blue-deep: #003580;
  --color-bg: #eef1f5;
  --color-bg-elevated: #ffffff;
  --color-surface: #ffffff;
  --color-border-subtle: rgba(11, 17, 32, 0.12);
  --color-primary: var(--color-raid-blue);
  --color-primary-soft: rgba(0, 71, 171, 0.12);
  --color-accent: #0b1120;
  --color-accent-red: #d70000;
  --color-text: #0b1120;
  --color-text-muted: #5c6570;
  --color-danger: #dc2626;
  --color-success: #15803d;

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;

  --shadow-soft: 0 4px 20px rgba(0, 35, 90, 0.12);
  --shadow-subtle: 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-button: 0 4px 14px rgba(0, 35, 90, 0.35);

  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-sans: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  --header-height: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0, 71, 171, 0.08), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #eef1f5 45%, #e8ecf2 100%);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 var(--space-sm);
  line-height: 1.6;
}

.muted {
  color: var(--color-text-muted);
}

.small {
  font-size: 0.875rem;
}

.is-hidden {
  display: none !important;
}

/* Buttons & interactive elements */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  background: transparent;
  color: var(--color-text);
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.1s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.btn.primary {
  background: linear-gradient(
    180deg,
    var(--color-raid-blue) 0%,
    var(--color-raid-blue-deep) 100%
  );
  border-color: rgba(11, 17, 32, 0.35);
  color: #ffffff;
  box-shadow: var(--shadow-button);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 35, 90, 0.45);
}

.btn.ghost {
  border-color: var(--color-border-subtle);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
}

.btn.ghost:hover {
  border-color: rgba(15, 23, 42, 0.18);
  background: #ffffff;
}

.btn.chip {
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--color-border-subtle);
  font-size: 0.8rem;
}

.btn.chip.is-active {
  background: var(--color-primary-soft);
  border-color: rgba(0, 71, 171, 0.45);
  color: #0b1120;
}

.btn-group {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

button {
  font-family: inherit;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Form fields */

.field {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.field-label {
  color: var(--color-text-muted);
}

select {
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  background: #ffffff;
  color: var(--color-text);
  padding: 0.4rem 1.75rem 0.4rem 0.75rem;
  min-width: 10rem;
}

select:hover {
  border-color: rgba(0, 71, 171, 0.35);
}

/* Utility containers */

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.card-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
}

@media (min-width: 720px) {
  .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .card-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

