@font-face {
  font-family: Nunito;
  src: url("/assets/fonts/Nunito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url("/assets/fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url("/assets/fonts/Nunito-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
:root {
  --background: #faf8f4;
  --ink: #393747;
  --muted: #6c6875;
  --primary: #5e5383;
  --tint: #ece5f4;
  --white: #fff;
  --mint: #e4efe8;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0 auto;
  padding: 32px 80px 48px;
  max-width: 1280px;
  background: var(--background);
  color: var(--ink);
  font:
    400 18px/1.25 Nunito,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 5px;
}
a:hover.text-link,
.footer-links a:hover,
.desktop-link:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-wrap: balance;
}
h2 {
  font-size: 28px;
  font-weight: 800;
}
h3 {
  font-size: 22px;
  font-weight: 800;
}
p {
  overflow-wrap: break-word;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px;
  background: white;
  z-index: 5;
}
.skip:focus {
  top: 10px;
}
.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
.brand {
  font-size: 22px;
  font-weight: 800;
}
.navigation nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 16px;
  font-weight: 700;
}
.language {
  position: relative;
}
.language summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.language summary::-webkit-details-marker {
  display: none;
}
.language ul {
  position: absolute;
  right: 0;
  top: 36px;
  z-index: 3;
  padding: 8px;
  list-style: none;
  background: white;
  box-shadow: 0 8px 24px #39374718;
  border-radius: 12px;
  min-width: 150px;
}
.language a {
  display: block;
  padding: 12px;
}
.language a:hover,
.language [aria-current] {
  background: var(--tint);
  border-radius: 8px;
}
main {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 600fr) minmax(0, 448fr);
  gap: 72px;
  align-items: start;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}
.hero:not(.invitation) .hero-copy {
  padding-top: 36px;
}
.eyebrow {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.lead {
  color: var(--muted);
  font-size: 18px;
}
.small {
  font-size: 14px;
}
.muted {
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 24px;
  min-height: 52px;
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 700;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.button:hover {
  filter: brightness(0.93);
  transform: translateY(-1px);
}
.secondary {
  background: var(--white);
  color: var(--primary);
}
.visual {
  padding: 32px;
  background: var(--tint);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  width: 100%;
}
.board {
  display: block;
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}
.visual figcaption {
  font-size: 14px;
  color: var(--primary);
}
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.game-card {
  background: var(--white);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.game-card:hover {
  box-shadow: 0 8px 24px #39374712;
  transform: translateY(-2px);
}
.card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
}
.game-card h3 {
  font-size: 28px;
}
.game-card p {
  color: var(--muted);
}
.text-link {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.card-copy .text-link {
  margin-top: auto;
}
.banner {
  padding: 40px;
  background: var(--mint);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.banner p {
  color: var(--muted);
}
footer {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer h2 {
  font-size: 22px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 16px;
}
.rules {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0 0;
}
.rules li {
  padding: 24px;
  border-radius: 24px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rule-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}
.rules p {
  color: var(--muted);
}
.availability {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.availability h2 {
  font-size: 22px;
}
.notice {
  background: white;
  border-radius: 20px;
  padding: 20px;
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
}
.invitation {
  grid-template-columns: minmax(0, 448fr) minmax(0, 600fr);
}
.prose {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.prose p {
  line-height: 1.6;
}
.prose a:not(.button) {
  text-decoration: underline;
}
.prose h1 {
  font-size: 40px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 701px) and (max-width: 1100px) {
  body {
    padding-left: 40px;
    padding-right: 40px;
  }
  .hero {
    gap: 32px;
  }
  h1 {
    font-size: 48px;
  }
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rules {
    gap: 16px;
  }
}
@media (max-width: 700px) {
  body {
    padding: 24px 24px 48px;
  }
  .navigation {
    gap: 16px;
    margin-bottom: 32px;
  }
  .brand {
    font-size: 20px;
  }
  .navigation nav {
    gap: 0;
  }
  .desktop-link {
    display: none;
  }
  .language summary {
    min-width: 48px;
    justify-content: flex-end;
  }
  main {
    gap: 32px;
  }
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 28px;
  }
  .hero,
  .invitation {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .hero-copy {
    width: 100%;
  }
  .hero:not(.invitation) .hero-copy {
    padding-top: 0;
  }
  .visual {
    padding: 20px;
  }
  .catalog {
    display: flex;
    flex-direction: column;
  }
  .game-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 16px;
    gap: 16px;
    border-radius: 20px;
  }
  .card-copy {
    gap: 8px;
  }
  .game-card h3 {
    font-size: 22px;
  }
  .game-card p {
    font-size: 14px;
  }
  .section-heading {
    margin-bottom: 32px;
  }
  .banner {
    padding: 24px;
  }
  .rules {
    grid-template-columns: 1fr;
  }
  .footer-links {
    gap: 12px 20px;
  }
  .footer-links a:first-child {
    flex-basis: 100%;
  }
  footer {
    margin-top: 32px;
  }
  .prose h1 {
    font-size: 36px;
  }
}
@media (max-width: 359px) {
  body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand {
    font-size: 18px;
  }
  h1 {
    font-size: 36px;
  }
  .game-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
  .button:hover,
  .game-card:hover {
    transform: none;
  }
}

[hidden] {
  display: none !important;
}
.language ul {
  max-height: min(70vh, 32rem);
  overflow-y: auto;
}
[dir="rtl"] .language ul {
  right: auto;
  left: 0;
}
[dir="rtl"] .hero-copy {
  text-align: right;
}
[data-challenge] .hero-copy {
  overflow-wrap: anywhere;
}
