/* Red Shed Studio */

@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;
  --red: #DD1D24;
  --red-top: #A8181C;
  --red-dark: #6B0A0B;
  --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(--red); 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(--red); 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(--red); color: #fff; }
.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-red { background: var(--red); color: #fff; box-shadow: 0 6px 0 var(--red-dark); }
.btn-red:hover { background: #EA2A31; }
.btn-red:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--red-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(--red); }
.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, #DD1D2455, transparent 68%); filter: blur(10px);
}
.stage svg { position: absolute; }
.stage .big { width: 62%; left: 19%; top: 14%; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 30px 30px #0009); }
.stage .s1 { width: 14%; left: 4%; top: 12%; animation: float 5s ease-in-out -1s infinite; opacity: .9; }
.stage .s2 { width: 10%; right: 4%; top: 30%; animation: float 6s ease-in-out -3s infinite; opacity: .75; }
.stage .s3 { width: 12%; right: 14%; bottom: 4%; animation: float 5.5s ease-in-out -2s infinite; opacity: .85; }
.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-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: 14px; height: 16px; margin-top: 6px;
  background: url("../brand/favicon.svg") 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); }

.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 svg { width: 52px; flex: none; opacity: .5; }
.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 svg { width: 40px; 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(--red); 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(--red); 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; }
}
