/* ==========================================================================
   Vitrin — sitenin görsel dili
   Aydınlık bir oyun mağazası: oyunlar kapak resimleriyle üç boyutlu kutular olarak raflarda durur, Steam Guard
   kodu dönen bir oyun diskinin üstünde çıkar. Renkler markanın logosundan: siyah, beyaz ve sarı. Üst çubuk,
   alt menü ve vurgulu bloklar siyah; vurgu rengi sarıdır. Sarı açık zeminde yazı olarak okunmadığı için açık
   zemindeki vurgulu yazılar koyu altın (--accent-text) kullanır. Desen yok: çizgi ve renk geçişi yerine düz renk.

   Bölümler: 1 Değişkenler · 2 Temel · 3 Üst çubuk · 4 Düğmeler ve formlar · 5 Ortak parçalar · 6 Oyun kutusu ·
   7 Oyun diski · 8 Ana sayfa · 9 Raf ve satın alma · 10 Hesaplarım · 11 Pencereler ve bildirimler ·
   12 Yönetim · 13 Alt bilgi · 14 Hareket · 15 Küçük ekranlar

   Sayfalar satır içi stil kullanamaz (içerik güvenlik politikası); değişen değerler betikten CSS değişkeni
   olarak verilir (--rx, --ry: kutunun imlece göre eğimi; --tint: kapak resminin baskın rengi).
   ========================================================================== */

/* --- 1 Değişkenler --- */
:root {
  --bg: #f3f3f1;
  --bg-2: #e7e7e3;
  --card: #fff;
  --ink: #111111;
  --ink-2: #47474a;
  --ink-3: #85858a;
  --line: #e2e2dd;
  --line-2: #cbcbc4;
  --night: #0d0d0d;
  --night-2: #1c1c1c;
  --accent: #ffd400;
  --accent-soft: #fff5c2;
  --accent-text: #866b00;
  --accent-line: #ecd36a;
  --blue: #2457ff;
  --green: #0f9d58;
  --green-soft: #dcf4e6;
  --red: #e5322d;
  --red-soft: #fde3e1;
  --gold: #a86b0c;
  --gold-soft: #fbedd3;
  --r: 14px;
  --r-l: 22px;
  --shadow-s: 0 1px 2px rgba(10, 10, 10, .06), 0 3px 10px -4px rgba(10, 10, 10, .1);
  --shadow: 0 1px 2px rgba(10, 10, 10, .05), 0 18px 40px -18px rgba(10, 10, 10, .32);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Başlıklar: Windows'ta Segoe UI Black, diğerlerinde sistemin en kalın yazısı */
  --display: "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", "SF Mono", ui-monospace, Consolas, "Roboto Mono", monospace;
}

/* --- 2 Temel --- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 15.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 900; letter-spacing: -.035em; }
h2 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 900; letter-spacing: -.03em; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-color: var(--line-2); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
code, kbd { font-family: var(--mono); }
code { padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-size: .92em; word-break: break-all; }
small { font-size: 12.5px; font-weight: 400; line-height: 1.5; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; }
.muted { color: var(--ink-2); }
.small-note { font-size: 13px; }
.skip-link { position: fixed; top: -90px; left: 16px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 650; text-decoration: none; }
.skip-link:focus { top: 16px; }
/* Zemin: üstten düşen yumuşak ışık ve ince kâğıt dokusu */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 70% 46% at 50% -6%, #fff 0%, rgba(255, 255, 255, 0) 72%), radial-gradient(ellipse 50% 40% at 90% 30%, rgba(255, 212, 0, .06), transparent 70%); }
.backdrop::after { content: ""; position: absolute; inset: 0; background: url(/grain.png); opacity: .55; }

/* --- 3 Üst çubuk (telefonda menü ekranın altına iner) --- */
/* Çubuğun zemini ::before katmanındadır; böylece içindeki menü telefonda ekrana göre sabitlenebilir. */
.dock { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; gap: 22px; height: 70px; padding: 0 max(22px, calc(50% - 590px)); }
.dock::before { content: ""; position: absolute; inset: 0; z-index: -1; border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(13, 13, 13, .94); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); transition: border-color .3s, box-shadow .3s; }
.dock.scrolled::before { border-color: rgba(255, 255, 255, .1); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.dock .brand { color: #fff; }
.dock .user-chip { border-color: rgba(255, 255, 255, .2); background: transparent; color: #fff; }
.dock .user-chip:hover, .dock .user-chip.active { border-color: var(--accent); }
.dock .user-chip .avatar { background: var(--accent); color: var(--ink); }
.dock :is(.btn, button).ghost { color: #c9c9c4; }
.dock :is(.btn, button).ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.dock :is(.btn, button).outline { border-color: rgba(255, 255, 255, .28); background: transparent; color: #fff; }
.dock :is(.btn, button).outline:hover { border-color: var(--accent); background: transparent; color: var(--accent); }
.dock .btn:not(.outline):not(.ghost) { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; font-family: var(--display); font-size: 19px; font-weight: 900; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand-name { overflow: hidden; text-overflow: ellipsis; }
.logo { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: var(--ink); font-size: 26px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); }
.brand:hover .logo svg { animation: spin 1s var(--ease); }
.logo.big { width: 64px; height: 64px; border-radius: 18px; font-size: 44px; }
.menu { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.menu a { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 70px; padding: 0 14px; color: #b4b4ae; font-size: 14.5px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: color .2s; }
.menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.menu a:hover { color: #fff; }
.menu a.active { color: #fff; view-transition-name: nav-active; }
.menu a.active::after { transform: scaleX(1); }
.nav-icon { display: grid; font-size: 17px; }
.nav-text { display: inline-flex; align-items: center; gap: 7px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 800; line-height: 1; }
.dock-side { display: flex; align-items: center; gap: 8px; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; max-width: 210px; height: 44px; padding: 0 14px 0 5px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 650; text-decoration: none; transition: border-color .2s; }
.user-chip:hover, .user-chip.active { border-color: var(--ink); }
.avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; }
.user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
form.inline { display: inline-flex; margin: 0; }
.dock .logout { width: 44px; padding: 0; font-size: 19px; }
.dock .logout span { display: none; }
.shell { width: min(1180px, calc(100% - 44px)); margin-inline: auto; padding-top: 104px; }

/* --- 4 Düğmeler ve formlar --- */
:where(.btn, button) { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--ink); font: 700 15px/1 var(--font); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: transform .18s var(--ease), box-shadow .25s, background .2s, border-color .2s, color .2s; }
/* Bağlantı olarak yazılan düğmeler bağlantı rengini almasın diye renk ayrıca verilir. */
.btn, button { color: #fff; }
:where(.btn, button):hover { border-color: var(--accent); background: var(--accent); color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(255, 212, 0, .9); }
:where(.btn, button):active { transform: translateY(0) scale(.98); box-shadow: none; }
:where(button):disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
:where(.btn, button) svg { font-size: 18px; }
:is(.btn, button).small { height: 38px; padding: 0 15px; border-radius: 10px; font-size: 13.5px; }
:is(.btn, button).wide { width: 100%; }
:is(.btn, button).outline { border-color: var(--line-2); background: var(--card); color: var(--ink); }
:is(.btn, button).outline:hover { border-color: var(--ink); background: var(--card); color: var(--ink); box-shadow: 0 10px 22px -14px rgba(10, 10, 10, .55); }
:is(.btn, button).ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
:is(.btn, button).ghost:hover { background: rgba(10, 10, 10, .06); color: var(--ink); box-shadow: none; transform: none; }
:is(.btn, button).danger { border-color: #f2b8b4; background: var(--card); color: var(--red); }
:is(.btn, button).danger:hover { border-color: var(--red); background: var(--red); color: #fff; box-shadow: 0 12px 24px -12px rgba(229, 50, 45, .8); }
button.premium-btn { border-color: #e0b400; background: #ffe066; color: var(--ink); }
button.premium-btn:hover { border-color: var(--ink); background: var(--accent); color: var(--ink); box-shadow: 0 12px 24px -12px rgba(200, 160, 0, .9); }
button.link, a.link { height: auto; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--blue); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
button.link:hover { background: none; color: var(--ink); }
button:is(.mini, .copy) { height: 30px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--ink); font-size: 12px; }
button:is(.mini, .copy):hover { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: none; transform: none; }
/* Gönderilen formun düğmesi yanıt gelene kadar dönen halka gösterir. */
.is-busy { color: transparent !important; pointer-events: none; }
.is-busy::after { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
/* Kendi görünümü olan küçük düğmeler genel üzerine gelme etkisini almaz. */
:is(.chip, .modal-close, .info, .finder-clear, .pw-toggle, button.link, button.tag, .tag-chip button, .buy-btn):is(:hover, :active) { transform: none; box-shadow: none; }

label { display: grid; gap: 7px; color: var(--ink-2); font-size: 13.5px; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 15px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--ink); font: 500 15px/1.4 var(--font); transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a9a49b; }
:is(input, select, textarea):hover { border-color: #b3ad9f; }
:is(input, select, textarea):focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(255, 212, 0, .18); }
input[type="search"]::-webkit-search-cancel-button { display: none; }
select { padding-right: 40px; -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input[type="checkbox"] { flex: none; width: 20px; height: 20px; min-height: 20px; padding: 0; accent-color: var(--accent); cursor: pointer; }
input[type="file"] { padding: 7px; font-size: 13px; }
input[type="file"]::file-selector-button { height: 32px; margin-right: 10px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font: 650 12.5px var(--font); cursor: pointer; }
input.file { width: auto; max-width: 280px; }
label.check { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-weight: 500; cursor: pointer; }
form:not(.form-grid) > :is(label, fieldset, .perm-list, .recaptcha-wrap) + * { margin-top: 16px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; width: 38px; height: 38px; margin-top: -19px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--ink-3); font-size: 20px; }
.pw-toggle:hover { background: var(--bg); color: var(--ink); }
.pw-toggle.on { color: var(--accent-text); }
.recaptcha-wrap { display: grid; justify-items: center; min-height: 78px; }

/* --- 5 Ortak parçalar --- */
main { display: block; min-height: 58vh; }
main > * + * { margin-top: 28px; }
.card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-s); }
/* Kart içindeki parçalar arasında eşit boşluk (seçici bilerek güçlü: parçaların kendi kenar boşluğu sıfırlamalarını aşar). */
.card.card > * + * { margin-top: 16px; }
.card.card > h2 + p { margin-top: 8px; }
form > .card + .card { margin-top: 24px; }
/* Formun başındaki gizli alanlar boşluk bırakmaz. */
:is(.card, .modal-box) > input[type="hidden"]:first-child + *,
:is(.card, .modal-box) > input[type="hidden"]:first-child + input[type="hidden"] + *,
:is(.card, .modal-box) > input[type="hidden"]:first-child + input[type="hidden"] + input[type="hidden"] + * { margin-top: 0; }
.card:has(> table) { overflow-x: auto; }
.card.center { text-align: center; }
.card.highlight { border-color: var(--accent-line); background: #fffbea; }
.card.danger-card { border-color: #f2b8b4; background: #fff6f5; }
.section-head { display: flex; align-items: center; gap: 14px; }
.section-head h1::before, .section-head h2::before { content: ""; display: inline-block; width: .42em; height: .42em; margin-right: .32em; border-radius: 3px; background: var(--accent); vertical-align: .12em; }
.section-head::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--line); }
main > .section-head:not(:first-child) { margin-top: 56px; }
.count { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--font); font-size: 12.5px; font-weight: 700; line-height: 1.5; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
h2 .count, h1 .count { font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.actions form { margin: 0; }
.empty { padding: 44px 20px; border: 2px dashed var(--line-2); border-radius: var(--r-l); background: rgba(255, 255, 255, .5); color: var(--ink-2); text-align: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { position: relative; display: grid; align-content: start; gap: 4px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-s); }
.stat strong { font-family: var(--display); font-size: 32px; font-weight: 900; line-height: 1.05; letter-spacing: -.04em; overflow-wrap: anywhere; }
.stat > span { color: var(--ink-2); font-size: 13px; }
.stats.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats.trio .stat { padding: 30px 12px; text-align: center; }
.stats.trio .stat strong { font-size: clamp(40px, 5.4vw, 64px); }
.stats.trio .stat strong::after { content: ""; display: block; width: 32px; height: 4px; margin: 10px auto 2px; border-radius: 4px; background: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); color: var(--ink-2); font: 700 11px/1 var(--font); letter-spacing: .03em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.tag.ok { border-color: #a6dfbf; background: var(--green-soft); color: #0b6e3d; }
.tag.premium { border-color: #ecc98a; background: var(--gold-soft); color: var(--gold); }
.tag.banned { border-color: #f2b8b4; background: var(--red-soft); color: #b3201b; }
.tag.required { border-color: #ecc98a; background: var(--gold-soft); color: var(--gold); }
button.tag { cursor: pointer; }
button.tag:hover, a.tag:hover { border-color: var(--ink); color: var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 10px 12px; border-bottom: 2px solid var(--ink); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #faf8f4; }
tbody tr:last-child td { border-bottom: 0; }
.page { max-width: 820px; margin-inline: auto; }
.page h1 { margin-bottom: 22px; }
.prose { color: var(--ink-2); }
.prose h2 { margin: 28px 0 10px; color: var(--ink); font-size: 21px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin: 5px 0; }
.prose li::marker { color: var(--accent-text); }
details { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
details + details { margin-top: 10px; }
details[open] { border-color: var(--ink); box-shadow: var(--shadow-s); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; font-weight: 700; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--bg); color: var(--ink); font-size: 20px; font-weight: 400; line-height: 1; transition: rotate .25s var(--ease), background .25s, color .25s; }
details[open] summary::after { rotate: 45deg; background: var(--accent); color: var(--ink); }
details .prose { padding: 0 20px 20px; }
.faq { max-width: 860px; margin-inline: auto; }
main > .faq { margin-top: 80px; }
.faq .section-head { margin-bottom: 20px; }
.flash { padding: 14px 18px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--card); font-weight: 600; }
.flash.ok { border-color: #a6dfbf; background: var(--green-soft); color: #0b6e3d; }
.flash.error { border-color: #f2b8b4; background: var(--red-soft); color: #b3201b; }
.announce { margin-bottom: 22px; }
.announce .bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.announce .bar::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }

/* Giriş, üyelik ve tek mesajlı sayfalar */
.auth { display: grid; place-items: center; min-height: calc(100vh - 380px); padding: 20px 0; }
.auth .card { width: min(440px, 100%); padding: 36px 32px 32px; box-shadow: var(--shadow); }
.auth .card > .logo.big { margin: 0 auto 4px; }
.auth form.card { text-align: center; }
.auth form.card label { text-align: left; }
.auth .forgot { justify-self: end; color: var(--ink-2); font-size: 13px; font-weight: 650; }
.auth .forgot:hover { color: var(--accent-text); }
.auth .code-input { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.reset-contact { display: grid; justify-items: start; gap: 6px; padding: 14px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--bg); text-align: left; }
.reset-contact strong { font-size: 14px; }
.reset-contact p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.auth.split { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; max-width: 1000px; margin-inline: auto; }
.auth.split .card > .logo.big { display: none; }
.auth-art { display: grid; justify-items: center; gap: 28px; }
.auth-art .disc { width: min(320px, 80%); }
.auth-slogan { margin: 0; font-family: var(--display); font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; line-height: 1; letter-spacing: -.04em; text-align: center; }
.auth h1 { font-size: 32px; }
.auth dl { text-align: left; }
.auth .message .disc { width: 128px; margin-bottom: 4px; }
.auth .message h1 { font-size: clamp(36px, 7vw, 60px); }
.switch { margin-top: 18px; color: var(--ink-2); font-size: 14px; text-align: center; }
.switch a { color: var(--ink); font-weight: 700; text-decoration-color: var(--accent); }
/* Vurgulu yazı: altını fosforlu kalem gibi turuncu bir şerit çizer. */
:is(.hero h1, .auth-slogan) em { padding: 0 .06em; background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; font-style: normal; }

/* --- 6 Oyun kutusu: ön yüzde kapak, solda sırt, üstte kenar (boyutlar kutunun kabına göre ölçeklenir) --- */
.box { --w: 72cqw; --h: calc(var(--w) * 1.3); --d: calc(var(--w) * .13); --turn: 26deg; --tip: -7deg; position: relative; width: var(--w); height: var(--h); margin-inline: auto; transform: rotateY(calc(var(--turn) + var(--ry, 0deg))) rotateX(calc(var(--tip) + var(--rx, 0deg))); transform-style: preserve-3d; transition: transform .7s var(--ease), translate .5s var(--ease); }
.box > div { position: absolute; }
.box-front { inset: 0; border-radius: 2px 6px 6px 2px; background: #2a2926; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); transform: translateZ(calc(var(--d) / 2)); overflow: hidden; }
.box-front img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Plastik kutunun parlaması ve menteşe gölgesi */
.box-sheen { position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0) 7%), linear-gradient(108deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .16) 74%, rgba(255, 255, 255, 0) 88%); pointer-events: none; }
.box-blank { display: grid; place-items: center; height: 100%; padding: 12%; background: radial-gradient(circle at 30% 20%, #3b3a36, #161513); color: #fff; font-family: var(--display); font-size: calc(var(--w) * .13); font-weight: 900; line-height: 1.05; letter-spacing: -.03em; text-align: center; overflow-wrap: anywhere; }
.box-spine { top: 0; left: calc(50% - var(--d) / 2); display: grid; place-items: center; width: var(--d); height: 100%; background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .12) 42%, rgba(255, 255, 255, .14) 56%, rgba(0, 0, 0, .3)), var(--tint, #3a3935); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); overflow: hidden; }
.box-spine span { max-height: 88%; color: #fff; font-family: var(--display); font-size: calc(var(--d) * .4); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; writing-mode: vertical-rl; transform: rotate(180deg); }
.box-top { top: calc(50% - var(--d) / 2); left: 0; width: 100%; height: var(--d); background: linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .12)), var(--tint, #3a3935); transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }

/* --- 7 Oyun diski: gökkuşağı yansımalı yüzey, ortada delik, kenarda kalan süre halkası --- */
/* Diskin içindeki her şey diskin genişliğine göre ölçeklenir (cqw). */
.disc { position: relative; width: min(230px, 100%); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; }
.disc::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; box-shadow: 0 22px 38px -16px rgba(10, 10, 10, .45), 0 2px 6px rgba(10, 10, 10, .15); }
.disc-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; rotate: -90deg; }
.disc-track { fill: none; stroke: var(--line); stroke-width: 3; }
.disc-arc { fill: none; stroke: var(--accent); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 358.2; stroke-dashoffset: 358.2; transition: stroke-dashoffset .5s linear; }
.disc-body { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, transparent 0 15.5%, rgba(255, 255, 255, .95) 16% 17%, rgba(205, 200, 190, .9) 17.5% 19.5%, transparent 20%), radial-gradient(circle, transparent 0 96%, rgba(10, 10, 10, .14) 97%), conic-gradient(from 30deg, #e9e4ff, #c6eeff, #fff4c4, #ffd6e8, #d3fbe6, #e2ddff, #bfe9ff, #fff0bd, #ffd2e4, #e9e4ff); -webkit-mask: radial-gradient(circle, transparent 0 8.5%, #000 9%); mask: radial-gradient(circle, transparent 0 8.5%, #000 9%); }
.disc-print { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(10, 10, 10, .5); font: 800 6.6px var(--display); letter-spacing: .06em; text-transform: uppercase; }
/* Işığın yansıması dönmez; disk dönerken renkler altından akar. */
.disc::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 28deg, rgba(255, 255, 255, .9) 44deg, transparent 62deg 196deg, rgba(255, 255, 255, .7) 214deg, transparent 232deg); -webkit-mask: radial-gradient(circle, transparent 0 20%, #000 21%); mask: radial-gradient(circle, transparent 0 20%, #000 21%); mix-blend-mode: soft-light; pointer-events: none; }
.disc.spinning .disc-body { animation: spin .5s linear infinite; }
.disc.spin-slow .disc-body { animation: spin 16s linear infinite; }
.disc-code { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 2cqw; pointer-events: none; }
.disc-code .logo { width: 30cqw; height: 30cqw; border-radius: 50%; font-size: 21cqw; }
.disc-idle { display: grid; place-items: center; width: 28cqw; height: 28cqw; border-radius: 50%; background: var(--card); color: var(--ink); font-size: 11cqw; box-shadow: 0 4px 14px -6px rgba(10, 10, 10, .45); }
.disc.has-code .disc-idle, .disc.spinning .disc-idle { display: none; }
/* Kod, diskin ortasına yapıştırılmış beyaz bir etiket gibi görünür. */
:is(code.guard, .disc-code .digits) { display: flex; gap: 1.6cqw; padding: 3cqw; border: 0; border-radius: 5cqw; background: var(--card); box-shadow: 0 8px 22px -10px rgba(10, 10, 10, .6); word-break: normal; pointer-events: auto; }
code.guard { cursor: copy; }
:is(code.guard, .disc-code .digits) span { display: grid; place-items: center; width: 1.2em; height: 1.45em; border-radius: 3cqw; background: var(--bg); color: var(--ink); font: 800 10cqw/1 var(--mono); }
code.guard span { animation: flip .45s var(--ease) both; }
code.guard span:nth-child(2) { animation-delay: .05s; }
code.guard span:nth-child(3) { animation-delay: .1s; }
code.guard span:nth-child(4) { animation-delay: .15s; }
code.guard span:nth-child(5) { animation-delay: .2s; }
code.guard.copied span { background: var(--green-soft); color: #0b6e3d; }
.disc-code small { padding: .3em .8em; border-radius: 6px; background: var(--ink); color: #fff; font-size: max(9px, 4.2cqw); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.digits span.flip { animation: flip .5s var(--ease) both; }

/* --- 8 Ana sayfa --- */
.hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center; gap: 30px; min-height: min(600px, calc(100vh - 140px)); padding: 0 0 10px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 13px; font-weight: 700; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse-green 2s infinite; }
.hero h1 { margin: 22px 0 22px; font-size: clamp(46px, 7.2vw, 98px); line-height: .94; letter-spacing: -.05em; }
.hero p { max-width: 500px; color: var(--ink-2); font-size: 18.5px; line-height: 1.55; }
.hero .actions { margin-top: 30px; }
.hero .btn { height: 54px; padding: 0 26px; border-radius: 14px; font-size: 16px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; color: var(--ink-2); font-size: 14px; font-weight: 650; list-style: none; }
.hero-facts li { display: inline-flex; align-items: center; gap: 9px; }
.hero-facts b { color: var(--ink); font-weight: 800; }
.hero-facts .icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--accent); font-size: 16px; }
/* Vitrin: arkada iki oyun kutusu, önde dönen kutu ve arkasından çıkan disk */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 500px; }
.hero-visual::before { content: ""; position: absolute; width: min(560px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, .7) 38%, rgba(255, 255, 255, 0) 68%); }
/* İmleç vitrinin üstündeyken bütün sahne ona doğru hafifçe eğilir (--rx, --ry betikten). */
.stage { position: relative; z-index: 0; width: min(440px, 100%); aspect-ratio: 1 / 1.02; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.stage.live { transition-duration: .12s; }
.stage::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 3%; height: 46px; border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 10, 10, .32), transparent); z-index: -1; }
.stage-side, .stage-main { position: absolute; container-type: inline-size; perspective: 1100px; }
/* Arkadaki kutu, ondeki dönen kutu ve kutunun arkasından sağa doğru çıkmış disk */
.stage-side { top: 13%; left: -3%; z-index: 0; width: 34%; }
.stage-side .box { --w: 100cqw; --turn: 38deg; --tip: -6deg; filter: saturate(.8) brightness(.96); }
.stage-main { top: 10%; left: 9%; z-index: 2; width: 50%; }
.stage-main .box { --w: 100cqw; --tip: -5deg; animation: swing 8s ease-in-out infinite alternate; }
.stage-disc { position: absolute; top: 16%; left: 50%; z-index: 1; width: 52%; margin: 0; }
.stage-disc .disc-arc { animation: ring 6s linear infinite; }
.stage-live { position: absolute; top: 2%; right: 2%; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; box-shadow: var(--shadow-s); }
.stage-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff4b3e; animation: blink 1.4s infinite; }

/* Çapraz akan iki şerit (biri turuncu, biri siyah) */
.tape { position: relative; display: grid; height: 132px; margin-inline: calc(50% - 50vw); overflow: hidden; }
.tape .ticker { position: absolute; top: 50%; left: -4%; right: -4%; z-index: 2; padding: 13px 0; background: var(--accent); box-shadow: 0 14px 28px -16px rgba(10, 10, 10, .7); translate: 0 -50%; rotate: -2.4deg; }
.tape .ticker.back { z-index: 1; background: var(--ink); rotate: 2deg; }
.ticker-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.ticker.back .ticker-track { animation-direction: reverse; }
.tape:hover .ticker-track { animation-play-state: paused; }
.ticker-row { display: flex; }
.ticker-row span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; color: var(--ink); font-family: var(--display); font-size: 21px; font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.ticker-row span::after { content: "✦"; color: #fff; font-size: 16px; }
.ticker.back .ticker-row span { color: #fff; }
.ticker.back .ticker-row span::after { color: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; display: grid; align-content: start; gap: 16px; padding: 26px 24px 26px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-s); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-no { position: absolute; top: -6px; right: 14px; color: transparent; font-family: var(--display); font-size: 104px; font-weight: 900; line-height: 1; -webkit-text-stroke: 2px var(--line); }
.steps .icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--ink); color: #fff; font-size: 24px; }
.steps li:nth-child(2) .icon { background: var(--accent); color: var(--ink); }
.steps strong { display: block; font-family: var(--display); font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.steps div span { color: var(--ink-2); font-size: 14.5px; }

/* Arama paneli */
.finder { position: relative; display: grid; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-s); }
.finder-bar { position: relative; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); transition: border-color .2s, box-shadow .25s; }
.finder-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(255, 212, 0, .16); }
.finder-icon { display: grid; color: var(--ink); font-size: 22px; }
.finder-bar input { flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; background: none; box-shadow: none; font-size: 17px; font-weight: 600; }
.finder-bar input:focus { box-shadow: none; }
.finder-clear { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: var(--bg); color: var(--ink); font-size: 18px; }
.finder-clear:hover { background: var(--ink); color: #fff; }
.finder-key { display: grid; place-items: center; min-width: 28px; height: 28px; border: 1.5px solid var(--line-2); border-bottom-width: 3px; border-radius: 7px; color: var(--ink-2); font-size: 13px; }
.finder-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 38px; padding: 0 7px 0 14px; gap: 9px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 13.5px; }
.chip:hover { border-color: var(--ink); background: var(--card); color: var(--ink); }
.chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: var(--bg); color: var(--ink); font-size: 12px; }
.chip.active .chip-count { background: var(--accent); color: var(--ink); }
.finder-sort { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.finder-sort select { width: auto; min-height: 38px; padding: 0 38px 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 650; }
.finder-status { color: var(--accent-text); font-size: 13.5px; font-weight: 700; }
mark { padding: 0 2px; border-radius: 4px; background: var(--accent); color: var(--ink); }

/* --- 9 Raf ve satın alma --- */
/* Raf: kutular bir rafın üstünde durur; her kutunun altındaki tahta komşularınkiyle birleşip kesintisiz raf olur. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.grid.shelf { --gap-x: 28px; gap: 30px var(--gap-x); padding: 18px 30px 34px; border: 1px solid var(--line); border-radius: 28px; background: #ecece8; box-shadow: inset 0 26px 40px -30px rgba(10, 10, 10, .35); }
.game { position: relative; display: flex; flex-direction: column; min-width: 0; }
.game-media { position: relative; padding: 30px 0 14px; container-type: inline-size; perspective: 900px; }
/* Kutunun rafa düşen gölgesi */
.game-media::before { content: ""; position: absolute; z-index: 1; left: 20%; right: 12%; bottom: 8px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 10, 10, .4), transparent); transition: opacity .4s, scale .4s; }
.shelf .game-media::after { content: ""; position: absolute; left: calc(var(--gap-x) / -2); right: calc(var(--gap-x) / -2); bottom: 0; z-index: 0; height: 14px; border-top: 1px solid #fff; background: #e4e4df; box-shadow: 0 1px 0 #cacac4, 0 16px 20px -12px rgba(10, 10, 10, .45); }
.game .box { z-index: 2; }
.game:hover .box { --turn: 4deg; --tip: -2deg; translate: 0 -16px; }
.game:hover .game-media::before { opacity: .55; scale: .8; }
.game-body { position: relative; display: grid; justify-items: center; gap: 8px; padding: 14px 4px 0; text-align: center; }
.game-body h3 { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 16.5px; overflow-wrap: anywhere; }
.game-body .tags { justify-content: center; }
/* Kapağa yapışık "Yeni" etiketi */
.ribbon { position: absolute; top: 5%; left: 7%; z-index: 1; display: grid; place-items: center; width: calc(var(--w) * .3); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--ink); font-family: var(--display); font-size: calc(var(--w) * .07); font-weight: 900; letter-spacing: .02em; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); outline: 2px dashed rgba(255, 255, 255, .7); outline-offset: -5px; rotate: -14deg; }
/* Tükenen oyun: kapağa basılmış kırmızı bir mühür */
.sold-out { position: absolute; top: 40%; left: 6%; right: 6%; z-index: 1; padding: .18em 0; border: 4px solid var(--red); border-radius: 8px; background: rgba(255, 255, 255, .88); color: var(--red); font-family: var(--display); font-size: calc(var(--w) * .14); font-weight: 900; letter-spacing: .1em; text-align: center; text-transform: uppercase; rotate: -12deg; }
.game:has(.sold-out) .box-front img { filter: grayscale(1) contrast(.85); }
/* "Satın Al": kutunun köşesinde asılı fiyat etiketi */
.buy-btn { position: absolute; top: 12px; right: calc(50% - 36cqw - 14px); z-index: 4; height: 32px; padding: 0 12px 0 22px; gap: 6px; border: 0; border-radius: 6px; background: var(--accent); color: var(--ink); font-size: 12.5px; font-weight: 800; clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); filter: drop-shadow(0 4px 6px rgba(10, 10, 10, .3)); transform-origin: 90% 0; rotate: 7deg; transition: rotate .3s var(--ease), background .2s; }
.buy-btn::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--card); }
.buy-btn svg { font-size: 15px; }
.buy-btn:hover { background: var(--ink); color: #fff; }
.game:hover .buy-btn { animation: tag-swing .9s var(--ease); }
.info { position: absolute; left: calc(50% - 36cqw - 6px); bottom: 24px; z-index: 4; width: 28px; height: 28px; padding: 0; border: 2px solid var(--card); border-radius: 50%; background: var(--gold); color: #fff; font: italic 800 14px Georgia, serif; box-shadow: var(--shadow-s); }
.info:hover { background: var(--ink); color: #fff; }
.tooltip { position: absolute; left: 4%; bottom: 58px; z-index: 6; width: min(240px, 92%); padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #e8e8e5; font-size: 13px; text-align: left; box-shadow: var(--shadow); opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity .2s, translate .2s, visibility .2s; }
.tooltip strong { display: block; margin-bottom: 3px; color: var(--accent); }
.info:is(:hover, :focus) + .tooltip { opacity: 1; visibility: visible; translate: 0 0; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }

.buy-box { padding: 0; overflow: hidden auto; }
.buy-hero { position: relative; display: flex; align-items: flex-end; gap: 20px; min-height: 230px; padding: 26px 28px; background: var(--ink); overflow: hidden; }
.buy-hero #buy-image { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(22px) saturate(1.3) brightness(.6); }
.buy-cover { position: relative; z-index: 1; flex: none; width: 108px; aspect-ratio: 1 / 1.3; border-radius: 4px 8px 8px 4px; object-fit: cover; box-shadow: -8px 18px 30px -10px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(0, 0, 0, .2); rotate: -4deg; }
.buy-hero-text { position: relative; z-index: 1; display: grid; justify-items: start; gap: 10px; color: #fff; }
.buy-hero .eyebrow { height: 28px; border: 0; background: var(--accent); color: var(--ink); font-size: 11.5px; }
#buy-title { font-size: clamp(24px, 4vw, 34px); }
.buy-hero .tag { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); color: #fff; }
.buy-content { display: grid; gap: 18px; padding: 22px 28px 28px; }
.buy-content > p { margin: 0; }
.store-list { display: grid; gap: 10px; }
.store { --s: var(--blue); display: flex; align-items: center; gap: 14px; padding: 13px 14px; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--card); text-decoration: none; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.store-1 { --s: var(--accent); }
.store:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.store-badge { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--s); color: #fff; font-family: var(--display); font-size: 21px; font-weight: 900; }
.store-text { display: grid; flex: 1; min-width: 0; }
.store-text strong { font-size: 16px; }
.store-text small { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-go { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--bg); font-weight: 800; transition: background .2s, color .2s, translate .2s; }
.store:hover .store-go { background: var(--ink); color: #fff; translate: 3px 0; }
.buy-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.buy-steps li { display: grid; align-content: start; gap: 8px; padding: 14px; border-radius: 12px; background: var(--bg); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.buy-steps li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; }
.buy-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }

/* Küçük kapak resmi (oyun seçme penceresi, yönetim listeleri) */
.thumb { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.3; border-radius: 4px 8px 8px 4px; background: #1f1f1f; color: #cacac6; font-size: 11px; text-align: center; overflow: hidden; box-shadow: 0 6px 14px -8px rgba(10, 10, 10, .6); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb.small { flex: none; width: 54px; }
.pick-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pick-list { display: grid; gap: 8px; max-height: min(52vh, 480px); padding-right: 4px; overflow-y: auto; }
.pick { display: flex; align-items: center; gap: 14px; margin: 0; padding: 10px 12px 10px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .2s, box-shadow .2s; }
.pick:not(.locked):hover { border-color: var(--ink); box-shadow: var(--shadow-s); }
.pick .thumb { flex: none; width: 52px; }
.pick-name { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.pick.locked { opacity: .55; }

/* --- 10 Hesaplarım --- */
/* Kod girme alanı: kart okuyucu gibi siyah bir yuva */
.redeem-box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 470px); align-items: center; gap: 28px; padding: 34px; border-radius: 28px; background: var(--ink); color: #fff; overflow: hidden; }
.redeem-box::before { content: ""; position: absolute; right: -90px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: conic-gradient(from 30deg, #e9e4ff, #c6eeff, #fff4c4, #ffd6e8, #d3fbe6, #e9e4ff); -webkit-mask: radial-gradient(circle, transparent 0 18%, #000 18.5%); mask: radial-gradient(circle, transparent 0 18%, #000 18.5%); opacity: .14; animation: spin 30s linear infinite; }
.redeem-box h1 { margin-bottom: 8px; }
.redeem-box p { margin: 0; color: #c4c4c0; }
.redeem { position: relative; display: flex; gap: 10px; margin: 0; padding: 8px; border-radius: 16px; background: #000; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .8), 0 0 0 1px #333; }
.redeem input { height: 54px; border: 0; background: #1d1c1a; color: #fff; font: 700 18px var(--mono); letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.redeem input::placeholder { color: #6f6b64; letter-spacing: .14em; }
.redeem input:focus { box-shadow: 0 0 0 3px var(--accent); }
.redeem button { flex: none; height: 54px; border-color: var(--accent); background: var(--accent); color: var(--ink); }
.redeem button:hover { border-color: #fff; background: #fff; }
.grid.wide-cards { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.wide-cards .game { display: grid; grid-template-columns: 190px minmax(0, 1fr) 290px; align-items: center; gap: 30px; padding: 22px 28px; border: 1px solid var(--line); border-radius: 26px; background: var(--card); box-shadow: var(--shadow-s); }
.wide-cards .game-media { padding: 6px 0 16px; }
.wide-cards .box { --w: 84cqw; }
.wide-cards .game:hover .box { translate: 0 -6px; }
.wide-cards .game-body { justify-items: stretch; gap: 12px; padding: 0; text-align: left; }
.wide-cards .game-body h3 { justify-content: flex-start; font-family: var(--display); font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.wide-cards .game.pending { grid-template-columns: 190px minmax(0, 1fr); border: 2px dashed var(--line-2); background: rgba(255, 255, 255, .6); }
.wide-cards .game.pending .box-blank { font-size: calc(var(--w) * .5); }
.game.pending .game-body { justify-items: start; }
.game.pending code, .game.pending .btn { justify-self: start; }
.field { display: grid; gap: 6px; }
.field > span { color: var(--ink-3); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.field > div { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 6px 7px 6px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); }
.field code { flex: 1; min-width: 0; padding: 0; border: 0; background: none; font-size: 15.5px; font-weight: 600; white-space: nowrap; word-break: normal; overflow: hidden; text-overflow: ellipsis; }
.masked { filter: blur(6px); user-select: none; }
.paused-note { margin: 0; padding: 11px 14px; border: 1.5px solid #ecc98a; border-radius: 12px; background: var(--gold-soft); color: #7a4d06; font-size: 13.5px; font-weight: 600; }
/* Guard bölümü: kartın sağında, delikli bir çizgiyle ayrılmış */
.guard-box { position: relative; display: grid; justify-items: center; gap: 12px; padding-left: 28px; border-left: 2px dashed var(--line-2); }
.guard-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.guard-head .icon { display: grid; color: var(--accent-text); font-size: 19px; }
.guard-head strong { margin-right: auto; font-size: 14.5px; }
.rights { color: var(--ink-2); font-size: 12.5px; }
.rights b { color: var(--ink); font-size: 14px; }
.rights.none b { color: var(--red); }
.refill-note { width: 100%; padding: 8px 10px; border-radius: 10px; background: var(--bg); color: var(--ink-2); font-size: 12.5px; text-align: center; }
.guard-box .disc { width: min(220px, 100%); }
.timer { color: var(--ink-2); font-size: 13.5px; font-weight: 600; text-align: center; }
/* "Sorun yaşıyorum" düğmesi her zaman belirgin kırmızıdır. */
button.issue-btn.danger { border-color: var(--red); background: var(--red); color: #fff; }
button.issue-btn.danger:hover { border-color: #c4211c; background: #c4211c; color: #fff; box-shadow: 0 12px 24px -12px rgba(229, 50, 45, .8); }
.game.expired { opacity: .55; filter: grayscale(.9); }
.unused-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.unused-row button { margin-left: auto; }

/* --- 11 Pencereler ve bildirimler --- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; margin: 0 !important; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .25s both; }
.modal-box { position: relative; width: min(640px, 100%); max-height: calc(100vh - 40px); margin: 0; padding: 28px; border-radius: 26px; background: var(--card); box-shadow: 0 40px 100px -30px rgba(10, 10, 10, .6); overflow-y: auto; animation: pop .45s var(--ease) both; }
.modal-box.narrow { width: min(480px, 100%); }
.modal-box.buy-box { width: min(560px, 100%); padding: 0; }
.modal-box.modal-box > * + * { margin-top: 16px; }
.modal-box.buy-box.buy-box > * { margin-top: 0; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-head p { margin: 6px 0 0; }
.modal-close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 22px; line-height: 1; text-decoration: none; }
.modal-close:hover { background: var(--ink); color: #fff; }
.buy-box > .modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; margin: 0; background: rgba(255, 255, 255, .9); }
.reply-list { display: grid; gap: 12px; max-height: 50vh; overflow-y: auto; }
.reply-item { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.reply-item p { margin: 0; overflow-wrap: anywhere; }
.reply-text { margin: 0; padding: 12px 14px; border-left: 4px solid var(--green); border-radius: 4px 12px 12px 4px; background: var(--green-soft); overflow-wrap: anywhere; }
.reply-text span { color: #0b6e3d; font-weight: 800; }
.checks { display: grid; gap: 10px; margin: 0; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; }
.checks legend { padding: 0 8px; color: var(--ink-2); font-size: 13px; font-weight: 700; }

/* Hata penceresi */
.notice-box { position: relative; display: grid; justify-items: center; gap: 12px; width: min(400px, 100%); padding: 0 30px 28px; border-radius: 26px; background: var(--card); box-shadow: 0 40px 100px -30px rgba(10, 10, 10, .6); text-align: center; overflow: hidden; animation: pop .45s var(--ease) both; }
.notice-box::before { content: ""; align-self: stretch; height: 8px; margin: 0 -30px 14px; background: var(--red); }
.notice-icon { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 4px; border-radius: 50%; background: var(--red); color: #fff; font-size: 30px; box-shadow: 0 0 0 8px var(--red-soft); animation: shake .5s .15s both; }
.notice-icon svg { fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; }
.notice-box p { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.notice-box .btn { min-width: 150px; margin-top: 10px; }
/* Onay penceresi ("Emin misiniz?"): ikon, soru, iki düğme. Silmede kırmızı. */
.confirm .modal-backdrop { animation-duration: .18s; }
.confirm-box { position: relative; display: grid; justify-items: center; gap: 8px; width: min(420px, 100%); padding: 32px 28px 24px; border-radius: 26px; background: var(--card); box-shadow: 0 40px 100px -30px rgba(10, 10, 10, .65); text-align: center; animation: pop .26s var(--ease) both; }
.confirm-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); box-shadow: 0 0 0 8px #fffbe6; }
.confirm-box.danger .confirm-icon { background: var(--red-soft); color: var(--red); box-shadow: 0 0 0 8px #fff3f2; }
.confirm-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.confirm-box h2 { font-size: 23px; }
.confirm-box p { max-width: 34ch; margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 16px; }
.confirm-actions button { width: 100%; }
.confirm-actions button.danger { border-color: var(--red); background: var(--red); color: #fff; }
.confirm-actions button.danger:hover { border-color: #c4211c; background: #c4211c; color: #fff; }

/* Kod sırası bekleme ekranı: dönen disk ve geri sayım */
.splash-box { position: relative; display: grid; justify-items: center; gap: 12px; width: min(400px, 100%); padding: 34px 30px 28px; border-radius: 26px; background: var(--card); box-shadow: 0 40px 100px -30px rgba(10, 10, 10, .6); text-align: center; animation: pop .45s var(--ease) both; }
.splash-disc { width: 190px; margin-bottom: 6px; }
.splash-disc .disc-code { place-content: center; }
.splash-disc .disc-code b { display: grid; place-items: center; width: 36cqw; height: 36cqw; border-radius: 50%; background: var(--card); font: 800 15cqw/1 var(--mono); box-shadow: 0 8px 22px -10px rgba(10, 10, 10, .6); }
.splash-disc .disc-code span { color: var(--ink-2); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.splash-step { min-height: 1.6em; margin: 0; color: var(--ink-2); font-weight: 600; }
.splash-dots { display: flex; gap: 6px; }
.splash-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: bounce 1.2s infinite; }
.splash-dots i:nth-child(2) { background: var(--accent); animation-delay: .15s; }
.splash-dots i:nth-child(3) { animation-delay: .3s; }

.toasts { position: fixed; top: 86px; right: 18px; z-index: 120; display: grid; gap: 10px; width: min(360px, calc(100vw - 36px)); pointer-events: none; }
.toast { position: relative; padding: 14px 16px 14px 22px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow); overflow: hidden; pointer-events: auto; animation: toast-in .45s var(--ease) both; }
.toast::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--accent); }
.toast.ok::before { background: #34d27b; }
.toast strong { display: block; font-size: 14px; }
.toast p { margin: 2px 0 0; color: #d4d4d0; font-size: 13.5px; overflow-wrap: anywhere; }
.toast.leaving { animation: toast-out .4s ease both; }
.cookie-note { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 90; display: flex; align-items: center; gap: 14px; width: min(620px, calc(100% - 28px)); margin-inline: auto; padding: 12px 12px 12px 20px; border-radius: 16px; background: var(--ink); color: #e8e8e5; font-size: 13.5px; box-shadow: var(--shadow); }
.cookie-note span { flex: 1; }
.cookie-note a { color: #fff; text-decoration-color: var(--accent); }
.cookie-note button { border-color: var(--accent); background: var(--accent); color: var(--ink); }

/* --- 12 Yönetim --- */
/* Yenilemesiz gezinmede üstte ince yükleniyor çubuğu (admin-nav.js; kısa işlemlerde hiç görünmez) */
.nav-progress { position: fixed; top: 0; left: 0; z-index: 200; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; transition: opacity .2s; }
.nav-busy .nav-progress { opacity: 1; animation: nav-load 8s cubic-bezier(.1, .7, .3, 1) forwards; }
.nav-busy main#icerik { cursor: progress; }
@keyframes nav-load { from { transform: scaleX(.05); } to { transform: scaleX(.92); } }
@media (prefers-reduced-motion: reduce) { .nav-busy .nav-progress { animation: none; transform: scaleX(.6); } }
/* Düzen: solda yapışkan kenar menüsü, sağda bölüm başlığı ve içerik. Menü sayfanın ilk öğesidir; diğer her şey
   ikinci sütuna yerleşir. Tablolar sığsın diye yönetim sayfaları daha geniştir. */
.shell:has(.admin-side) { width: min(1320px, calc(100% - 44px)); }
body:has(.admin-side) .dock { padding-inline: max(22px, calc(50% - 660px)); }
main:has(> .admin-side) { display: grid; grid-template-columns: 232px minmax(0, 1fr); column-gap: 34px; align-items: start; }
main:has(> .admin-side) > * { grid-column: 2; min-width: 0; }
main:has(> .admin-side) > .admin-side { grid-column: 1; grid-row: 1 / span 80; position: sticky; top: 96px; margin-top: 0; }
main > .admin-side + .admin-head { margin-top: 0; }
.admin-side { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-s); }
.admin-who { display: flex; align-items: center; gap: 11px; min-width: 0; margin-bottom: 6px; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); }
.admin-who .avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--ink); font-size: 16px; }
.admin-who > span:last-child { display: grid; min-width: 0; line-height: 1.25; }
.admin-who strong { overflow: hidden; font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.admin-who small { color: var(--ink-3); font-size: 12px; font-weight: 700; }
.admin-menu { display: grid; gap: 2px; }
.admin-menu a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 11px; color: var(--ink-2); font-size: 14.5px; font-weight: 650; text-decoration: none; transition: background .15s, color .15s; }
.admin-menu a svg { color: var(--ink-3); font-size: 18px; transition: color .15s; }
.admin-menu a:hover { background: var(--bg); color: var(--ink); }
.admin-menu a:hover svg { color: var(--ink); }
.admin-menu a.active { background: var(--ink); color: #fff; box-shadow: 0 10px 20px -12px rgba(10, 10, 10, .8); }
.admin-menu a.active svg { color: var(--accent); }
.admin-menu .badge { margin-left: auto; }
.admin-states { display: grid; gap: 6px; margin-top: 8px; text-decoration: none; }
.admin-states .state { padding: 8px 10px; border-radius: 10px; background: var(--bg); color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.admin-states .state.warn { background: var(--red-soft); color: #b3201b; }
.admin-exit { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 12px 4px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.admin-exit:hover { color: var(--ink); }
.admin-head h1 { font-size: clamp(28px, 3vw, 38px); }
.admin-head p { margin: 6px 0 0; color: var(--ink-2); }
.admin-head .crumb { display: inline-block; margin-bottom: 8px; color: var(--ink-3); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.admin-head .crumb:hover { color: var(--accent-text); }
/* Hesabın doluluğu: sayı ve altında ince çubuk (yeşil → sarı → kırmızı) */
.load { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.load meter { width: 84px; height: 6px; border: 0; border-radius: 3px; background: var(--bg-2); }
.load meter::-webkit-meter-bar { height: 6px; border: 0; border-radius: 3px; background: var(--bg-2); }
.load meter::-webkit-meter-optimum-value { border-radius: 3px; background: var(--green); }
.load meter::-webkit-meter-suboptimum-value { border-radius: 3px; background: #e8a317; }
.load meter::-webkit-meter-even-less-good-value { border-radius: 3px; background: var(--red); }
.load meter:-moz-meter-optimum::-moz-meter-bar { background: var(--green); }
.load meter:-moz-meter-sub-optimum::-moz-meter-bar { background: #e8a317; }
.load meter:-moz-meter-sub-sub-optimum::-moz-meter-bar { background: var(--red); }
.tabs { display: flex; gap: 4px; max-width: 100%; border-bottom: 2px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; display: inline-flex; align-items: center; gap: 7px; flex: none; height: 46px; padding: 0 14px; color: var(--ink-2); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: color .2s; }
.tabs a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -2px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); }
.tabs a.active::after { transform: scaleX(1); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px 20px; }
.form-grid .span { grid-column: 1 / -1; }
.form-grid h3 { margin-bottom: 4px; }
label.setting { align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); transition: border-color .2s, background .2s; }
label.setting:has(input:checked) { border-color: var(--accent-line); background: #fffbea; }
.setting span { display: grid; gap: 3px; }
.setting strong { color: var(--ink); font-size: 14.5px; }
/* Ayar tikleri açma-kapama anahtarı gibi görünür. */
.setting input[type="checkbox"] { position: relative; width: 46px; height: 26px; min-height: 26px; border: 0; border-radius: 999px; background: var(--line-2); -webkit-appearance: none; appearance: none; transition: background .25s; }
.setting input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); transition: translate .25s var(--ease); }
.setting input[type="checkbox"]:checked { background: var(--accent); box-shadow: none; }
.setting input[type="checkbox"]:checked::after { translate: 20px 0; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.filter input[type="search"] { flex: 1 1 220px; width: auto; }
.filter select { flex: 0 1 190px; width: auto; }
.savebar { position: sticky; bottom: 18px; z-index: 20; display: flex; align-items: center; justify-content: flex-end; margin-top: 24px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.row-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 8px; }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.info-list dt { color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.info-list dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.perm-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.perm { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.perm:has(input:checked) { border-color: var(--accent-line); background: #fffbea; }
.perm span { display: grid; gap: 2px; }
.perm small { color: var(--ink-2); }
.ban-form { display: flex; flex-wrap: wrap; gap: 10px; }
.ban-form input { flex: 1 1 240px; width: auto; }
.big-code { display: inline-block; padding: 10px 18px; font-size: 24px; letter-spacing: .06em; user-select: all; }
.notes { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.notes li::marker { color: var(--accent-text); }
.notes-card { border-color: var(--accent-line); background: #fffbea; }
/* Otomasyonlar: her iş bir kart (açıksa turuncu simge), altında ayarlar ve yapılan işlerin kaydı */
.auto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.auto-card { display: grid; align-content: start; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-s); }
.auto-card h3 { margin-top: 6px; font-size: 16.5px; }
.auto-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.auto-card small { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.auto-top { display: flex; align-items: center; justify-content: space-between; }
.auto-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--bg); color: var(--ink-3); font-size: 20px; }
.auto-card.on .auto-icon { background: var(--accent-soft); color: var(--accent-text); }
.card-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.auto-detail { max-width: 70ch; white-space: pre-line; overflow-wrap: anywhere; }
.auto-log td { vertical-align: top; }
.auto-log td:first-child { white-space: nowrap; }
.tag.kind-share, .tag.kind-pause { border-color: #f2b8b4; background: var(--red-soft); color: #b3201b; }
.tag.kind-stock, .tag.kind-capacity { border-color: #ecc98a; background: var(--gold-soft); color: var(--gold); }
.tag.kind-report { border-color: #b9c8ff; background: #e8eeff; color: #1d3fb8; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.tag-field { display: grid; gap: 8px; }
.tag-label { color: var(--ink-2); font-size: 13.5px; font-weight: 650; }
.tag-row { display: flex; gap: 10px; }
.tag-row input { flex: 1; }
.tag-row button.small { flex: none; height: 48px; padding: 0 20px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; }
.tag-chip { height: 28px; padding-right: 4px; font-size: 12px; }
.tag-chip button { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px; background: var(--bg); color: var(--ink); font-size: 13px; line-height: 1; }
.tag-chip button:hover { background: var(--red); color: #fff; }
.ticket-list { display: grid; gap: 14px; }
.ticket-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tag.cat { border-color: #b9c8ff; background: #e8eeff; color: #1d3fb8; }
/* Seviye rozeti: renk ve üstündeki yazı rengi /seviye.css'ten (.lvl-<id>) ya da önizlemede betikten gelir */
.lvl { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--lvl, #8a867e); color: var(--lvl-ink, #fff); font: 800 12px/1 var(--font); letter-spacing: .02em; white-space: nowrap; vertical-align: middle; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); }
.lvl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; }
.lvl.lvl-none { background: rgba(255, 255, 255, .14); color: #c4c4c0; }
.lvl.lvl-none::before { display: none; }
.avatar.lvl-ring { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--lvl); }
/* Hesaplarım ve Hesabım: seviye şeridi (koyu kutuda ve beyaz kartta) */
.level-strip { display: grid; gap: 8px; max-width: 460px; margin-top: 18px; }
.level-top { display: flex; align-items: center; gap: 10px; }
.level-label { color: #a9a499; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.level-strip p { margin: 0; color: #c4c4c0; font-size: 13.5px; }
.level-gift { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 700; }
.level-meter { width: 100%; height: 8px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.level-meter::-webkit-meter-bar { height: 8px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.level-meter::-webkit-meter-optimum-value, .level-meter::-webkit-meter-suboptimum-value, .level-meter::-webkit-meter-even-less-good-value { border-radius: 4px; background: var(--lvl, var(--accent)); }
.level-meter::-moz-meter-bar { border-radius: 4px; background: var(--lvl, var(--accent)); }
.level-card .level-strip { max-width: none; margin-top: 0; }
.level-card .level-label, .level-card .level-strip p { color: var(--ink-2); }
.level-card .level-gift { color: var(--accent-text); }
.level-card .level-meter, .level-card .level-meter::-webkit-meter-bar { background: var(--bg-2); }
.level-card .lvl.lvl-none { background: var(--bg-2); color: var(--ink-3); }
.tag.gift { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.tag.gift svg { font-size: 12px; }
/* Seviyeler sayfası: her seviye bir basamak; soldaki numaralı daire ve aradaki çizgi seviyenin rengindedir */
.levels-intro { max-width: 70ch; }
.tiers { position: relative; display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.tier { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; }
.tier:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: -14px; width: 2px; background: var(--line-2); }
.tier.reached:not(:last-child)::before { background: var(--lvl, var(--accent)); }
.tier-step { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--lvl, var(--line-2)); border-radius: 50%; background: var(--card); color: var(--ink); font: 900 18px/1 var(--display); }
.tier.reached .tier-step { background: var(--lvl, var(--accent)); color: var(--lvl-ink, #fff); }
.tier.here .tier-step { box-shadow: 0 0 0 6px var(--card), 0 0 0 8px var(--lvl, var(--accent)); }
.tier-body { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-left: 5px solid var(--lvl, var(--line-2)); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-s); }
.tier.here .tier-body { box-shadow: var(--shadow); }
.tier:not(.reached) .tier-body { background: #fafaf8; }
.tier-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tier-head .lvl { height: 30px; padding: 0 14px 0 11px; font-size: 14px; }
.tier p { margin: 0; }
.tier-need { color: var(--ink-2); font-size: 15px; }
.tier-need strong { color: var(--ink); font: 900 22px/1 var(--display); }
.tier-left { color: var(--ink-2); font-size: 13.5px; font-weight: 650; }
.tier-gift { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ink-3); font-size: 14px; }
.tier-gift svg { color: var(--accent-text); font-size: 17px; }
.tier-gift strong { color: var(--ink); }
.tier-gift small { color: var(--ink-3); font-size: 12.5px; }
.tier .level-meter, .tier .level-meter::-webkit-meter-bar { background: var(--bg-2); }
/* Sistem gereksinimleri: karttaki düğme ve Minimum / Önerilen sekmeli pencere */
.req-btn { gap: 6px; height: 32px; margin-top: 10px; padding: 0 12px; font-size: 12.5px; }
.req-btn svg { font-size: 15px; }
.game-body .req-btn { align-self: center; }
.req-box { width: min(560px, 100%); }
.req-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.req-tab { height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-size: 13.5px; }
.req-tab:hover { background: var(--card); color: var(--ink); box-shadow: none; transform: none; }
.req-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.req-list { display: grid; gap: 0; max-height: 52vh; margin: 0; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); }
.req-list > div { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.req-list > div:first-child { border-top: 0; }
.req-list > div:nth-child(even) { background: #fafaf8; }
.req-list dt { color: var(--ink-3); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.req-list dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.req-list > p { margin: 0; padding: 14px; }
.req-fetch { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.req-fetch label { flex: 1 1 240px; }
.req-bulk { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
#gereksinim textarea { font-family: var(--mono); font-size: 13px; }

/* Yönetim → Seviyeler */
.level-switch { display: flex; align-items: center; gap: 16px; }
.level-switch label { flex: 1; }
.level-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.level-row-head .lvl { height: 28px; font-size: 13px; }
.level-row-head form { margin-left: auto; }
.color-field { display: flex; align-items: center; gap: 12px; }
.color-field input[type="color"] { flex: none; width: 56px; height: 48px; padding: 4px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--card); cursor: pointer; }
.level-premium { align-self: end; padding-bottom: 12px; }
/* Talep formunda seçilen kategorinin notu */
.category-hint { display: block; margin-top: 4px; padding: 9px 12px; border-left: 3px solid var(--accent-text); border-radius: 4px 10px 10px 4px; background: var(--accent-soft); color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
/* Yönetim: kategori süzgeci ve kategori yönetimi */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 13.5px; font-weight: 650; text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.cat-chip:hover { border-color: var(--ink); color: var(--ink); }
.cat-chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.cat-body { display: grid; gap: 18px; padding: 0 26px 26px; }
.cat-list { display: grid; gap: 10px; }
.cat-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.cat-order { display: grid; gap: 4px; padding-top: 24px; }
.cat-order button:disabled { opacity: .35; cursor: default; }
.cat-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px 14px; margin: 0; }
.cat-row .cat-edit.cat-edit > *, .cat-add .cat-edit > * { margin-top: 0; }
.cat-edit .cat-game { grid-column: 1 / -1; }
.cat-game small { font-weight: 500; }
.cat-save { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.cat-delete { padding-top: 24px; }
.cat-add { display: grid; gap: 12px; padding: 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r); }
.cat-add h3 { font-size: 15px; }
.cat-body > .empty { display: grid; justify-items: center; gap: 12px; }
.ticket > p { margin-bottom: 0; overflow-wrap: anywhere; }
.refund { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.refund > span:first-child { color: var(--accent-text); font-weight: 800; }
.check-result { display: grid; gap: 5px; margin-bottom: 0; padding: 0; font-size: 13.5px; font-weight: 600; list-style: none; }
.check-result .yes { color: var(--green); }
.check-result .no { color: var(--red); }
.reply-form { display: grid; gap: 10px; }
.reply-form textarea { min-height: 76px; }
.reply-form button { justify-self: start; margin-top: 0; }
.ticket form.inline { margin-right: 8px; }
.media-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.media-row .thumb.small { width: 110px; }
textarea#new-codes { font-family: var(--mono); letter-spacing: .04em; }

/* Toplu hesap ekleme (açılır kart) ve kapak önizlemesi */
details.card.bulk { padding: 0; box-shadow: var(--shadow-s); }
details.card.bulk[open] { border-color: var(--line); }
details.card.bulk > summary { flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 22px 28px; }
details.card.bulk > summary h2 { margin: 0; }
details.card.bulk > summary .muted { flex: 1 1 260px; font-size: 14px; font-weight: 500; }
details.card.bulk > form { padding: 0 28px 28px; }
.cover-preview { display: block; width: 72px; height: auto; margin-top: 8px; border-radius: 3px 7px 7px 3px; box-shadow: 0 6px 14px -8px rgba(10, 10, 10, .6); }

/* İki adımlı doğrulama: kurulum anahtarı ve kod alanı */
.twofa-setup { display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: center; gap: 22px; }
.twofa-qr { padding: 6px; border: 1.5px solid var(--line-2); border-radius: 16px; background: #fff; }
svg.qr { display: block; width: 100%; height: auto; }
.qr-bg { fill: #fff; }
.qr-fg { fill: #141414; }
.twofa-key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--bg); }
.twofa-key span { width: 100%; color: var(--ink-3); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.twofa-key code { flex: 1 1 auto; padding: 0; border: 0; background: none; font-size: 17px; font-weight: 700; letter-spacing: .06em; word-break: normal; overflow-wrap: break-word; }
.twofa-lead { max-width: 68ch; margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.twofa-later { display: flex; justify-content: center; }
.twofa-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.twofa-form.twofa-form > * { margin-top: 0; }
.twofa-form label { flex: 1 1 200px; }
.otp-input { font: 700 26px var(--mono); letter-spacing: .35em; text-align: center; }

/* Özet panosu: dönem seçici, sayı kutuları ve grafikler (çizimi public/charts.js yapar).
   Grafik renkleri: sınıflar için sabit sıralı üç renk (renk körlüğüne göre denetlenmiş), "diğer" için gri,
   yoğunluk için tek tonlu mavi basamaklar. Yazılar hiçbir zaman grafik rengini almaz. */
:root { --s1: #2a78d6; --s2: #c99a00; --s3: #1baf7a; --other: #b5b5b0; --grid: #eaeae6; --axis: #cbcbc4; --seq0: #f0efec; --seq1: #cde2fb; --seq2: #9ec5f4; --seq3: #6da7ec; --seq4: #3987e5; --seq5: #256abf; --seq6: #184f95; }
.dash { display: grid; gap: 18px; }
.dash-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.range { display: inline-flex; gap: 2px; padding: 4px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--card); }
.range a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 9px; color: var(--ink-2); font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.range a:hover { background: var(--bg); color: var(--ink); }
.range a.active { background: var(--ink); color: #fff; }
.dash-kpis { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 18px 12px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-s); }
.kpi-label { color: var(--ink-2); font-size: 13px; font-weight: 700; }
.kpi-value { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.kpi-delta { color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.kpi-delta b { color: var(--ink-2); font-weight: 800; }
.kpi-delta.good b { color: #0b6e3d; }
.kpi-delta.bad b { color: #b3201b; }
.spark { display: block; height: 38px; margin-top: auto; }
.kpi-hero { position: relative; padding: 22px; border-color: var(--ink); background: var(--ink); color: #fff; overflow: hidden; }
.kpi-hero .kpi-label { color: #bdb8ae; }
.kpi-hero .kpi-value { font-size: clamp(48px, 5vw, 66px); }
.kpi-sub { color: #bdb8ae; font-size: 13px; }
.kpi-mini { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: auto 0 0; padding-top: 14px; border-top: 1px solid #34332f; }
.kpi-mini dt { color: #8a867e; font-size: 12px; font-weight: 600; line-height: 1.3; }
.kpi-mini dd { margin: 2px 0 0; font-size: 19px; font-weight: 800; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.chart { min-width: 0; margin: 0; }
.chart.wide { grid-column: 1 / -1; }
.chart figcaption h2 { font-size: 20px; }
.chart figcaption p { margin: 4px 0 0; font-size: 13.5px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.key { display: inline-block; flex: none; }
.key.line { width: 14px; height: 3px; border-radius: 2px; background: var(--ink-3); }
.key.box { width: 12px; height: 12px; border-radius: 3px; }
.key.s1, .seg-active { background: var(--s1); }
.key.s2, .seg-pending { background: var(--s2); }
.seg-unused { background: var(--s3); }
.seg-expired, .key.muted { background: var(--other); }
.key.seq { background: var(--seq5); }
.key.cap { background: var(--seq1); }
.chart-plot { position: relative; min-height: 120px; border-radius: 10px; }
.chart-plot:focus-visible { outline-offset: 4px; }
svg.viz { display: block; width: auto; height: auto; overflow: visible; }
.viz text { fill: var(--ink-3); font: 600 11px/1 var(--font); }
.viz .end-label { fill: var(--ink); font-size: 12px; font-weight: 800; }
.viz .grid line { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.viz .grid line.base { stroke: var(--axis); }
.viz .line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.viz .line.s1 { stroke: var(--s1); }
.viz .line.s2 { stroke: var(--s2); }
.viz .dot { stroke: var(--card); stroke-width: 2; }
.viz .dot.s1 { fill: var(--s1); }
.viz .dot.s2 { fill: var(--s2); }
.viz .cross { stroke: var(--ink-3); stroke-width: 1; shape-rendering: crispEdges; }
.viz .hit { fill: transparent; cursor: crosshair; }
.viz .cell { transition: stroke .15s; }
.viz .cell.b0 { fill: var(--seq0); }
.viz .cell.b1 { fill: var(--seq1); }
.viz .cell.b2 { fill: var(--seq2); }
.viz .cell.b3 { fill: var(--seq3); }
.viz .cell.b4 { fill: var(--seq4); }
.viz .cell.b5 { fill: var(--seq5); }
.viz .cell.b6 { fill: var(--seq6); }
.viz .cell.on { stroke: var(--ink); stroke-width: 1.5; }
.viz .spark-line { fill: none; stroke: var(--other); stroke-width: 1.5; stroke-linejoin: round; }
.viz .spark-end { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.scale-legend { display: flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.scale-legend i { width: 18px; height: 10px; border-radius: 3px; }
.scale-legend span:first-child { margin-right: 4px; }
.scale-legend span:last-child { margin-left: 4px; }
.scale-legend .b0 { background: var(--seq0); }
.scale-legend .b1 { background: var(--seq1); }
.scale-legend .b2 { background: var(--seq2); }
.scale-legend .b3 { background: var(--seq3); }
.scale-legend .b4 { background: var(--seq4); }
.scale-legend .b5 { background: var(--seq5); }
.scale-legend .b6 { background: var(--seq6); }
.bars { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bar-row { display: grid; grid-template-columns: minmax(84px, 34%) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 3px 6px; border-radius: 8px; font-size: 13.5px; cursor: default; }
.bar-row:hover { background: var(--bg); }
.bar-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row.other .bar-name { color: var(--ink-2); font-weight: 600; }
.bar-track { position: relative; height: 18px; }
.bar-cap, .bar-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 0 4px 4px 0; transition: width .7s var(--ease); }
.bar-cap { background: var(--seq1); }
.bar-fill { background: var(--s1); }
.bar-row.other .bar-fill { background: var(--other); }
.bar-value { min-width: 2.5ch; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.bar-value small { color: var(--ink-3); font-weight: 600; }
.stock-bar { display: flex; gap: 2px; height: 22px; }
.stock-bar:not(.ready) { visibility: hidden; }
.stock-bar .seg { flex: 0 1 0; min-width: 4px; outline-offset: 2px; transition: filter .15s; }
.stock-bar .seg:first-child { border-radius: 4px 0 0 4px; }
.stock-bar .seg:last-child { border-radius: 0 4px 4px 0; }
.stock-bar .seg:only-child { border-radius: 4px; }
.stock-bar .seg:hover { filter: brightness(1.12); }
.stock-legend { display: grid; margin: 0; padding: 0; list-style: none; }
.stock-legend li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 3.2em; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.stock-legend li:first-child { border-top: 0; }
.chart.stock .stock-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 22px; }
.chart.stock .stock-legend li { border-top: 0; }
.stock-legend span { display: grid; line-height: 1.3; }
.stock-legend small { color: var(--ink-3); }
.stock-legend strong { font-size: 18px; font-weight: 800; }
.stock-legend em { color: var(--ink-3); font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
details.chart-table { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
details.chart-table summary { padding: 12px 0 0; color: var(--ink-2); font-size: 13.5px; }
details.chart-table summary::after { width: 24px; height: 24px; font-size: 17px; }
details.chart-table table { margin-top: 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.table-scroll :is(th, td) { padding: 6px 7px; text-align: center; }
.table-scroll tbody th { text-align: left; white-space: nowrap; }
.viz-tip { position: fixed; z-index: 130; min-width: 150px; max-width: 280px; padding: 9px 12px 10px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12.5px; box-shadow: var(--shadow); pointer-events: none; }
.viz-tip-title { margin-bottom: 5px; color: #bdb8ae; font-weight: 700; }
.viz-tip-row { display: flex; align-items: center; gap: 8px; }
.viz-tip-row + .viz-tip-row { margin-top: 3px; }
.viz-tip-row strong { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.viz-tip-row span { color: #d4d4d0; }
.viz-tip .key:is(.seg-active, .seg-pending, .seg-unused, .seg-expired) { width: 14px; height: 3px; border-radius: 2px; }

/* --- 13 Alt bilgi: koyu blok; solda site adı ve kısa yazı, sağda bağlantı sütunları, en altta yasal not --- */
.foot { position: relative; margin: 96px calc(50% - 50vw) 0; padding: 0 calc(50vw - 50%); background: var(--ink); color: #fff; }
.foot::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding: 52px 0 40px; }
/* Ziyaretçide "Hesap" sütunu yoktur; iki sütun genişler. */
@media (min-width: 861px) { .foot-inner:not(:has(> :nth-child(4))) { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); } }
.foot-brand { display: grid; align-content: start; justify-items: start; gap: 14px; }
.foot .brand { color: #fff; }
.foot-brand p { max-width: 30ch; margin: 0; color: #a9a499; font-size: 14.5px; }
:is(.btn, button).foot-cta { border-color: rgba(255, 255, 255, .22); background: transparent; color: #fff; }
:is(.btn, button).foot-cta:hover { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.foot-col { display: grid; align-content: start; gap: 10px; }
.foot-col h2 { margin: 4px 0 6px; color: #77736b; font: 800 11.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.foot-col a { justify-self: start; color: #dadad6; font-size: 14.5px; font-weight: 600; text-decoration: none; transition: color .2s, translate .2s var(--ease); }
.foot-col a:hover { color: #fff; translate: 3px 0; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 18px 0 24px; border-top: 1px solid rgba(255, 255, 255, .09); color: #77736b; font-size: 12.5px; }
.foot-legal { max-width: 70ch; }

/* --- 14 Hareket --- */
@keyframes spin { to { rotate: 360deg; } }
@keyframes swing { from { transform: rotateY(18deg) rotateX(-5deg); } to { transform: rotateY(40deg) rotateX(-5deg); } }
@keyframes ring { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 358.2; } }
@keyframes flip { from { opacity: 0; transform: perspective(300px) rotateX(-80deg); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes tag-swing { 0% { rotate: 7deg; } 30% { rotate: -6deg; } 60% { rotate: 4deg; } 100% { rotate: 7deg; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 212, 0, .7); } 100% { box-shadow: 0 0 0 9px rgba(255, 212, 0, 0); } }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(15, 157, 88, .6); } 100% { box-shadow: 0 0 0 8px rgba(15, 157, 88, 0); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.95); } }
@keyframes shake { 20% { translate: -7px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 3px 0; } }
@keyframes bounce { 0%, 60%, 100% { translate: 0 0; opacity: .5; } 30% { translate: 0 -7px; opacity: 1; } }
@keyframes toast-in { from { opacity: 0; translate: 40px 0; } }
@keyframes toast-out { to { opacity: 0; translate: 40px 0; } }
@keyframes rise { from { opacity: 0; translate: 0 34px; } }
@keyframes enter { from { opacity: 0; translate: 0 16px; } }

/* Sayfa açılırken içerik sırayla yerine oturur; raftaki kutular ekrana girdikçe belirir. */
@media (prefers-reduced-motion: no-preference) {
  main > * { animation: enter .6s var(--ease) both; }
  main > :nth-child(2) { animation-delay: .06s; }
  main > :nth-child(3) { animation-delay: .12s; }
  main > :nth-child(4) { animation-delay: .18s; }
  main > :nth-child(n + 5) { animation-delay: .24s; }
  main > .modal { animation: none; }
  @supports (animation-timeline: view()) {
    :is(#games-grid .game, .steps li, .faq details, .stats.trio .stat, .wide-cards .game) { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
/* Sayfalar arası geçiş: içerik yumuşakça değişir, menüdeki turuncu çizgi yeni sekmeye kayar. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .16s ease both vt-out; }
::view-transition-new(root) { animation: .3s var(--ease) both vt-in; }
::view-transition-group(nav-active) { animation-duration: .35s; animation-timing-function: var(--ease); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* --- 15 Küçük ekranlar --- */
@media (max-width: 1080px) {
  .chart.stock .stock-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-hero { grid-column: 1 / -1; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .wide-cards .game { grid-template-columns: 160px minmax(0, 1fr); }
  .wide-cards .guard-box { grid-column: 1 / -1; grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "head head" "disc timer" "disc btn" "disc issue"; align-items: center; justify-items: stretch; column-gap: 26px; padding: 22px 0 0; border-top: 2px dashed var(--line-2); border-left: 0; }
  .wide-cards .guard-head { grid-area: head; }
  .wide-cards .guard-box .disc { grid-area: disc; width: 200px; }
  .wide-cards .timer { grid-area: timer; text-align: left; }
  .wide-cards .guard-btn { grid-area: btn; }
  .wide-cards .issue-btn { grid-area: issue; }
}
@media (max-width: 980px) {
  /* Yönetim menüsü içeriğin üstünde, yana kayan tek satır olur. */
  main:has(> .admin-side) { display: block; }
  .admin-side { position: static; display: block; padding: 6px; border-radius: 16px; overflow-x: auto; scrollbar-width: none; }
  .admin-side::-webkit-scrollbar { display: none; }
  .admin-who, .admin-states, .admin-exit { display: none; }
  .admin-menu { display: flex; gap: 4px; width: max-content; }
  .admin-menu a { height: 40px; white-space: nowrap; }
  main > .admin-side + .admin-head { margin-top: 22px; }
  /* Eğik duran kutuların taşan köşeleri sayfayı yana kaydırmasın diye tanıtım bölümü ekran genişliğinde kırpılır. */
  .hero { gap: 16px; margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); overflow-x: clip; }
  .hero-visual { min-height: 420px; }
  .redeem-box { grid-template-columns: minmax(0, 1fr); }
  .auth.split { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .auth.split .auth-art { display: none; }
  .auth.split .card > .logo.big { display: grid; }
}
@media (max-width: 860px) {
  .foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 40px 0 30px; }
  .foot-brand { grid-column: 1 / -1; }
  details.card.bulk > summary { padding: 20px 18px; }
  details.card.bulk > form { padding: 0 18px 22px; }
  body { padding-bottom: 92px; }
  .shell { width: calc(100% - 28px); padding-top: 82px; }
  .dock { height: 62px; padding: 0 14px; gap: 12px; }
  /* Menü ekranın altında, başparmağın ulaştığı yerde durur. */
  .menu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; justify-content: space-around; height: 74px; margin: 0; padding: 0 6px env(safe-area-inset-bottom); }
  .menu::before { content: ""; position: absolute; inset: 0; z-index: -1; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(13, 13, 13, .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 -12px 30px -24px rgba(10, 10, 10, .5); }
  .menu a { flex: 1; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; height: 74px; padding: 0 4px; font-size: 11px; }
  .menu a::after { top: 0; bottom: auto; border-radius: 0 0 3px 3px; }
  .menu a.active .nav-icon { color: var(--accent); }
  /* Sayaç rozeti simgenin sağ üst köşesinde durur; 5 öğeli dar menüde taşmaz. */
  .menu a .badge { position: absolute; top: 9px; left: calc(50% + 5px); min-width: 18px; height: 18px; font-size: 10px; }
  .menu a .nav-text { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .nav-icon { font-size: 22px; }
  .nav-text { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .dock-side { margin-left: auto; }
  .user-chip { padding: 0 4px; }
  .user-name { display: none; }
  .toasts { top: 72px; right: 12px; width: min(360px, calc(100vw - 24px)); }
  .cookie-note { bottom: 86px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .savebar { bottom: 86px; }
  .card { padding: 22px 18px; }
  .grid.shelf { --gap-x: 20px; padding: 10px 18px 26px; border-radius: 22px; }
  /* Çok sütunlu tablolar telefonda her satırı bir kart olacak şekilde alt alta dizilir. */
  table.stack thead { display: none; }
  table.stack tr { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 2px 0; border: 0; text-align: right; overflow-wrap: anywhere; }
  table.stack td::before { content: attr(data-label); flex: none; color: var(--ink-3); font-size: 12px; font-weight: 700; text-align: left; }
  table.stack td:not([data-label])::before { content: none; }
  table.stack td:not([data-label]) { justify-content: flex-end; }
  tbody tr:hover { background: none; }
}
@media (max-width: 720px) {
  .cat-row { grid-template-columns: minmax(0, 1fr); }
  .cat-order { display: flex; padding-top: 0; }
  .cat-delete { padding-top: 0; }
  .cat-edit { grid-template-columns: minmax(0, 1fr); }
  .cat-body { padding: 0 18px 22px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; padding-top: 6px; }
  .hero-visual { min-height: 400px; }
  .wide-cards .game { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 18px; }
  .wide-cards .game-body h3 { font-size: 21px; }
  .wide-cards .guard-box { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "disc" "timer" "btn" "issue"; justify-items: stretch; }
  .wide-cards .guard-box .disc { justify-self: center; width: min(220px, 80%); }
  .wide-cards .timer { text-align: center; }
}
@media (max-width: 560px) {
  .twofa-setup { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .twofa-qr { width: min(240px, 100%); }
  .twofa-key { justify-self: stretch; }
  .chart.stock .stock-legend { grid-template-columns: minmax(0, 1fr); }
  .chart.stock .stock-legend li + li { border-top: 1px solid var(--line); }
  .dash-kpis { gap: 10px; }
  .kpi { padding: 14px 14px 10px; }
  .kpi-value { font-size: 27px; }
  .kpi-mini dd { font-size: 16px; }
  .range { width: 100%; }
  .range a { flex: 1; justify-content: center; padding: 0 8px; }
  .bar-row { grid-template-columns: minmax(70px, 30%) minmax(0, 1fr) auto; gap: 8px; }
  .hero h1 { font-size: clamp(42px, 13vw, 60px); }
  .hero p { font-size: 16.5px; }
  .hero .actions .btn { flex: 1 1 auto; }
  .hero-visual { min-height: 350px; }
  .tape { height: 110px; }
  .ticker-row span { font-size: 17px; }
  .stats.trio { gap: 8px; }
  .stats.trio .stat { padding: 18px 6px; }
  .stats.trio .stat strong { font-size: 32px; }
  .grid.shelf { --gap-x: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; padding: 6px 14px 22px; }
  .game-body h3 { font-size: 14.5px; }
  .shelf .buy-btn span { display: none; }
  .shelf .buy-btn { padding: 0 9px 0 20px; }
  .redeem-box { padding: 24px 18px; border-radius: var(--r-l); }
  .redeem { flex-direction: column; }
  .wide-cards .game { grid-template-columns: minmax(0, 1fr); }
  .wide-cards .game-media { width: 130px; justify-self: center; }
  .wide-cards .game-body h3 { justify-content: center; }
  .wide-cards .game.pending { grid-template-columns: minmax(0, 1fr); }
  .finder-bar { height: 54px; }
  .finder-key { display: none; }
  .finder-sort { width: 100%; }
  .finder-sort select { flex: 1; }
  .buy-hero { min-height: 190px; padding: 20px; }
  .buy-cover { width: 84px; }
  .buy-content { padding: 18px 20px 22px; }
  .buy-steps { grid-template-columns: minmax(0, 1fr); }
  .buy-steps li { grid-template-columns: auto 1fr; align-items: center; }
  .modal { padding: 12px; }
  .modal-box { padding: 22px 18px; border-radius: 22px; }
  .auth .card { padding: 30px 22px 26px; }
  .info-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .info-list dd { margin-bottom: 10px; }
}
@media (max-width: 380px) {
  .brand-name { display: none; }
  .dock .btn.small { padding: 0 12px; }
}
/* Dokunmatik ekranlarda üzerine gelme etkileri kapalıdır. */
@media (hover: none) {
  :where(.btn, button):hover { transform: none; box-shadow: none; }
  .game:hover .box { --turn: 26deg; --tip: -7deg; translate: none; }
  .wide-cards .game:hover .box { translate: none; }
}
