:root {
    color-scheme: light;
    --paper: #f8f6f0;
    --ink: #1a2230;
    --muted: #4c535d;
    --line: #d9d5cb;
    --accent: #775332;
    --dark: #171a20;
    font-family: system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
  }
  * { box-sizing: border-box; }
  body { margin: 0; }
  a { color: inherit; text-underline-offset: .25em; }
  a:focus-visible, summary:focus-visible { outline: 3px solid #b77b44; outline-offset: 5px; }
  a:hover { text-decoration-thickness: 2px; }
  img { display: block; max-width: 100%; }
  .wrap { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
  header, footer { color: var(--paper); background: var(--dark); }
  .top, .bottom { display: flex; align-items: center; gap: 1.5rem; min-height: 5rem; }
  .brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 650; text-decoration: none; }
  .brand img { width: 2rem; height: 2rem; object-fit: contain; }
  nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); margin-left: auto; }
  nav a, .language a { text-decoration: none; font-size: .9rem; }
  nav a:hover, .language a:hover { text-decoration: underline; }
  .language { display: flex; gap: .4rem; padding-left: 1rem; border-left: 1px solid #73747a; }
  .language a { padding: .35rem; }
  .language [aria-current] { text-decoration: underline; color: #f6d6b4; }
  .hero { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; gap: clamp(1.5rem, 6vw, 6rem); padding-block: clamp(3rem, 8vw, 7rem); }
  .label { color: var(--accent); font-size: .875rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 1rem; }
  h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; margin: 0; }
  h1 { font-size: clamp(3rem, 6.1vw, 6.5rem); line-height: .95; letter-spacing: -.06em; }
  h1 span { display: block; }
  h2 { font-size: clamp(2.4rem, 4.8vw, 4.5rem); line-height: 1; letter-spacing: -.05em; }
  h3 { font-size: clamp(1.6rem, 3vw, 2.55rem); line-height: 1.12; letter-spacing: -.035em; }
  p { line-height: 1.65; }
  .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 37ch; color: var(--muted); margin-block: 1.5rem; }
  .button { display: inline-flex; align-items: center; min-height: 3rem; padding: .65rem 1.1rem; background: var(--dark); color: white; border: 1px solid var(--dark); text-decoration: none; font-weight: 650; }
  .button:hover { background: #374052; }
  .emblem { display: grid; place-items: center; min-height: 22rem; aspect-ratio: 1.12; background: #202837; border: 1px solid #202837; outline: 1px solid #7e8591; outline-offset: -12px; }
  .emblem img { width: 55%; height: 68%; object-fit: contain; }
  .split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 6vw, 6rem); align-items: start; }
  .split p:not(.label) { color: var(--muted); margin: 0 0 1rem; max-width: 63ch; }
  .split p:last-child { margin-bottom: 0; }
  .game { background: #efebe2; }
  .game-logo { width: min(100%, 24rem); height: auto; margin-block: .75rem 0; }
  .game-logo-small { width: min(100%, 13rem); margin-block: 0 .75rem; }
  .game-gallery { margin-top: 1.5rem; }
  .game-gallery figure { margin: 0 0 .75rem; }
  .game-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--dark); border-radius: .4rem; }
  .game-gallery figcaption { margin-top: .65rem; color: var(--muted); font-size: .9rem; }
  .gallery-controls:not([hidden]) { display: flex; align-items: center; justify-content: space-between; }
  .gallery-controls button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); font-size: 1.5rem; cursor: pointer; }
  .gallery-controls button:hover { border-color: var(--accent); }
  .gallery-count { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
  .facts { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; margin-block: 1.35rem; padding-block: 1rem; border-block: 1px solid var(--line); }
  .facts dt { color: var(--muted); font-size: .875rem; }
  .facts dd { margin: .3rem 0 0; font-weight: 650; }
  .game-mechanics { margin-block: 1.5rem; }
  .game-mechanics h2 { font: 700 .875rem system-ui, sans-serif; letter-spacing: .06em; }
  .mechanic-tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
  .mechanic-tags li { border: 1px solid var(--line); border-radius: 1rem; padding: .3rem .7rem; font-size: .9rem; }
  .news article + article { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.5rem; }
  .bottom { justify-content: space-between; min-height: 5.5rem; flex-wrap: wrap; padding-block: 1rem; }
  .bottom a { font-size: .9rem; }
  .footer-links { display: flex; align-items: center; gap: 1rem; }
  .social-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; }
  .footer-links .social-link { min-width: 44px; justify-content: center; }
  .social-icon { background: linear-gradient(145deg, #6544a5, #b2286b 55%, #b3500b); border-radius: .4rem; }
  .skip { position: fixed; left: 1rem; top: -5rem; padding: .7rem; background: white; z-index: 5; }
  .skip:focus { top: 1rem; }
  @media (max-width: 760px) {
    .top { flex-wrap: wrap; gap: .85rem; padding-block: .9rem; }
    .language { margin-left: auto; border: 0; padding-left: 0; }
    nav { width: 100%; order: 1; margin: 0; flex-wrap: wrap; gap: .65rem 1.2rem; }
    .hero, .split { grid-template-columns: 1fr; }
    .emblem { min-height: 0; aspect-ratio: 2; }
  }
  @media (max-width: 380px) {
    .wrap { width: calc(100% - 2rem); }
    .brand { font-size: .9rem; gap: .45rem; }
    .brand img { width: 1.65rem; height: 1.65rem; }
    nav { column-gap: .85rem; }
  }
  body { min-height: 100vh; display: flex; flex-direction: column; }
  main { flex: 1; }
  nav a[aria-current="page"] { color: #f6d6b4; text-decoration: underline; }
  .games-menu { position: relative; }
  .games-menu summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    list-style: none;
  }
  .games-menu summary::-webkit-details-marker { display: none; }
  .games-menu summary::after {
    content: "";
    width: .4rem;
    height: .4rem;
    border-right: 1px solid;
    border-bottom: 1px solid;
    transform: translateY(-.12rem) rotate(45deg);
  }
  .games-menu[open] summary::after { transform: translateY(.1rem) rotate(225deg); }
  .games-menu[data-current] summary { color: #f6d6b4; text-decoration: underline; }
  .games-menu-links {
    position: absolute;
    top: calc(100% + .6rem);
    left: 0;
    z-index: 2;
    min-width: 13rem;
    padding: .3rem;
    background: var(--dark);
    border: 1px solid #73747a;
    box-shadow: 0 .35rem 1rem #171a2030;
  }
  .games-menu-links a { display: block; padding: .65rem .75rem; }
  .games-menu-links a:hover, .games-menu-links a:focus-visible { background: #374052; }
  @media (max-width: 480px) {
    .games-menu-links { left: -3rem; }
  }
  .interior { padding-block: clamp(3.5rem, 9vw, 8rem); }
  .interior h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
  .interior h2 { font-size: clamp(1.6rem, 3vw, 2.55rem); margin-bottom: .75rem; }

  .about-hero {
    color: var(--paper);
    background: #202837;
    border-top: 1px solid #414958;
  }
  .about-hero-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: clamp(2rem, 8vw, 8rem);
    padding-block: clamp(3rem, 7vw, 6.5rem);
  }
  .about-hero .label { color: #f0cda6; }
  .about-hero h1 {
    max-width: 13ch;
    font-size: clamp(2.6rem, 6.8vw, 6rem);
    text-wrap: balance;
  }
  .about-hero .lead { color: #e2e4e9; margin-bottom: 0; max-width: 41ch; }
  .about-mark {
    display: grid;
    place-items: center;
    width: clamp(11rem, 23vw, 18rem);
    aspect-ratio: 1;
    border: 1px solid #8d8175;
  }
  .about-mark img { width: 58%; height: auto; }
  .about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 7vw, 6rem);
    padding-block: clamp(2.75rem, 6vw, 5rem);
  }
  .about-story h2 { font-size: clamp(1.9rem, 3.4vw, 3.15rem); }
  .about-story p { color: var(--muted); max-width: 55ch; }
  .about-link { font-weight: 650; color: var(--accent); }
  @media (max-width: 650px) {
    .about-hero-layout, .about-story { grid-template-columns: 1fr; }
    .about-mark { width: 8rem; }
    .about-story section + section { border-top: 1px solid var(--line); padding-top: 1.75rem; }
  }
