/* Silver Waqf site — tokens and fonts from the game. Self-hosted, no CDN. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-deep: #142924;
  --bg-mid: #1a3a32;
  --surface: #f3efe4;
  --surface-2: #e8e0d0;
  --fg: #1c1917;
  --fg-on-deep: #f3efe4;
  --muted: #6b6358;
  --muted-on-deep: #c5cdd4;
  --primary: #2f6f5e;
  --silver: #c5cdd4;
  --gold: #c6a15b;
  --border: #d4cbb8;
  --border-deep: #0f1f1b;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --content: 68rem;
  --pad: 1.25rem;
  /* Official Play badge width inside .play-badge-block; the EN share stone matches this. */
  --play-badge-width: 10.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--surface);
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
a:hover, a:focus-visible { color: #245a4c; }

.skip {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: -3rem;
  background: var(--surface);
  color: var(--fg);
  padding: 0.5rem 0.75rem;
  z-index: 20;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--content), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: relative;
  z-index: 40;
  overflow: visible;
  background: var(--bg-deep);
  color: var(--fg-on-deep);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, var(--border-deep));
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding-block: 0.45rem;
  overflow: visible;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fg-on-deep);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.brand:hover, .brand:focus-visible { color: var(--gold); }
.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: #111;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.nav a {
  color: var(--silver);
  text-decoration: none;
  padding: 0.5rem 0.5rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.92rem;
}
.nav a:hover, .nav a:focus-visible,
.nav a[aria-current="page"] { color: var(--fg-on-deep); }

/* Language switcher: three visible buttons (see .lang-switch--buttons below). */
.lang-switch { position: relative; }

/* In-game trademark title lockup in the site header (coin, SILVER WAQF TM, tagline). */
.title-lockup {
  --lockup-navy: #070e18;
  background-color: var(--lockup-navy);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(32, 52, 88, 0.4), transparent 65%),
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 80px 70px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 140px 18px, rgba(230, 235, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 50px 110px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 170px 90px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 10px 130px, rgba(220, 230, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 110px 40px, rgba(255, 255, 255, 0.25), transparent);
  background-size: auto, 200px 160px, 240px 180px, 180px 150px, 220px 200px, 190px 170px, 210px 190px, 250px 160px;
  color: #f3efe4;
  text-align: center;
  padding: 0.7rem var(--pad) 0.75rem;
}
.title-lockup__link {
  display: block;
  width: min(46rem, 100%);
  margin-inline: auto;
  text-decoration: none;
  color: inherit;
  font-size: clamp(1.35rem, calc((100vw - 2.5rem) / 13.6), 2.15rem);
  line-height: 1;
}
.title-lockup__link:hover,
.title-lockup__link:focus-visible {
  color: inherit;
}
.title-lockup__row {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  line-height: 1;
  white-space: nowrap;
  padding-inline-end: 0.85em;
  font-size: 1em;
  max-width: 100%;
}
.title-lockup__coin {
  width: 1em;
  height: 1em;
  max-width: 1em;
  flex-shrink: 0;
  display: block;
}
.title-lockup__word {
  position: relative;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfd6dc;
  filter:
    drop-shadow(1px 1px 0 #6d787f)
    drop-shadow(2px 2px 0 #5c666d)
    drop-shadow(3px 3px 0 #4b545b)
    drop-shadow(4px 4px 0 #3a444c)
    drop-shadow(5px 5px 0 #2b3338)
    drop-shadow(8px 10px 14px rgba(0, 0, 0, 0.48));
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .title-lockup__word {
    background-image: linear-gradient(168deg, #ffffff 0%, #f4f1e8 10%, #cfd6dc 24%, #8e9aa3 42%, #f8f7f2 50%, #b7c0c7 62%, #5c686f 82%, #e7ecef 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
.title-lockup__tm {
  position: absolute;
  inset-inline-start: 100%;
  top: 0;
  margin-inline-start: 0.02em;
  transform: translateY(-35%);
  font-size: 0.28em;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1;
  color: #e8d9a0;
  -webkit-text-fill-color: #e8d9a0;
  background: none;
  text-transform: uppercase;
}
.title-lockup__tag {
  display: block;
  margin: 0.3rem 0 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.375;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f3efe4;
  white-space: pre-line;
}
.title-lockup__link:hover .title-lockup__tag,
.title-lockup__link:focus-visible .title-lockup__tag {
  color: #f3efe4;
}
@media (min-width: 640px) {
  .title-lockup__tag { font-size: 12px; }
}
@media (max-width: 640px) {
  .title-lockup__word {
    letter-spacing: 0.03em;
    filter:
      drop-shadow(1px 1px 0 #6d787f)
      drop-shadow(2px 2px 0 #4b545b)
      drop-shadow(3px 4px 8px rgba(0, 0, 0, 0.42));
  }
}

/* Hero */

.hero-films {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 1rem;
  background: #0a1613;
}
.hero-film {
  margin: 0;
  background: #0a1613;
}
.hero-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0a1613;
  /* Native controls stay visible. No overlay, no clipping. Fullscreen is desktop-only (see phone media query). */
  position: relative;
  z-index: 1;
  vertical-align: middle;
}
.hero-film .film-caption,
.hero .film-caption {
  margin: 0;
  padding: 0.75rem var(--pad) 0.7rem;
  max-width: 42rem;
  color: var(--silver);
  font-size: 0.98rem;
  line-height: 1.6;
}
.hero .film-label,
.hero-film .film-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.15rem;
}
@media (min-width: 800px) {
  .hero-films {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
@media (max-width: 799px) {
  /* Fullscreen is desktop-only. Hide the native fullscreen control on phones. */
  .hero-film video::-webkit-media-controls-fullscreen-button {
    display: none;
  }
}

.hero .more-videos {
  margin: 0.85rem 0 0;
}
.hero .more-videos a { color: var(--gold); }
.hero .more-videos a:hover, .hero .more-videos a:focus-visible { color: var(--fg-on-deep); }

.hero-art { background: #0a1613; line-height: 0; }
.hero-art img {
  display: block;
  width: 100%;
  height: 8.75rem;
  object-fit: cover;
  object-position: left center;
}
.hero {
  background: var(--bg-mid);
  color: var(--fg-on-deep);
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, var(--border-deep));
}
.hero h1 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--gold);
}
.hero .kicker {
  margin: 0 0 0.85rem;
  color: var(--silver);
  font-size: 1.05rem;
}
.hero .lead { margin: 0 0 0.85rem; max-width: 42rem; }
.hero .waqf-line {
  margin: 0 0 1.15rem;
  max-width: 42rem;
  color: var(--muted-on-deep);
  font-size: 0.98rem;
}
.hero .waqf-line a { color: var(--gold); }
.hero .waqf-line a:hover, .hero .waqf-line a:focus-visible { color: var(--fg-on-deep); }

/* Official Google Play badge: unaltered artwork, locked aspect ratio,
   no filters, shadows, or recoloring. Official PNG includes required
   clear space. Placed only on a solid background. Min height well above 28px. */
.play-badge { display: inline-block; line-height: 0; margin: 0.25rem 0 0.35rem; }
.play-badge img {
  display: block;
  width: 15.5rem;
  max-width: 100%;
  height: auto;
}

/* Availability line beside the official Play badge (badge start, text end,
   vertically centred) to cut scrolling. Temporary until Play opens more
   widely (~1 Feb 2027). Stacks only if the row truly cannot fit. */
.play-badge-block {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.25rem 0 0.35rem;
}
.play-badge-block .play-badge {
  margin: 0;
  flex: 0 1 var(--play-badge-width);
  /* 44px image height at the official 646×250 ratio; the <a> stays tappable. */
  min-width: 7.125rem;
}
.play-badge-block .play-badge img {
  width: var(--play-badge-width);
  max-width: 100%;
  height: auto;
}
p.play-avail,
.hero p.play-avail,
.cta p.play-avail {
  flex: 1 1 0;
  min-width: 0; /* text wraps to several short lines instead of forcing a stack */
  margin: 0;
  width: auto;
  max-width: 24rem;
  font-family: var(--font-sans);
  font-size: max(0.8125rem, 12.5px); /* 13px at a 16px root; never below 12.5px */
  line-height: 1.45;
  color: color-mix(in srgb, var(--gold) 50%, var(--fg-on-deep)); /* hero: dark ground */
  text-align: start;
}
/* The lower badge sits on the light .platform card, not the dark .cta ground. */
.platform p.play-avail,
.cta .platform p.play-avail {
  color: color-mix(in srgb, var(--muted) 60%, var(--fg));
}

/* Sections */
.section { padding: 2rem 0; }
.page-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--bg-deep);
}
.section h2, .prose h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--bg-deep);
}
.section h3, .prose h3 {
  margin: 1.35rem 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--bg-deep);
}
.section p, .prose p { margin: 0 0 0.8rem; max-width: 42rem; }
.section ul, .prose ul {
  margin: 0 0 0.8rem;
  padding-inline-start: 1.15rem;
  max-width: 42rem;
}
.section li, .prose li { margin: 0 0 0.4rem; }
.crumb { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; }
.crumb a { color: var(--primary); }

.feature-block, .platform, .news-item, .journal-item, .note-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 0.95rem 1rem 0.7rem;
  margin: 0 0 1rem;
  max-width: 46rem;
}
.feature-block h3, .platform h3, .news-item h2, .journal-item h2 { margin-top: 0; }
.feature-block p:last-child, .feature-block ul:last-child,
.platform p:last-child, .news-item p:last-child, .journal-item p:last-child, .note-box p:last-child { margin-bottom: 0; }

.platform-list { list-style: none; margin: 0; padding: 0; }
/* Add further .platform items (for example a PC entry) here later, once that platform is actually live. */
.meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.5rem; }
.news-item h2, .journal-item h2 { font-size: 1.25rem; }

/* Journal timeline */
.journal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0 0 1.25rem;
}
.journal-filters a[aria-current="page"] { font-weight: 700; color: var(--bg-deep); }
.journal-label {
  display: inline-block;
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
}
.journal-item h2, .journal-post .page-title { font-size: 1.35rem; }
.journal-item h2 a { color: inherit; }
.journal-item h2 a:hover, .journal-item h2 a:focus-visible { color: var(--primary); }
.journal-item .meta time, .journal-post .meta time { font-style: normal; }
.feed-link { font-size: 0.92rem; }

.journal-post pre {
  overflow-x: auto;
  padding: 0.85rem 1rem;
  margin: 1.1rem 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.journal-post pre code,
.journal-post p code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.journal-post p code {
  background: var(--surface-2);
  padding: 0.05em 0.35em;
  border-radius: 3px;
}



.cta {
  background: var(--bg-deep);
  color: var(--fg-on-deep);
  padding: 2rem 0;
}
.cta h2 { color: var(--fg-on-deep); margin-bottom: 0.6rem; }
.cta p { color: var(--muted-on-deep); margin: 0 0 0.85rem; max-width: 40rem; }
.cta a:not(.play-badge) { color: var(--gold); }
/* Platform cards are light (--surface-2); don't inherit the dark-ground type. */
.cta .platform,
.cta .platform h3 { color: var(--bg-deep); }
.cta .platform p { color: var(--fg); }
.cta .platform p.platform-highlight {
  color: var(--bg-deep);
  font-weight: 650;
  margin: 0 0 0.75rem;
}

.shots {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0 0.85rem;
  -webkit-overflow-scrolling: touch;
}
.shots figure { margin: 0; flex: 0 0 10.5rem; scroll-snap-align: start; }
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(20, 41, 36, 0.18);
  background: var(--bg-deep);
}
.credit-note { font-size: 0.85rem; color: var(--muted); max-width: 42rem; margin: 0; }

.faq details { border-bottom: 1px solid var(--border); padding: 0.7rem 0; }
.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.35rem 0;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}
.faq details p { margin: 0.4rem 0 0.6rem; }

.contact-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 0 0 1.5rem;
  max-width: 42rem;
}
.contact-box h2 { margin-top: 0; }
.contact-box a { font-weight: 650; word-break: break-word; }

.disclaimer {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 42rem;
}

.site-footer {
  background: var(--bg-deep);
  color: var(--muted-on-deep);
  padding: 1.75rem 0 2rem;
  font-size: 0.92rem;
}
.site-footer a { color: var(--silver); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--fg-on-deep); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0 0 1.1rem;
}
.praise {
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--fg-on-deep);
  max-width: 42rem;
  margin: 0 0 0.75rem;
}
.praise p { margin: 0 0 0.65rem; }
.praise p:first-child { color: var(--gold); letter-spacing: 0.04em; font-weight: 700; }
.trademark { margin: 1rem 0 0; font-size: 0.8rem; color: var(--muted-on-deep); max-width: 42rem; }
.copyright {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted-on-deep);
  text-align: center;
  overflow-wrap: anywhere;
}
.copyright + .trademark { margin-top: 0.4rem; }

[dir="rtl"] .feature-block,
[dir="rtl"] .platform,
[dir="rtl"] .news-item,
[dir="rtl"] .journal-item,
[dir="rtl"] .note-box { border-radius: 12px 0 0 12px; }

@media (min-width: 720px) {
  :root { --pad: 1.75rem; --play-badge-width: 17.5rem; }
  .hero-art img { height: auto; object-fit: contain; }
  .hero { padding: 2.25rem 0 2.5rem; }
  .hero h1 { font-size: 2.55rem; }
  .play-badge img { width: 17.5rem; }
  .section { padding: 2.5rem 0; }
  .section h2, .prose h2 { font-size: 1.8rem; }
  .shots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    gap: 1rem;
    padding-bottom: 0.4rem;
  }
  .shots figure { flex: none; }
}

/* Click-to-load video facades. No YouTube requests until a tap (or a plain link with JS off). */
.videos {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 1rem;
}
.video-card { margin: 0; }
.video-facade {
  position: relative;
  background: #0a1613;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}
.video-facade a, .video-facade iframe, .video-facade picture {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-facade img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.video-facade__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-deep);
  color: var(--fg-on-deep);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}
.video-facade.is-playing iframe { z-index: 2; }
.video-caption { margin: 0.4rem 0 0; font-size: 0.92rem; max-width: 42rem; color: var(--muted); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0 0 1.1rem;
}
.socials a { color: var(--silver); }

@media (min-width: 720px) {
  .videos { grid-template-columns: 1fr 1fr; }
  .videos .video-card:first-child { grid-column: 1 / -1; }
}

.journal-sources { margin: 0 0 1rem; padding-inline-start: 1.15rem; max-width: 42rem; }
.journal-sources li { margin: 0 0 0.4rem; }

/* Journal talk stills: a visible, local poster inside the YouTube link. No embed. */
a.journal-still {
  display: block;
  max-width: 36rem;
  margin: 0 0 0.45rem;
  color: inherit;
  text-decoration: none;
}
a.journal-still:hover .journal-still__caption,
a.journal-still:focus-visible .journal-still__caption {
  color: var(--primary);
  text-decoration: underline;
}
.journal-still__frame {
  position: relative;
  display: block;
  margin: 0 0 0.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a1613;
  aspect-ratio: 16 / 9;
}
.journal-still__frame picture,
.journal-still__frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.journal-still__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.6rem;
  height: 2.6rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(20, 41, 36, 0.55);
  border: 1px solid var(--gold);
  pointer-events: none;
}
.journal-still__play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.38rem 0 0.38rem 0.62rem;
  border-color: transparent transparent transparent var(--fg-on-deep);
}
.journal-still__caption { text-decoration: underline; }

/* Language editions (tr, ar). Arabic is right to left; the Latin brand lockup stays LTR. */
:lang(ar) {
  --font-sans: "Source Sans 3", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-display: "Cormorant Garamond", "Noto Naskh Arabic", "Amiri", "Times New Roman", serif;
}
html:lang(ar) body { line-height: 1.75; }
/* Letter-spacing breaks Arabic joining; uppercase does nothing for Arabic. */
:lang(ar) :is(h1, h2, h3, h4, p, li, a, span, summary, figcaption, .kicker, .journal-label, .film-label, .title-lockup__tag, .praise p) { letter-spacing: 0; }
.title-lockup__row[lang="en"] { unicode-bidi: isolate; }
[dir="rtl"] .hero-art img { object-position: right center; }
[dir="rtl"] pre, [dir="rtl"] code { direction: ltr; unicode-bidi: isolate; text-align: left; }
bdi.sw-name { white-space: nowrap; unicode-bidi: isolate; }
.play-inline { display: inline-block; line-height: 0; vertical-align: -0.15em; margin-inline: 0.1em; }
.play-inline img { width: 1em; height: 1em; display: inline-block; }

/* Sticky top band (title lockup + back-to-top). English pages first; markup-scoped via .top-band. RTL mirrors via logical properties. */
.top-band { position: sticky; top: 0; z-index: 60; }
html.has-top-band { scroll-padding-top: calc(var(--band-h, 6.5rem) + 0.75rem); }
.to-top {
  position: absolute;
  inset-inline-end: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.to-top[hidden] { display: none; }
.to-top::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(7, 14, 24, 0.88);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 0 6px rgba(198, 161, 91, 0.25);
}
.to-top svg { position: relative; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover::before, .to-top:focus-visible::before { background: var(--gold); }
.to-top:hover, .to-top:focus-visible { color: #070e18; }
.to-top:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 50%; }
@media (min-width: 720px) { .to-top { inset-inline-end: 1rem; } }
@media (prefers-reduced-motion: reduce) {
  html.has-top-band { scroll-behavior: auto; }
  .to-top { transition: none; }
}
/* Slim pinned band: only the coin + wordmark row stays pinned; the tagline scrolls away. */
.title-lockup--pin { padding-bottom: 0.375rem; }
.title-lockup--tagline { padding-top: 0; padding-bottom: 0.75rem; background-image: none; }
.title-lockup--tagline .title-lockup__tag { margin: 0; }
html.has-top-band { scroll-padding-top: calc(var(--band-h, 3.25rem) + 0.75rem); }

/* THE SOUK: clip, then 7 random stills in the same 16:9 frame (assets/js/souk-show.js). */
.film-stage {
  position: relative;
}
.souk-stills {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.souk-stills[hidden] { display: none; }
.souk-stills img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}
/* Building stills are cut-outs: show them whole (like the game), over the clip's last frame. */
.souk-stills img.is-sit {
  object-fit: contain;
  filter: saturate(1.12) contrast(1.08) brightness(1.06);
}
.film-toggle {
  position: absolute;
  inset-inline-start: 0.5rem;
  inset-block-end: 0.5rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgba(232, 201, 106, 0.85);
  border-radius: 50%;
  background: rgba(10, 22, 19, 0.62);
  color: var(--gold);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.film-toggle:hover,
.film-toggle:focus-visible { opacity: 1; }
.film-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Pause icon (two bars); paused state shows a play triangle. */
.film-toggle::before,
.film-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 14px;
  margin-top: -7px;
  background: currentColor;
  border-radius: 1px;
}
.film-toggle::before { left: 15px; }
.film-toggle::after { left: 23px; }
.film-toggle.is-paused::after { display: none; }
.film-toggle.is-paused::before {
  left: 16px;
  width: 0;
  height: 0;
  margin-top: -8px;
  background: none;
  border-radius: 0;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent currentColor;
}

/* THE SOUK: our fullscreen button (desktop only) fullscreens the whole frame, video + stills. */
#hero-film-souk::-webkit-media-controls-fullscreen-button { display: none; }
.film-fs {
  position: absolute;
  inset-inline-end: 0.5rem;
  inset-block-start: 0.5rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(232, 201, 106, 0.85);
  border-radius: 50%;
  background: rgba(10, 22, 19, 0.62);
  color: var(--gold);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.film-fs[hidden] { display: none; }
.film-fs:hover,
.film-fs:focus-visible { opacity: 1; }
.film-fs:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.film-fs svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.film-fs__out,
.film-fs.is-on .film-fs__in { display: none; }
.film-fs.is-on .film-fs__out { display: block; }
@media (max-width: 799px) {
  .film-stage:not(.is-fullscreen) .film-fs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .film-fs, .film-toggle, .film-sound { transition: none; }
}
/* Fullscreen frame: black, the 16:9 picture letterboxed and centred; stills fill the same box. */
.film-stage.is-fullscreen {
  width: 100vw;
  height: 100vh;
  background: #000;
}
.film-stage.is-fullscreen > video,
.film-stage.is-fullscreen > .souk-stills,
.film-stage.is-fullscreen > .film-tap {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  max-width: none;
  aspect-ratio: auto;
  object-fit: contain;
  background: #000;
}
.film-stage.is-fullscreen > .souk-stills,
.film-stage.is-fullscreen > .film-tap { background: transparent; }
/* Keep the exit button inside the letterboxed picture, not in the black bar. */
.film-stage.is-fullscreen .film-fs {
  inset-inline-end: calc((100vw - min(100vw, calc(100vh * 16 / 9))) / 2 + 1rem);
  inset-block-start: calc((100vh - min(100vh, calc(100vw * 9 / 16))) / 2 + 1rem);
}
.film-stage.is-fullscreen .film-toggle { inset-inline-start: 1rem; inset-block-end: 1rem; }

/* THE CHEST: transparent tap layer (tap anywhere = pause/play) holding the gold toggle. */
.film-tap {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#hero-film::-webkit-media-controls-fullscreen-button { display: none; }

/* Language buttons (replaces the drop-down; English pages first). Three visible links: العربية, English, Türkçe.
   Current language gold with aria-current="page". Works in RTL via logical layout. */
.lang-switch--buttons ul {
  position: static;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
  border: 0;
  box-shadow: none;
  width: auto;
  min-width: 0;
  max-width: none;
}
.lang-switch--buttons li { margin: 0; }
.lang-switch--buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 8px;
  color: var(--silver);
  font-size: 0.92rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.lang-switch--buttons a[lang="ar"] { font-size: 1rem; }
.lang-switch--buttons a:hover,
.lang-switch--buttons a:focus-visible {
  color: var(--fg-on-deep);
  border-color: color-mix(in srgb, var(--gold) 70%, transparent);
}
.lang-switch--buttons a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-switch--buttons a[aria-current="page"] {
  color: var(--gold);
  border-color: var(--gold);
  background-color: color-mix(in srgb, var(--gold) 14%, transparent);
  font-weight: 600;
}
@media (max-width: 400px) {
  .lang-switch--buttons ul { gap: 0.3rem; }
  .lang-switch--buttons a { padding-inline: 0.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-switch--buttons a { transition: none; }
}
/* THE SOUK: stills group (fades as one); the layer itself stays as the tap target with the gold toggle. */
.souk-stills__imgs { position: absolute; inset: 0; pointer-events: none; }

/* THE WAQF CHEST: gold sound on/off (44px), bottom-inline-end (right in LTR, left in RTL).
   Present when JS sees data-has-sound on the chest video. Muted = speaker with a slash. */
.film-sound {
  position: absolute;
  inset-inline-end: 0.5rem;
  inset-block-end: 0.5rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(232, 201, 106, 0.85);
  border-radius: 50%;
  background: rgba(10, 22, 19, 0.62);
  color: var(--gold);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.film-sound:hover,
.film-sound:focus-visible { opacity: 1; }
.film-sound:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.film-sound svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.film-sound .film-sound__on,
.film-sound.is-on .film-sound__off { display: none; }
.film-sound.is-on .film-sound__on { display: block; }
.film-stage.is-fullscreen .film-sound { inset-inline-end: 1rem; inset-block-end: 1rem; }

/* First-view hint: a couple of soft gold glows on the speaker, then stop.
   The small note sits ABOVE the button in the corner so at 360 it stays over
   the sand/lantern and does not cover the chest or the landing coins. */
@keyframes film-sound-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 0%, transparent);
    border-color: rgba(232, 201, 106, 0.85);
  }
  45% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--gold) 36%, transparent),
                0 0 14px 1px color-mix(in srgb, var(--gold) 40%, transparent);
    border-color: var(--gold);
  }
}
.film-sound.is-pulse {
  opacity: 1;
  animation: film-sound-pulse 1.15s ease-in-out 0s 2 both;
}
.film-sound-hint {
  position: absolute;
  inset-inline-end: 0.5rem;
  inset-block-end: calc(0.5rem + 44px + 0.35rem);
  z-index: 3;
  max-width: 8.5rem;
  padding: 0.22rem 0.45rem;
  border-radius: 6px;
  background: rgba(10, 22, 19, 0.78);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.7s ease;
}
.film-sound-hint.is-fade {
  opacity: 0;
  pointer-events: none;
}
.film-stage.is-fullscreen .film-sound-hint {
  inset-inline-end: 1rem;
  inset-block-end: calc(1rem + 44px + 0.35rem);
}
@media (prefers-reduced-motion: reduce) {
  .film-sound.is-pulse { animation: none; }
  .film-sound-hint { transition: none; }
}

/* Home-page YouTube row under the screenshots. Local thumbnails, no embeds.
   Visual language matches journal stills: 16:9 frame, gold play mark, title. */
.yt-row-heading {
  margin: 1.5rem 0 0.75rem;
}
.yt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 0.7rem;
  margin: 0 0 0.7rem;
  max-width: 68rem;
  min-width: 0;
}
.yt-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.yt-card:hover .yt-card__title,
.yt-card:focus-visible .yt-card__title {
  color: var(--primary);
  text-decoration: underline;
}
.yt-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.yt-card__frame {
  position: relative;
  display: block;
  margin: 0 0 0.45rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a1613;
  aspect-ratio: 16 / 9;
}
.yt-card__frame picture,
.yt-card__frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.yt-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.25rem;
  height: 2.25rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(20, 41, 36, 0.55);
  border: 1.5px solid var(--gold);
  pointer-events: none;
}
.yt-card__play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.32rem 0 0.32rem 0.54rem;
  border-color: transparent transparent transparent var(--fg-on-deep);
}
.yt-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--bg-deep);
  overflow-wrap: anywhere;
}
.yt-row-more {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
}
.yt-row-more a {
  color: color-mix(in srgb, var(--gold) 45%, var(--fg));
  font-weight: 650;
}
.yt-row-more a:hover,
.yt-row-more a:focus-visible { color: var(--fg); }
@media (min-width: 720px) {
  .yt-row { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .yt-card__title { font-size: 1.05rem; }
  .yt-card__play { width: 2.6rem; height: 2.6rem; }
  .yt-card__play::after { border-width: 0.38rem 0 0.38rem 0.62rem; }
}


/* Footer "Share with friends": gold control on the dark footer, RTL-safe. */
.share-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin: 0 0 1.1rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding-block: 0.4rem;
  padding-inline: 0.95rem;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  background: rgba(10, 22, 19, 0.45);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}
.share-btn:hover,
.share-btn:focus-visible {
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  color: var(--fg-on-deep);
}
.share-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.share-btn svg { flex: 0 0 auto; }
.share-status {
  color: var(--gold);
  font-size: 0.9rem;
  min-height: 1.2em;
}
.share-fallback {
  box-sizing: border-box;
  width: min(100%, 22rem);
  min-height: 44px;
  margin: 0;
  padding-block: 0.35rem;
  padding-inline: 0.6rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--bg-mid);
  color: var(--fg-on-deep);
  font: inherit;
}

/* Gold share button on light surfaces (home Play badge, journal article end).
   Darker gold-brown type so the outline stays gold without low contrast on --surface. */
.share-line--on-light {
  margin: 0.7rem 0 0;
}
.journal-post .share-line--on-light {
  margin: 1.25rem 0 0;
}
.share-line--on-light .share-btn {
  background: var(--surface);
  color: color-mix(in srgb, var(--gold) 42%, var(--fg));
}
.share-line--on-light .share-btn:hover,
.share-line--on-light .share-btn:focus-visible {
  background: color-mix(in srgb, var(--gold) 22%, var(--surface));
  color: var(--bg-deep);
}
.share-line--on-light .share-status {
  color: color-mix(in srgb, var(--gold) 42%, var(--fg));
}
.share-line--on-light .share-fallback {
  background: var(--surface);
  color: var(--fg);
}

/* Quieter share under the hero Play badge: same control, less visual weight than the official badge. */
.share-line--quiet {
  margin: 0.45rem 0 0;
}
.share-line--quiet .share-btn {
  background: transparent;
  border-width: 1px;
  border-color: color-mix(in srgb, var(--gold) 70%, transparent);
  font-size: 0.9rem;
  font-weight: 600;
  padding-inline: 0.8rem;
}
.share-line--quiet .share-btn:hover,
.share-line--quiet .share-btn:focus-visible {
  background: color-mix(in srgb, var(--gold) 14%, transparent);
}

/* Share rhyme: one string per language (set --share-rhyme). */
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) {
  --share-btn-bright: #14a3a8;
  --share-btn-bright-hi: #2bc4c9;
  --share-btn-ink: #142924;
  --share-rhyme-color: #9ad5d7;
  --share-rhyme-color-on-light: #0e6f73;
}
html[lang="en"] { --share-rhyme: "Give a share, show you care."; }
html[lang="tr"] { --share-rhyme: "Paylaş, gönlünü göster."; }
html[lang="ar"] { --share-rhyme: "شارك من القلب."; }
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-rhyme::before {
  content: var(--share-rhyme);
}
.share-rhyme {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--silver);
}
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-rhyme {
  color: var(--share-rhyme-color);
  font-size: 1.15rem;
  font-weight: 600;
}
html[lang="ar"] .share-rhyme {
  font-style: normal;
}
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line--on-light .share-rhyme {
  color: var(--share-rhyme-color-on-light);
}
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-status {
  color: var(--share-rhyme-color);
}
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line--on-light .share-status {
  color: var(--share-rhyme-color-on-light);
}
.share-line:has(.share-rhyme) {
  display: grid;
  grid-template-columns: auto auto;
  justify-items: center;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  column-gap: 0.75rem;
  row-gap: 0.28rem;
}
.share-line:has(.share-rhyme) .share-rhyme,
.share-line:has(.share-rhyme) .share-fallback {
  grid-column: 1 / -1;
}
.share-line:has(.share-rhyme) .share-status:empty {
  width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}
.share-line--quiet:has(.share-rhyme) {
  margin-top: 0.7rem;
}

/* Custom properties for the 16s rolling gleam, shared by the stone band and
   the coin overlay so they stay in sync. Interpolated via @property. */
@property --sw-band-x {
  syntax: "<percentage>";
  inherits: true;
  initial-value: -70%;
}
@property --sw-band-y {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 48%;
}
@property --sw-hi-x {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 16%;
}
@property --sw-hi-y {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 10%;
}
@property --sw-spark-x {
  syntax: "<percentage>";
  inherits: true;
  initial-value: -30%;
}
@property --sw-spark-y {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 30%;
}
@property --sw-glint-rot {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}
@property --sw-band-w {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 16%;
}
@property --sw-band-h {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 72%;
}
@property --sw-band-a {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.5;
}
@property --sw-ring-cx {
  syntax: "<percentage>";
  inherits: true;
  initial-value: -25%;
}
@property --sw-ring-cy {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 46%;
}
@property --sw-ring-rx {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 145%;
}
@property --sw-ring-ry {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 108%;
}
@property --sw-ring-inner {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 41%;
}
@property --sw-ring-mid {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 48%;
}
@property --sw-ring-outer {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 57%;
}
@property --sw-ring-a {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.72;
}

/* Share stone (en/tr/ar): our own retouched cabochon, stone only — no gold bezel.
   Ellipse matches the cropped stone (1012×749). Width tracks the official
   Play badge (--play-badge-width); height follows the oval. Soft drop shadow.
   The baked specular was removed from the asset; the only shine is the rolling band. */
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-btn,
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line--on-light .share-btn,
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line--quiet .share-btn {
  position: relative;
  isolation: isolate;
  overflow: visible;
  flex: 0 0 auto;
  width: var(--play-badge-width);
  max-width: 100%;
  aspect-ratio: 1012 / 749;
  height: auto;
  min-height: 44px;
  padding: 0;
  gap: 0.3em;
  border: 0;
  border-radius: 50%;
  color: var(--share-btn-ink);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  white-space: nowrap;
  background-color: #14a3a8;
  background-image: url("/assets/img/share/cabochon.webp");
  background-image: image-set(
    url("/assets/img/share/cabochon.avif") type("image/avif"),
    url("/assets/img/share/cabochon.webp") type("image/webp")
  );
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  box-shadow:
    0 3px 2px rgba(10, 30, 32, 0.12),
    0 8px 18px rgba(10, 40, 42, 0.32);
  text-shadow:
    0 0 3px rgba(210, 250, 252, 0.95),
    0 0 8px rgba(180, 240, 242, 0.75);
  animation: share-jewel-glint 16s ease-in-out infinite;
}
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-btn .share-coin {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: block;
  flex: 0 0 auto;
  width: 1.08em;
  height: 1.08em;
  /* Matches the em-square / optical cap of the bold "Share" label so the
     circular coin carries similar weight. No tint, no transparency, no
     blend mode, no filter on the artwork itself. */
}
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-btn .share-coin img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  border: 0;
  /* Official design, polished-silver variant (share button only). Solid. */
}
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-btn > span:not(.share-coin) {
  position: relative;
  z-index: 2;
}
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-btn:hover,
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-btn:focus-visible,
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line--on-light .share-btn:hover,
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line--on-light .share-btn:focus-visible,
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line--quiet .share-btn:hover,
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line--quiet .share-btn:focus-visible {
  color: var(--share-btn-ink);
  box-shadow:
    0 3px 2px rgba(10, 30, 32, 0.12),
    0 9px 20px rgba(20, 163, 168, 0.38);
}
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-btn:focus-visible {
  outline: 2px solid var(--share-btn-ink);
  outline-offset: 3px;
}

/* Rhyme + stone share the badge width and stay centred on that column.
   Status/fallback stack under the stone so they are not squeezed beside it.
   Rhyme is a bit more prominent (1.15rem, 1.25rem from 720px). */
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line:has(.share-rhyme) {
  width: var(--play-badge-width);
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  justify-content: center;
}
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line:has(.share-rhyme) .share-rhyme,
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line:has(.share-rhyme) .share-fallback,
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line:has(.share-rhyme) .share-status,
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line:has(.share-rhyme) .share-btn {
  grid-column: 1;
}
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line:has(.share-rhyme) .share-rhyme,
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line:has(.share-rhyme) .share-status {
  width: 100%;
  text-align: center;
}

/* Under a Play badge (home hero, Get the game): the stone is a second row in the
   badge column, so it is exactly as wide as the rendered badge and centred under
   it. Availability text stays beside the badge, not beside the stone. */
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .play-badge-block:has(.share-line) {
  display: grid;
  grid-template-columns: minmax(7.125rem, var(--play-badge-width)) minmax(0, auto);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
}
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .play-badge-block:has(.share-line) .play-badge {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  flex: none;
  margin: 0;
}
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .play-badge-block:has(.share-line) .play-badge img {
  width: 100%;
  max-width: 100%;
}
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .play-badge-block:has(.share-line) .play-avail {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .play-badge-block:has(.share-line) .share-line {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  max-width: 100%;
  margin: 0;
  justify-self: stretch;
}

@media (min-width: 720px) {
  :is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-btn,
  :is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line--on-light .share-btn,
  :is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-line--quiet .share-btn {
    font-size: 3.25rem;
    font-weight: 800;
    gap: 0.3em;
  }
  :is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-rhyme {
    font-size: 1.25rem;
  }
}

/* Jewel shimmer: a light rolling over an oval cabochon dome.
   The band is a curved arc (elliptical ring + crest lens), not a straight slash:
   widest and brightest at the crest, compressing and dimming toward the rims,
   bowing with the ellipse as it travels. 16s ease-in-out, short rests.
   The same light also glints across the polished coin via a masked additive overlay. */
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  clip-path: ellipse(50% 50% at 50% 50%);
  -webkit-mask-image: radial-gradient(ellipse 80% 74% at 50% 42%,
    #000 0%, #000 30%, rgba(0, 0, 0, 0.72) 58%, transparent 84%);
  mask-image: radial-gradient(ellipse 80% 74% at 50% 42%,
    #000 0%, #000 30%, rgba(0, 0, 0, 0.72) 58%, transparent 84%);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background:
    /* Curved meridian: arc of a large ellipse — hugs the oval as it rolls. */
    radial-gradient(
      ellipse var(--sw-ring-rx) var(--sw-ring-ry) at var(--sw-ring-cx) var(--sw-ring-cy),
      transparent var(--sw-ring-inner),
      rgba(255, 255, 255, var(--sw-ring-a)) var(--sw-ring-mid),
      transparent var(--sw-ring-outer)
    ),
    /* Soft lens, widest and brightest at the crest. */
    radial-gradient(
      ellipse var(--sw-band-w) var(--sw-band-h) at var(--sw-band-x) var(--sw-band-y),
      rgba(255, 255, 255, var(--sw-band-a)) 0%,
      rgba(230, 255, 255, calc(var(--sw-band-a) * 0.42)) 36%,
      transparent 70%
    );
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%;
  background-position: 0 0, 0 0;
}

/* Additive gleam over the coin only — not a tint of the artwork. At rest (band
   elsewhere, or reduced motion) the coin colours are unchanged. */
:is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-btn .share-coin::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 160% 120% at var(--sw-ring-cx) 48%,
      transparent var(--sw-ring-inner),
      rgba(255, 255, 255, var(--sw-ring-a)) var(--sw-ring-mid),
      transparent var(--sw-ring-outer)
    ),
    radial-gradient(
      ellipse 42% 70% at var(--sw-band-x) 44%,
      rgba(255, 255, 255, var(--sw-band-a)) 0%,
      rgba(255, 255, 255, calc(var(--sw-band-a) * 0.35)) 40%,
      transparent 70%
    );
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%;
  mix-blend-mode: screen;
  -webkit-mask-image: url("/assets/img/share/coin-polished.png");
  mask-image: url("/assets/img/share/coin-polished.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

@keyframes share-jewel-glint {
  /* Short rest at the left rim (tight, dimmer arc), ease across the crest
     (widest/brightest), short rest at the right rim, and back. 16s. */
  0%, 2% {
    --sw-band-x: 14%; --sw-band-y: 44%;
    --sw-band-w: 16%; --sw-band-h: 70%;
    --sw-band-a: 0.42;
    --sw-ring-cx: -28%; --sw-ring-cy: 46%;
    --sw-ring-rx: 145%; --sw-ring-ry: 110%;
    --sw-ring-inner: 42%; --sw-ring-mid: 48%; --sw-ring-outer: 58%;
    --sw-ring-a: 0.7;
  }
  25% {
    --sw-band-x: 50%; --sw-band-y: 40%;
    --sw-band-w: 38%; --sw-band-h: 88%;
    --sw-band-a: 0.95;
    --sw-ring-cx: 50%; --sw-ring-cy: 46%;
    --sw-ring-rx: 90%; --sw-ring-ry: 95%;
    --sw-ring-inner: 0%; --sw-ring-mid: 12%; --sw-ring-outer: 36%;
    --sw-ring-a: 0.22;
  }
  48%, 52% {
    --sw-band-x: 86%; --sw-band-y: 44%;
    --sw-band-w: 16%; --sw-band-h: 70%;
    --sw-band-a: 0.42;
    --sw-ring-cx: 128%; --sw-ring-cy: 46%;
    --sw-ring-rx: 145%; --sw-ring-ry: 110%;
    --sw-ring-inner: 42%; --sw-ring-mid: 48%; --sw-ring-outer: 58%;
    --sw-ring-a: 0.7;
  }
  75% {
    --sw-band-x: 50%; --sw-band-y: 40%;
    --sw-band-w: 38%; --sw-band-h: 88%;
    --sw-band-a: 0.95;
    --sw-ring-cx: 50%; --sw-ring-cy: 46%;
    --sw-ring-rx: 90%; --sw-ring-ry: 95%;
    --sw-ring-inner: 0%; --sw-ring-mid: 12%; --sw-ring-outer: 36%;
    --sw-ring-a: 0.22;
  }
  98%, 100% {
    --sw-band-x: 14%; --sw-band-y: 44%;
    --sw-band-w: 16%; --sw-band-h: 70%;
    --sw-band-a: 0.42;
    --sw-ring-cx: -28%; --sw-ring-cy: 46%;
    --sw-ring-rx: 145%; --sw-ring-ry: 110%;
    --sw-ring-inner: 42%; --sw-ring-mid: 48%; --sw-ring-outer: 58%;
    --sw-ring-a: 0.7;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-btn {
    animation: none;
  }
  :is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-btn::after,
  :is(html[lang="en"], html[lang="tr"], html[lang="ar"]) .share-btn .share-coin::after {
    animation: none;
    content: none;
  }
}



textarea.share-fallback {
  min-height: 4.4rem;
  resize: none;
}

/* Screenshot lightbox (assets/js/shots-lightbox.js). Opt-in: .shots[data-shots-lightbox]. RTL uses logical insets; chevrons flip. */
.shots[data-shots-lightbox] a.shots__open {
  display: block;
  color: inherit;
  cursor: zoom-in;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}
.shots[data-shots-lightbox] a.shots__open:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.shots[data-shots-lightbox] a.shots__open img { pointer-events: none; }

.shots-lb {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 0.75rem 3.25rem;
  background: color-mix(in srgb, var(--border-deep) 88%, #000);
  cursor: zoom-out;
}
.shots-lb[hidden] { display: none !important; }
.shots-lb:not(.is-reduced) { animation: shots-lb-in 0.18s ease-out; }
@keyframes shots-lb-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.shots-lb__frame {
  margin: 0;
  max-width: min(100%, 22.5rem);
  max-height: 100%;
  cursor: default;
}
.shots-lb__frame picture { display: block; }
.shots-lb__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 8rem);
  margin-inline: auto;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--border-deep));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(198, 161, 91, 0.15);
  background: var(--bg-deep);
}

.shots-lb__count {
  margin: 0.7rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.shots-lb__btn {
  position: absolute;
  z-index: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(232, 201, 106, 0.85);
  border-radius: 50%;
  background: rgba(10, 22, 19, 0.72);
  color: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 0 6px rgba(198, 161, 91, 0.25);
}
.shots-lb__btn:hover,
.shots-lb__btn:focus-visible { background: var(--gold); color: #070e18; }
.shots-lb__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.shots-lb__btn svg { display: block; }

.shots-lb__close {
  inset-block-start: max(0.5rem, env(safe-area-inset-top));
  inset-inline-end: max(0.5rem, env(safe-area-inset-right), env(safe-area-inset-left));
}
.shots-lb__prev {
  inset-inline-start: max(0.5rem, env(safe-area-inset-left), env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
}
.shots-lb__next {
  inset-inline-end: max(0.5rem, env(safe-area-inset-right), env(safe-area-inset-left));
  top: 50%;
  transform: translateY(-50%);
}

/* Hide on-screen prev/next on small screens (swipe + close still work). Desktop gets the buttons. */
@media (max-width: 719px) {
  .shots-lb__prev,
  .shots-lb__next { display: none; }
}

[dir="rtl"] .shots-lb__prev svg,
[dir="rtl"] .shots-lb__next svg { transform: scaleX(-1); }

body.shots-lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .shots-lb:not(.is-reduced),
  .shots-lb { animation: none; }
}
@media (min-width: 720px) {
  .shots-lb { padding: 4.5rem 4.5rem 3.5rem; }
  .shots-lb__frame { max-width: min(100%, 28rem); }
}

/* /en/rules/ — layout and labels follow the in-game Rules / Reflections / History page (terms.tsx). */
.rules-page {
  background-color: #142924;
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(197, 205, 212, 0.12), transparent 55%),
    repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(197, 205, 212, 0.035) 18px, rgba(197, 205, 212, 0.035) 19px);
  color: var(--fg-on-deep);
  padding: 2rem 0 4rem;
}
.rules-head { text-align: center; max-width: 42rem; margin-inline: auto; }
.rules-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--fg-on-deep);
}
.rules-legend {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-weight: 650;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted-on-deep);
}
.rules-archery-note {
  display: table;
  margin: 0.75rem auto 0;
  max-width: 100%;
  padding: 0.4rem 0.75rem;
  border: 1px solid #c4b89a;
  border-radius: 6px;
  background: #fff;
  color: #a3262b;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
  text-transform: uppercase;
}
.rules-intro {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted-on-deep);
}
.rules-credit {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--gold);
}

.rules-jump { margin-top: 1.25rem; padding-bottom: 0.5rem; }
.rules-jump__secs, .rules-jump__groups { list-style: none; margin: 0; padding: 0; }
.rules-jump__secs { display: flex; flex-direction: column; gap: 0.75rem; }
.rules-jump__groups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
  padding-inline-start: 2rem;
}
.rules-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 2.75rem;
  max-width: 100%;
  min-width: 0;
  padding: 0.25rem 0.7rem;
  border: 1px solid #c4b89a;
  border-radius: 6px;
  background: #f3ead6;
  color: #6e685c;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: start;
}
.rules-chip:hover, .rules-chip:focus-visible { color: #141a1e; }
.rules-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rules-chip--sec { font-size: 1rem; min-height: 3rem; }
.rules-chip--group { font-size: 0.75rem; min-height: 2.5rem; letter-spacing: 0.03em; }

.rules-ico { display: inline-block; flex-shrink: 0; width: 1em; height: 1em; vertical-align: -0.1em; }
.rules-ico--bow { color: #a3262b; }
.rules-icos { display: inline-flex; align-items: center; gap: 0.2em; }
[dir="rtl"] .rules-ico--bow { transform: scaleX(-1); }

.rules-sec { margin-top: 2.5rem; }
.rules-sec--open { text-transform: uppercase; }
.rules-sec--open .rules-say,
.rules-sec--open .rules-ar { text-transform: none; }

.rules-plate {
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.45rem 0.75rem;
  color: #141a1e;
  background: #f3ead6;
  border: 2px solid #c9a84c;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  scroll-margin-top: calc(var(--band-h, 3.25rem) + 0.75rem);
}
.rules-plate--sec { font-size: 1.6rem; }
.rules-plate--group { font-size: 1.25rem; padding: 0.35rem 0.6rem; }

.rules-blurb {
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  border: 2px solid #171717;
  border-radius: 6px;
  background: #fff;
  color: #171717;
  font-size: 0.95rem;
  line-height: 1.55;
  text-transform: none;
}
.rules-blurb--section blockquote { margin: 0.75rem 0 0; }
.rules-pre { margin: 0; white-space: pre-wrap; }
.rules-src { margin: 0.5rem 0 0; font-size: 0.7rem; letter-spacing: 0.04em; color: #525252; }

.rules-group { margin-top: 2rem; }
.rules-entries { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.rules-entry {
  margin: 0;
  padding: 1rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg-mid) 70%, transparent);
  scroll-margin-top: calc(var(--band-h, 3.25rem) + 0.75rem);
}
.rules-entry--archery {
  background: rgba(163, 38, 43, 0.32);
  box-shadow: inset 0 0 0 1px rgba(163, 38, 43, 0.45);
}
.rules-entry h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  scroll-margin-top: calc(var(--band-h, 3.25rem) + 0.75rem);
}
.rules-term { font-weight: 650; text-transform: uppercase; overflow-wrap: anywhere; }
.rules-ar {
  display: inline-block;
  margin-inline: 0.5rem 0.35rem;
  font-weight: 650;
  text-transform: none;
  unicode-bidi: isolate;
}
.rules-say {
  display: inline-block;
  margin-inline-start: 0.15rem;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  color: var(--muted-on-deep);
  white-space: nowrap;
}
.rules-game, .rules-history, .rules-blurb, .rules-pre, .rules-intro, .rules-credit, .rules-legend {
  overflow-wrap: anywhere;
}
.rules-game, .rules-history {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.rules-entry, .rules-group, .rules-sec, .rules-jump, .rules-jump li, .rules-plate, .rules-head {
  min-width: 0;
  max-width: 100%;
}
.rules-page .wrap { overflow-x: clip; }
.rules-history { color: var(--muted-on-deep); }
.rules-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}

@media (min-width: 720px) {
  .rules-page { padding: 2.5rem 0 4.5rem; }
  .rules-plate--sec { font-size: 1.9rem; }
  .rules-legend { font-size: 0.9rem; }
  .rules-archery-note { font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rules-entry, .rules-plate, .rules-jump { scroll-behavior: auto; }
}
