:root {
  --primary: #17375f;
  --primary-2: #244d7a;
  --primary-3: #e7edf5;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #eceff3;
  --ink: #17243a;
  --muted: #748092;
  --line: rgba(23, 36, 58, 0.10);
  --gold: #7a1f3d;
  --gold-soft: #f2e4e9;
  --success: #285c86;
  --success-soft: #e1ebf4;
  --danger: #8a243e;
  --danger-soft: #f4e1e6;
  --navy: #17375f;
  --terracotta: #87435a;
  --purple: #66566f;
  --shadow-sm: 0 8px 24px rgba(31, 46, 69, 0.055);
  --shadow-lg: 0 24px 64px rgba(31, 46, 69, 0.14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% -10%, rgba(122, 31, 61, 0.075), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid rgba(199, 154, 85, 0.55);
  outline-offset: 3px;
}

.app-shell { min-height: 100vh; }

.view {
  min-height: 100vh;
  padding: 32px 24px 112px;
  animation: page-in 260ms ease both;
}

.page { width: min(100%, 1020px); margin: 0 auto; }
.page--narrow { width: min(100%, 720px); }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.page-header__actions { display: flex; align-items: center; gap: 10px; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(31px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.045em; }
h2 { margin-bottom: 14px; font-size: clamp(23px, 3vw, 30px); line-height: 1.16; letter-spacing: -0.035em; }
h3 { margin-bottom: 8px; font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; }
p { line-height: 1.6; }

.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.eyebrow--light { color: rgba(255,255,255,.58); }

.section { margin-top: 34px; }
.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section__header h2 { margin: 0; font-size: 22px; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 8px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 17px;
  padding: 0 22px;
  background: var(--primary);
  color: white;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(21, 61, 50, .16);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-2px); background: var(--primary-2); box-shadow: 0 13px 24px rgba(21, 61, 50, .2); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.btn--wide { width: 100%; }
.btn--soft { background: var(--primary-3); color: var(--primary); box-shadow: none; }
.btn--soft:hover { background: #d3e3db; box-shadow: none; }
.btn--ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn--gold { background: var(--gold); color: #2f2516; box-shadow: 0 10px 20px rgba(199,154,85,.19); }
.btn--gold:hover { background: #d0a567; }
.btn--danger { background: var(--danger); color: white; box-shadow: 0 10px 20px rgba(164,73,63,.18); }
.btn--danger:hover { background: #8f3d35; }

.icon-btn {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 254, 250, .92);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.icon-btn:hover { transform: translateY(-2px); background: white; }
.icon-btn--dark { color: white; border-color: rgba(255,255,255,.18); background: rgba(15,36,30,.56); backdrop-filter: blur(12px); }
.icon-btn--active { color: var(--gold); }

.icon { width: 21px; height: 21px; display: block; }
.icon--sm { width: 17px; height: 17px; }

.brand-mark {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  background: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.brand-mark__arc {
  position: absolute;
  left: 8px;
  top: 7px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-8deg);
}
.brand-mark__page {
  position: absolute;
  left: 9px;
  bottom: 7px;
  width: 16px;
  height: 8px;
  border-bottom: 2px solid #fff;
  border-radius: 0 0 50% 50%;
}
.brand-mark--large { width: 78px; height: 78px; border-radius: 27px; box-shadow: 0 22px 50px rgba(122,31,61,.18); }
.brand-mark--large .brand-mark__arc { left: 18px; top: 15px; width: 42px; height: 42px; border-width: 4px; }
.brand-mark--large .brand-mark__page { left: 20px; bottom: 16px; width: 38px; height: 18px; border-width: 4px; }

.splash {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #fff;
  color: var(--primary);
  transition: opacity 420ms ease, visibility 420ms ease;
}
.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .85;
  background-image: radial-gradient(circle at 50% 24%, rgba(122,31,61,.055) 0, transparent 26%), radial-gradient(circle at 25% 85%, rgba(23,55,95,.04) 0, transparent 32%);
}
.splash.is-hidden { opacity: 0; visibility: hidden; }
.splash .brand-mark { animation: splash-mark 800ms cubic-bezier(.22, 1, .36, 1) both; }
.splash__word { position: relative; margin-top: 22px; font-size: 31px; font-weight: 760; letter-spacing: .28em; text-indent: .28em; }
.splash__tagline { position: relative; margin-top: 9px; color: var(--muted); font-size: 13px; }

.side-nav { display: none; }

.bottom-nav {
  position: fixed;
  z-index: 40;
  left: 12px;
  right: 12px;
  bottom: calc(10px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  min-height: 68px;
  padding: 7px 5px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 22px;
  background: rgba(255, 254, 250, .91);
  box-shadow: 0 18px 52px rgba(20, 35, 30, .17);
  backdrop-filter: blur(20px);
}

.game-page { width: 100%; max-width: 1500px; margin: 0 auto; }
.game-page__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.game-page__header h1 { margin: 4px 0 5px; color: var(--ink); font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.game-page__header p { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.55; }
.game-account-badge { display: inline-flex; align-items: center; gap: 7px; flex: none; border: 1px solid rgba(21,61,50,.13); border-radius: 999px; padding: 9px 13px; background: rgba(255,255,255,.72); color: var(--primary); font-size: 11px; font-weight: 760; }
.game-frame-shell { overflow: hidden; border: 1px solid rgba(21,61,50,.12); border-radius: 30px; background: #071814; box-shadow: 0 24px 70px rgba(13,42,34,.16); }
.game-frame { display: block; width: 100%; height: calc(100dvh - 180px); min-height: 720px; border: 0; background: #071814; }
.is-game { overflow: hidden; background: #071814; }
.is-game .app-shell { height: 100dvh; min-height: 0; }
.is-game .view {
  height: calc(100dvh - 88px - var(--safe-bottom));
  min-height: 0;
  overflow: hidden;
  padding: 8px 8px 0;
}
.is-game .game-page,
.is-game .game-frame-shell,
.is-game .game-frame { height: 100%; min-height: 0; }
.is-game .game-page { max-width: none; }
.is-game .game-page__header { display: none; }
.is-game .game-frame-shell { margin: 0; border-radius: 22px; box-shadow: 0 12px 36px rgba(5,25,20,.2); }
.is-game .game-frame { min-height: 0; }
.is-immersive .bottom-nav { display: none; }
.is-immersive .view { padding-bottom: 42px; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #858a87;
  cursor: pointer;
  font-size: 10px;
  font-weight: 690;
  transition: color 180ms ease, background 180ms ease;
}
.nav-item.is-active { color: var(--primary); background: var(--primary-3); }
.nav-item .icon { width: 22px; height: 22px; }

.topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.greeting p { margin: 0; color: var(--muted); font-size: 14px; }
.greeting h1 { margin: 2px 0 0; font-size: clamp(29px, 4vw, 40px); }
.streak-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  border: 1px solid rgba(199, 154, 85, .26);
  border-radius: 15px;
  padding: 0 13px;
  background: var(--gold-soft);
  color: #6a4b1e;
  font-weight: 800;
}
.streak-pill .icon { color: #d17835; fill: currentColor; }

.hero-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #73513c;
  color: white;
  box-shadow: var(--shadow-lg);
}
.hero-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 18, 15, .05) 20%, rgba(9, 18, 15, .82) 93%); }
.hero-card__top { position: absolute; z-index: 2; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; }
.hero-card__body { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; }
.hero-card__body h2 { max-width: 610px; margin: 7px 0 10px; color: white; font-size: clamp(28px, 5vw, 41px); }
.hero-card__body p { max-width: 580px; margin-bottom: 18px; color: rgba(255,255,255,.72); font-size: 14px; }
.hero-card__footer { display: flex; align-items: center; gap: 14px; }
.hero-card__footer .btn { min-width: 130px; background: white; color: var(--primary); box-shadow: none; }
.hero-card__meta { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.82); font-size: 13px; }

.label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(250,249,246,.18);
  color: white;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .02em;
  backdrop-filter: blur(10px);
}
.label--solid { background: var(--primary-3); color: var(--primary); backdrop-filter: none; }
.label--gold { background: var(--gold-soft); color: #75521e; backdrop-filter: none; }
.label--new { background: #e3ebf2; color: var(--navy); backdrop-filter: none; }

.dashboard-grid { display: grid; gap: 14px; margin-top: 14px; }
.goal-card, .question-card, .continue-card, .stat-card, .mode-card, .settings-row, .profile-card {
  border: 1px solid rgba(23, 26, 25, .065);
  background: rgba(255, 254, 250, .93);
  box-shadow: var(--shadow-sm);
}
.goal-card, .question-card { border-radius: var(--radius-lg); padding: 20px; }
.goal-card { display: flex; align-items: center; gap: 17px; }
.goal-card__ring {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--primary) var(--progress, 70%), #e4e6e0 0);
}
.goal-card__ring::after { content: ""; grid-area: 1 / 1; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); }
.goal-card__ring strong { z-index: 1; grid-area: 1 / 1; font-size: 13px; }
.goal-card h3, .question-card h3 { margin: 0 0 5px; }
.goal-card p, .question-card p { margin: 0; color: var(--muted); font-size: 13px; }
.question-card { position: relative; overflow: hidden; cursor: pointer; }
.question-card::after { content: "?"; position: absolute; right: 14px; bottom: -26px; color: rgba(21,61,50,.055); font-family: Georgia, serif; font-size: 120px; font-weight: 800; }
.question-card__top { display: flex; justify-content: space-between; margin-bottom: 24px; }
.xp { display: inline-flex; align-items: center; gap: 5px; color: #93691f; font-size: 12px; font-weight: 800; }

.horizontal-scroll {
  display: grid;
  grid-auto-columns: minmax(235px, 72%);
  grid-auto-flow: column;
  gap: 13px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.horizontal-scroll::-webkit-scrollbar { display: none; }

.ranked-list { display: grid; gap: 10px; }
.ranked-card { display: grid; grid-template-columns: 38px 64px 1fr auto; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease; }
.ranked-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ranked-card__number { color: var(--gold); font-size: 18px; font-weight: 800; }
.ranked-card img { width: 64px; height: 56px; border-radius: 12px; object-fit: cover; }
.ranked-card h3 { margin: 2px 0 3px; font-size: 16px; }
.ranked-card p { margin: 0; color: var(--muted); font-size: 12px; }
.ranked-card > .icon { width: 18px; color: var(--muted); }

.course-card {
  position: relative;
  overflow: hidden;
  min-height: 265px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 15px 34px rgba(22,33,29,.11); }
.course-card__image { width: 100%; height: 154px; object-fit: cover; }
.course-card__body { padding: 15px 16px 17px; }
.course-card__body h3 { min-height: 47px; margin-bottom: 10px; }
.course-card__meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }

.search-wrap { position: relative; margin: 18px 0; }
.search-wrap .icon { position: absolute; left: 17px; top: 50%; color: var(--muted); transform: translateY(-50%); }
.search {
  width: 100%;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 18px 0 50px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.search::placeholder { color: #999e9b; }

.chips { display: flex; gap: 9px; overflow-x: auto; padding: 2px 1px 7px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  min-height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 15px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, border 160ms ease;
}
.chip.is-active { border-color: var(--primary); background: var(--primary); color: white; }

.featured-strip {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  margin-top: 24px;
  border-radius: var(--radius-xl);
  background: var(--primary);
  color: white;
}
.featured-strip img { position: absolute; right: 0; top: 0; width: 61%; height: 100%; object-fit: cover; }
.featured-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--primary) 26%, rgba(21,61,50,.88) 47%, rgba(21,61,50,.05)); }
.featured-strip__body { position: relative; z-index: 1; width: 58%; padding: 28px; }
.featured-strip__body h2 { margin: 12px 0 8px; font-size: clamp(26px, 4vw, 34px); }
.featured-strip__body p { color: rgba(255,255,255,.68); font-size: 13px; }

.catalog-grid { display: grid; gap: 14px; }
.catalog-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 134px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 180ms ease;
}
.catalog-card:hover { transform: translateY(-3px); }
.catalog-card img { width: 100%; height: 100%; object-fit: cover; }
.catalog-card__body { padding: 16px; }
.catalog-card__body h3 { margin-top: 7px; }
.catalog-card__meta { color: var(--muted); font-size: 12px; }

.mode-hero { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 30px; background: var(--primary); color: white; }
.mode-hero::before { content: ""; position: absolute; width: 230px; height: 230px; right: -68px; top: -72px; border: 36px solid rgba(199,154,85,.18); border-radius: 50%; }
.mode-hero::after { content: ""; position: absolute; right: 35px; bottom: -70px; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.14); border-radius: 42px; transform: rotate(25deg); }
.mode-hero__content { position: relative; z-index: 1; max-width: 520px; }
.mode-hero h2 { margin: 11px 0; color: white; font-size: clamp(30px,5vw,43px); }
.mode-hero p { color: rgba(255,255,255,.67); }
.mode-hero .btn { background: white; color: var(--primary); box-shadow: none; }
.mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mode-card { min-height: 155px; border-radius: var(--radius-lg); padding: 19px; cursor: pointer; transition: transform 180ms ease; }
.mode-card:hover { transform: translateY(-3px); }
.mode-card__icon { display: grid; width: 45px; height: 45px; place-items: center; margin-bottom: 17px; border-radius: 15px; background: var(--primary-3); color: var(--primary); }
.mode-card h3 { margin-bottom: 4px; }
.mode-card p { margin: 0; color: var(--muted); font-size: 12px; }

.collection-hero {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #0c2946;
  color: white;
  box-shadow: var(--shadow-lg);
}
.collection-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,21,34,.1), rgba(6,21,34,.85)); }
.collection-hero__body { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 24px; }
.collection-hero__body h2 { margin: 8px 0; color: white; font-size: clamp(29px,5vw,41px); }
.collection-hero__meta { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.7); font-size: 13px; }
.mini-progress { overflow: hidden; width: 100%; height: 7px; border-radius: 99px; background: #e4e3dd; }
.mini-progress span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.mini-progress--light { width: min(240px, 55vw); background: rgba(255,255,255,.2); }
.mini-progress--light span { background: var(--gold); }
.mini-progress--dark { background: rgba(255,255,255,.13); }
.mini-progress--dark span { background: var(--gold); }

.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.collectible {
  position: relative;
  overflow: hidden;
  aspect-ratio: .72;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(21, 34, 29, .1);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 230ms ease, box-shadow 230ms ease;
}
.collectible:hover { transform: translateY(-5px) rotate(.4deg); box-shadow: 0 19px 38px rgba(21,34,29,.16); }
.collectible__image { width: 100%; height: 68%; object-fit: cover; }
.collectible__body { padding: 14px; }
.collectible__body h3 { margin-bottom: 3px; font-size: 16px; }
.collectible__body p { margin: 0; color: var(--muted); font-size: 11px; }
.collectible__rarity { position: absolute; top: 12px; left: 12px; }
.collectible.is-locked { background: #e7e6e0; box-shadow: none; cursor: default; }
.collectible.is-locked .collectible__image { filter: grayscale(1) brightness(.58); opacity: .52; }
.collectible.is-locked::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(30,35,33,.1)); }
.lock-badge { position: absolute; z-index: 2; top: 32%; left: 50%; display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.84); color: #4d5551; transform: translate(-50%,-50%); backdrop-filter: blur(8px); }

.profile-top {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 24px;
  border-radius: var(--radius-xl);
  padding: 22px;
  background: var(--primary);
  color: white;
}

/* Sunucudan gelen ilk HTML; arama motorları ve yavaş bağlantılar için anlamlı içerik sağlar. */
.seo-prerender { max-width: 980px; margin: 0 auto; padding: 52px 36px 96px; color: var(--ink); }
.seo-prerender__hero { padding: 38px; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(145deg, #fff 45%, #f7edf2); box-shadow: var(--shadow-sm); }
.seo-prerender__hero > span { color: var(--primary); font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.seo-prerender__hero h1 { max-width: 760px; margin: 13px 0 14px; font-size: clamp(34px, 5vw, 58px); line-height: 1.06; }
.seo-prerender__hero p, .seo-prerender section p { max-width: 760px; color: var(--muted); line-height: 1.75; }
.seo-prerender section { margin-top: 28px; }
.seo-prerender section h2 { margin-bottom: 8px; }
.seo-prerender ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; padding-left: 22px; }
.seo-prerender nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.seo-prerender nav a { border-radius: 999px; padding: 11px 16px; background: var(--primary); color: #fff; font-weight: 800; text-decoration: none; }
@media (max-width: 640px) { .seo-prerender { padding: 28px 18px 96px; } .seo-prerender__hero { padding: 26px 22px; border-radius: 25px; } .seo-prerender ul { grid-template-columns: 1fr; } }
.avatar { display: grid; width: 70px; height: 70px; flex: 0 0 70px; place-items: center; border: 2px solid rgba(255,255,255,.2); border-radius: 22px; background: #d5b47d; color: #473213; font-size: 23px; font-weight: 820; }
.profile-top h2 { margin-bottom: 4px; color: white; }
.profile-top p { margin: 0; color: rgba(255,255,255,.63); font-size: 13px; }
.profile-top__xp { margin-left: auto; text-align: right; }
.profile-top__xp strong { display: block; color: var(--gold); font-size: 21px; }
.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.achievement-grid { display: grid; gap: 10px; }
.achievement-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.achievement-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold-soft); color: #8a622c; }
.achievement-card h3 { margin: 0 0 3px; font-size: 15px; }
.achievement-card p { margin: 0; color: var(--muted); font-size: 12px; }
.achievement-card > span { border-radius: 999px; padding: 5px 8px; background: var(--success-soft); color: var(--success); font-size: 10px; font-weight: 800; white-space: nowrap; }
.achievement-card.is-locked { opacity: .58; }
.achievement-card.is-locked .achievement-card__icon { background: var(--surface-2); color: var(--muted); }
.achievement-card.is-locked > span { background: var(--surface-2); color: var(--muted); }
.knowledge-shape { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(145deg, rgba(21,61,50,.045), rgba(199,154,85,.08)); }
.knowledge-shape .section__header { align-items: flex-end; }
.knowledge-overview { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 22px; margin: 4px 0 18px; padding: 16px 20px; border-radius: var(--radius-lg); background: var(--primary); color: white; }
.knowledge-overview strong { display: block; margin-bottom: 6px; font-size: 18px; }
.knowledge-overview p { margin: 0; color: rgba(255,255,255,.62); font-size: 12px; }
.knowledge-radar { width: 150px; height: 150px; overflow: visible; }
.knowledge-radar__grid { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1; }
.knowledge-radar__shape { fill: rgba(199,154,85,.35); stroke: #e7bf7f; stroke-width: 2.5; stroke-linejoin: round; }
.knowledge-radar > circle { fill: #e7bf7f; }
.domain-grid { display: grid; gap: 11px; }
.domain-card { padding: 16px; border: 1px solid color-mix(in srgb, var(--domain), transparent 78%); border-radius: var(--radius-md); background: rgba(255,254,250,.86); box-shadow: var(--shadow-sm); }
.domain-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.domain-card__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--domain), white 83%); color: var(--domain); }
.domain-card__icon .icon { width: 19px; height: 19px; }
.domain-card__level { border-radius: 999px; padding: 5px 8px; background: color-mix(in srgb, var(--domain), white 88%); color: var(--domain); font-size: 10px; font-weight: 800; }
.domain-card h3 { min-height: 38px; margin-bottom: 10px; font-size: 15px; }
.domain-card__progress { height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.domain-card__progress span { display: block; height: 100%; border-radius: inherit; background: var(--domain); }
.domain-card p { display: flex; justify-content: space-between; gap: 8px; margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.domain-card p strong { color: var(--domain); }
.source-list { display: grid; gap: 8px; }
.source-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--primary); font-size: 12px; font-weight: 700; }
.source-list a:hover { border-color: rgba(21,61,50,.25); background: var(--primary-3); }
.saved-card { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; }
.saved-card img { width: 76px; height: 70px; border-radius: 13px; object-fit: cover; }
.saved-card h3 { margin: 0 0 3px; }
.saved-card p { margin: 0; color: var(--muted); font-size: 12px; }
.saved-card > .icon { color: var(--gold); }
.stat-card { border-radius: var(--radius-md); padding: 17px; }
.stat-card__icon { display: grid; width: 36px; height: 36px; place-items: center; margin-bottom: 13px; border-radius: 12px; background: var(--gold-soft); color: #835e23; }
.stat-card strong { display: block; font-size: 20px; }
.stat-card span { color: var(--muted); font-size: 12px; }
.weekly-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.weekly-chart { display: grid; height: 145px; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 8px; margin-top: 22px; }
.week-day { display: grid; height: 100%; grid-template-rows: 1fr auto; align-items: end; gap: 8px; text-align: center; }
.week-day__bar { position: relative; width: 100%; max-width: 30px; height: var(--h); min-height: 5px; justify-self: center; border-radius: 9px 9px 4px 4px; background: var(--primary-3); }
.week-day.is-today .week-day__bar { background: var(--primary); }
.week-day span { color: var(--muted); font-size: 10px; }
.settings-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.settings-row { display: flex; align-items: center; gap: 13px; min-height: 58px; width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 0 17px; background: transparent; box-shadow: none; cursor: pointer; text-align: left; }
.settings-row:last-child { border-bottom: 0; }
.settings-row span:last-child { margin-left: auto; color: var(--muted); }

.detail-hero { position: relative; height: min(52vh, 500px); min-height: 360px; overflow: hidden; margin: -32px -24px 0; background: #76523f; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero img { transform: scale(1.015); transition: transform 900ms cubic-bezier(.2,.7,.2,1), filter 500ms ease; }
.detail-hero:hover img { transform: scale(1.045); filter: saturate(1.06); }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,21,17,.22), rgba(10,21,17,.03) 44%, rgba(10,21,17,.72)); }
.detail-hero__nav { position: absolute; z-index: 1; top: 24px; left: 24px; right: 24px; display: flex; justify-content: space-between; }
.detail-hero__label { position: absolute; z-index: 1; bottom: 23px; left: 24px; }
.detail-hero__sequence { position: absolute; z-index: 1; right: 24px; bottom: 25px; color: rgba(255,255,255,.78); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.detail-image-credit { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 26px; padding: 9px 3px 0; color: var(--muted); }
.detail-body { position: relative; width: min(calc(100% + 0px), 760px); margin: -1px auto 0; padding-top: 28px; }
.detail-body__intro { color: var(--muted); font-size: 17px; }
.meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 23px 0; }
.meta-item { border-radius: 15px; padding: 14px 8px; background: var(--surface-2); text-align: center; }
.meta-item .icon { margin: 0 auto 7px; color: var(--primary); }
.meta-item strong { display: block; font-size: 13px; }
.meta-item span { color: var(--muted); font-size: 10px; }
.learn-list { list-style: none; margin: 0; padding: 0; }
.learn-list li { display: flex; align-items: flex-start; gap: 11px; margin: 13px 0; color: #3b403e; line-height: 1.45; }
.learn-list .icon { flex: 0 0 auto; color: var(--success); }
.sticky-cta { position: sticky; z-index: 10; bottom: 78px; margin-top: 28px; padding: 12px; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; background: rgba(246,244,238,.85); backdrop-filter: blur(18px); }

.reader-head { position: sticky; z-index: 20; top: 0; margin: -32px -24px 0; padding: 16px 24px 13px; background: rgba(246,244,238,.9); backdrop-filter: blur(18px); }
.reader-head__row { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; }
.reader-head__title { overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 750; }
.reader-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #dfdfd9; }
.reader-progress span { display: block; height: 100%; background: var(--gold); transition: width 360ms ease; }
.page--reader { position: relative; overflow-x: clip; isolation: isolate; }
.page--reader::before { position: absolute; z-index: -1; top: 30px; right: -32vw; width: 95vw; height: 580px; background: linear-gradient(90deg, var(--bg) 0%, rgba(246,244,238,.54) 46%, rgba(246,244,238,.18)), url("assets/reader-atmosphere-v2.png") center / cover no-repeat; content: ""; opacity: .12; filter: saturate(.7); pointer-events: none; mask-image: linear-gradient(180deg, #000, transparent 92%); }
.reader { padding-top: 27px; }
.reader-map { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin: 28px 0 10px; border: 1px solid rgba(21,61,50,.09); border-radius: 17px; padding: 12px 15px; background: rgba(255,255,255,.72); box-shadow: 0 10px 30px rgba(21,61,50,.045); backdrop-filter: blur(14px); }
.reader-map > span { color: var(--primary); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.reader-map > div { display: flex; min-width: 0; align-items: center; }
.reader-map i { display: grid; width: 100%; height: 4px; place-items: center; background: #dce1dd; font-style: normal; }
.reader-map i:first-child { border-radius: 5px 0 0 5px; }
.reader-map i:last-child { border-radius: 0 5px 5px 0; }
.reader-map i.is-done { background: #88a798; }
.reader-map i.is-current { background: var(--gold); }
.reader-map i b { display: none; }
.reader-map small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.reader__kicker { margin-bottom: 11px; color: #66766f; font-size: 9px; font-weight: 820; letter-spacing: .13em; }
.reader__count { color: var(--gold); font-size: 12px; font-weight: 820; letter-spacing: .08em; }
.reader__title { margin: 10px 0 20px; font-size: clamp(31px, 6vw, 49px); }
.reader__lead { color: #454a47; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.78; }
.reader__figure { overflow: hidden; margin: 28px 0; border-radius: 26px; background: var(--primary); box-shadow: 0 20px 48px rgba(13,48,39,.14); }
.reader__image { display: block; width: 100%; max-height: 380px; margin: 0; object-fit: cover; }
.reader__figure figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); padding: 10px 14px; color: rgba(255,255,255,.58); font-size: 9px; letter-spacing: .04em; }
.image-credit { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; color: #717780; font-size: 10px; line-height: 1.5; letter-spacing: 0; }
.image-caption { display: block; color: #717780; font-size: 11px; line-height: 1.55; margin-bottom: 3px; }
.image-credit a { color: inherit; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 2px; }
.image-credit a:hover { opacity: 1; color: var(--gold-deep); }
.reader__figure .image-credit a:hover { color: #f0c884; }
.reader-prompt { display: grid; grid-template-columns: auto 1fr; gap: 15px; margin: 24px 0 4px; border: 1px solid rgba(21,61,50,.13); border-radius: 21px; padding: 19px 20px; background: linear-gradient(135deg, rgba(231,240,235,.92), rgba(255,255,255,.9)); box-shadow: 0 13px 32px rgba(21,61,50,.055); }
.reader-prompt > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 14px; background: var(--primary); color: white; }
.reader-prompt small { display: block; margin-bottom: 5px; color: var(--primary); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.reader-prompt strong { display: block; color: #24342f; line-height: 1.45; }
.reader-prompt p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.fact-card, .verse-card, .key-card, .timeline-card { margin: 25px 0; border-radius: var(--radius-lg); padding: 22px; }
.fact-card { background: var(--gold-soft); }
.fact-card__icon { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 14px; border-radius: 13px; background: rgba(255,255,255,.65); color: #836022; }
.fact-card h3 { color: #6f501e; }
.fact-card p { margin: 0; color: #684f29; }
.verse-card { background: var(--primary); color: white; text-align: center; }
.verse-card__arabic { margin: 5px 0 18px; font-family: "Traditional Arabic", "Noto Naskh Arabic", serif; font-size: clamp(29px, 6vw, 41px); line-height: 1.75; direction: rtl; }
.verse-card__meal { margin: 0 auto 14px; max-width: 560px; color: rgba(255,255,255,.77); font-family: Georgia, serif; font-size: 16px; }
.verse-card__source { color: var(--gold); font-size: 12px; font-weight: 780; }
.key-card { border: 1px solid #cbded5; background: #e7f0eb; }
.timeline-card { border: 1px solid var(--line); background: var(--surface); }
.timeline-item { position: relative; padding: 0 0 22px 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: -5px; width: 1px; background: #cfd6d2; }
.timeline-item:last-child::before { display: none; }
.timeline-item::after { content: ""; position: absolute; left: 2px; top: 6px; width: 9px; height: 9px; border: 2px solid var(--surface); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.timeline-item strong { display: block; margin-bottom: 3px; }
.timeline-item p { margin: 0; color: var(--muted); font-size: 13px; }
.reader-actions { display: flex; gap: 10px; margin-top: 30px; }
.reader-actions .btn { flex: 1; }

.quiz-head { margin-bottom: 32px; }
.quiz-progress-info { display: flex; justify-content: space-between; margin-bottom: 11px; color: var(--muted); font-size: 12px; font-weight: 700; }
.quiz-question { margin: 34px 0 24px; font-size: clamp(27px, 5vw, 39px); line-height: 1.22; }
.quiz-options { display: grid; gap: 11px; }
.quiz-option {
  display: grid;
  min-height: 64px;
  grid-template-columns: 37px 1fr auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 16px 10px 12px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border 160ms ease, transform 160ms ease, background 160ms ease;
}
.quiz-option:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(21,61,50,.35); }
.quiz-option__letter { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-weight: 800; }
.quiz-option.is-correct { border-color: #87bda4; background: var(--success-soft); color: #17583f; }
.quiz-option.is-correct .quiz-option__letter { background: var(--success); color: white; }
.quiz-option.is-wrong { border-color: #d9a39d; background: var(--danger-soft); color: #823a33; }
.quiz-option.is-wrong .quiz-option__letter { background: var(--danger); color: white; }
.answer-feedback { margin-top: 18px; border-radius: var(--radius-lg); padding: 20px; animation: rise-in 220ms ease both; }
.answer-feedback.is-correct { background: var(--success-soft); color: #194e3b; }
.answer-feedback.is-wrong { background: var(--danger-soft); color: #75362f; }
.answer-feedback__title { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 18px; font-weight: 820; }
.answer-feedback p { margin: 0 0 17px; font-size: 14px; }

.result-card { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 36px 24px; background: var(--primary); color: white; text-align: center; box-shadow: var(--shadow-lg); }
.result-card::before, .result-card::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.result-card::before { width: 220px; height: 220px; left: -90px; top: -100px; }
.result-card::after { width: 160px; height: 160px; right: -70px; bottom: -75px; }
.result-score { position: relative; display: grid; width: 142px; height: 142px; place-items: center; margin: 0 auto 22px; border-radius: 50%; background: conic-gradient(var(--gold) var(--score), rgba(255,255,255,.13) 0); }
.result-score::after { content: ""; grid-area: 1/1; width: 116px; height: 116px; border-radius: 50%; background: var(--primary); }
.result-score strong { z-index: 1; grid-area: 1/1; font-size: 34px; }
.result-card h1 { position: relative; color: white; }
.result-card p { position: relative; color: rgba(255,255,255,.69); }
.result-rewards { position: relative; display: flex; justify-content: center; gap: 28px; margin: 25px 0; }
.result-reward strong { display: block; color: var(--gold); font-size: 20px; }
.result-reward span { color: rgba(255,255,255,.55); font-size: 11px; }
.reward-sync { display: grid; gap: 7px; margin: 18px 0 0; border: 1px solid rgba(223,184,105,.45); border-radius: 16px; padding: 14px; background: rgba(255,248,232,.1); color: white; text-align: left; }
.reward-sync strong { font-size: 12px; }
.reward-sync span { color: rgba(255,255,255,.72); font-size: 10px; line-height: 1.5; }
.reward-sync .btn { justify-self: start; margin-top: 3px; }
.unlock-card { display: flex; align-items: center; gap: 15px; margin-top: 16px; border: 1px solid rgba(199,154,85,.3); border-radius: var(--radius-lg); padding: 12px; background: var(--gold-soft); color: #4a381d; text-align: left; animation: unlock 650ms cubic-bezier(.2, .9, .2, 1) both; }
.unlock-card img { width: 74px; height: 86px; border-radius: 14px; object-fit: cover; }
.unlock-card h3 { margin-bottom: 3px; }
.unlock-card p { margin: 0; color: #765d38; font-size: 12px; }

.onboarding {
  position: fixed;
  z-index: 900;
  inset: 0;
  overflow: auto;
  background: var(--bg);
}
.onboarding[hidden] { display: none; }
.onboarding__layout { min-height: 100%; display: grid; }
.onboarding__visual { position: relative; height: 36vh; min-height: 255px; max-height: 340px; overflow: hidden; background: var(--primary); }
.onboarding__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.onboarding__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,61,50,.04), rgba(21,61,50,.43)); }
.onboarding__brand { position: absolute; z-index: 2; top: 22px; left: 22px; display: flex; align-items: center; gap: 10px; color: white; font-size: 15px; font-weight: 800; letter-spacing: .16em; }
.onboarding__body { display: flex; min-height: 64vh; flex-direction: column; padding: 22px 22px calc(22px + var(--safe-bottom)); }
.onboarding__steps { display: flex; gap: 6px; margin-bottom: 25px; }
.onboarding__step { width: 25px; height: 4px; border-radius: 5px; background: #dddcd6; }
.onboarding__step.is-active { width: 46px; background: var(--primary); }
.onboarding__body h1 { font-size: clamp(34px, 8vw, 52px); }
.onboarding__body > p { color: var(--muted); }
.onboarding__actions { margin-top: auto; padding-top: 22px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 21px; }
.choice {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 12px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 720;
  text-align: center;
}
.choice.is-active { border-color: var(--primary); background: var(--primary-3); color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.interest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 18px; }
.interest-choice { justify-content: flex-start; gap: 9px; min-height: 56px; }
.level-list { display: grid; gap: 10px; margin-top: 20px; }
.level-choice { display: grid; grid-template-columns: 1fr auto; justify-content: stretch; text-align: left; }
.level-choice small { display: block; margin-top: 3px; color: var(--muted); font-weight: 500; }
.level-choice.is-active small { color: #426a5e; }

.auth-screen {
  position: fixed;
  z-index: 920;
  inset: 0;
  overflow: auto;
  background: var(--bg);
}
.auth-screen[hidden] { display: none; }
.auth-layout { min-height: 100%; display: grid; }
.auth-visual {
  position: relative;
  height: 34vh;
  min-height: 250px;
  max-height: 330px;
  overflow: hidden;
  background: var(--primary);
}
.auth-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,24,19,.08), rgba(6,24,19,.72)); }
.auth-brand {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 16px;
  font-weight: 820;
  letter-spacing: .16em;
}
.auth-visual__copy { position: absolute; z-index: 2; right: 22px; bottom: 22px; left: 22px; color: white; }
.auth-visual__copy h2 { max-width: 530px; margin: 8px 0; color: white; font-size: clamp(25px, 5vw, 40px); }
.auth-visual__copy p { max-width: 510px; margin: 0; color: rgba(255,255,255,.68); font-size: 12px; }
.auth-panel { display: flex; min-height: 66vh; align-items: center; justify-content: center; padding: 28px 22px calc(28px + var(--safe-bottom)); }
.auth-card { width: min(100%, 460px); }
.auth-card__badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 0 11px;
  background: var(--primary-3);
  color: var(--primary);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .04em;
}
.auth-card h1 { margin-bottom: 12px; font-size: clamp(34px, 7vw, 48px); }
.auth-card__intro { margin-bottom: 25px; color: var(--muted); font-size: 14px; }
.oauth-stack { display: grid; gap: 11px; }
.oauth-btn {
  position: relative;
  display: grid;
  min-height: 58px;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  width: 100%;
  border: 1px solid #d9dbd7;
  border-radius: 17px;
  padding: 0 17px;
  background: white;
  color: #202321;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22,33,29,.045);
  font-size: 14px;
  font-weight: 740;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.oauth-btn:hover { transform: translateY(-2px); border-color: #aeb5b1; box-shadow: 0 12px 28px rgba(22,33,29,.09); }
.oauth-btn--apple { border-color: #101211; background: #101211; color: white; }
.oauth-btn--apple:hover { border-color: #2e3431; background: #242826; }
.oauth-btn__logo { display: grid; width: 25px; height: 25px; place-items: center; }
.oauth-btn__logo svg { display: block; width: 23px; height: 23px; }
.oauth-btn__arrow { justify-self: end; opacity: .48; }
.oauth-btn.is-loading { pointer-events: none; }
.oauth-btn.is-loading .oauth-btn__arrow { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; opacity: .65; animation: auth-spin 650ms linear infinite; }
.auth-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 23px 0; }
.auth-trust__item { border-radius: 13px; padding: 11px 8px; background: var(--surface-2); color: var(--muted); font-size: 9px; line-height: 1.4; text-align: center; }
.auth-trust__item strong { display: block; margin-top: 5px; color: #3f4542; font-size: 9px; }
.auth-legal { margin: 0; color: #8a8f8c; font-size: 10px; line-height: 1.6; text-align: center; }
.auth-legal a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.auth-error { margin-bottom: 14px; border-radius: 13px; padding: 11px 13px; background: var(--danger-soft); color: var(--danger); font-size: 11px; }
.feedback-field { display: grid; gap: 8px; margin: 16px 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.feedback-field select, .feedback-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 15px; background: var(--card); color: var(--text); font: inherit; font-weight: 500; padding: 13px 14px; outline: none; }
.feedback-field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.feedback-field select:focus, .feedback-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(21,61,50,.08); }
.account-provider { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; border-radius: 999px; padding: 4px 9px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); font-size: 9px; }
.settings-row--danger { color: var(--danger); }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: end center; padding: 18px; background: rgba(8,16,13,.52); backdrop-filter: blur(7px); animation: fade-in 180ms ease both; }
.modal { width: min(100%, 560px); max-height: 86vh; overflow: auto; border-radius: 28px; padding: 24px; background: var(--bg); box-shadow: 0 28px 80px rgba(0,0,0,.28); animation: sheet-in 260ms cubic-bezier(.22,1,.36,1) both; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.daily-options { display: grid; gap: 9px; margin: 18px 0; }

.toast { position: fixed; z-index: 1200; left: 50%; bottom: calc(92px + var(--safe-bottom)); min-width: 210px; max-width: calc(100% - 32px); border-radius: 15px; padding: 13px 17px; background: #1c2522; color: white; box-shadow: 0 14px 38px rgba(0,0,0,.25); font-size: 13px; font-weight: 650; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 18px); transition: opacity 200ms ease, transform 200ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.empty-state { border: 1px dashed #c9cbc7; border-radius: var(--radius-lg); padding: 42px 22px; color: var(--muted); text-align: center; }
.empty-state__icon { display: grid; width: 62px; height: 62px; place-items: center; margin: 0 auto 16px; border-radius: 20px; background: var(--primary-3); color: var(--primary); }

@media (min-width: 660px) {
  .view { padding-inline: 34px; }
  .dashboard-grid { grid-template-columns: .9fr 1.1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-stats { grid-template-columns: repeat(4, 1fr); }
  .achievement-grid { grid-template-columns: repeat(2, 1fr); }
  .domain-grid { grid-template-columns: repeat(3, 1fr); }
  .onboarding__layout { grid-template-columns: 48% 52%; }
  .onboarding__visual { width: 100%; height: 100vh; min-height: 100vh; max-height: none; }
  .onboarding__body { min-height: 100vh; padding: 56px clamp(36px,6vw,80px); justify-content: center; }
  .onboarding__actions { margin-top: 30px; }
  .auth-layout { grid-template-columns: 50% 50%; }
  .auth-visual { width: 100%; height: 100vh; min-height: 100vh; max-height: none; }
  .auth-visual__copy { right: clamp(34px,5vw,74px); bottom: 58px; left: clamp(34px,5vw,74px); }
  .auth-panel { min-height: 100vh; padding: 46px clamp(34px,6vw,82px); }
  .modal-backdrop { place-items: center; }
  .featured-strip { min-height: 300px; }
}

@media (min-width: 980px) {
  .app-shell { padding-left: 250px; }
  .view { padding: 42px 44px 60px; }
  .side-nav {
    position: fixed;
    z-index: 50;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    width: 250px;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,.08);
    padding: 30px 20px 24px;
    background: #102f27;
    color: white;
  }
  .brand { display: flex; align-items: center; gap: 11px; margin: 0 9px 34px; }
  .brand__word { font-size: 18px; font-weight: 780; letter-spacing: .18em; }
  .side-nav__items { display: grid; gap: 7px; }
  .side-nav .nav-item { min-height: 49px; justify-content: flex-start; flex-direction: row; gap: 12px; padding: 0 14px; color: rgba(255,255,255,.55); font-size: 13px; }
  .side-nav .nav-item.is-active { background: rgba(255,255,255,.1); color: white; }
  .side-nav__goal { margin-top: auto; border: 1px solid rgba(255,255,255,.09); border-radius: 20px; padding: 17px; background: rgba(255,255,255,.05); }
  .side-nav__goal-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .side-nav__goal-row span { color: var(--gold); font-size: 12px; font-weight: 750; }
  .side-nav__goal p { margin: 10px 0 0; color: rgba(255,255,255,.48); font-size: 11px; line-height: 1.5; }
  .admin-link { display: flex; align-items: center; gap: 9px; margin-top: 13px; border-radius: 13px; padding: 11px 10px; color: rgba(255,255,255,.48); font-size: 11px; transition: color 160ms ease, background 160ms ease; }
  .admin-link:hover { background: rgba(255,255,255,.06); color: white; }
  .admin-link span:last-child { margin-left: auto; }
  .admin-link .icon { width: 16px; height: 16px; }
  .bottom-nav { display: none; }
  .is-immersive .view { padding-bottom: 60px; }
  .sticky-cta { bottom: 20px; }
  .detail-hero { margin: -42px -44px 0; border-radius: 0 0 34px 34px; }
  .reader-head { margin: -42px -44px 0; padding: 17px 44px 14px; }
  .toast { bottom: 28px; }
  .is-game .view { height: 100dvh; padding: 12px; }
  .is-game .game-frame-shell { border-radius: 24px; }
}

@media (max-width: 460px) {
  .game-page__header { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .game-page__header p { font-size: 13px; }
  .game-account-badge { display: none; }
  .game-frame-shell { margin-inline: -12px; border-radius: 22px; }
  .game-frame { height: calc(100dvh - 188px); min-height: 620px; }
  .knowledge-overview { grid-template-columns: 112px 1fr; padding: 13px; }
  .knowledge-radar { width: 112px; height: 112px; }
  .view { padding-inline: 18px; padding-top: 24px; }
  .hero-card { min-height: 470px; }
  .hero-card__body { left: 18px; right: 18px; bottom: 18px; }
  .hero-card__body h2 { font-size: 31px; }
  .hero-card__footer { align-items: flex-start; flex-direction: column-reverse; }
  .hero-card__footer .btn { width: 100%; }
  .featured-strip { min-height: 390px; }
  .featured-strip img { width: 100%; height: 62%; }
  .featured-strip::after { background: linear-gradient(0deg, var(--primary) 26%, rgba(21,61,50,.88) 53%, rgba(21,61,50,.03)); }
  .featured-strip__body { position: absolute; bottom: 0; width: 100%; padding: 22px; }
  .featured-strip__body p { display: none; }
  .catalog-card { grid-template-columns: 105px 1fr; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-top { align-items: flex-start; flex-wrap: wrap; }
  .profile-top__xp { margin-left: 0; width: 100%; padding-left: 87px; text-align: left; }
  .detail-hero { margin: -24px -16px 0; }
  .reader-head { margin: -24px -16px 0; padding-inline: 16px; }
  .mode-hero { padding: 24px; }
  .mode-grid { grid-template-columns: 1fr; }
  .is-game .view { padding: 5px 5px 0; }
  .is-game .game-frame-shell { margin: 0; border-radius: 17px; }
}

.sticky-cta--split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px; }
.mini-exam-card { position: relative; min-height: 230px; }
.mini-exam-card .eyebrow { display: block; margin: 14px 0 6px; }
.mini-exam-card__status { display: inline-flex; margin-top: auto; color: var(--primary); font-size: 10px; font-weight: 760; }
.mini-exam-card.is-locked { opacity: .72; background: rgba(255,255,255,.64); }
.mini-exam-card.is-locked:hover { transform: none; border-color: var(--line); }
.mini-exam-card.is-locked .mini-exam-card__status { color: var(--muted); }
.reward-stage { position: relative; display: grid; min-height: calc(100vh - 100px); place-items: center; overflow: hidden; }
.lesson-reward-card { position: relative; z-index: 2; width: 100%; overflow: hidden; border-radius: 30px; padding: 48px 42px 36px; background: radial-gradient(circle at 50% 0, rgba(214,176,102,.23), transparent 38%), var(--primary); color: white; text-align: center; box-shadow: 0 26px 70px rgba(11,45,36,.24); animation: reward-card-in .7s cubic-bezier(.2,.8,.2,1) both; }
.lesson-reward-card::after { position: absolute; inset: -40% 55% -40% -25%; background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.09), transparent 65%); content: ""; transform: translateX(-100%); animation: reward-shine 1.8s .45s ease both; }
.lesson-reward-card > * { position: relative; z-index: 1; }
.lesson-reward-card__seal { display: grid; width: 82px; height: 82px; place-items: center; margin: 0 auto 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: var(--gold); color: #4d3719; box-shadow: 0 0 0 12px rgba(214,176,102,.1), 0 16px 38px rgba(0,0,0,.2); animation: reward-seal-in .8s .16s cubic-bezier(.18,.89,.32,1.28) both; }
.lesson-reward-card__seal .icon { width: 36px; height: 36px; }
.lesson-reward-card h1 { margin: 14px 0 8px; color: white; font-size: clamp(32px,5vw,52px); letter-spacing: -.04em; }
.lesson-reward-card > p { max-width: 640px; margin: 0 auto; color: rgba(255,255,255,.67); font-size: 13px; line-height: 1.65; }
.lesson-reward-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 11px; margin: 28px 0 18px; text-align: left; }
.lesson-reward-item { display: grid; min-height: 126px; align-content: center; gap: 5px; border: 1px solid rgba(255,255,255,.11); border-radius: 18px; padding: 17px; background: rgba(255,255,255,.075); animation: reward-item-in .55s calc(.35s + var(--delay,0s)) ease both; }
.lesson-reward-item:nth-child(2) { --delay:.08s; }
.lesson-reward-item:nth-child(3) { --delay:.16s; }
.lesson-reward-item > span { color: rgba(255,255,255,.58); font-size: 9px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.lesson-reward-item strong { color: var(--gold); font-size: 23px; }
.lesson-reward-item small { color: rgba(255,255,255,.5); font-size: 9px; }
.lesson-reward-progress { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.12); }
.lesson-reward-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gold); animation: reward-progress 1s .75s ease forwards; }
.level-up-banner { display: flex; align-items: center; gap: 12px; margin: 16px 0; border: 1px solid rgba(214,176,102,.4); border-radius: 16px; padding: 13px 16px; background: rgba(214,176,102,.12); color: var(--gold); text-align: left; animation: reward-item-in .5s .85s ease both; }
.level-up-banner .icon { width: 25px; height: 25px; }
.level-up-banner div { display: grid; gap: 2px; }
.level-up-banner span { color: rgba(255,255,255,.62); font-size: 9px; }
.lesson-reward-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.lesson-reward-actions .btn { min-width: 190px; }
.optional-note { display: block; margin-top: 12px; color: rgba(255,255,255,.45); font-size: 9px; }
.reward-particles { position: absolute; z-index: 3; top: 34%; left: 50%; width: 10px; height: 10px; pointer-events: none; }
.reward-particles span { position: absolute; width: 8px; height: 14px; border-radius: 3px; background: var(--gold); opacity: 0; transform: rotate(calc(var(--i) * 30deg)) translateY(0); animation: reward-particle 1.25s calc(.14s + var(--i) * .025s) ease-out both; }
.reward-particles span:nth-child(3n) { background: #fff; }
.reward-particles span:nth-child(3n+1) { background: #8fc8af; }

@media (max-width: 680px) {
  .sticky-cta--split, .lesson-reward-grid { grid-template-columns: 1fr; }
  .lesson-reward-card { padding: 38px 20px 28px; }
  .lesson-reward-actions { align-items: stretch; flex-direction: column; }
  .lesson-reward-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@keyframes splash-mark { from { opacity: 0; transform: scale(.82) rotate(-4deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes page-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(25px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes unlock { 0% { opacity: 0; transform: scale(.82) rotate(-2deg); filter: brightness(1.8); } 65% { transform: scale(1.03) rotate(.7deg); } 100% { opacity: 1; transform: scale(1); filter: brightness(1); } }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@keyframes reward-card-in { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes reward-seal-in { from { opacity: 0; transform: scale(.3) rotate(-18deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes reward-item-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reward-progress { from { width: 0; } }
@keyframes reward-shine { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes reward-particle { 0% { opacity: 0; transform: rotate(calc(var(--i) * 30deg)) translateY(0) scale(.5); } 18% { opacity: 1; } 100% { opacity: 0; transform: rotate(calc(var(--i) * 30deg)) translateY(-170px) scale(1); } }

/* Connected curriculum, placement test and progressive lesson details */
.reader__body { margin: 22px 0 0; color: #354841; font-size: 16px; line-height: 1.9; }
.reader__body p { margin: 0 0 18px; }
.reader__body p:first-child::first-letter { float: left; margin: 8px 8px 0 0; color: var(--primary); font-family: Georgia, "Times New Roman", serif; font-size: 51px; font-weight: 700; line-height: .72; }
.reader-reflection { display: grid; grid-template-columns: auto 1fr; gap: 15px; margin: 26px 0 4px; border: 1px solid rgba(192,143,72,.26); border-radius: 21px; padding: 20px; background: linear-gradient(135deg, #fff9ed, #f6efe1); box-shadow: 0 13px 32px rgba(129,92,38,.07); }
.reader-reflection > span { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 13px; background: var(--gold); color: #513b1d; }
.reader-reflection small { display: block; margin-bottom: 6px; color: #96703a; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.reader-reflection strong { display: block; color: #4b402f; font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.55; }
.catalog-card.is-locked, .course-card.is-locked { background: #edf0ed; }
.catalog-card.is-locked img, .course-card.is-locked img { filter: saturate(.28) brightness(.8); }
.catalog-card.is-locked::after, .course-card.is-locked::after { content: none; }
.label--locked { background: #e2e8e3; color: #50665e; }
.label--locked .icon { width: 13px; height: 13px; }

.placement-invite { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin: 24px 0 34px; border: 1px solid rgba(190,140,69,.35); border-radius: 26px; padding: 24px; background: radial-gradient(circle at 0 0, rgba(203,158,88,.2), transparent 34%), #123f34; color: white; box-shadow: 0 18px 45px rgba(18,63,52,.13); }
.placement-invite.is-passed { border-color: rgba(91,151,122,.45); background: #edf6f1; color: var(--primary); }
.placement-invite__icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 18px; background: var(--gold); color: #3b2b17; }
.placement-invite__icon .icon { width: 28px; height: 28px; }
.placement-invite h2 { margin: 4px 0 7px; color: inherit; font-size: clamp(21px,3vw,29px); }
.placement-invite p { max-width: 670px; margin: 0; color: inherit; opacity: .68; font-size: 12px; line-height: 1.6; }

.placement-stage { display: grid; min-height: calc(100vh - 110px); place-items: center; }
.placement-result { width: 100%; border: 1px solid var(--line); border-radius: 30px; padding: 46px; background: white; text-align: center; box-shadow: 0 22px 55px rgba(18,63,52,.12); animation: reward-card-in .65s cubic-bezier(.2,.8,.2,1) both; }
.placement-result.is-passed { background: radial-gradient(circle at 50% 0, rgba(210,165,91,.2), transparent 36%), var(--primary); color: white; }
.placement-result__icon { display: grid; width: 82px; height: 82px; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: var(--gold); color: #4b3519; box-shadow: 0 0 0 12px rgba(201,157,85,.13); }
.placement-result__icon .icon { width: 36px; height: 36px; }
.placement-result h1 { margin: 12px auto; color: inherit; font-size: clamp(30px,5vw,50px); }
.placement-result p { max-width: 620px; margin: 0 auto; color: inherit; opacity: .68; line-height: 1.7; }
.placement-result__actions { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.placement-next { margin-top: 26px; }
.placement-question-page { padding-bottom: 112px; }
.placement-question-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 30px 0 12px; }
.placement-question-meta .eyebrow { margin: 0; }
.placement-difficulty { display: inline-flex; align-items: center; min-height: 28px; border: 1px solid #d8e1ec; border-radius: 999px; padding: 5px 10px; background: #edf2f7; color: var(--primary); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.placement-difficulty.is-hard { border-color: rgba(122,31,61,.2); background: var(--gold-soft); color: var(--gold); }
.quiz-option.is-selected { border-color: var(--primary); background: #edf6f1; box-shadow: 0 0 0 2px rgba(21,61,50,.08); }

.course-lock-panel { display: grid; grid-template-columns: auto 1fr; gap: 15px; margin-top: 30px; border: 1px solid #d8dfda; border-radius: 22px; padding: 22px; background: #f1f4f1; color: var(--primary); }
.course-lock-panel > .icon { width: 27px; height: 27px; }
.course-lock-panel strong { font-size: 16px; }
.course-lock-panel p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.course-lock-panel__actions { display: flex; grid-column: 2; gap: 9px; flex-wrap: wrap; }

.extra-disclosure { margin: 30px 0 5px; border: 1px solid #dce5df; border-radius: 19px; background: #f5f8f5; overflow: hidden; }
.extra-disclosure__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 0; padding: 17px 18px; background: transparent; color: var(--primary); cursor: pointer; font: inherit; }
.extra-disclosure__toggle > span { display: flex; align-items: center; gap: 10px; }
.extra-disclosure__toggle .icon { width: 19px; height: 19px; transition: transform 420ms cubic-bezier(.2,.72,.2,1); }
.extra-disclosure__toggle > .icon { color: var(--muted); }
.extra-disclosure.is-open .extra-disclosure__toggle > .icon { transform: rotate(90deg); }
.extra-disclosure__panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 420ms cubic-bezier(.2,.72,.2,1), opacity 320ms ease; }
.extra-disclosure.is-open .extra-disclosure__panel { grid-template-rows: 1fr; opacity: 1; }
.extra-disclosure__inner { min-height: 0; overflow: hidden; }
.extra-disclosure__inner > aside { margin: 0 14px 14px; }
.extra-detail__text { margin: 0; border-top: 1px solid #dfe7e2; padding: 15px 18px 20px; color: #53665e; font-size: 12px; line-height: 1.75; }

@media (max-width: 720px) {
  .placement-invite { grid-template-columns: auto 1fr; }
  .placement-invite .btn { grid-column: 1 / -1; width: 100%; }
  .placement-result { padding: 38px 21px; }
  .placement-result__actions { align-items: stretch; flex-direction: column; }
  .course-lock-panel { grid-template-columns: 1fr; }
  .course-lock-panel__actions { grid-column: 1; }
  .reader-map { grid-template-columns: 1fr auto; gap: 9px; }
  .reader-map > span { display: none; }
  .reader-map small { font-size: 8px; }
  .reader__lead { font-size: 17px; }
  .reader__body { font-size: 15px; line-height: 1.82; }
  .reader-reflection { grid-template-columns: 1fr; }
}

/* KELAM 2026 — sakin lacivert, bordo vurgu ve kart tabanlı öğrenme deneyimi */
body { background: var(--bg); }
.brand-mark { background: var(--gold); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.brand-mark__arc { border-color: rgba(255,255,255,.9); border-left-color: transparent; border-bottom-color: transparent; }
.brand-mark__page { border-bottom-color: white; }
.btn { min-height: 48px; border-radius: 999px; box-shadow: 0 8px 18px rgba(23,55,95,.14); }
.btn:hover { box-shadow: 0 11px 22px rgba(23,55,95,.18); }
.btn--gold { background: var(--gold); color: white; box-shadow: 0 8px 18px rgba(122,31,61,.16); }
.btn--gold:hover { background: #681831; }
.label--gold { background: var(--gold-soft); color: var(--gold); }
.xp { color: var(--gold); }
.streak-pill { border-color: #dce4ee; background: #edf2f7; color: var(--primary); }
.streak-pill .icon { color: var(--gold); }
.bottom-nav { border-color: rgba(23,55,95,.09); background: rgba(255,255,255,.94); box-shadow: 0 16px 44px rgba(32,45,65,.16); }
.nav-item { color: #7d8796; }
.nav-item.is-active { background: var(--primary-3); color: var(--primary); }
.search, .chip, .catalog-card, .course-card, .ranked-card, .mode-card, .settings-list, .weekly-card { border-color: var(--line); background: white; }
.chip.is-active { border-color: var(--primary); background: var(--primary); }
.mini-progress { background: #e3e7ed; }
.mini-progress span { background: var(--primary); }
.mini-progress--light span, .mini-progress--dark span { background: var(--gold); }

.home-page { width: min(100%, 880px); }
.home-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 34px; }
.home-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; letter-spacing: .08em; }
.home-brand .brand-mark { width: 31px; height: 31px; flex-basis: 31px; border-radius: 10px; }
.home-brand .brand-mark__arc { left: 7px; top: 6px; width: 17px; height: 17px; }
.home-brand .brand-mark__page { left: 8px; bottom: 6px; width: 15px; }
.home-topbar__right { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.home-topbar .streak-pill { min-height: 39px; gap: 5px; padding-inline: 11px; }
.home-topbar .streak-pill .icon { width: 18px; }
.home-topbar .streak-pill small { font-size: 8px; letter-spacing: .08em; }
.home-welcome { margin-bottom: 16px; }
.home-welcome > span { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.home-welcome h1 { margin: 5px 0 0; font-size: clamp(28px,4vw,38px); }
.home-featured-card { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: 0 15px 38px rgba(30,44,64,.08); cursor: pointer; }
.home-featured-card__visual { position: relative; height: 315px; overflow: hidden; background: #dce2e9; }
.home-featured-card__visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-bookmark { position: absolute; top: 15px; right: 15px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 14px; background: rgba(255,255,255,.82); color: var(--primary); cursor: pointer; backdrop-filter: blur(12px); }
.feature-bookmark.is-active { background: var(--gold); color: white; }
.feature-bookmark .icon { width: 19px; }
.home-featured-card__body { padding: 20px; }
.home-featured-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.home-featured-card__meta > span:last-child { display: inline-flex; align-items: center; gap: 5px; }
.home-featured-card h2 { margin: 14px 0 6px; font-size: clamp(23px,4vw,31px); }
.home-featured-card p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.featured-progress { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--primary); font-size: 10px; }
.featured-progress > span { flex: 1; height: 5px; overflow: hidden; border-radius: 999px; background: #e3e8ee; }
.featured-progress i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.featured-progress strong { min-width: 32px; text-align: right; }
.home-featured-card .btn { pointer-events: none; }

.profile-page-header, .settings-page__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.profile-page-header h1, .settings-page__header h1 { margin: 0; }
.profile-identity-card, .profile-streak-card { border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow-sm); }
.profile-identity-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 20px; }
.profile-rank-ring { display: grid; width: 86px; height: 86px; place-items: center; border-radius: 50%; background: conic-gradient(var(--gold) var(--profile-progress), #e2e7ed 0); }
.profile-rank-ring::before { grid-area: 1/1; width: 72px; height: 72px; border-radius: 50%; background: white; content: ""; }
.profile-rank-ring .avatar { z-index: 1; grid-area: 1/1; width: 58px; height: 58px; flex-basis: 58px; border: 0; border-radius: 50%; background: var(--primary-3); color: var(--primary); }
.profile-curiosity { color: var(--gold); font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.profile-identity-card h2 { margin: 4px 0 3px; font-size: 20px; }
.profile-identity-card__copy p { margin: 0; color: var(--primary); font-size: 11px; }
.profile-identity-card__copy p span { color: var(--muted); }
.profile-level-progress { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; }
.profile-level-progress > span { height: 5px; overflow: hidden; border-radius: 999px; background: #e2e7ed; }
.profile-level-progress i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.profile-level-progress small { color: var(--muted); font-size: 9px; }
.profile-streak-card { margin-top: 14px; padding: 20px; }
.profile-streak-card__title { display: flex; align-items: baseline; gap: 7px; margin-bottom: 18px; color: var(--ink); }
.profile-streak-card__title .icon { align-self: center; color: var(--gold); fill: currentColor; }
.profile-streak-card__title strong { font-size: 28px; }
.profile-streak-card__title span { color: var(--muted); font-size: 10px; font-weight: 800; }
.profile-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.profile-week > div { display: grid; justify-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.profile-week i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #e5e9ee; color: transparent; font-style: normal; }
.profile-week .is-done i { background: var(--primary); color: white; }
.profile-stats--primary { margin-top: 14px; }
.profile-stats--primary .stat-card { min-height: 134px; }
.profile-stats--primary .stat-card__icon { background: var(--primary-3); color: var(--primary); }
.profile-stats--primary .stat-card strong { margin-top: 4px; font-size: 25px; }
.profile-domain-section { padding: 0; border: 0; background: transparent; }
.profile-domain-section .domain-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.domain-card { min-height: 164px; padding: 16px; border-color: var(--line); border-radius: 20px; background: white; }
.domain-card h3 { min-height: 40px; }
.achievement-grid--compact .achievement-card { background: white; }

.settings-page { padding-bottom: 40px; }
.settings-page__header .eyebrow { margin-bottom: 3px; color: var(--gold); }
.settings-group { margin-top: 25px; }
.settings-group__label { display: block; margin: 0 0 8px 4px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.settings-group .settings-list { border-radius: 20px; box-shadow: none; }
.settings-row { min-height: 66px; padding: 10px 14px; color: var(--ink); }
.settings-row > .icon:last-child { margin-left: auto; color: var(--muted); }
.settings-row > span:not(.settings-row__icon) { display: grid; gap: 3px; }
.settings-row strong { font-size: 13px; }
.settings-row small { color: var(--muted); font-size: 10px; }
.settings-row__icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 12px; background: var(--primary-3); color: var(--primary); }
.settings-row__icon .icon { width: 18px; height: 18px; }
.settings-row--static { cursor: default; }
.settings-row--danger { color: var(--danger); }
.settings-row--danger .settings-row__icon { background: var(--danger-soft); color: var(--danger); }
.settings-about { display: grid; gap: 4px; margin: 30px 0; color: var(--muted); text-align: center; }
.settings-about span { color: var(--gold); font-weight: 850; letter-spacing: .16em; }

.page--reader { width: min(100%, 610px); padding-bottom: 110px; }
.page--reader::before { display: none; }
.reader-head { margin-top: -32px; border-bottom: 0; padding-bottom: 12px; background: rgba(243,244,246,.93); }
.reader-head__row { grid-template-columns: 40px 1fr auto; gap: 12px; }
.reader-close, .reward-close { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--muted); cursor: pointer; }
.reader-close .icon, .reward-close .icon { width: 18px; height: 18px; }
.reader-linear-progress { height: 5px; overflow: hidden; border-radius: 999px; background: #dfe4ea; }
.reader-linear-progress span { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width 300ms ease; }
.reader-head__row > strong { color: var(--muted); font-size: 11px; white-space: nowrap; }
.reader { padding-top: 22px; }
.reader__kicker { margin: 2px 0 8px; color: var(--primary); }
.reader__title { margin: 0 0 14px; color: var(--ink); font-size: clamp(29px,6vw,39px); letter-spacing: -.035em; }
.reader__lead { margin: 0 0 18px; color: #39465a; font-family: inherit; font-size: 16px; font-weight: 540; line-height: 1.68; }
.reader__body { margin-top: 0; color: #313c4d; font-size: 15px; line-height: 1.76; }
.reader__body p { margin-bottom: 17px; }
.reader__body p:first-child::first-letter { float: none; margin: 0; color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }
.reader__figure { margin: 20px 0 24px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: none; }
.reader__image { max-height: 330px; }
.reader__figure figcaption { display: block; border-top: 1px solid var(--line); padding: 8px 11px; background: white; color: #8b94a0; font-size: 8px; }
.reader__figure .image-credit { color: inherit; }
.reader__figure .image-credit a { color: var(--primary); }
.extra-disclosure { margin: 24px 0 4px; border-color: var(--line); border-radius: 18px; background: white; }
.extra-disclosure__toggle { min-height: 60px; padding: 12px 15px; color: var(--ink); }
.extra-disclosure__toggle > span > i { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 12px; background: var(--primary-3); color: var(--primary); font-style: normal; }
.extra-disclosure__toggle > span > i .icon { width: 18px; height: 18px; }
.extra-disclosure__toggle strong { font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.extra-disclosure__inner p { margin: 0; border-top: 1px solid var(--line); padding: 16px 18px 19px; color: #445064; font-size: 13px; line-height: 1.72; }
.reader-attention { display: grid; grid-template-columns: 40px 1fr; gap: 13px; align-items: start; margin: 26px 0 6px; border: 1px solid rgba(116,30,47,.16); border-radius: 18px; padding: 17px 18px; background: linear-gradient(135deg, #fff 0%, #fbf4f5 100%); box-shadow: 0 12px 28px rgba(46,31,35,.06); }
.reader-attention > .icon { width: 38px; height: 38px; border-radius: 13px; padding: 9px; background: var(--primary-3); color: var(--primary); }
.reader-attention strong { display: block; margin: 1px 0 6px; color: var(--primary); font-size: 12px; letter-spacing: .055em; text-transform: uppercase; }
.reader-attention p { margin: 0; color: #46505f; font-size: 14px; line-height: 1.65; }
.reader-actions--sticky { position: sticky; z-index: 9; bottom: 10px; align-items: center; margin: 34px -4px -70px; padding: 10px 4px; background: linear-gradient(180deg, rgba(243,244,246,0), rgba(243,244,246,.96) 28%); }
.reader-actions--sticky .btn--ghost { width: 48px; flex: 0 0 48px; padding: 0; border-radius: 999px; }

.reward-stage { position: relative; display: grid; min-height: calc(100dvh - 70px); place-items: center; }
.reward-close { position: fixed; z-index: 5; left: max(16px, calc(50% - 345px)); bottom: 18px; }
.lesson-complete-card { width: 100%; padding: 42px 18px 24px; text-align: center; }
.lesson-complete-cover { position: relative; width: 132px; height: 132px; margin: 0 auto 22px; }
.lesson-complete-cover img { width: 100%; height: 100%; border-radius: 24px; object-fit: cover; box-shadow: 0 15px 35px rgba(29,43,63,.14); }
.lesson-complete-cover > span { position: absolute; right: -7px; bottom: -7px; display: grid; width: 38px; height: 38px; place-items: center; border: 3px solid var(--bg); border-radius: 50%; background: var(--primary); color: white; }
.lesson-complete-card > h1 { margin-bottom: 6px; }
.lesson-complete-card > p { margin-bottom: 22px; color: var(--muted); }
.lesson-xp-card { border: 1px solid var(--line); border-radius: 20px; padding: 15px; background: white; text-align: left; box-shadow: var(--shadow-sm); }
.lesson-xp-card > div:first-child { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; }
.lesson-xp-card > div:first-child > span { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 13px; background: var(--primary-3); color: var(--primary); }
.lesson-xp-card strong, .lesson-xp-card small { display: block; }
.lesson-xp-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.lesson-xp-card b { border-radius: 999px; padding: 6px 9px; background: var(--primary-3); color: var(--primary); font-size: 9px; }
.lesson-xp-card__bar { height: 6px; overflow: hidden; margin: 14px 0 9px; border-radius: 999px; background: #e2e7ed; }
.lesson-xp-card__bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.lesson-xp-card mark { border-radius: 999px; padding: 5px 9px; background: var(--gold-soft); color: var(--gold); font-size: 9px; font-weight: 800; }
.lesson-complete-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 15px; border-radius: 14px; padding: 10px; background: #e7edf5; color: var(--primary); font-size: 10px; }
.lesson-complete-card .lesson-reward-actions { display: grid; gap: 8px; margin-top: 28px; }
.lesson-complete-card .lesson-reward-actions .link-btn { justify-content: center; }

@media (min-width: 900px) {
  .side-nav { border-right: 1px solid var(--line); background: #fff; color: var(--ink); }
  .side-nav .brand { color: var(--ink); }
  .side-nav .nav-item { color: var(--muted); }
  .side-nav .nav-item.is-active { background: var(--primary-3); color: var(--primary); }
  .side-nav__goal { border-color: var(--line); background: #f6f7f9; color: var(--ink); }
  .side-nav__goal .eyebrow { color: var(--muted); }
  .side-nav__goal p { color: var(--muted); }
  .admin-link { color: var(--primary); }
  .home-featured-card { display: grid; grid-template-columns: 1.05fr .95fr; }
  .home-featured-card__visual { height: 100%; min-height: 360px; }
  .home-featured-card__body { display: flex; flex-direction: column; justify-content: center; padding: 30px; }
}

@media (max-width: 720px) {
  .view { padding: 20px 16px 104px; }
  .home-topbar { margin-bottom: 28px; }
  .home-topbar__right > span { display: none; }
  .home-featured-card__visual { height: 210px; }
  .home-featured-card__body { padding: 17px; }
  .home-featured-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .profile-identity-card { padding: 17px; }
  .profile-rank-ring { width: 78px; height: 78px; }
  .profile-rank-ring::before { width: 66px; height: 66px; }
  .profile-rank-ring .avatar { width: 52px; height: 52px; flex-basis: 52px; }
  .profile-domain-section .domain-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .domain-card { min-height: 156px; padding: 13px; }
  .domain-card h3 { font-size: 13px; }
  .domain-card p { display: grid; }
  .reader-head { margin: -20px -16px 0; padding: 12px 16px; }
  .reader { padding-top: 18px; }
  .reader__figure { border-radius: 19px; }
  .reader__image { max-height: 285px; }
  .reader-actions--sticky { bottom: 0; margin-bottom: -82px; }
  .reward-stage { min-height: calc(100dvh - 40px); }
  .reward-close { left: 16px; }
}

/* KELAM Bordo 2026 — sıcak beyaz yüzeyler, mürdüm derinlik ve güçlü tipografi */
:root {
  --primary: #5b1634;
  --primary-2: #762347;
  --primary-3: #f4e8ed;
  --bg: #f8f3f5;
  --surface: #fffdfd;
  --surface-2: #f4e9ee;
  --ink: #321220;
  --muted: #7d6872;
  --line: rgba(91, 22, 52, .12);
  --gold: #8f2e57;
  --gold-soft: #f7e6ed;
  --success: #7c294e;
  --success-soft: #f5e3eb;
  --danger: #a3264d;
  --danger-soft: #fae6ed;
  --navy: #3c1028;
  --terracotta: #a24b6d;
  --purple: #6e3658;
  --shadow-sm: 0 10px 28px rgba(70, 15, 42, .07);
  --shadow-lg: 0 28px 76px rgba(54, 10, 31, .16);
}

body {
  background:
    radial-gradient(circle at 82% -8%, rgba(142, 45, 85, .11), transparent 32%),
    radial-gradient(circle at -8% 70%, rgba(108, 35, 72, .07), transparent 31%),
    var(--bg);
}

button:focus-visible, a:focus-visible, input:focus-visible { outline-color: rgba(155, 47, 96, .42); }
.brand-mark { background: linear-gradient(145deg, #8f2e57, #56142f); }
.btn { background: linear-gradient(135deg, #6f1c42, #8f2e57); color: #fff; box-shadow: 0 10px 24px rgba(91,22,52,.18); }
.btn:hover { box-shadow: 0 14px 30px rgba(91,22,52,.24); }
.btn--gold { background: linear-gradient(135deg, #8f2e57, #a63c68); color: #fff; }
.btn--gold:hover { background: linear-gradient(135deg, #7a2449, #94305b); }
.btn--soft, .btn--ghost { border-color: rgba(91,22,52,.12); background: #f6e9ee; color: #5b1634; box-shadow: none; }
.icon-btn { border-color: rgba(91,22,52,.1); background: rgba(255,253,253,.88); color: #5b1634; }
.label--solid, .chip.is-active { border-color: #6f1c42; background: #6f1c42; color: #fff; }
.xp, .eyebrow, .link-btn { color: #8f2e57; }
.mini-progress span, .reader-linear-progress span, .featured-progress i { background: linear-gradient(90deg, #6f1c42, #b34b76); }

.home-featured-card,
.course-card,
.catalog-card,
.ranked-card,
.mode-card,
.domain-card,
.weekly-card,
.settings-list,
.profile-streak-card,
.stat-card,
.extra-disclosure,
.reader__figure,
.lesson-xp-card {
  border-color: rgba(91,22,52,.1);
  background: rgba(255,253,253,.96);
  box-shadow: 0 12px 34px rgba(64,12,37,.065);
}
.home-featured-card { box-shadow: 0 20px 54px rgba(64,12,37,.11); }
.home-featured-card__visual::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(49,9,29,.18)); content: ""; pointer-events: none; }
.feature-bookmark { z-index: 1; color: #6f1c42; }
.feature-bookmark.is-active { background: #7e264d; color: #fff; }
.streak-pill { border-color: rgba(91,22,52,.1); background: #f6e9ee; color: #5b1634; }
.search { background: #fffdfd; color: #321220; }
.search:focus { border-color: rgba(143,46,87,.5); box-shadow: 0 0 0 4px rgba(143,46,87,.08); }
.chip { border-color: rgba(91,22,52,.1); background: rgba(255,253,253,.9); color: #6e5762; }
.chip:hover { border-color: rgba(91,22,52,.24); color: #5b1634; }

.placement-invite,
.mode-hero,
.collection-hero,
.knowledge-overview {
  border-color: rgba(255,225,238,.12);
  background: linear-gradient(135deg, #3a0d25 0%, #681a40 58%, #84284f 100%);
  color: #fff;
  box-shadow: 0 20px 52px rgba(52,8,30,.2);
}
.placement-invite p, .mode-hero p, .placement-invite .eyebrow, .mode-hero .eyebrow { color: rgba(255,245,249,.74); }

.profile-identity-card {
  border-color: rgba(255,225,238,.12);
  background: linear-gradient(135deg, #3a0d25 0%, #64183c 62%, #7f284d 100%);
  color: #fff;
  box-shadow: 0 22px 58px rgba(55,9,32,.22);
}
.profile-rank-ring { background: conic-gradient(#efb2ca var(--profile-progress), rgba(255,255,255,.14) 0); }
.profile-rank-ring::before { background: #571532; }
.profile-rank-ring .avatar { background: rgba(255,255,255,.13); color: #fff; }
.profile-curiosity, .profile-identity-card__copy p { color: #f1b5cc; }
.profile-identity-card__copy p span, .profile-level-progress small { color: rgba(255,255,255,.65); }
.profile-level-progress > span { background: rgba(255,255,255,.15); }
.profile-level-progress i { background: #fff; }
.profile-week .is-done i { background: #7d264c; }
.domain-card__progress span { background: linear-gradient(90deg, #6e1b40, #ad4772); }
.settings-row__icon, .profile-stats--primary .stat-card__icon, .extra-disclosure__toggle > span > i { background: #f5e6ec; color: #6f1c42; }

.reader-head { background: rgba(248,243,245,.94); backdrop-filter: blur(16px); }
.reader__lead, .reader__body, .extra-disclosure__inner p, .reader-attention p { color: #4d3540; }
.reader-attention { border-color: rgba(91,22,52,.12); background: linear-gradient(135deg, #fffdfd, #f8ebf0); }
.reader-actions--sticky { background: linear-gradient(180deg, rgba(248,243,245,0), rgba(248,243,245,.97) 28%); }
.lesson-complete-cover > span { background: #7d264c; }
.lesson-complete-note { background: #f3e4ea; color: #681a40; }

.game-page__header { color: #321220; }
.game-account-badge { border-color: rgba(91,22,52,.12); background: #f5e6ec; color: #681a40; }
.game-frame-shell { border-color: rgba(91,22,52,.16); background: #260918; box-shadow: 0 24px 66px rgba(47,7,27,.2); }

/* Ana uygulamada oyun daveti */
.game-nudge {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  width: min(520px, calc(100vw - 48px));
  border: 1px solid rgba(255,222,235,.16);
  border-radius: 22px;
  padding: 15px 17px;
  background: linear-gradient(135deg, rgba(54,10,32,.98), rgba(111,28,66,.98));
  color: #fff;
  box-shadow: 0 24px 70px rgba(38,5,22,.32);
  animation: game-nudge-in 480ms cubic-bezier(.2,.8,.2,1) both;
  backdrop-filter: blur(18px);
}
.game-nudge__mark { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; background: rgba(255,255,255,.1); font-family: Georgia,serif; font-size: 25px; font-weight: 800; }
.game-nudge__copy span { display: block; margin-bottom: 3px; color: #efafc9; font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.game-nudge__copy strong { display: block; font-size: 15px; }
.game-nudge__copy p { margin: 3px 0 0; color: rgba(255,255,255,.7); font-size: 10px; line-height: 1.45; }
.game-nudge__play { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; border: 0; border-radius: 999px; padding: 0 15px; background: #fff; color: #5b1634; font-size: 11px; font-weight: 800; cursor: pointer; }
.game-nudge__close { position: absolute; top: 7px; right: 7px; display: none; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
@keyframes game-nudge-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* Profilde Kelam Oyunu istatistikleri */
.game-profile-section { margin-top: 28px; }
.game-profile-hero { overflow: hidden; border: 1px solid rgba(255,225,238,.12); border-radius: 28px; padding: 24px; background: radial-gradient(circle at 90% 10%, rgba(233,155,187,.18), transparent 34%), linear-gradient(135deg,#310b21,#65183d 62%,#80274d); color: #fff; box-shadow: 0 24px 62px rgba(49,8,29,.2); }
.game-profile-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.game-profile-hero .eyebrow { color: #efafc9; }
.game-profile-hero h2 { margin: 6px 0 7px; color: #fff; }
.game-profile-hero p { margin: 0; color: rgba(255,255,255,.68); font-size: 12px; }
.game-rank { display: grid; min-width: 112px; justify-items: end; gap: 4px; border-left: 1px solid rgba(255,255,255,.14); padding-left: 18px; }
.game-rank small { color: rgba(255,255,255,.55); font-size: 8px; letter-spacing: .14em; }
.game-rank strong { font-family: Georgia,serif; color: #f5c5d8; font-size: 18px; }
.game-metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 22px; }
.game-metric-grid > div { border: 1px solid rgba(255,255,255,.1); border-radius: 17px; padding: 13px; background: rgba(255,255,255,.06); }
.game-metric-grid strong, .game-metric-grid span { display: block; }
.game-metric-grid strong { font-size: 22px; }
.game-metric-grid span { margin-top: 3px; color: rgba(255,255,255,.6); font-size: 9px; }
.game-profile-play { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; border: 0; border-radius: 999px; padding: 11px 16px; background: #fff; color: #5b1634; font-size: 11px; font-weight: 850; cursor: pointer; }
.game-profile-detail-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 14px; margin-top: 14px; }
.game-distribution, .game-badges-panel { border: 1px solid rgba(91,22,52,.1); border-radius: 24px; padding: 20px; background: rgba(255,253,253,.96); box-shadow: var(--shadow-sm); }
.game-panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.game-panel-title .eyebrow { font-size: 8px; }
.game-panel-title h3 { margin: 5px 0 0; font-size: 15px; }
.game-panel-title > strong { border-radius: 999px; padding: 6px 9px; background: #f5e6ec; color: #761f46; font-size: 9px; white-space: nowrap; }
.game-bars { display: grid; gap: 7px; margin-top: 18px; }
.game-bars > div { display: grid; grid-template-columns: 12px 1fr 22px; align-items: center; gap: 8px; color: #8c7380; font-size: 9px; }
.game-bars i { overflow: hidden; height: 8px; border-radius: 999px; background: #f1e6ea; }
.game-bars b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#6a193e,#b04b75); }
.game-bars > div > strong { color: #5b1634; text-align: right; }
.game-distribution footer { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; color: #7d6872; font-size: 10px; }
.game-distribution footer strong { color: #5b1634; }
.game-badge-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.game-badge { display: grid; grid-template-columns: 33px 1fr; align-items: center; gap: 9px; min-height: 58px; border: 1px solid rgba(91,22,52,.08); border-radius: 15px; padding: 8px; background: #faf5f7; }
.game-badge > span { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 11px; background: #eee5e9; filter: grayscale(1); opacity: .55; }
.game-badge strong, .game-badge small { display: block; }
.game-badge strong { overflow: hidden; color: #8d7b83; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.game-badge small { overflow: hidden; margin-top: 2px; color: #a49199; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.game-badge.is-earned { border-color: rgba(143,46,87,.22); background: #f6e6ed; }
.game-badge.is-earned > span { background: #fff; filter: none; opacity: 1; box-shadow: 0 5px 14px rgba(83,17,48,.09); }
.game-badge.is-earned strong { color: #681a40; }
.game-badge.is-earned small { color: #9d3a64; }

@media (min-width: 900px) {
  .side-nav { border-right-color: rgba(255,255,255,.08); background: linear-gradient(180deg,#350b23,#561431 52%,#681a3e); color: #fff; box-shadow: 16px 0 50px rgba(44,7,26,.08); }
  .side-nav .brand { color: #fff; }
  .side-nav .nav-item { color: rgba(255,255,255,.64); }
  .side-nav .nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
  .side-nav .nav-item.is-active { background: rgba(255,255,255,.13); color: #fff; }
  .side-nav__goal { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.07); color: #fff; }
  .side-nav__goal .eyebrow, .side-nav__goal p { color: rgba(255,255,255,.58); }
  .admin-link { color: #f0b4cc; }
}

@media (max-width: 720px) {
  .bottom-nav { border-color: rgba(91,22,52,.1); background: rgba(255,250,252,.95); }
  .nav-item.is-active { background: #f2e2e9; color: #681a40; }
  .game-nudge { right: 12px; bottom: calc(86px + var(--safe-bottom)); grid-template-columns: auto 1fr; width: calc(100vw - 24px); padding: 14px 42px 14px 14px; border-radius: 20px; }
  .game-nudge__mark { width: 43px; height: 43px; }
  .game-nudge__copy p { display: none; }
  .game-nudge__play { grid-column: 1 / -1; justify-content: center; width: 100%; margin-top: 1px; }
  .game-nudge__close { display: grid; }
  .game-profile-hero { padding: 19px; border-radius: 24px; }
  .game-profile-hero__top { gap: 12px; }
  .game-rank { min-width: 90px; padding-left: 12px; }
  .game-rank strong { font-size: 14px; }
  .game-metric-grid { grid-template-columns: repeat(2,1fr); }
  .game-profile-detail-grid { grid-template-columns: 1fr; }
  .game-badge-grid { grid-template-columns: 1fr 1fr; }
}
.prophet-salawat {
  display: inline-block;
  font-family: "Traditional Arabic", "Noto Naskh Arabic", "Amiri", "Times New Roman", serif;
  font-size: .86em;
  font-weight: 400;
  line-height: 1;
  vertical-align: baseline;
  white-space: nowrap;
  margin-inline: .08em;
  letter-spacing: 0;
  color: var(--primary, #60314f);
}
