@font-face {
  font-family: Fredoka;
  src: url("assets/Fredoka.woff") format("woff");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffaf4;
  --white: #fffefd;
  --ink: #29223b;
  --muted: #5f566f;
  --line: #e7dcee;
  --purple: #5f37ab;
  --purple-deep: #492684;
  --display: Fredoka, "Arial Rounded MT Bold", system-ui, sans-serif;
  --max-width: 76rem;
  --gutter: clamp(1rem, 4.4vw, 4rem);
  font: 100% / 1.6 var(--display);
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 1.0625rem; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
section[id] { scroll-margin-top: 1.75rem; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}

::selection { background: #dfccff; color: var(--ink); }

.shell {
  width: min(var(--max-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 5;
  top: .8rem;
  left: 1rem;
  padding: .65rem 1rem;
  border-radius: .65rem;
  background: var(--purple-deep);
  color: white;
  font-weight: 700;
}

.header-inner,
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
}

.header-inner {
  grid-template-areas: "brand nav actions";
  min-height: 5.4rem;
}

.header-inner .brand { grid-area: brand; }
.header-inner nav { grid-area: nav; }

.header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: .7rem;
}

.language-switch {
  display: flex;
  gap: .13rem;
  padding: .2rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--white);
}

.language-switch a {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: .15rem .45rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  transition: background-color .18s ease, color .18s ease;
}

.language-switch a:hover { color: var(--purple-deep); }

.language-switch a[aria-current="page"] {
  border-color: #e6d4fa;
  background: #f0e5ff;
  color: var(--purple-deep);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: .65rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: .9;
}

.brand img { width: 2rem; height: auto; }

.brand small {
  display: block;
  margin-top: .27rem;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .31em;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 3vw, 2.2rem);
  color: var(--muted);
  font-weight: 700;
}

nav a {
  text-underline-offset: .28em;
  transition: color .18s ease;
}

nav a:hover {
  color: var(--purple);
  text-decoration: underline;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: .58rem 1.25rem;
  border: 1px solid transparent;
  border-radius: .9rem;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.button:hover { transform: translateY(-2px); }
.button-outline { background: var(--white); border-color: var(--line); }
.button-outline:hover { background: #f0e7ff; color: var(--purple-deep); }
.header-cta { min-height: 2.8rem; white-space: nowrap; }

.button-primary {
  background: var(--purple);
  color: white;
  border-color: var(--purple-deep);
  box-shadow: 0 .275rem 0 var(--purple-deep);
}

.button-primary:hover { background: var(--purple-deep); }

.hero-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.19fr);
  align-items: center;
  min-height: 34rem;
  border: 1px solid #e3d6f7;
  border-radius: clamp(1.4rem, 3vw, 2.35rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 64%, #fff0d6 0%, transparent 46%),
    linear-gradient(115deg, #fcf4ff 5%, #f2e7ff 59%, #f7ecff);
}

.hero-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(#ad86df53 1.1px, transparent 1.4px) 55% 50% / 1.15rem 1.15rem;
  mask-image: linear-gradient(100deg, transparent 44%, #000 92%);
  content: "";
}

.hero-copy {
  z-index: 1;
  padding: clamp(2rem, 5.05vw, 4.8rem);
  padding-right: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.1rem;
  color: var(--purple-deep);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.studio-mark {
  flex: 0 0 auto;
  width: .55rem;
  height: .55rem;
  border-radius: .14rem;
  background: #ad54a4;
  transform: rotate(45deg);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.65rem, 6.2vw, 6.05rem);
  font-weight: 700;
}

html[lang="tr"] h1 { font-size: clamp(2.5rem, 5.25vw, 5.25rem); }

h1 span:not(.hero-title-first) { color: var(--purple); }

.hero-description {
  max-width: 31ch;
  margin: 1.2rem 0 1.6rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 42rem;
  aspect-ratio: 1.26;
  margin-inline: auto;
}

.orbit {
  position: absolute;
  inset: 14% 9% 12% 10%;
  border: 2px dashed #9876cb61;
  border-radius: 50%;
  transform: rotate(-15deg);
}

.hero-screen {
  position: absolute;
  width: 25.5%;
  overflow: hidden;
  border: clamp(2px, .45vw, 6px) solid #fffefd;
  border-radius: clamp(.6rem, 1.35vw, 1.25rem);
  background: var(--white);
  box-shadow: 0 .65rem 1.15rem #5a3b7370, 0 0 0 1px #58317c17;
}

.hero-screen img { width: 100%; height: auto; }

.hero-screen-merge {
  top: 15%;
  left: 15%;
  transform: rotate(-15deg);
}

.hero-screen-smash {
  z-index: 2;
  top: 13%;
  left: 38%;
  width: 28%;
  transform: rotate(-5deg);
}

.hero-screen-potion {
  z-index: 1;
  top: 16%;
  left: 61%;
  transform: rotate(13deg);
}

.star { position: absolute; z-index: 3; line-height: 1; }
.star-mint { top: 12%; right: 16%; color: #39976e; font-size: clamp(1.2rem, 3.3vw, 2.7rem); }
.star-peach { bottom: 16%; left: 9%; color: #bd6836; font-size: clamp(1rem, 3.1vw, 2.5rem); }
.star-lilac { bottom: 17%; right: 7%; color: #8351c6; font-size: clamp(1.2rem, 3.2vw, 2.55rem); }

.games-section,
.studio-section,
.contact-section { margin-top: clamp(3.2rem, 6.6vw, 5.4rem); }

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

h2 { font-size: clamp(2.1rem, 4.5vw, 3.65rem); }

.filters {
  display: inline-flex;
  gap: .2rem;
  max-width: 100%;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--white);
}

.filters button {
  min-height: 2.55rem;
  padding: .38rem .8rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 700;
}

.filters button:hover { color: var(--purple-deep); }
.filters button[aria-pressed="true"] { border-color: #e6d4fa; background: #f0e5ff; color: var(--purple-deep); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.95rem, 2.3vw, 1.65rem);
}

.game-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 1.55rem;
  background: var(--white);
  box-shadow: 0 .45rem 1.6rem #3625540b;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.game-card:focus-within,
.game-card:hover {
  border-color: #d9c7eb;
  box-shadow: 0 .65rem 1.8rem #36255417;
}

.merge-card { --tag: #493695; --art-light: #ece6ff; --art-rich: #d0c0ff; --art-detail: #9673d359; }
.potion-card { --tag: #693180; --art-light: #fce7fb; --art-rich: #f3cde9; --art-detail: #bd68a74f; }
.smash-card { --tag: #235e4a; --art-light: #e8fae8; --art-rich: #bfeddb; --art-detail: #64a78463; }

.game-art {
  display: grid;
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.46;
  min-height: 14rem;
  place-items: center;
  overflow: hidden;
  border-radius: calc(1.55rem - 1px) calc(1.55rem - 1px) 0 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(var(--art-detail) 1px, transparent 1.4px) 50% 50% / .95rem .95rem,
    linear-gradient(145deg, var(--art-light) 25%, var(--art-rich));
}

.game-art:focus-visible { z-index: 2; outline-offset: 2px; }

.game-art::before {
  position: absolute;
  z-index: -1;
  width: 84%;
  height: 64%;
  border: 1px solid var(--art-detail);
  border-radius: 50%;
  transform: rotate(-16deg);
  content: "";
}

.game-screens {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .25rem;
  position: absolute;
  inset: .85rem 1rem 1rem;
}

.game-screens img {
  width: auto;
  height: 88%;
  max-width: 32%;
  object-fit: contain;
  border: 3px solid var(--white);
  border-radius: .8rem;
  background: var(--white);
  box-shadow: 0 .4rem .95rem #35204c42;
  --screen-angle: -9deg;
  transform: translateY(-.1rem) rotate(var(--screen-angle));
  transition: transform .22s ease;
}

.game-screens img:nth-child(2) {
  --screen-angle: 0deg;
  position: relative;
  z-index: 1;
  height: 94%;
}

.game-screens img:nth-child(3) { --screen-angle: 9deg; }
.game-art:hover .game-screens img,
.game-art:focus-visible .game-screens img { transform: translateY(-.35rem) rotate(calc(var(--screen-angle) * .72)); }

.gallery-label {
  position: absolute;
  z-index: 1;
  right: .75rem;
  bottom: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  min-height: 2.15rem;
  padding: .34rem .62rem;
  border: 1px solid #e2d8e8;
  border-radius: .65rem;
  box-shadow: 0 .16rem .55rem #32223e16;
  background: var(--white);
  color: var(--ink);
  font-size: .81rem;
  font-weight: 700;
  line-height: 1.2;
}

.expand-icon {
  width: .8rem;
  height: .8rem;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: .13rem;
  clip-path: polygon(0 0, 37% 0, 37% 35%, 63% 35%, 63% 0, 100% 0, 100% 37%, 65% 37%, 65% 63%, 100% 63%, 100% 100%, 63% 100%, 63% 65%, 37% 65%, 37% 100%, 0 100%, 0 63%, 35% 63%, 35% 37%, 0 37%);
}

.game-content {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto auto auto;
  flex: 1;
  column-gap: .8rem;
  padding: clamp(1rem, 2vw, 1.45rem);
}

.game-icon { grid-row: 1 / 3; align-self: center; border: 1px solid var(--line); border-radius: .85rem; }

.game-genre {
  margin-bottom: .22rem;
  color: var(--tag);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
}

h3 { font-size: clamp(1.45rem, 2.3vw, 2rem); }
.game-description { grid-column: 1 / -1; margin: .9rem 0 1.15rem; color: var(--muted); }
.store-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .55rem; }

.store-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.75rem;
  padding: .43rem .7rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #f9f6fc;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color .18s ease, background-color .18s ease;
}

.store-link:hover { background: var(--art-light); border-color: var(--art-detail); }

.socials {
  grid-column: 1 / -1;
  margin-top: 1.05rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}

.social-title {
  margin-bottom: .4rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
}

.social-links { display: flex; flex-wrap: wrap; gap: .35rem; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: .27rem .52rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.25;
}

.social-icon { display: block; flex: 0 0 auto; }
.social-x { justify-content: center; min-width: 2.25rem; }

a.social-youtube .social-icon { color: #c71621; }
a.social-instagram .social-icon { color: #a32763; }
a.social-x .social-icon,
a.social-tiktok .social-icon { color: #20192b; }

a.social-link {
  min-height: 2.25rem;
  background: var(--art-light);
  color: var(--tag);
  transition: background-color .18s ease, border-color .18s ease;
}

a.social-link:hover {
  border-color: var(--tag);
  background: var(--white);
}

.social-link[data-social-url] {
  min-height: 2.25rem;
  color: var(--muted);
  border-style: dashed;
}

.store-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  background-color: var(--tag);
}

.google-play-icon { clip-path: polygon(14% 0, 100% 50%, 14% 100%); }

.app-store-icon {
  clip-path: path("M11.3 4.3c.8 0 1.8.5 2.5 1.3-2.2 1.3-1.9 4.2.3 5.2-.4 1.2-1.7 4-3.1 4-1 0-1.3-.6-2.7-.6-1.4 0-1.7.6-2.7.6-1.5 0-3.7-3.7-3.7-6.1 0-2.4 1.4-4.4 3.6-4.4 1.2 0 1.9.7 2.8.7.9 0 1.8-.7 3-.7ZM10.7.6c.1 1.8-1.3 3.4-2.9 3.5C7.5 2.5 9 .8 10.7.6Z");
}

.studio-panel {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  min-height: 19rem;
  overflow: hidden;
  border: 1px solid #e3d9ef;
  border-radius: 1.75rem;
  background: #f7f0ff;
}

.studio-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 1.8rem;
  overflow: hidden;
  background:
    radial-gradient(#71a5955c 1px, transparent 1.3px) 50% / 1rem 1rem,
    linear-gradient(135deg, #f2f8d8, #d9f4e9 72%);
}

.studio-art::before {
  position: absolute;
  z-index: -1;
  width: 62%;
  height: 70%;
  border: 1px dashed #538c78a1;
  border-radius: 50%;
  transform: rotate(-19deg);
  content: "";
}

.studio-art img {
  width: clamp(6rem, 38%, 9rem);
  height: auto;
  transform: rotate(-9deg);
  filter: drop-shadow(0 .55rem .65rem #475d5740);
}

.studio-copy { align-self: center; padding: clamp(1.65rem, 4vw, 4rem); }
.studio-copy h2 { font-size: clamp(2rem, 3.9vw, 3.4rem); }
.studio-copy p { max-width: 44ch; margin: .85rem 0 1.2rem; color: var(--muted); }

.gallery {
  width: min(26rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0 3rem #23153842;
}

.gallery::backdrop { background: #21182eab; }
body:has(.gallery[open]) { overflow: hidden; }

.gallery-header,
.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.gallery-header h2 { font-size: clamp(1.45rem, 5vw, 2rem); }
.gallery-image { display: grid; place-items: center; margin-block: .7rem; }

.gallery-image img {
  width: auto;
  height: auto;
  max-height: min(40rem, max(9rem, calc(100dvh - 15.25rem)));
  border-radius: .7rem;
}

.gallery-control {
  min-height: 2.75rem;
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #f7efff;
  color: var(--purple-deep);
  font-size: .925rem;
  font-weight: 600;
  cursor: pointer;
}

.gallery-control:hover { background: #eee0ff; }
.gallery-close { width: 2.75rem; padding: 0; font-size: 1.45rem; line-height: 1; }
.gallery-position {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.25;
  text-align: center;
}

.gallery-thumbnails {
  position: relative;
  display: flex;
  gap: .4rem;
  margin-bottom: .65rem;
  padding: .22rem .18rem .42rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #b699d8 #f6effb;
}

.gallery-thumbnail {
  width: 2.35rem;
  height: 3.8rem;
  flex: 0 0 auto;
  padding: .13rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #f7efff;
  cursor: pointer;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: .23rem;
}

.gallery-thumbnail[aria-current="true"] { border: 2px solid var(--purple); }
.gallery-thumbnail:focus-visible { outline-offset: 1px; }

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 1.5rem 2.25rem;
  padding: clamp(1.3rem, 4vw, 3.5rem);
  border: 1px solid #e9ddce;
  border-radius: 1.75rem;
  background: linear-gradient(120deg, #ffefda, #f7eeff);
}

.contact-intro h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.contact-intro p { margin-top: .55rem; color: var(--muted); }

.contact-details {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  font-style: normal;
  line-height: 1.35;
}

.contact-details div { min-width: 0; }

.contact-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: .75rem;
  background: #f0e5ff;
  color: var(--purple);
}

.contact-name { font-size: 1.2rem; font-weight: 600; }
.contact-details a {
  display: inline-block;
  margin-top: .18rem;
  color: var(--purple-deep);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: .21em;
}
.contact-details a:hover { color: var(--purple); }

.contact-details .contact-linkedin {
  display: flex;
  align-items: center;
  gap: .4rem;
  width: fit-content;
  max-width: 100%;
  margin-top: .5rem;
  color: #0a5793;
  font-weight: 600;
}

.contact-linkedin svg { flex: none; }
.contact-details .contact-linkedin:hover { color: #063c66; }

.site-footer {
  margin-top: clamp(3.15rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  min-height: 6rem;
  grid-template-areas: "brand copyright nav";
}

.footer-inner .brand { grid-area: brand; }
.footer-copyright { grid-area: copyright; color: var(--muted); font-size: .875rem; }
.footer-inner nav { grid-area: nav; justify-self: end; }

@media (max-width: 64rem) {
  .hero-panel { min-height: 27rem; }
  h1 { font-size: clamp(2.65rem, 5.95vw, 4.5rem); }
  html[lang="tr"] h1 { font-size: clamp(2.1rem, 4.35vw, 3.5rem); }
}

@media (max-width: 53rem) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 45rem) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "nav nav";
    gap: .5rem 1rem;
    min-height: 0;
    padding-block: .9rem .7rem;
  }
  .header-inner nav { justify-content: center; gap: clamp(.9rem, 4vw, 1.5rem); font-size: .95rem; }
  .header-inner nav a { padding-block: .3rem; }
  .header-cta { display: none; }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "nav" "copyright";
    justify-items: center;
    gap: .95rem;
    padding-block: 1.65rem;
    text-align: center;
  }
  .footer-inner nav { justify-self: center; flex-wrap: wrap; justify-content: center; }

  .hero-panel {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    background:
      radial-gradient(ellipse at 85% 84%, #fff0d6 0%, transparent 52%),
      linear-gradient(142deg, #fcf4ff, #f1e2ff);
  }

  .hero-panel::before { mask-image: linear-gradient(180deg, transparent 34%, #000); }
  .hero-copy { padding: 1.9rem clamp(1.25rem, 6vw, 3rem) 0; }
  h1 { font-size: clamp(2.55rem, 11.3vw, 4.9rem); }
  html[lang="tr"] h1 { font-size: clamp(2.05rem, 10.6vw, 4.55rem); }
  .hero-description { margin-block: .95rem 1.2rem; }
  .hero-art { width: min(100%, 32rem); margin-top: .8rem; }
  .eyebrow { margin-bottom: .7rem; }
  .studio-panel { grid-template-columns: 1fr 1.5fr; }
}

@media (max-width: 34rem) {
  .hero-screen { box-shadow: 0 .45rem .85rem #5a3b735e; }
  .game-grid { grid-template-columns: minmax(0, 1fr); }
  .game-content { padding: 1.2rem; }
  .filters button { padding-inline: .65rem; }
  .studio-panel { grid-template-columns: minmax(0, 1fr); }
  .studio-art { min-height: 11rem; order: 1; }
  .studio-art img { width: 5.8rem; }
  .studio-art::before { width: 48%; }
  .contact-panel { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .contact-details { padding-inline: .75rem; gap: .7rem; }
  .contact-mark { width: 2.4rem; height: 2.4rem; }
  .contact-details a { font-size: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .header-inner { animation: page-enter .36s ease-out both; }
  .hero-panel, .detail-hero { animation: page-enter .55s ease-out both; }
  .hero-copy, .detail-intro { animation: rise-in .56s .08s ease-out both; }
  .hero-art, .detail-visual { animation: rise-in .68s .14s ease-out both; }

  .awaiting-entrance:not(:focus-within) { opacity: 0; }
  .entering:not(:focus-within) {
    animation: section-enter .54s cubic-bezier(.2, .7, .25, 1) var(--entrance-delay, 0s) backwards;
  }

  :is(.game-card, .detail-shot, .detail-steps li, .detail-related-link):nth-child(2) {
    --entrance-delay: .065s;
  }

  :is(.game-card, .detail-shot, .detail-steps li):nth-child(3),
  .detail-shot:nth-child(4) { --entrance-delay: .12s; }

  @keyframes page-enter {
    from { opacity: .55; translate: 0 .35rem; }
    to { opacity: 1; translate: 0 0; }
  }

  @keyframes section-enter {
    from { opacity: 0; translate: 0 1rem; }
    to { opacity: 1; translate: 0 0; }
  }
  .gallery[open] { animation: rise-in .19s ease-out both; }
  .gallery-image img { animation: picture-in .2s ease-out both; }

  @keyframes rise-in {
    from { opacity: .55; transform: translateY(.6rem); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes picture-in {
    from { opacity: .55; transform: scale(.985); }
    to { opacity: 1; transform: scale(1); }
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.game-detail-action {
  grid-column: 1 / -1;
  margin-bottom: .75rem;
}

.game-detail-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.4rem;
  max-width: 100%;
  padding: .32rem .68rem;
  border-radius: .65rem;
  background: var(--art-light);
  color: var(--tag);
  font-weight: 650;
  line-height: 1.25;
  transition: background-color .18s ease;
}

.game-detail-icon { flex: 0 0 auto; transition: transform .18s ease; }
.game-detail-link:hover { background: var(--art-rich); }

@media (prefers-reduced-motion: no-preference) {
  .game-detail-link:hover .game-detail-icon { transform: scale(1.1); }
}

.detail-breadcrumb { padding: .2rem 0 .85rem; font-size: .93rem; }

.detail-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-breadcrumb li + li::before {
  margin-inline: .12rem .45rem;
  color: var(--muted);
  content: "/";
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  align-items: center;
  min-height: 29rem;
  border: 1px solid var(--line);
  border-radius: clamp(1.4rem, 3vw, 2.35rem);
  background: linear-gradient(115deg, var(--white) 15%, var(--art-light));
  overflow: hidden;
}

.detail-intro { padding: clamp(1.35rem, 4.5vw, 4.2rem); }

.detail-app-icon {
  width: 5.125rem;
  height: auto;
  margin-bottom: .85rem;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
}

.detail-intro .game-genre {
  margin-bottom: .65rem;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

html[lang] .detail-intro h1 {
  font-size: clamp(2.75rem, 6.1vw, 5.2rem);
  line-height: .99;
}

.detail-lede {
  max-width: 43ch;
  margin: .95rem 0 1.3rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.detail-download { scroll-margin-top: 1.3rem; }

.detail-download .store-link {
  min-height: 3rem;
  padding-inline: .9rem;
  color: var(--white);
  background: var(--tag);
  font-size: 1rem;
}

.detail-download .store-link:hover { background: var(--ink); }
.detail-download .store-icon { background-color: currentColor; }

.detail-intro .socials {
  max-width: 24rem;
  margin-top: 1rem;
}

.detail-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(.65rem, 2.5vw, 2.2rem);
  position: relative;
  isolation: isolate;
  align-self: stretch;
  padding: clamp(1.3rem, 4vw, 3.5rem) 1rem;
  background:
    radial-gradient(var(--art-detail) 1px, transparent 1.2px) center / 1rem 1rem,
    linear-gradient(142deg, var(--art-light), var(--art-rich));
}

.detail-visual::before {
  position: absolute;
  z-index: -1;
  inset: 12% 9%;
  border: 1px dashed var(--tag);
  border-radius: 50%;
  opacity: .3;
  transform: rotate(-16deg);
  content: "";
}

.detail-visual img {
  width: min(36%, 10.5rem);
  height: auto;
  border: 4px solid var(--white);
  border-radius: clamp(.6rem, 1.5vw, 1.12rem);
  box-shadow: 0 .85rem 1.7rem #33265042;
  transform: rotate(-11deg);
}

.detail-visual img + img {
  transform: translateY(.65rem) rotate(8deg);
}

.detail-section { margin-top: clamp(2.9rem, 6.5vw, 5.3rem); }
.detail-section h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

.detail-mechanics {
  display: grid;
  grid-template-columns: 1.1fr minmax(0, .8fr);
  gap: clamp(1.4rem, 5vw, 4rem);
  align-items: start;
}

.detail-steps {
  display: grid;
  gap: .9rem;
  margin: 1.15rem 0 0;
  padding-left: 2.1rem;
}

.detail-steps li { padding-left: .3rem; }
.detail-steps li::marker { color: var(--tag); font-weight: 700; }
.detail-steps h3 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); }
.detail-steps p { margin-top: .3rem; color: var(--muted); }

.detail-features {
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border: 1px solid var(--art-detail);
  border-radius: 1.35rem;
  background: var(--art-light);
}

.detail-features h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }

.detail-features dl {
  display: grid;
  gap: .8rem;
  margin: 1rem 0 0;
}

.detail-features dt { color: var(--tag); font-size: 1.08rem; font-weight: 700; }
.detail-features dd { margin: .14rem 0 0; color: var(--muted); }

.detail-shots {
  display: flex;
  overflow-x: auto;
  gap: clamp(.65rem, 1.6vw, 1.15rem);
  margin-top: 1rem;
  padding: .45rem .25rem .9rem;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.detail-shot {
  flex: 0 0 clamp(7.1rem, 14vw, 10.5rem);
  border: 3px solid var(--white);
  border-radius: .95rem;
  box-shadow: 0 .2rem .65rem #382b521c;
  scroll-snap-align: start;
  transition: transform .18s ease;
}

.detail-shot img { width: 100%; height: auto; border-radius: .72rem; }
.detail-shot:hover { transform: translateY(-.2rem); }

.detail-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1rem;
}

.detail-related-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  padding: .8rem;
  border: 1px solid var(--art-detail);
  border-radius: 1rem;
  background: var(--art-light);
  transition: background-color .18s ease;
}

.detail-related-link:hover { background: var(--art-rich); }

.detail-related-link img {
  width: 3.75rem;
  height: auto;
  flex: 0 0 auto;
  border-radius: .8rem;
}

.detail-related-link strong { display: block; font-size: 1.08rem; }
.detail-related-link span span { color: var(--tag); font-size: .95rem; }

@media (max-width: 45rem) {
  .detail-hero, .detail-mechanics { grid-template-columns: minmax(0, 1fr); }
  .detail-hero { min-height: 0; }
  .detail-visual { min-height: 15rem; }
  .detail-visual img { width: min(33%, 8rem); border-width: 3px; }
  html[lang] .detail-intro h1 { font-size: clamp(2.45rem, 9vw, 3.8rem); }
}

@media (max-width: 34rem) {
  .detail-related { grid-template-columns: minmax(0, 1fr); }
  .detail-intro { padding: 1.25rem; }
}
