/* triviumarena.com — Trivium Arena tanıtım sayfası.
   Renkler ve yazı tipleri oyunun kendisinden (trivia_app: lib/theme.ts, lib/tokens/arena.ts).
   ⚠️ Büyük harf dönüşümü (CSS) KULLANMA — Türkçe sayfada "i" → "İ" olur; marka adı HTML'de büyük harfle yazılı. */
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 700 800; font-display: swap; src: url(/fonts/Baloo2-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 700 800; font-display: swap; src: url(/fonts/Baloo2-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/fonts/Nunito-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/fonts/Nunito-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #1C1638;
  --bg-deep: #140F2B;
  --panel: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --muted: rgba(255, 255, 255, 0.74);
  --gold: #FFC93C;
  --gold-deep: #F2A516;
  --ink: #1B1236;
  --purple: #6C5CE7;
  --purple-deep: #4834D4;
  --head: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: #fff; font: 600 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--gold); color: var(--ink); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
section[id] { scroll-margin-top: 84px; }

/* Geçici yazı logo: Baloo 2, beyaz + altın, mor kontur (oyundaki logonun havası) */
.wordmark { display: inline-flex; gap: 0.28em; align-items: baseline; font: 800 26px/1 var(--head); letter-spacing: 0.01em; text-decoration: none; color: #fff; -webkit-text-stroke: 0.16em #3A2A9E; paint-order: stroke fill; text-shadow: 0 0.08em 0 var(--ink); white-space: nowrap; }
.wordmark span + span { color: var(--gold); }

/* Üst şerit */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(20, 15, 43, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.topbar .wordmark { margin-right: auto; font-size: clamp(19px, 4.6vw, 26px); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.langs a { padding: 5px 9px; border-radius: 999px; font: 800 13px/1.2 var(--body); text-decoration: none; color: var(--muted); }
.langs a:hover { color: #fff; }
.langs a[aria-current] { background: #fff; color: var(--ink); }
@media (max-width: 520px) { .topbar .topbar-cta { display: none; } }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 16px; border: 0; font: 800 17px/1 var(--head); letter-spacing: 0.01em; text-decoration: none; text-align: center; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
.btn-gold { background: linear-gradient(180deg, #FFD65C, var(--gold) 55%, var(--gold-deep)); color: var(--ink); box-shadow: 0 4px 0 #B9740A, 0 14px 28px -12px rgba(255, 176, 32, 0.6); }
.btn-gold:hover { transform: translateY(-1px); }
.btn-gold:active { transform: translateY(3px); box-shadow: 0 1px 0 #B9740A; }
.btn-ghost { background: var(--panel); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Giriş */
.hero { position: relative; overflow: clip; isolation: isolate; padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); background:
  radial-gradient(60% 50% at 75% 40%, rgba(108, 92, 231, 0.55), transparent 70%),
  radial-gradient(40% 40% at 10% 90%, rgba(255, 159, 67, 0.22), transparent 70%),
  radial-gradient(50% 45% at 95% 0%, rgba(0, 169, 224, 0.25), transparent 70%),
  linear-gradient(180deg, var(--bg-deep), var(--bg)); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg fill='%23fff'%3E%3Crect x='30' y='40' width='6' height='6' transform='rotate(45 33 43)' opacity='.45'/%3E%3Crect x='150' y='24' width='5' height='5' transform='rotate(45 152 26)' opacity='.3'/%3E%3Crect x='110' y='130' width='7' height='7' transform='rotate(45 113 133)' opacity='.25'/%3E%3Crect x='56' y='170' width='4' height='4' transform='rotate(45 58 172)' opacity='.4'/%3E%3Crect x='182' y='96' width='3' height='3' transform='rotate(45 183 97)' opacity='.4'/%3E%3C/g%3E%3C/svg%3E"); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 { margin: 0; display: grid; gap: 8px; }
.hero-name { font: 800 clamp(20px, 2.4vw, 26px)/1 var(--head); color: var(--gold); letter-spacing: 0.04em; }
.hero-slogan { font: 800 clamp(46px, 7.4vw, 92px)/0.95 var(--head); color: #fff; text-shadow: 0 6px 0 var(--ink), 0 24px 50px rgba(0, 0, 0, 0.35); text-wrap: balance; }
.lead { margin: 0; max-width: 34ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px 8px 12px; border-radius: 14px; background: #000; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22); text-decoration: none; font: 800 17px/1.1 var(--head); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store > span { display: grid; text-align: left; }
.store small { font: 700 11px/1.2 var(--body); letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.7); }
.hero-stage { position: relative; display: grid; justify-items: center; }

/* Telefon çerçevesi + demo (negroblan.co ile aynı ölçüler) */
.phone { position: relative; z-index: 2; margin: 0; width: 100%; max-width: 360px; padding: 11px; border-radius: 52px; background: linear-gradient(160deg, #2a2a2e, #0b0b0c 40%, #1a1a1d); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 50px 90px -40px rgba(10, 6, 40, 0.9); }
.phone-screen { position: relative; border-radius: 42px; overflow: hidden; background: linear-gradient(180deg, #2A2150, #1C1638); }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 26px 2px; font: 600 13px/1 var(--body); color: #fff; }
.phone-status i { width: 92px; height: 26px; border-radius: 20px; background: #000; }
.phone-status span:last-child { font-size: 9px; letter-spacing: 1px; opacity: 0.9; }
.phone .tg { max-width: none; border: 0; border-radius: 0; box-shadow: none; background: transparent; padding-bottom: 24px; }
.phone .tg-overlay { border-radius: 0; }
.demo-mount { width: 100%; display: grid; justify-items: center; }
.qcard { width: 100%; padding: 20px 18px 28px; display: grid; gap: 14px; color: #fff; }
.qcard-top { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.qcard-q { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.qcard-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qcard-opts li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 15px; }
.qcard-opts kbd { font: inherit; font-size: 12px; font-weight: 700; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; border: 1px solid rgba(27, 18, 54, 0.3); }
.qcard-opts .right { background: #2FAE45; color: #fff; }

/* Süzülen joker ikonları (hareket azaltma açıkken durur) */
.floaters { position: absolute; inset: -40px -70px; z-index: 1; pointer-events: none; }
.fl { position: absolute; width: clamp(56px, 7vw, 96px); filter: drop-shadow(0 16px 22px rgba(10, 6, 40, 0.55)); animation: float 6s ease-in-out infinite; }
.f1 { left: 0; top: 4%; rotate: -12deg; }
.f2 { right: 0; top: 8%; rotate: 10deg; animation-delay: -1s; }
.f3 { left: 2%; top: 32%; rotate: 8deg; animation-delay: -2s; }
.f4 { right: 2%; top: 36%; rotate: -10deg; animation-delay: -3s; }
.f5 { left: 0; top: 60%; rotate: -6deg; animation-delay: -4s; }
.f6 { right: 0; top: 64%; rotate: 12deg; animation-delay: -5s; }
.f7 { left: 6%; bottom: 2%; rotate: 10deg; animation-delay: -1.5s; }
.f8 { right: 6%; bottom: 0; rotate: -8deg; animation-delay: -3.5s; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* Bölüm başlıkları */
.sec-head { display: grid; gap: 12px; justify-items: start; margin-bottom: clamp(24px, 4vw, 40px); }
.eyebrow { margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 201, 60, 0.12); color: var(--gold); font: 800 14px/1 var(--head); letter-spacing: 0.04em; }
.sec-head h2 { margin: 0; font: 800 clamp(32px, 4.6vw, 56px)/1.02 var(--head); text-wrap: balance; }

/* Modlar */
.modes, .jokers, .band { padding: clamp(56px, 8vw, 104px) 0; }
.mode-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.mode { display: grid; gap: 8px; align-content: start; padding: 18px 18px 22px; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)); box-shadow: inset 0 0 0 1px var(--line); }
.mode-ic { width: 84px; height: 84px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2), 0 16px 28px -16px var(--b); }
.mode-ic img { width: 72px; height: 72px; }
.mode h3 { margin: 0; font: 800 26px/1.05 var(--head); }
.mode p { margin: 0; font-size: 16px; color: var(--muted); }

/* Jokerler */
.jokers { background: var(--bg-deep); }
.joker-groups { display: grid; gap: 28px; }
.joker-group h3 { margin: 0 0 12px; font: 800 22px/1 var(--head); color: var(--gold); }
.joker-group.is-attack h3 { color: #FF8A8A; }
.joker-group.is-guard h3 { color: #6EE7A0; }
.joker-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.joker { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.joker img { width: 60px; height: 60px; flex: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
.joker b { display: block; font: 800 20px/1.1 var(--head); }
.joker p { margin: 2px 0 0; font-size: 15px; line-height: 1.4; color: var(--muted); }

/* Haber ver / indirme bandı */
.band-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 5vw, 56px); border-radius: clamp(24px, 3vw, 36px); background:
  radial-gradient(50% 80% at 100% 0%, rgba(255, 201, 60, 0.28), transparent 70%),
  linear-gradient(150deg, var(--purple), var(--purple-deep) 60%, #2E2190); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.18), 0 40px 80px -40px rgba(72, 52, 212, 0.8); }
.band h2 { margin: 0 0 10px; font: 800 clamp(30px, 4vw, 48px)/1.02 var(--head); text-wrap: balance; }
.band-copy p { margin: 0; color: rgba(255, 255, 255, 0.88); }
.wl-form { position: relative; display: grid; gap: 12px; }
.wl-row { display: flex; gap: 10px; }
.wl-row input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 0; background: #fff; color: var(--ink); font: 700 17px var(--body); }
.wl-row input::placeholder { color: #8a83a8; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.9); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--gold); }
.consent a { color: #fff; }
.wl-note { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: 15px; font-weight: 800; }
.form-status.ok { color: #B7F5CF; }
.form-status.err { color: #FFD1D1; }

/* Alt bilgi */
.footer { padding: 36px 0 44px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-inner { display: grid; gap: 14px; justify-items: start; }
.wordmark-sm { font-size: 20px; }
.by { margin: 0; color: var(--muted); }
.by a { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.copy { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* 404 */
.nf { padding: clamp(72px, 12vw, 140px) 0; text-align: center; }
.nf-inner { display: grid; justify-items: center; gap: 14px; }
.nf .nf-q { margin: 0; font: 800 clamp(120px, 20vw, 200px)/1 var(--head); color: var(--gold); -webkit-text-stroke: 0.04em var(--ink); paint-order: stroke fill; text-shadow: 0 0.05em 0 var(--ink); }
.nf h1 { margin: 0; font: 800 clamp(32px, 5vw, 52px)/1.05 var(--head); text-wrap: balance; }
.nf p { margin: 0; color: var(--muted); }

/* Dar ekranlar */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { justify-items: center; text-align: center; }
  .hero h1 { justify-items: center; }
  .lead { margin-inline: auto; }
  .actions, .stores { justify-content: center; }
  .floaters { inset: -20px -8px; }
}
@media (max-width: 860px) { .band-inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .wl-row { flex-direction: column; } .actions .btn { flex: 1 1 100%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fl { animation: none; }
  .btn { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
