:root {
  color-scheme: light;
  --ink: #17345e;
  --muted: #61758a;
  --line: #d9e5ef;
  --paper: #ffffff;
  --fog: #f4f8fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

header,
main,
footer {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

header {
  padding: 64px 0 48px;
}

.event-name {
  margin: 0 0 12px;
  color: #2586b8;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.event-details div {
  display: flex;
  gap: 10px;
}

.event-details dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.event-details dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

main {
  padding-bottom: 64px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: 18px;
  background: var(--paper);
}

.game-card--coral { --accent: #ef6b69; }
.game-card--blue { --accent: #2ba9dd; }
.game-card--navy { --accent: #1b3078; }
.game-card--green { --accent: #3c9b78; }

.number {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.game-card h3 {
  min-height: 3.2em;
  margin-bottom: 14px;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.45;
}

.meta {
  min-height: 1.5em;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.game-card a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.game-card a:hover {
  background: var(--accent);
}

.game-card a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 680px) {
  header,
  main,
  footer {
    width: min(100% - 28px, 1080px);
  }

  header {
    padding-top: 44px;
  }

  .event-details,
  .event-details div {
    display: grid;
  }

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

  .game-card h3,
  .meta {
    min-height: 0;
  }

  .game-card a {
    width: 100%;
  }
}

