:root {
    --ink: #18212d;
    --muted: #627083;
    --paper: #fff8ed;
    --surface: #ffffff;
    --teal: #0f766e;
    --teal-dark: #0a4f49;
    --gold: #d99a22;
    --coral: #d65a4a;
    --rose: #8f3d5f;
    --line: rgba(24, 33, 45, 0.12);
    --shadow: 0 18px 60px rgba(18, 33, 45, 0.15);
    font-family: "Vazirmatn", "SF Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-feature-settings: "ss01";
    font-size: 16px;
    line-height: 1.85;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

body.inner-page {
    background: #fffdf8;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    color: #fff;
    transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(255, 248, 237, 0.96);
    color: var(--ink);
    box-shadow: 0 10px 36px rgba(24, 33, 45, 0.1);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    min-width: 245px;
}

.brand-mark {
    display: inline-grid;
    width: 54px;
    height: 62px;
    place-items: center;
    border-radius: 8px;
    background: transparent;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.16));
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
}

.brand small {
    margin-top: 2px;
    color: currentColor;
    font-size: 11px;
    opacity: 0.78;
}

.site-nav {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
}

.site-nav a {
    border-radius: 999px;
    padding: 9px 12px;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.18);
}

.site-nav a[aria-current="page"] {
    background: rgba(217, 154, 34, 0.18);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(217, 154, 34, 0.72);
    outline-offset: 3px;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-open .site-nav a:hover {
    background: rgba(15, 118, 110, 0.09);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.hero {
    position: relative;
    display: grid;
    min-height: 92vh;
    overflow: hidden;
    isolation: isolate;
    align-items: center;
    padding: 120px clamp(20px, 6vw, 88px) 64px;
}

.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    object-position: center;
}

.hero-shade {
    z-index: -1;
    background: linear-gradient(90deg, rgba(9, 24, 36, 0.08), rgba(9, 24, 36, 0.42) 52%, rgba(9, 24, 36, 0.72)), linear-gradient(0deg, rgba(255, 248, 237, 0.9), rgba(255, 248, 237, 0) 34%);
}

.hero-content {
    max-width: 640px;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

.hero h1,
.section h2 {
    margin: 0;
    font-weight: 900;
    line-height: 1.25;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(38px, 6vw, 76px);
}

.hero-copy {
    max-width: 560px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-note {
    display: inline-flex;
    max-width: 620px;
    gap: 10px;
    align-items: center;
    margin-top: 22px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(24, 33, 45, 0.28);
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.hero-note strong {
    color: #fff;
    white-space: nowrap;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 11px 20px;
    font-weight: 900;
    text-shadow: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(24, 33, 45, 0.14);
}

.button.primary {
    background: var(--teal);
    color: #fff;
}

.button.primary:hover {
    background: var(--teal-dark);
}

.button.secondary {
    border-color: rgba(255, 255, 255, 0.58);
    color: #fff;
}

.button.secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

.button.outline {
    border-color: var(--line);
    background: var(--surface);
    color: var(--teal-dark);
}

.intro-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}

.stat {
    min-height: 128px;
    padding: 28px clamp(20px, 4vw, 48px);
    background: var(--paper);
}

.stat strong,
.stat span {
    display: block;
}

.stat strong {
    color: var(--teal-dark);
    font-size: 22px;
    font-weight: 900;
}

.stat span {
    margin-top: 6px;
    color: var(--muted);
}

.section {
    padding: 88px clamp(20px, 6vw, 88px);
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(260px, 380px);
    gap: 36px;
    align-items: end;
    min-height: 560px;
    padding: 150px clamp(20px, 6vw, 88px) 72px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.9), rgba(24, 33, 45, 0.72)), url("assets/images/shahnameh-hero.png") center / cover;
    color: #fff;
}

.page-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.2;
}

.page-hero p:not(.eyebrow) {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    font-weight: 500;
}

.release-card {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 248, 237, 0.14);
    padding: 24px;
    backdrop-filter: blur(12px);
}

.release-card strong,
.release-card span {
    display: block;
}

.release-card strong {
    font-size: 22px;
    font-weight: 900;
}

.release-card span {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
}

.video-page-section {
    padding: 34px clamp(20px, 6vw, 88px);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-row a {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    padding: 9px 15px;
    color: var(--teal-dark);
    font-size: 14px;
    font-weight: 900;
}

.filter-row a:hover,
.filter-row a[aria-current="true"] {
    background: var(--teal);
    color: #fff;
}

.video-catalog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.catalog-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(24, 33, 45, 0.08);
}

.catalog-link {
    display: block;
    height: 100%;
}

.catalog-card:hover {
    transform: translateY(-2px);
    transition: transform 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 16px 36px rgba(24, 33, 45, 0.12);
}

.catalog-poster {
    position: relative;
    display: grid;
    min-height: 220px;
    place-items: center;
    overflow: hidden;
    color: #fff;
}

.catalog-poster strong {
    position: absolute;
    inset: auto 16px 16px auto;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 900;
}

.poster-gold {
    background: linear-gradient(135deg, rgba(217, 154, 34, 0.88), rgba(15, 118, 110, 0.58)), url("assets/images/shahnameh-hero.png") 65% center / cover;
}

.poster-teal {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(24, 33, 45, 0.38)), url("assets/images/shahnameh-hero.png") 72% center / cover;
}

.poster-rose {
    background: linear-gradient(135deg, rgba(143, 61, 95, 0.92), rgba(217, 154, 34, 0.46)), url("assets/images/shahnameh-hero.png") 55% center / cover;
}

.poster-coral {
    background: linear-gradient(135deg, rgba(214, 90, 74, 0.94), rgba(24, 33, 45, 0.34)), url("assets/images/shahnameh-hero.png") 76% center / cover;
}

.poster-ink {
    background: linear-gradient(135deg, rgba(24, 33, 45, 0.92), rgba(15, 118, 110, 0.52)), url("assets/images/shahnameh-hero.png") center / cover;
}

.poster-soft {
    background: linear-gradient(135deg, rgba(255, 248, 237, 0.2), rgba(15, 118, 110, 0.68)), url("assets/images/shahnameh-hero.png") 44% center / cover;
}

.catalog-body {
    padding: 22px;
}

.catalog-body h2 {
    margin: 8px 0;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.35;
}

.catalog-body p {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

.catalog-body dl {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
}

.catalog-body dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.catalog-body dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.catalog-body dd {
    margin: 0;
    color: var(--ink);
    font-weight: 900;
    text-align: left;
}

.card-action {
    display: inline-flex;
    margin-top: 18px;
    color: var(--teal-dark);
    font-weight: 900;
}

.download-action {
    align-items: center;
    justify-content: center;
    width: fit-content;
    border: 1px solid rgba(15, 118, 110, 0.24);
    border-radius: 999px;
    background: #eefaf6;
    padding: 9px 14px;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.download-action:hover {
    border-color: rgba(15, 118, 110, 0.44);
    box-shadow: 0 10px 24px rgba(24, 33, 45, 0.1);
    transform: translateY(-2px);
}

.work-text-preview {
    margin: 0;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 8px;
    background: #fffdf8;
    padding: 12px;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.9;
    white-space: pre-wrap;
}

.muted-action {
    color: var(--muted);
    cursor: default;
}

.creative-tools-section {
    background: #fffdf8;
}

.creative-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.creative-tool-card {
    display: grid;
    align-content: start;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(24, 33, 45, 0.08);
}

.creative-tool-card > span {
    color: var(--coral);
    font-size: 13px;
    font-weight: 900;
}

.creative-tool-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.45;
}

.creative-tool-card textarea {
    width: 100%;
    min-height: 300px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    line-height: 1.9;
    padding: 14px;
}

.tool-row,
.drawing-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tool-row span {
    color: var(--muted);
    font-weight: 900;
}

.drawing-canvas {
    width: 100%;
    aspect-ratio: 12 / 7;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: crosshair;
    touch-action: none;
}

.drawing-controls input[type="color"] {
    width: 48px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 4px;
}

.symbol-game-card {
    grid-column: span 1;
}

.symbol-game-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
    line-height: 1.8;
}

.symbol-game-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.symbol-game-columns div {
    display: grid;
    gap: 10px;
}

.symbol-game-columns button {
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 10px;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.symbol-game-columns button:hover,
.symbol-game-columns button.is-selected {
    border-color: rgba(15, 118, 110, 0.44);
    background: #eefaf6;
    transform: translateY(-2px);
}

.symbol-game-columns button.is-matched {
    border-color: rgba(15, 118, 110, 0.5);
    background: #e8f8f3;
    color: var(--teal-dark);
    cursor: default;
}

.symbol-game-columns button.is-wrong {
    border-color: rgba(196, 72, 72, 0.4);
    background: #fff1ef;
}

.is-unlocked-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--teal-dark);
    font-weight: 900;
    cursor: default;
}

.is-unlocked-note::before {
    content: "✓";
}

[data-episode-gate] .premium-callout {
    margin-top: 18px;
}

.video-cta {
    margin-top: 44px;
}

.episode-hero {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(260px, 380px);
    gap: 36px;
    align-items: end;
    padding: 150px clamp(20px, 6vw, 88px) 72px;
    background: linear-gradient(135deg, rgba(24, 33, 45, 0.84), rgba(15, 118, 110, 0.72)), url("assets/images/shahnameh-hero.png") 68% center / cover;
    color: #fff;
}

.episode-copy h1 {
    max-width: 760px;
    margin: 8px 0 0;
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.2;
}

.episode-copy p:not(.eyebrow) {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    font-weight: 500;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

.episode-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.episode-facts {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 248, 237, 0.14);
    padding: 8px;
    backdrop-filter: blur(12px);
}

.episode-facts div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
}

.episode-facts div+div {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.episode-facts strong {
    font-weight: 900;
}

.episode-facts span {
    color: rgba(255, 255, 255, 0.82);
    text-align: left;
}

.episode-video-section {
    background: #fffdf8;
}

.video-placeholder {
    display: grid;
    min-height: min(58vw, 560px);
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.88), rgba(217, 154, 34, 0.52)), url("assets/images/shahnameh-hero.png") center / cover;
    color: #fff;
    padding: 28px;
    text-align: center;
}

.video-placeholder .play-icon {
    margin-bottom: 16px;
}

.video-placeholder h2 {
    margin: 0;
    font-size: clamp(30px, 5vw, 56px);
    font-weight: 900;
}

.video-placeholder p {
    max-width: 620px;
    margin: 12px auto 0;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

.video-player-frame {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #101820;
    box-shadow: var(--shadow);
}

.video-player-frame video {
    display: block;
    width: 100%;
    max-height: 78vh;
    background: #101820;
}

.episode-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: var(--ink);
    color: #fff;
}

.episode-next h2 {
    max-width: 720px;
}

.episode-next p {
    max-width: 680px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.learning-pack {
    background: #fffdf8;
}

.activity-grid,
.word-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.activity-grid article,
.word-list article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 24px;
    box-shadow: 0 10px 28px rgba(24, 33, 45, 0.06);
}

.activity-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    margin-bottom: 18px;
    background: #f7ead5;
}

.activity-grid span {
    color: var(--coral);
    font-size: 12px;
    font-weight: 900;
}

.activity-grid h3 {
    margin: 8px 0;
    font-size: 22px;
    font-weight: 900;
}

.activity-grid p {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

.words-section {
    background: #f2fbf9;
}

.word-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.activities-hero {
    background: linear-gradient(135deg, rgba(24, 33, 45, 0.84), rgba(15, 118, 110, 0.7)), url("assets/images/shahnameh-hero.png") 38% center / cover;
}

.activity-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.activity-grid .card-action {
    margin-top: 16px;
}

.simorgh-game-section {
    background: #f2fbf9;
}

.game-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.game-tabs button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 11px 18px;
}

.game-tabs button.is-active {
    border-color: transparent;
    background: var(--ink);
    color: #fff;
}

.drag-puzzle-game {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    gap: 24px;
    align-items: stretch;
}

.drag-puzzle-game[hidden] {
    display: none;
}

.puzzle-play-area,
.game-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: 0 14px 34px rgba(24, 33, 45, 0.08);
}

.puzzle-play-area {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.drag-puzzle-board,
.puzzle-tray {
    display: grid;
    direction: ltr;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.drag-puzzle-board {
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    background: #f7ead5;
    padding: 8px;
}

.puzzle-tray {
    min-height: 150px;
    border: 1px dashed rgba(15, 118, 110, 0.32);
    border-radius: 8px;
    background: #f7fbf7;
    padding: 10px;
}

.puzzle-slot,
.puzzle-tile {
    aspect-ratio: 1;
    border-radius: 8px;
    background-image: url("assets/images/zal/zal-puzzle-clean.jpg");
    background-size: 200% 200%;
}

.puzzle-slot {
    border: 2px dashed rgba(24, 33, 45, 0.2);
    background-color: rgba(255, 255, 255, 0.7);
    background-image: none;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.puzzle-slot::after {
    content: "جای تکه";
    display: grid;
    direction: rtl;
    height: 100%;
    place-items: center;
    color: rgba(100, 116, 139, 0.72);
    font-weight: 900;
}

.puzzle-slot.is-over,
.puzzle-slot:hover {
    border-color: rgba(15, 118, 110, 0.62);
    background-color: #eefaf6;
    transform: translateY(-2px);
}

.puzzle-slot.is-filled {
    border-style: solid;
    border-color: rgba(15, 118, 110, 0.44);
    background-image: url("assets/images/zal/zal-puzzle-clean.jpg");
}

.puzzle-slot.is-filled::after {
    content: "";
}

.puzzle-tile {
    border: 0;
    cursor: grab;
    box-shadow: 0 12px 26px rgba(24, 33, 45, 0.18);
    transition: transform 160ms ease, box-shadow 160ms ease, outline-color 160ms ease;
}

.puzzle-tile:hover,
.puzzle-tile.is-selected {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 34px rgba(24, 33, 45, 0.22);
}

.puzzle-tile.is-selected {
    outline: 4px solid rgba(241, 146, 45, 0.52);
    outline-offset: 2px;
}

.puzzle-tile:active {
    cursor: grabbing;
}

.puzzle-slot-1,
.puzzle-tile-1 {
    background-position: 0 0;
}

.puzzle-slot-2,
.puzzle-tile-2 {
    background-position: 100% 0;
}

.puzzle-slot-3,
.puzzle-tile-3 {
    background-position: 0 100%;
}

.puzzle-slot-4,
.puzzle-tile-4 {
    background-position: 100% 100%;
}

.game-panel {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 28px;
}

.game-progress {
    color: var(--coral);
    font-size: 13px;
    font-weight: 900;
}

.game-panel h3 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.35;
}

.game-options {
    display: grid;
    gap: 12px;
}

.game-options button {
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    text-align: right;
    padding: 14px 16px;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.game-options button:hover {
    border-color: rgba(15, 118, 110, 0.36);
    box-shadow: 0 12px 30px rgba(24, 33, 45, 0.12);
    transform: translateY(-2px);
}

.game-options button.is-correct {
    border-color: rgba(15, 118, 110, 0.5);
    background: #e8f8f3;
}

.game-options button.is-wrong {
    border-color: rgba(196, 72, 72, 0.38);
    background: #fff1ef;
}

.game-feedback {
    min-height: 32px;
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

body.has-dialog {
    overflow: hidden;
}

body.has-image-zoom {
    overflow: hidden;
}

.prompt-trigger {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(24, 33, 45, 0.58);
    backdrop-filter: blur(8px);
}

.dialog-backdrop[hidden] {
    display: none;
}

.dialog-card {
    position: relative;
    width: min(680px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    background: #fffdf8;
    padding: 34px;
    box-shadow: 0 28px 80px rgba(10, 20, 30, 0.32);
}

.wide-dialog-card {
    width: min(920px, 100%);
}

.dialog-card h2 {
    margin: 8px 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.25;
}

.dialog-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.storyboard-work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.storyboard-work-grid label {
    display: grid;
    gap: 10px;
    color: var(--ink);
    font-weight: 900;
}

.work-textarea {
    width: 100%;
    min-height: 136px;
    resize: vertical;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 8px;
    background: #fff;
    padding: 14px;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    line-height: 1.9;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.work-textarea:focus {
    border-color: rgba(15, 118, 110, 0.56);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
    outline: none;
}

.dialog-writing-pad {
    min-height: 280px;
    margin: 22px 0 14px;
}

.dialog-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.dialog-question-list {
    display: grid;
    gap: 12px;
    margin: 24px 0;
    padding: 0 24px 0 0;
}

.dialog-question-list li {
    color: var(--ink);
    font-weight: 800;
    line-height: 1.9;
}

.dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dialog-word-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.dialog-word-grid button {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 168px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    box-shadow: 0 12px 28px rgba(24, 33, 45, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dialog-word-grid button:hover {
    border-color: rgba(15, 118, 110, 0.36);
    box-shadow: 0 18px 44px rgba(24, 33, 45, 0.16);
    transform: translateY(-4px);
}

.word-visual,
.word-detail-visual {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #f7ead5;
    color: var(--teal-dark);
    font-size: 44px;
    line-height: 1;
    overflow: hidden;
}

.word-detail-visual {
    width: min(100%, 420px);
    height: 250px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 58px;
}

.word-visual img,
.word-detail-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-credit {
    display: block;
    margin: -8px 0 16px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

[data-zoom-src] {
    cursor: zoom-in;
}

.image-zoom-backdrop {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(10, 20, 30, 0.74);
    backdrop-filter: blur(8px);
}

.image-zoom-backdrop[hidden] {
    display: none;
}

.image-zoom-card {
    position: relative;
    display: grid;
    gap: 12px;
    width: min(920px, 100%);
    max-height: calc(100vh - 44px);
    border-radius: 8px;
}

.image-zoom-card img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 112px);
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
    background: #fffdf8;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.image-zoom-card strong {
    justify-self: center;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.image-zoom-download {
    justify-self: center;
    border-radius: 999px;
    background: #fff;
    color: var(--teal-dark);
    padding: 11px 18px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.image-zoom-close {
    position: absolute;
    top: -14px;
    left: -14px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.dialog-word-grid strong {
    font-size: 24px;
    font-weight: 900;
}

.dialog-word-grid small {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.word-detail-card p {
    font-size: 18px;
    line-height: 2;
}

.activities-strip {
    background: #f2fbf9;
}

.learning-hero {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.88), rgba(24, 33, 45, 0.72)), url("assets/images/shahnameh-hero.png") 42% center / cover;
}

.journey-button {
    margin-top: 26px;
}

.journey-map-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(242, 251, 249, 0.92)), radial-gradient(circle at 18% 20%, rgba(217, 154, 34, 0.16), transparent 32%), radial-gradient(circle at 82% 76%, rgba(15, 118, 110, 0.16), transparent 28%);
}

.learning-timeline {
    position: relative;
    min-height: 720px;
    margin-top: 50px;
}

.road-line {
    position: absolute;
    inset: 68px 7% auto;
    height: 520px;
    border: 4px solid rgba(15, 118, 110, 0.28);
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 999px 999px 0 0;
}

.road-line::before,
.road-line::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.road-line::before {
    inset: 118px 10% auto 10%;
    height: 250px;
    border: 4px solid rgba(217, 154, 34, 0.28);
    border-right-color: transparent;
    border-top-color: transparent;
    border-radius: 0 0 999px 999px;
}

.road-line::after {
    top: -13px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: var(--gold);
    box-shadow: 0 0 0 10px rgba(217, 154, 34, 0.16);
}

.road-step {
    position: absolute;
    width: min(31%, 360px);
}

.road-step-1 {
    top: 0;
    right: 0;
}

.road-step-2 {
    top: 92px;
    right: 34%;
}

.road-step-3 {
    top: 0;
    left: 0;
}

.road-step-4 {
    top: 382px;
    left: 0;
}

.road-step-5 {
    top: 470px;
    right: 34%;
}

.road-step-6 {
    top: 382px;
    right: 0;
}

.road-card,
.age-path-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 26px;
    box-shadow: 0 10px 28px rgba(24, 33, 45, 0.06);
}

.road-card {
    min-height: 210px;
    position: relative;
    overflow: hidden;
}

.road-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--gold), var(--teal), var(--coral));
}

.road-card small {
    color: var(--coral);
    font-size: 12px;
    font-weight: 900;
}

.road-number {
    display: inline-grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(24, 33, 45, 0.18);
    margin-bottom: 12px;
}

.road-node {
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 8px rgba(15, 118, 110, 0.16);
}

.road-step-1 .road-node,
.road-step-3 .road-node {
    bottom: -34px;
    right: 34px;
}

.road-step-2 .road-node {
    bottom: -34px;
    left: 50%;
}

.road-step-4 .road-node,
.road-step-6 .road-node {
    top: -34px;
    right: 34px;
}

.road-step-5 .road-node {
    top: -34px;
    left: 50%;
}

.learning-timeline h3,
.age-path-grid h3 {
    margin: 14px 0 8px;
    font-size: 23px;
    font-weight: 900;
}

.learning-timeline p,
.age-path-grid p {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

.age-path-section {
    background: #f2fbf9;
}

.age-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.age-path-grid strong {
    color: var(--coral);
    font-size: 13px;
    font-weight: 900;
}

.parents-guide-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1fr);
    gap: 48px;
    align-items: center;
    background: #fffdf8;
}

.parents-hero {
    background: linear-gradient(135deg, rgba(24, 33, 45, 0.86), rgba(143, 61, 95, 0.58)), url("assets/images/shahnameh-hero.png") 40% center / cover;
}

.parent-trust-section,
.parents-safety-section {
    background: #fffdf8;
}

.parent-principles,
.parent-routine {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.parent-routine {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.parent-principles article,
.parent-routine article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 26px;
    box-shadow: 0 10px 28px rgba(24, 33, 45, 0.06);
}

.parent-principles span,
.parent-routine span {
    color: var(--coral);
    font-size: 12px;
    font-weight: 900;
}

.parent-routine strong {
    display: block;
    color: var(--teal-dark);
    font-size: 22px;
    font-weight: 900;
}

.parent-principles h3 {
    margin: 8px 0;
    font-size: 22px;
    font-weight: 900;
}

.parent-principles p,
.parent-routine p {
    margin: 10px 0 0;
    color: var(--muted);
    font-weight: 500;
}

.parent-use-section,
.parent-faq {
    background: #f2fbf9;
}

.club-hero {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.9), rgba(217, 154, 34, 0.48)), url("assets/images/shahnameh-hero.png") 38% center / cover;
}

.club-dashboard-section,
.club-gallery-section {
    background: #fffdf8;
}

.club-dashboard,
.club-feature-grid,
.club-event-grid {
    display: grid;
    gap: 18px;
}

.club-dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.club-feature-grid,
.club-event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.club-dashboard article,
.club-feature-grid article,
.club-event-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 26px;
    box-shadow: 0 10px 28px rgba(24, 33, 45, 0.06);
}

.club-dashboard article {
    min-height: 150px;
    border-top: 6px solid var(--teal);
}

.club-dashboard strong,
.club-event-grid strong {
    display: block;
    color: var(--teal-dark);
    font-size: 22px;
    font-weight: 900;
}

.club-dashboard span,
.club-event-grid span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 500;
}

.club-feature-grid span {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: rgba(217, 154, 34, 0.16);
    color: var(--teal-dark);
    font-weight: 900;
}

.club-feature-grid h3 {
    margin: 14px 0 8px;
    font-size: 23px;
    font-weight: 900;
}

.club-feature-grid p {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

.club-member-section,
.club-events-section {
    background: #f2fbf9;
}

.faq-hero {
    background: linear-gradient(135deg, rgba(24, 33, 45, 0.86), rgba(15, 118, 110, 0.64)), url("assets/images/shahnameh-hero.png") 44% center / cover;
}

.faq-page-section {
    background: #fffdf8;
}

.faq-page-section.alt {
    background: #f2fbf9;
}

.faq-page-list {
    max-width: 1040px;
}

.faq-page-list details {
    padding: 22px 26px;
    box-shadow: 0 10px 28px rgba(24, 33, 45, 0.05);
}

.contact-hero {
    background: linear-gradient(135deg, rgba(24, 33, 45, 0.88), rgba(214, 90, 74, 0.55)), url("assets/images/shahnameh-hero.png") 42% center / cover;
}

.pricing-hero {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(217, 154, 34, 0.58)), url("assets/images/shahnameh-hero.png") 42% center / cover;
}

.pricing-section {
    background: #fffdf8;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pricing-grid article,
.premium-callout,
.payment-gateway-panel article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 26px;
    box-shadow: 0 10px 28px rgba(24, 33, 45, 0.06);
}

.pricing-grid article.is-featured,
.payment-gateway-panel article.is-featured {
    border-color: rgba(217, 154, 34, 0.5);
    box-shadow: var(--shadow);
}

.pricing-grid span,
.payment-gateway-panel span,
.locked-card::before {
    color: var(--coral);
    font-size: 12px;
    font-weight: 900;
}

.pricing-grid h3,
.payment-gateway-panel h3 {
    margin: 8px 0;
    font-size: 24px;
    font-weight: 900;
}

.pricing-grid strong {
    display: block;
    color: var(--teal-dark);
    font-size: 20px;
    font-weight: 900;
}

.pricing-grid p,
.payment-gateway-panel p {
    color: var(--muted);
    font-weight: 500;
}

.payment-gateway-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 920px;
}

.payment-gateway-panel label,
.payment-gateway-panel span {
    display: block;
}

.payment-gateway-panel label:not(.payment-option) {
    margin-top: 16px;
}

.payment-gateway-panel label:not(.payment-option) span {
    margin-bottom: 8px;
    color: var(--teal-dark);
    font-weight: 900;
}

.payment-gateway-panel input[type="text"],
.payment-gateway-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    color: var(--ink);
    font: inherit;
    padding: 11px 12px;
}

.payment-gateway-panel input:focus,
.payment-gateway-panel select:focus {
    border-color: rgba(15, 118, 110, 0.56);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
    outline: none;
}

.payment-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--teal-dark);
    font-weight: 900;
}

.payment-option span {
    display: inline;
}

.payment-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
}

.checkout-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 20px;
}

.checkout-fields label,
.checkout-fields span {
    display: block;
}

.checkout-fields span {
    margin-bottom: 8px;
    color: var(--teal-dark);
    font-weight: 900;
}

.checkout-fields input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    color: var(--ink);
    font: inherit;
    padding: 11px 12px;
}

[data-redeem-form] {
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
}

[data-redeem-form] label {
    margin-top: 0;
}

[data-redeem-form] .form-note {
    grid-column: 1 / -1;
}

.payment-page {
    min-height: 100vh;
    background: #fffdf8;
}

.payment-result-section {
    display: grid;
    min-height: 70vh;
    place-items: center;
    background: #fffdf8;
}

.payment-result-card {
    width: min(720px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: clamp(26px, 5vw, 46px);
    box-shadow: var(--shadow);
}

.payment-result-card h1 {
    margin: 8px 0 12px;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
}

.payment-result-card p {
    color: var(--muted);
    font-weight: 600;
}

.payment-summary {
    display: grid;
    gap: 8px;
    margin: 20px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    padding: 18px;
}

.payment-summary strong {
    color: var(--teal-dark);
    font-size: 20px;
    font-weight: 900;
}

.payment-summary span {
    color: var(--muted);
    font-weight: 600;
}

.premium-callout {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.premium-callout strong,
.premium-callout span {
    display: block;
}

.premium-callout strong {
    color: var(--teal-dark);
    font-size: 20px;
    font-weight: 900;
}

.premium-callout span {
    color: var(--muted);
    font-weight: 500;
}

.locked-card {
    position: relative;
    border-color: rgba(214, 90, 74, 0.3);
    background: linear-gradient(180deg, #fff, #fff8f6);
}

.locked-card::before {
    content: "پولی";
    position: absolute;
    inset: 16px auto auto 16px;
    border-radius: 999px;
    background: rgba(214, 90, 74, 0.12);
    padding: 4px 10px;
}

.locked-card .card-action {
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    padding: 8px 12px;
}

.steps .card-action {
    display: inline-flex;
    margin-top: 16px;
    color: var(--teal-dark);
    font-weight: 900;
}

.contact-path-section,
.contact-form-section {
    background: #fffdf8;
}

.contact-brief-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1fr);
    gap: 48px;
    align-items: center;
    background: #f2fbf9;
}

.contact-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-path-grid article,
.contact-message-card,
.contact-form-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 26px;
    box-shadow: 0 10px 28px rgba(24, 33, 45, 0.06);
}

.contact-path-grid span {
    color: var(--coral);
    font-size: 12px;
    font-weight: 900;
}

.contact-path-grid h3 {
    margin: 8px 0;
    font-size: 22px;
    font-weight: 900;
}

.contact-path-grid p,
.contact-message-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

.contact-message-card {
    display: grid;
    gap: 12px;
    max-width: 760px;
}

.contact-message-card .button {
    justify-self: start;
    margin-top: 10px;
}

.contact-form-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 920px;
}

.contact-form-card label,
.contact-form-card span {
    display: block;
}

.contact-form-card span {
    margin-bottom: 8px;
    color: var(--teal-dark);
    font-weight: 900;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    color: var(--ink);
    font: inherit;
    padding: 11px 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus,
.upload-panel input:focus {
    border-color: rgba(15, 118, 110, 0.56);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.contact-form-card textarea {
    resize: vertical;
}

.contact-form-card .full,
.contact-form-card .button,
.contact-form-card .form-note {
    grid-column: 1 / -1;
}

.contact-form-card .button {
    justify-self: start;
}

.form-note {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.admin-hero {
    background: linear-gradient(135deg, rgba(16, 24, 32, 0.9), rgba(15, 118, 110, 0.58)), url("assets/images/shahnameh-hero.png") 42% center / cover;
}

.admin-login-section,
.admin-dashboard-section {
    background: #fffdf8;
}

.admin-login-card,
.admin-panel,
.admin-stats article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 26px;
    box-shadow: 0 10px 28px rgba(24, 33, 45, 0.06);
}

.admin-login-card {
    display: grid;
    gap: 16px;
    max-width: 520px;
}

.admin-login-card label,
.admin-login-card span {
    display: block;
}

.admin-login-card span {
    margin-bottom: 8px;
    color: var(--teal-dark);
    font-weight: 900;
}

.admin-login-card input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    color: var(--ink);
    font: inherit;
    padding: 11px 12px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.admin-stats strong,
.admin-stats span {
    display: block;
}

.admin-stats strong {
    color: var(--teal-dark);
    font-size: 34px;
    font-weight: 900;
}

.admin-stats span {
    color: var(--muted);
    font-weight: 700;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.admin-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.admin-panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.admin-panel-heading h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
}

.admin-panel-heading span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.admin-list {
    display: grid;
    gap: 12px;
}

.admin-item {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    padding: 14px;
}

.admin-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
}

.admin-item strong,
.admin-item span {
    display: block;
}

.admin-item strong {
    color: var(--teal-dark);
    font-weight: 900;
}

.admin-item span,
.admin-item p {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

.admin-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.button.danger {
    background: var(--coral);
    color: #fff;
}

.word-list strong,
.word-list span {
    display: block;
}

.word-list strong {
    color: var(--teal-dark);
    font-size: 22px;
    font-weight: 900;
}

.word-list span {
    margin-top: 8px;
    color: var(--muted);
    font-weight: 500;
}

.community-section {
    background: #fffdf8;
}

.community-board {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
    gap: 18px;
}

.upload-panel,
.community-gallery article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 24px;
    box-shadow: 0 10px 28px rgba(24, 33, 45, 0.06);
}

.upload-panel {
    display: grid;
    align-content: start;
    gap: 14px;
}

.upload-panel label,
.upload-panel span {
    display: block;
}

.upload-panel span {
    margin-bottom: 8px;
    color: var(--teal-dark);
    font-weight: 900;
}

.upload-panel input[type="file"],
.upload-panel input[type="text"] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    color: var(--ink);
    font: inherit;
    padding: 11px 12px;
}

.community-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.community-gallery article {
    min-height: 150px;
}

.community-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 12px;
}

.community-gallery strong,
.community-gallery span {
    display: block;
}

.community-gallery strong {
    color: var(--teal-dark);
    font-size: 18px;
    font-weight: 900;
}

.community-gallery span {
    margin-top: 6px;
    color: var(--muted);
    font-weight: 500;
}

.trial-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.trial-card {
    display: block;
    min-height: 180px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 24px;
    box-shadow: 0 10px 28px rgba(24, 33, 45, 0.06);
}

.trial-card span {
    color: var(--coral);
    font-size: 12px;
    font-weight: 900;
}

.trial-card h3 {
    margin: 10px 0 8px;
    font-size: 24px;
    font-weight: 900;
}

.trial-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

.activity-grid article,
.word-list article,
.upload-panel,
.community-gallery article,
.trial-card,
.catalog-card,
.video-card,
.promise-grid article,
.road-card,
.age-path-grid article,
.parent-principles article,
.parent-routine article,
.club-dashboard article,
.club-feature-grid article,
.club-event-grid article,
.contact-path-grid article,
.contact-message-card,
.contact-form-card,
.pricing-grid article,
.premium-callout,
.puzzle-play-area,
.game-panel,
.admin-login-card,
.admin-panel,
.admin-stats article {
    transform: translateY(0);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.activity-grid article:hover,
.word-list article:hover,
.upload-panel:hover,
.community-gallery article:hover,
.trial-card:hover,
.catalog-card:hover,
.video-card:hover,
.promise-grid article:hover,
.learning-timeline article:hover .road-card,
.age-path-grid article:hover,
.parent-principles article:hover,
.parent-routine article:hover,
.club-dashboard article:hover,
.club-feature-grid article:hover,
.club-event-grid article:hover,
.contact-path-grid article:hover,
.contact-message-card:hover,
.contact-form-card:hover,
.pricing-grid article:hover,
.premium-callout:hover,
.game-panel:hover,
.puzzle-play-area:hover,
.admin-login-card:hover,
.admin-panel:hover,
.admin-stats article:hover {
    border-color: rgba(15, 118, 110, 0.36);
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(24, 33, 45, 0.16);
    transform: translateY(-6px);
}

.activity-grid article:hover h3,
.word-list article:hover strong,
.trial-card:hover h3,
.video-card:hover h3,
.catalog-card:hover h2,
.learning-timeline article:hover h3,
.age-path-grid article:hover h3,
.parent-principles article:hover h3,
.parent-routine article:hover strong,
.club-dashboard article:hover strong,
.club-feature-grid article:hover h3,
.club-event-grid article:hover strong,
.contact-path-grid article:hover h3 {
    color: var(--teal-dark);
    font-weight: 900;
}

.reveal-card {
    opacity: 0;
    transform: translateY(14px);
}

.reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .activity-grid article,
    .word-list article,
    .upload-panel,
    .community-gallery article,
    .trial-card,
    .catalog-card,
    .video-card,
    .promise-grid article,
    .road-card,
    .age-path-grid article,
    .parent-principles article,
    .parent-routine article,
    .club-dashboard article,
    .club-feature-grid article,
    .club-event-grid article,
    .contact-path-grid article,
    .contact-message-card,
    .contact-form-card,
    .admin-login-card,
    .admin-panel,
    .admin-stats article,
    .reveal-card {
        transition: none;
    }
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1fr);
    gap: 24px 56px;
    align-items: end;
    margin-bottom: 34px;
}

.section-heading .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -12px;
}

.section h2 {
    font-size: clamp(30px, 4vw, 52px);
}

.section-heading p:not(.eyebrow),
.club-copy p,
.contact p {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

.video-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr 0.9fr;
    gap: 18px;
}

.promise {
    background: #fffdf8;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.promise-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 26px;
    box-shadow: 0 10px 28px rgba(24, 33, 45, 0.06);
}

.promise-grid span {
    color: var(--coral);
    font-size: 12px;
    font-weight: 900;
}

.promise-grid h3 {
    margin: 8px 0;
    font-size: 22px;
    font-weight: 900;
}

.promise-grid p {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

.video-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(24, 33, 45, 0.08);
}

.video-poster {
    position: relative;
    display: grid;
    min-height: 260px;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(217, 154, 34, 0.62)), url("assets/images/shahnameh-hero.png") center / cover;
    color: #fff;
}

.video-poster.compact {
    min-height: 190px;
    background: linear-gradient(135deg, rgba(143, 61, 95, 0.9), rgba(15, 118, 110, 0.5)), url("assets/images/shahnameh-hero.png") 68% 52% / cover;
}

.video-poster.alt {
    background: linear-gradient(135deg, rgba(214, 90, 74, 0.9), rgba(217, 154, 34, 0.48)), url("assets/images/shahnameh-hero.png") 78% 54% / cover;
}

.video-poster p {
    position: absolute;
    inset: auto 18px 16px auto;
    margin: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
}

.play-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.play-icon::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin: 22px 26px 0 0;
    border-block: 12px solid transparent;
    border-right: 18px solid var(--teal);
}

.video-body {
    padding: 22px;
}

.tag {
    color: var(--coral);
    font-size: 12px;
    font-weight: 900;
}

.video-body h3,
.steps h3 {
    margin: 8px 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.video-body p,
.steps p {
    margin: 0;
    color: var(--muted);
}

.video-body a {
    display: inline-flex;
    margin-top: 16px;
    color: var(--teal-dark);
    font-weight: 900;
}

.journey {
    background: #f2fbf9;
}

.section-heading.narrow {
    display: block;
    max-width: 720px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.steps article {
    border-top: 4px solid var(--teal);
    background: var(--surface);
    padding: 28px;
}

.steps span {
    color: var(--gold);
    font-weight: 900;
}

.parents {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1fr);
    gap: 48px;
    align-items: center;
    background: #fffdf8;
}

.parents-copy p {
    margin: 14px 0 0;
    color: var(--muted);
    font-weight: 500;
}

.checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
    box-shadow: var(--shadow);
}

.checklist div {
    min-height: 138px;
    background: var(--surface);
    padding: 24px;
}

.checklist strong,
.checklist span {
    display: block;
}

.checklist strong {
    color: var(--teal-dark);
    font-size: 18px;
    font-weight: 900;
}

.checklist span {
    margin-top: 6px;
    color: var(--muted);
}

.club {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
    gap: 48px;
    align-items: center;
}

.club-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.club-panel div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
}

.club-panel div+div {
    border-top: 1px solid var(--line);
}

.club-panel strong {
    color: var(--teal-dark);
}

.club-panel span {
    color: var(--muted);
    text-align: left;
}

.faq {
    background: #f2fbf9;
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 920px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 18px 22px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 900;
}

.faq-list p {
    margin: 10px 0 0;
    color: var(--muted);
    font-weight: 500;
}

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: var(--ink);
    color: #fff;
}

.contact h2 {
    max-width: 720px;
}

.contact p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 1fr);
    gap: 28px 56px;
    padding: 42px clamp(20px, 6vw, 88px) 26px;
    background: #101820;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

.footer-main {
    display: grid;
    gap: 14px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 900;
}

.footer-brand img {
    width: 44px;
    height: 52px;
    object-fit: contain;
}

.footer-brand strong,
.footer-brand small {
    display: block;
}

.footer-brand small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
}

.footer-main p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 500;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    align-content: start;
}

.footer-links a {
    border-radius: 8px;
    padding: 7px 0;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

@media (max-width: 860px) {
    .site-header {
        align-items: flex-start;
    }
    .brand {
        min-width: 0;
    }
    .nav-toggle {
        display: block;
        flex: 0 0 auto;
    }
    .site-nav {
        position: absolute;
        inset: 72px 18px auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--surface);
        color: var(--ink);
        padding: 10px;
        box-shadow: var(--shadow);
    }
    .site-header.is-open .site-nav {
        display: flex;
    }
    .site-nav a {
        border-radius: 6px;
    }
    .hero {
        min-height: 860px;
        align-items: end;
        padding-top: 110px;
    }
    .hero-image {
        object-position: 61% center;
    }
    .hero-shade {
        background: linear-gradient(0deg, rgba(9, 24, 36, 0.84), rgba(9, 24, 36, 0.12) 72%), linear-gradient(0deg, rgba(255, 248, 237, 0.86), rgba(255, 248, 237, 0) 24%);
    }
    .intro-band,
    .video-grid,
    .video-catalog,
    .steps,
    .activity-grid,
    .creative-tools-grid,
    .word-list,
    .community-board,
    .community-gallery,
    .trial-grid,
    .promise-grid,
    .page-hero,
    .episode-hero,
    .parents,
    .club,
    .learning-timeline,
    .age-path-grid,
    .parents-guide-section,
    .parent-principles,
    .parent-routine,
    .parents-safety-section,
    .club-dashboard,
    .club-feature-grid,
    .club-event-grid,
  .contact-brief-section,
  .contact-path-grid,
  .contact-form-card,
    .pricing-grid,
    .payment-gateway-panel,
    .checkout-fields,
    [data-redeem-form],
    .admin-stats,
    .admin-columns,
    .storyboard-work-grid {
        grid-template-columns: 1fr;
    }
    .section-heading {
        display: block;
    }
    .section-heading p:not(.eyebrow) {
        margin-top: 14px;
    }
    .contact {
        display: block;
    }
    .contact .button,
    .episode-next .button {
        margin-top: 22px;
    }
    .episode-next {
        display: block;
    }
    .learning-timeline {
        display: grid;
        min-height: 0;
        gap: 18px;
        margin-top: 34px;
        padding-right: 28px;
    }
    .road-line {
        inset: 0 8px 0 auto;
        width: 4px;
        height: auto;
        border: 0;
        border-radius: 999px;
        background: linear-gradient(180deg, var(--gold), var(--teal), var(--coral));
    }
    .road-line::before,
    .road-line::after {
        display: none;
    }
    .road-step {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
    }
    .road-node {
        top: 28px;
        right: -28px;
        bottom: auto;
        left: auto;
    }
    .road-step-1 .road-node,
    .road-step-2 .road-node,
    .road-step-3 .road-node,
    .road-step-4 .road-node,
    .road-step-5 .road-node,
    .road-step-6 .road-node {
        top: 28px;
        right: -28px;
        bottom: auto;
        left: auto;
    }
    .road-card {
        min-height: 0;
    }
    .drag-puzzle-game {
        grid-template-columns: 1fr;
    }
    .puzzle-tray {
        min-height: 120px;
    }
}

@media (max-width: 540px) {
    .brand {
        min-width: 0;
    }
    .brand strong {
        font-size: 13px;
    }
    .hero {
        min-height: 760px;
    }
    .page-hero {
        padding-top: 132px;
        min-height: 520px;
    }
    .episode-hero {
        padding-top: 132px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero-copy {
        font-size: 16px;
    }
    .hero-actions,
    .episode-actions,
    .button {
        width: 100%;
    }
    .card-action,
    .payment-gateway-panel .button,
    .admin-toolbar .button,
    .admin-item-actions .button {
        width: auto;
    }
    .hero-note {
        display: block;
    }
    .hero-note span {
        display: block;
        margin-top: 3px;
    }
    .section {
        padding-block: 64px;
    }
    .checklist {
        grid-template-columns: 1fr;
    }
    .club-panel div {
        display: block;
    }
    .club-panel span {
        display: block;
        margin-top: 4px;
        text-align: right;
    }
    .site-footer {
        grid-template-columns: 1fr;
    }
    .footer-links {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        display: grid;
    }
    .dialog-card {
        padding: 26px 20px;
    }
    .dialog-word-grid {
        grid-template-columns: 1fr;
    }
    .dialog-actions .button {
        width: 100%;
    }
}

.works-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {
    .works-gallery {
        grid-template-columns: 1fr;
    }
}
