:root {
  --navy: #0B1F3A;
  --navy-2: #12305A;
  --gold: #C9A14A;
  --gold-hi: #F1D58A;
  --gold-deep: #8E6A22;
  --champagne: #E7C878;
  --line: #E8DCC2;
  --gold-soft: #E9D9B4;
  --ivory: #F5F1E6;
  --pearl: #FCFAF4;
  --mist: #DCD3BF;
  --ink-soft: #4A5B72;
  --correct: #2E7D5B;
  --correct-bg: #E3F1E9;
  --wrong: #B3413B;
  --wrong-bg: #F6E3E1;
  --focus: #C9A14A;
  --font-display: "Cormorant Garamond", "Literata", Georgia, serif;
  --gold-leaf: linear-gradient(180deg, #F4DE9C 0%, #D9B560 48%, #B98B2F 100%);
  --hairline: linear-gradient(90deg, rgba(201,161,74,0) 0%, #E7C878 30%, #C9A14A 70%, rgba(201,161,74,0) 100%);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.9) inset, 0 14px 36px rgba(11,31,58,0.07);
  --font-read: "Literata", "Georgia", "Times New Roman", serif;
  --font-ui: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", serif;
  --font-plain: "Atkinson Hyperlegible", "Verdana", "Tahoma", sans-serif;
  --radius: 10px;
  --header-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
[dir="rtl"], .ar { font-family: var(--font-ar); }

/* Header */
.bar {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  background: var(--navy); color: var(--ivory);
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.18);
}
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--hairline); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex: none; object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 10px rgba(241, 213, 138, 0.25)); }
.brand-name { font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1; }
.brand-sub { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #D9BD78; white-space: nowrap; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.bar-spacer { flex: 1; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 40px; height: 40px; padding: 0 10px;
  background: rgba(246, 241, 230, 0.05); color: var(--ivory);
  border: 1px solid rgba(231, 200, 120, 0.4); border-radius: 999px;
  cursor: pointer; font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.icon-btn:hover { border-color: var(--champagne); background: rgba(246, 241, 230, 0.1); box-shadow: 0 0 0 3px rgba(231, 200, 120, 0.12); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn[aria-pressed="true"] { background: var(--gold-leaf); border-color: #A87E2A; color: var(--navy); }
.icon-btn svg { width: 18px; height: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1px solid #07162B;
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%); color: var(--gold-hi);
  font-weight: 700; letter-spacing: 0.01em; cursor: pointer; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 18px rgba(11, 31, 58, 0.24);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 26px rgba(11, 31, 58, 0.3); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.35); }
.btn.gold {
  background: var(--gold-leaf); color: var(--navy); border-color: #A87E2A;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -2px 0 rgba(120, 84, 20, 0.25), 0 8px 20px rgba(185, 139, 47, 0.35), 0 1px 2px rgba(11, 31, 58, 0.2);
}
.btn.gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -2px 0 rgba(120, 84, 20, 0.25), 0 14px 28px rgba(185, 139, 47, 0.45), 0 0 0 4px rgba(231, 200, 120, 0.25); }
.btn.gold:active { background: linear-gradient(180deg, #C99E45 0%, #B98B2F 100%); box-shadow: inset 0 3px 6px rgba(90, 60, 10, 0.35); }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid #D9BD78; box-shadow: 0 2px 6px rgba(11, 31, 58, 0.06); }
.btn.ghost:hover { background: #FFFDF8; box-shadow: 0 8px 18px rgba(11, 31, 58, 0.1); }
.btn.ghost:active { box-shadow: inset 0 2px 4px rgba(11, 31, 58, 0.12); }
.btn.big { min-height: 56px; padding: 0 32px; font-size: 1.05rem; }
.btn[disabled], .btn[disabled]:hover { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Official CCG tag */
.official {
  display: inline-block; margin-left: 10px; padding: 3px 10px;
  border: 1px solid #D9BD78; border-radius: 999px;
  font-family: var(--font-ui); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-deep); background: #FBF4E4; vertical-align: 0.4em;
}

/* Pearls */
.pearl {
  display: inline-block;
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, #EFE8D8 40%, #CFC4AC 100%);
  box-shadow: inset -2px -3px 5px rgba(16, 42, 74, 0.18);
  border: 1px solid #C9BD9F;
}
.pearl.empty { background: transparent; box-shadow: none; border: 1.5px dashed #B9AE95; }
.pearl.gold {
  background: radial-gradient(circle at 35% 30%, #FFF8E6 0 16%, #E8C77A 42%, #B8862E 100%);
  border-color: #A87A28;
}
.pearl.half {
  background: radial-gradient(circle at 35% 30%, #fff 0 16%, #EADBB6 45%, #C9B27A 100%);
}
.pearl.dull {
  background: radial-gradient(circle at 35% 30%, #EEE 0 16%, #C7C7C7 50%, #9A9A9A 100%);
  border-color: #8F8F8F;
}

.footer {
  position: relative; margin-top: 64px; padding: 56px 24px 40px; text-align: center;
  background: var(--navy); color: #C9D2E0; font-size: 0.88rem; line-height: 1.6;
}
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--hairline); }
.footer::after {
  content: ""; display: block; width: 34px; height: 34px; margin: 0 auto; order: -1;
  background: url("../img/brand/danah.webp") center / contain no-repeat;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); position: absolute; top: 18px; left: calc(50% - 17px);
}
.footer p { margin: 8px auto; max-width: 820px; }
.footer p:first-child { margin-top: 18px; }
.footer a { color: #F1E4C2; text-decoration: none; border-bottom: 1px solid rgba(231, 200, 120, 0.45); padding-bottom: 1px; }
.footer a:hover { color: #fff; border-bottom-color: var(--champagne); }
.footer p:last-child { color: #9FAAC0; font-size: 0.8rem; }
.footer .ar { display: block; margin-top: 2px; color: var(--champagne); font-size: 1.05rem; }

/* Pearl finish for the photographic danah */
.danah:not(.drawn):not(.ghost)::after {
  content: ""; position: absolute; inset: 9%; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0) 38%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 62%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0; mix-blend-mode: soft-light;
  animation: pearl-sheen 6s ease-in-out infinite; animation-delay: var(--sheen-delay, 0s);
}
.danah:not(.drawn) img { filter: drop-shadow(0 6px 8px rgba(11, 31, 58, 0.28)) drop-shadow(0 2px 2px rgba(11, 31, 58, 0.22)); }
.danah.golden:not(.drawn) img { filter: drop-shadow(0 6px 8px rgba(11, 31, 58, 0.25)) drop-shadow(0 0 10px rgba(241, 213, 138, 0.6)); }
@keyframes pearl-sheen { 0%, 70% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.ghost-pearl { display: inline-block; position: relative; width: 22px; height: 22px; flex: none; }
.ghost-pearl img { width: 100%; height: 100%; filter: grayscale(1); opacity: 0.3; }
.ghost-pearl.tried img { opacity: 0.5; filter: grayscale(0.6); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0.005em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 640px) {
  .bar { padding: 0 14px; gap: 10px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 1.55rem; }
  .brand-mark { width: 30px; height: 30px; }
  .icon-btn { white-space: nowrap; }
  .icon-btn.text { padding: 0 12px; font-size: 0.85rem; }
}

/* ===== P13 polish: one button family ===== */
/* Header pills: every text button in the navy bar looks the same. */
.icon-btn.text, .icon-btn.text.subtle {
  height: 40px; padding: 0 16px; gap: 8px; font-size: 0.88rem; letter-spacing: 0.01em;
  color: #F6F1E6; border: 1px solid rgba(231, 200, 120, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.icon-btn.text:hover { border-color: var(--champagne); background: rgba(246, 241, 230, 0.1); box-shadow: 0 0 0 3px rgba(231, 200, 120, 0.12); transform: translateY(-1px); }
.icon-btn .ico { width: 16px; height: 16px; flex: none; color: var(--champagne); }

/* Big buttons on navy: the gold one and its twin. */
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn.glass, .btn-outline-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 32px; border-radius: 999px; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--gold-hi); text-decoration: none; border: 1px solid rgba(231, 200, 120, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn.glass:hover, .btn-outline-light:hover {
  transform: translateY(-2px); border-color: var(--gold-hi); background: rgba(246, 241, 230, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 28px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(231, 200, 120, 0.16);
}
.btn.glass:active, .btn-outline-light:active { transform: translateY(1px); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.35); }
.btn.glass .ico, .btn-outline-light .ico { color: var(--champagne); }

/* ===== The creator ===== */
.creator { max-width: 1200px; margin: 56px auto 0; padding: 0 32px; }
.creator-card {
  position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: center;
  padding: 48px 52px; border-radius: 28px; overflow: hidden; color: var(--ivory);
  background:
    radial-gradient(ellipse at 12% 30%, rgba(231, 200, 120, 0.16) 0%, rgba(231, 200, 120, 0) 55%),
    linear-gradient(160deg, #12305A 0%, var(--navy) 62%);
  box-shadow: 0 30px 60px rgba(11, 31, 58, 0.22);
}
.creator-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--hairline); }
.portrait { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.portrait-frame {
  position: relative; width: 260px; height: 260px; border-radius: 50%; padding: 7px;
  background: conic-gradient(from 210deg, #F4DE9C, #B98B2F, #F1D58A, #8E6A22, #F4DE9C);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 10px rgba(231, 200, 120, 0.08);
}
.portrait-frame::before {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  border: 1px solid rgba(231, 200, 120, 0.35);
}
.portrait-frame .portrait-photo {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  border: 4px solid var(--navy);
}
.portrait-frame .portrait-pearl {
  position: absolute; right: 10px; bottom: 14px; width: 46px; height: 46px;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 10px rgba(241, 213, 138, 0.5));
}
.portrait figcaption { font-family: var(--font-ar); font-size: 1.3rem; color: var(--champagne); }
.creator-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.creator .eyebrow { margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: #D9BD78; }
.creator h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 4.4vw, 3.4rem); line-height: 1; color: var(--ivory); }
.creator-role { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--champagne); }
.creator-bio { margin: 0; max-width: 44rem; font-size: 1.02rem; line-height: 1.7; color: #C9D2E0; }
.creator-bio strong { color: var(--ivory); font-weight: 600; }
.creator-stats { list-style: none; margin: 6px 0 4px; padding: 0; display: flex; flex-wrap: wrap; }
.creator-stats li { display: flex; flex-direction: column; gap: 4px; padding: 0 26px; border-left: 1px solid rgba(231, 200, 120, 0.3); }
.creator-stats li:first-child { padding-left: 0; border-left: 0; }
.creator-stats strong { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--ivory); }
.creator-stats li:nth-child(2) strong { color: var(--champagne); }
.creator-stats small { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #9FAAC0; }

/* Link cards: four identical buttons */
.creator-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.link-card {
  display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 18px 12px 12px;
  border-radius: 18px; text-decoration: none; color: var(--ivory);
  border: 1px solid rgba(231, 200, 120, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.link-card:hover { transform: translateY(-2px); border-color: var(--gold-hi); background: rgba(246, 241, 230, 0.1); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(231, 200, 120, 0.14); }
.link-card:active { transform: translateY(1px); }
.link-card .lc-icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-leaf); color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 10px rgba(0, 0, 0, 0.3);
}
.link-card .lc-icon svg { width: 22px; height: 22px; }
.link-card .lc-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.link-card .lc-text b { font-weight: 700; font-size: 0.98rem; }
.link-card .lc-text small { font-size: 0.8rem; color: #AFBACD; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-card .lc-go { margin-left: auto; flex: none; width: 18px; height: 18px; color: var(--champagne); opacity: 0.75; transition: transform 0.2s, opacity 0.2s; }
.link-card:hover .lc-go { opacity: 1; transform: translate(2px, -2px); }

/* Footer connect row */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px auto 18px; max-width: 900px; }
.footer .footer-links a {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(231, 200, 120, 0.4); color: #F1E4C2; font-size: 0.85rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.04); transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.footer .footer-links a:hover { border-color: var(--champagne); background: rgba(246, 241, 230, 0.09); color: #fff; transform: translateY(-1px); }
.footer .footer-links svg { width: 15px; height: 15px; color: var(--champagne); }

@media (max-width: 900px) {
  .creator { padding: 0 18px; margin-top: 40px; }
  .creator-card { grid-template-columns: 1fr; gap: 28px; padding: 36px 22px 30px; text-align: center; }
  .creator-copy { align-items: center; }
  .creator-stats { justify-content: center; }
  .creator-stats li { padding: 0 16px; }
  .creator-stats strong { font-size: 2.1rem; }
  .creator-links { grid-template-columns: 1fr; width: 100%; text-align: left; }
  .portrait-frame { width: 210px; height: 210px; }
  .portrait-frame .portrait-pearl { width: 38px; height: 38px; right: 6px; bottom: 10px; }
}
@media (max-width: 640px) {
  .icon-btn.text, .icon-btn.text.subtle { padding: 0 12px; font-size: 0.84rem; }
  .icon-btn .ico { width: 15px; height: 15px; }
  .btn.glass, .btn-outline-light { padding: 0 24px; }
}
@media (max-width: 640px) {
  .creator-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .creator-stats li { padding: 0 6px; align-items: center; text-align: center; }
  .creator-stats li:first-child { padding-left: 6px; }
  .creator-stats strong { font-size: 1.9rem; }
  .creator-stats small { font-size: 0.6rem; letter-spacing: 0.1em; }
  .creator-role { font-size: 1.15rem; }
}

/* ===== Magnify a picture ===== */
.tx-img.has-zoom { position: relative; }
.zoom-btn {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; border-radius: 50%; cursor: pointer;
  color: var(--navy); border: 1px solid rgba(201, 161, 74, 0.8);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(246, 241, 230, 0.92) 100%);
  box-shadow: 0 3px 10px rgba(11, 31, 58, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  opacity: 0.92; transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.zoom-btn svg { width: 20px; height: 20px; }
.zoom-btn:hover { opacity: 1; transform: translateY(-2px) scale(1.05); background: var(--gold-leaf); box-shadow: 0 8px 18px rgba(11, 31, 58, 0.32); }
.zoom-btn:active { transform: translateY(1px) scale(1); }
.tx-img.thumb .zoom-btn { width: 30px; height: 30px; right: 5px; bottom: 5px; }
.tx-img.thumb .zoom-btn svg { width: 16px; height: 16px; }

.zoombox {
  position: fixed; inset: 0; z-index: 120; cursor: zoom-out;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px 24px;
  background: radial-gradient(ellipse at 50% 40%, rgba(18, 48, 90, 0.96), rgba(8, 22, 42, 0.985) 70%);
  animation: zoom-in 0.2s ease-out;
}
body.zoomed { overflow: hidden; }
.zoom-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.zoom-img {
  max-width: min(96vw, 1400px); max-height: 78vh; width: auto; height: auto;
  border-radius: 10px; border: 1px solid rgba(231, 200, 120, 0.5);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  animation: zoom-rise 0.25s cubic-bezier(.2, 1, .3, 1);
}
.zoom-cap {
  margin: 0; max-width: 60ch; text-align: center; color: #E7DCC4;
  font-family: var(--font-ui); font-size: 0.92rem; line-height: 1.5;
}
.zoom-close {
  position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  color: var(--ivory); background: rgba(246, 241, 230, 0.08);
  border: 1px solid rgba(231, 200, 120, 0.5);
}
.zoom-close svg { width: 22px; height: 22px; }
.zoom-close:hover { background: rgba(246, 241, 230, 0.16); border-color: var(--champagne); }
@keyframes zoom-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-rise { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  .zoom-img { max-width: 96vw; max-height: 70vh; }
  .zoom-cap { font-size: 0.85rem; }
}

/* ===== P22: the portrait is now the golden pearl, not a photograph ===== */
.portrait-frame .portrait-emblem {
  width: 100%; height: 100%; border-radius: 50%; object-fit: contain; padding: 18%;
  background: radial-gradient(circle at 50% 42%, #1A3C6B 0%, var(--navy) 70%);
  border: 4px solid var(--navy);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  animation: pearl-float 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .portrait-frame .portrait-emblem { animation: none; } }
@keyframes emblem-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.portrait-frame .portrait-emblem { animation-name: emblem-float; }

/* ===== P23: text-only creator card ===== */
.creator-card.text-only { grid-template-columns: 1fr; padding: 44px 56px; }
.creator-card.text-only .creator-copy { max-width: 52rem; }
@media (max-width: 900px) { .creator-card.text-only { padding: 32px 22px 28px; } }

/* M10: offline */
.offline-banner { position: sticky; top: 0; z-index: 60; padding: 8px 16px; text-align: center; font-size: 0.9rem; background: #FBF1D6; color: #5E4513; border-bottom: 1px solid #E8D29A; }
.offline-card { margin: 12px 0; padding: 16px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--navy); }
.offline-card h2 { font-family: var(--font-read); font-size: 1.1rem; margin: 0 0 6px; }
.offline-card.compact { padding: 12px 16px; }
.offline-card.compact h2 { font-size: 1rem; }
.off-status { margin: 0 0 8px; font-size: 0.92rem; color: var(--ink-soft); }
.off-track { height: 10px; border-radius: 999px; background: var(--pearl); border: 1px solid var(--line); overflow: hidden; margin: 0 0 10px; }
.off-track span { display: block; height: 100%; width: 0; background: var(--gold-leaf); transition: width 0.2s; }
.off-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.off-check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.off-check input { width: 18px; height: 18px; accent-color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .off-track span { transition: none; } }

/* ===== Wordmark: the Readanah name with its three pearls ===== */
.brand-word { display: block; height: 34px; width: auto; max-width: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 10px rgba(241, 213, 138, 0.12)); }
.brand-word + .brand-sub { margin-top: 5px; font-size: 0.56rem; letter-spacing: 0.16em; }
@media (max-width: 640px) { .brand-word { height: 28px; } }
@media (max-width: 480px) { .brand-word { height: 24px; } }
