@import url('/fonts/fonts.css');

:root {
  --blue: #302ae1;        /* logo */
  --blue-deep: #1f1a9c;
  --ink: #14113d;
  --paper: #f4f5ff;
  --yellow: #ffcf3d;      /* oyunun parası / sandviçi */
  --red: #e8473b;         /* tente */
  --muted: #55537a;
  --line: #d9daf2;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --text: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.on-paper :focus-visible, main :focus-visible { outline-color: var(--blue); }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--yellow); padding: 8px 14px; color: var(--ink); }

/* ---------------------------------------------------------------- üst şerit */
.top { background: var(--blue); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.mark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.mark b { font: 900 1.45rem/1 var(--display); letter-spacing: 0.04em; }
.mark span { font: 500 0.62rem/1 var(--text); letter-spacing: 0.32em; margin-top: 5px; opacity: 0.9; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.top nav a { text-decoration: none; font-weight: 500; }
.top nav .link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------------------------------------------------------------- düğmeler */
.play {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--yellow); color: var(--ink);
  font: 700 1.1rem/1 var(--text);
  padding: 18px 30px; border-radius: 999px; text-decoration: none;
  border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.play:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.play:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.play svg { width: 1em; height: 1em; }
.top .play { font-size: 0.95rem; padding: 10px 18px; box-shadow: 0 4px 0 var(--ink); }

/* ---------------------------------------------------------------- hero: oyunun kendisi */
.hero { background: var(--blue); color: #fff; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center;
  gap: clamp(24px, 5vw, 72px); padding-block: clamp(28px, 6vw, 72px) clamp(56px, 8vw, 104px);
}
.title {
  margin: 0;
  font: 900 clamp(3.4rem, 9.5vw, 7rem)/0.98 var(--display);
  letter-spacing: -0.01em;
  color: #fff;
  -webkit-text-stroke: 0.15em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.09em 0 var(--ink);
}
.lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 30ch; margin: 22px 0 32px; }
.fine { margin: 16px 0 0; font-size: 0.95rem; opacity: 0.85; }

.stage { position: relative; justify-self: center; width: min(320px, 72vw); }
.phone {
  position: relative; aspect-ratio: 9 / 16; border-radius: 40px; overflow: hidden;
  border: 10px solid var(--ink); background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(10, 6, 80, 0.7);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
.phone a { display: block; height: 100%; }
.sticker {
  /* uzun dar görsel (şef + kule): boya göre ölçeklenir, oranı korunur */
  position: absolute; left: -17%; bottom: -3%; height: 58%; width: auto; max-width: none; pointer-events: none;
  filter: drop-shadow(0 12px 14px rgba(10, 6, 80, 0.45));
}

/* ---------------------------------------------------------------- nasıl oynanır */
.how { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 72px); }
h2 { font: 700 clamp(1.6rem, 3.4vw, 2.3rem)/1.15 var(--display); margin: 0 0 12px; letter-spacing: -0.01em; }
.intro { color: var(--muted); max-width: 54ch; margin: 0 0 36px; }
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); margin: 0; padding: 0; list-style: none; }
.clip figure { margin: 0; }
.clip .frame {
  aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: var(--line);
  border: 6px solid var(--ink);
}
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip h3 { font: 700 1.15rem/1.2 var(--display); margin: 18px 0 6px; }
.clip p { margin: 0; color: var(--muted); max-width: 32ch; }

/* ---------------------------------------------------------------- ikinci çağrı */
.again { background: var(--blue); color: #fff; }
.again .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(32px, 5vw, 52px); flex-wrap: wrap; }
.again p { font: 700 clamp(1.25rem, 3vw, 1.8rem)/1.2 var(--display); margin: 0; max-width: 22ch; }

/* ---------------------------------------------------------------- diğer oyunlar: mağaza rafı */
.games { padding-block: clamp(56px, 8vw, 96px); }
.shelf { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.app {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 18px 22px;
  padding-block: 20px; border-bottom: 1px solid var(--line);
}
.app img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(20, 17, 61, 0.08); }
.app h3 { font: 700 1.05rem/1.25 var(--display); margin: 0 0 4px; }
.app p { margin: 0; color: var(--muted); max-width: 60ch; }
.status { color: var(--muted); font-weight: 500; white-space: nowrap; }
.get {
  display: inline-block; text-decoration: none; font-weight: 700; white-space: nowrap;
  padding: 11px 18px; border-radius: 999px; border: 2px solid var(--ink);
}
.get:hover { background: var(--ink); color: #fff; }
.get.hot { background: var(--yellow); }
.get.hot:hover { background: var(--ink); color: var(--yellow); }

/* ---------------------------------------------------------------- alt bilgi */
.foot { background: var(--ink); color: #d9d8f5; }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding-block: 44px; align-items: end; }
.foot p { margin: 10px 0 0; max-width: 46ch; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: #fff; }
.foot small { display: block; margin-top: 18px; opacity: 0.7; }

/* ---------------------------------------------------------------- belge sayfaları (gizlilik, 404) */
.doc { padding-block: clamp(40px, 7vw, 80px); }
.doc article { max-width: 68ch; }
.doc h1 { font: 900 clamp(2rem, 5vw, 3rem)/1.1 var(--display); margin: 0 0 8px; }
.doc h2 { font-size: 1.25rem; margin-top: 2.2em; }
.doc p, .doc li { line-height: 1.65; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; background: var(--blue); color: #fff; padding: 48px var(--gutter); }
.lost img { width: 220px; height: auto; margin: 0 auto 8px; }
.lost h1 { font: 900 clamp(1.8rem, 5vw, 2.8rem)/1.1 var(--display); margin: 0 0 12px; }
.lost p { margin: 0 0 28px; }
.lost .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.lost .row a:not(.play) { color: #fff; font-weight: 500; }

/* ---------------------------------------------------------------- telefon */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 18px; }
  .lede { max-width: 34ch; }
  .stage { width: min(270px, 64vw); margin-top: 12px; }
  .sticker { left: -20%; height: 54%; }
  .top .wrap { padding-block: 14px; }
  .top nav .link { display: none; }
  .clips {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(66vw, 260px);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .clip { scroll-snap-align: start; }
  .app { grid-template-columns: 64px minmax(0, 1fr); }
  .app img { width: 64px; height: 64px; border-radius: 15px; }
  .app .act { grid-column: 2; }
  .foot .wrap { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .play { transition: none; }
}

/* ================================================================ Dribblock eklemeleri (yukarısı astroconsolegames.com ile aynı) */
/* telefon kayıtları 1080x2400 = 9:20 */
.phone, .clip .frame { aspect-ratio: 9 / 20; }
.stage { width: min(280px, 64vw); }
.clips { grid-template-columns: repeat(3, minmax(0, 280px)); justify-content: space-between; }
/* tek kelimelik başlık ("Dribblock" ~6.3em): sütuna sığsın */
.title { font-size: clamp(2.6rem, 7.4vw, 6rem); }
/* uzun yazı logosu: dar ekranda küçülür */
.mark b { font-size: clamp(0.95rem, 4.4vw, 1.45rem); }

/* EN | TR */
.lang { display: inline-flex; gap: 2px; padding: 2px; border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 999px; }
.top nav .lang a { padding: 5px 9px; border-radius: 999px; font: 700 0.8rem/1 var(--text); }
.top nav .lang a[aria-current] { background: #fff; color: var(--blue); }

/* belgeler: özet kutusu, tablolar, adımlar */
.doc h3 { font: 700 1.05rem/1.3 var(--text); margin: 1.6em 0 0.4em; }
.doc .gist { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px 8px; margin: 0 0 28px; }
.doc .gist h2 { margin-top: 0.9em; }
.data { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 0.95rem; }
.data caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.data th, .data td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.data thead th { font-weight: 700; color: var(--muted); }
.data tbody th { font-weight: 500; width: 30%; }
.steps { list-style: none; counter-reset: step; margin: 0 0 1.2em; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 12px 54px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--ink); font: 900 1rem/32px var(--display); text-align: center;
}
.steps h3 { margin-top: 6px; }
.mail { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lost .icon { width: 140px; border-radius: 32px; margin-bottom: 20px; }
.lost p.tr { opacity: 0.85; margin-top: -16px; }

@media (max-width: 860px) {
  .stage { width: min(230px, 58vw); }
  .title { font-size: min(13.4vw, 5.6rem); }
  .clips { grid-template-columns: none; grid-auto-columns: min(58vw, 230px); justify-content: start; }
}
@media (max-width: 700px) {
  .data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data, .data tbody, .data tr, .data th, .data td { display: block; width: auto; }
  .data caption { display: block; }
  .data tbody th { width: auto; padding: 12px 0 4px; border: 0; font-weight: 700; }
  .data td { padding: 0 0 12px; }
  .data td::before { content: attr(data-label); display: block; font-size: 0.8rem; color: var(--muted); }
}
@media (max-width: 420px) {
  .top nav .play { display: none; }
}
