/* TILTO — tanıtım sitesi. Oyunun açık teması: yumuşak mavi-lila zemin, koyu lacivert yazı, oyun blok renkleri. */
:root {
  --bg1: #EAF3FF;
  --bg2: #F5EFFF;
  --panel: #FFFFFF;
  --edge: #D6E0F0;
  --text: #1A2744;
  --muted: #677A9A;
  --teal: #12B5D8;
  --violet: #8B5CF6;
  --orange: #FF8A1F;
  --green: #1FC48A;
  --pink: #F2457A;
  --yellow: #F5BC0B;
  --gold-txt: #B87500;
  --navy: #1A2547;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(26, 39, 68, .08), 0 2px 6px rgba(26, 39, 68, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --link: #8B5CF6;
  --topbar: rgba(240, 244, 255, .82);
  --row: #F7F9FD;
  --chip: #F2F4FA;
  --doc-text: #33405F;
  --play-bg: #1A2547;
  --play-fg: #FFFFFF;
  --soon-bg: #8D98B3;
  --soon-fg: #FFFFFF;
  --phone: #1A2547;
  color-scheme: light;
}

/* koyu tema: oyunun koyu paleti (gece mavisi zemin, parlak blok renkleri) */
[data-theme="dark"] {
  --bg1: #0B0E24;
  --bg2: #170F38;
  --panel: #131A40;
  --edge: #2B3578;
  --text: #F3F6FF;
  --muted: #9AA6D6;
  --teal: #26E1FF;
  --violet: #A56BFF;
  --orange: #FF9D2E;
  --green: #2DF5A4;
  --pink: #FF4D7A;
  --yellow: #FFE14A;
  --gold-txt: #FFD84A;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
  --link: #B994FF;
  --topbar: rgba(11, 14, 36, .82);
  --row: #18204A;
  --chip: #1B2350;
  --doc-text: #CBD3F0;
  --play-bg: #F3F6FF;
  --play-fg: #0B0E24;
  --soon-bg: #2A3366;
  --soon-fg: #AEB8E0;
  --phone: #05071A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%) fixed;
  line-height: 1.6;
  transition: background-color .3s ease, color .3s ease;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
img { max-width: 100%; display: block; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }

/* ---------- üst çubuk ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--topbar);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 39, 68, .06);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 12px; }
.nav a:hover { background: rgba(139, 92, 246, .10); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1.5px solid var(--edge); background: var(--panel); color: var(--text); border-radius: 12px; cursor: pointer; padding: 0; flex: 0 0 auto; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .i-sun { display: none; }
[data-theme="dark"] .icon-btn .i-sun { display: block; }
[data-theme="dark"] .icon-btn .i-moon { display: none; }
.lang { border: 1.5px solid var(--edge); background: var(--panel); color: var(--text); font-weight: 700; border-radius: 12px; padding: 6px 10px; cursor: pointer; font: inherit; font-size: 14px; }
.nav { flex-wrap: nowrap; }
.nav a { white-space: nowrap; }
@media (max-width: 720px) { .nav a.opt { display: none; } }
@media (max-width: 480px) { .brand span { display: none; } .nav a { padding: 8px 8px; font-size: 14px; } .top .wrap { gap: 10px; } }

/* ---------- giriş ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.logo { margin: 0; font-size: clamp(68px, 12vw, 120px); line-height: .98; font-weight: 900; letter-spacing: .04em; }
.logo .l1 { color: var(--violet); }
.logo .l2 { color: var(--teal); }
.tagline { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); margin: 18px 0 26px; max-width: 30em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 16px; font-weight: 800; font-size: 16px;
  text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-play { background: var(--play-bg); color: var(--play-fg); box-shadow: 0 6px 16px rgba(26, 37, 71, .25); }
.btn-play svg { width: 22px; height: 22px; }
.btn-play.soon { background: var(--soon-bg); color: var(--soon-fg); cursor: default; box-shadow: none; }
.btn-play.soon:hover { transform: none; }
.btn-ghost { background: var(--panel); color: var(--text); border: 1.5px solid var(--edge); }
.phones { display: flex; justify-content: center; gap: 18px; }
.phone {
  width: 230px; border-radius: 30px; padding: 8px; background: var(--phone);
  box-shadow: 0 20px 40px rgba(26, 39, 68, .18);
}
.phone img { border-radius: 23px; aspect-ratio: 1 / 2; object-fit: cover; width: 100%; }
.phones .phone:nth-child(2) { transform: translateY(34px); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .tagline { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .phone { width: 42vw; max-width: 220px; }
}

/* ---------- bölümler ---------- */
section { padding: 56px 0; }
h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; letter-spacing: .01em; }
.sub { color: var(--muted); margin: 0 0 30px; font-size: 17px; }
.card { background: var(--panel); transition: background-color .3s ease; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(214, 224, 240, .7); }

/* nasıl oynanır: solda canlandırma, sağda adımlar (o an gösterilen adım yanar) */
.howto { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 24px; align-items: center; }
.demo-card { padding: 14px; display: flex; justify-content: center; }
#demo { width: 100%; max-width: 360px; height: auto; aspect-ratio: 360 / 440; display: block; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.step { padding: 22px; transition: opacity .35s ease, transform .35s ease, box-shadow .35s ease; }
.howto.live .step { opacity: .5; }
.howto.live .step.on { opacity: 1; transform: translateY(-3px); box-shadow: 0 0 0 2.5px var(--c), var(--shadow); }
@media (max-width: 860px) { .howto { grid-template-columns: 1fr; } .demo-card { max-width: 380px; width: 100%; margin: 0 auto; } }
.step .num { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 900; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 520px) { .steps { gap: 10px; } .step { padding: 14px; } .step .num { width: 28px; height: 28px; border-radius: 9px; margin-bottom: 8px; font-size: 14px; } .step h3 { font-size: 15.5px; } .step p { font-size: 13px; line-height: 1.45; } }

/* özellikler */
.features { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.feat { padding: 24px; flex: 1 1 280px; max-width: calc((100% - 32px) / 3); }
.feat .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.feat .ico svg { width: 26px; height: 26px; }
.feat h3 { margin: 0 0 6px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .feat { max-width: calc((100% - 16px) / 2); } }
@media (max-width: 560px) { .feat { max-width: 100%; } }

/* özel bloklar */
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.blk { padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.tile { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18), inset 0 4px 0 rgba(255, 255, 255, .35); }
.tile.lock { background: #2B3556; position: relative; }
.tile.lock::after { content: ""; position: absolute; left: 13px; top: 15px; width: 16px; height: 12px; border-radius: 3px; background: #EEF2FA; }
.tile.lock::before { content: ""; position: absolute; left: 15px; top: 7px; width: 8px; height: 10px; border: 3px solid #EEF2FA; border-bottom: 0; border-radius: 8px 8px 0 0; }
.tile.gold { background: linear-gradient(160deg, #FFD54D, #FFB800); }
.tile.rot { background: #6E8F2E; }
.blk h3 { margin: 0 0 4px; font-size: 17px; }
.blk p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .blocks { grid-template-columns: 1fr; } }

/* sıralama */
.board { padding: 10px; max-width: 640px; }
.lb-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 12px; color: var(--muted); font-size: 14px; }
.lb-head .live { display: inline-flex; align-items: center; gap: 8px; }
.lb-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #B9C3D6; }
.lb-head .dot.on { background: var(--green); }
.lb-list { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow: auto; }
.lb-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; }
.lb-row:nth-child(odd) { background: var(--row); }
.lb-rank { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--muted); font-size: 15px; }
.lb-row.r1 .lb-rank { background: #F2B400; color: #fff; }
.lb-row.r2 .lb-rank { background: #A9B4C6; color: #fff; }
.lb-row.r3 .lb-rank { background: #D08A4E; color: #fff; }
.lb-name { font-weight: 650; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 17px; }
.lb-row.r1 .lb-score, .lb-row.r2 .lb-score, .lb-row.r3 .lb-score { color: var(--gold-txt); }
.lb-msg { padding: 30px 14px; text-align: center; color: var(--muted); }
.lb-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* destek */
.donate { padding: 30px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.donate .heart { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: rgba(242, 69, 122, .12); }
.donate .heart svg { width: 40px; height: 40px; }
.donate h2 { font-size: 28px; }
.donate p { margin: 0 0 16px; color: var(--muted); }
.donate-links { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-donate { background: var(--pink); color: #fff; box-shadow: 0 6px 16px rgba(242, 69, 122, .25); }
.soon-note { display: inline-block; padding: 10px 16px; border-radius: 14px; background: var(--chip); color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .donate { grid-template-columns: 1fr; text-align: center; } .donate .heart { margin: 0 auto; } .donate-links { justify-content: center; } }

/* alt bilgi */
footer { padding: 36px 0 50px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); }

/* gizlilik sayfası */
.doc { padding: 40px 0 20px; }
.doc .card { padding: clamp(22px, 4vw, 44px); }
.doc h1 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 40px); }
.doc h2 { font-size: 21px; margin: 30px 0 8px; }
.doc p, .doc li { color: var(--doc-text); }
.doc .date { color: var(--muted); margin: 0 0 18px; }
.doc table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--edge); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 700; }
.hidden { display: none !important; }
.doc table { display: block; overflow-x: auto; }

/* maskot: ekranın altında gezer; yalnız kendi üstüne gelen dokunuşu alır */
#mascot-cv { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
#mascot-hit { position: fixed; left: 0; top: 0; z-index: 41; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.mascot-dragging, .mascot-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
footer { padding-bottom: 96px; }
[data-theme="dark"] .step .num { color: #0B0E24; }
[data-theme="dark"] .card { border-color: rgba(43, 53, 120, .8); }
