/* =========================================================================
   Bileşenler: hero, kutu kapağı, oyun kartı, filtreler, detay penceresi,
   geliştirme kartları, bülten, formlar
   ========================================================================= */

/* ---------- Ana sayfa girişi ---------- */
.hero { padding: var(--s-8) 0 var(--s-8); border-bottom: var(--border-soft); }
.hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.hero h1 { font-size: var(--t-hero); margin: 0 0 var(--s-4); letter-spacing: -.03em; line-height: 1.08; }
.hero .lead { max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-6); }
.hero-note { margin-top: var(--s-5); font-size: var(--t-sm); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); font-size: var(--t-xs); font-weight: 600; }
.chip svg { width: 14px; height: 14px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }

/* Lobi: oyun listesi + çevrimiçi sayısı */
.lobby { border: var(--border); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-lg); overflow: hidden; }
.lobby-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: 14px 18px; border-bottom: var(--border-soft); font-size: var(--t-sm); }
.lobby-head b { font-size: 1rem; }
.lobby-head .chip { border-color: transparent; background: #e3f1e6; color: var(--ok); }
.lobby-list { list-style: none; margin: 0; padding: 0; }
.lobby-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: var(--border-soft); transition: background .15s; }
.lobby-row:last-child { border-bottom: 0; }
.lobby-row:hover { background: var(--paper); }
.lobby-ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--c); border: 1.5px solid var(--ink); display: grid; place-items: center; overflow: hidden; }
.lobby-ic svg { width: 100%; height: 100%; }
.lobby-row b { display: block; font-size: 1rem; }
.lobby-row span { font-size: var(--t-xs); color: var(--ink-3); }
.lobby-row .btn { min-height: 36px; padding: 0 14px; font-size: var(--t-sm); }
.lobby-foot { padding: 12px 18px; background: var(--paper); border-top: var(--border-soft); font-size: var(--t-sm); display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
@media (max-width: 960px) {
  .hero { padding: var(--s-6) 0 var(--s-7); }
  .hero-in { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* Topluluk özeti (ana sayfa) */
.feed { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-6); }
.feed-col h2 { font-size: var(--t-xl); margin-bottom: var(--s-4); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.feed-col h2 a { font-size: var(--t-sm); font-weight: 600; }
.feed-list { list-style: none; margin: 0; padding: 0; border: var(--border-soft); border-radius: var(--r-lg); background: var(--card); }
.feed-list li { padding: 14px 18px; border-bottom: var(--border-soft); }
.feed-list li:last-child { border-bottom: 0; }
.feed-list a { font-weight: 700; text-decoration: none; }
.feed-list a:hover { text-decoration: underline; }
.feed-list span { display: block; font-size: var(--t-xs); color: var(--ink-3); margin-top: 2px; }
.feed-empty { padding: var(--s-6) 18px; text-align: center; color: var(--ink-3); font-size: var(--t-sm); }
@media (max-width: 860px) { .feed { grid-template-columns: 1fr; } }

/* ---------- Kutu kapağı ---------- */
.box { position: relative; }
.box::after { /* kutunun alt gövdesi: kapak kalkınca görünür */
  content: ''; position: absolute; left: 4px; right: -6px; top: 6px; bottom: -8px; z-index: -1;
  background: color-mix(in srgb, var(--cbg, var(--paper-3)) 70%, var(--ink)); border: var(--border); border-radius: var(--r-md);
}
.cover {
  --cbg: var(--paper-3); --cink: var(--ink); --cacc: var(--accent);
  position: relative; aspect-ratio: 5 / 4; overflow: hidden; isolation: isolate; container-type: inline-size;
  background: var(--cbg); color: var(--cink); border: var(--border); border-radius: var(--r-md);
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--cbg) 82%, #fff), inset 0 0 0 7px color-mix(in srgb, var(--cink) 70%, transparent);
}
.cover::before { /* yarım ton gölge */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--cink) 55%, transparent) 1px, transparent 1.4px);
  background-size: 7px 7px; -webkit-mask-image: linear-gradient(160deg, transparent 35%, #000 100%); mask-image: linear-gradient(160deg, transparent 35%, #000 100%); opacity: .25;
}
.cover-motif { position: absolute; inset: 0; z-index: 0; }
.cover-motif svg { width: 100%; height: 100%; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; }
.cover-top { position: absolute; z-index: 2; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; font-size: .62rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-variation-settings: 'wdth' 85; }
.cover-top b, .cover-top span { background: var(--cink); color: var(--cbg); padding: 3px 7px; border-radius: 3px; letter-spacing: .12em; }
.cover-top span { background: var(--cbg); color: var(--cink); border: 1.5px solid var(--cink); }
.cover-title {
  position: absolute; z-index: 2; left: 6cqw; right: 24cqw; bottom: 6cqw;
  font-family: var(--f-display); font-weight: 800; font-size: 10.5cqw; line-height: .95; letter-spacing: -.03em; text-wrap: balance;
  color: #fbf6ec; -webkit-text-stroke: 1.5px var(--cink); paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--cink);
}
.cover.is-light .cover-title { color: var(--cacc); }
.cover-seal { position: absolute; z-index: 2; right: 5cqw; bottom: 5cqw; width: 17cqw; height: 17cqw; border-radius: 50%; background: var(--cacc); color: var(--cink); border: var(--bw) solid var(--cink); display: grid; place-items: center; text-align: center; font-size: 2.6cqw; font-weight: 900; line-height: 1.05; letter-spacing: .04em; text-transform: uppercase; }
.cover-seal b { display: block; font-family: var(--f-display); font-size: 5.6cqw; letter-spacing: 0; }
.cover.has-img .cover-top, .cover.has-img .cover-title, .cover.has-img .cover-seal, .cover.has-img::before { display: none; }

/* ---------- Oyun kartı ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s-6) var(--s-5); }
.gcard { position: relative; display: flex; flex-direction: column; background: var(--card); border: var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gcard-box { padding: var(--s-3) var(--s-3) 0; }
.gcard-box .box::after { display: none; }
.gcard-body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-5); flex: 1; }
.gcard h3 { font-size: var(--t-xl); }
.gcard p { color: var(--ink-2); font-size: var(--t-sm); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .75rem; font-weight: 600; background: var(--paper); color: var(--ink-2); }
.tag svg { width: 13px; height: 13px; }
.tag-cat { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag-live { background: #dff0e2; border-color: var(--ok); color: var(--ok); }
.gcard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-top: auto; padding-top: var(--s-3); }
.gcard-actions .btn { min-height: 42px; padding: 0 var(--s-3); font-size: .9rem; }

/* Geliştirme aşamasındaki oyun */
.cover.is-dev { filter: saturate(.7); }
.cover-mystery { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: 6rem; color: var(--paper); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); }
.stamp { position: absolute; z-index: 6; top: 20px; left: 20px; padding: 3px 10px; background: var(--ink); color: var(--paper); border-radius: var(--r-pill); font-size: .75rem; font-weight: 700; }
.codename { font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); }
.progress { display: grid; gap: 6px; margin-top: auto; padding-top: var(--s-3); }
.progress-bar { height: 8px; border-radius: var(--r-pill); background: var(--paper-3); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: var(--r-pill); transition: width 1s var(--ease); }
.reveal.is-in .progress-bar i, .modal .progress-bar i { width: var(--p); }
.progress-meta { display: flex; justify-content: space-between; font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); }

/* ---------- Filtreler ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: end; padding: var(--s-4) var(--s-5); border: var(--border-soft); border-radius: var(--r-lg); background: var(--card); margin-bottom: var(--s-6); }
.filter-group { display: grid; gap: var(--s-2); }
.filter-group > span { color: var(--ink-3); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 36px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); font-weight: 600; font-size: var(--t-sm); transition: background .15s, color .15s, border-color .15s; }
.seg button:hover { border-color: var(--ink-3); }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.filter-count { margin-left: auto; font-size: var(--t-sm); color: var(--ink-3); }
.empty { padding: var(--s-8) var(--s-5); text-align: center; border: 2px dashed var(--ink-3); border-radius: var(--r-lg); color: var(--ink-2); grid-column: 1 / -1; }
.empty h3 { font-size: var(--t-xl); margin-bottom: var(--s-2); }
.gcard.is-hidden { display: none; }
.gcard.is-entering { animation: cardin .45s var(--ease) both; }
@keyframes cardin { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* ---------- Detay penceresi ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(27, 23, 18, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-panel {
  position: absolute; left: 50%; top: 50%; width: min(1040px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  transform: translate(-50%, -50%); background: var(--paper); border: var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1.08fr; grid-template-rows: minmax(0, 1fr); height: min(780px, calc(100dvh - 48px)); overflow: hidden; transform-origin: center;
}
.modal-media { background: var(--paper-2); border-right: var(--border); padding: var(--s-6); overflow-y: auto; display: grid; gap: var(--s-5); align-content: start; }
.modal-media .cover-title { font-size: 11cqw; }
.modal-body { padding: var(--s-6) var(--s-6) 0; overflow-y: auto; display: flex; flex-direction: column; }
.modal-body h2 { font-size: var(--t-3xl); margin: var(--s-3) 0 var(--s-4); }
.modal-body h3 { font-size: var(--t-lg); margin: var(--s-6) 0 var(--s-3); }
.modal-story { color: var(--ink-2); }
.modal-close { position: absolute; z-index: 3; top: var(--s-3); right: var(--s-3); width: 44px; height: 44px; border: var(--border); border-radius: 50%; background: var(--card); box-shadow: var(--shadow-sm); display: grid; place-items: center; transition: transform .2s var(--ease); }
.modal-close:hover { background: var(--paper-2); }
.modal-close svg { width: 18px; height: 18px; }
.modal-foot { position: sticky; bottom: 0; margin-top: auto; padding: var(--s-5) 0 var(--s-6); background: linear-gradient(transparent, var(--paper) 30%); display: grid; gap: var(--s-2); }
.modal-foot small { color: var(--ink-3); text-align: center; font-size: var(--t-xs); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); counter-reset: r; }
.rules li { display: grid; grid-template-columns: 30px 1fr; gap: var(--s-3); font-size: var(--t-sm); color: var(--ink-2); line-height: 1.55; }
.rules li::before { counter-increment: r; content: counter(r); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); color: var(--ink); font-weight: 800; font-size: var(--t-xs); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.shot { margin: 0; aspect-ratio: 3 / 4; border: var(--border); border-radius: var(--r-md); background: var(--card); overflow: hidden; display: grid; place-items: center; position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .board-host { width: 86%; pointer-events: none; }
.shot-ph { display: grid; place-items: center; gap: 6px; text-align: center; color: var(--ink-3); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: var(--s-2); background-image: repeating-linear-gradient(45deg, transparent 0 10px, rgba(27,23,18,.05) 10px 20px); width: 100%; height: 100%; }
.shot-ph svg { width: 26px; height: 26px; }
.shots-cap { font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; }
@media (max-width: 820px) {
  .modal-panel { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 92dvh; transform: none; grid-template-columns: 1fr; grid-template-rows: auto; height: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; overflow-y: auto; }
  .modal-media { border-right: 0; border-bottom: var(--border); overflow: visible; padding: var(--s-5); }
  .modal-body { overflow: visible; padding: var(--s-5) var(--s-5) 0; }
  .modal-media .box { max-width: 360px; }
}

/* ---------- Bülten ---------- */
.newsletter { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7); align-items: center; padding: var(--s-6) var(--s-6); border: var(--border-soft); border-radius: var(--r-lg); background: var(--card); }
.newsletter .halftone { inset: 0 0 0 55%; opacity: .2; }
.newsletter h2 { font-size: var(--t-2xl); }
.newsletter p { margin-top: var(--s-3); color: var(--ink-2); }
.nl-form { position: relative; z-index: 1; display: grid; gap: var(--s-3); }
.nl-row { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2); }
.form-msg { min-height: 1.4em; font-size: var(--t-sm); font-weight: 700; }
.form-msg.ok { color: var(--ok); } .form-msg.err { color: var(--err); }
.nl-note { font-size: var(--t-xs); color: var(--ink-2); }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; padding: var(--s-6) var(--s-5); gap: var(--s-5); } .nl-row { grid-template-columns: 1fr; } }

/* ---------- Formlar ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-sm); font-weight: 700; }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #bfae8f; border-radius: var(--r-md); background: #fff; font-size: 16px; font-weight: 500; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(217, 68, 43, .18); }
.input.is-invalid, .textarea.is-invalid { border-color: var(--err); }
.input::placeholder, .textarea::placeholder { color: #9a8d7a; font-weight: 500; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1712' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }

/* ---------- Cihazlar (tek masa) ---------- */
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.device { padding: var(--s-5); border: var(--border-soft); border-radius: var(--r-lg); background: var(--card); }
.device-ic { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; margin-bottom: var(--s-4); background: var(--paper-2); }
.device-ic svg { width: 24px; height: 24px; }
.device h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.device p { color: var(--ink-2); font-size: var(--t-sm); }
.device.is-hl { border: var(--border); box-shadow: var(--shadow-md); }
.ios-steps { margin: var(--s-4) 0 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: i; font-size: var(--t-sm); }
.ios-steps li { display: flex; gap: var(--s-2); align-items: baseline; }
.ios-steps li::before { counter-increment: i; content: counter(i) '.'; font-weight: 900; }
@media (max-width: 860px) { .devices { grid-template-columns: 1fr; } }

/* ---------- Vizyon / Hakkımızda ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.split-media { position: relative; }
.big-quote { font-family: var(--f-display); font-weight: 600; font-size: var(--t-2xl); line-height: 1.3; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--s-5); counter-reset: v; }
.value { padding: var(--s-5) 0; border-top: var(--border); position: relative; }
.value h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.value p { color: var(--ink-2); font-size: var(--t-sm); }
.band-ink .value { border-color: var(--paper); }
.band-ink .value p { color: #cbbda3; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--border); border-radius: var(--r-lg); background: var(--card); overflow: hidden; box-shadow: var(--shadow-md); }
.stat { padding: var(--s-6) var(--s-5); border-right: var(--border); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-weight: 800; font-size: var(--t-3xl); line-height: 1; }
.stat span { font-size: var(--t-sm); color: var(--ink-2); font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: var(--border); margin-left: 10px; }
.timeline li { position: relative; padding: 0 0 var(--s-6) var(--s-6); }
.timeline li::before { content: ''; position: absolute; left: -11px; top: 4px; width: 20px; height: 20px; border: var(--border); border-radius: 50%; background: var(--paper); }
.timeline li.done::before { background: var(--accent); }
.timeline b { display: block; font-size: var(--t-lg); }
.timeline span { color: var(--ink-2); font-size: var(--t-sm); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s-6); } .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: var(--border); } }

/* ---------- Sayfa başlığı ---------- */
.page-hero { position: relative; padding: var(--s-8) 0 var(--s-7); border-bottom: var(--border-soft); }
.page-hero .halftone { inset: 0 0 0 auto; width: 45%; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.page-hero h1 { font-size: var(--t-hero); margin-top: var(--s-2); letter-spacing: -.03em; }
.page-hero .lead { max-width: 60ch; margin-top: var(--s-4); }

/* ---------- İletişim ---------- */
.contact { display: grid; grid-template-columns: 1.3fr .9fr; gap: var(--s-7); align-items: start; }
.contact-form { display: grid; gap: var(--s-4); padding: var(--s-6); border: var(--border-soft); border-radius: var(--r-lg); background: var(--card); }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.channels { display: grid; gap: var(--s-4); }
.channel { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: center; padding: var(--s-3) var(--s-4); border: var(--border-soft); border-radius: var(--r-md); background: var(--card); text-decoration: none; transition: border-color .15s; }
a.channel:hover { border-color: var(--ink-3); }
.channel-ic { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--paper-2); }
.channel-ic svg { width: 22px; height: 22px; }
.channel b { display: block; }
.channel span { font-size: var(--t-sm); color: var(--ink-2); word-break: break-word; }
.faq details { border-bottom: var(--border-soft); padding: var(--s-4) 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: var(--t-md); list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--f-text); font-weight: 900; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--t-sm); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact-form { padding: var(--s-5); } .contact-form .row2 { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf { min-height: calc(100dvh - var(--nav-h)); display: grid; place-items: center; text-align: center; padding: var(--s-8) 0; }
.nf-dice { display: flex; justify-content: center; gap: var(--s-4); margin-bottom: var(--s-6); }
.nf-dice svg { width: 72px; height: 72px; }
.nf h1 { font-size: var(--t-3xl); margin-bottom: var(--s-4); }
.nf p { color: var(--ink-2); margin-bottom: var(--s-6); }
