/* Ana sayfa (interaktif tasarım, 2026-10-13). Tema site.css'teki değişkenlerle aynı; yalnız ana sayfada yüklenir. */
@font-face { font-family: 'si'; src: url('/site-icons.woff') format('woff'); font-display: block; }
.si { font-family: 'si'; font-style: normal; line-height: 1; display: inline-block; }
body.home main { max-width: none; padding: 0; }
body.home .top { max-width: none; position: fixed; left: 0; right: 0; top: 0; padding: 14px 48px; background: rgba(11,17,24,.88); backdrop-filter: blur(10px); }
body.home .top::after { display: none; }
.in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); position: relative; }
.kicker { color: var(--dim); font: 600 14px/1 var(--mono); letter-spacing: .02em; margin: 0 0 18px; }
body.home h2 { font-size: clamp(36px, 4.4vw, 60px); font-weight: 720; letter-spacing: -0.02em; line-height: 1.04; margin: 0; }
.body { color: #c4d3df; font-size: 19px; line-height: 1.6; margin: 22px 0 0; max-width: 34em; }
body.home section { position: relative; }

/* kahraman: bütün ekran mavi baskı ızgarası, bloklar fırlatılır */
body.home .hero { display: block; min-height: max(720px, 100svh); padding: 0; overflow: hidden;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; }
body.home .hero::before { display: none; }
.h-blocks { position: absolute; inset: 0; z-index: 1; }
.blk { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  transform: rotate(var(--r)); background: var(--c); color: var(--f); border-radius: 11px; display: grid; place-items: center; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -6px 0 rgba(0,0,0,.28), 0 18px 30px rgba(0,0,0,.45); }
.blk.round { border-radius: 50%; }
.blk .si { font-size: 30px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); pointer-events: none; }
.blk.held { cursor: grabbing; z-index: 3; box-shadow: inset 0 2px 0 rgba(255,255,255,.2), inset 0 -6px 0 rgba(0,0,0,.28), 0 30px 50px rgba(0,0,0,.55); }
.blk.snapped { box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -6px 0 rgba(0,0,0,.28), 0 0 0 2px var(--cy), 0 18px 30px rgba(0,0,0,.45); }
.h-snap { position: absolute; left: 64%; top: 14%; display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: 13px; pointer-events: none; transition: opacity .4s; }
.h-snap .si { color: var(--cy); }
.h-copy { z-index: 2; padding-top: max(180px, 24svh); padding-bottom: 96px; pointer-events: none; }
.h-copy > * { pointer-events: auto; max-width: 640px; }
.h-copy h1 { font-size: clamp(56px, 7.4vw, 104px); font-weight: 760; line-height: .98; letter-spacing: -0.03em; margin: 0 0 28px; }
.h-copy .eyebrow { color: var(--dim); font-size: 15px; margin: 0 0 24px; }
.h-copy .lead { max-width: 540px; }
.h-throw { position: absolute; right: 48px; bottom: 32px; z-index: 2; display: flex; gap: 10px; align-items: center; color: var(--dim); font-size: 14px; margin: 0; }
.h-throw .si { font-size: 18px; color: var(--cy); }

/* bölümler */
.s-draw, .s-desc, .s-export, .s-together, .inside, .faq { padding: 140px 0; }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: center; }
.split.rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split .vis { position: relative; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: var(--dim); }
.ticks .si { color: var(--cy); margin-right: 10px; }
.more { display: inline-flex; gap: 8px; align-items: center; margin-top: 30px; font-weight: 600; }
.s-walk { min-height: max(640px, 92svh); display: grid; align-items: end; padding: 0 0 110px; overflow: hidden; }
.s-walk .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.s-walk .shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 14%, rgba(11,17,24,.6) 46%, rgba(11,17,24,.15) 80%), linear-gradient(to bottom, var(--bg), rgba(11,17,24,0) 18%); }
.c { text-align: center; }
.c .body { margin-left: auto; margin-right: auto; }
body.home .s-walk h2 { font-size: clamp(40px, 5.6vw, 80px); }
.keys { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 28px 0 0; color: var(--dim); font-size: 14px; }
.keys kbd { margin-right: 8px; }
.engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 56px auto 0; max-width: 960px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-align: left; }
.engines a { display: grid; gap: 10px; padding: 32px 34px; background: var(--panel); text-decoration: none; color: var(--tx); border-left: 1px solid var(--line); transition: background .2s; }
.engines a:first-child { border-left: 0; }
.engines a:hover { background: var(--btn); }
.engines b { font-size: 28px; letter-spacing: -0.01em; }
.engines span { color: var(--dim); font-size: 15px; line-height: 1.5; }
.s-export .tm { margin: 48px auto 0; max-width: none; padding: 0; text-align: center; }
.stack { position: relative; min-height: 520px; }
.stack .big { position: absolute; left: 0; top: 0; width: 92%; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.55); transform: rotate(1.5deg); }
.stack .ph { position: absolute; right: 0; top: 46%; width: 27%; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.6); transform: rotate(-4deg); }
.cur { position: absolute; color: var(--c); font-size: 26px; display: flex; align-items: flex-start; pointer-events: none; }
.cur b { background: var(--c); color: var(--bg); font: 700 12px var(--font); padding: 2px 8px; border-radius: 5px; margin: 18px 0 0 -4px; }
.qr { display: inline-flex; align-items: center; gap: 16px; margin-top: 40px; padding: 14px 18px 14px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.qr div { display: grid; gap: 4px; }
.qr div span { color: var(--dim); font-size: 14px; }
.qri { width: 64px; height: 64px; border-radius: 8px; background: #fff; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px; flex: none; }
.qri i { background: var(--bg); border-radius: 2px; }
.qri i:nth-child(2n) { background: transparent; box-shadow: inset 0 0 0 3px var(--bg); }
body.home .inside, body.home .faq { padding: 120px 0; }
body.home .faq { display: block; }
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 56px; }
.faq-in > h2 { grid-column: 1; grid-row: 1 / span 40; align-self: start; position: sticky; top: 110px; }
.faq-in details { grid-column: 2; }

/* saklı parçalar */
.piece { position: absolute; z-index: 3; width: 74px; height: 74px; border-radius: 13px; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--c); color: var(--f); transform: rotate(var(--rot, 0deg));
  box-shadow: 0 0 0 1px rgba(25,230,255,.65), 0 0 0 7px rgba(25,230,255,.1), 0 14px 26px rgba(0,0,0,.45); transition: transform .2s; }
.piece:hover { transform: rotate(var(--rot, 0deg)) scale(1.08); }
.piece .si { font-size: 32px; }
.piece .tag { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 11.5px var(--mono); color: var(--cy); }
.piece.got { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) { .piece:not(.got) { animation: bob 3.2s ease-in-out infinite; } }
@keyframes bob { 50% { translate: 0 -5px; } }
.flyer { position: fixed; z-index: 60; pointer-events: none; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s; }

/* çanta */
.bag { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(17,27,38,.96); border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(0,0,0,.5); font-size: 14px; transition: transform .25s, opacity .25s; }
.bag.bump { transform: scale(1.06); }
.bag .slots { display: flex; gap: 4px; }
.bp { width: 30px; height: 30px; border-radius: 7px; border: 1.5px dashed #3a5266; background: transparent; padding: 0; display: grid; place-items: center; color: transparent; touch-action: none; }
.bp .si { font-size: 16px; }
.bp.has { border: 0; background: var(--c); color: var(--f); cursor: grab; }
.bp.round.has { border-radius: 50%; }
.bp.sel { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--cy); }
.bp.used { opacity: .25; cursor: default; }
.bag b { font: 700 14px var(--mono); color: var(--cy); }
.bag .bh { color: var(--dim); }
.bag.found .bh { display: none; }
.bag.done { opacity: 0; pointer-events: none; transform: translateY(20px); }
.drag-ghost { position: fixed; z-index: 70; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 12px; display: grid; place-items: center; pointer-events: none;
  background: var(--c); color: var(--f); box-shadow: 0 24px 40px rgba(0,0,0,.45); transform: rotate(-6deg) scale(1.05); }
.drag-ghost.round { border-radius: 50%; }
.drag-ghost .si { font-size: 30px; }

/* final: sitenin tek açık zemini — mavi baskı kâğıdı */
/* site.css'teki eski .final kartını sıfırla (çerçeve, köşe, boşluk) */
body.home .final { margin: 0; border: 0; border-radius: 0; text-align: left; }
body.home .final p { margin: 0; }
body.home .final .body { margin-top: 22px; }
body.home .final .count { margin-top: 28px; }
body.home .final h2 { margin-bottom: 4px; }
.final { background: var(--paper); color: #14202b; padding: 140px 0 120px;
  background-image: linear-gradient(rgba(20,32,43,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(20,32,43,.07) 1px, transparent 1px); background-size: 40px 40px; }
body.home .final h2 { color: #0b1118; }
.final .kicker { color: #5b6b78; }
.final .body { color: #3c4a56; }
.final .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.count { margin: 28px 0 0; font: 700 15px var(--mono); color: #0b6f80; }
.again { margin-top: 16px; display: none; align-items: center; gap: 8px; border: 1px solid #c3ccd4; background: #fff; color: #14202b; border-radius: 8px; padding: 8px 12px; font: 600 14px var(--font); cursor: pointer; }
.final.complete .again { display: inline-flex; }
.board { position: relative; aspect-ratio: 740 / 520; border: 10px solid #3b4048; background: #fff; box-shadow: 0 30px 60px rgba(20,32,43,.18); }
.board .wall { position: absolute; background: #3b4048; z-index: 1; }
.board .room { position: absolute; }
.board .room.a { left: 0; top: 0; width: 40%; bottom: 0; background: #dfe9f2; }
.board .room.b { left: 41.4%; top: 50%; right: 0; bottom: 0; background: #f2e6df; }
/* dış kapı: alt duvarda A odasına açılan boşluk (maskot buradan girer) */
.board .entry { position: absolute; left: 14%; bottom: -10px; width: 7%; height: 10px; background: #dfe9f2; z-index: 1; }
.board .entry::before, .board .entry::after { content: ''; position: absolute; top: -4px; width: 4px; height: 14px; background: #3b4048; }
.board .entry::before { left: -4px; } .board .entry::after { right: -4px; }
.board .rl { position: absolute; font: 700 13px var(--font); color: #4a5560; z-index: 1; }
.slot { position: absolute; z-index: 2; border: 3px dashed #9aa8b4; border-radius: 10px; background: rgba(20,32,43,.04); color: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s, box-shadow .2s; }
.slot.round { border-radius: 50%; }
.slot .si { font-size: 28px; }
.slot.hot { border-color: #19b8cc; background: rgba(25,230,255,.14); box-shadow: 0 0 0 8px rgba(25,230,255,.12); }
.slot.on { border: 0; background: var(--c); color: var(--f); cursor: default; box-shadow: inset 0 2px 0 rgba(255,255,255,.2), inset 0 -5px 0 rgba(0,0,0,.25), 0 14px 24px rgba(20,32,43,.25); }
.slot.no { animation: shake .35s; }
@keyframes shake { 25% { translate: -6px 0; } 75% { translate: 6px 0; } }
.done { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; background: var(--bg); color: var(--tx); border-radius: 14px;
  opacity: .35; filter: grayscale(1); transition: opacity .5s, filter .5s; }
.done div { display: grid; gap: 4px; }
.done b { font-size: 20px; }
.done span { color: var(--dim); }
.final.complete .done { opacity: 1; filter: none; }
.final.complete .board { box-shadow: 0 0 0 4px var(--cy), 0 30px 60px rgba(20,32,43,.18); transition: box-shadow .6s; }
body.home .foot { margin-top: 0; }

@media (max-width: 1000px) {
  .split, .split.rev, .final .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .stack { min-height: 0; aspect-ratio: 16 / 11; }
  .engines { grid-template-columns: minmax(0, 1fr); }
  .engines a { border-left: 0; border-top: 1px solid var(--line); }
  .engines a:first-child { border-top: 0; }
  .faq-in { grid-template-columns: minmax(0, 1fr); }
  .faq-in > h2 { position: static; grid-row: auto; margin-bottom: 16px; }
  .faq-in details { grid-column: 1; }
}
@media (max-width: 640px) {
  body.home .top { padding: 12px 16px; }
  .h-copy { padding-top: 120px; padding-bottom: 24px; }
  /* telefonda bloklar metnin üstüne binmesin: altta kendi şeritleri */
  body.home .hero { min-height: 0; padding-bottom: 300px; }
  .h-blocks { top: auto; height: 300px; }
  /* küçültme scale ile değil boyutla: scale, JS'in verdiği konumu da küçültüp blokları köşeye yığıyordu */
  .blk { width: calc(var(--w) * .72); height: calc(var(--h) * .72); }
  .blk .si { font-size: 22px; }
  .blk:nth-child(n + 6) { display: none; }
  .h-snap, .h-throw { display: none; }
  .s-draw, .s-desc, .s-export, .s-together, body.home .inside, body.home .faq, .final { padding: 88px 0; }
  .piece { width: 60px; height: 60px; }
  .bag { right: 50%; transform: translateX(50%); bottom: 14px; }
  .bag.bump { transform: translateX(50%) scale(1.06); }
  .bag .bh { display: none; }
}
/* tebrik + konfeti */
.confetti { position: fixed; z-index: 60; width: 8px; height: 12px; margin: -6px 0 0 -4px; pointer-events: none; }
.cheer { position: fixed; z-index: 55; transform: translateX(-50%); display: grid; gap: 4px; width: max-content; max-width: min(340px, calc(100vw - 32px)); padding: 14px 18px; text-align: center;
  background: rgba(17,27,38,.97); border: 1px solid var(--cy); border-radius: 14px; box-shadow: 0 0 0 4px rgba(25,230,255,.12), 0 14px 30px rgba(0,0,0,.5);
  animation: cheer-in .45s cubic-bezier(.2,1.4,.4,1); transition: opacity .4s, transform .4s; }
.cheer b { font-size: 18px; color: var(--cy); }
.cheer span { color: var(--tx); font-size: 14px; }
.cheer.out { opacity: 0; transform: translate(-50%, 10px); }
@keyframes cheer-in { from { opacity: 0; transform: translate(-50%, 16px) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .flyer, .bag, .done, .slot { transition: none !important; } }

/* marka satırı (başlığın içinde: arama motoru "Level Draft"ı sayfanın ana konusu olarak okusun) */
.h-copy h1 .h1brand { display: block; font-size: .3em; letter-spacing: .02em; color: var(--cy); font-weight: 700; margin-bottom: .35em; line-height: 1.1; }
body.home .about { padding: 100px 0 20px; }

.about h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 0 0 18px; }
.about p { color: var(--dim); font-size: 18px; line-height: 1.65; margin: 0 0 14px; max-width: 70ch; }
.about p b { color: var(--tx); }
@media (max-width: 720px) { body.home .about { padding: 64px 0 8px; } }

.s-desc .vis img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.5); }

/* 2B / 3B ayrımı ve 2B bölümler (2026-10-15): sayfa iki yoldan başlar, bölüm etiketleri numarasız (3B · Çiz, 2B · Dünya haritası) */
.s-fork, .s-map, .s-stage { padding: 120px 0; }
body.home .s-fork { padding-top: 100px; }
body.home .s-fork h2 { margin: 0 0 48px; }
.forks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fork { display: grid; grid-template-rows: auto 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--tx); text-decoration: none; transition: border-color .2s, transform .25s cubic-bezier(.16, 1, .3, 1); }
.fork:hover, .fork:focus-visible { border-color: var(--cy); transform: translateY(-3px); }
.fork:active { transform: scale(.99); }
.fork img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); background: var(--bg); display: block; }
.ft { display: grid; gap: 14px; padding: 28px 30px 32px; align-content: start; }
.ft b { font-size: 30px; letter-spacing: -0.01em; }
.ft > span { color: var(--dim); font-size: 16px; line-height: 1.5; }
.ft .ticks { margin: 4px 0 0; }
.ft > .fgo { color: var(--cy); font-weight: 650; display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; }
.shot { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.s-stage .tm { margin: 28px 0 0; color: var(--dim); font-size: 14px; max-width: none; padding: 0; }
@media (max-width: 1000px) { .forks { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .s-fork, .s-map, .s-stage { padding: 72px 0; } body.home .s-fork { padding-top: 64px; } .ft { padding: 22px; } .ft b { font-size: 26px; } }
