:root {
  --bg: #0e0b0b;
  --surface: #1a1414;
  --surface-2: #241b1b;
  --text: #f3ece9;
  --muted: #b9aaa5;
  --red: #da291c;
  --red-deep: #8f150c;
  --gold: #fbe122;
  --line: #3a2b2a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 Inter, system-ui, sans-serif;
}
h1, h2, h3 { font-family: Oswald, Impact, sans-serif; line-height: 1.15; letter-spacing: .01em; margin: 0 0 .5em; }
a { color: var(--gold); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* nav */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 11, 11, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; gap: 20px; align-items: center; height: 56px; overflow-x: auto; white-space: nowrap; }
nav .brand { font-family: Oswald, sans-serif; font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; }
nav .brand span { color: var(--red); }
nav a.link { color: var(--muted); text-decoration: none; font-size: 14px; }
nav a.link:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--text); }

/* hero */
header.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(218, 41, 28, .55), transparent 60%),
    linear-gradient(180deg, var(--red-deep), var(--bg) 85%);
  padding: 96px 0 72px;
}
.hero .kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .2em; font-size: 13px; font-weight: 600; }
.hero h1 { font-size: clamp(42px, 8vw, 88px); margin: 12px 0 16px; text-transform: uppercase; }
.hero p { max-width: 620px; color: #eadcd8; font-size: 18px; }
.hero .year-bg {
  position: absolute; right: -20px; bottom: -40px;
  font: 700 clamp(120px, 26vw, 300px)/1 Oswald, sans-serif;
  color: rgba(255, 255, 255, .05); pointer-events: none; user-select: none;
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 40px; }
.stat { background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 16px; }
.stat b { display: block; font: 700 36px/1 Oswald, sans-serif; color: var(--gold); }
.stat small { color: #e2d3cf; }

section { padding: 72px 0; }
section > .wrap > h2 { font-size: clamp(30px, 5vw, 44px); text-transform: uppercase; }
.lead { color: var(--muted); max-width: 680px; margin-bottom: 36px; }

/* era cards */
.eras { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.era {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  border-top: 4px solid var(--red);
}
.era .range { color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: .08em; }
.era h3 { font-size: 22px; margin-top: 6px; }
.era p { color: var(--muted); margin: 0; font-size: 15px; }

/* timeline */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  background: var(--surface); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font: 600 14px Inter, sans-serif; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 84px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.event { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 28px; padding: 0 0 28px; }
.event[hidden] { display: none; }
.event .yr { font: 700 22px/1.2 Oswald, sans-serif; color: var(--gold); text-align: right; padding-right: 8px; }
.event .dot { position: absolute; left: 78px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--bg); }
.event.dark .dot { background: #777; }
.event .body { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.event h3 { font-size: 19px; margin-bottom: 4px; }
.event p { margin: 0; color: var(--muted); font-size: 15px; }

/* munich */
.munich { background: linear-gradient(180deg, #111, #161212); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.munich .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; padding: 0; margin: 0; }
.names li { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; font-size: 15px; }
.names li small { display: block; color: var(--muted); font-size: 12px; }
.clock { font: 700 64px/1 Oswald, sans-serif; color: #ddd; margin: 8px 0; }

/* trophies */
.trophies { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.trophy { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; gap: 14px; align-items: center; }
.trophy b { font: 700 40px/1 Oswald, sans-serif; color: var(--gold); min-width: 52px; text-align: center; }
.trophy span { color: var(--text); font-size: 15px; }

/* legends */
.legends { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.legend { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.legend .init {
  width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font: 700 20px Oswald, sans-serif; margin-bottom: 12px;
}
.legend h3 { font-size: 20px; margin-bottom: 2px; }
.legend .role { color: var(--gold); font-size: 13px; font-weight: 600; }
.legend p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }

/* quiz */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; max-width: 680px; }
.quiz .q { font-size: 19px; font-weight: 600; margin-bottom: 14px; }
.quiz .opts { display: grid; gap: 8px; }
.quiz .opts button {
  text-align: left; background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font: 15px Inter, sans-serif; cursor: pointer;
}
.quiz .opts button:hover:not(:disabled) { border-color: var(--red); }
.quiz .opts button.right { background: #1d4d2a; border-color: #2f8a47; }
.quiz .opts button.wrong { background: #5a1a14; border-color: var(--red); }
.quiz .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: var(--muted); font-size: 14px; }
.quiz .next { background: var(--red); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font: 600 14px Inter, sans-serif; cursor: pointer; }
.quiz .next:disabled { opacity: .4; cursor: default; }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px; }

@media (max-width: 720px) {
  .munich .grid { grid-template-columns: 1fr; }
  .timeline::before { left: 56px; }
  .event { grid-template-columns: 56px 1fr; gap: 20px; }
  .event .yr { font-size: 17px; }
  .event .dot { left: 50px; }
  .names { grid-template-columns: 1fr; }
  header.hero { padding: 64px 0 48px; }
}

/* records (legenda page) */
section.alt { background: #120e0e; }
.records { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.record { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.record .label { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.record h3 { font-size: 26px; margin: 6px 0 4px; }
.record p { color: var(--muted); font-size: 15px; margin: 0; }

.eras + .records { margin-top: 16px; }
.munich h3 { font-size: 20px; }
.noscript { padding: 16px; margin: 0; background: #241b1b; color: #f3ece9; }
.noscript a { color: #fbe122; }

/* home cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  border-top: 4px solid var(--red); padding: 22px; text-decoration: none; color: var(--text);
}
.card:hover, .card:focus-visible { border-color: var(--red); background: var(--surface-2); }
.card h3 { font-size: 22px; margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
