@font-face {
  font-family: "Baloo 2";
  src: url("/assets/fonts/Baloo2-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/NunitoSans-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #20262a;
  --header: #1b2124;
  --panel: #292f32;
  --line: #434b4f;
  --paper: #fff4db;
  --muted: #c9cdc2;
  --gold: #ffd060;
  --orange: #fa8b46;
  --title: "Baloo 2", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, sans-serif;
  --measure: 1160px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1rem/1.55 var(--body); }
img { display: block; max-inline-size: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
[id] { scroll-margin-top: 1.2rem; }
.wrap { width: min(var(--measure), calc(100% - 3rem)); margin-inline: auto; }
.top { background: var(--header); border-bottom: 1px solid var(--line); }
.top::before { content: ""; display: block; height: 5px; background: repeating-linear-gradient(125deg, #ffc53a 0 14px, #282b2c 14px 28px); }
.bar { position: relative; min-height: 80px; display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.brand { position: absolute; z-index: 1; left: -20px; bottom: -27px; display: block; }
.brand img { width: 180px; height: auto; }
.actions, .navigation { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); }
.navigation a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.navigation a:hover { color: var(--paper); }
.language { position: relative; z-index: 2; }
.language summary {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  min-width: 66px; min-height: 44px; padding: .45rem .75rem;
  cursor: pointer; list-style: none; border: 1px solid transparent; border-radius: 8px;
  font: 700 1.05rem/1 var(--title);
}
.language summary::-webkit-details-marker { display: none; }
.language summary::after { content: ""; width: .4em; height: .4em; border: solid var(--gold); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.language[open] summary::after { transform: translateY(2px) rotate(225deg); }
.language summary:hover, .language[open] summary, .language summary:focus-visible { background: #333b3e; border-color: #566063; }
.language-menu {
  position: absolute; right: 0; top: calc(100% + .5rem);
  width: min(220px, calc(100vw - 2rem)); background: #2c3437;
  border: 1px solid #566063; border-radius: 10px; padding: .35rem;
  box-shadow: 0 10px 26px #0007;
}
.language-menu a { display: flex; gap: .8rem; align-items: center; min-height: 44px; border-radius: 6px; padding-inline: .75rem; text-decoration: none; }
.language-menu a:hover, .language-menu a:focus-visible { background: #3b4549; }
.language-menu a[aria-current] { background: #484331; }
.language-menu b { color: var(--gold); font-family: var(--title); min-width: 1.5rem; }
.hero { padding-block: clamp(2.25rem, 5.2vw, 5rem); background: radial-gradient(ellipse at 82% 10%, #3e3830 0, #262b2e 43%, var(--bg) 76%); }
.hero-layout { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: clamp(2rem, 5vw, 4.2rem); }
h1, h2, h3, .step-title { font-family: var(--title); font-weight: 700; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(2.65rem, 4.7vw, 4.25rem); line-height: .99; letter-spacing: -.025em; max-width: 16ch; }
h1 span { display: block; color: var(--gold); }
.lead { margin-top: 1.2rem; max-width: 42ch; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.play-action { margin-top: 1.55rem; }
.play {
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  min-height: 56px; min-width: 144px; padding: .5rem 1.5rem;
  background: linear-gradient(#ffa564, #fa8240); color: #211810;
  border: 1px solid #ffad72; border-bottom: 4px solid #a64321; border-radius: 9px;
  font: 700 1.5rem/1 var(--title); text-decoration: none; letter-spacing: .045em;
}
.play::after { content: ""; border: .32rem solid transparent; border-left: .5rem solid currentColor; border-right: 0; }
.play:hover { background: #ffb781; }
.play-note { color: var(--muted); font-size: .95rem; margin-top: .65rem; }
.hero-photo { min-width: 0; position: relative; }
/* The game's presentation sprite shows the left 1536 × 1024 area of the texture. */
.hero-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: left center; border: 1px solid #666457; border-radius: 14px; box-shadow: 0 16px 38px #080b0e55; }
.hero-photo figcaption { color: var(--muted); font-size: .88rem; padding-top: .55rem; }
.section { padding-block: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.08; margin-bottom: 1.35rem; }
.steps, .cards, .upcoming { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.steps li::before {
  content: counter(step); color: var(--gold); border: 1px solid #786536; background: #393424;
  font: 700 1.2rem/1 var(--title); border-radius: 8px; width: 2rem; height: 2rem;
  display: grid; place-items: center;
}
.step-title { font-size: 1.25rem; line-height: 1.2; }
.step-copy { margin-top: .25rem; color: var(--muted); }
.cards { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card, .upcoming li { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); min-width: 0; }
.card-art { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 52%, #51453a 0%, #303638 63%, #292f32 100%); border-radius: 11px 11px 0 0; border-bottom: 1px solid var(--line); min-height: 142px; }
.card-art img { width: min(66%, 142px); height: 126px; object-fit: contain; padding-block: .5rem; }
.card-copy { padding: .85rem 1rem 1rem; }
.card h3 { font-size: clamp(1.2rem, 2vw, 1.48rem); line-height: 1.08; overflow-wrap: anywhere; }
.card p { color: var(--muted); font-size: .96rem; margin-top: .4rem; }
.upcoming { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.upcoming li { background: #262e31; display: flex; gap: .9rem; align-items: center; padding: .75rem 1rem; }
.upcoming img { flex: 0 0 auto; width: 65px; height: 65px; object-fit: contain; filter: grayscale(1) brightness(.75); opacity: .75; }
.upcoming h3 { color: #e0e3df; font-size: 1.24rem; line-height: 1.16; }
.footer { padding-block: 1.3rem; border-top: 1px solid var(--line); color: var(--muted); background: var(--header); font-weight: 400; }
.footer .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.footer a { text-align: right; text-decoration: none; }
@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upcoming li { padding-inline: .75rem; gap: .55rem; }
  .upcoming img { width: 52px; height: 52px; }
}
@media (max-width: 630px) {
  .wrap { width: calc(100% - 2rem); }
  .navigation { display: none; }
  .hero { padding-top: 50px; }
  .hero-layout, .steps, .upcoming { grid-template-columns: minmax(0, 1fr); }
  .hero-layout { gap: 1.45rem; }
  h1 { max-width: 14ch; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .card { display: grid; grid-template-columns: minmax(74px, 26%) minmax(0, 1fr); }
  .card-art { min-height: 86px; border-radius: 11px 0 0 11px; border-bottom: 0; border-right: 1px solid var(--line); }
  .card-art img { width: 84%; height: 80px; }
  .card-copy { padding: .75rem; }
  .upcoming li { padding: .65rem .9rem; gap: .75rem; }
}
