/* Departure Mono sadece 11 px katlarında keskin: yazı boyutları 11 / 22 / 33 / 44 / 66 */
@font-face {
  font-family: "Departure Mono";
  src: url("assets/fonts/DepartureMono-Regular.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #120a0a;
  --panel: #1d1414;
  --iron: #3a2c2a;
  --ember: #e0582a;
  --ember-hot: #ff8a3d;
  --sulfur: #f2d04b;
  --text: #e8dccb;
  --muted: #9c8c7c;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Departure Mono", ui-monospace, monospace;
  font-size: 22px;
  line-height: 33px;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

img { image-rendering: pixelated; max-width: 100%; display: block; }

a { color: var(--sulfur); }

h1, h2 { font-weight: normal; margin: 0; }

h2 {
  font-size: 22px;
  color: var(--sulfur);
  letter-spacing: 2px;
  margin-bottom: 22px;
}

/* --- Üst bölüm --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--bg));
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 16px;
}

.coin {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  background: url("assets/img/coin_spin.png") 0 0 / 576px 72px;
  image-rendering: pixelated;
  animation: spin 0.8s steps(8) infinite;
}

@keyframes spin { to { background-position: -576px 0; } }

h1 {
  font-size: 66px;
  line-height: 66px;
  color: var(--sulfur);
  text-shadow: 4px 4px 0 #8a1e0e, 0 0 22px rgba(255, 110, 40, 0.55);
}

.slogan { margin: 22px 0 44px; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border: 3px solid var(--ember);
  background: #2a1512;
  color: var(--sulfur);
  text-decoration: none;
}

.btn:hover { border-color: var(--ember-hot); background: #3a1a12; }

.btn.soon { cursor: default; }
.btn span { color: var(--muted); font-size: 11px; }

/* --- İçerik --- */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

.panel {
  background: var(--panel);
  border: 3px solid var(--iron);
  box-shadow: inset 0 0 0 1px #5a2a1a;
  padding: 33px;
  margin: 44px 0;
}

.panel p { margin: 0 0 22px; }
.panel p:last-child { margin-bottom: 0; }

em { color: var(--ember-hot); font-style: normal; }
b { color: var(--sulfur); font-weight: normal; }

.features ul { margin: 0; padding: 0; list-style: none; }
.features li { padding-left: 33px; position: relative; margin-bottom: 11px; }
.features li::before { content: "»"; position: absolute; left: 0; color: var(--ember); }

.shots .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.shots img { border: 3px solid var(--iron); width: 100%; }

/* --- Açılış efektleri --- */
.embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  z-index: 1;
  pointer-events: none;
}

.hero-art { animation: breathe 14s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06); } }

.hot { color: var(--ember-hot); }

.flicker { animation: flicker 4s infinite; }
@keyframes flicker {
  0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; }
  20%, 63% { opacity: 0.75; }
}

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--ember);
  text-decoration: none;
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* --- Kaydırınca beliren öğeler --- */
.reveal {
  opacity: 0;
  transform: translateY(33px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* --- Hikâye kareleri --- */
.story { margin: 66px 0; }
.story > h2 { text-align: center; }

.scene { margin: 0 0 88px; }

.frame {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--iron);
  box-shadow: 0 0 0 1px #5a2a1a, 0 0 44px rgba(224, 88, 42, 0.18);
  container-type: inline-size;
}

.frame img {
  width: 100%;
  transform: scale(1.12);
  transition: transform 6s ease-out;
}
.scene.in .frame img { transform: scale(1.0); }

.scene figcaption {
  display: flex;
  gap: 22px;
  align-items: baseline;
  margin-top: 22px;
}

.num { color: var(--ember); font-size: 11px; flex-shrink: 0; }
.line { display: block; }

/* Duvar yazısı: oyundaki gibi kükürt sarısı, kızıl dış hat, titrer (kaynak 95,30 100x80 / 256x192) */
.wall-text {
  position: absolute;
  left: 37.1%;
  top: 15.6%;
  width: 39.1%;
  height: 41.7%;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 4.3cqw;
  line-height: 1.25;
  color: var(--sulfur);
  text-shadow:
    -1px -1px 0 #8a1e0e, 1px -1px 0 #8a1e0e, -1px 1px 0 #8a1e0e, 1px 1px 0 #8a1e0e,
    0 0 12px rgba(255, 120, 40, 0.9);
  opacity: 0;
  transition: opacity 1.6s ease 1.2s;
}
.scene.in .wall-text { opacity: 1; animation: burn 2.2s 2.8s infinite; }
@keyframes burn {
  0%, 100% { transform: translate(0, 0); filter: brightness(1); }
  25% { transform: translate(0.5px, -0.5px); filter: brightness(1.25); }
  50% { transform: translate(-0.5px, 0); filter: brightness(0.9); }
  75% { transform: translate(0, 0.5px); filter: brightness(1.15); }
}

/* 3. karede yer sarsıntısı */
.scene.shake .frame { animation: shake 0.6s steps(6); }
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translate(-6px, 3px); }
  40% { transform: translate(5px, -3px); }
  60% { transform: translate(-4px, 2px); }
  80% { transform: translate(3px, -1px); }
}

.features li { opacity: 0; transform: translateX(-22px); transition: opacity 0.5s, transform 0.5s; }
.features.in li { opacity: 1; transform: none; }
.features.in li:nth-child(2) { transition-delay: 0.12s; }
.features.in li:nth-child(3) { transition-delay: 0.24s; }
.features.in li:nth-child(4) { transition-delay: 0.36s; }
.features.in li:nth-child(5) { transition-delay: 0.48s; }

.float { animation: float 3.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .features li, .wall-text { opacity: 1; transform: none; }
  .frame img { transform: none; }
}

.cat { display: flex; align-items: center; gap: 33px; }
.cat img { width: 192px; flex-shrink: 0; }

footer {
  text-align: center;
  padding: 44px 16px;
  color: var(--muted);
}

footer p { margin: 0 0 11px; }
.small { font-size: 11px; line-height: 22px; }

/* Telefon: yüksek piksel yoğunluklu ekranlarda font her boyutta keskin, okunurluk için 11 px kuralı gevşetilir */
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 24px; }
  h1 { font-size: 44px; line-height: 44px; }
  h2 { font-size: 18px; margin-bottom: 16px; }
  .hero { min-height: 100svh; }
  .hero-art { object-position: 50% 40%; }
  .coin { width: 48px; height: 48px; background-size: 384px 48px; margin-bottom: 16px; }
  @keyframes spin { to { background-position: -384px 0; } }
  .slogan { margin: 16px 0 28px; }
  .btn { padding: 10px 16px; }
  .btn span { display: block; }
  .story { margin: 44px 0; }
  .story > h2 { margin-bottom: 22px; }
  .scene { margin-bottom: 48px; }
  .frame { margin: 0 -16px; border-left: 0; border-right: 0; }
  .scene figcaption { flex-direction: column; gap: 4px; margin-top: 14px; }
  .panel { padding: 20px; margin: 32px 0; }
  .features li { padding-left: 22px; }
  .shots .grid { grid-template-columns: 1fr; gap: 14px; }
  .cat { flex-direction: column; text-align: center; gap: 16px; }
  .cat img { width: 160px; }
  footer { padding: 32px 16px; }
}
