/* Sıfırlama, tipografi, temel form öğeleri */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 { margin: 0 0 var(--s3); line-height: 1.25; font-weight: 650; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 var(--s3); }
small, .muted { color: var(--muted); }
.muted { font-size: var(--fs-sm); }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s5) 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* Form yazıları 16 px: iOS odaklanınca yakınlaştırmasın */
input, select, textarea { font-size: 16px; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

::selection { background: var(--gold-tint); color: var(--text); }

.ikon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ikon--sm { width: 18px; height: 18px; }
.ikon--lg { width: 32px; height: 32px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.atla-baglanti {
  position: absolute;
  left: var(--s3);
  top: -60px;
  z-index: 100;
  background: var(--gold);
  color: var(--on-gold);
  padding: var(--s2) var(--s4);
  border-radius: var(--r-sm);
}
.atla-baglanti:focus { top: var(--s3); }

/* Yardımcılar */
.yigin > * + * { margin-top: var(--s4); }
.yigin-sm > * + * { margin-top: var(--s2); }
.satir { display: flex; align-items: center; gap: var(--s3); }
.satir--arasi { justify-content: space-between; }
.satir--sar { flex-wrap: wrap; }
.buyu { flex: 1 1 auto; min-width: 0; }
.ortala { text-align: center; }
.kalin { font-weight: 650; }
.tasma-kes { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metin-yesil { color: var(--green); }
.metin-kirmizi { color: var(--red); }
.metin-altin { color: var(--gold); }
.sprite { display: none; }
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--s4); }
.mono { font-family: var(--font-mono); letter-spacing: 0.05em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
