/* ThumbleFox Studios */

@font-face { font-family: "Baloo 2"; src: url("../fonts/baloo2-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("../fonts/baloo2-500.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
  --ink: #141012;
  --ink-2: #1C1619;
  --ink-3: #251D21;
  --line: #33292E;
  --text: #F5F0EC;
  --muted: #B3A9A5;
  --orange: #F65B11;      /* fox orange, from the logo */
  --orange-hi: #FF6E27;
  --orange-dark: #9E3807;
  --sun: #FFC43D;
  --radius: 22px;
  --wrap: 1160px;
  --head: "Baloo 2", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 10px; }

h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.9vw, 1.28rem); color: var(--muted); max-width: 38em; }
.eyebrow {
  font-family: var(--head); font-weight: 500; text-transform: uppercase;
  letter-spacing: .32em; font-size: .86rem; color: var(--orange); margin-bottom: 14px; display: block;
}

/* ---------------------------------------------------------------- header */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; font-family: var(--head); font-weight: 500; font-size: 1.05rem;
  padding: 6px 14px; border-radius: 999px; color: var(--muted); transition: color .15s, background .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--ink-3); }
.lang {
  margin-left: 8px; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.lang a, .lang span { padding: 3px 11px; font-family: var(--head); font-weight: 800; font-size: .85rem; letter-spacing: .08em; border-radius: 999px; text-decoration: none; }
.lang span { background: var(--orange); color: var(--ink); }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--text); }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font-family: var(--head); font-weight: 800;
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink-3); }
.menu .panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 10px;
  display: grid; gap: 2px; box-shadow: 0 20px 50px #0008;
}
.menu .panel a { text-decoration: none; font-family: var(--head); font-weight: 500; font-size: 1.1rem; padding: 8px 12px; border-radius: 10px; }
.menu .panel a:hover { background: var(--ink-3); }
.menu .lang { margin: 8px 0 2px; justify-self: start; }

@media (max-width: 820px) {
  .nav { display: none; }
  .menu { display: block; }
  .brand img { height: 34px; }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--head); font-weight: 800; font-size: 1.1rem; line-height: 1;
  padding: 16px 26px 14px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--orange); color: #fff; box-shadow: 0 6px 0 var(--orange-dark); }
.btn-main:hover { background: var(--orange-hi); }
.btn-main:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--orange-dark); }
.btn-line { border-color: var(--line); color: var(--text); }
.btn-line:hover { border-color: var(--muted); }
.btn[aria-disabled="true"] { cursor: default; opacity: .7; transform: none; }
.btn small { font-family: var(--body); font-weight: 600; font-size: .78rem; opacity: .75; letter-spacing: .02em; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; padding: clamp(40px, 8vw, 110px) 0 clamp(60px, 9vw, 130px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -72px 0 0; z-index: -1;
  background:
    repeating-linear-gradient(30deg, #ffffff08 0 1px, transparent 1px 46px),
    repeating-linear-gradient(150deg, #ffffff08 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, #ffffff06 0 1px, transparent 1px 46px);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero h1 span { color: var(--orange); }
.hero .lead { margin: 22px 0 34px; }
.stage { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.stage::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, #F65B1150, transparent 68%); filter: blur(10px);
}
.stage .big {
  position: absolute; width: 74%; height: auto; left: 13%; top: 13%;
  animation: float 7s ease-in-out infinite; filter: drop-shadow(0 30px 30px #0009);
}
.stage .shadow {
  position: absolute; left: 26%; right: 26%; bottom: 8%; height: 7%; border-radius: 50%;
  background: #000; filter: blur(12px); opacity: .55; animation: shadow 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes shadow { 50% { transform: scaleX(.86); opacity: .38; } }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { order: -1; max-width: 300px; }
}

/* ---------------------------------------------------------------- sections */

section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { margin-bottom: 44px; max-width: 760px; }
.section-head .lead { margin-top: 16px; }
.band { background: var(--ink-2); border-block: 1px solid var(--line); }

/* game */
.game {
  overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
}
.band .game { background: var(--ink); }
.game-block + .game-block { margin-top: clamp(48px, 6vw, 76px); }
.game-art { background: #8C64E6; }
.game-art img { width: 100%; height: auto; aspect-ratio: 1024 / 500; }
.game-body {
  padding: clamp(26px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 48px; align-items: start;
}
.game-body .btns { grid-column: 1 / -1; }
.game-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.game-title img { width: 72px; height: 72px; border-radius: 18px; }
.tag {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--ink-3); color: var(--sun); margin-top: 6px;
}
.facts { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts li::before {
  content: ""; flex: none; width: 17px; height: 16px; margin-top: 6px;
  background: url("../brand/mark.png") center / contain no-repeat;
}
@media (max-width: 900px) { .game-body { grid-template-columns: 1fr; } }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 16px;
  margin-top: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; align-items: start;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.shots img { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 18px; scroll-snap-align: start; border: 1px solid var(--line); background: var(--ink-3); }
.shots .shot { display: block; border-radius: 18px; scroll-snap-align: start; cursor: zoom-in; }
.shots .shot img { transition: transform .2s, border-color .2s, box-shadow .2s; }
.shots .shot:hover img { transform: translateY(-4px); border-color: var(--muted); box-shadow: 0 14px 30px #0008; }

/* gallery (assets/js/gallery.js) */
html.g-lock { overflow: hidden; }
.gallery {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); overflow: hidden;
}
.gallery[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.gallery::backdrop { background: color-mix(in srgb, var(--ink) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.g-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 3vw, 32px); }
.g-title { font-family: var(--head); font-weight: 800; font-size: 1.25rem; }
.g-count { font-family: var(--head); font-weight: 500; color: var(--muted); margin-left: 12px; letter-spacing: .06em; }
.g-stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(12px, 9vw, 120px); touch-action: pan-y; }
.g-stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 22px;
  border: 1px solid var(--line); background: var(--ink-3); box-shadow: 0 30px 70px #000b;
  user-select: none; -webkit-user-select: none; cursor: grab;
}
.g-stage img:active { cursor: grabbing; }
.g-foot { padding: 14px 16px 20px; text-align: center; }
.g-cap { color: var(--muted); margin: 0 auto 12px; max-width: 34em; min-height: 1.65em; font-size: .98rem; }
.g-dots { display: flex; justify-content: center; gap: 10px; }
.g-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--line); transition: width .2s, background .2s;
}
.g-dots button:hover { background: var(--muted); }
.g-dots button[aria-current="true"] { width: 26px; background: var(--orange); }
.g-btn {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 999px; border: 2px solid var(--line); background: var(--ink-2); color: var(--text);
  transition: border-color .15s, background .15s, transform .15s;
}
.g-btn:hover { border-color: var(--muted); background: var(--ink-3); }
.g-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.g-prev, .g-next { position: absolute; top: 50%; transform: translateY(-50%); }
.g-prev:hover, .g-next:hover { transform: translateY(-50%) scale(1.06); }
.g-prev { left: clamp(16px, 3vw, 40px); }
.g-next { right: clamp(16px, 3vw, 40px); }
.g-btn[hidden], .g-dots[hidden] { display: none; }
@media (max-width: 640px) {
  .g-prev, .g-next { top: auto; bottom: 12px; transform: none; width: 46px; height: 46px; }
  .g-prev:hover, .g-next:hover { transform: none; }
  .g-prev { left: 16px; } .g-next { right: 16px; }
  .g-foot { padding-bottom: 26px; min-height: 96px; }
  .g-cap { padding-inline: 50px; font-size: .92rem; }
}

.next {
  margin-top: 26px; display: flex; align-items: center; gap: 22px; padding: 24px 28px;
  border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.next img { width: 56px; height: auto; flex: none; filter: grayscale(1); opacity: .35; }
.next strong { color: var(--text); font-family: var(--head); font-size: 1.3rem; display: block; line-height: 1.2; }

/* values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.value img { width: 46px; height: auto; margin-bottom: 18px; }
.value h3 { margin-bottom: 10px; }
.value p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

/* contact */
.contact { text-align: center; }
.contact .section-head { margin-inline: auto; }
.contact .lead { margin-inline: auto; }
.contact .btns { justify-content: center; }
.mail { font-family: var(--head); font-weight: 800; font-size: clamp(1.25rem, 3.4vw, 2rem); word-break: break-all; text-decoration-color: var(--orange); text-underline-offset: 6px; }

/* ---------------------------------------------------------------- article (privacy, press) */

.page-head { padding: clamp(48px, 7vw, 90px) 0 30px; border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 16px; }
.article { max-width: 780px; padding-block: 50px 90px; }
.article h2 { font-size: 1.75rem; margin: 2.2em 0 .6em; }
.article h3 { font-size: 1.25rem; margin: 1.6em 0 .4em; }
.article ul { padding-left: 1.2em; margin: 0 0 1em; }
.article li { margin-bottom: .45em; }
.article a { text-decoration-color: var(--orange); text-underline-offset: 3px; }
.article .note { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; color: var(--muted); }
.toc { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 24px; margin-top: 30px; }
.toc ol { margin: 6px 0 0; padding-left: 1.3em; columns: 2; column-gap: 30px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

table.kv { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; }
table.kv th, table.kv td { text-align: left; vertical-align: top; padding: 10px 0; border-bottom: 1px solid var(--line); }
table.kv th { width: 34%; color: var(--muted); font-weight: 600; padding-right: 16px; }

.downloads { display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0 0 1.5em; }
.dl { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.dl .pv { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 18px; overflow: hidden; }
.dl .pv.light { background: #F5F0EC; }
.dl .pv img { height: 100%; width: auto; max-width: 100%; min-height: 0; object-fit: contain; }
.dl .pv.wide { aspect-ratio: 1024 / 500; padding: 0; }
.dl .pv.tall { aspect-ratio: 9 / 16; padding: 0; }
.dl .pv.wide img, .dl .pv.tall img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.downloads.tall { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.dl .meta { padding: 12px 16px 14px; font-size: .92rem; }
.dl .meta strong { display: block; }
.dl .meta a { color: var(--muted); margin-right: 12px; }
.dl .meta a:hover { color: var(--text); }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 1.4em; }
.swatch { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.swatch i { display: block; height: 70px; }
.swatch span { display: block; padding: 8px 12px; font-size: .88rem; background: var(--ink-2); }

/* ---------------------------------------------------------------- footer */

.site-foot { border-top: 1px solid var(--line); padding: 46px 0 40px; color: var(--muted); font-size: .95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.site-foot img { height: 34px; width: auto; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-foot nav a { text-decoration: none; }
.site-foot nav a:hover { color: var(--text); }
.site-foot .copy { width: 100%; font-size: .85rem; opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
