/* Kalem Kavgası tanıtım sayfası.
   Görsel dil: sıranın üstünde duran kareli defter yaprağı — kenar payı çizgisi,
   kurşun kalem konturlar, fosforlu kalem vurguları, sayılar daktilo yazısıyla. */

:root {
  --desk: #e9e6dc;
  --paper: #faf9f4;
  --grid: #dde3ef;
  --margin: #e8637a;
  --ink: #212a3f;
  --pencil: #46516c;
  --muted: #737e99;
  --card: #fffefb;
  --highlight: #fff27a;
  --tape: #f2e4a6;
  --hand: 'Kalam', 'Comic Sans MS', system-ui, sans-serif;
  --type: 'Courier Prime', 'Courier New', ui-monospace, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--hand);
  font-size: 18px;
  line-height: 1.55;
}

/* ---------- Defter yaprağı */

.sheet {
  position: relative;
  max-width: 1180px;
  margin-inline: auto;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  box-shadow: 0 0 0 1px rgba(33, 42, 63, 0.08), 0 18px 50px rgba(33, 42, 63, 0.13);
  overflow: hidden;
}

/* kenar payı çizgisi */
.sheet::before {
  content: '';
  position: absolute;
  inset-block: 0;
  left: clamp(14px, 4.5vw, 62px);
  width: 2px;
  background: var(--margin);
  opacity: 0.55;
}

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-left: clamp(30px, 8vw, 104px);
  padding-right: clamp(18px, 5vw, 42px);
}

h1, h2, h3 { line-height: 1.14; text-wrap: balance; }

/* ---------- Üst bölüm */

.hero { padding-block: 52px 46px; }

.sticker {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
  rotate: -3deg;
}

.sticker img {
  display: block;
  width: 112px;
  height: 112px;
  border: 3px solid var(--pencil);
  border-radius: 22px;
  background: #fff;
}

.tape {
  position: absolute;
  width: 54px;
  height: 20px;
  background: var(--tape);
  border: 1px solid rgba(70, 81, 108, 0.35);
  opacity: 0.85;
}

.tape-l { top: -11px; left: -20px; rotate: -28deg; }
.tape-r { bottom: -10px; right: -22px; rotate: -24deg; }

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 86px);
  letter-spacing: -0.015em;
}

.scribble {
  display: block;
  width: min(420px, 82%);
  height: auto;
  margin: -4px 0 12px;
  overflow: visible;
}

.scribble path {
  fill: none;
  stroke: var(--margin);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  animation: ciz 1.1s 0.25s ease-out forwards;
}

@keyframes ciz { to { stroke-dashoffset: 0; } }

.tagline {
  margin: 0 0 10px;
  font-size: clamp(20px, 3.2vw, 27px);
  font-weight: 700;
  color: var(--margin);
}

.lede { margin: 0; max-width: 58ch; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.btn {
  display: inline-block;
  padding: 11px 24px;
  font-family: var(--hand);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border: 3px solid var(--pencil);
  border-radius: 14px;
  box-shadow: 3px 4px 0 rgba(33, 42, 63, 0.18);
}

.btn-soon { background: var(--highlight); cursor: default; }
.btn-ghost { background: var(--card); transition: background 0.15s, translate 0.15s; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: #dff0ff; translate: 0 -2px; }

.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--type);
  font-size: 14.5px;
  color: var(--muted);
}

.ticks li::before { content: '✓ '; color: #2fa35f; font-weight: 700; }

/* ---------- Bölümler */

section { padding-block: 46px; }

section h2 {
  display: inline-block;
  margin: 0 0 6px;
  padding-inline: 8px;
  font-size: clamp(28px, 4.6vw, 38px);
  background: linear-gradient(transparent 52%, var(--highlight) 52%, var(--highlight) 94%, transparent 94%);
}

.section-lede { margin: 0 0 26px; max-width: 60ch; color: var(--muted); }

section p { max-width: 62ch; }

/* ---------- İki sütun */

.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px 34px;
  align-items: start;
}

.marks { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }

.marks li { padding-left: 22px; position: relative; }
.marks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 11px;
  height: 11px;
  background: var(--margin);
  border-radius: 3px;
  rotate: 12deg;
}

/* ---------- Ekran görüntüleri */

.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}

.zoom img { display: block; width: 100%; height: auto; }

.shot { margin: 0; }

.shot .zoom img,
.map .zoom img {
  border: 3px solid var(--pencil);
  border-radius: 14px;
}

.shot figcaption {
  margin-top: 8px;
  font-family: var(--type);
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Düşman kartları */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 16px 18px 14px;
  background: var(--card);
  border: 3px solid var(--pencil);
  border-radius: 14px;
  box-shadow: 4px 5px 0 rgba(33, 42, 63, 0.14);
  transition: translate 0.15s;
}

.card:hover { translate: 0 -3px; }

.card::before {
  content: '';
  display: block;
  width: 46px;
  height: 9px;
  margin-bottom: 10px;
  background: var(--tone);
  border-radius: 5px;
}

.card h3 { margin: 0 0 6px; font-size: 22px; }
.card p { margin: 0; font-size: 17px; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 14px 0 0;
  padding-top: 11px;
  border-top: 2px dashed var(--grid);
  font-family: var(--type);
  font-variant-numeric: tabular-nums;
}

.stats div { display: flex; gap: 7px; align-items: baseline; }
.stats dt { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 0; font-size: 16px; font-weight: 700; }

/* ---------- Şerit bölümler */

.band {
  margin-block: 8px;
  background: rgba(255, 255, 255, 0.72);
  border-top: 3px solid var(--pencil);
  border-bottom: 3px solid var(--pencil);
}

/* ---------- Cephanelik tablosu */

.kit {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 17px;
}

.kit th, .kit td { padding: 11px 14px 11px 0; text-align: left; vertical-align: top; }

.kit thead th {
  font-family: var(--type);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--pencil);
}

.kit tbody tr { border-bottom: 2px dashed var(--grid); }
.kit tbody th { font-size: 19px; white-space: nowrap; padding-right: 20px; }
.kit td { color: var(--pencil); }

.kit .num {
  font-family: var(--type);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  padding-right: 0;
  padding-left: 14px;
}

.kit tbody td.num { color: var(--ink); font-weight: 700; }

.fine { margin-top: 18px; font-size: 16.5px; color: var(--muted); }

/* ---------- Haritalar */

.maps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 26px;
}

.map-text h3 { margin: 12px 0 2px; font-size: 24px; }

.map-text .meta {
  margin: 0 0 6px;
  font-family: var(--type);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--margin);
}

.map-text p { margin: 0; font-size: 17px; }

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.strip .zoom img {
  border: 2px solid var(--pencil);
  border-radius: 10px;
  opacity: 0.94;
  transition: opacity 0.15s;
}

.strip .zoom:hover img { opacity: 1; }

/* ---------- Oyun türleri */

.modes { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.modes li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 11px 15px;
  background: var(--card);
  border: 2px solid var(--pencil);
  border-radius: 11px;
}

.modes b { font-size: 19px; }
.modes span { font-family: var(--type); font-size: 14.5px; color: var(--muted); }

/* ---------- Alt bölüm */

footer {
  padding-block: 34px 46px;
  border-top: 3px solid var(--pencil);
  background: rgba(255, 255, 255, 0.5);
}

.foot-brand { display: flex; align-items: center; gap: 11px; margin: 0 0 12px; font-size: 21px; font-weight: 700; }
.foot-brand img { border: 2px solid var(--pencil); border-radius: 10px; }

footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--ink); text-decoration: underline 2px var(--margin); text-underline-offset: 4px; }
footer a:hover, footer a:focus-visible { color: var(--margin); }

.foot-note { margin: 14px 0 0; max-width: 62ch; font-family: var(--type); font-size: 14px; color: var(--muted); }

/* ---------- Büyütme penceresi */

#buyut {
  max-width: 94vw;
  max-height: 94vh;
  padding: 0;
  background: none;
  border: 0;
  overflow: visible;
}

#buyut::backdrop { background: rgba(28, 33, 46, 0.82); }

#buyut img {
  display: block;
  max-width: 94vw;
  max-height: 94vh;
  width: auto;
  height: auto;
  border: 3px solid var(--paper);
  border-radius: 10px;
}

.kapat {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 38px;
  height: 38px;
  font-family: var(--hand);
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--pencil);
  border-radius: 50%;
  cursor: pointer;
}

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

@media (max-width: 560px) {
  body { font-size: 17px; }
  .sheet { box-shadow: none; }
  .kit, .kit tbody, .kit tr, .kit th, .kit td { display: block; }
  .kit thead { display: none; }
  .kit tbody tr { padding-block: 13px 11px; }
  .kit tbody th { padding: 0 0 3px; font-size: 20px; white-space: normal; }
  .kit td { padding: 0; }
  .kit tbody td.num { display: inline-block; margin: 7px 22px 0 0; padding: 0; text-align: left; }
  .kit tbody td.num::before {
    content: attr(data-label) ' ';
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .scribble path { stroke-dashoffset: 0; }
}
