/* The 99 Names Observatory: a calm night sky over a domed observatory, eleven constellations of stars (one star for
   each stored name), the telescope lens that shows the chosen name, star practice, and the practice dialog.
   Stars, sky and architecture only. Logical properties so Arabic and Urdu mirror; the sky chart itself stays a chart
   (dir="ltr"). Still for reduced motion. */

.page-names {
    /* Dusk in the light theme, deep night in Lantern time. The observatory is always a night sky. */
    --no-top: #1E2A6E;
    --no-mid: #33358C;
    --no-low: #6B54B0;
    --no-horizon: #B98AD8;
    --no-panel: rgba(14, 18, 62, .55);
    --no-ink: #F6F3FF;
    --no-ink-soft: #CFC8F6;
    --no-ink-faint: #A69DDC;
    --no-gold: #FFD98A;
    --no-gold-hi: #FFF3CF;
    --no-gold-deep: #F2B84B;
    --no-lilac: #C3B1FF;
    --no-line: rgba(205, 195, 255, .2);
    --no-edge: rgba(255, 255, 255, .14);
    --no-card: rgba(255, 255, 255, .78);
    --no-card-ink: var(--ink);
}
:root[data-theme="dark"] .page-names {
    --no-top: #050922; --no-mid: #0F1546; --no-low: #241E5E; --no-horizon: #4A3488; --no-panel: rgba(6, 9, 36, .6);
    --no-card: rgba(20, 22, 70, .72);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .page-names {
        --no-top: #050922; --no-mid: #0F1546; --no-low: #241E5E; --no-horizon: #4A3488; --no-panel: rgba(6, 9, 36, .6);
        --no-card: rgba(20, 22, 70, .72);
    }
}

.no-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Star dust: three layers of tiny stars at different sizes, twinkling slowly out of step. */
.no-dust, .no-sky::before, .no-lens-view::before {
    background-image:
        radial-gradient(1.3px 1.3px at 12% 18%, #fff 60%, transparent 62%),
        radial-gradient(1px 1px at 27% 64%, #fff 60%, transparent 62%),
        radial-gradient(1.6px 1.6px at 41% 32%, #FFF3CF 60%, transparent 62%),
        radial-gradient(1px 1px at 58% 12%, #fff 60%, transparent 62%),
        radial-gradient(1.2px 1.2px at 69% 52%, #E4DCFF 60%, transparent 62%),
        radial-gradient(1px 1px at 83% 26%, #fff 60%, transparent 62%),
        radial-gradient(1.4px 1.4px at 92% 74%, #fff 60%, transparent 62%),
        radial-gradient(1px 1px at 6% 86%, #E4DCFF 60%, transparent 62%),
        radial-gradient(1.1px 1.1px at 49% 90%, #fff 60%, transparent 62%);
    background-repeat: repeat;
}
.no-dust { position: absolute; inset: 0; pointer-events: none; }
.no-dust--1 { background-size: 220px 180px; opacity: .8; animation: no-twinkle 7s ease-in-out infinite; }
.no-dust--2 { background-size: 310px 260px; background-position: 40px 70px; opacity: .55; animation: no-twinkle 11s ease-in-out -3s infinite; }
.no-dust--3 { background-size: 470px 380px; background-position: 120px 30px; opacity: .9; transform: scale(1.3); transform-origin: 0 0; animation: no-twinkle 9s ease-in-out -6s infinite; }
@keyframes no-twinkle { 0%, 100% { opacity: .85; } 50% { opacity: .35; } }

/* ---------- Hero: the observatory under the stars ---------- */
.no-hero {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 40%); align-items: end;
    gap: clamp(8px, 2vw, 24px); margin-bottom: 18px; border-radius: var(--radius-l); overflow: hidden; isolation: isolate;
    padding: clamp(20px, 3.4vw, 40px) clamp(20px, 3.4vw, 40px) 0;
    color: var(--no-ink);
    background:
        radial-gradient(60% 70% at 78% 108%, color-mix(in srgb, var(--no-horizon) 80%, transparent), transparent 70%),
        radial-gradient(40% 50% at 10% 0%, rgba(140, 120, 255, .25), transparent 70%),
        linear-gradient(180deg, var(--no-top), var(--no-mid) 58%, var(--no-low));
    box-shadow: var(--shadow-l), inset 0 0 0 1.5px var(--no-edge);
}
.no-hero-sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.no-shoot {
    position: absolute; top: 14%; inset-inline-start: 18%; width: 120px; height: 2px; border-radius: 2px; opacity: 0;
    background: linear-gradient(90deg, rgba(255, 243, 207, 0), rgba(255, 243, 207, .9));
    transform: rotate(-18deg); animation: no-shoot 14s ease-in 4s infinite;
}
@keyframes no-shoot {
    0%, 92% { opacity: 0; translate: 0 0; }
    94% { opacity: 1; }
    100% { opacity: 0; translate: 260px 80px; }
}
.no-hero-text { position: relative; z-index: 2; padding-bottom: clamp(40px, 4.6vw, 60px); }
.no-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0; padding-block: 4px 4px; padding-inline: 8px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--no-edge); font-weight: 800; font-size: .92rem; color: var(--no-gold);
}
.no-eyebrow .k-ico { width: 22px; height: 22px; }
.no-hero h1 {
    margin: 10px 0 6px; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; color: #fff;
    text-shadow: 0 2px 0 rgba(20, 16, 70, .5), 0 0 34px rgba(255, 217, 138, .35);
}
.no-hero-intro { margin: 0 0 14px; max-width: 52ch; color: var(--no-ink-soft); font-family: var(--font-read); font-size: 1.08rem; }
.no-guide { margin-bottom: 14px; }
.no-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.no-stat {
    display: flex; align-items: baseline; gap: 8px; padding: 8px 16px; border-radius: 18px;
    background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--no-edge); backdrop-filter: blur(6px);
}
.no-stat b { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--no-gold); }
.no-stat--due b { color: var(--no-lilac); }
.no-stat--all b { color: #fff; }
.no-stat span { font-weight: 700; color: var(--no-ink-soft); font-size: .95rem; }

.no-hero-art { position: relative; align-self: end; }
.no-hero-art > svg:first-child { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 -10px 40px rgba(255, 210, 130, .18)); }
.no-beam { opacity: .7; animation: no-beam 8s ease-in-out infinite; transform-origin: 211px 92px; }
@keyframes no-beam { 0%, 100% { opacity: .45; } 50% { opacity: .8; } }
.no-moon { position: absolute; top: 4%; inset-inline-end: 6%; width: clamp(40px, 6vw, 64px); filter: drop-shadow(0 0 18px rgba(255, 231, 168, .55)); }

/* ---------- The observatory grid: sky and practice on one side, the telescope on the other ---------- */
.no {
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 18px; align-items: start;
    grid-template-rows: auto 1fr auto; grid-template-areas: "sky scope" "play scope" "foot foot";
}
.no-sky { grid-area: sky; }
.no-scope { grid-area: scope; }
.no-play { grid-area: play; }
.no > .no-status-line, .no > .no-grownups, .no > .no-grownups-link { grid-column: 1 / -1; }

/* ---------- The night sky ---------- */
.no-sky {
    position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-l); padding: clamp(14px, 2vw, 22px);
    color: var(--no-ink);
    background:
        radial-gradient(50% 60% at 70% 55%, rgba(120, 100, 230, .28), transparent 70%),
        radial-gradient(40% 50% at 15% 80%, rgba(80, 160, 230, .16), transparent 70%),
        linear-gradient(170deg, var(--no-top), var(--no-mid) 70%, var(--no-low));
    box-shadow: var(--shadow-l), inset 0 0 0 1.5px var(--no-edge);
}
.no-sky::before { content: ""; position: absolute; inset: 0; z-index: -1; background-size: 260px 210px; opacity: .55; }
.no-sky-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 10px; }
.no-sky-head h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 1.35rem; color: #fff; }
.no-sky-head .k-ico { width: 26px; height: 26px; }
.no-sky-hint { color: var(--no-ink-faint); font-weight: 700; font-size: .92rem; }

/* The chart: one plate per constellation. */
.no-chart {
    display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px;
}
.no-plate {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 0; padding: 6px 4px 5px;
    border: 0; border-radius: 14px; cursor: pointer; color: var(--no-ink-soft); font: inherit;
    background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--no-line);
    transition: background .25s, box-shadow .25s, transform .3s var(--ease-soft);
}
.no-plate:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.no-plate[aria-selected="true"] { background: rgba(255, 217, 138, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 217, 138, .7), 0 8px 18px -10px rgba(255, 200, 100, .6); color: #fff; }
.no-plate:focus-visible { outline: 3px solid var(--no-gold); outline-offset: 2px; }
.no-plate svg { width: 100%; max-width: 64px; height: auto; aspect-ratio: 100 / 60; overflow: visible; }
.no-plate line { stroke: rgba(205, 195, 255, .35); stroke-width: 2.2; }
.no-plate circle { fill: rgba(255, 255, 255, .45); transition: fill .4s; }
.no-plate circle.is-lit { fill: var(--no-gold); filter: drop-shadow(0 0 3px rgba(255, 217, 138, .9)); }
.no-plate-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.no-plate-range { font-family: var(--font-display); font-weight: 700; font-size: .82rem; line-height: 1.1; }
.no-plate-lit { font-size: .7rem; font-weight: 800; color: var(--no-ink-faint); min-height: 1em; }
.no-plate-lit.is-full { color: var(--no-gold); }

/* The field: a constellation large, its stars as buttons. */
.no-field[hidden] { display: none; }
.no-field.is-arriving .no-field-sky { animation: no-arrive .7s var(--ease-soft); }
@keyframes no-arrive { from { opacity: 0; transform: scale(.97); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.no-field-sky {
    position: relative; aspect-ratio: 100 / 60; border-radius: 22px; margin-inline: auto;
    background:
        radial-gradient(closest-side at 50% 50%, rgba(160, 140, 255, .14), transparent),
        radial-gradient(circle at 50% 50%, transparent 62%, rgba(255, 255, 255, .03) 63%, transparent 64%);
}
.no-field-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.no-field-lines line {
    stroke: rgba(205, 195, 255, .28); stroke-width: 1.4px; vector-effect: non-scaling-stroke; stroke-dasharray: 3 5; stroke-linecap: round;
    transition: stroke .6s;
}
.no-field-lines line.is-lit { stroke: rgba(255, 217, 138, .8); stroke-dasharray: none; stroke-width: 2px; filter: drop-shadow(0 0 3px rgba(255, 217, 138, .6)); }

.no-star {
    position: absolute; inset-inline-start: calc(var(--x) * 1%); top: calc(var(--y) / 60 * 100%);
    width: 48px; height: 48px; margin-block-start: -24px; margin-inline-start: -24px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; cursor: pointer; color: inherit; font: inherit;
    display: grid; place-items: center;
}
.no-star-core {
    position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #fff, #D9D2FF 60%, #9C92E6);
    box-shadow: 0 0 6px 1px rgba(220, 210, 255, .55);
    transition: transform .4s var(--ease-bounce), background .4s, box-shadow .4s;
    animation: no-star-breathe 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s);
}
@keyframes no-star-breathe { 0%, 100% { box-shadow: 0 0 6px 1px rgba(220, 210, 255, .5); } 50% { box-shadow: 0 0 11px 3px rgba(220, 210, 255, .3); } }
.no-star-glow {
    position: absolute; inset: -10px; border-radius: 50%; opacity: 0; transform: scale(.6);
    background: radial-gradient(circle, rgba(255, 230, 160, .75), rgba(255, 200, 90, .25) 35%, transparent 68%);
    transition: opacity .6s, transform .6s var(--ease-soft);
}
/* A star of eight points behind each lit star: geometry, very faint. */
.no-star-glow::after {
    content: ""; position: absolute; inset: 22px; background: rgba(255, 236, 180, .55);
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.no-star:hover .no-star-core, .no-star:focus-visible .no-star-core { transform: scale(1.35); }
.no-star:focus-visible { outline: 3px solid var(--no-gold); outline-offset: 0; }
.no-star.is-lit .no-star-core { width: 14px; height: 14px; background: radial-gradient(circle at 40% 35%, #FFFDF4, var(--no-gold) 55%, var(--no-gold-deep)); box-shadow: 0 0 12px 3px rgba(255, 210, 120, .7); animation-name: no-star-glow; }
.no-star.is-lit .no-star-glow { opacity: 1; transform: scale(1); animation: no-halo 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
@keyframes no-star-glow { 0%, 100% { box-shadow: 0 0 12px 3px rgba(255, 210, 120, .7); } 50% { box-shadow: 0 0 18px 6px rgba(255, 210, 120, .45); } }
@keyframes no-halo { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.12) rotate(22deg); } }
.no-star.is-due .no-star-core { background: radial-gradient(circle at 40% 35%, #fff, var(--no-lilac) 60%, #8C78E8); box-shadow: 0 0 10px 3px rgba(195, 177, 255, .7); }
.no-star.is-due .no-star-glow { background: radial-gradient(circle, rgba(195, 177, 255, .6), transparent 66%); }
.no-star.is-due::before {
    content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px dashed rgba(195, 177, 255, .8);
    animation: no-spin 14s linear infinite;
}
@keyframes no-spin { to { transform: rotate(1turn); } }
.no-star.is-selected::after {
    content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 2px solid var(--no-gold);
    box-shadow: 0 0 0 5px rgba(255, 217, 138, .16), 0 0 22px rgba(255, 217, 138, .45);
}
.no-star-label {
    position: absolute; top: calc(100% - 8px); inset-inline-start: 50%; transform: translateX(-50%); z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 0; pointer-events: none; white-space: nowrap;
}
.no-star-label b { display: none; font-family: var(--font-display); font-size: .78rem; font-weight: 600; color: #fff; letter-spacing: .01em; }
.no-star-label i { font-style: normal; font-family: var(--font-quran); font-size: 1rem; line-height: 1.5; color: var(--no-ink-soft); text-shadow: 0 1px 6px rgba(5, 8, 34, .9); }
.no-star.is-lit .no-star-label i { color: var(--no-gold-hi); }
.no-star.is-selected .no-star-label, .no-star:hover .no-star-label, .no-star:focus-visible .no-star-label {
    padding: 2px 10px 3px; border-radius: 12px; background: rgba(8, 10, 40, .78); box-shadow: inset 0 0 0 1px rgba(255, 217, 138, .45);
}
.no-star.is-selected .no-star-label b, .no-star:hover .no-star-label b, .no-star:focus-visible .no-star-label b { display: block; }
.no-star.is-selected .no-star-label i { color: var(--no-gold-hi); }
.no-star.is-selected, .no-star:hover, .no-star:focus-visible { z-index: 3; }

.no-field-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 6px 4px 0; color: var(--no-ink-soft); font-weight: 700; }
.no-field-caption b { font-family: var(--font-display); color: #fff; font-size: 1.05rem; }
.no-field-lit { margin-inline-start: auto; color: var(--no-gold); }
.no-sky-note { margin: 8px 4px 0; font-size: .85rem; color: var(--no-ink-faint); }

/* ---------- The telescope ---------- */
.no-scope {
    position: relative; isolation: isolate; border-radius: var(--radius-l); padding: clamp(14px, 2vw, 22px); color: var(--no-ink);
    background:
        radial-gradient(70% 40% at 50% 0%, rgba(255, 217, 138, .14), transparent 70%),
        linear-gradient(180deg, var(--no-mid), var(--no-top) 45%, var(--no-top));
    box-shadow: var(--shadow-l), inset 0 0 0 1.5px var(--no-edge);
}
.no-scope-kicker { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; letter-spacing: .04em; color: var(--no-gold); }
.no-scope-kicker .k-ico { width: 22px; height: 22px; }
.no-lens { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto 14px; }
.no-lens-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.no-lens-ring line { stroke: rgba(255, 231, 168, .55); stroke-width: 1.2; }
.no-lens-rim { fill: none; stroke: rgba(255, 217, 138, .75); stroke-width: 3; filter: drop-shadow(0 0 8px rgba(255, 217, 138, .45)); }
.no-lens-view {
    position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12%;
    background: radial-gradient(circle at 50% 40%, #2C3488, #141A55 55%, #070A26);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08), inset 0 0 40px rgba(0, 0, 0, .55), 0 0 60px -10px rgba(255, 210, 120, .35);
}
.no-lens-view::before { content: ""; position: absolute; inset: 0; z-index: -1; background-size: 140px 120px; opacity: .5; }
.no-lens-view::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, transparent 49.6%, rgba(255, 231, 168, .12) 50%, transparent 50.4%), linear-gradient(0deg, transparent 49.6%, rgba(255, 231, 168, .12) 50%, transparent 50.4%);
}
.no-lens.is-focusing .no-lens-view > * { animation: no-focus .8s var(--ease-soft); }
@keyframes no-focus { from { opacity: 0; filter: blur(6px); transform: scale(.94); } to { opacity: 1; filter: none; transform: none; } }
.no-lens-no { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--no-gold); }
:root[dir="rtl"] .no-lens-no { letter-spacing: 0; }
.no-lens-ar {
    margin: 10px 0 0; font-family: var(--font-quran); font-size: clamp(2.3rem, 4.6vw, 3.1rem); line-height: 1.75; color: var(--no-gold-hi);
    text-shadow: 0 0 22px rgba(255, 217, 138, .55), 0 0 2px rgba(255, 240, 200, .8);
}
.no-lens-tr { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #fff; }
.no-lens-status { margin-top: 6px; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: rgba(255, 255, 255, .1); color: var(--no-ink-soft); }
.no-lens-status.is-lit { background: rgba(255, 217, 138, .2); color: var(--no-gold-hi); }
.no-lens-status.is-due { background: rgba(195, 177, 255, .22); color: #EDE6FF; }
.no-scope.is-lit .no-lens-rim { stroke: var(--no-gold); stroke-width: 4; }

.no-scope-body { display: grid; gap: 12px; }
.no-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 2px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--no-gold); }
:root[dir="rtl"] .no-label { letter-spacing: 0; }
.no-mean { text-align: center; }
.no-mean .no-label { justify-content: center; }
.no-mean p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 1.65rem); line-height: 1.2; color: #fff; }
.no-listen-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; }
.no-voice { font-size: .8rem; font-weight: 700; color: var(--no-ink-faint); }
.no-explain, .no-quran, .no-reflect, .no-activity {
    padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--no-line);
}
.no-explain p:last-child { margin: 0; font-family: var(--font-read); font-size: 1.04rem; line-height: 1.5; color: var(--no-ink); }
.no-quran h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1rem; color: var(--no-gold); }
.no-quran h3 .k-ico { width: 22px; height: 22px; }
.no-quiet { margin: 0; color: var(--no-ink-faint); font-weight: 700; }
.no-loading::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-inline-start: 8px; border-radius: 50%; background: var(--no-gold); animation: no-twinkle 1s ease-in-out infinite; }
.no-error .k-btn { margin-inline-start: 8px; }
.no-verse { margin: 0; }
.no-verse + .no-verse { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--no-line); }
.no-verse-ar { margin: 0; font-family: var(--font-quran); font-size: 1.45rem; line-height: 2.05; color: var(--no-gold-hi); text-align: start; }
.no-verse-tr { margin: 4px 0 2px; font-family: var(--font-read); font-size: .98rem; line-height: 1.45; color: var(--no-ink); }
.no-verse figcaption { font-size: .8rem; font-weight: 700; color: var(--no-ink-faint); }
.no-verse cite { font-style: normal; color: var(--no-ink-soft); }
.no-verse-more { margin-top: 10px; }
.no-verse-more > summary, .no-reflect > summary { cursor: pointer; font-weight: 800; color: var(--no-ink-soft); list-style-position: inside; }
.no-verse-more[open] > summary { margin-bottom: 10px; }
.no-reflect > summary { display: flex; align-items: center; gap: 8px; color: var(--no-ink); }
.no-reflect > summary::-webkit-details-marker { display: none; }
.no-reflect > summary::after { content: "+"; margin-inline-start: auto; font-size: 1.3rem; line-height: 1; color: var(--no-gold); }
.no-reflect[open] > summary::after { content: "−"; }
.no-reflect > summary .k-ico { width: 24px; height: 24px; }
.no-reflect p { margin: 8px 0 0; font-family: var(--font-read); line-height: 1.5; color: var(--no-ink-soft); }
.no-activity { display: flex; align-items: center; gap: 12px; background: linear-gradient(120deg, rgba(255, 217, 138, .14), rgba(255, 255, 255, .04)); }
.no-activity b { color: var(--no-gold); font-size: .82rem; letter-spacing: .03em; }
.no-activity p { margin: 0; font-weight: 700; color: #fff; }
.no-activity-star { flex: none; width: 36px; height: 36px; color: var(--no-gold); }
.no-activity-star svg { width: 100%; height: 100%; fill: currentColor; animation: no-spin 30s linear infinite; }
.no-scope-actions { display: flex; align-items: center; justify-content: center; gap: 10px; }
.no-step {
    flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
    background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--no-edge); display: grid; place-items: center;
    transition: background .2s, transform .3s var(--ease-bounce);
}
.no-step:hover { background: rgba(255, 255, 255, .18); transform: scale(1.06); }
.no-step:focus-visible { outline: 3px solid var(--no-gold); outline-offset: 2px; }
.no-step svg { width: 22px; height: 22px; }
.no-light { flex: 1 1 auto; justify-content: center; max-width: 260px; }
.no-more { justify-self: center; font-weight: 700; font-size: .92rem; color: var(--no-ink-soft); }
:root .no-scope .k-link { color: var(--no-ink-soft); }

/* ---------- Star practice ---------- */
.no-play-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 4px 4px 10px; }
.no-play-head .k-section-title { margin: 0; }
.no-play-head .no-sky-hint { color: var(--ink-faint); }
.no-play-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.no-game {
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 4px 12px;
    padding: 14px; border: 0; border-radius: 24px; cursor: pointer; text-align: start; font: inherit; color: var(--no-card-ink);
    background: var(--no-card); box-shadow: var(--shadow-s), inset 0 0 0 1.5px var(--line); backdrop-filter: blur(10px);
    transition: transform .3s var(--ease-bounce), box-shadow .3s;
}
.no-game:hover { transform: translateY(-3px); box-shadow: var(--shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--grape) 40%, transparent); }
.no-game:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; }
.no-game-art {
    grid-row: 1 / span 2; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
    background: linear-gradient(160deg, var(--no-mid), var(--no-top)); box-shadow: inset 0 0 0 1px var(--no-edge);
}
.no-game-art svg { width: 48px; height: 48px; }
.no-ga-ring { fill: none; stroke: rgba(205, 195, 255, .4); stroke-width: 2; }
.no-ga-fill { fill: var(--no-gold); }
.no-ga-dim { fill: rgba(255, 255, 255, .45); }
.no-ga-line { fill: none; stroke: rgba(255, 217, 138, .75); stroke-width: 2.5; stroke-linecap: round; }
.no-game-text { display: grid; gap: 2px; min-width: 0; grid-row: 1 / span 2; }
.no-game-text b { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.15; }
.no-game-text small { color: var(--ink-soft); font-size: .9rem; line-height: 1.3; }
.no-go { position: absolute; top: 12px; inset-inline-end: 12px; width: 18px; height: 18px; color: var(--ink-faint); }
.no-review {
    grid-column: 1 / -1; padding: 14px 16px; border-radius: 24px; background: var(--no-card); box-shadow: var(--shadow-s), inset 0 0 0 1.5px var(--line);
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center;
}
.no-review h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.05rem; }
.no-review h3 .k-ico { width: 24px; height: 24px; }
.no-review-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.no-review-list:empty { display: none; }
.no-review-empty, .no-review-note { margin: 0; color: var(--ink-soft); font-weight: 600; }
.no-review-note { grid-column: 1 / -1; font-size: .85rem; color: var(--ink-faint); }
.no-review-item {
    display: inline-flex; align-items: center; gap: 8px; padding-block: 4px 4px; padding-inline: 12px 6px; border: 0; border-radius: 999px; cursor: pointer; font: inherit;
    background: linear-gradient(135deg, var(--no-mid), var(--no-top)); color: #fff; box-shadow: inset 0 0 0 1px rgba(195, 177, 255, .5);
}
.no-review-ar { font-family: var(--font-quran); font-size: 1.1rem; color: var(--no-gold-hi); }
.no-review-tr { font-weight: 700; font-size: .85rem; }
.no-review-go { padding: 2px 10px; border-radius: 999px; background: var(--no-lilac); color: #231C5C; font-weight: 800; font-size: .8rem; }
.no-review-item:focus-visible { outline: 3px solid var(--grape); outline-offset: 2px; }

.no-status-line { margin: 0; text-align: center; color: var(--ink-soft); font-weight: 700; }
.no[data-state="ready"] [data-state-loading] { display: none; }
.no-status-line--error { color: var(--coral-deep); }
.no-grownups { margin-top: 4px; }
.no-grownups-link { margin: 0; text-align: center; }

/* ---------- The practice dialog: a little window onto the night sky ---------- */
.k-dialog.no-dialog, :root:not([data-theme="dark"]) .k-dialog.no-dialog {
    width: min(620px, calc(100vw - 24px)); color: var(--no-ink);
    background:
        radial-gradient(70% 50% at 50% 0%, rgba(255, 217, 138, .16), transparent 70%),
        linear-gradient(180deg, var(--no-mid), var(--no-top));
    box-shadow: inset 0 0 0 1.5px var(--no-edge), var(--shadow-l);
}
.no-dialog .k-dialog-close {
    width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.5rem; line-height: 1; color: #fff;
    background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px var(--no-edge);
}
.no-dialog .k-dialog-close:hover { background: rgba(255, 255, 255, .2); }
.no-dialog .k-dialog-close:focus-visible { outline: 3px solid var(--no-gold); outline-offset: 2px; }
.no-dialog-body { padding: 26px clamp(16px, 4vw, 30px) 24px; text-align: center; }
.no-g-head h2 { margin: 0 0 4px; font-size: 1.5rem; color: #fff; }
.no-g-round { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 12px; font-weight: 700; color: var(--no-ink-faint); font-size: .88rem; }
.no-g-dots { display: inline-flex; gap: 6px; }
.no-g-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.no-g-dots i.is-done { background: var(--no-gold); box-shadow: 0 0 6px rgba(255, 217, 138, .8); }
.no-g-dots i.is-now { background: #fff; }
.no-g-ask { display: grid; justify-items: center; gap: 6px; margin-bottom: 14px; }
.no-g-play {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer; font: inherit;
    font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #231C5C;
    background: radial-gradient(circle at 30% 30%, var(--no-gold-hi), var(--no-gold) 60%, var(--no-gold-deep));
    box-shadow: 0 0 0 8px rgba(255, 217, 138, .14), 0 0 40px rgba(255, 217, 138, .45);
}
.no-g-play[aria-pressed="true"] { animation: no-pulse 1.4s ease-in-out infinite; }
@keyframes no-pulse { 0%, 100% { box-shadow: 0 0 0 8px rgba(255, 217, 138, .14), 0 0 40px rgba(255, 217, 138, .45); } 50% { box-shadow: 0 0 0 16px rgba(255, 217, 138, .06), 0 0 50px rgba(255, 217, 138, .6); } }
.no-g-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.no-g-play .k-ico { width: 26px; height: 26px; }
.no-g-voice { margin: 0; font-size: .78rem; font-weight: 700; color: var(--no-ink-faint); }
.no-g-q, .no-g-help { margin: 4px 0 0; font-weight: 800; font-size: 1.05rem; color: #fff; }
.no-g-help { margin-bottom: 12px; }
.no-g-ar { font-family: var(--font-quran); font-size: 1.7rem; line-height: 1.5; color: var(--no-gold-hi); }
.no-g-ar--big { margin: 0; font-size: clamp(2.6rem, 8vw, 3.4rem); text-shadow: 0 0 22px rgba(255, 217, 138, .55); }
.no-g-tr { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--no-ink-soft); }
.no-g-bigstar {
    width: 46px; height: 46px; background: rgba(255, 255, 255, .35);
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    transition: background .5s, transform .6s var(--ease-bounce), filter .5s;
}
.no-g-bigstar.is-lit { background: var(--no-gold); transform: scale(1.25) rotate(18deg); filter: drop-shadow(0 0 14px rgba(255, 217, 138, .9)); }
.no-g-options { display: grid; gap: 10px; }
.no-g-options--names { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.no-g-option, .no-g-tile {
    display: grid; justify-items: center; gap: 0; min-height: 56px; padding: 10px 12px; border: 0; border-radius: 18px; cursor: pointer; font: inherit;
    font-weight: 700; font-size: 1.05rem; color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px var(--no-line);
    transition: background .2s, box-shadow .2s, transform .25s var(--ease-bounce);
}
.no-g-option:hover:not([disabled]), .no-g-tile:hover:not([disabled]) { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.no-g-option:focus-visible, .no-g-tile:focus-visible { outline: 3px solid var(--no-gold); outline-offset: 2px; }
.no-g-option.is-right, .no-g-tile.is-matched { background: rgba(255, 217, 138, .22); box-shadow: inset 0 0 0 2px var(--no-gold), 0 0 22px rgba(255, 217, 138, .35); }
.no-g-option.is-wrong { opacity: .45; }
.no-g-tile.is-wrong { animation: no-nudge .5s; box-shadow: inset 0 0 0 2px rgba(255, 160, 150, .7); }
@keyframes no-nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.no-g-option[disabled], .no-g-tile[disabled] { cursor: default; }
.no-g-tile[aria-pressed="true"] { background: rgba(195, 177, 255, .25); box-shadow: inset 0 0 0 2px var(--no-lilac), 0 0 18px rgba(195, 177, 255, .4); }
.no-g-match { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.no-g-col { display: grid; gap: 8px; align-content: start; }
.no-g-tile .no-g-ar { font-size: 1.5rem; }
.no-g-tile .no-g-tr { font-size: .85rem; }
.no-g-tile--meaning { align-content: center; font-size: .98rem; }
.no-g-feedback { min-height: 1.5em; margin: 12px 0 0; font-weight: 800; }
.no-g-feedback.is-good { color: var(--no-gold-hi); }
.no-g-feedback.is-try { color: #FFD2C8; }
.no-g-next { margin-top: 12px; }
.no-g-finish { display: grid; justify-items: center; gap: 8px; }
.no-g-stars .k-stars { transform: scale(1.4); margin: 8px 0; }
.no-g-line { margin: 0; font-weight: 800; font-size: 1.15rem; color: #fff; }
.no-g-saved { margin: 0; color: var(--no-ink-faint); font-weight: 700; font-size: .9rem; }
.no-g-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.no-dialog .k-btn--ghost { --bi: #fff; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
    .no { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); }
    .no-chart { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .no-play-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 979px) {
    .no { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "sky" "scope" "play" "foot"; }
    .no-play-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .no-hero { grid-template-columns: minmax(0, 1fr); }
    .no-hero-art { max-width: 420px; justify-self: center; width: 100%; margin-top: -10px; }
    .no-hero-text { padding-bottom: 0; }
    .no-hero-art > svg:first-child { overflow: hidden; }
}
@media (max-width: 720px) {
    .no-chart { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; margin-inline: -4px; padding-inline: 4px; scrollbar-width: thin; }
    .no-plate { flex: 0 0 74px; scroll-snap-align: start; }
    .no-star { width: 40px; height: 40px; margin-block-start: -20px; margin-inline-start: -20px; }
    .no-star-label { display: none; }
    .no-star.is-selected .no-star-label { display: flex; }
    .no-play-grid { grid-template-columns: minmax(0, 1fr); }
    .no-review { grid-template-columns: minmax(0, 1fr); }
    .no-g-options--names { grid-template-columns: minmax(0, 1fr); }
    .no-hero h1 { font-size: 2rem; }
    .no-stat { padding: 6px 12px; }
    .no-stat b { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .no-dust, .no-shoot, .no-beam, .no-star-core, .no-star-glow, .no-star.is-due::before, .no-activity-star svg,
    .no-lens.is-focusing .no-lens-view > *, .no-field.is-arriving .no-field-sky, .no-g-play[aria-pressed="true"], .no-loading::after {
        animation: none !important;
    }
    .no-shoot { display: none; }
    .no-star-core, .no-star-glow, .no-g-bigstar, .no-plate, .no-game, .no-step { transition: none; }
}
