/* Okuma Hızı Ölçer */

:root {
  --zemin: #0a0e13;
  --yuzey: #111820;
  --yuzey-2: #172029;
  --yuzey-3: #1e2935;
  --cizgi: rgba(150, 172, 198, 0.12);
  --cizgi-guclu: rgba(150, 172, 198, 0.2);
  --yazi: #eef2f7;
  --yazi-2: #aab6c5;
  --yazi-3: #7f8c9d;
  --vurgu: #5b8cff;
  --vurgu-acik: #a3bcff;
  --yesil: #10b981;
  --yesil-acik: #34d399;
  --amber: #f59e0b;
  --amber-acik: #fbbf24;
  --kirmizi: #e11d48;
  --kirmizi-acik: #f43f5e;
  --gul: #fb7185;
  --hata: #fda4af;
  --golge: 0 30px 80px rgba(0, 0, 0, 0.45);
  --kose-buyuk: 28px;
  --kose: 22px;
  --yazi-tipi: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --rakam-tipi: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  height: 100%;
  background: var(--zemin);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--zemin);
  isolation: isolate; /* ::before/::after zemin katmanları gövde zemininin üstünde kalsın */
  font-family: var(--yazi-tipi);
  font-size: 16px;
  line-height: 1.5;
  color: var(--yazi);
  -webkit-font-smoothing: antialiased;
}

/* Zemin: yumuşak ışık + silik ızgara */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(1100px 640px at 10% -12%, rgba(91, 140, 255, 0.17), transparent 62%),
    radial-gradient(900px 560px at 105% 110%, rgba(16, 185, 129, 0.11), transparent 60%);
}

body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 80%);
}

.sayfa {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px 32px;
}

/* Üst bant */
.ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 14px;
}

.marka {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.marka-isaret {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(140deg, var(--vurgu) 0%, #3fb8c9 55%, var(--yesil) 100%);
  box-shadow: 0 12px 30px rgba(91, 140, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.marka-isaret svg {
  width: 26px;
  height: 26px;
}

.marka-yazi {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.marka-yazi strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.marka-yazi small {
  font-size: 14px;
  color: var(--yazi-3);
}

.ust-sag {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kisayol {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--yazi-3);
  white-space: nowrap;
}

kbd {
  padding: 4px 10px;
  border: 1px solid var(--cizgi-guclu);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--yazi-2);
  background: var(--yuzey-2);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35);
}

.ikon-dugme {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--cizgi-guclu);
  border-radius: 12px;
  color: var(--yazi-2);
  background: var(--yuzey);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.ikon-dugme:hover {
  color: var(--yazi);
  background: var(--yuzey-2);
  border-color: rgba(150, 172, 198, 0.32);
}

.ikon-dugme svg {
  width: 22px;
  height: 22px;
}

.ikon-dugme .ikon-kapat,
.ikon-dugme[aria-pressed="true"] .ikon-ac {
  display: none;
}

.ikon-dugme[aria-pressed="true"] .ikon-kapat {
  display: block;
}

/* Adım göstergesi */
.adimlar {
  --adim-bosluk: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px var(--adim-bosluk);
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.adim {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 18px 7px 7px;
  border: 1px solid var(--cizgi);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--yazi-3);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.25s, background-color 0.25s, border-color 0.25s;
}

.adim + .adim::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--adim-bosluk) * -1 + 8px);
  width: calc(var(--adim-bosluk) - 16px);
  height: 2px;
  border-radius: 2px;
  background: var(--cizgi-guclu);
}

.adim-no {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  color: var(--yazi-2);
  background: var(--yuzey-2);
  transition: color 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.adim[aria-current="step"] {
  color: var(--yazi);
  border-color: rgba(91, 140, 255, 0.45);
  background: rgba(91, 140, 255, 0.1);
}

.adim[aria-current="step"] .adim-no {
  color: #fff;
  background: var(--vurgu);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.22);
}

.adim.tamam {
  color: var(--yazi-2);
}

.adim.tamam .adim-no {
  font-size: 0;
  color: var(--yesil-acik);
  background: rgba(16, 185, 129, 0.16);
}

.adim.tamam .adim-no::before {
  content: "✓";
  font-size: 17px;
}

/* Sahne ve kartlar */
.sahne {
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
}

body[data-durum="bitti"] .sahne,
body[data-durum="anlama"] .sahne {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.kart {
  position: relative;
  width: 100%;
  max-width: 1440px;
  padding: clamp(24px, min(3.2vw, 4.5vh), 52px);
  border: 1px solid var(--cizgi-guclu);
  border-radius: var(--kose-buyuk);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)), var(--yuzey);
  box-shadow: var(--golge), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: belir 0.35s ease both;
}

@keyframes belir {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Kronometre */
.kronometre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.6vh, 28px);
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

body[data-durum="okunuyor"] .kronometre {
  border-color: rgba(52, 211, 153, 0.34);
  box-shadow: var(--golge), 0 0 140px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rozet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 16px;
  border: 1px solid var(--cizgi-guclu);
  border-radius: 999px;
  font-size: clamp(14px, 0.95vw, 18px);
  font-weight: 600;
  color: var(--yazi-2);
  background: var(--yuzey-2);
}

.rozet i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yazi-3);
}

body[data-durum="okunuyor"] .rozet {
  color: var(--yesil-acik);
  border-color: rgba(52, 211, 153, 0.34);
  background: rgba(16, 185, 129, 0.09);
}

body[data-durum="okunuyor"] .rozet i {
  background: var(--yesil-acik);
  animation: nabiz 1.6s ease-out infinite;
}

body[data-durum="bitti"] .rozet {
  color: var(--vurgu-acik);
  border-color: rgba(91, 140, 255, 0.4);
  background: rgba(91, 140, 255, 0.09);
}

body[data-durum="bitti"] .rozet i {
  background: var(--vurgu-acik);
}

@keyframes nabiz {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.saat {
  font-family: var(--rakam-tipi);
  font-size: clamp(80px, min(18vw, 30vh), 360px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 0.92;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--yazi);
}

body[data-durum="hazir"] .saat {
  color: var(--yazi-2);
}

body[data-durum="bitti"] .saat {
  font-size: clamp(60px, min(8.5vw, 18vh), 200px);
}

.saat-ondalik {
  margin-left: 0.03em;
  font-size: 0.42em;
  letter-spacing: -0.01em;
  color: var(--yazi-3);
}

/* Düğmeler */
.eylemler {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.dugme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: min(clamp(360px, 27vw, 560px), 100%);
  min-height: clamp(84px, 11vh, 128px);
  padding: 0 clamp(32px, 3vw, 56px);
  border: 0;
  border-radius: var(--kose);
  font-family: inherit;
  font-size: clamp(22px, min(2vw, 3.4vh), 36px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, filter 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dugme svg {
  flex: none;
  width: 1.05em;
  height: 1.05em;
}

.dugme:hover {
  filter: brightness(1.07);
}

.dugme:active {
  transform: translateY(2px) scale(0.995);
}

.dugme:focus-visible,
.ikon-dugme:focus-visible {
  outline: 3px solid var(--vurgu-acik);
  outline-offset: 4px;
}

.dugme-baslat {
  color: #03291c;
  background: linear-gradient(180deg, var(--yesil-acik), var(--yesil));
  box-shadow: 0 18px 44px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.dugme-bitir {
  color: #fff;
  background: linear-gradient(180deg, var(--kirmizi-acik), var(--kirmizi));
  box-shadow: 0 18px 44px rgba(225, 29, 72, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.dugme-hesapla {
  width: 100%;
  color: #fff;
  background: linear-gradient(180deg, #6d95ff, #3d69f0);
  box-shadow: 0 18px 44px rgba(61, 105, 240, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dugme-ikincil {
  min-width: 0;
  min-height: clamp(56px, 7vh, 76px);
  padding: 0 clamp(20px, 1.8vw, 32px);
  border: 1px solid var(--cizgi-guclu);
  font-size: clamp(17px, min(1.25vw, 2.1vh), 22px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--yazi);
  background: var(--yuzey-2);
}

.dugme-ikincil:hover {
  filter: none;
  background: var(--yuzey-3);
}

.dugme-ikincil svg {
  width: 1.1em;
  height: 1.1em;
  color: var(--yazi-2);
}

.ipucu {
  margin: 0;
  font-size: clamp(15px, 1vw, 19px);
  color: var(--yazi-3);
}

.ipucu b {
  font-weight: 600;
  color: var(--yazi-2);
}

/* Giriş formları (kelime sayısı, anlama) */
.giris-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  height: 100%;
}

.kart-baslik {
  display: block;
  margin: 0;
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.kart-aciklama {
  margin: -6px 0 6px;
  font-size: clamp(15px, 1vw, 19px);
  color: var(--yazi-3);
}

.giris-grup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: clamp(96px, 13vh, 150px);
  padding: 0 28px;
  border: 2px solid var(--cizgi-guclu);
  border-radius: var(--kose);
  background: rgba(5, 8, 12, 0.6);
  cursor: text;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.giris-grup:focus-within {
  border-color: var(--vurgu);
  box-shadow: 0 0 0 6px rgba(91, 140, 255, 0.18);
}

.giris-grup.hatali {
  border-color: var(--kirmizi-acik);
  box-shadow: 0 0 0 6px rgba(244, 63, 94, 0.16);
}

.giris-grup input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-family: var(--rakam-tipi);
  font-size: clamp(52px, min(5.4vw, 9vh), 104px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--yazi);
  background: transparent;
  caret-color: var(--vurgu);
}

.giris-grup input::placeholder {
  color: #334050;
}

.giris-birim {
  font-size: clamp(20px, 1.5vw, 28px);
  font-weight: 600;
  color: var(--yazi-3);
}

.hata {
  min-height: 1.5em;
  margin: -4px 0 0;
  font-size: clamp(15px, 1vw, 19px);
  font-weight: 600;
  color: var(--hata);
}

/* Anlama seviyesi renkleri */
[data-seviye] {
  --seviye-renk: var(--yazi-2);
  --seviye-dolgu: var(--yazi-3);
  --seviye-zemin: rgba(255, 255, 255, 0.04);
  --seviye-cizgi: var(--cizgi-guclu);
}

[data-seviye="cok-iyi"] {
  --seviye-renk: var(--yesil-acik);
  --seviye-dolgu: var(--yesil);
  --seviye-zemin: rgba(16, 185, 129, 0.12);
  --seviye-cizgi: rgba(52, 211, 153, 0.42);
}

[data-seviye="iyi"] {
  --seviye-renk: var(--vurgu-acik);
  --seviye-dolgu: var(--vurgu);
  --seviye-zemin: rgba(91, 140, 255, 0.12);
  --seviye-cizgi: rgba(91, 140, 255, 0.45);
}

[data-seviye="orta"] {
  --seviye-renk: var(--amber-acik);
  --seviye-dolgu: var(--amber);
  --seviye-zemin: rgba(245, 158, 11, 0.12);
  --seviye-cizgi: rgba(251, 191, 36, 0.42);
}

[data-seviye="zayif"] {
  --seviye-renk: var(--gul);
  --seviye-dolgu: var(--kirmizi-acik);
  --seviye-zemin: rgba(244, 63, 94, 0.12);
  --seviye-cizgi: rgba(251, 113, 133, 0.42);
}

/* Okuma hızı özeti (anlama adımında) */
.ozet {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.6vh, 18px);
  overflow: hidden;
  text-align: center;
}

.ozet::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(91, 140, 255, 0.16), transparent);
  pointer-events: none;
}

.ozet > * {
  position: relative;
}

.ozet .sonuc-deger,
.ozet .sonuc-formul {
  margin: 0;
}

.ozet .sonuc-sayi {
  font-size: clamp(88px, min(9vw, 20vh), 220px);
}

.ozet .eylemler {
  margin-top: clamp(4px, 1.6vh, 18px);
}

/* Anlama soruları */
.oran-giris {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  column-gap: clamp(10px, 1.2vw, 20px);
}

.oran-alan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.oran-etiket {
  font-size: clamp(15px, 1vw, 19px);
  font-weight: 600;
  color: var(--yazi-2);
}

.oran-alan .giris-grup {
  padding: 0 clamp(14px, 1.4vw, 24px);
}

.oran-alan .giris-grup input {
  text-align: center;
}

.oran-ayrac {
  display: grid;
  place-items: center;
  min-height: clamp(96px, 13vh, 150px);
  font-family: var(--rakam-tipi);
  font-size: clamp(48px, min(4.6vw, 8vh), 92px);
  font-weight: 300;
  line-height: 1;
  color: var(--yazi-3);
}

.seviye-olcek {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seviye-olcek li {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 8px 6px 7px;
  border: 1px solid var(--cizgi);
  border-radius: 14px;
  line-height: 1.35;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, background-color 0.2s;
}

.seviye-olcek li::before {
  content: "";
  width: 100%;
  height: 4px;
  margin-bottom: 6px;
  border-radius: 4px;
  background: var(--seviye-dolgu);
  opacity: 0.45;
  transition: opacity 0.2s;
}

.seviye-ad {
  font-size: clamp(14px, 0.9vw, 17px);
  font-weight: 700;
  white-space: nowrap;
  color: var(--yazi-2);
}

.seviye-aralik {
  font-size: clamp(13px, 0.8vw, 15px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--yazi-3);
}

.seviye-olcek li.aktif {
  border-color: var(--seviye-cizgi);
  background: var(--seviye-zemin);
}

.seviye-olcek li.aktif::before {
  opacity: 1;
}

.seviye-olcek li.aktif .seviye-ad {
  color: var(--seviye-renk);
}

/* Sonuç */
.sonuc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  text-align: center;
}

.sonuc::before {
  content: "";
  position: absolute;
  top: -35%;
  left: 50%;
  width: 70%;
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(91, 140, 255, 0.2), transparent);
  pointer-events: none;
}

.sonuc-ana,
.sonuc-yan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 720px;
}

.sonuc-yan {
  gap: 20px;
  container-type: inline-size;
}

.sonuc-etiket {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(15px, 1.2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--vurgu-acik);
}

.sonuc-etiket:focus {
  outline: none;
}

.sonuc-etiket svg {
  width: 1.3em;
  height: 1.3em;
}

.sonuc-deger {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  margin: 10px 0 0;
}

.sonuc-sayi {
  font-family: var(--rakam-tipi);
  font-size: clamp(96px, min(14vw, 28vh), 300px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 35%, #aebfff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sonuc-birim {
  margin-top: 8px;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 600;
  color: var(--yazi-2);
}

.sonuc-formul {
  margin: 18px 0 0;
  padding: 8px 16px;
  border: 1px solid var(--cizgi);
  border-radius: 999px;
  font-size: clamp(14px, 0.95vw, 18px);
  font-variant-numeric: tabular-nums;
  color: var(--yazi-3);
  background: rgba(5, 8, 12, 0.45);
}

.sonuc-formul b {
  font-weight: 600;
  color: var(--yazi-2);
}

.sonuc-detay {
  width: 100%;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--cizgi-guclu);
  border-radius: 20px;
  background: rgba(5, 8, 12, 0.45);
}

.sonuc-detay div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
}

.sonuc-detay div + div {
  border-top: 1px solid var(--cizgi);
}

.sonuc-detay dt {
  font-size: clamp(15px, 1vw, 18px);
  color: var(--yazi-3);
}

.sonuc-detay dd {
  margin: 0;
  font-size: clamp(20px, 1.7vw, 30px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Sonuç: anlama ve etkin okuma hızı */
.sonuc-metrikler {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
  width: 100%;
}

.metrik {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: clamp(16px, 1.6vw, 26px) clamp(18px, 1.7vw, 28px);
  border: 1px solid var(--cizgi-guclu);
  border-radius: 20px;
  text-align: left;
  background: rgba(5, 8, 12, 0.45);
}

.metrik-anlama {
  border-color: var(--seviye-cizgi);
  background: linear-gradient(180deg, var(--seviye-zemin), transparent 75%), rgba(5, 8, 12, 0.45);
}

.metrik-ust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-height: 32px;
}

.metrik-etiket {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(13px, 0.9vw, 17px);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--yazi-2);
}

.metrik-etiket svg {
  flex: none;
  width: 1.4em;
  height: 1.4em;
  color: var(--vurgu-acik);
}

.metrik-anlama .metrik-etiket svg {
  color: var(--seviye-renk);
}

.seviye-rozet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  border: 1px solid var(--seviye-cizgi);
  border-radius: 999px;
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--seviye-renk);
  background: var(--seviye-zemin);
}

.seviye-rozet::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.metrik-deger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.metrik-sayi {
  font-family: var(--rakam-tipi);
  font-size: clamp(48px, min(4.2vw, 8.5vh), 88px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: var(--yazi);
}

.metrik-anlama .metrik-sayi {
  color: var(--seviye-renk);
}

.metrik-etkin .metrik-sayi {
  color: #fff;
  background: linear-gradient(180deg, #ffffff 35%, #aebfff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metrik-birim {
  font-size: clamp(15px, 1.05vw, 20px);
  font-weight: 600;
  color: var(--yazi-2);
}

.seviye-cubuk {
  position: relative;
  height: 10px;
  margin: 4px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--yuzey-3);
}

.seviye-cubuk span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--seviye-dolgu), var(--seviye-renk));
  transform-origin: left center;
  animation: dolum 0.7s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Seviye eşik çizgileri (app.js ekler) */
.seviye-cubuk i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--zemin);
}

@keyframes dolum {
  from {
    transform: scaleX(0);
  }
}

.metrik-not {
  margin: 0;
  font-size: clamp(14px, 0.9vw, 17px);
  line-height: 1.45;
  color: var(--yazi-3);
}

.metrik-not b {
  font-weight: 600;
  color: var(--yazi-2);
}

.sonuc-eylemler {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sonuc-eylemler .dugme {
  width: 100%;
  min-width: 0;
}

.sonuc-eylemler .dugme-baslat {
  grid-column: 1 / -1;
}

.sonuc-eylemler .dugme-ikincil {
  gap: 10px;
  padding: 0 16px;
  font-size: clamp(15px, min(1.05vw, 2vh), 20px);
  white-space: nowrap;
}

/* Sağ sütun daralınca düzeltme düğmeleri alt alta */
@container (max-width: 520px) {
  .sonuc-eylemler {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1000px) {
  .sonuc {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 32px 56px;
    text-align: left;
  }

  .sonuc::before {
    left: 28%;
  }

  .sonuc-ana,
  .sonuc-yan {
    max-width: none;
  }

  .sonuc-ana {
    align-items: flex-start;
  }

  .sonuc-ana .sonuc-formul {
    margin-bottom: 28px;
  }

  .sonuc-ana .sonuc-detay,
  .sonuc-eylemler {
    margin-top: auto;
  }

  .sonuc-detay {
    display: flex;
  }

  .sonuc-detay div {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
    min-width: 0;
    padding: 14px clamp(14px, 1.2vw, 22px);
  }

  .sonuc-detay div + div {
    border-top: 0;
    border-left: 1px solid var(--cizgi);
  }

  .sonuc-detay dt {
    font-size: clamp(13px, 0.9vw, 16px);
  }

  .sonuc-detay dd {
    font-size: clamp(18px, 1.45vw, 26px);
    text-align: left;
  }
}

/* Alt bilgi */
.alt {
  padding-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--yazi-3);
}

.formuller {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.formuller li + li::before {
  content: "·";
  margin: 0 12px;
}

.alt b {
  font-weight: 600;
  color: var(--yazi-2);
}

abbr[title] {
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  cursor: help;
}

.gorunmez {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Büyük ekranlar */
@media (min-width: 1600px) and (min-height: 860px) {
  .marka-isaret {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .marka-isaret svg {
    width: 30px;
    height: 30px;
  }

  .marka-yazi strong {
    font-size: 23px;
  }

  .marka-yazi small,
  .kisayol {
    font-size: 16px;
  }

  .adim {
    font-size: 17px;
  }

  .adim-no {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .alt {
    font-size: 16px;
  }
}

/* Alçak ekranlar (dizüstü) */
@media (max-height: 700px) and (min-width: 601px) {
  .sayfa {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .ust {
    padding-bottom: 8px;
  }

  .adimlar {
    margin-bottom: 10px;
  }

  .alt {
    padding-top: 10px;
  }
}

/* Dar ekranlar */
@media (max-width: 900px) {
  body[data-durum="bitti"] .sahne,
  body[data-durum="anlama"] .sahne {
    grid-template-columns: minmax(0, 1fr);
  }

  .kisayol {
    display: none;
  }

  .formuller {
    flex-direction: column;
    gap: 4px;
  }

  .formuller li + li::before {
    content: none;
  }
}

@media (max-width: 600px) {
  .sayfa {
    padding: 12px 16px;
  }

  .kart {
    padding: 22px 16px;
  }

  .sonuc-formul {
    border-radius: 14px;
  }

  .sonuc-detay div {
    padding: 14px 16px;
  }

  .sonuc-detay dt {
    white-space: nowrap;
  }

  .sonuc-detay dd {
    font-size: 18px;
  }

  .marka-yazi small {
    display: none;
  }

  .adimlar {
    --adim-bosluk: 16px;
  }

  .adim + .adim::before {
    left: calc(var(--adim-bosluk) * -1 + 4px);
    width: calc(var(--adim-bosluk) - 8px);
  }

  .adim {
    gap: 10px;
    padding: 5px;
    font-size: 14px;
  }

  .adim-no {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .adim.tamam .adim-no::before {
    font-size: 15px;
  }

  .adim-ad {
    display: none;
  }

  .adim[aria-current="step"] {
    padding-right: 12px;
  }

  .adim[aria-current="step"] .adim-ad {
    display: inline;
  }

  .saat {
    font-size: clamp(56px, 21vw, 120px);
  }

  .dugme {
    width: 100%;
    min-height: 84px;
    padding: 0 24px;
  }

  .dugme-ikincil {
    min-height: 56px;
  }

  .giris-grup {
    min-height: 96px;
    padding: 0 20px;
  }

  .oran-alan .giris-grup input {
    font-size: 44px;
  }

  .oran-ayrac {
    min-height: 96px;
    font-size: 40px;
  }

  .seviye-olcek {
    gap: 6px;
  }

  .seviye-olcek li {
    padding: 7px 4px 6px;
    border-radius: 12px;
  }

  .metrik {
    padding: 16px;
  }

  .sonuc-eylemler {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
