/* =========================================================
   Wildercroft Interactive Studio — base styles
   ========================================================= */

:root {
  --bg-cream: #f6f2ea;
  --bg-cream-2: #efe9dc;
  --bg-dark: #0b0b0c;
  --bg-dark-2: #15151a;
  --text-dark: #16160f;
  --text-muted: #56534a;
  --text-light: #f6f2ea;
  --text-light-muted: #b9b6ad;
  --amber: #e2a542;
  --amber-dark: #c8862a;
  --teal: #4fd1c5;

  --container-w: 1240px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-cream);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin: 0 0 16px;
}
.eyebrow--light { color: var(--amber); }

.h2 {
  font-size: clamp(32px, 4.2vw, 52px);
}
.h2--center { text-align: center; margin: 0 auto; }
.h2--light { color: var(--text-light); }

.h3 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 20px;
}

.body-lg {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 46ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--amber { background: var(--amber); color: #1a1204; }
.btn--amber:hover { background: var(--amber-dark); }

.btn--dark { background: var(--text-dark); color: var(--text-light); }
.btn--dark:hover { background: #000; }

.btn--ghost {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(246, 242, 234, 0.45);
}
.btn--ghost:hover { border-color: var(--text-light); background: rgba(255,255,255,0.08); }

.btn--sm { padding: 11px 22px; font-size: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background-color 0.35s var(--ease), padding 0.35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.nav__mark { width: 34px; height: 34px; }
.nav__word {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--text-light);
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: 32px;
}
.nav__link {
  color: var(--text-light-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s var(--ease);
}
.nav__link:hover { color: var(--text-light); }

.nav__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  transform: scale(1.06);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,6,8,0.55) 0%, rgba(6,6,8,0.35) 35%, rgba(6,6,8,0.75) 100%),
    linear-gradient(90deg, rgba(6,6,8,0.75) 0%, rgba(6,6,8,0.15) 55%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero__title {
  font-size: clamp(40px, 6.4vw, 84px);
  color: var(--text-light);
  max-width: 16ch;
}
.hero__sub {
  margin-top: 26px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-light-muted);
  max-width: 52ch;
}
.hero__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 42px;
}

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(246,242,234,0.5);
  border-radius: var(--radius-pill);
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--text-light);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

/* =========================================================
   STUDIO STRIP
   ========================================================= */
.studio {
  background: var(--bg-cream);
  padding: 130px 0;
}
.studio__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 80px;
  align-items: center;
}
.studio__art img {
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(20,18,10,0.35);
}
.studio__copy .body-lg { margin-bottom: 18px; }
.studio__copy .h2 { margin-bottom: 26px; }

/* =========================================================
   GAMES INTRO
   ========================================================= */
.games-intro {
  background: var(--bg-cream-2);
  padding: 90px 0 20px;
  text-align: center;
}
.games-intro .eyebrow { text-align: center; }

/* =========================================================
   GAME BLOCKS
   ========================================================= */
.game-block {
  background: var(--bg-cream-2);
  padding: 90px 0;
}
.game-block__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.game-block--reverse .game-block__grid {
  grid-template-columns: 1fr 1fr;
}
.game-block--reverse .game-block__copy { order: 1; }
.game-block--reverse .game-block__art { order: 2; }

.game-block__art { position: relative; }
.game-block__art img {
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -18px rgba(20,18,10,0.35);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.game-block__floatcard {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 40px -14px rgba(0,0,0,0.5);
  min-width: 220px;
}
.game-block__floatcard strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
}
.game-block__floatcard span {
  display: block;
  font-size: 12px;
  color: var(--text-light-muted);
  margin-top: 2px;
}
.game-block__floatcard-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(226,165,66,0.2);
}
.game-block__floatcard-dot--teal {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(79,209,197,0.2);
}

.game-block__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* =========================================================
   NEWS
   ========================================================= */
.news {
  background: var(--bg-cream-2);
  padding: 100px 0 110px;
}
.news .h2 { margin-bottom: 48px; }
.news__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.news__item {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px -28px rgba(20,18,10,0.35);
  display: flex;
  flex-direction: column;
  animation: news-in .5s var(--ease) both;
}
.news__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-cream-2);
}
.news__body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
@keyframes news-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.news__date {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-dark);
}
.news__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  line-height: 1.25;
  margin: 12px 0 12px;
}
.news__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news__item .link-arrow { margin-top: auto; padding-top: 18px; align-self: flex-start; border-bottom: 0; }
.news__item .link-arrow span { transition: transform .25s var(--ease); }
.news__item .link-arrow:hover span { transform: translateX(3px); }
.news__more { background: none; border: 0; cursor: pointer; font-size: 16px; padding-left: 0; padding-right: 0; }
.news__item.is-open .news__text { -webkit-line-clamp: unset; overflow: visible; }
.news__full { display: none; }
.news__item.is-open .news__full { display: block; animation: news-in .4s var(--ease) both; }
.news__full .news__text { margin-top: 14px; white-space: pre-line; }
.news__full .news__visit { margin-top: 16px; padding-top: 0; }

.news__pager {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
}
.news__pager[hidden], .news__arrow[hidden] { display: none; }
.news__arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(22,22,15,0.25);
  background: transparent;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.news__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.news__arrow:hover { border-color: var(--amber-dark); color: var(--amber-dark); transform: translateY(2px); }
#news-newer:hover { transform: translateY(-2px); }

.news__empty {
  grid-column: 1 / -1;
  font-size: 18px;
  color: var(--text-muted);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 34px 30px;
  text-align: center;
}

/* home page: one dev log card per game (sits right under News) */
.devlog { padding-top: 0; }
.devlog .news__list { align-items: stretch; }
.devlog__card { text-decoration: none; color: inherit; height: 100%; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.devlog__card:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -26px rgba(20,18,10,0.45); }
.devlog__card .news__date { font-size: 13px; }
.devlog__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.devlog__status .game-block__floatcard-dot { width: 8px; height: 8px; }
.devlog__latest {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
}
.devlog__latest strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text-dark);
  margin-top: 4px;
}
.devlog__when { font-size: 13px; color: var(--text-muted); }
.devlog__card .link-arrow { border-bottom: 0; }
.devlog__card:hover .link-arrow span { transform: translateX(4px); }

/* =========================================================
   GAME PAGE (dev log) – hero is shorter than the home hero
   ========================================================= */
.hero--game { min-height: 78vh; }
.hero--game .hero__scroll { display: none; }
.hero--game .hero__title { max-width: 18ch; }
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 15px;
  color: var(--text-light-muted);
}
.hero__status .game-block__floatcard-dot { width: 9px; height: 9px; }

/* =========================================================
   COMMUNITY
   ========================================================= */
.community {
  background: var(--bg-dark);
  padding: 130px 0;
  text-align: center;
}
.community__sub {
  margin: 22px auto 0;
  color: var(--text-light-muted);
  max-width: 50ch;
  text-align: center;
}
.community__socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}
.community__icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}
.social-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(246,242,234,0.25);
  color: var(--text-light);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.social-icon svg { width: 21px; height: 21px; }
.social-icon:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(226,165,66,0.08);
  transform: translateY(-2px);
}
.community__icons + .community__socials { margin-top: 22px; }

.social-pill {
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(246,242,234,0.25);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.social-pill:hover {
  border-color: var(--amber);
  background: rgba(226,165,66,0.08);
  transform: translateY(-2px);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(246,242,234,0.1);
  padding-top: 56px;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-bottom: 40px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.footer__mark { width: 28px; height: 28px; }
.footer__links {
  display: flex;
  gap: 28px;
}
.footer__links a {
  color: var(--text-light-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color .2s var(--ease);
}
.footer__links a:hover { color: var(--text-light); }

.footer__socials {
  display: flex;
  gap: 16px;
}
.footer__socials a {
  color: var(--text-light-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color .2s var(--ease);
}
.footer__socials a:hover { color: var(--amber); }
.footer__icon { display: inline-flex; }
.footer__icon svg { width: 18px; height: 18px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding: 22px 32px 28px;
  border-top: 1px solid rgba(246,242,234,0.08);
  font-size: 13px;
  color: var(--text-light-muted);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .studio__grid,
  .game-block__grid,
  .game-block--reverse .game-block__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .game-block--reverse .game-block__copy { order: 2; }
  .game-block--reverse .game-block__art { order: 1; }
  .studio { padding: 90px 0; }
  .game-block { padding: 64px 0; }
  .community { padding: 90px 0; }
}

@media (max-width: 900px) {
  .news__list { grid-template-columns: 1fr; max-width: 640px; }
  .news { padding: 90px 0; }
}

@media (max-width: 900px) and (min-width: 761px) {
  .nav__cta { display: none; }
  .nav__links { margin-left: auto; }
}

/* footer: links + icons go to two rows on tablets so nothing sticks out */
@media (max-width: 900px) {
  .footer__inner { flex-wrap: wrap; row-gap: 22px; }
  .footer__links { flex-wrap: wrap; gap: 12px 22px; }
}

/* 6 menu links: tighter spacing on tablets and small laptops */
@media (max-width: 1100px) and (min-width: 761px) {
  .nav__inner { gap: 20px; }
  .nav__links { gap: 20px; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    background: rgba(11,11,12,0.96);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-md);
    padding: 20px;
    gap: 6px;
  }
  .nav.is-open .nav__link { padding: 10px 4px; }
  .nav.is-open .nav__cta {
    display: inline-flex;
    position: fixed;
    top: 232px;
    left: 32px;
  }

  .container { padding: 0 22px; }
  .hero__content { padding-top: 100px; padding-bottom: 64px; }
  .footer__inner { flex-wrap: wrap; row-gap: 22px; padding-bottom: 36px; } /* 12.11: .container padding wiped the gap under the social icons */
  .footer__links { flex-wrap: wrap; gap: 12px 22px; width: 100%; }
  .hero__scroll { display: none; }
  .nav.is-open .nav__cta { display: none; }
  .footer__bottom { flex-direction: column; gap: 6px; padding: 18px 22px 24px; }
  .game-block__floatcard { left: 12px; bottom: -18px; padding: 12px 16px; min-width: 190px; }
}

@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
  .community__socials { flex-direction: column; align-items: stretch; }
}

/* small legal line under the footer (game pages that show third-party logos) */
.footer__legal {
  padding: 0 32px 26px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-light-muted);
  opacity: 0.75;
}
@media (max-width: 760px) { .footer__legal { padding: 0 22px 22px; } }

/* game page dev log: one row of cards, scrolled sideways (arrows, swipe, trackpad) */
.news__list.news__list--carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 0 34px;          /* room for the card shadows */
  margin-bottom: -34px;
  max-width: none;
}
.news__list--carousel::-webkit-scrollbar { display: none; }
.news__list--carousel .news__item {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
}
.news__list--carousel .news__empty { flex: 1 0 100%; }
#news-pager .news__arrow:disabled { opacity: 0.25; cursor: default; transform: none; border-color: rgba(22,22,15,0.25); color: var(--text-dark); }
.news__list--carousel ~ .news__pager #news-newer:hover:not(:disabled) { transform: translateX(-2px); }
.news__list--carousel ~ .news__pager #news-older:hover:not(:disabled) { transform: translateX(2px); }
@media (max-width: 900px) {
  .news__list--carousel .news__item { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .news__list--carousel .news__item { flex-basis: 86%; }
}

/* =========================================================
   LANGUAGES – flag button in the nav + "this page is also in …" bar
   ========================================================= */
.lang { position: relative; flex-shrink: 0; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(246,242,234,0.28);
  border-radius: var(--radius-pill);
  background: rgba(11,11,12,0.25);
  color: var(--text-light);
  font: 600 13px/1 "Inter", sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.lang__btn:hover, .lang__btn[aria-expanded="true"] { border-color: rgba(246,242,234,0.6); background: rgba(11,11,12,0.45); }
.lang__flag, .lang__menu img, .lang-offer > img {
  width: 20px; height: 15px; border-radius: 3px; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
}
.lang__chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: rgba(11,11,12,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(246,242,234,0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  z-index: 120;
}
.lang__menu[hidden] { display: none; }
.lang__menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-light-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.lang__menu a:hover, .lang__menu a:focus-visible { background: rgba(246,242,234,0.08); color: var(--text-light); }
.lang__menu a[aria-current="page"] { color: var(--text-light); background: rgba(226,165,66,0.16); }

.lang-offer {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 10px 10px 18px;
  background: rgba(11,11,12,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-light);
  border: 1px solid rgba(246,242,234,0.14);
  border-radius: var(--radius-pill);
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
  font-size: 14px;
}
.lang-offer__go { flex-shrink: 0; }
.lang-offer__close {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--text-light-muted);
  font-size: 22px; line-height: 1;
  cursor: pointer;
}
.lang-offer__close:hover { color: var(--text-light); background: rgba(246,242,234,0.08); }

@media (max-width: 760px) {
  .lang { margin-left: auto; }
  .nav__brand { margin-right: 0; min-width: 0; }
  .nav__inner { gap: 12px; } /* 12.11: language button no longer covers "Studio" on phones */
  .lang__btn { height: 36px; padding: 0 8px 0 10px; }
  .lang-offer {
    left: 16px; right: 16px; bottom: 16px;
    transform: none;
    width: auto;
    flex-wrap: wrap;
    border-radius: var(--radius-md);
    padding: 14px 10px 14px 16px;
    gap: 10px 12px;
  }
  .lang-offer__text { flex: 1 1 60%; }
  .lang-offer__go { order: 3; width: 100%; justify-content: center; }
  .lang-offer__close { margin-left: auto; }
}
@media (max-width: 420px) {
  .lang__chev { display: none; }
  .lang__btn { padding: 0 10px; }
}
@media (max-width: 380px) {
  .nav__mark { width: 30px; height: 30px; }
  .nav__brand { gap: 8px; }
  .nav__word { font-size: 16px; }
  .lang__btn { gap: 5px; padding: 0 8px; }
}
@media (max-width: 340px) {
  .nav .container { padding: 0 14px; }
  .nav__inner { gap: 8px; }
  .nav__word { font-size: 15px; }
}

/* Chinese, Korean, Japanese: system fonts that have the characters; no tight latin letter-spacing */
:lang(zh-Hans) body, :lang(zh-Hans) .h2, :lang(zh-Hans) .h3, :lang(zh-Hans) .hero__title, :lang(zh-Hans) .news__title, :lang(zh-Hans) .eyebrow, :lang(zh-Hans) .btn {
  font-family: "Space Grotesk", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
}
:lang(ja) body, :lang(ja) .h2, :lang(ja) .h3, :lang(ja) .hero__title, :lang(ja) .news__title, :lang(ja) .eyebrow, :lang(ja) .btn {
  font-family: "Space Grotesk", "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
}
:lang(ko) body, :lang(ko) .h2, :lang(ko) .h3, :lang(ko) .hero__title, :lang(ko) .news__title, :lang(ko) .eyebrow, :lang(ko) .btn {
  font-family: "Space Grotesk", "Inter", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
}
:lang(zh-Hans) .h2, :lang(zh-Hans) .h3, :lang(zh-Hans) .hero__title,
:lang(ja) .h2, :lang(ja) .h3, :lang(ja) .hero__title,
:lang(ko) .h2, :lang(ko) .h3, :lang(ko) .hero__title { letter-spacing: 0; line-height: 1.25; }
:lang(ko) .body-lg, :lang(ko) .news__text, :lang(ko) .hero__sub { word-break: keep-all; }
@media (max-width: 480px) {
  :lang(ja) .hero__title, :lang(zh-Hans) .hero__title { font-size: 32px; }
  :lang(ja) .hero__title { font-size: 29px; }
  :lang(ja) .h2, :lang(zh-Hans) .h2 { font-size: 28px; }
}
:lang(ko) .hero__title, :lang(ko) .h2, :lang(ko) .h3 { word-break: keep-all; }
:lang(ja) .hero__title, :lang(zh-Hans) .hero__title, :lang(ko) .hero__title { max-width: 14em; }

/* ---------- 3D (13.11.2026): the painted planet turns in the hero, tilting cards ---------- */
.hero__planet3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}
/* every card and picture card tilts toward the mouse (news, dev log, studio picture, game pictures);
   the transform is only set while the mouse is on it, so the scroll-in animation (.reveal) stays as it was */
.wc-tilt-on .news__item,
.wc-tilt-on .game-block__art,
.wc-tilt-on .studio__art {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  transform-style: preserve-3d;
  position: relative;
}
.wc-tilt-on .news__item { overflow: visible; }
.wc-tilt-on .is-tilting,
.wc-tilt-on .is-settling {
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
}
.wc-tilt-on .is-tilting { transition: transform .08s linear, box-shadow .3s var(--ease); }
.wc-tilt-on .is-settling { transition: transform .5s var(--ease), box-shadow .3s var(--ease); }
.wc-tilt-on .news__item.is-tilting { box-shadow: 0 34px 60px -30px rgba(20,18,10,0.5); }
.wc-tilt-on .devlog__card:hover { transform: none; }
.wc-tilt-on .devlog__card.is-tilting:hover { transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); }
/* depth layers */
.wc-tilt-on .news__img { border-radius: var(--radius-md) var(--radius-md) 0 0; transition: transform .5s var(--ease); }
.wc-tilt-on .news__body { transition: transform .5s var(--ease); }
.wc-tilt-on .is-tilting .news__img { transform: translateZ(38px) scale(.96); transition: transform .25s var(--ease); }
.wc-tilt-on .is-tilting .news__body { transform: translateZ(18px); transition: transform .25s var(--ease); }
.wc-tilt-on .game-block__art img,
.wc-tilt-on .studio__art img { transition: transform .5s var(--ease), box-shadow .4s var(--ease); }
.wc-tilt-on .is-tilting > img { transform: translateZ(14px); box-shadow: 0 46px 80px -26px rgba(20,18,10,0.5); }
.wc-tilt-on .game-block__floatcard { transition: transform .5s var(--ease); }
.wc-tilt-on .is-tilting .game-block__floatcard { transform: translateZ(70px); transition: transform .25s var(--ease); }
/* soft light that follows the mouse */
.wc-tilt-on .news__item::after,
.wc-tilt-on .game-block__art::after,
.wc-tilt-on .studio__art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  pointer-events: none;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,250,235,.36), rgba(255,250,235,0) 55%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  transform: translateZ(40px);
}
.wc-tilt-on .game-block__art::after,
.wc-tilt-on .studio__art::after { border-radius: var(--radius-lg); }
.wc-tilt-on .is-tilting::after { opacity: 1; }
.wc-tilt-on .news__item { animation-fill-mode: backwards; }
/* game pages: light layer glued to the painting (moves with it) */
.hero__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: scale(1.06);
}
.hero__fx--smoke { z-index: auto; mix-blend-mode: normal; }

/* =========================================================
   WALLPAPERS PAGE (/wallpapers)
   ========================================================= */
.wall__list { display: grid; gap: 32px; }
.wall__item {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px -28px rgba(20,18,10,0.35);
}
.wall__art { position: relative; display: block; background: #0b0b0c; }
.wall__desk { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wall__phone {
  position: absolute; right: 5%; bottom: -1px;
  width: 18%; height: auto; aspect-ratio: 300 / 650; object-fit: cover;
  border: 4px solid #0b0b0c; border-bottom: 0; border-radius: 14px 14px 0 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.wall__body { padding: 32px 34px 34px; display: flex; flex-direction: column; justify-content: center; }
.wall__text { font-size: 16px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.wall__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.wall__actions .btn small { font-weight: 500; opacity: .7; margin-left: 6px; font-size: 12px; }
.wall__steam { margin-top: 18px; align-self: flex-start; border-bottom: 0; }
.wall__steam span { transition: transform .25s var(--ease); display: inline-block; }
.wall__steam:hover span { transform: translateX(3px); }
.wall__note { margin: 28px 0 0; font-size: 14px; color: var(--text-muted); }
@media (max-width: 900px) {
  .wall__item { grid-template-columns: 1fr; }
  .wall__body { padding: 24px 22px 28px; }
}
