:root {
  color-scheme: light;
  --background: #f5f5ef;
  --surface: #fcfcf7;
  --ink: #292e28;
  --muted: #60665d;
  --line: #d9ddd2;
  --accent: #bc442c;
  --accent-hover: #99331f;
  --accent-text: #fffaf4;
  --soft: #ebece3;
  --radius: 24px;
  --shadow: 0 14px 36px #363e2710;
  font-family: "Avenir Next", "Trebuchet MS", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #20251f;
    --surface: #2b3129;
    --ink: #f3f2e8;
    --muted: #b9c0b2;
    --line: #454d3e;
    --accent: #f49b78;
    --accent-hover: #ffc0a4;
    --accent-text: #29251e;
    --soft: #30382c;
    --shadow: 0 14px 36px #13171030;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #20251f;
  --surface: #2b3129;
  --ink: #f3f2e8;
  --muted: #b9c0b2;
  --line: #454d3e;
  --accent: #f49b78;
  --accent-hover: #ffc0a4;
  --accent-text: #29251e;
  --soft: #30382c;
  --shadow: 0 14px 36px #13171030;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
img {
  max-width: 100%;
  display: block;
}
button[hidden] {
  display: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.055em;
}
p {
  color: var(--muted);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 5px;
}
.wrap {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -90px;
  background: var(--surface);
  padding: 12px 20px;
  z-index: 5;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  font-size: 27px;
  letter-spacing: -1.25px;
  font-weight: 850;
  line-height: 1;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  transform: rotate(-9deg);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 32px;
  border-radius: 11px;
  margin-right: 11px;
  padding-bottom: 3px;
  letter-spacing: -2px;
}
.brand-period {
  color: var(--accent);
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
}
.site-header nav > a {
  padding-block: 12px;
}
.site-header nav > a:hover,
.text-link:hover,
.back-link:hover {
  color: var(--accent);
}
.theme-button {
  min-width: 62px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  font-size: 12px;
}
.theme-button:hover {
  background: var(--soft);
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--muted);
}
.home-hero {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: 74px;
  padding-block: 88px 92px;
}
.hero-copy h1 {
  font-size: clamp(42px, 4.2vw, 60px);
  font-weight: 750;
  line-height: 1.01;
  max-width: none;
  margin-top: 26px;
}
.hero-copy h1 span {
  color: var(--accent);
}
.hero-description {
  font-size: 17px;
  line-height: 1.75;
  max-width: 34ch;
  margin-top: 26px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 35px;
}
.button {
  display: inline-flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
}
.primary {
  background: var(--accent);
  color: var(--accent-text);
}
.primary:hover {
  background: var(--accent-hover);
}
.button span {
  font-size: 22px;
  line-height: 1;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 650;
}
.hero-note {
  font-size: 12px;
  margin-top: 18px;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.game-cover {
  display: block;
  overflow: hidden;
  background: #eae4f2;
}
.game-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.game-card-body {
  padding: 27px 30px 25px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.01em;
  font-weight: 650;
}
.tags span {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px 10px;
  color: var(--muted);
}
.game-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 19px;
}
.game-card-title h2 {
  font-size: 40px;
  letter-spacing: -0.045em;
}
.round-link {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 22px;
}
.round-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.game-card-body > p {
  font-size: 14px;
  margin-top: 5px;
}
.game-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 23px;
}
.break-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  border-top: 1px solid var(--line);
  padding-block: 61px 66px;
}
.break-heading h2 {
  font-size: 44px;
  margin-top: 17px;
}
.break-stories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}
.break-stories h3 {
  font-size: 19px;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-bottom: 13px;
}
.break-stories p {
  font-size: 13px;
  line-height: 1.85;
}
.about-strip {
  background: var(--soft);
  padding: 28px 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 72px;
}
.about-strip > p {
  font-size: 23px;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 600;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 33px 35px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
}
.footer-brand {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.9px;
}
.site-footer p {
  font-size: 12px;
  margin-top: 6px;
}
.site-footer nav {
  display: flex;
  gap: 24px;
  font-size: 12px;
  align-self: center;
  flex-wrap: wrap;
}
.site-footer nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.site-footer nav a:hover {
  color: var(--accent);
}
.site-footer small {
  font-size: 10px;
  color: var(--muted);
  grid-column: 1/-1;
}
.more-games {
  padding-bottom: 75px;
}
.more-games > h2 {
  font-size: 32px;
  margin-bottom: 30px;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.game-intro {
  padding-top: 29px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  min-height: 44px;
  color: var(--muted);
}
.game-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-block: 19px 27px;
}
.game-heading h1 {
  font-size: 58px;
  margin-top: 12px;
}
.game-heading p {
  font-size: 14px;
  margin-top: 8px;
}
.game-player {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #eae4f2;
  scroll-margin-top: 15px;
}
.game-frame {
  border: 0;
  display: block;
  width: 100%;
  height: 820px;
  background: #eae4f2;
}
.frame-note {
  padding: 15px;
  color: #4a345e;
}
.game-facts {
  display: flex;
  gap: 25px;
  justify-content: flex-start;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  padding-block: 18px 27px;
}
.game-facts a {
  margin-left: auto;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.game-information {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  border-top: 1px solid var(--line);
  padding-block: 65px;
}
.rules-intro h2 {
  font-size: 44px;
  margin-top: 20px;
}
.rules-intro > p:last-child {
  font-size: 14px;
  line-height: 1.9;
  max-width: 35ch;
  margin-top: 22px;
}
.rules-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 27px;
}
.rules-list li {
  padding-left: 10px;
}
.rules-list li::marker {
  font-size: 14px;
  font-weight: 750;
  color: var(--accent);
}
.rules-list h3 {
  font-size: 19px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.rules-list p {
  font-size: 13px;
  line-height: 1.85;
}
.questions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  padding-block: 15px 70px;
}
.questions > h2 {
  font-size: 34px;
}
.questions details {
  border-bottom: 1px solid var(--line);
  padding-block: 7px;
}
.questions summary {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  min-height: 50px;
  font-size: 14px;
  font-weight: 650;
  list-style: none;
}
.questions summary::-webkit-details-marker {
  display: none;
}
.questions summary span {
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
}
.questions details[open] summary span {
  transform: rotate(45deg);
}
.questions details p {
  font-size: 13px;
  line-height: 1.85;
  padding-bottom: 18px;
  max-width: 62ch;
}
.prose {
  max-width: 760px;
  padding-block: 75px 90px;
}
.prose h1 {
  font-size: clamp(42px, 5vw, 65px);
  max-width: 14ch;
  margin-block: 23px;
}
.prose .lead {
  font-size: 20px;
  line-height: 1.7;
}
.prose h2 {
  font-size: 25px;
  margin-top: 40px;
  margin-bottom: 15px;
  letter-spacing: -0.03em;
}
.prose p {
  font-size: 15px;
  line-height: 1.9;
}
.prose p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose .button {
  margin-top: 26px;
}
.prose > .text-link {
  margin-top: 28px;
}
.not-found {
  min-height: 60svh;
}
.game-page .site-header {
  min-height: 88px;
}
@media (min-width: 1440px) {
  .home-hero {
    gap: 90px;
    padding-block: 88px;
  }
  .featured-game {
    transform: rotate(1deg);
  }
}
@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .home-hero {
    gap: 38px;
    padding-block: 65px;
  }
  .hero-copy h1 {
    font-size: clamp(42px, 4.8vw, 52px);
  }
  .hero-actions {
    gap: 13px;
  }
  .hero-description {
    font-size: 15px;
  }
  .game-card-body {
    padding: 23px;
  }
  .break-section {
    gap: 40px;
  }
  .break-stories {
    gap: 24px;
  }
  .break-heading h2 {
    font-size: 37px;
  }
  .game-information,
  .questions {
    gap: 50px;
  }
}
@media (max-width: 767px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .site-header {
    min-height: 82px;
    gap: 14px;
  }
  .brand {
    font-size: 23px;
    letter-spacing: -1px;
  }
  .brand-mark {
    width: 29px;
    height: 32px;
    font-size: 27px;
    margin-right: 8px;
  }
  .site-header nav {
    gap: 16px;
    font-size: 12px;
  }
  .theme-button {
    min-width: 48px;
    padding: 8px;
    font-size: 11px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-block: 42px 45px;
  }
  .hero-copy h1 {
    font-size: clamp(46px, 10vw, 68px);
    max-width: 11ch;
    margin-top: 20px;
  }
  .hero-description {
    max-width: 40ch;
    margin-top: 19px;
    font-size: 15px;
  }
  .hero-actions {
    margin-top: 25px;
    gap: 25px;
  }
  .hero-note {
    margin-top: 12px;
  }
  .game-card-body {
    padding: 23px;
  }
  .game-card-title h2 {
    font-size: 35px;
  }
  .break-section {
    grid-template-columns: 1fr;
    gap: 29px;
    padding-block: 35px;
  }
  .break-heading h2 {
    font-size: 35px;
  }
  .break-stories {
    gap: 25px;
  }
  .break-stories h3 {
    font-size: 18px;
  }
  .about-strip {
    padding: 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 38px;
  }
  .about-strip > p {
    font-size: 22px;
  }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 13px;
    padding-block: 28px;
  }
  .site-footer nav {
    gap: 26px;
  }
  .game-grid {
    grid-template-columns: 1fr;
  }
  .game-heading h1 {
    font-size: 49px;
  }
  .game-heading {
    padding-top: 10px;
  }
  .game-intro {
    padding-top: 14px;
  }
  .game-frame {
    height: 850px;
  }
  .game-player {
    width: 100%;
    border-radius: 0;
    border-inline: 0;
  }
  .game-facts {
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11px;
    padding-block: 12px 25px;
  }
  .game-facts a {
    margin-left: 0;
  }
  .game-information,
  .questions {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .game-information {
    padding-block: 40px;
  }
  .rules-intro h2 {
    font-size: 35px;
  }
  .rules-intro > p:last-child {
    max-width: none;
  }
  .questions {
    padding-block: 12px 45px;
  }
  .questions > h2 {
    font-size: 31px;
  }
  .prose {
    padding-block: 42px 60px;
  }
  .prose .lead {
    font-size: 18px;
  }
  .prose p {
    font-size: 14px;
  }
  .game-page .site-header {
    min-height: 78px;
  }
}
@media (max-width: 370px) {
  .site-header nav {
    gap: 10px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-mark {
    display: none;
  }
  .hero-actions {
    gap: 13px;
  }
  .button {
    padding-inline: 20px;
    gap: 22px;
  }
  .break-stories {
    grid-template-columns: 1fr;
  }
  .game-frame {
    height: 900px;
  }
  .game-card-meta {
    font-size: 10px;
  }
  .game-card-body {
    padding: 20px;
  }
  .focus-link {
    font-size: 12px;
  }
  .game-heading {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .button,
  .round-link,
  .text-link {
    transition:
      background-color 0.18s,
      color 0.18s,
      transform 0.18s;
  }
  .button:hover {
    transform: translateY(-2px);
  }
  .game-cover img {
    transition: transform 0.3s;
  }
  .game-cover:hover img {
    transform: scale(1.025);
  }
}
