/* styles.css — Mijbil aquarium app
   Deep editorial palette. Dark sea + cream + amber + a touch of glassy aqua.
*/

:root {
  --ink: #f3ecdc;          /* primary cream text */
  --ink-soft: rgba(243, 236, 220, 0.72);
  --ink-faint: rgba(243, 236, 220, 0.45);
  --rule: rgba(243, 236, 220, 0.14);
  --rule-strong: rgba(243, 236, 220, 0.28);
  --bg-deep: #04111d;       /* outermost */
  --bg-tide: #0a1f33;       /* surface */
  --bg-card: #0f2a42;       /* card */
  --gold: #d4a85c;
  --gold-soft: #b48a44;
  --aqua: #6fc8d6;
  --penguin: #7fc6a8;
  --shark: #4fa8b8;
  --sand: #e1b97a;
  --serif: 'Newsreader', 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --serif-ar: 'Amiri', 'Noto Naskh Arabic', serif;
  --sans-ar: 'Noto Kufi Arabic', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: #1a1714;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Page-level dark for the iframe */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(circle at 30% 20%, #0a2236 0%, transparent 60%),
    radial-gradient(circle at 70% 80%, #0a2030 0%, transparent 55%),
    #04101c;
}

/* ---- screen container inside the iOS frame ---- */
.screen {
  position: relative;
  height: 100%;
  background: var(--bg-deep);
  color: var(--ink);
  overflow: hidden;
  font-family: var(--sans);
  font-feature-settings: 'ss01';
}
.screen.lang-ar {
  direction: rtl;
  font-family: var(--sans-ar);
}
.scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.scroll::-webkit-scrollbar { display: none; }

/* ---- Type ---- */
.serif { font-family: var(--serif); font-weight: 400; }
.lang-ar .serif { font-family: var(--serif-ar); }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.upper { text-transform: uppercase; letter-spacing: 0.14em; font-size: 10.5px; }
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  color: var(--gold);
}
.lang-ar .upper, .lang-ar .eyebrow { letter-spacing: 0; text-transform: none; }

/* ---- Status bar overrides for dark ---- */

/* ---- Top app chrome ---- */
.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 58px 22px 12px;
  position: relative;
  z-index: 5;
}
.app-top .brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.app-top .brand .logo-wrap {
  width: 82px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  border: 0.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 6px;
  flex-shrink: 0;
}
.app-top .brand .logo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.app-top .brand .name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.02em;
}
.app-top .brand .tag {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin-top: 2px;
}
.app-top .pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 11px;
  border: 0.5px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
}
.app-top .pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 380px;
  margin: 8px 22px 0;
  border-radius: 22px;
  overflow: hidden;
  background: #061521;
  isolation: isolate;
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05) brightness(0.95);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,17,29,0) 35%, rgba(4,17,29,0.85) 100%);
}
.hero .label {
  position: absolute;
  top: 18px; left: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(4,17,29,0.55);
  border: 0.5px solid rgba(255,255,255,0.18);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 2;
  white-space: nowrap;
}
.hero .body {
  position: absolute;
  left: 22px; right: 22px; bottom: 22px;
  z-index: 2;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 0.96;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  font-weight: 400;
  color: #f8efd9;
  text-wrap: balance;
}
.lang-ar .hero h1 { font-family: var(--serif-ar); font-size: 34px; }
.hero p {
  font-size: 13.5px;
  line-height: 1.45;
  margin: 0;
  color: rgba(255,255,255,0.85);
  max-width: 280px;
}

/* ---- Section heads ---- */
.section {
  padding: 28px 22px 4px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.section-head .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.005em;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-ar .section-head h2 { font-family: var(--serif-ar); }
.section-head .more {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Habitat cards ---- */
.habitats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 22px;
}
.habitat {
  position: relative;
  border-radius: 18px;
  padding: 20px 18px 18px;
  overflow: hidden;
  cursor: pointer;
  border: 0.5px solid var(--rule);
  transition: transform 0.2s, border-color 0.2s;
}
.habitat:active { transform: scale(0.99); }
.habitat .hbg {
  position: absolute; inset: 0;
  z-index: 0;
  opacity: 0.85;
}
.habitat .hbg.marine {
  background:
    radial-gradient(ellipse at 70% 40%, rgba(79,168,184,0.4) 0%, transparent 60%),
    linear-gradient(140deg, #0a2540 0%, #061a2c 100%);
}
.habitat .hbg.coastal {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(127,198,168,0.35) 0%, transparent 65%),
    linear-gradient(140deg, #1a3a3a 0%, #0a2429 100%);
}
.habitat .hbg.desert {
  background:
    radial-gradient(ellipse at 60% 30%, rgba(212,168,92,0.35) 0%, transparent 65%),
    linear-gradient(140deg, #2c1f12 0%, #1a120a 100%);
}
.habitat .hbody {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.habitat .htitle {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #f8efd9;
}
.lang-ar .habitat .htitle { font-family: var(--serif-ar); font-size: 30px; }
.habitat .hsub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.lang-ar .habitat .hsub { font-family: var(--serif-ar); font-style: normal; }
.habitat .hblurb {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 8px;
  max-width: 280px;
}
.habitat .harrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
}
.habitat .harrow svg { display: block; }

/* ---- Feeding ribbon ---- */
.feedings {
  display: flex;
  gap: 12px;
  padding: 0 22px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.feedings::-webkit-scrollbar { display: none; }
.feed-card {
  flex: 0 0 auto;
  width: 178px;
  border: 0.5px solid var(--rule);
  border-radius: 14px;
  padding: 14px 14px 12px;
  background: rgba(15,42,66,0.4);
  scroll-snap-align: start;
  position: relative;
}
.feed-card .ftime {
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #f8efd9;
}
.feed-card .fwhat {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  margin-top: 6px;
  color: var(--ink);
}
.lang-ar .feed-card .fwhat { font-family: var(--serif-ar); font-style: normal; }
.feed-card .floc {
  font-size: 11.5px;
  margin-top: 4px;
  color: var(--ink-faint);
}
.feed-card .fnext {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}
.lang-ar .feed-card .fnext { right: auto; left: 10px; }

/* ---- Bibi promo ---- */
.featured {
  margin: 0 22px;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(160deg, #0a2540 0%, #04101c 100%);
  border: 0.5px solid var(--rule);
}
.featured img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: blur(2px) saturate(1.1);
}
.featured::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,0,0,0) 0%, rgba(4,17,29,0.6) 80%);
}
.featured .body {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.featured .top { display: flex; justify-content: space-between; }
.featured h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1;
}
.lang-ar .featured h3 { font-family: var(--serif-ar); }
.featured .sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 4px;
  font-size: 14px;
}
.lang-ar .featured .sub { font-family: var(--serif-ar); font-style: normal; }
.featured .meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ---- Field book progress ---- */
.book-banner {
  margin: 0 22px;
  border: 0.5px solid var(--rule);
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: linear-gradient(140deg, rgba(212,168,92,0.06), rgba(212,168,92,0.02));
}
.book-banner .br1 {
  display: flex; justify-content: space-between; align-items: center;
}
.book-banner .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.book-banner .count {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: #f8efd9;
}
.book-banner .count em {
  font-style: normal;
  color: var(--ink-faint);
  font-size: 18px;
}
.book-banner .progress {
  position: relative;
  height: 1px;
  background: var(--rule-strong);
  margin: 12px 0 8px;
}
.book-banner .progress .fill {
  position: absolute;
  top: -1px; left: 0;
  height: 3px;
  background: var(--gold);
  transition: width 0.4s;
}
.book-banner .stamps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.book-banner .chip {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 0.5px solid var(--rule);
  color: var(--ink-faint);
  text-transform: uppercase;
}
.book-banner .chip.on {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212,168,92,0.08);
}

/* ---- Audio tour card ---- */
.audio-card {
  margin: 0 22px;
  border: 0.5px solid var(--rule);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(111,200,214,0.14), transparent 48%),
    linear-gradient(140deg, rgba(15,42,66,0.7), rgba(4,17,29,0.8));
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s, border-color 0.16s, background 0.16s;
}
.audio-card:active {
  transform: scale(0.99);
}
.audio-card:focus-visible {
  outline: 2px solid rgba(212,168,92,0.72);
  outline-offset: 3px;
}
.audio-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.audio-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  background: rgba(212,168,92,0.12);
  border: 0.5px solid rgba(212,168,92,0.42);
}
.audio-meta {
  min-width: 0;
  flex: 1;
}
.audio-title {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.02;
  color: #f8efd9;
}
.lang-ar .audio-title {
  font-family: var(--serif-ar);
  font-size: 25px;
  line-height: 1.12;
}
.audio-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink-soft);
}
.lang-ar .audio-desc {
  font-size: 14px;
  line-height: 1.65;
}
.audio-start {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 0.5px solid var(--gold);
  border-radius: 12px;
  background: rgba(212,168,92,0.14);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.lang-ar .audio-start {
  font-family: var(--sans-ar);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.lang-ar .audio-start svg,
.lang-ar .habitat .harrow svg {
  transform: scaleX(-1);
}

/* ---- Bottom tab bar ---- */
.tabbar {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  height: 64px;
  border-radius: 22px;
  background: rgba(10, 26, 42, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 0.5px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  z-index: 30;
  padding: 0 8px;
  direction: ltr;
}
.lang-ar .tabbar { direction: rtl; }
.tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  cursor: pointer;
  color: var(--ink-faint);
  transition: color 0.15s;
}
.tabbar .tab.active { color: var(--gold); }
.tabbar .tab svg { display: block; }
.lang-ar .tabbar .tab { direction: rtl; }
.tabbar .tab .lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lang-ar .tabbar .tab .lbl {
  font-family: var(--sans-ar);
  font-size: 10.5px;
  letter-spacing: 0;
  text-transform: none;
}

/* ---- Habitat detail screen ---- */
.detail-back {
  position: absolute;
  top: 56px; left: 18px;
  z-index: 10;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(4,17,29,0.55);
  backdrop-filter: blur(12px);
  border: 0.5px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.lang-ar .detail-back { left: auto; right: 18px; }
.detail-cover {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--bg-tide);
}
.detail-cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.92;
}
.detail-cover .gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,17,29,0.4) 0%, rgba(4,17,29,0) 30%, rgba(4,17,29,0.95) 100%);
}
.detail-cover .stack {
  position: absolute;
  left: 22px; right: 22px; bottom: 22px;
}
.detail-cover .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.detail-cover h1 {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 0.95;
  margin: 6px 0 0;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #f8efd9;
}
.lang-ar .detail-cover h1 { font-family: var(--serif-ar); font-size: 40px; }
.detail-cover .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.lang-ar .detail-cover .sub { font-family: var(--serif-ar); font-style: normal; }

.detail-body {
  padding: 24px 22px 120px;
}
.lede {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: 0.005em;
  text-wrap: pretty;
  margin: 0 0 24px;
}
.lang-ar .lede { font-family: var(--serif-ar); font-size: 19px; }
.lede::first-letter {
  font-family: var(--serif);
  font-size: 56px;
  float: left;
  line-height: 0.85;
  padding: 6px 8px 0 0;
  color: var(--gold);
}
.lang-ar .lede::first-letter { font-size: inherit; float: none; padding: 0; }

.ecosystem-story {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.58;
  color: var(--ink-soft);
  text-wrap: pretty;
  margin: -8px 0 24px;
}
.lang-ar .ecosystem-story {
  font-family: var(--serif-ar);
  font-size: 18.5px;
  line-height: 1.7;
}

.keeper-tip {
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  padding: 14px 0;
  margin-bottom: 24px;
  display: flex;
  gap: 14px;
}
.keeper-tip .ktag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
  width: 80px;
  padding-top: 2px;
}
.keeper-tip .kbody {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.lang-ar .keeper-tip .kbody { font-family: var(--serif-ar); font-style: normal; }

/* ---- Audio tour detail ---- */
.audio-tour-cover {
  background:
    radial-gradient(circle at 78% 22%, rgba(111,200,214,0.18), transparent 42%),
    radial-gradient(circle at 20% 80%, rgba(212,168,92,0.16), transparent 52%),
    linear-gradient(145deg, #0f2a42 0%, #04111d 100%);
}
.audio-cover-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(212,168,92,0.28);
}
.audio-cover-art::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(212,168,92,0.16);
  box-shadow:
    0 0 0 30px rgba(212,168,92,0.025),
    0 0 0 62px rgba(111,200,214,0.018);
}
.audio-cover-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4,17,29,0.38);
  border: 0.5px solid rgba(212,168,92,0.22);
  position: relative;
  z-index: 1;
}
.audio-cover-icon svg {
  width: 44px;
  height: 44px;
}
.audio-stop-head {
  margin-bottom: 6px;
}
.audio-stop-list {
  display: flex;
  flex-direction: column;
}
.tour-stop-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-top: 0.5px solid var(--rule);
  cursor: pointer;
  transition: opacity 0.16s;
}
.tour-stop-row:active { opacity: 0.72; }
.tour-stop-row:last-child {
  border-bottom: 0.5px solid var(--rule);
}
.tour-stop-row .num {
  width: 24px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.stop-info {
  flex: 1;
  min-width: 0;
}
.stop-title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.12;
  color: #f8efd9;
}
.stop-loc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-faint);
}
.stop-eco {
  flex-shrink: 0;
  border: 0.5px solid var(--rule);
  border-radius: 999px;
  padding: 4px 7px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.stop-audio-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stop-audio-dot svg {
  width: 11px;
  height: 11px;
}
.stop-eco.marine { color: var(--aqua); border-color: rgba(111,200,214,0.38); }
.stop-eco.coastal { color: var(--penguin); border-color: rgba(127,198,168,0.38); }
.stop-eco.desert { color: var(--sand); border-color: rgba(225,185,122,0.38); }
.stop-eco.overview { color: var(--gold); border-color: rgba(212,168,92,0.38); }
.lang-ar .tour-stop-row .num,
.lang-ar .stop-eco {
  letter-spacing: 0;
}
.lang-ar .stop-title {
  font-family: var(--serif-ar);
  font-size: 21px;
  line-height: 1.18;
}
.lang-ar .stop-loc {
  font-size: 13px;
  line-height: 1.55;
}
.lang-ar .stop-eco {
  font-family: var(--sans-ar);
  font-size: 10px;
  text-transform: none;
}
.audio-stop-cover.has-img img {
  filter: saturate(1.03) contrast(1.04) brightness(0.82);
}
.audio-stop-body {
  padding-bottom: 120px;
}
.audio-stop-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 0.5px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
}
.audio-stop-meta .cell {
  background: var(--bg-deep);
  padding: 14px;
}
.audio-stop-meta .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.audio-stop-meta .v {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.25;
  margin-top: 5px;
  color: var(--ink);
}
.audio-player-card {
  border: 0.5px solid rgba(212,168,92,0.38);
  border-radius: 16px;
  padding: 14px;
  margin: 0 0 22px;
  background:
    radial-gradient(circle at 12% 10%, rgba(212,168,92,0.14), transparent 42%),
    rgba(15,42,66,0.34);
}
.audio-player-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.audio-player-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.audio-player-title {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.15;
  color: var(--ink);
}
.audio-player-card audio {
  width: 100%;
  display: block;
  filter: sepia(0.15) saturate(0.9);
}
.lang-ar .audio-player-label {
  font-family: var(--sans-ar);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.lang-ar .audio-player-title {
  font-family: var(--serif-ar);
  font-size: 20px;
}
.lang-ar .audio-stop-meta .k {
  font-family: var(--sans-ar);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.lang-ar .audio-stop-meta .v {
  font-family: var(--serif-ar);
  font-size: 20px;
}
.audio-stop-species-head {
  margin-top: 26px;
  margin-bottom: 6px;
}

/* ---- Species list rows ---- */
.species-list .row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 0.5px solid var(--rule);
  cursor: pointer;
  align-items: center;
}
.species-list .row:last-child { border-bottom: 0.5px solid var(--rule); }
.species-list .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  width: 22px;
  flex-shrink: 0;
}
.species-list .thumb {
  width: 56px; height: 56px;
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 0.5px solid var(--rule);
}
.species-list .thumb .placeholder {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(212,168,92,0.08) 0,
      rgba(212,168,92,0.08) 4px,
      transparent 4px,
      transparent 8px);
}
.species-list .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.species-list .info { flex: 1; min-width: 0; }
.species-list .name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: #f8efd9;
}
.lang-ar .species-list .name { font-family: var(--serif-ar); }
.species-list .latin {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 2px;
}
.lang-ar .species-list .latin { font-style: normal; }
.species-list .right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  flex-shrink: 0;
}
.species-list .iucn {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  border-radius: 4px;
}
.iucn-LC { color: #7fc6a8; border: 0.5px solid rgba(127,198,168,0.4); }
.iucn-NT { color: #c5d97f; border: 0.5px solid rgba(197,217,127,0.4); }
.iucn-VU { color: #d4a85c; border: 0.5px solid rgba(212,168,92,0.4); }
.iucn-EN { color: #d68a5c; border: 0.5px solid rgba(214,138,92,0.45); }
.iucn-CR { color: #d65c5c; border: 0.5px solid rgba(214,92,92,0.45); }
.species-list .stamped {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ---- Species detail ---- */
.sp-cover {
  position: relative;
  height: 360px;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.04) 0,
      rgba(255,255,255,0.04) 6px,
      transparent 6px,
      transparent 12px),
    var(--bg-tide);
}
.sp-cover.has-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.04) contrast(1.03) brightness(0.9);
}
.sp-cover .gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4,17,29,0.08) 0%, rgba(4,17,29,0) 36%, rgba(4,17,29,0.9) 100%),
    radial-gradient(circle at 20% 18%, rgba(4,17,29,0.45), transparent 46%);
}
.sp-cover .placeholder-text {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.sp-cover .stack {
  position: absolute;
  left: 22px; right: 22px; bottom: 24px;
  z-index: 2;
}
.sp-cover .common {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.lang-ar .sp-cover .common {
  font-family: var(--sans-ar);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.sp-cover h1 {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 0.95;
  margin: 8px 0 0;
  font-weight: 400;
  color: #f8efd9;
}
.lang-ar .sp-cover h1 {
  font-family: var(--serif-ar);
  font-size: 46px;
  line-height: 1.05;
}
.sp-cover .latin {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 6px;
}
.lang-ar .sp-cover .latin {
  font-style: normal;
  font-family: var(--serif-ar);
  font-size: 20px;
}

.sp-body { padding: 22px 22px 110px; }
.sp-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 0.5px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
}
.sp-meta .cell {
  background: var(--bg-deep);
  padding: 14px 14px;
}
.sp-meta .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.lang-ar .sp-meta .k {
  font-family: var(--sans-ar);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.sp-meta .v {
  font-family: var(--serif);
  font-size: 17px;
  margin-top: 4px;
  color: var(--ink);
}
.lang-ar .sp-meta .v {
  font-family: var(--serif-ar);
  font-size: 23px;
  line-height: 1.25;
}
.sp-meta .sp-iucn {
  margin-right: 8px;
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  vertical-align: middle;
}
.lang-ar .sp-meta .sp-iucn {
  margin-right: 0;
  margin-left: 8px;
}
.sp-meta .status-label {
  font-size: 14px;
  vertical-align: middle;
}
.lang-ar .sp-meta .status-label {
  font-size: 18px;
}
.sp-story {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
  margin: 0 0 24px;
}
.lang-ar .sp-story { font-family: var(--serif-ar); }

.stamp-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 0.5px solid var(--gold);
  background: rgba(212,168,92,0.08);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.15s;
}
.stamp-btn:hover { background: rgba(212,168,92,0.14); }
.stamp-btn.on {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}
.lang-ar .stamp-btn {
  font-family: var(--sans-ar);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

/* ---- Map screen ---- */
.map-screen { padding: 0 0 110px; }
.map-head {
  padding: 64px 22px 14px;
}
.map-head .num {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--gold); text-transform: uppercase;
}
.lang-ar .map-head .num {
  font-family: var(--sans-ar);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.map-head h1 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  margin: 8px 0 0;
}
.lang-ar .map-head h1 {
  font-family: var(--serif-ar);
  font-size: 42px;
  line-height: 1.12;
}
.map-stage {
  margin: 16px 22px;
  height: 380px;
  border-radius: 18px;
  border: 0.5px solid var(--rule);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 70%, rgba(79,168,184,0.18) 0%, transparent 50%),
    radial-gradient(circle at 70% 35%, rgba(212,168,92,0.14) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(127,198,168,0.10) 0%, transparent 40%),
    var(--bg-tide);
}
.map-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.map-pin .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 0 1px var(--gold), 0 0 16px rgba(212,168,92,0.5);
}
.map-pin .lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--ink);
  background: rgba(4,17,29,0.85);
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  border: 0.5px solid rgba(255,255,255,0.1);
}
.lang-ar .map-pin .lbl {
  font-family: var(--sans-ar);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  padding: 5px 8px;
}
.map-pin.you .dot {
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.18), 0 0 0 12px rgba(255,255,255,0.08);
  animation: pulse 2s infinite;
}
.map-pin.you .lbl { color: #fff; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(255,255,255,0.18), 0 0 0 12px rgba(255,255,255,0.08); }
  50% { box-shadow: 0 0 0 10px rgba(255,255,255,0.10), 0 0 0 20px rgba(255,255,255,0.04); }
}
.map-zone {
  position: absolute;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.55;
}
.lang-ar .map-zone { font-family: var(--serif-ar); }
.map-zone .e {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.map-list {
  padding: 0 22px;
  display: flex; flex-direction: column;
}
.map-list .mrow {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 0;
  border-top: 0.5px solid var(--rule);
}
.map-list .mrow:last-child { border-bottom: 0.5px solid var(--rule); }
.map-list .mleft { flex: 1; }
.map-list .mname {
  font-family: var(--serif); font-size: 18px; color: #f8efd9;
}
.lang-ar .map-list .mname {
  font-family: var(--serif-ar);
  font-size: 26px;
  line-height: 1.12;
}
.map-list .msub {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--ink-faint); margin-top: 4px; text-transform: uppercase;
}
.lang-ar .map-list .msub {
  font-family: var(--sans-ar);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 8px;
}
.map-list .mwalk {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--gold); text-transform: uppercase;
}
.lang-ar .map-list .mwalk {
  font-family: var(--sans-ar);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

/* ---- Settings screen ---- */
.settings-screen {
  padding: 64px 22px 110px;
}
.settings-screen .h1 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  margin: 8px 0 4px;
}
.lang-ar .settings-screen .h1 {
  font-family: var(--serif-ar);
  font-size: 32px;
}
.settings-screen .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
}
.lang-ar .settings-screen .sub {
  font-family: var(--serif-ar);
  font-style: normal;
}
.settings-group {
  margin-top: 30px;
  border-top: 0.5px solid var(--rule);
}
.settings-group-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 16px 0 2px;
}
.lang-ar .settings-group-title {
  letter-spacing: 0;
  text-transform: none;
}
.setting-row,
.language-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 0.5px solid var(--rule);
}
.setting-copy {
  min-width: 0;
  flex: 1;
}
.setting-title {
  font-family: var(--serif);
  font-size: 19px;
  color: #f8efd9;
  line-height: 1.15;
}
.lang-ar .setting-title {
  font-family: var(--serif-ar);
}
.setting-sub {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-faint);
}
.switch {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 0.5px solid var(--rule-strong);
  background: rgba(243,236,220,0.08);
  padding: 3px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.switch span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(243,236,220,0.76);
  transform: translateX(0);
  transition: transform 0.18s, background 0.18s;
}
.switch.on {
  background: rgba(212,168,92,0.28);
  border-color: rgba(212,168,92,0.7);
}
.switch.on span {
  background: var(--gold);
  transform: translateX(20px);
}
.lang-ar .switch.on span {
  transform: translateX(-20px);
}
.language-card {
  align-items: stretch;
  flex-direction: column;
}
.language-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.language-options button {
  min-height: 42px;
  border: 0.5px solid var(--rule);
  border-radius: 12px;
  background: rgba(15,42,66,0.42);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.language-options button.active {
  border-color: rgba(212,168,92,0.75);
  background: rgba(212,168,92,0.16);
  color: var(--gold);
}
.lang-ar .language-options button {
  font-family: var(--sans-ar);
  letter-spacing: 0;
}

/* ---- Field book screen ---- */
.book-screen { padding: 64px 22px 110px; }
.book-screen .h1 {
  font-family: var(--serif); font-size: 38px; font-weight: 400; margin: 8px 0 4px;
}
.lang-ar .book-screen .h1 { font-family: var(--serif-ar); font-size: 32px; }
.book-screen .sub {
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--ink-soft);
}
.lang-ar .book-screen .sub { font-style: normal; font-family: var(--serif-ar); }
.book-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.stamp-cell {
  aspect-ratio: 0.82;
  border: 0.5px solid var(--rule);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  background: var(--bg-tide);
  cursor: pointer;
}
.stamp-cell .stripes {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(212,168,92,0.05) 0,
      rgba(212,168,92,0.05) 4px,
      transparent 4px, transparent 8px);
  z-index: 0;
}
.stamp-cell.locked .stripes {
  opacity: 0.85;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(243,236,220,0.055) 0,
      rgba(243,236,220,0.055) 4px,
      transparent 4px,
      transparent 9px);
}
.stamp-cell .stamp-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.54;
  filter: saturate(0.95) contrast(1.08) brightness(0.72);
  z-index: 0;
}
.stamp-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,17,29,0.28) 0%, rgba(4,17,29,0.7) 42%, rgba(4,17,29,0.5) 100%),
    radial-gradient(circle at 50% 58%, rgba(4,17,29,0.15), rgba(4,17,29,0.72) 74%);
  z-index: 0;
}
.stamp-cell.locked::after {
  background:
    linear-gradient(180deg, rgba(4,17,29,0.1) 0%, rgba(4,17,29,0.42) 44%, rgba(4,17,29,0.2) 100%),
    radial-gradient(circle at 50% 58%, rgba(212,168,92,0.05), rgba(4,17,29,0.34) 74%);
}
.stamp-cell.on {
  border: 0.5px solid rgba(212,168,92,0.6);
  background: radial-gradient(circle at 50% 30%, rgba(212,168,92,0.15) 0%, var(--bg-tide) 70%);
}
.stamp-cell.on .stamp-photo {
  opacity: 0.7;
  filter: saturate(1.04) contrast(1.06) brightness(0.78);
}
.stamp-cell .stamp-circle {
  position: absolute;
  top: 62%; left: 50%;
  transform: translate(-50%, -50%);
  width: 94px; height: 94px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  line-height: 1.3;
  padding: 0;
  z-index: 1;
  overflow: hidden;
  background: rgba(4,17,29,0.65);
  box-shadow: 0 0 0 5px rgba(4,17,29,0.38);
}
.stamp-cell .stamp-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,17,29,0) 38%, rgba(4,17,29,0.62) 100%),
    radial-gradient(circle at 50% 34%, transparent 0%, rgba(4,17,29,0.16) 78%);
  z-index: 1;
}
.stamp-cell .stamp-badge-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.04) brightness(0.92);
}
.stamp-cell .stamp-badge-label {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  border-radius: 999px;
  padding: 3px 4px;
  background: rgba(4,17,29,0.74);
  border: 0.5px solid rgba(212,168,92,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transform: rotate(-7deg);
}
.stamp-cell.locked .stamp-circle {
  border: 1px dashed rgba(243,236,220,0.32);
  color: rgba(243,236,220,0.44);
  background:
    radial-gradient(circle at 50% 42%, rgba(243,236,220,0.07), rgba(4,17,29,0.42) 68%);
  box-shadow: 0 0 0 5px rgba(4,17,29,0.25);
}
.stamp-cell.locked .stamp-circle::after {
  display: none;
}
.stamp-locked-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stamp-locked-mark svg {
  display: block;
  width: 30px;
  height: 30px;
}
.lang-ar .stamp-locked-mark {
  font-family: var(--sans-ar);
  letter-spacing: 0;
  text-transform: none;
}
.stamp-cell .stamp-card-head {
  position: relative;
  z-index: 2;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.stamp-cell .stamp-name {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  line-height: 1.05;
  max-height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-wrap: balance;
}
.lang-ar .stamp-cell .stamp-name {
  font-family: var(--serif-ar);
  font-size: 19px;
  line-height: 1.1;
}
.stamp-cell.locked .stamp-name { color: var(--ink-faint); }
.stamp-cell .stamp-tank {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: 8px;
  white-space: nowrap;
}
.lang-ar .stamp-cell .stamp-tank {
  letter-spacing: 0;
  text-transform: none;
}

/* ---- Section header in book ---- */
.book-section-h {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.book-section-h .h {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  white-space: nowrap;
}
.lang-ar .book-section-h .h { font-family: var(--serif-ar); }
.book-section-h .c {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Stamp burst (delight) ---- */
.burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.burst .ring {
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: burst-ring 0.7s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes burst-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* RTL nudges */
.lang-ar .app-top .pill { flex-direction: row-reverse; }
