/* Kafadarım ortak tasarım sistemi — tanıtım sitesi, platform ve veli ekranları */
:root {
  --sky1: #5ec8ff; --sky2: #bfeaff; --sky3: #e9f9ff;
  --ink: #1d2b53; --muted: #5a6a99; --line: #d6dcee; --soft: #f4f7fd; --card: #fff;
  --honey: #ffb703; --honey-d: #e08a00; --ok: #22c55e; --ok-d: #15803d; --bad: #ef4444; --bad-d: #b91c1c;
  --blue: #2f80ed; --blue-d: #1c5fc2; --purple: #a855f7; --orange: #ff7a59; --teal: #14b8a6;
  --shadow: 0 6px 0 rgba(29, 43, 83, .16); --shadow-soft: 0 10px 30px rgba(29, 43, 83, .10);
  --r: 22px;
  --font-head: 'Baloo 2', 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font-family: var(--font-body); color: var(--ink); background: var(--sky3); font-size: 17px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
h1, h2, h3, h4, .head { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .4em; }
a { color: var(--blue-d); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 22px; border-radius: 16px;
  font-family: var(--font-head); font-weight: 800; font-size: 19px; background: #fff; color: var(--ink); box-shadow: var(--shadow); transition: transform .1s, box-shadow .1s; text-decoration: none; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(29, 43, 83, .16); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-go { background: linear-gradient(180deg, #ffd23f, var(--honey)); color: #4a2a00; box-shadow: 0 6px 0 var(--honey-d); }
.btn-green { background: linear-gradient(180deg, #4ade80, var(--ok)); color: #fff; box-shadow: 0 6px 0 var(--ok-d); }
.btn-blue { background: linear-gradient(180deg, #60a5fa, var(--blue)); color: #fff; box-shadow: 0 6px 0 var(--blue-d); }
.btn-ghost { background: transparent; box-shadow: none; color: var(--blue-d); text-decoration: underline; min-height: 40px; padding: 4px 8px; }
.btn-danger { color: var(--bad-d); }
.btn-big { font-size: clamp(24px, 5vw, 32px); min-height: 72px; padding: 10px 40px; border-radius: 24px; }
.btn-sm { min-height: 40px; font-size: 16px; padding: 4px 14px; border-radius: 12px; }
.btn-block { width: 100%; }

/* Formlar */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-weight: 700; }
.field small { font-weight: 600; color: var(--muted); }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font-size: 17px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin-bottom: 10px; font-size: 15px; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; }
.err { color: var(--bad-d); font-weight: 700; min-height: 1.4em; }
.note { background: #fff8e1; border: 2px solid #ffd666; border-radius: 14px; padding: 10px 14px; font-weight: 600; }
.note.test { background: #ffe8e1; border-color: #ff9b7f; }

/* Kartlar ve yerleşim */
.card { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-soft); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 480px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 3px 12px 3px 8px; font-weight: 800; box-shadow: var(--shadow); font-family: var(--font-head); }
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 800; background: var(--soft); }

/* Bildirim balonu */
.toast { position: fixed; left: 50%; bottom: 10vh; transform: translateX(-50%); z-index: 80; background: var(--ink); color: #fff; padding: 10px 22px;
  border-radius: 999px; font-weight: 800; font-size: 18px; box-shadow: var(--shadow); max-width: 90vw; text-align: center; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 10px); } }

/* Gökyüzü arka planı */
.sky { background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 60%, var(--sky3) 100%); background-attachment: fixed; }
.world { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .9; animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 55%; height: 160%; left: 12%; bottom: 10%; }
.cloud::after { width: 40%; height: 120%; right: 12%; bottom: 10%; }
.c1 { width: 150px; height: 44px; top: 9%; left: -160px; animation-duration: 70s; }
.c2 { width: 110px; height: 34px; top: 22%; left: -120px; animation-duration: 95s; animation-delay: -40s; }
.c3 { width: 190px; height: 54px; top: 4%; left: -200px; animation-duration: 120s; animation-delay: -80s; opacity: .75; }
@keyframes drift { to { transform: translateX(calc(100vw + 260px)); } }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 22vh; min-height: 110px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 28px; color: var(--ink); text-decoration: none; }
.logo img { width: 46px; height: 46px; object-fit: contain; }
.logo b { color: var(--blue); }

/* ===== Soru görselleri ===== */
.vcard { background: #fff; border-radius: 24px; padding: 14px 20px; box-shadow: var(--shadow); font-weight: 800; max-width: 100%; display: inline-flex; flex-direction: column; align-items: center; }
.v-text.v-big { font-family: var(--font-head); font-size: clamp(38px, 9vw, 64px); line-height: 1.1; }
.v-text.v-mid { font-family: var(--font-head); font-size: clamp(26px, 6vw, 40px); line-height: 1.2; }
.v-text.v-small { font-size: clamp(18px, 4vw, 24px); }
.v-emoji.v-big { font-size: clamp(80px, 18vw, 130px); line-height: 1.1; }
.v-emoji.v-row { font-size: clamp(28px, 6.5vw, 42px); line-height: 1.3; letter-spacing: 2px; word-break: break-word; text-align: center; }
.v-coins { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.v-coin { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 800; line-height: 1; text-align: center;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #f5c518 55%, #c99a06); border: 4px solid #a67c00; color: #5b4300; }
.v-coin.silver { background: radial-gradient(circle at 35% 30%, #fff, #d4d8e0 55%, #9aa2b1); border-color: #747c8c; color: #333a48; }
.v-note { width: 116px; height: 60px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; border: 4px solid rgba(0,0,0,.25); text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.v-blocks { display: flex; gap: 6px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.v-blocks .v-hund { width: 72px; height: 72px; border-radius: 4px; background: repeating-linear-gradient(0deg, #34d399 0 6px, #059669 6px 7.2px), repeating-linear-gradient(90deg, transparent 0 6px, #059669 6px 7.2px); background-blend-mode: multiply; border: 2px solid #047857; }
.v-blocks .v-ten { width: 16px; height: 140px; border-radius: 4px; background: repeating-linear-gradient(180deg, #60a5fa 0 12px, #1c5fc2 12px 14px); border: 2px solid #1c5fc2; }
.v-blocks .v-one { width: 16px; height: 16px; border-radius: 4px; background: #fbbf24; border: 2px solid #b45309; }
.v-ones { display: grid; grid-template-columns: repeat(3, 16px); gap: 4px; }
.v-ruler-wrap { width: min(560px, 80vw); padding-top: 34px; }
.v-ruler { position: relative; height: 56px; background: #ffe08a; border: 3px solid #b8860b; border-radius: 8px; margin: 0 10px 6px; }
.v-ruler .v-tick { position: absolute; bottom: 0; width: 2px; height: 26px; background: #7a5900; }
.v-ruler .v-num { position: absolute; bottom: 28px; transform: translateX(-50%); font-size: 14px; font-weight: 800; }
.v-ruler .v-obj { position: absolute; top: -32px; height: 24px; border-radius: 10px; background: #ff7a59; border: 3px solid #a0360f; }
.v-title { font-size: 15px; color: var(--muted); margin-bottom: 6px; text-align: center; }
.v-pchart-wrap { width: min(560px, 82vw); }
.v-pchart { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.v-pchart .v-lbl { font-size: clamp(14px, 3.4vw, 18px); text-align: right; line-height: 1.1; max-width: 90px; }
.v-pchart .v-cells { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; }
.v-pchart .v-cells i { font-style: normal; aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(13px, 3.8vw, 26px); border: 2px dashed var(--line); border-radius: 6px; }
.v-groups { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.v-group { border: 3px dashed var(--line); border-radius: 16px; padding: 4px 8px; font-size: clamp(22px, 5vw, 32px); letter-spacing: 2px; }
.v-shapes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 420px; }
.v-swatch { display: inline-block; width: clamp(100px, 24vw, 150px); height: clamp(100px, 24vw, 150px); border-radius: 30%; border: 5px solid var(--ink); }
.v-table { border-collapse: collapse; font-size: 17px; }
.v-table th, .v-table td { border: 2px solid var(--line); padding: 6px 12px; text-align: center; }
.v-table th { background: var(--soft); }
.v-image { max-height: 240px; border-radius: 12px; }
