:root {
  --arena-graphite: #12141C;
  --arena-graphite-raised: #1C1F2B;
  --arena-graphite-border: #2E3345;
  --electric-blue: #2F7DFF;
  --electric-blue-soft: #1A3A6B;
  --royal-purple: #7B3FE4;
  --royal-purple-soft: #2A1B4A;
  --elixir-orange: #FF6B1A;
  --elixir-orange-soft: #4A2410;
  --frost-white: #F4F6FB;
  --steel-muted: #A7AEC4;
  --success-green: #2ECC71;
  --danger-red: #FF4D4D;
  --hover-border: #3D4560;
  --hover-blue: #1F63D6;

  --font-heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --radius-0: 0px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 8px 32px rgba(0, 0, 0, 0.45);
  --focus-ring: 0 0 0 3px rgba(47, 125, 255, 0.35);

  --container-max: 1200px;
  --container-pad-mobile: 24px;
  --container-pad-desktop: 48px;
  --card-gap-mobile: 16px;
  --card-gap-desktop: 24px;
  --reading-column: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--frost-white);
  background-color: var(--arena-graphite);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--frost-white);
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1.05;
  margin-block-end: var(--space-4);
}

h2 {
  font-size: clamp(28px, 4vw, 32px);
  line-height: 1.1;
  margin-block-end: var(--space-4);
}

h3 {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-block-end: var(--space-3);
}

h4 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-block-end: var(--space-3);
}

h5 {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-block-end: var(--space-2);
}

h6 {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-block-end: var(--space-2);
}

p {
  font-size: 16px;
  line-height: 1.6;
  margin-block-end: var(--space-4);
}

p:last-child {
  margin-block-end: 0;
}

a {
  color: var(--electric-blue);
  text-decoration: none;
  transition: color 150ms ease-out;
}

a:hover {
  color: var(--frost-white);
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

ul,
ol {
  margin-block-end: var(--space-4);
  padding-inline-start: var(--space-5);
}

ul:last-child,
ol:last-child {
  margin-block-end: 0;
}

li {
  line-height: 1.6;
}

blockquote {
  margin-block-end: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background-color: var(--royal-purple-soft);
  border-inline-start: 4px solid var(--royal-purple);
  border-radius: var(--radius-md);
  color: var(--frost-white);
}

blockquote:last-child {
  margin-block-end: 0;
}

blockquote p {
  margin-block-end: var(--space-2);
}

blockquote p:last-child {
  margin-block-end: 0;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  object-fit: cover;
}

figure {
  margin-block-end: var(--space-4);
}

figure:last-child {
  margin-block-end: 0;
}

figcaption {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel-muted);
  margin-block-start: var(--space-2);
}

hr {
  border: none;
  border-top: 1px solid var(--arena-graphite-border);
  margin-block: var(--space-4);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-4);
}

table:last-child {
  margin-block-end: 0;
}

th,
td {
  text-align: start;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--arena-graphite-border);
  font-size: 14px;
  line-height: 1.55;
}

th {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--frost-white);
  background-color: var(--arena-graphite-raised);
}

caption {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel-muted);
  margin-block-end: var(--space-2);
  text-align: start;
}

code,
pre,
kbd,
samp {
  font-family: "Courier New", monospace;
  font-size: 14px;
}

pre {
  background-color: var(--arena-graphite-raised);
  border: 1px solid var(--arena-graphite-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-x: auto;
  margin-block-end: var(--space-4);
}

pre:last-child {
  margin-block-end: 0;
}

code {
  background-color: var(--arena-graphite-raised);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

button,
input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--frost-white);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

input,
select,
textarea {
  background-color: var(--arena-graphite-raised);
  border: 1px solid var(--arena-graphite-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--electric-blue);
  box-shadow: var(--focus-ring);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--frost-white);
  margin-block-end: var(--space-2);
}

fieldset {
  border: 1px solid var(--arena-graphite-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-block-end: var(--space-4);
}

fieldset:last-child {
  margin-block-end: 0;
}

legend {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-inline: var(--space-2);
  color: var(--frost-white);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-mobile);
}

.reading-column {
  max-width: var(--reading-column);
}

.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;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  min-height: 44px;
  text-decoration: none;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

.btn-primary {
  background-color: var(--electric-blue);
  color: var(--frost-white);
  border: 1px solid var(--electric-blue);
}

.btn-primary:hover {
  background-color: var(--hover-blue);
  border-color: var(--hover-blue);
  color: var(--frost-white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--electric-blue);
  border: 1px solid var(--electric-blue);
}

.btn-ghost:hover {
  background-color: var(--electric-blue-soft);
  color: var(--frost-white);
}

.btn-play {
  background-color: var(--elixir-orange);
  color: var(--arena-graphite);
  border: 1px solid var(--elixir-orange);
}

.btn-play:hover {
  background-color: #E55A0F;
  border-color: #E55A0F;
  color: var(--arena-graphite);
}

.card {
  background-color: var(--arena-graphite-raised);
  border: 1px solid var(--arena-graphite-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  transition: border-color 150ms ease-out, transform 150ms ease-out;
}

.card:hover {
  border-color: var(--hover-border);
  transform: translateY(-2px);
}

.card > :last-child {
  margin-block-end: 0;
}

.panel {
  background-color: var(--arena-graphite-raised);
  border: 1px solid var(--arena-graphite-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.panel > :last-child {
  margin-block-end: 0;
}

.panel-blue {
  border-inline-start: 4px solid var(--electric-blue);
}

.panel-purple {
  border-inline-start: 4px solid var(--royal-purple);
}

.panel-orange {
  border-inline-start: 4px solid var(--elixir-orange);
}

.tag {
  display: inline-block;
  background-color: var(--royal-purple-soft);
  color: var(--frost-white);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
}

.stat-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  background-color: var(--arena-graphite-raised);
  border: 1px solid var(--arena-graphite-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--frost-white);
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.3;
  color: var(--steel-muted);
}

.caption {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel-muted);
}

.breadcrumb {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--steel-muted);
}

.breadcrumb a {
  color: var(--steel-muted);
}

.breadcrumb a:hover {
  color: var(--frost-white);
}

.breadcrumb .current {
  color: var(--frost-white);
}

.breadcrumb-separator {
  margin-inline: var(--space-2);
  color: var(--arena-graphite-border);
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.flex > * {
  min-width: 0;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.flex-column {
  flex-direction: column;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-between {
  align-items: center;
  justify-content: space-between;
}

.flex-start {
  align-items: flex-start;
}

.flex-end {
  align-items: flex-end;
}

.flex-1 {
  flex: 1 1 0%;
  min-width: 0;
}

.grid {
  display: grid;
  gap: var(--card-gap-mobile);
}

.grid > * {
  min-width: 0;
}

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

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

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

.divider {
  border: none;
  border-top: 1px solid var(--arena-graphite-border);
  margin-block: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--container-pad-desktop);
  }

  .grid {
    gap: var(--card-gap-desktop);
  }

  .panel-blue,
  .panel-purple,
  .panel-orange {
    border-inline-start-width: 4px;
  }
}

@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .panel-blue,
  .panel-purple,
  .panel-orange {
    border-inline-start: none;
    border-top: 4px solid transparent;
  }

  .panel-blue {
    border-top-color: var(--electric-blue);
  }

  .panel-purple {
    border-top-color: var(--royal-purple);
  }

  .panel-orange {
    border-top-color: var(--elixir-orange);
  }

  .btn-play {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}