/* The Arabic Reading Adventure's games (js/games/reading-kit.js and its five engines) and the Quran island
   (Views/Reading/FirstQuran). Clay letter sculptures that float, glowing stepping stones, speakers that pulse while
   they play, and a builder you drop letters and marks into. Big touch targets; logical properties for RTL; every
   movement stops under reduced motion. */

.c-lilac { --t: #8D72F0; --td: #5B3FD0; --ts: color-mix(in srgb, #8D72F0 18%, var(--paper)); }

/* ---------- the round card ---------- */
.rd-card {
    position: relative; overflow: hidden;
    background:
        radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--t, var(--grape)) 16%, transparent), transparent 70%),
        var(--paper);
}
.rd-card::before {
    /* A faint eight-point star lattice behind the board. */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 6l6 16 16 6-16 6-6 16-6-16-16-6 16-6z' fill='none' stroke='%238D72F0' stroke-opacity='.09' stroke-width='1.5'/%3E%3C/svg%3E");
}
.rd-card > * { position: relative; }
.rd-question { margin: 0 0 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.2; color: var(--ink); text-align: center; }
.rd-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; margin-bottom: 18px; }
.rd-body { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.rd-feedback .rd-right-line { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.rd-voice { margin: 12px 0 0; text-align: center; font-size: .8rem; font-weight: 600; color: var(--ink-faint); }
.rd-ar { font-family: var(--font-arabic); }
.rd-ar--inline { font-family: var(--font-arabic); font-weight: 700; font-size: 1.5em; line-height: 1; color: var(--td, var(--grape-deep)); vertical-align: -.12em; }
.rd-tr { font-weight: 700; color: var(--ink-soft); }
.rd-en { font-family: var(--font-read); color: var(--ink-soft); }

/* ---------- the floating letter sculpture ---------- */
.rd-sculpt {
    position: relative; display: inline-grid; place-items: center; min-width: clamp(130px, 22vw, 190px); min-height: clamp(130px, 22vw, 190px);
    padding: 10px 22px 26px; border-radius: 40px;
    background: radial-gradient(70% 55% at 50% 36%, #fff, color-mix(in srgb, var(--t, var(--grape)) 18%, #fff));
    box-shadow: inset 0 -8px 0 color-mix(in srgb, var(--t, var(--grape)) 24%, transparent), 0 26px 30px -22px color-mix(in srgb, var(--td, var(--grape-deep)) 70%, transparent);
    animation: rd-float 4.2s ease-in-out infinite;
}
.rd-sculpt::after {
    /* Its shadow on the ground, shrinking as it lifts. */
    content: ""; position: absolute; inset-inline: 22%; bottom: -16px; height: 12px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(60, 40, 140, .28), transparent); animation: rd-shadow 4.2s ease-in-out infinite;
}
.rd-sculpt-glyph {
    /* Solid ink so the small marks (a fathah, a sukoon) stay crisp; a white rim and a soft shadow make it stand up. */
    font-family: var(--font-arabic); font-weight: 700; font-size: clamp(4.2rem, 11vw, 7rem); line-height: 1.25; white-space: nowrap;
    color: var(--td, var(--grape-deep));
    text-shadow: 0 3px 0 #fff, 0 10px 14px color-mix(in srgb, var(--td, var(--grape-deep)) 35%, transparent);
}
.rd-sculpt--word .rd-sculpt-glyph { font-size: clamp(3rem, 8vw, 5rem); }
.rd-sculpt--slot { outline: 4px dashed color-mix(in srgb, var(--t, var(--grape)) 40%, transparent); outline-offset: -12px; }
.rd-sculpt.is-landed { outline-color: transparent; animation: rd-land .6s var(--ease-bounce), rd-float 4.2s 0.6s ease-in-out infinite; }
@keyframes rd-float { 50% { transform: translateY(-8px) rotate(-1deg); } }
@keyframes rd-shadow { 50% { transform: scaleX(.8); opacity: .7; } }
@keyframes rd-land { 0% { transform: scale(.9); } 60% { transform: scale(1.08); } }

/* ---------- speakers ---------- */
.rd-speaker {
    position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
    color: var(--ink-soft); font: 600 .85rem var(--font-display);
}
.rd-speaker svg {
    width: 64px; height: 64px; padding: 16px; border-radius: 50%; color: #fff;
    background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .6) 0 10%, transparent 38%), linear-gradient(180deg, var(--coral), var(--coral-deep));
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .14), 0 10px 18px -8px var(--coral-deep);
    transition: transform .25s var(--ease-bounce);
}
.rd-speaker--big svg { width: 92px; height: 92px; padding: 22px; }
.rd-speaker:hover svg, .rd-speaker:focus-visible svg { transform: scale(1.08); }
.rd-speaker:focus-visible { outline: none; }
.rd-speaker:focus-visible svg { box-shadow: 0 0 0 4px var(--paper), 0 0 0 8px var(--grape); }
.rd-speaker-ring { position: absolute; top: 0; inset-inline-start: 50%; translate: -50% 0; width: 64px; height: 64px; border-radius: 50%; pointer-events: none; }
:root[dir="rtl"] .rd-speaker-ring { translate: 50% 0; }
.rd-speaker--big .rd-speaker-ring { width: 92px; height: 92px; }
.rd-speaker.is-playing .rd-speaker-ring { box-shadow: 0 0 0 0 color-mix(in srgb, var(--coral) 60%, transparent); animation: rd-ring 1s ease-out infinite; }
@keyframes rd-ring { to { box-shadow: 0 0 0 22px transparent; } }
.rd-speaker-label { max-width: 120px; text-align: center; line-height: 1.15; }

/* ---------- stage 1: stepping stones ---------- */
.rd-stones { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 3vw, 30px); padding: 6px 0 4px; }
.rd-stone {
    --a: color-mix(in srgb, var(--t) 45%, #fff); --b: var(--t);
    position: relative; display: grid; place-items: center; width: clamp(96px, 18vw, 132px); aspect-ratio: 1; min-height: 0; padding: 0 0 .12em;
    border: 0; border-radius: 50% 50% 46% 46%; justify-content: center;
    background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .9) 0 8%, rgba(255, 255, 255, 0) 32%), linear-gradient(180deg, var(--a), var(--b));
    box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .12), inset 0 4px 0 rgba(255, 255, 255, .5), 0 14px 20px -10px var(--td);
}
.rd-stone:nth-child(2n) { translate: 0 10px; }
.rd-stone-glyph { font-family: var(--font-arabic); font-weight: 700; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: #fff; text-shadow: 0 3px 0 color-mix(in srgb, var(--td) 70%, #000 10%); }
.rd-stone-glow { position: absolute; inset: -10px; border-radius: inherit; pointer-events: none; opacity: 0; box-shadow: 0 0 0 6px #fff, 0 0 30px 12px #FFD45C; transition: opacity .3s; }
.rd-stone.is-right { background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .9) 0 8%, rgba(255, 255, 255, 0) 32%), linear-gradient(180deg, #FFE38F, #F5A31E); border: 0; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .1), 0 14px 22px -10px #C77F00; }
.rd-stone.is-right .rd-stone-glow { opacity: 1; animation: rd-glow 1.4s ease-in-out infinite alternate; }
.rd-stone.is-soft-wrong { background: linear-gradient(180deg, #E9E4F6, #C9C0E6); border: 0; }
.rd-stone.is-soft-wrong .rd-stone-glyph { color: #fff; opacity: .7; }
@keyframes rd-glow { to { box-shadow: 0 0 0 6px #fff, 0 0 44px 18px #FFC84A; } }

/* ---------- answer grids ---------- */
.rd-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rd-options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rd-options--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rd-options .k-option { flex-direction: column; justify-content: center; gap: 6px; min-height: 120px; text-align: center; }

/* ---------- stage 2: letter forms ---------- */
.rd-form-glyph { font-family: var(--font-arabic); font-weight: 700; font-size: clamp(2.8rem, 7vw, 4rem); line-height: 1.1; color: var(--td); }
.rd-form-label { font-family: var(--font-display); font-size: 1.05rem; }
.rd-form-show { display: contents; }
.rd-bar { display: inline-flex; gap: 6px; padding: 6px 9px; border-radius: 999px; background: color-mix(in srgb, var(--t) 14%, var(--paper)); }
.rd-bar { flex-direction: row-reverse; } /* a word is read from the right */
.rd-bar i { width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--t) 30%, var(--paper)); }
.rd-bar i.is-on { background: var(--td); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t) 40%, transparent); }
.rd-hands { position: relative; display: inline-flex; width: 74px; height: 40px; }
.rd-hands i { position: absolute; top: 4px; width: 32px; height: 32px; border-radius: 50%; border: 6px solid var(--td); transition: inset .3s var(--ease-bounce); }
.rd-hands i:first-child { inset-inline-start: 0; }
.rd-hands i:last-child { inset-inline-end: 0; border-color: var(--t); }
.rd-hands.is-joined i:first-child { inset-inline-start: 10px; }
.rd-hands.is-joined i:last-child { inset-inline-end: 10px; }

/* ---------- stages 3 and 4: vowels and marks ---------- */
.rd-mark-glyph { font-family: var(--font-arabic); font-weight: 700; font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 1.2; color: var(--td); }
.rd-mark-name { font-family: var(--font-display); font-size: 1.15rem; }
.rd-mark-says { font-family: var(--font-read); font-weight: 600; font-size: .85rem; color: var(--ink-soft); line-height: 1.2; }

.rd-speakers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rd-speaker-cell {
    display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px 14px; border-radius: 26px;
    background: color-mix(in srgb, var(--coral) 9%, var(--paper)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--coral) 22%, transparent);
}
.rd-pick.k-option { min-height: 52px; width: 100%; justify-content: center; padding: 8px 12px; font-family: var(--font-display); }

.rd-letters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rd-letter.k-option { min-width: 84px; min-height: 96px; justify-content: center; padding: 6px 14px; }
.rd-letter-glyph { font-family: var(--font-arabic); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.2rem); line-height: 1.3; }

/* ---------- stage 5: the syllable builder ---------- */
.rd-bench { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; }
.rd-forge {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-width: clamp(200px, 36vw, 300px); min-height: 170px; padding: 8px 22px; border-radius: 34px;
    background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--grape) 6%, var(--paper)) 0 14px, var(--paper) 14px 28px);
    box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--grape) 30%, transparent);
    transition: box-shadow .2s, transform .25s var(--ease-bounce);
}
.rd-forge.is-over { transform: scale(1.04); box-shadow: inset 0 0 0 4px var(--grape), 0 0 0 8px color-mix(in srgb, var(--grape) 18%, transparent); }
.rd-forge.is-made { background: radial-gradient(circle, #FFF6D8, #FFE7A0); box-shadow: inset 0 0 0 4px #F5B530, 0 0 34px 6px rgba(255, 200, 74, .55); }
.rd-forge-text { font-family: var(--font-arabic); font-weight: 700; font-size: clamp(3.4rem, 9vw, 5.2rem); line-height: 1.35; color: var(--grape-deep); white-space: nowrap; }
.rd-forge-fixed { color: color-mix(in srgb, var(--ink) 34%, transparent); }
.rd-forge-made:not(.has-letter) { color: color-mix(in srgb, var(--grape) 45%, transparent); }
.rd-forge-hint { min-height: 1.2em; font: 600 .9rem var(--font-display); color: var(--ink-soft); }
.rd-tiles-label { margin: 6px 0 0; text-align: center; font: 700 .8rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.rd-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rd-tile {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 84px; min-height: 84px; padding: 4px 12px;
    border: 0; border-radius: 22px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
    background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--grape) 10%, #fff)); color: var(--grape-deep);
    box-shadow: inset 0 -5px 0 color-mix(in srgb, var(--grape) 22%, transparent), 0 8px 14px -8px rgba(76, 52, 150, .6);
    transition: transform .2s var(--ease-bounce), opacity .2s;
}
.rd-tile--mark { color: var(--coral-deep); background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--coral) 12%, #fff)); }
.rd-tile small { font: 600 .72rem var(--font-display); color: #554B86; max-width: 110px; line-height: 1.1; }
.rd-tile-glyph { font-family: var(--font-arabic); font-weight: 700; font-size: 2.3rem; line-height: 1.25; }
.rd-tile:hover:not([disabled]) { transform: translateY(-3px) rotate(-2deg); }
.rd-tile:focus-visible { outline: 4px solid var(--grape); outline-offset: 3px; }
.rd-tile.is-placed { opacity: .38; transform: scale(.92); }
.rd-tile[disabled] { cursor: default; }
.rd-tile.is-soft-wrong { opacity: .3; animation: k-wiggle .4s; }
.rd-ghost { position: fixed; z-index: 90; pointer-events: none; translate: -50% -50%; transform: rotate(-6deg) scale(1.1); box-shadow: 0 22px 30px -10px rgba(76, 52, 150, .6); }

/* ---------- stages 6 and 7: words and phrases ---------- */
.rd-word-card.k-option { min-height: 110px; }
.rd-word-glyph { font-family: var(--font-arabic); font-weight: 700; font-size: clamp(2.2rem, 5.6vw, 3rem); line-height: 1.4; color: var(--ink); }
.rd-phrase { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; padding: 14px 18px; border-radius: 28px; background: color-mix(in srgb, var(--sun) 16%, var(--paper)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--sun) 40%, transparent); }
.rd-word { padding: 2px 14px; border: 0; border-radius: 18px; background: transparent; cursor: pointer; transition: background .2s, transform .2s var(--ease-bounce); }
.rd-word:hover, .rd-word:focus-visible { background: rgba(255, 255, 255, .8); }
.rd-word:focus-visible { outline: 3px solid var(--grape); }
.rd-word.is-reading, .rd-slot.is-reading { background: #FFE38F; transform: translateY(-4px); box-shadow: 0 10px 16px -10px #C77F00; }
.rd-slot { display: grid; place-items: center; min-width: 120px; min-height: 92px; padding: 0 12px; border-radius: 20px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--sun-deep) 35%, transparent); transition: background .2s, transform .2s; }
.rd-slot-empty { font-size: 2.4rem; color: color-mix(in srgb, var(--sun-deep) 50%, transparent); }
.rd-slot.is-filled { background: #fff; box-shadow: inset 0 0 0 3px var(--leaf); animation: rd-land .45s var(--ease-bounce); }
.rd-tile--word { min-width: 120px; }
.rd-help-note { margin: 0; text-align: center; font: 600 .85rem var(--font-display); color: var(--ink-faint); flex-basis: 100%; }

/* ---------- phones ---------- */
@media (max-width: 620px) {
    .rd-options--3, .rd-options--4, .rd-speakers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rd-speakers .rd-speaker-cell:last-child:nth-child(odd), .rd-options--3 .k-option:last-child { grid-column: 1 / -1; }
    .rd-options .k-option { min-height: 100px; }
    .rd-stone { width: clamp(84px, 26vw, 110px); }
    .rd-forge { min-height: 140px; }
    .rd-tile { min-width: 72px; min-height: 76px; }
}

/* ================= The Quran island (Views/Reading/FirstQuran) ================= */
.fq-hero {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); align-items: center; gap: 10px 28px;
    padding: clamp(18px, 3vw, 32px); margin-bottom: 18px; border-radius: var(--radius-l);
    background: radial-gradient(80% 90% at 85% 30%, #FFF1C2, transparent 60%), linear-gradient(150deg, #FFF8EA, #F3ECFF);
    box-shadow: var(--shadow);
}
:root[data-theme="dark"] .fq-hero { background: radial-gradient(80% 90% at 85% 30%, rgba(255, 200, 74, .18), transparent 60%), linear-gradient(150deg, #2E2870, #24205A); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .fq-hero { background: radial-gradient(80% 90% at 85% 30%, rgba(255, 200, 74, .18), transparent 60%), linear-gradient(150deg, #2E2870, #24205A); }
}
.fq-hero h1 { margin: 2px 0 6px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.fq-hero p { margin: 0 0 10px; font-family: var(--font-read); font-size: 1.05rem; color: var(--ink-soft); }
.fq-hero-step { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--sun); color: #5A3D00; font: 700 .8rem var(--font-display); }
.fq-note { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .7); font-weight: 600; font-size: .92rem !important; }
:root[data-theme="dark"] .fq-note { background: rgba(255, 255, 255, .08); }
.fq-note .k-ico { flex: none; width: 26px; height: 26px; }
.fq-hero-art { position: relative; display: grid; place-items: center; }
.fq-hero-art img { width: min(320px, 100%); height: auto; animation: rd-float 6s ease-in-out infinite; }
.fq-hero-glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 210, 90, .65), transparent); filter: blur(6px); }
.fq-hero-book { position: absolute; top: 4%; inset-inline-end: 12%; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 24px; background: linear-gradient(180deg, #FFE38F, #F5A31E); box-shadow: 0 14px 22px -10px #C77F00; color: #fff; animation: rd-float 4s ease-in-out infinite; }
.fq-hero-book .k-ico { width: 44px; height: 44px; }

.fq-jump { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px; scrollbar-width: thin; }
.fq-jump-link {
    flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 112px; padding: 10px 14px; border-radius: 20px; text-decoration: none;
    background: var(--paper); color: var(--ink); box-shadow: 0 5px 0 color-mix(in srgb, var(--sun) 45%, var(--paper)), var(--shadow-s);
    transition: transform .2s var(--ease-bounce);
}
.fq-jump-link:hover, .fq-jump-link:focus-visible { transform: translateY(-3px); }
.fq-jump-link [lang="ar"] { font-family: var(--font-quran); font-size: 1.35rem; line-height: 1.3; }
.fq-jump-link small { font: 600 .78rem var(--font-display); color: var(--ink-soft); }

.fq-surahs { display: grid; gap: 22px; }
.fq-surah { scroll-margin-top: calc(var(--top-h) + 16px); padding: clamp(16px, 3vw, 28px); border-radius: var(--radius-l); background: var(--paper); box-shadow: var(--shadow); }
.fq-surah-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.fq-surah-head h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.fq-surah-ar { font-family: var(--font-quran); font-weight: 400; color: var(--sun-deep); font-size: 1.3em; }
.fq-hunt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fq-hunt-label { font: 700 .85rem var(--font-display); color: var(--ink-faint); margin-inline-end: 4px; }
.fq-chip {
    position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding-block: 4px 4px; padding-inline: 8px 14px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--ts); color: var(--ink); font: 700 .95rem var(--font-display); box-shadow: 0 4px 0 color-mix(in srgb, var(--t) 40%, var(--paper));
    transition: transform .2s var(--ease-bounce);
}
.fq-chip-glyph { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; font-family: var(--font-arabic); font-size: 1.5rem; line-height: 1; color: var(--td); }
.fq-chip[aria-pressed="true"] { background: var(--t); color: #fff; transform: translateY(-2px); }
.fq-chip:focus-visible { outline: 3px solid var(--grape); outline-offset: 2px; }
.fq-chip-tick { display: none; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.fq-chip.is-done .fq-chip-tick { display: inline-block; }
.fq-hunt-status { min-height: 1.4em; margin: 10px 0 6px; font: 600 1rem var(--font-display); color: var(--grape-deep); }
:root[data-theme="dark"] .fq-hunt-status { color: #D9CCFF; }

.fq-verses { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fq-verse { padding: 6px 16px 8px; border-radius: 22px; background: color-mix(in srgb, var(--sun) 8%, var(--paper)); }
.fq-ayah { margin: 0; font-family: var(--font-quran); font-size: clamp(1.9rem, 4.4vw, 2.6rem); line-height: 1.95; text-align: start; }
.fq-word { display: inline; padding: 0 .12em; margin: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; line-height: inherit; cursor: default; transition: background .25s, box-shadow .25s; }
.fq-word[disabled] { color: var(--ink); opacity: 1; }
.is-hunting .fq-word:not([disabled]) { cursor: pointer; }
.is-hunting .fq-word:not([disabled]):hover { background: color-mix(in srgb, var(--grape) 10%, transparent); }
.fq-word:focus-visible { outline: 3px solid var(--grape); outline-offset: 1px; }
.fq-word.is-found { background: #FFE38F; box-shadow: 0 0 0 3px #FFC84A, 0 0 18px 2px rgba(255, 200, 74, .7); color: #4A3200; animation: rd-land .45s var(--ease-bounce); }
.fq-ayah-no { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-inline-start: .2em; border-radius: 50%; vertical-align: middle; font: 700 .42em var(--font-display); color: var(--sun-deep); box-shadow: inset 0 0 0 2px var(--sun); }
.fq-meaning { margin-top: 2px; }
.fq-meaning summary { cursor: pointer; font: 600 .85rem var(--font-display); color: var(--ink-faint); }
.fq-meaning p { margin: 6px 0 2px; font-family: var(--font-read); color: var(--ink-soft); }
.fq-source { font-size: .8rem; }
.fq-back { text-align: center; margin: 22px 0 0; }

@media (max-width: 720px) {
    .fq-hero { grid-template-columns: 1fr; }
    .fq-hero-art { order: -1; }
    .fq-hero-art img { width: min(220px, 70%); }
}

@media (prefers-reduced-motion: reduce) {
    .rd-sculpt, .rd-sculpt::after, .rd-sculpt.is-landed, .rd-stone.is-right .rd-stone-glow, .rd-speaker.is-playing .rd-speaker-ring,
    .rd-slot.is-filled, .fq-hero-art img, .fq-hero-book, .fq-word.is-found, .rd-tile.is-soft-wrong { animation: none; }
    .rd-hands i, .rd-tile, .rd-forge, .rd-speaker svg { transition: none; }
}
