/* anaformstudios.com. Colours, type and the feel of panels and buttons follow duo's style guide
   (thick dark outline, flat colour, one darker band underneath, Baloo 2 + Nunito). */

@font-face {
  font-family: 'Baloo 2';
  src: url('/assets/fonts/Baloo2.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #1a1619;
  --navy: #203250;
  --navy-shade: #182643;
  --navy-light: #2d4064;
  --panel-line: #050c1e;
  --white: #fafbfa;
  --cream: #fff3dc;
  --paper: #fffaf0;
  --gold: #fcc404;
  --orange: #f96302;
  --orange-shade: #b94503;
  --blue: #0176f2;
  --green: #06d6a0;
  --dusk: #2b2358;
  --dusk-2: #3a2f6b;
  --coral: #ff7a59;
  --horizon: #ffc46b;
  --text: var(--ink);
  --text-soft: #4a5573;
  --on-navy-soft: #c3cbe0;
  --link: #0b4fb3;
  --focus: #0b4fb3;
  --display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 500 1.0625rem/1.6 var(--body);
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--link);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}
p {
  margin: 0 0 1em;
}
[id] {
  scroll-margin-top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  border: 3px solid var(--ink);
  border-radius: 12px;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.wrap--narrow {
  max-width: 760px;
}

/* ---------- header ---------- */

.top {
  background: var(--dusk);
  color: var(--white);
  --focus: var(--gold);
}
.top__row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font: 800 1.35rem/1 var(--display);
  white-space: nowrap;
}
.brand__icon {
  width: 40px;
  height: 40px;
}
.brand__sub {
  color: var(--horizon);
}
.nav {
  display: none;
  margin-left: auto;
  gap: 4px;
}
.nav a {
  padding: 10px 12px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
}
.nav a:hover {
  background: rgb(255 255 255 / 0.12);
}
.lang {
  display: flex;
  margin-left: auto;
  padding: 3px;
  background: var(--panel-line);
  border-radius: 999px;
}
.lang__link {
  display: grid;
  place-items: center;
  min-width: 46px;
  min-height: 40px;
  padding: 0 10px;
  color: var(--white);
  font: 800 0.95rem/1 var(--display);
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
}
.lang__link:hover {
  background: rgb(255 255 255 / 0.14);
}
.lang__link[aria-current='true'] {
  background: var(--cream);
  color: var(--ink);
}
@media (min-width: 820px) {
  .nav {
    display: flex;
  }
  .lang {
    margin-left: 8px;
  }
}
@media (max-width: 379px) {
  .top__row {
    gap: 10px;
  }
  .brand {
    font-size: 1.08rem;
    gap: 7px;
  }
  .brand__icon {
    width: 32px;
    height: 32px;
  }
  .lang__link {
    min-width: 40px;
    padding: 0 6px;
  }
}

/* ---------- buttons, badges ---------- */

.btn {
  display: inline-block;
  padding: 13px 24px 11px;
  min-height: 52px;
  background: var(--orange);
  color: var(--ink);
  font: 800 1.2rem/1.3 var(--display);
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--ink);
}
.btn:hover {
  background: #ff7a1f;
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink);
}
.badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 14px 3px;
  background: var(--gold);
  color: var(--ink);
  font: 800 0.95rem/1.3 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  transform: rotate(-2deg);
}
:lang(tr) .badge {
  text-transform: none; /* "Yakında" has a dotless ı; leave the casing to the text */
}

/* ---------- hero ---------- */

.hero {
  --sky: 170px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  --focus: var(--gold);
  background: linear-gradient(
    var(--dusk) 0,
    var(--dusk-2) calc(100% - var(--sky)),
    #8e4474 calc(100% - var(--sky) * 0.62),
    var(--coral) calc(100% - var(--sky) * 0.28),
    var(--horizon) 100%
  );
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: calc(var(--sky) + 24px);
  text-align: center;
}
.hero__title {
  font-size: clamp(2.5rem, 11vw, 5.4rem);
  color: var(--white);
  letter-spacing: -0.01em;
  text-shadow:
    0 0.07em 0 var(--panel-line),
    0.03em 0 0 var(--panel-line),
    -0.03em 0 0 var(--panel-line),
    0 -0.03em 0 var(--panel-line),
    0.02em 0.02em 0 var(--panel-line),
    -0.02em 0.02em 0 var(--panel-line),
    0.02em -0.02em 0 var(--panel-line),
    -0.02em -0.02em 0 var(--panel-line);
}
.hero__tagline {
  max-width: 30ch;
  margin: 18px auto 28px;
  color: var(--cream);
  font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
}
.hero__ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  background: var(--navy);
  border-top: 3px solid var(--panel-line);
  box-shadow: inset 0 6px 0 var(--navy-light);
}
.hero__p {
  position: absolute;
  bottom: 14px;
  width: 92px;
}
.hero__p--1 {
  left: max(10px, calc(50% - 470px));
}
.hero__p--2 {
  right: max(10px, calc(50% - 470px));
  width: 89px;
}
@media (min-width: 700px) {
  .hero {
    --sky: 200px;
  }
  .hero__inner {
    padding-top: 64px;
  }
  .hero__p--1 {
    width: 104px;
  }
  .hero__p--2 {
    width: 100px;
  }
}

/* ---------- sections ---------- */

.section {
  padding: 56px 0 64px;
}
.section--alt {
  background: var(--cream);
}
.section__title {
  margin-bottom: 26px;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  color: var(--navy);
}
.section__title::after {
  content: '';
  display: block;
  width: 64px;
  height: 8px;
  margin-top: 8px;
  background: var(--orange);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
}
.section p {
  max-width: 62ch;
  font-size: 1.125rem;
}

/* ---------- game card ---------- */

.game {
  background: var(--navy);
  color: var(--white);
  --focus: var(--gold);
  border: 3px solid var(--panel-line);
  border-radius: 26px;
  box-shadow: 0 8px 0 var(--panel-line);
  padding: 22px 18px 24px;
}
.game + .game,
.game-grid {
  margin-top: 32px;
}
.game-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.game__title {
  font-size: clamp(2.8rem, 12vw, 4rem);
  color: var(--white);
  line-height: 0.95;
}
.game__title small {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px 1px;
  vertical-align: middle;
  color: var(--on-navy-soft);
  font: 700 0.9rem/1.3 var(--body);
  border: 2px solid var(--navy-light);
  border-radius: 999px;
}
.game__summary {
  margin: 14px 0 20px;
  color: var(--white);
}
.section .game p {
  max-width: 46ch;
}
.modes {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.mode {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--navy-shade);
  border: 2px solid var(--panel-line);
  border-radius: 16px;
}
.mode strong {
  display: block;
  font: 800 1.2rem/1.2 var(--display);
}
.mode span {
  color: var(--on-navy-soft);
  font-size: 1rem;
  line-height: 1.35;
}
.mark {
  flex: none;
  width: 30px;
  height: 30px;
  stroke: var(--panel-line);
  stroke-width: 2.4;
  stroke-linejoin: round;
}
.mark--p1 {
  fill: var(--orange);
}
.mark--p2 {
  fill: #2e96ff;
}
.mark--p3 {
  fill: var(--green);
}
.section .platforms {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  border: 2px solid var(--navy-light);
  border-radius: 999px;
}
.game__media {
  margin-top: 26px;
  min-width: 0;
}
.phone {
  margin: 0;
}
.phone__screen {
  position: relative;
  padding: 7px;
  background: #0b0f1c;
  border: 3px solid var(--panel-line);
  border-radius: 22px;
}
.clip {
  width: 100%;
  aspect-ratio: 852 / 394;
  background: #0b0f1c;
  border-radius: 13px;
  object-fit: cover;
}
.clip__toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--navy);
  color: var(--white);
  border: 3px solid var(--panel-line);
  border-radius: 50%;
  cursor: pointer;
}
.clip__toggle[hidden] {
  display: none;
}
.clip__icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.clip__toggle .clip__icon--pause,
.clip__toggle.is-playing .clip__icon--play {
  display: none;
}
.clip__toggle.is-playing .clip__icon--pause {
  display: block;
}
.phone__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  min-height: 46px;
}
.phone figcaption {
  color: var(--on-navy-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}
/* Screenshots: a row to swipe on a phone, a 2×2 grid from tablet width up. */
.shots {
  display: flex;
  gap: 12px;
  margin: 18px -18px 0;
  padding: 0 18px 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots li {
  flex: 0 0 82%;
  scroll-snap-align: center;
}
.shot {
  position: relative; /* keeps its hidden label inside the scrolling row */
  display: block;
  border: 3px solid var(--panel-line);
  border-radius: 14px;
  overflow: hidden;
  background: #0b0f1c;
}
.shot img {
  width: 100%;
}
@media (min-width: 620px) {
  .shots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 18px 0 0;
    padding: 0;
    overflow: visible;
  }
}
@media (min-width: 940px) {
  .game {
    padding: 34px 36px 38px;
  }
  .game--featured {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
    align-items: start;
  }
  .game--featured .game__media {
    margin-top: 0;
  }
}

/* ---------- about, contact ---------- */

.placeholder {
  padding: 18px 20px 6px;
  border: 3px dashed #8a93ad;
  border-radius: 18px;
}
.placeholder__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 999px;
}
.section--contact {
  background: var(--navy);
  color: var(--white);
  --focus: var(--gold);
}
.section--contact .section__title {
  color: var(--white);
}
.section .contact__mail {
  margin: 0;
  font: 800 clamp(1.35rem, 6vw, 2.2rem)/1.2 var(--display);
  overflow-wrap: anywhere;
}
.section--contact a {
  color: var(--gold);
}

/* ---------- footer ---------- */

.foot {
  padding: 26px 0 calc(26px + env(safe-area-inset-bottom));
  background: var(--panel-line);
  color: var(--on-navy-soft);
  font-size: 0.98rem;
  --focus: var(--gold);
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: space-between;
}
.foot__copy {
  margin: 0;
}
.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.foot a {
  display: inline-block;
  padding: 10px 0;
  color: var(--white);
}

/* ---------- privacy, press, 404 ---------- */

.doc {
  padding: 40px 0 72px;
}
.doc__title {
  margin-bottom: 10px;
  font-size: clamp(2.1rem, 8vw, 3.2rem);
  color: var(--navy);
}
.doc__meta {
  color: var(--text-soft);
  font-size: 0.98rem;
}
.doc__lead {
  max-width: 62ch;
  font-size: 1.2rem;
}
.doc h2 {
  margin: 40px 0 12px;
  font-size: 1.6rem;
  color: var(--navy);
}
.doc p,
.doc li,
.doc dd {
  max-width: 68ch;
}
.notice {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 28px;
  padding: 14px 18px;
  background: var(--gold);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--ink);
}
.notice::before {
  content: '!';
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--gold);
  font: 800 1.2rem/1 var(--display);
  border-radius: 50%;
}
.deflist,
.facts {
  margin: 0;
}
.deflist div {
  padding: 14px 0;
  border-top: 2px solid #ecdcb8;
}
.deflist dt,
.facts dt {
  font-weight: 800;
}
.deflist dd,
.facts dd {
  margin: 2px 0 0;
}
.facts div {
  display: grid;
  grid-template-columns: minmax(96px, 9em) 1fr;
  gap: 12px;
  padding: 9px 0;
  border-top: 2px solid #ecdcb8;
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 479px) {
  .facts div {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.todo {
  margin-top: 44px;
  padding: 4px 22px 14px;
  border: 3px dashed #8a93ad;
  border-radius: 18px;
}
.todo h2 {
  margin-top: 18px;
  font-size: 1.3rem;
}
.todo ul {
  padding-left: 1.2em;
}
.doc__cols {
  display: grid;
  gap: 0 48px;
}
@media (min-width: 860px) {
  .doc__cols {
    grid-template-columns: 1.2fr 1fr;
  }
}
.assets {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}
.asset p {
  margin: 10px 0 0;
  font-weight: 700;
}
.asset__view {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 16px;
}
.asset--logo .asset__view {
  height: 170px;
  padding: 26px;
}
.asset--logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.asset--dark .asset__view {
  background: var(--navy);
}
.link {
  display: inline-block;
  padding: 8px 0;
  font-weight: 800;
}
.lost {
  padding: 48px 0 80px;
}
.lost__code {
  margin: 0;
  color: var(--orange);
  font: 800 clamp(5rem, 28vw, 9rem)/1 var(--display);
  text-shadow:
    0 0.05em 0 var(--ink),
    0.025em 0 0 var(--ink),
    -0.025em 0 0 var(--ink),
    0 -0.025em 0 var(--ink);
}
.lost__block {
  margin-top: 28px;
}
.lost__block + .lost__block {
  padding-top: 28px;
  border-top: 2px solid #ecdcb8;
}
.lost .doc__title {
  font-size: clamp(1.8rem, 7vw, 2.6rem);
}

@media (prefers-reduced-motion: reduce) {
  .btn:active {
    transform: none;
  }
}
