@font-face {
  font-family: "Chewy";
  src: url("assets/fonts/Chewy-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f0e2;
  --paper-light: #fffaf0;
  --ink: #2b3028;
  --muted: #646454;
  --green: #345b46;
  --green-dark: #254534;
  --coffee: #a3432c;
  --rule: #d7cebc;
  --honey: #efcf86;
  font-family: "Chewy", cursive;
  font-synthesis: none;
  font-weight: 400;
  color: var(--ink);
  background: #d9ad68;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

* { box-sizing: border-box; }
body { margin: 0; overflow-x: clip; font-size: 18px; line-height: 1.5; background: #d9ad68 url("assets/scene/wood.webp") repeat center top / 1254px; }
header, main, body > footer { position: relative; z-index: 1; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, em { font-weight: 400; font-style: normal; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--honey); color: var(--ink); }
:focus-visible { outline: 3px solid var(--coffee); outline-offset: 6px; }
.page-width { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.section-space { padding-block: 100px; }
.eyebrow { color: var(--green); font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; }

.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 20px; background: var(--paper-light); border: 2px solid var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; margin-top: 20px; padding: 12px 24px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: 0 4px 0 #58412a; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 23px; line-height: 1.05; }
.brand img { flex: 0 0 48px; }
.brand-subtitle { display: block; margin-top: 5px; color: var(--muted); font-size: 15px; }
.masthead nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 17px; }
.masthead nav a { display: inline-flex; align-items: center; min-height: 44px; }
.masthead nav a:hover, .footer a:hover { color: var(--coffee); }
.beta-tag { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding-inline: 17px; border: 1px solid var(--ink); border-radius: 6px; background: var(--honey); font-size: 15px; white-space: nowrap; }
.beta-tag:hover { background: #f5dca1; }

.hero { display: flex; flex-direction: column; min-height: min(800px, calc(100svh - 100px)); }
.hero-main { display: flex; flex-wrap: wrap; align-items: center; gap: 44px; flex: 1; padding-block: 32px 30px; }
.hero-copy {
  position: relative;
  flex: 1.6 1 560px;
  min-width: 0;
  isolation: isolate;
  padding: 36px;
  border: 3px solid #254331;
  border-radius: 25px 21px 24px 22px;
  color: var(--paper-light);
  background-color: #3f7750;
  background-image: url("assets/scene/felt.webp");
  background-size: 256px;
  background-repeat: repeat;
  box-shadow: 0 7px 0 #2b4e35, 3px 10px 0 #73532b;
}
.hero-copy::after { content: ""; position: absolute; z-index: -1; right: 22px; bottom: 15px; width: 110px; height: 37px; background: url("assets/scene/felt-print.webp") center / contain no-repeat; opacity: .38; mix-blend-mode: soft-light; pointer-events: none; }
.hero .eyebrow { color: #f2dfa9; }
.hero h1 { margin-top: 16px; font-size: clamp(44px, 4.55vw, 64px); line-height: 1.08; letter-spacing: -.8px; }
.hero h1 em { color: #f4cf81; }
.hero-description { margin-top: 20px; font-size: 20px; line-height: 1.55; }
.play-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.play-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 86px; padding: 15px 20px; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 0 4px 0 var(--ink); transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease; }
.play-link:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.play-link:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.play-link-solo { color: var(--ink); background: var(--honey); }
.play-link-solo:hover { background: #f7dca0; }
.play-link-online { color: var(--ink); background: var(--paper-light); }
.play-link-online:hover { background: #efe3cb; }
.play-title, .play-detail { display: block; }
.play-title { font-size: 21px; white-space: nowrap; }
.play-detail { margin-top: 3px; font-size: 13px; }
.arrow { font-size: 25px; line-height: 1; }
.hero-beta { margin-top: 20px; color: #f1ebd7; font-size: 14px; line-height: 1.6; }
.hero-illustration { position: relative; display: grid; place-items: center; flex: 1 1 350px; align-self: stretch; min-height: 460px; }
/* Props belong to the outer table, with a clear gap from the content. */
.table-edges { display: none; position: fixed; inset: 0; overflow: hidden; pointer-events: none; user-select: none; }
.table-edge { position: absolute; top: 0; bottom: 0; width: min(160px, max(0px, calc((100% - 1160px) / 2 - 18px))); overflow: hidden; }
.table-edge-left { left: 0; }
.table-edge-right { right: 0; }
.table-prop { position: absolute; max-width: none; }
.scene-bread { top: -110px; right: 0; width: 240px; }
.scene-cloth { bottom: -110px; right: 0; width: 300px; }
.scene-glass { top: -80px; left: 0; width: 180px; mix-blend-mode: soft-light; }
.scene-plate { bottom: -80px; left: 0; width: 390px; }
@media (min-width: 1280px) and (min-height: 650px) {
  .table-edges { display: block; }
}
.hero-art { position: relative; z-index: 1; padding-bottom: 18px; text-align: center; }
.hero-art img { width: min(100%, 350px); }
.hero-art figcaption { display: inline-block; margin-top: 18px; padding: 5px 15px; border-radius: 3px; background: var(--paper); color: var(--coffee); font-size: 21px; box-shadow: 2px 3px 0 #957443; transform: rotate(-3deg); }
.hero-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; font-size: 15px; }
.hero-footer p { color: #4a3823; }
.hero-footer a { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; }
.hero-footer a:hover { color: var(--coffee); }

.games-section, .beta-section { padding-inline: 44px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 3px 6px 0 #79582e; }
.games-section { position: relative; margin-top: 28px; margin-bottom: 70px; }
.games-section::after { content: ""; position: absolute; top: -18px; left: 38px; width: 95px; height: 26px; background: #eac884; opacity: .82; transform: rotate(-6deg); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 46px; }
h2 { margin-top: 14px; font-size: clamp(38px, 3.5vw, 50px); line-height: 1.12; }
.section-heading > p { max-width: 410px; color: var(--muted); font-size: 18px; }
.game-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.game-list li { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.game-list h3 { font-size: 25px; }
.game-list p { margin-top: 3px; color: var(--muted); font-size: 15px; }
.next-games { display: flex; align-items: baseline; gap: 32px; margin-top: 44px; }
.next-games h3 { flex-shrink: 0; color: var(--coffee); font-size: 24px; }
.next-games p { max-width: 760px; color: var(--muted); font-size: 17px; }

.table-section { padding-top: 0; padding-bottom: 70px; }
.table-section .section-heading { padding: 30px 36px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: 2px 4px 0 #79582e; }
.game-preview img { width: 100%; border: 2px solid var(--ink); border-radius: 10px; }
.game-preview figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 15px; color: #4a3823; font-size: 14px; }
.table-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 34px; padding: 30px 36px; border-radius: 10px; background: var(--paper); }
.table-notes h3 { font-size: 24px; }
.table-notes p { margin-top: 12px; color: var(--muted); font-size: 17px; }

.beta-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-bottom: 44px; }
.beta-section .eyebrow { color: var(--coffee); }
.beta-summary { font-size: 27px; line-height: 1.3; }
.beta-copy > p + p { margin-top: 20px; color: var(--muted); font-size: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 22px; min-height: 44px; margin-top: 22px; border-bottom: 2px solid var(--green); color: var(--green); font-size: 20px; }
.text-link:hover { color: var(--coffee); border-color: var(--coffee); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 24px; font-size: 14px; }
.footer > p:nth-child(2) { color: #4a3823; }
.about-section { display: flex; align-items: center; gap: 28px; padding: 28px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); box-shadow: 3px 4px 0 #58412a; }
.about-section img { width: 120px; flex: none; border-radius: 6px; }
.about-section h2 { margin-bottom: 10px; font-size: 30px; line-height: 1.2; }
.about-section p { margin-bottom: 10px; }
.about-section a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .about-section { align-items: flex-start; gap: 16px; padding: 20px; font-size: 16px; }
  .about-section img { width: 56px; }
  .about-section h2 { font-size: 26px; }
}
.footer a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }

@media (max-width: 1100px) {
  .page-width { width: calc(100% - 64px); }
  .hero-main { gap: 30px; }
  .play-link { padding-inline: 14px; }
  .play-title { font-size: 21px; }
  .play-detail { font-size: 12px; }
  .hero-copy { padding: 28px; }
  .hero-illustration { min-height: 420px; }
  .game-list { column-gap: 24px; }
  .game-list h3 { font-size: 23px; }
}

@media (max-width: 800px) {
  .page-width { width: calc(100% - 40px); }
  .section-space { padding-block: 64px; }
  .masthead { min-height: 72px; gap: 16px; margin-top: 12px; padding: 10px 16px; }
  .masthead nav { gap: 18px; font-size: 15px; }
  .brand { font-size: 20px; }
  .brand img { width: 40px; flex-basis: 40px; }
  .brand-subtitle { font-size: 13px; }
  .hero { min-height: calc(100svh - 84px); }
  .hero-main { position: relative; padding-block: 28px; }
  .hero-copy { width: 100%; padding: 32px; }
  .hero-illustration { display: none; }
  .hero h1 { font-size: clamp(44px, 7.7vw, 62px); }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading > p { margin-top: 20px; }
  .game-list { grid-template-columns: repeat(3, 1fr); }
  .table-notes { gap: 28px; }
  .beta-section { gap: 40px; }
  .games-section, .beta-section { padding-inline: 30px; }
  .footer > p:nth-child(2) { display: none; }
}

@media (max-width: 600px) {
  .masthead { min-height: 68px; padding-inline: 12px; }
  .masthead nav { display: none; }
  .beta-tag { padding-inline: 12px; font-size: 13px; }
  .hero { min-height: calc(100svh - 80px); }
  .hero-main { position: relative; padding-block: 24px; gap: 0; }
  .hero-copy { padding: 24px 18px; border-width: 2px; border-radius: 18px; }
  .hero-copy::after { width: 85px; height: 28px; right: 16px; bottom: 10px; }
  .hero .eyebrow { font-size: 12px; letter-spacing: 1px; }
  .hero h1 { margin-top: 18px; font-size: clamp(32px, 8.8vw, 48px); letter-spacing: -.4px; }
  .hero-description { margin-top: 18px; font-size: 17px; }
  .play-options { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
  .play-link { min-height: 74px; padding: 11px 18px; }
  .play-title { font-size: 22px; }
  .play-detail { font-size: 13px; }
  .hero-beta { margin-top: 22px; font-size: 13px; }
  .hero-footer { padding-block: 10px; font-size: 13px; }
  .hero-footer p { display: none; }
  .hero-footer a { justify-content: space-between; width: 100%; }
  .section-space { padding-block: 56px; }
  .games-section, .beta-section { padding-inline: 22px; }
  .games-section { margin-top: 18px; margin-bottom: 48px; }
  .games-section::after { left: 24px; width: 72px; }
  .eyebrow { font-size: 12px; }
  h2 { font-size: 38px; }
  .section-heading > p { font-size: 17px; }
  .game-list { grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .game-list li { padding-block: 18px; }
  .game-list h3 { font-size: 23px; }
  .game-list p { font-size: 14px; }
  .next-games { display: block; margin-top: 32px; }
  .next-games p { margin-top: 10px; }
  .game-preview img { border-radius: 6px; }
  .game-preview figcaption { flex-direction: column; gap: 3px; font-size: 12px; }
  .table-notes { grid-template-columns: 1fr; gap: 28px; margin-top: 34px; }
  .table-section { padding-top: 0; padding-bottom: 48px; }
  .table-section .section-heading { padding: 24px 22px; }
  .table-notes { padding: 24px 22px; }
  .table-notes p { margin-top: 8px; }
  .beta-section { grid-template-columns: 1fr; gap: 28px; }
  .beta-summary { font-size: 25px; }
  .beta-copy > p + p { font-size: 17px; }
  .footer { align-items: flex-start; gap: 16px; font-size: 12px; }
  .footer > p { max-width: 150px; }
  .footer a { margin-top: -8px; }
}

@media (max-height: 650px) and (min-width: 801px) {
  .masthead { min-height: 66px; margin-top: 12px; padding-block: 8px; }
  .hero { min-height: calc(100svh - 78px); }
  .hero-main { padding-block: 24px; }
  .hero-copy { padding: 24px; }
  .hero h1 { margin-top: 12px; font-size: 48px; }
  .hero-description { margin-top: 16px; font-size: 18px; }
  .play-options { margin-top: 20px; }
  .play-link { min-height: 72px; }
  .hero-beta { margin-top: 16px; }
  .hero-art img { width: 270px; }
  .hero-footer { padding-block: 8px; }
}

@media (max-width: 380px) {
  .masthead { gap: 10px; }
  .brand { gap: 8px; font-size: 18px; }
  .brand img { width: 32px; flex-basis: 32px; }
  .beta-tag { padding-inline: 10px; font-size: 12px; }
}

@media (max-height: 700px) and (max-width: 600px) {
  .hero-main { padding-block: 16px; }
  .hero-copy { padding: 18px 16px; }
  .hero h1 { margin-top: 12px; font-size: 32px; }
  .hero-description { margin-top: 12px; font-size: 15px; line-height: 1.4; }
  .play-options { margin-top: 16px; gap: 10px; }
  .play-link { min-height: 62px; padding: 6px 14px; }
  .play-title { font-size: 20px; }
  .play-detail { margin-top: 2px; font-size: 12px; line-height: 1.2; }
  .hero-beta { margin-top: 14px; font-size: 11.5px; line-height: 1.5; }
}

@media (max-height: 500px) and (min-width: 601px) and (max-width: 1000px) {
  .masthead { min-height: 58px; margin-top: 12px; padding-block: 4px; }
  .brand img { width: 36px; flex-basis: 36px; }
  .hero { min-height: calc(100svh - 70px); }
  .hero-main { padding-block: 12px; }
  .hero-copy { padding: 12px 24px; }
  .hero .eyebrow { font-size: 12px; }
  .hero h1 { margin-top: 8px; font-size: 32px; }
  .hero-description { margin-top: 8px; font-size: 16px; }
  .play-options { margin-top: 12px; }
  .play-link { min-height: 62px; padding-block: 8px; }
  .hero-beta { margin-top: 12px; font-size: 12px; }
  .hero-illustration, .hero-footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .play-link { transition: none; }
}
