/* Turtle: the website. The look is the game's own GUI kit (SourceArt/UI/style3): inked wood, pinned parchment,
   things growing through it. One HUD unit of the kit = 1 CSS px; its textures are 2 px per unit. */

@font-face {
  font-family: "Londrina Solid";
  src: url("/assets/fonts/LondrinaSolid-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #33212b;
  --board: #452f3b;
  --board-deep: #38252f;
  --board-lift: #573b47;
  --wood: #744c4c;
  --paper: #cfa97e;
  --paper-ink: #3a2530;
  --paper-dim: #553a40;
  --tan: #e6d0a6;
  --tan-dim: #c7b299;
  --cream: #f4e4bc;
  --olive: #8b9858;
  --olive-lit: #b3ba76;
  --yellow: #e0a850;
  --yellow-lit: #f2cf86;
  --red-lit: #f0826c;
  --display: "Londrina Solid", "Arial Black", "Segoe UI Black", Impact, sans-serif;
  --text: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header: 56px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--board) url("/assets/ui/planks.webp") repeat 50% 0 / 1920px 480px;
  color: var(--tan);
  font: 700 17px/1.55 var(--text);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow-lit); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--yellow-lit); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.05; margin: 0; letter-spacing: 0.02em; }
p { margin: 0 0 0.9em; }
p:last-child { margin-bottom: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------- the top menu: the beam, with tabs hanging from it on rope ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header); }
.site-header::before {            /* the beam, laid from the kit's own middles */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 57px;
  background: url("/assets/ui/beam.webp") repeat-x 0 0 / 1358px 57px;
  pointer-events: none;
}
.header-in { position: relative; display: flex; align-items: flex-start; gap: 18px; height: var(--header); padding: 0 clamp(12px, 3vw, 40px); }
.wordmark {
  font: 900 34px/46px var(--display); color: var(--cream); text-decoration: none; letter-spacing: 0.03em;
  text-shadow: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink), 2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink), 1px 4px 0 var(--ink);
  padding: 0 4px; margin-top: 1px;
}
.wordmark:hover { color: #fff3d2; }
.site-header nav { margin-left: auto; }
.tabs { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tab {
  position: relative; isolation: isolate; display: block; height: 44px; min-width: 100px; margin-top: 44px; padding: 0 22px;
  font: 900 22px/46px var(--display); letter-spacing: 0.04em; text-transform: uppercase; text-align: center; white-space: nowrap;
  color: #d9c6a6; text-decoration: none;
}
.tab::before {
  content: ""; position: absolute; z-index: -1; inset: -22px -6px -13px -6px;
  border-style: solid; border-color: transparent; border-width: 0 56px;
  border-image: url("/assets/ui/tab-a.webp") 0 112 fill stretch;
}
.tabs li:nth-child(even) .tab::before { border-image-source: url("/assets/ui/tab-b.webp"); }
.tab:hover { color: var(--cream); transform: translateY(1px); }
.tab:hover::before { border-image-source: url("/assets/ui/tab-hover.webp") !important; }
.tab[aria-current]::before { border-image-source: url("/assets/ui/tab-on.webp") !important; }
.tab[aria-current] { color: #4a2c24; transform: translateY(3px); }
.menu-toggle { position: absolute; opacity: 0; width: 44px; height: 44px; right: 12px; top: 4px; margin: 0; }
.menu-button { display: none; }

@media (max-width: 899px) {
  .menu-button {
    display: grid; place-items: center; margin-left: auto; margin-top: 5px; width: 46px; height: 42px; cursor: pointer;
    background: var(--board-deep); border: 2px solid var(--ink); border-bottom-width: 4px; border-radius: 7px 9px 8px 6px;
  }
  .bars, .bars::before, .bars::after { display: block; width: 24px; height: 4px; border-radius: 2px; background: var(--cream); }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -8px; }
  .bars::after { top: 8px; }
  .site-header nav { margin-left: 0; }
  .menu-toggle:focus-visible + .menu-button { outline: 3px solid var(--yellow-lit); outline-offset: 3px; }
  .tabs {
    position: absolute; right: 8px; left: 8px; top: 62px; margin: 0; padding: 14px 16px 18px; display: none; flex-direction: column; gap: 2px;
    background: var(--board-deep); border: 3px solid var(--ink); border-bottom-width: 6px; border-radius: 8px 12px 10px 9px;
    max-height: calc(100vh - 80px); overflow: auto;
  }
  .menu-toggle:checked ~ nav .tabs { display: flex; }
  .tab { margin: 0; height: auto; padding: 10px 12px; text-align: left; font-size: 24px; line-height: 1.2; border-bottom: 2px solid var(--board-lift); transform: none !important; }
  .tab::before { display: none; }
  .tab[aria-current] { color: var(--yellow-lit); }
  .tabs li:last-child .tab { border-bottom: 0; }
}

/* ---------- buttons: the kit's planks (three-slice, 190 x 88 units, the block 48 high) ---------- */
.btn {
  position: relative; isolation: isolate; display: inline-block; height: 48px; min-width: 126px; padding: 0 30px; margin: 30px 8px 8px;
  font: 900 24px/50px var(--display); letter-spacing: 0.05em; text-transform: uppercase; text-align: center; white-space: nowrap;
  color: var(--cream); text-decoration: none; cursor: pointer; border: 0; background: none;
  text-shadow: 0 1.5px 0 var(--ink), 1.5px 0 0 var(--ink), -1.5px 0 0 var(--ink), 0 -1.5px 0 var(--ink), 1.2px 1.2px 0 var(--ink), -1.2px 1.2px 0 var(--ink), 1.2px -1.2px 0 var(--ink), -1.2px -1.2px 0 var(--ink), 0.5px 3px 0 var(--ink);
}
.btn::before {
  content: ""; position: absolute; z-index: -1; inset: -32px -10px -8px -10px;
  border-style: solid; border-color: transparent; border-width: 0 69px 0 73px;
  border-image: url("/assets/ui/btn-wood-a.webp") 0 138 0 146 fill stretch;
}
.btn:hover { color: #fff6da; transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn:hover::before { border-image-source: url("/assets/ui/btn-wood-a-hover.webp"); }
.btn-b::before { border-image-source: url("/assets/ui/btn-wood-b.webp"); }
.btn-b:hover::before { border-image-source: url("/assets/ui/btn-wood-b-hover.webp"); }
.btn-go::before { border-image-source: url("/assets/ui/btn-go.webp"); }
.btn-go:hover::before { border-image-source: url("/assets/ui/btn-go-hover.webp"); }
.btn[aria-disabled="true"] { color: #d6cbc4; cursor: default; transform: none; }
.btn-go[aria-disabled="true"]::before { border-image-source: url("/assets/ui/btn-go-off.webp"); }

/* the big one: the game's PLAY button (470 x 208 units; its block is 384 x 128 at 36, 52) */
.play { position: relative; display: block; width: min(470px, 100%); aspect-ratio: 470 / 208; text-decoration: none; container-type: inline-size; }
.play::before, .play::after { content: ""; position: absolute; inset: 0; background: url("/assets/ui/play.webp") 0 0 / 100% 100% no-repeat; }
.play::after { background-image: url("/assets/ui/play-hover.webp"); opacity: 0; }
.play:hover::after, .play:focus-visible::after { opacity: 1; }
.play:hover .play-label { transform: translateY(-1.5%); }
.play:active .play-label { transform: translateY(1.5%); }
.play-label {
  position: absolute; z-index: 1; left: 7.66%; top: 25%; width: 81.7%; height: 61.5%; display: grid; place-items: center;
  font: 900 60px/1 var(--display); font-size: 13.2cqw; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cream);
}
/* the build's stage and version under the word (the game's own: ProjectVersion in Config/DefaultGame.ini) */
.play-label:has(.play-ver) { align-content: center; row-gap: 0.1em; font-size: 11.4cqw; }
.play-ver { font-size: 0.44em; letter-spacing: 0.08em; color: var(--cream); white-space: nowrap; }
.play-ver .inked { -webkit-text-stroke-width: 0.28em; }
.play-ver .inked::before { -webkit-text-stroke-width: 0.28em; }
.inked { position: relative; display: inline-block; -webkit-text-stroke: 0.2em var(--ink); paint-order: stroke fill; }
.inked::after { content: attr(data-text); position: absolute; left: 0; top: 0; -webkit-text-stroke: 0; color: inherit; }
.inked::before { content: attr(data-text); position: absolute; left: 0.02em; top: 0.07em; color: var(--ink); -webkit-text-stroke: 0.2em var(--ink); z-index: -1; }

/* ---------- the hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(100svh, 1100px); display: flex; align-items: flex-end; padding: 150px 0 clamp(36px, 7vh, 90px); overflow: hidden; background: #6f8c3c; }
.hero-media, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero-video { z-index: -2; opacity: 0; transition: opacity 0.8s ease; }
.hero-video.is-playing { opacity: 1; }
.hero::after {                      /* a flat dusk shade low down, so the words read on a bright meadow */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(42, 24, 34, 0.42) 0, rgba(42, 24, 34, 0) 22%, rgba(42, 24, 34, 0) 45%, rgba(42, 24, 34, 0.62) 100%);
}
.hero-title { font-size: clamp(84px, 17vw, 190px); color: var(--cream); letter-spacing: 0.03em; line-height: 0.95; margin: 0 0 18px -4px; }
.hero-title .inked { -webkit-text-stroke-width: 0.12em; }
.hero-title .inked::before { -webkit-text-stroke-width: 0.12em; left: 0.012em; top: 0.045em; }
.hero-line {
  position: relative; isolation: isolate; display: inline-block; max-width: 640px; margin: 0 0 6px; padding: 14px 22px 16px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: var(--tan);
}
.hero-line::before, .plate::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  border-style: solid; border-color: transparent; border-width: 22px 32px 24px;
  border-image: url("/assets/ui/plate.webp") 44 64 48 fill stretch;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 22px; margin-top: 4px; }
.hero-actions .play { width: min(400px, 100%); margin-left: -18px; }
.hero-actions .btn { margin-bottom: 26px; }

/* ---------- sections ---------- */
main > section { padding: clamp(44px, 7vw, 86px) 0 clamp(20px, 3vw, 40px); position: relative; }
.title-plank {
  position: relative; isolation: isolate; display: inline-block; min-width: 200px; height: 58px; padding: 0 44px; margin: 0 0 8px -8px;
  font-size: 33px; line-height: 54px; text-transform: uppercase; color: #f0ddb4; text-shadow: 1px 2.5px 0 var(--ink); white-space: nowrap;
}
.title-plank::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  border-style: solid; border-color: transparent; border-width: 0 62px;
  border-image: url("/assets/ui/title-plank.webp") 0 124 fill stretch;
}
.lead { max-width: 720px; font-size: 19px; color: var(--tan); margin: 10px 0 26px; }
.grid { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }

/* a sheet of parchment: for what is read as sentences */
.sheet { position: relative; isolation: isolate; padding: 26px 28px 28px 26px; color: var(--paper-ink); }
.grid > li > .sheet { height: 100%; }
.sheet::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  border-style: solid; border-color: transparent; border-width: 42px 46px;
  border-image: url("/assets/ui/paper-a.webp") 84 92 fill stretch;
}
.grid > :nth-child(3n + 2) > .sheet::before, .sheet.b::before { border-image-source: url("/assets/ui/paper-b.webp"); }
.grid > :nth-child(3n) > .sheet::before, .sheet.c::before { border-image-source: url("/assets/ui/paper-c.webp"); }
.grid > :nth-child(odd) > .sheet::before { transform: rotate(-0.5deg); }
.grid > :nth-child(even) > .sheet::before { transform: rotate(0.6deg); }
.sheet h3 { font-size: 26px; text-transform: uppercase; color: #34202b; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.sheet a { color: #5a2a14; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; font: 900 22px/1 var(--display); color: var(--cream); background: var(--board); border: 2px solid var(--ink); border-bottom-width: 4px; border-radius: 50% 46% 52% 48%; vertical-align: middle; }

/* a slab of the dark board: for cards with a picture and a short line */
.slab { position: relative; isolation: isolate; padding: 20px 24px 24px 22px; height: 100%; }
.slab::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  border-style: solid; border-color: transparent; border-width: 32px 42px;
  border-image: url("/assets/ui/slab-a.webp") 64 84 fill stretch;
}
.grid > :nth-child(even) > .slab::before { border-image-source: url("/assets/ui/slab-b.webp"); }
.slab h3 { font-size: 26px; text-transform: uppercase; color: var(--tan); margin-bottom: 6px; }
.slab p { color: var(--tan-dim); font-size: 16px; line-height: 1.5; }

/* the Builders' cards: a portrait in the kit's picture frame */
.builder { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
.builder .role { margin: 2px 0 8px; font-size: 0.84em; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tan); }
.pic { position: relative; width: 112px; height: 112px; padding: 5px; }
.pic img { width: 102px; height: 102px; border-radius: 4px; }
.pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-style: solid; border-color: transparent; border-width: 22px;
  border-image: url("/assets/ui/pic.webp") 44 stretch;
}

/* pictures in a card */
.shot-frame { position: relative; margin: -2px -4px 14px -2px; border: 3px solid var(--ink); border-bottom-width: 5px; border-radius: 5px 8px 6px 7px; overflow: hidden; background: var(--board-deep); }
.shot-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { position: relative; isolation: isolate; padding: 12px 20px 14px; display: flex; align-items: center; gap: 10px; font-size: 16px; }
.facts li::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  border-style: solid; border-color: transparent; border-width: 22px 32px 24px;
  border-image: url("/assets/ui/plate.webp") 44 64 48 fill stretch;
}
.facts img { width: 28px; height: 28px; flex: none; }

/* growth: it sits on the wood, never on the words */
.grow { position: absolute; pointer-events: none; z-index: 2; }
.grow-header-vine { left: clamp(150px, 14vw, 300px); top: -8px; width: 298px; height: 90px; }
@media (max-width: 1240px) { .grow-header-vine { display: none; } }
.title-plank::after { content: ""; position: absolute; pointer-events: none; background: no-repeat center / contain; }
.g-mushrooms::after { right: 6px; top: -30px; width: 60px; height: 48px; background-image: url("/assets/ui/mushrooms.webp"); }
.g-crystals::after { right: 10px; top: -33px; width: 52px; height: 48px; background-image: url("/assets/ui/crystals-blue.webp"); }
.g-peek::after { right: 16px; top: -27px; width: 50px; height: 46px; background-image: url("/assets/ui/peek.webp"); z-index: -2; }
.g-fern::after { right: -14px; top: -22px; width: 52px; height: 46px; background-image: url("/assets/ui/fern.webp"); }
.g-sprig::after { right: -20px; top: -18px; width: 52px; height: 49px; background-image: url("/assets/ui/sprig-a.webp"); }
.g-tusk::after { right: -12px; top: -8px; width: 44px; height: 38px; background-image: url("/assets/ui/tusk.webp"); }

/* ---------- media ---------- */
.clips { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); margin: 0 0 34px; }
.clip { margin: 0; }
.clip video { width: 100%; aspect-ratio: 16 / 9; background: var(--board-deep); border: 3px solid var(--ink); border-bottom-width: 6px; border-radius: 6px 9px 7px 8px; }
.clip figcaption { margin-top: 8px; color: var(--tan-dim); font-size: 15.5px; }
.clip figcaption b { display: block; font: 900 22px/1.15 var(--display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--tan); }
.shots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 46%), 1fr)); margin: 0; padding: 0; list-style: none; }
.shots a { display: block; border: 3px solid var(--ink); border-bottom-width: 5px; border-radius: 5px 8px 6px 7px; overflow: hidden; background: var(--board-deep); }
.shots a:hover, .shots a:focus-visible { border-color: var(--yellow); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1320px); width: 100%; color: var(--tan); }
.lightbox::backdrop { background: rgba(40, 24, 34, 0.88); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border: 3px solid var(--ink); border-radius: 6px; background: var(--board-deep); }
.lightbox-bar { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.lightbox-bar p { margin: 0; flex: 1; }
.chip { width: 46px; height: 42px; display: grid; place-items: center; cursor: pointer; color: var(--cream); font: 900 22px/1 var(--display); background: var(--board-deep); border: 2px solid var(--ink); border-bottom-width: 4px; border-radius: 7px 9px 8px 6px; }
.chip:hover { background: var(--board-lift); }
.chip img { width: 26px; height: 26px; }
.chip .prev { transform: scaleX(-1); }

/* ---------- download ---------- */
.download { display: grid; gap: 26px 40px; grid-template-columns: 1.15fr 1fr; align-items: center; }
@media (max-width: 860px) { .download { grid-template-columns: 1fr; } }
.download .play { margin-inline: auto; }
.dl-status { font-size: 19px; }
.dl-facts { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 15.5px; }
.dl-facts dt { color: var(--paper-dim); }
.dl-facts dd { margin: 0; overflow-wrap: anywhere; }
.dl-facts[hidden] { display: none; }
.page-top { padding-top: 150px !important; }

/* ---------- footer ---------- */
.site-footer { margin-top: 60px; background: var(--board-deep); border-top: 4px solid var(--ink); padding: 34px 0 44px; color: var(--tan-dim); font-size: 15.5px; position: relative; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; }
.site-footer .wordmark { font-size: 30px; line-height: 1; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.site-footer small { flex-basis: 100%; font-size: 14px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .title-plank { font-size: 27px; padding: 0 36px; }
  .builder { grid-template-columns: 88px 1fr; gap: 12px; }
  .pic { width: 88px; height: 88px; }
  .pic img { width: 78px; height: 78px; }
  .hero { padding-top: 110px; }
  .hero-actions .play { margin-left: -8px; }
}
@media (min-width: 2200px) {
  :root { --wrap: 1500px; }
  body { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .tab:hover { transform: none; }
}

.play.is-off { filter: grayscale(0.9) brightness(0.88); cursor: default; }
.play.is-off::after { display: none; }
.play.is-off:hover .play-label { transform: none; }

/* the map from above, with its sheet beside it */
.map { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 26px 34px; align-items: center; margin: 0 0 30px; }
.map a { display: block; border: 3px solid var(--ink); border-bottom-width: 6px; border-radius: 6px 9px 7px 8px; overflow: hidden; background: var(--board-deep); }
.map a:hover, .map a:focus-visible { border-color: var(--yellow); }
.map img { width: 100%; }
.map figcaption { max-width: 520px; }
@media (max-width: 820px) { .map { grid-template-columns: 1fr; } }
.sheet-title, .sheet h2 { font-size: 26px; text-transform: uppercase; color: #34202b; margin-bottom: 8px; }
.back { margin-top: 34px; }
.sheet.narrow { max-width: 560px; margin-top: 14px; }
.nf-peek { margin: 26px 0 0 30px; }

/* a 4K screen without display scaling: everything half as large again, so the page does not sit small in the middle */
@media (min-width: 3000px) {
  body { zoom: 1.5; }
}
