:root, [data-theme="dusk"] {
  --bg:#000000; --bg2:#0A0A0C; --card:#111113; --line:#2C2C31; --text:#F2EDE2; --muted:#B4B4BC;
  --accent:#F3B562; --on-accent:#1A1206; --link:#F3B562; --lantern:#F3B562; --dim:#5A5A62; --warn:#E39A8E; --skyline:#2E2E35;
  --p-fajr:#8FB8E8; --p-dhuhr:#F6E7B4; --p-asr:#F3B562; --p-maghrib:#E8794F; --p-isha:#9B8CF0; --danger:#E39A8E; --focus:#F6E7B4;
}
[data-theme="dawn"] {
  --bg:#F6E4DC; --bg2:#EDD3CB; --card:rgba(255,250,244,.78); --line:rgba(58,42,50,.2); --text:#3A2A32; --muted:#6B5560;
  --accent:#5C6B3F; --on-accent:#FFF8EC; --link:#4F5C36; --lantern:#E8A33D; --dim:#B79AA0; --warn:#A33B30; --skyline:#7A5C7C;
  --p-fajr:#4F86C6; --p-dhuhr:#C4A13A; --p-asr:#D4912B; --p-maghrib:#C85A2E; --p-isha:#7560CE; --danger:#A33B30; --focus:#3A2A32;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); min-height: 100%; }
body { margin: 0; min-height: 100vh; color: var(--text); background: linear-gradient(var(--bg), var(--bg2)) fixed; font: 400 16px/1.5 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3, .big, .ar, .count { font-family: Amiri, "Noto Naskh Arabic", Georgia, serif; }
h1 { font-size: 2.1rem; line-height: 1.15; margin: .4rem 0 .5rem; }
h2 { font-size: 1.35rem; margin: 0 0 .5rem; } h3 { font-size: 1.1rem; margin: 1rem 0 .4rem; }
p { margin: .4rem 0; } a { color: var(--link); }
.muted, .hint { color: var(--muted); } .hint { font-size: .875rem; } .center { text-align: center; } .lead { font-size: 1.15rem; }
.eyebrow { margin: 0; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.shell { max-width: 560px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) 20px calc(96px + env(safe-area-inset-bottom)); outline: none; }
.shell.ob { padding-bottom: calc(24px + env(safe-area-inset-bottom)); min-height: 100vh; display: flex; flex-direction: column; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 12px 0; backdrop-filter: blur(10px); }
.card.inner { background: transparent; margin: 8px 0; padding: 12px; } .card.total { text-align: center; } .big { display: block; font-size: 3.2rem; color: var(--link); line-height: 1.1; }
.note { background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; margin: 12px 0; font-size: .95rem; }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .stack { display: grid; gap: 10px; margin: 12px 0; }
.btn { min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 600 1rem Figtree, system-ui, sans-serif; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; } .btn.small { min-height: 44px; padding: 0 14px; font-size: .9rem; }
.btn.danger { background: var(--danger); color: #fff; border-color: transparent; } .btn.danger-ghost { color: var(--danger); border-color: var(--danger); }
.btn:disabled, .mini:disabled { opacity: .45; cursor: default; } .filebtn { cursor: pointer; }
.link { background: none; border: 0; padding: 12px 4px; min-height: 44px; color: var(--link); text-decoration: underline; font: inherit; cursor: pointer; }
.icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 1.3rem; cursor: pointer; } .icon-sp { width: 44px; }
.choice { text-align: start; width: 100%; min-height: 56px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; display: grid; gap: 2px; }
.choice span { color: var(--muted); font-size: .9rem; } .choice[aria-checked="true"] { border: 2px solid var(--accent); } .choice[aria-checked="true"] strong { color: var(--link); }
.seg { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin: 12px 0; }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.seg button[aria-checked="true"], .seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.field { margin: 12px 0; } .field label { display: block; margin-bottom: 4px; font-weight: 600; }
input, select { width: 100%; min-height: 48px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; }
input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); } .check { display: flex; gap: 10px; align-items: center; min-height: 44px; margin: 6px 0; }
input[type="number"] { max-width: 140px; } .row2 input[type="number"], .field input[type="number"] { max-width: none; }
.error { color: var(--danger); font-weight: 600; } progress { width: 100%; height: 10px; accent-color: var(--accent); } .goal { margin: 10px 0; }
.ob-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dots { display: flex; gap: 4px; } .dots i { width: 14px; height: 4px; border-radius: 2px; background: var(--line); } .dots i.on { background: var(--accent); }
.ob-body { flex: 1; } .ob-foot { display: grid; gap: 10px; margin-top: 20px; } .ob-foot .btn { width: 100%; }
.welcome { text-align: center; padding: 24px 0; } .hero-lantern { width: 180px; height: 200px; } .welcome h1 { font-size: 2.6rem; }
.fieldset, fieldset.card { min-inline-size: 0; } fieldset.card legend { font-weight: 600; padding: 0 6px; } .prow { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; align-items: center; margin: 6px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.chipbtn { flex: 1 1 28%; min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 600 .9rem Figtree, sans-serif; display: grid; place-items: center; cursor: pointer; }
.chipbtn span { font: 700 1.3rem Amiri, serif; } .chipbtn[aria-pressed="true"] { border: 2px solid var(--accent); }
.home-grid { display: grid; gap: 8px; } .scene { overflow: visible; display: block; width: 100%; max-width: 420px; margin: 8px auto; }
.q { margin: 16px 0 6px; } .lanterns { display: flex; justify-content: space-between; gap: 4px; }
.lcol { display: grid; justify-items: center; gap: 4px; flex: 1; } .lcol.faded .lantern { opacity: .6; }
.lantern { background: none; border: 0; padding: 0; color: var(--text); display: grid; justify-items: center; min-width: 56px; min-height: 130px; cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.plantern { overflow: visible; } .lantern .ar { font-size: 1.3rem; line-height: 1; margin-top: 2px; } .lantern .nm { font-size: .75rem; color: var(--muted); }
.count { margin-top: 4px; min-width: 40px; height: 32px; border-radius: 16px; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 1.15rem; font-weight: 700; }
.left { font-size: .75rem; color: var(--muted); text-align: center; } .mini { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 1.2rem; cursor: pointer; }
.foot { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 20px; } .plain { list-style: none; padding: 0; margin: 6px 0; } .plain li { padding: 6px 0; } .ms li.on { font-weight: 600; } .off { opacity: .55; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; } .stats dt { font-size: .8rem; color: var(--muted); } .stats dd { margin: 0; font: 700 1.3rem Amiri, serif; }
.pill { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; cursor: pointer; } .pill[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; font-weight: 600; }
.btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .prowx { min-height: 52px; }
.mnav h2 { margin: 0; } .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0; } .wd { text-align: center; font-size: .75rem; color: var(--muted); }
.day { min-height: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); display: grid; align-content: space-between; justify-items: center; padding: 4px 0; font: inherit; cursor: pointer; }
.day b { font-size: .7rem; color: var(--link); } .day.empty { border: 0; background: none; } .day.today { border: 2px solid var(--accent); } .day.sel { background: var(--accent); color: var(--on-accent); } .day.sel b { color: var(--on-accent); } .day:disabled { opacity: .35; cursor: default; }
.dots { display: flex; gap: 3px; } .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } .dot.ok { background: #5FAF7A; } .dot.miss { background: var(--danger); }
.sec h2 { margin: 0; } .sec-h { width: 100%; min-height: 48px; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; color: var(--text); font: 700 1.25rem Amiri, serif; cursor: pointer; padding: 0; }
.sec-b { padding-top: 6px; } .faq summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; } details.card summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.tabs { position: fixed; inset-inline: 0; bottom: 0; display: flex; justify-content: center; gap: 0; padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-top: 1px solid var(--line); z-index: 5; }
.tabs button { flex: 1; max-width: 140px; min-height: 60px; background: none; border: 0; color: var(--muted); font: 400 .95rem Figtree, sans-serif; cursor: pointer; } .tabs button[aria-current="page"] { color: var(--link); font-weight: 700; box-shadow: inset 0 3px 0 var(--accent); }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: grid; place-items: end center; z-index: 20; padding: 12px; }
.sheet { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 20px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; } .sheet .row { justify-content: flex-end; margin-top: 12px; }
.toast-wrap { position: fixed; inset-inline: 0; bottom: calc(76px + env(safe-area-inset-bottom)); display: flex; justify-content: center; z-index: 30; pointer-events: none; }
.toast { pointer-events: auto; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 14px; display: flex; gap: 12px; align-items: center; max-width: 92vw; } .toast .link { color: var(--bg); padding: 0 4px; }
@media (min-width: 900px) { .shell { max-width: 980px; } .home-grid { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; } .shell.ob { max-width: 560px; } }
@media (prefers-reduced-motion: no-preference) { .lantern .plantern { transition: transform .2s; } .lantern:active .plantern { transform: scale(1.06); } }
@media (forced-colors: active) { .choice[aria-checked="true"], .chipbtn[aria-pressed="true"] { outline: 2px solid Highlight; } }

.more-n { margin: 6px 0; } .more-n .big { display: inline; font-size: 2.2rem; } .row.end { justify-content: flex-end; align-self: end; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 50; background: var(--bg); color: var(--text); padding: 12px 16px; border-radius: 10px; border: 2px solid var(--focus); } .skip:focus { top: 8px; }
.code { font: 700 1.2rem/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; user-select: all; }

/* Intro slides, badges, weekly board */
.btn.pill { border-radius: 999px; min-height: 52px; }
.intro .ob-foot { padding-bottom: 8px; }
.intro-body { display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; min-height: 70vh; }
.intro-art { width: min(320px, 80%); height: auto; margin: auto; max-height: 300px; }
.intro-copy { padding: 8px 0 16px; } .intro-copy h1 { font-size: 2rem; } .intro-copy .lead { color: var(--muted); }
.intro-dots i { width: 6px; height: 6px; border-radius: 50%; } .intro-dots i.wide { width: 24px; border-radius: 3px; }
.link { background: none; border: 0; color: var(--muted); min-height: 44px; min-width: 44px; padding: 0 8px; font: inherit; cursor: pointer; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: .85rem; opacity: .62; }
.badge.on { opacity: 1; } .badge svg { width: 48px; height: 48px; }
.board { padding: 0; list-style: none; } .board li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.rank { display: inline-block; min-width: 1.6em; font-weight: 700; color: var(--lantern); }

/* Calendar heat map and excused days */
.day.h1 { background: color-mix(in srgb, var(--lantern) 24%, var(--card)); }
.day.h2 { background: color-mix(in srgb, var(--lantern) 52%, var(--card)); }
.day.h3 { background: color-mix(in srgb, var(--lantern) 88%, var(--card)); color: var(--on-accent); } .day.h3 b { color: var(--on-accent); }
.day.ex { border-style: dashed; border-color: var(--muted); } .day .exm { font-size: .7rem; color: var(--muted); } .day.h3 .exm, .day.sel .exm { color: var(--on-accent); }
.switch { inline-size: 56px; block-size: 44px; border: 0; background: none; padding: 6px 0; cursor: pointer; flex: none; }
.switch i { display: block; inline-size: 52px; block-size: 32px; border-radius: 16px; border: 2px solid var(--muted); background: var(--card); position: relative; }
.switch i::after { content: ""; position: absolute; inset-block-start: 4px; inset-inline-start: 4px; inline-size: 20px; block-size: 20px; border-radius: 50%; background: var(--text); }
.switch[aria-pressed="true"] i { background: var(--accent); border-color: var(--accent); } .switch[aria-pressed="true"] i::after { inset-inline-start: 24px; background: var(--on-accent); }

/* Habit-first home */
.hrows { padding-block: 4px; } .hrow { display: flex; align-items: center; gap: 10px; padding-block: 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .hrow:last-child { border-bottom: 0; }
.hrow .hl svg { inline-size: 40px; block-size: 48px; } .hn { display: grid; flex: 1; min-inline-size: 80px; } .hn .ar { font-size: 1.3rem; line-height: 1.1; } .hn .nm { font-size: .85rem; color: var(--muted); }
.habit-count { text-align: center; } .habit-count progress { inline-size: 100%; margin-block: 8px; } .habit-count .row { justify-content: center; }
.card.arrived { border-color: var(--accent); }

/* Intro: real app moments */
.intro-stage { flex: 1; display: flex; align-items: center; justify-content: center; inline-size: 100%; position: relative; padding-block: 12px; }
.intro-stage::before { content: ""; position: absolute; inline-size: 300px; block-size: 300px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--lantern) 16%, transparent) 0%, transparent 70%); }
.icard { position: relative; inline-size: min(100%, 360px); background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.55); text-align: start; animation: icard .5s ease-out; }
.icard.bare { background: none; border: 0; box-shadow: none; padding: 0; } .icard.bare .scene { inline-size: 100%; }
@keyframes icard { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .icard { animation: none; } }
.icap { margin: 0 0 12px; font-size: .75rem; letter-spacing: .14em; color: var(--muted); text-align: center; }
.irow5 { display: flex; justify-content: space-between; gap: 2px; } .i5 { display: grid; justify-items: center; gap: 2px; flex: 1; min-inline-size: 0; }
.i5l svg { inline-size: 40px; block-size: 48px; } .i5 .ar { font-size: 1.05rem; } .i5n { font-size: .72rem; color: var(--muted); }
.i5c { min-inline-size: 30px; padding-inline: 6px; block-size: 24px; border-radius: 12px; border: 1px solid var(--pc); color: var(--text); font-size: .8rem; display: grid; place-items: center; margin-top: 2px; } .i5left { font-size: .68rem; color: var(--muted); }
.ireg { display: grid; grid-template-columns: 4.5rem 1fr auto; align-items: center; gap: 8px; padding-block: 7px; border-bottom: 1px solid var(--line); } .ireg:last-child { border-bottom: 0; } .ireg .ar { font-size: 1.1rem; }
.ichip { min-inline-size: 72px; text-align: center; padding: 5px 10px; border-radius: 14px; border: 1px solid var(--line); color: var(--muted); font-size: .8rem; } .ichip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.iheat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; } .iheat span { aspect-ratio: 1; border-radius: 8px; background: var(--card2, #1B1B1E); }
.iheat .h1 { background: color-mix(in srgb, var(--lantern) 30%, var(--card)); } .iheat .h2 { background: color-mix(in srgb, var(--lantern) 60%, var(--card)); } .iheat .h3 { background: var(--lantern); }
.ipills { display: flex; justify-content: center; gap: 8px; margin-top: 14px; } .ipills span { min-inline-size: 52px; block-size: 32px; border-radius: 16px; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; color: var(--muted); } .ipills .on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ibadges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .ib { display: grid; justify-items: center; gap: 6px; font-size: .8rem; text-align: center; color: var(--muted); }
.ib svg { inline-size: 50px; block-size: 50px; } .ib circle { fill: var(--card); stroke: var(--line); stroke-width: 2; } .ib path { fill: var(--line); } .ib.on { color: var(--text); } .ib.on circle { stroke: var(--lantern); fill: color-mix(in srgb, var(--lantern) 14%, var(--card)); } .ib.on path { fill: var(--lantern); }
.iboard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); margin-block: 6px; } .iboard .rk { inline-size: 1.2em; color: var(--muted); font-weight: 700; } .iboard .nm { flex: 1; font-weight: 600; } .iboard .n { font-weight: 700; }
.iboard.me { border-color: color-mix(in srgb, var(--lantern) 50%, var(--line)); background: color-mix(in srgb, var(--lantern) 10%, var(--card)); }
.itrust { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; } .itrust li { display: flex; gap: 12px; align-items: flex-start; } .itrust .ck { inline-size: 26px; block-size: 26px; border-radius: 13px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.intro-copy h1 em { font-style: italic; color: var(--accent); }

.more-pick { inline-size: 100%; min-block-size: 52px; font-size: 1.05rem; }

/* Other Qadha menu on the tab bar */

/* Learn to pray */
.learn-card progress { inline-size: 100%; } .learn-card .row { justify-content: flex-end; } .big-ar { font-size: 2rem; margin: 0; }
.pose-wrap { display: grid; place-items: center; padding-block: 8px; background: radial-gradient(circle, color-mix(in srgb, var(--lantern) 14%, transparent) 0%, transparent 65%); }
.posture { inline-size: 170px; block-size: auto; } .pose-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .pose-row figure { margin: 0; } .pose-row figcaption { font-size: .78rem; color: var(--muted); }

/* Daily prayers: week grid (design C) */
.rw-grid { display: grid; grid-template-columns: 3.4rem repeat(7, minmax(0, 1fr)); gap: 6px; align-items: center; margin-block: 8px; }
.rw-d { text-align: center; font-size: .75rem; color: var(--muted); } .rw-d.now { color: var(--accent); font-weight: 700; } .rw-p .ar { font-size: 1.05rem; }
.rw-c { block-size: 28px; border-radius: 9px 9px 6px 6px; border: 1px dashed var(--line); } .rw-c.now { outline: 1px solid var(--accent); outline-offset: 2px; }
.rw-c.on_time { background: var(--pc); border: 0; box-shadow: 0 0 8px color-mix(in srgb, var(--pc) 45%, transparent); } .rw-c.late { border: 2px solid var(--pc); background: color-mix(in srgb, var(--pc) 15%, transparent); }
.rw-c.missed { border: 1px solid var(--line); background: var(--line); opacity: .7; }
.rw-today { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rw-b { min-block-size: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); display: grid; place-content: center; gap: 2px; font: inherit; cursor: pointer; padding: 4px; }
.rw-b .nm { font-size: .78rem; font-weight: 700; } .rw-b .st { font-size: .72rem; color: var(--muted); }
.rw-b.on_time { background: var(--pc); border-color: var(--pc); color: #141008; } .rw-b.on_time .st { color: #141008; } .rw-b.late { border: 2px solid var(--pc); } .rw-b.missed { background: var(--line); }

.sky { inline-size: 100%; block-size: auto; background: radial-gradient(circle at 75% 15%, color-mix(in srgb, var(--lantern) 10%, var(--card)), var(--bg) 75%); border-radius: 14px; }
.card textarea { inline-size: 100%; min-block-size: 64px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; padding: 10px 12px; }

/* Learn: prayer guide */
.subnav { margin-block: 4px 14px; } .subnav button { font-weight: 600; }
.stepno { display: inline-grid; place-items: center; inline-size: 34px; block-size: 34px; border-radius: 17px; background: var(--accent); color: var(--on-accent); font: 700 1rem Figtree, sans-serif; vertical-align: middle; margin-inline-end: 6px; }
.learn-card h2 { font-size: 1.5rem; } .learn-card h3 { margin-block: 18px 6px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: .78rem; font-weight: 700; line-height: 1.4; white-space: nowrap; border: 1.5px solid var(--accent); }
.chip.ob { background: var(--accent); color: var(--on-accent); } .chip.rec { color: var(--link); background: transparent; } .chip.prec { color: var(--link); border-style: dashed; } .chip.no { border-color: var(--warn); color: var(--warn); }
.recite { background: color-mix(in srgb, var(--lantern) 7%, var(--bg)); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-block: 10px; }
.recite .ar { font: 400 1.65rem/2 Amiri, serif; margin: 0; text-align: right; } .recite .tr { margin: 8px 0 4px; font-style: italic; color: var(--link); } .recite .en { margin: 0; color: var(--muted); font-size: .95rem; }
.notes li, .others li { padding-block: 8px; border-top: 1px solid var(--line); } .notes li:first-child, .others li:first-child { border-top: 0; }
.mine { border-inline-start: 3px solid var(--accent); padding-inline-start: 12px; margin-block: 12px; } .mine p:last-child { margin-bottom: 0; }
.gnote { background: var(--card); border-radius: 12px; padding: 10px 12px; }
.src a { overflow-wrap: anywhere; } .steplist { margin: 8px 0 0; padding-inline-start: 26px; } .steplist .link { padding-block: 6px; text-align: start; } .steplist [aria-current="step"] { font-weight: 700; color: var(--link); }
.learn-card .pose-wrap { margin-block: 8px; }
/* Settings, iPhone style */
.set-gh { margin: 22px 4px 8px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: Figtree, sans-serif; font-weight: 600; }
.set-list { border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; inline-size: 100%; min-height: 60px; padding: 10px 16px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.set-row:first-child { border-top: 0; } .set-row > span:first-child { display: grid; gap: 2px; } .set-row .muted { font-size: .88rem; } .set-row .chev { font-size: 1.6rem; color: var(--muted); }
.set-row:hover, .set-row:focus-visible { background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.backlink { background: none; border: 0; color: var(--link); font: 600 1rem Figtree, sans-serif; min-height: 44px; padding: 0 4px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; } .backlink span { font-size: 1.6rem; line-height: 1; }
.setpage h1 { margin-top: 4px; }
/* Journal */
.journal li { padding-block: 10px; border-top: 1px solid var(--line); } .journal li:first-child { border-top: 0; } .journal p { margin: 6px 0 0; white-space: pre-wrap; }
.bal li { padding-block: 6px; }
/* Home: on wide screens the scene and daily prayers sit on the left, the lanterns and tools on the right */
@media (min-width: 900px) { .home-grid { grid-template-columns: 1fr 1fr; grid-template-areas: 'scene main' 'reg tools' 'refl tools'; gap: 0 32px; } .hg-scene { grid-area: scene; } .hg-main { grid-area: main; } .hg-reg { grid-area: reg; } .hg-tools { grid-area: tools; } .hg-refl { grid-area: refl; } .home-more { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; } .home-more .foot { grid-column: 1 / -1; } }
.vsep { font-size: .55em; color: var(--lantern); vertical-align: middle; margin-inline: 4px; }
.seg.wrap { flex-wrap: wrap; } .seg.wrap button { flex: 1 1 auto; padding-inline: 12px; }
/* Other Qadha: list and item pages */
.otile { display: flex; align-items: center; gap: 12px; inline-size: 100%; min-height: 72px; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.otile:first-child { border-top: 0; } .otile:hover, .otile:focus-visible { background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.otxt { flex: 1; display: grid; gap: 4px; } .otxt .muted { font-size: .9rem; } .chev { font-size: 1.6rem; color: var(--muted); }
.odot { inline-size: 14px; block-size: 18px; border-radius: 7px 7px 4px 4px; flex: none; box-shadow: 0 0 10px currentColor; }
.obar { display: block; block-size: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .obar span { display: block; block-size: 100%; border-radius: 3px; }
.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kind { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; text-align: start; cursor: pointer; min-height: 44px; }
.kind[aria-pressed="true"] { border-color: var(--accent); } .kind .muted { font-size: .85rem; }
.ohero { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; }
@media (max-width: 420px) { .ohero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ohero .row { justify-content: center; } }
.oring { position: relative; inline-size: 140px; block-size: 140px; } .oring svg { inline-size: 100%; block-size: 100%; } .oring circle:last-child { transition: stroke-dasharray .6s ease; }
.oring-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .oring-in .big { font: 700 2.2rem/1 Amiri, serif; }
.several { align-items: end; margin-top: 8px; } .opage-h { font-size: 1.9rem; margin: 2px 0 12px; }
.calc .frows { margin: 12px 0; max-block-size: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.frow { display: grid; grid-template-columns: 1fr auto 2.5em; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); } .frow:first-child { border-top: 0; }
.frow > span:first-child { display: grid; } .frow .muted { font-size: .82rem; } .fctl { display: flex; gap: 6px; align-items: center; } .fctl select { min-height: 44px; } .fctl input { inline-size: 4.5em; min-height: 44px; }
.fn { text-align: end; font-weight: 700; } .flabel { display: block; font-weight: 600; margin-bottom: 6px; }
.cres { text-align: center; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--lantern) 10%, var(--bg)); margin-block: 12px; } .cres .big { font: 700 2.6rem/1 Amiri, serif; margin: 0 0 6px; color: var(--lantern); }
.sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 420px) { .frow { grid-template-columns: 1fr 2.5em; } .fctl { grid-column: 1 / -1; grid-row: 2; } }
/* Badges: unique art, next up, level */
.badges .lvl { display: flex; gap: 14px; align-items: center; } .badges .lvl > div { flex: 1; } .badges .lvl h2 { margin: 0; } .badges .lvl progress { inline-size: 100%; }
.lvl-n { flex: none; display: grid; place-items: center; inline-size: 64px; block-size: 64px; border-radius: 50%; font: 700 1.8rem/1 Amiri, serif; color: var(--on-accent); background: radial-gradient(circle at 35% 30%, #FFE3A8, var(--lantern)); box-shadow: 0 0 18px color-mix(in srgb, var(--lantern) 55%, transparent); }
.bfam { margin: 20px 0 10px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.bart { inline-size: 100%; block-size: 100%; display: block; }
.bart-wrap { display: block; inline-size: 56px; block-size: 56px; }
.badge { opacity: 1; } .badge:not(.on) .bart-wrap { filter: grayscale(1) brightness(.45); opacity: .7; } .badge:not(.on) > span:nth-child(2) { color: var(--muted); }
.badge.on .bart-wrap { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--lantern) 45%, transparent)); }
.bnext-list { display: grid; gap: 10px; } .bnext { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 16px; background: color-mix(in srgb, var(--lantern) 6%, var(--card)); border: 1px solid var(--line); }
.bnext .bart-wrap { inline-size: 60px; block-size: 60px; flex: none; } .bart-wrap.next { filter: saturate(.7) brightness(.85); animation: bpulse 2.6s ease-in-out infinite; }
.bn-txt { flex: 1; display: grid; gap: 4px; } .bn-txt .muted { font-size: .9rem; }
@keyframes bpulse { 50% { filter: saturate(1) brightness(1); transform: scale(1.04); } }
.badge.fresh .bart-wrap { animation: bpop .9s cubic-bezier(.2,1.6,.4,1); }
@keyframes bpop { 0% { transform: scale(.3) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.celebrate { position: fixed; inset-inline: 16px; inset-block-start: 16px; z-index: 60; max-inline-size: 420px; margin-inline: auto; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--lantern); box-shadow: 0 10px 40px rgba(0,0,0,.45), 0 0 30px color-mix(in srgb, var(--lantern) 30%, transparent); } .celebrate.enter { animation: cin .5s cubic-bezier(.2,1.4,.4,1); }
.celebrate .bart-wrap { inline-size: 64px; block-size: 64px; flex: none; } .celebrate.enter .bart-wrap { animation: bpop .9s cubic-bezier(.2,1.6,.4,1); } .celebrate > div { flex: 1; display: grid; gap: 2px; } .celebrate .eyebrow { margin: 0; }
@keyframes cin { from { transform: translateY(-30px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bart-wrap.next, .badge.fresh .bart-wrap, .celebrate, .celebrate .bart-wrap { animation: none; } }
/* Prayer figures */
.posture { inline-size: 190px; } .posture polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* Prayer mat: deep red field, gold double border, mihrab arch toward the qibla, diamond motifs, fringe */
.pf-mat-shadow { fill: #000; opacity: .28; } [data-theme="dawn"] .pf-mat-shadow { opacity: .14; }
.pf-mat-field { fill: #6E2433; } .pf-mat-mihrab { fill: #8A3343; stroke: #D4AF6A; stroke-width: .6; }
.pf-mat-border { fill: none; stroke: #D4AF6A; stroke-width: .9; } .pf-mat-line { fill: none; stroke: #D4AF6A; stroke-width: .35; opacity: .75; }
.pf-mat-lamp, .pf-mat-motif { fill: #E9CF92; } .pf-mat-motif { opacity: .7; }
.pf-mat-fringe { fill: none; stroke: #EADFC8; stroke-width: .45; stroke-linecap: round; }
.pf-leg { stroke: #6E6252; } .pf-footl { stroke: #D2A27A; } .pf-skin { fill: #D9A97F; } .pf-skin-l { stroke: #D9A97F; }
.pf-robe { stroke: #FAF7F0; } .pf-sleeve { stroke: #F2EDE3; } .pf-capl { stroke: #FFFFFF; } .pf-edge { stroke: #CFC7B8; }
.pf-scarf { stroke: #FFFFFF; } .pf-scarf-c { fill: #FFFFFF; stroke: #E7C48A; stroke-width: 1.6; } .pf-trim { stroke: #E7C48A; } .pf-pearl { fill: #FFF6E2; stroke: #D9AE63; stroke-width: .7; } .pf-bloom { fill: #F1C987; stroke: #D39E4E; stroke-width: .6; } .pf-lace { fill: none; stroke: #E7C48A; stroke-width: .9; stroke-dasharray: 1.4 1.8; }
.fig-f .pf-robe { stroke: #FFFDF8; } .fig-f .pf-sleeve { stroke: #FFFDF8; } .fig-f .pf-leg { stroke: #EFE7DA; }
[data-theme="dawn"] .pf-robe { stroke: #FFFFFF; } [data-theme="dawn"] .pf-edge { stroke: #B9AF9C; } [data-theme="dawn"] .pf-leg { stroke: #8A7B66; }
/* Tasbih counter */
.tasbih .seg { margin-block: 10px; }
.tb-btn { position: relative; display: grid; place-items: center; inline-size: min(240px, 70vw); aspect-ratio: 1; margin: 6px auto 10px; border-radius: 50%; border: 0; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--lantern) 16%, var(--card)), var(--card) 70%); color: var(--text); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tb-btn svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; } .tb-btn svg circle:last-child { transition: stroke-dasharray .25s ease; }
.tb-n { font: 700 3.6rem/1 Amiri, serif; } .tb-sub { position: absolute; inset-block-end: 26%; font-size: .9rem; color: var(--muted); }
.tb-btn:active { transform: scale(.97); }
/* Session: steppers and focus mode */
.session-start { display: grid; gap: 12px; } .session-start .row { gap: 8px; }
.rw-today.sess { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; } .sb { display: grid; gap: 4px; justify-items: stretch; } .sb .rw-b { inline-size: 100%; }
.sstep { display: flex; gap: 4px; justify-content: center; }
.step { min-inline-size: 44px; min-block-size: 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 700 1.1rem Figtree, sans-serif; cursor: pointer; }
.focus { position: fixed; inset: 0; z-index: 50; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--lantern) 12%, #000) 0%, #000 60%); color: #F2EDE2; overflow-y: auto; padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); } .focus.enter { animation: fin .35s ease; } @keyframes fin { from { opacity: 0; } }
.focus-in { max-inline-size: 640px; margin-inline: auto; display: grid; gap: 16px; }
.focus-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .focus-top .eyebrow { margin: 0; } .focus-meta { margin: 2px 0 0; font: 700 1.4rem Amiri, serif; } .focus-top .row { gap: 6px; }
.focus-hint, .focus-foot { color: #B4B4BC; font-size: .92rem; text-align: center; margin: 0; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.fgrid .rw-b { min-block-size: 120px; inline-size: 100%; border-radius: 22px; display: grid; place-content: center; gap: 4px; } .fgrid .rw-b .ar { font: 700 1.8rem/1.2 Amiri, serif; } .fgrid .rw-b .nm { font-size: 1rem; } .fgrid .sstep .step { min-inline-size: 56px; min-block-size: 44px; }
.focus .card { background: rgba(255,255,255,.03); }
.qclock { font: 700 3rem/1 Amiri, serif; text-align: center; margin: 10px 0; color: var(--lantern); } .quran .seg { margin-block: 10px; } .qread { margin-top: 12px; }
.focus .quran, .focus .tasbih { padding: 4px; }
/* Intro cards that mirror the app */
.icard .rw-grid { margin-top: 4px; }
.ifocus { background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--lantern) 14%, #000), #000 70%); } .ifclock { font: 700 1.3rem Amiri, serif; color: var(--lantern); }
.ifgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block: 10px; } .ifgrid .rw-b { min-block-size: 64px; display: grid; place-content: center; border-radius: 16px; } .ifgrid .ar { font: 700 1.15rem Amiri, serif; } .ifgrid .st { font-size: .75rem; }
.iftabs { display: flex; gap: 6px; flex-wrap: wrap; } .iftabs span { padding: 6px 10px; border-radius: 14px; border: 1px solid var(--line); font-size: .78rem; } .iftabs .on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.iother { display: flex; gap: 12px; align-items: center; padding-block: 10px; border-top: 1px solid var(--line); } .iother:first-of-type { border-top: 0; }
.ib .bart-wrap { inline-size: 54px; block-size: 54px; } .ib:not(.on) .bart-wrap { filter: grayscale(1) brightness(.5); } .icard .bnext { margin-top: 12px; }
.ilearn-row { display: flex; justify-content: center; gap: 4px; } .ilearn-row .posture { inline-size: 130px; } .ilearn .ar { font: 400 1.7rem/1.6 Amiri, serif; text-align: center; margin: 0; } .ilearn .tr { text-align: center; color: var(--link); font-style: italic; margin: 0; }
.several { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; } .several .field { flex: 1 1 140px; margin: 0; } .several .btn { min-height: 44px; }
.posture.pair { inline-size: min(100%, 300px); }
.ilearn-row .posture.pair { inline-size: 100%; } .motion .posture.pair { display: block; margin: 8px auto; }
/* Prayer clothes: cream floral chador (women), white thobe and knitted cap (men) */
.pf-skirt { stroke: #E6DCCD; } .pf-skirt-e { stroke: #CDBFAB; }
.pf-cape { stroke: #FBF6EA; } .pf-cape-c { fill: #FBF6EA; }
.pf-scallop { stroke: #D9CBB4; stroke-dasharray: 0.01 3.2; stroke-linecap: round; } .pf-scallop-c { fill: #FBF6EA; stroke: #D9CBB4; stroke-width: 1.8; stroke-dasharray: 0.01 2.6; stroke-linecap: round; }
.posture polyline.pf-scallop { stroke-linejoin: round; }
.pf-fl1 { fill: #C98A9A; } .pf-fl2 { fill: #A77890; } .pf-leaf { fill: #8FA58E; }
.pf-dark { fill: #6A4330; } .pf-dark-l { stroke: #6A4330; } .pf-footd { stroke: #6A4330; }
.pf-knit { stroke: #E3E6EA; stroke-dasharray: 0.01 3; stroke-linecap: round; }
.fig-m .pf-robe, .fig-m .pf-sleeve { stroke: #FCFCFA; } .fig-m .pf-edge { stroke: #CBCFD4; }
/* Prayer figures v4: filled shapes */
.posture polygon { stroke-linejoin: round; }
.pf-thobe { fill: #FCFCFA; stroke: #C9CDD3; stroke-width: .9; } .pf-fold { fill: none; stroke: #D5D8DD; stroke-width: 1; stroke-linecap: round; }
.pf-dark { fill: #5E3B2A; } .pf-dark2 { fill: #4E2F21; } .pf-kufi { stroke: #D3D8DE; stroke-width: .8; }
.pf-skirt { fill: #E8DECF; stroke: #CDBFAB; stroke-width: .9; } .pf-cape { stroke: none; }
.pf-scallop { fill: none; stroke: #E2D4BC; stroke-width: 3.4; stroke-dasharray: .01 3.3; stroke-linecap: round; }
.posture polygon.pf-skin { fill: #D9A97F; }
.pf-outline { fill: none; stroke: #C2C7CE; stroke-width: 2; } .pf-thobe.pf-noline { stroke: none; }
.recite { position: relative; } .say { float: inline-start; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--lantern); background: none; color: var(--lantern); font: 600 .9rem Figtree, sans-serif; cursor: pointer; } .say:hover { background: color-mix(in srgb, var(--lantern) 14%, transparent); } .recite .ar[data-act] { cursor: pointer; }
/* Community links */
.community { margin-block: 18px 6px; text-align: center; } .community .eyebrow { margin-bottom: 8px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; } .socials.big { justify-content: flex-start; margin-block: 10px; }
.social { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; }
.social svg { inline-size: 20px; block-size: 20px; } .social:hover, .social:focus-visible { border-color: var(--lantern); color: var(--lantern); }
/* Discord logo (from the owner's file), drawn in the current text colour so it fits every theme */
.ico-discord { display: inline-block; inline-size: 22px; block-size: 17px; background: currentColor; -webkit-mask: url('../img/discord-white.png') center / contain no-repeat; mask: url('../img/discord-white.png') center / contain no-repeat; flex: none; }
.icon-link .ico-discord { inline-size: 24px; block-size: 18px; }
/* The woman: light skin */ .fig-f polygon.pf-skin { fill: #F3D3BC; stroke: #E2B79A; stroke-width: .6; }

/* Birth month/year question before creating an account */
fieldset.field { border: 0; padding: 0; margin: 0; min-inline-size: 0; } fieldset.field > legend { padding: 0; margin-block-end: 8px; font-weight: 700; }

/* Premium: badge or "Get Premium" at the top of Home, locked session card, Premium page, announcements */
.prem-row { display: flex; justify-content: flex-end; margin-block: 2px 4px; }
.prem-get, .prem-badge { font: 700 14px Figtree, sans-serif; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.prem-get { background: linear-gradient(135deg, #F7C977, #E9A24E); color: #1A1206; border: 0; box-shadow: 0 4px 16px color-mix(in srgb, #F3B562 35%, transparent); }
.prem-off { background: #1A1206; color: #FFE3B0; border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.prem-badge { background: color-mix(in srgb, var(--lantern) 16%, var(--card)); color: var(--lantern); border: 1px solid color-mix(in srgb, var(--lantern) 55%, transparent); }
.session-start.locked { position: relative; }
.lock-badge { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 5px; font: 700 12px Figtree, sans-serif; color: #1A1206; background: var(--lantern); border-radius: 999px; padding: 3px 9px; }
.lock-ico { inline-size: 14px; block-size: 14px; vertical-align: -2px; margin-inline-end: 4px; }
.session-start.locked > div:first-of-type { padding-inline-end: 96px; }
.prem-sheet .prem-feats { padding-inline-start: 20px; line-height: 1.6; } .prem-offer { font-weight: 700; color: var(--lantern); }
.linkish { background: none; border: 0; color: var(--lantern); font: inherit; font-weight: 600; cursor: pointer; padding: 0; min-height: 44px; }
.announce { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; border-color: color-mix(in srgb, var(--lantern) 45%, var(--line)); }
.announce p { margin: 4px 0 0; }

/* Hover (or keyboard focus) on "Get Premium": a short line about what Premium is */
.prem-get[data-tip] { position: relative; }
.prem-get[data-tip]::after { content: attr(data-tip); position: absolute; inset-block-start: calc(100% + 10px); inset-inline-end: 0; inline-size: max-content; max-inline-size: min(300px, 80vw); white-space: normal; text-align: start; background: #1C1C20; color: #F2EDE2; border: 1px solid #3A3A40; border-radius: 12px; padding: 10px 12px; font: 500 13.5px/1.45 Figtree, system-ui, sans-serif; box-shadow: 0 10px 30px #0009; z-index: 30; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s, transform .15s; }
@media (hover: hover) { .prem-get[data-tip]:hover::after { opacity: 1; transform: none; } }
.prem-get[data-tip]:focus-visible::after { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .prem-get[data-tip]::after { transition: none; } }
.prem-pitch { color: var(--muted); }
a.prem-get { text-decoration: none; }

/* Sign in / Create account (top right, and the sign-in box) */
.prem-row { gap: 8px; align-items: center; flex-wrap: wrap; }
.signin-chip { font: 700 14px Figtree, sans-serif; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer; background: transparent; color: var(--text); border: 1px solid var(--line); }
.signin-chip:hover, .signin-chip:focus-visible { border-color: var(--lantern); color: var(--lantern); }
.acct-chip { inline-size: 44px; block-size: 44px; border-radius: 50%; cursor: pointer; font: 700 17px Figtree, sans-serif; color: var(--on-accent); background: var(--accent); border: 2px solid color-mix(in srgb, var(--lantern) 55%, transparent); }
.auth-sheet { max-width: 440px; text-align: start; }
.auth-top { display: flex; justify-content: flex-end; margin: -6px -6px 0 0; } .auth-x { font-size: 1.5rem; line-height: 1; }
.auth-logo { display: block; margin: -24px auto 6px; border-radius: 12px; }
.auth-sheet h2 { text-align: center; margin: 4px 0 2px; } .auth-sub { text-align: center; margin: 0 0 14px; }
.auth-social { display: grid; grid-template-columns: 1fr; gap: 10px; margin-block: 12px 4px; }
.btn.social { inline-size: 100%; justify-content: center; background: var(--card); }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin-block: 10px 2px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-block-start: 1px solid var(--line); }
.auth-form .field { margin: 10px 0; } .opt { float: inline-end; font-weight: 400; font-size: .82rem; color: var(--muted); }
.pw-wrap { position: relative; } .pw-wrap input { padding-inline-end: 72px; }
.pw-toggle { position: absolute; inset-block: 0; inset-inline-end: 4px; min-width: 60px; background: none; border: 0; color: var(--lantern); font: 600 .9rem Figtree, sans-serif; cursor: pointer; }
.auth-forgot { margin: -4px 0 4px; text-align: end; }
.auth-go { inline-size: 100%; justify-content: center; margin-block-start: 8px; }
.auth-switch { text-align: center; margin: 10px 0 0; color: var(--muted); }
.auth-priv { text-align: center; margin-block-start: 14px; }
.auth-sheet .stack { display: grid; gap: 10px; margin-block-start: 12px; }
.auth-sheet .check { display: flex; gap: 8px; align-items: flex-start; } .auth-sheet .check a { color: var(--link); }
.ob-foot .auth-switch { inline-size: 100%; }

/* Demo bar */
.demo-bar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; padding: 8px 16px; background: color-mix(in srgb, var(--lantern) 18%, var(--bg)); border-block-end: 1px solid color-mix(in srgb, var(--lantern) 45%, transparent); color: var(--text); font-size: .92rem; }
.demo-bar p { margin: 0; } .demo-bar strong { color: var(--lantern); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.demo-bar .row { gap: 12px; align-items: center; margin: 0; }

/* Guided tour */
.tour { position: fixed; inset: 0; z-index: 30; }
.tour.no-target { background: rgba(0,0,0,.6); }
.tour-ring { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(0,0,0,.62); outline: 2px solid var(--lantern); outline-offset: 0; pointer-events: none; transition: top .2s, left .2s, width .2s, height .2s; }
.tour-bub { position: fixed; inline-size: min(340px, calc(100vw - 24px)); background: var(--bg); color: var(--text); border: 1px solid color-mix(in srgb, var(--lantern) 55%, var(--line)); border-radius: 18px; padding: 16px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.tour-bub h2 { margin: 2px 0 6px; font-size: 1.25rem; } .tour-bub p { margin: 0 0 10px; } .tour-bub .eyebrow { margin: 0; }
.tour-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .tour-row .row { gap: 8px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .tour-ring { transition: none; } }
@media (max-width: 520px) { .demo-bar { padding: 6px 12px; font-size: .84rem; gap: 6px 10px; } .demo-bar [data-act="tour-start"] { display: none; } .demo-bar .btn.small { min-height: 40px; } }
@media (max-width: 520px) { .demo-bar { flex-wrap: nowrap; } .demo-bar p { flex: 1; min-width: 0; } .demo-bar .row { flex-wrap: nowrap; flex-shrink: 0; } }

/* Ask the team (chat) */
.chat-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.bubble p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me { justify-self: end; border-end-end-radius: 4px; background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.bubble.team { justify-self: start; border-end-start-radius: 4px; border-color: color-mix(in srgb, var(--lantern) 45%, var(--line)); }
.bubble .who { font-size: .8rem; color: var(--muted); font-weight: 600; }
.chat-form textarea { width: 100%; min-height: 96px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; resize: vertical; }
.badge-new { font: 700 .75rem Figtree, sans-serif; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 3px 9px; margin-inline-start: auto; white-space: nowrap; }
.tabs button { position: relative; } .tab-dot { position: absolute; inset-block-start: 8px; inset-inline-end: calc(50% - 26px); inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--lantern); box-shadow: 0 0 0 2px var(--bg); }
.card.soon h2 { margin-top: 2px; }

/* Profile (Account): picture, username, bio */
.profile-box { margin-block: 14px; padding-block-start: 12px; border-block-start: 1px solid var(--line); }
.profile-box h3 { margin: 0 0 2px; }
.profile-row { display: flex; align-items: center; gap: 14px; margin-block: 10px; flex-wrap: wrap; }
.avatar-big { inline-size: 72px; block-size: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 28px Figtree, sans-serif; border: 2px solid color-mix(in srgb, var(--lantern) 55%, transparent); flex-shrink: 0; }
.avatar-big img, .acct-chip .acct-img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.acct-chip { overflow: hidden; padding: 0; }
.profile-box textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; resize: vertical; }

/* The celebration at the mosque (every lantern lit) */
.finale { position: fixed; inset: 0; z-index: 45; background: linear-gradient(#0B0A14, #14101C 55%, #050407); display: grid; overflow: hidden; color: #F2EDE2; }
.finale-art { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.finale-text { position: relative; align-self: start; justify-self: center; text-align: center; max-inline-size: 30rem; padding: max(28px, env(safe-area-inset-top)) 20px 0; animation: fl-in .9s ease 2.9s both; }
.finale-text h2 { font: 700 clamp(2.4rem, 9vw, 3.4rem)/1.05 Amiri, serif; margin: 4px 0 8px; color: #FFE3B0; text-shadow: 0 0 24px rgba(243,181,98,.45); }
.finale-text p { margin: 0 0 10px; color: #F2EDE2; } .finale-text .hint { color: #C9C3B6; font-size: .9rem; } .finale-text .eyebrow { color: #F3B562; }
.finale-text .row { justify-content: center; gap: 10px; margin-block-start: 6px; }
.finale-text .btn.ghost { color: #F2EDE2; border-color: rgba(242,237,226,.4); }
.fl-lan { opacity: 0; transform-box: fill-box; transform-origin: center; animation: fl-pop .7s cubic-bezier(.3,1.6,.5,1) var(--d) both; }
.fl-glow { animation: fl-pulse 3s ease-in-out calc(var(--d) + .7s) infinite; transform-box: fill-box; transform-origin: center; }
.fl-trail { stroke-dasharray: 1; stroke-dashoffset: 1; animation: fl-draw 2.5s ease-in-out .2s forwards; }
.fl-win, .fl-door, .fl-rays { opacity: 0; animation: fl-in 1.2s ease var(--d) forwards; }
.fl-rays { animation: fl-in 1.6s ease var(--d) forwards, fl-pulse 4s ease-in-out 4s infinite; transform-box: fill-box; transform-origin: center; }
.fl-float { opacity: 0; animation: fl-up var(--t) linear var(--d) infinite; }
.finale-card { border-color: color-mix(in srgb, var(--lantern) 55%, var(--line)); }
@keyframes fl-pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes fl-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fl-draw { to { stroke-dashoffset: 0; } }
@keyframes fl-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .8; } }
@keyframes fl-up { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: .9; } 85% { opacity: .7; } 100% { opacity: 0; transform: translateY(-820px) translateX(14px); } }
@media (prefers-reduced-motion: reduce) { .fl-lan, .fl-win, .fl-door, .fl-rays, .finale-text { animation: none; opacity: 1; } .fl-trail { animation: none; stroke-dashoffset: 0; } .fl-float { display: none; } .fl-glow { animation: none; } }
@media (min-aspect-ratio: 3/4) { .finale { grid-template-rows: auto minmax(0, 1fr); } .finale-art { position: relative; inset: auto; min-block-size: 0; } }

/* The neighbourhood (Premium, shared by everyone with Premium) */
.hood { position: fixed; inset: 0; z-index: 40; background: #0B0A14; color: #F2EDE2; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.hood-top { display: flex; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 14px 8px; border-block-end: 1px solid #26252D; }
.hood-top h2 { margin: 0; font-size: 1.15rem; } .hood-top p { margin: 0; font-size: .85rem; } .hood-top > div { flex: 1; min-width: 0; }
.hood-top .muted, .hood .muted { color: #B4B4BC; } .hood-x { font-size: 1.6rem; color: #F2EDE2; }
.hood-top .btn.ghost, .hood .btn.ghost { color: #F2EDE2; border-color: #3A3A42; }
.hood-map { overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #0B0A14; cursor: pointer; touch-action: pan-x pan-y; }
.hood-map svg { display: block; inline-size: 1000px; block-size: auto; max-inline-size: none; }
.hood-map.room { display: grid; place-items: center; } .hood-map.room svg { inline-size: 100%; max-inline-size: 1000px; block-size: auto; max-block-size: 100%; }
.hood-places { display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px; border-block-start: 1px solid #26252D; scrollbar-width: none; }
.hood .chip { flex-shrink: 0; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #3A3A42; background: #15141C; color: #F2EDE2; font: 600 .88rem Figtree, sans-serif; cursor: pointer; }
.hood .chip.on, .hood .chip:hover { border-color: #F3B562; color: #FFE3B0; }
.hood-chat { padding: 8px 14px max(12px, env(safe-area-inset-bottom)); border-block-start: 1px solid #26252D; max-block-size: 42vh; overflow-y: auto; background: #0F0E16; }
.hood-log { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; max-block-size: 22vh; overflow-y: auto; font-size: .93rem; }
.hood-log li { overflow-wrap: anywhere; } .hood-log li.mine strong { color: #FFE3B0; }
.hl-name { background: none; border: 0; padding: 0; color: #F3B562; font: 700 .93rem Figtree, sans-serif; cursor: pointer; text-decoration: underline dotted; min-height: 24px; }
.hood-quick { display: flex; gap: 6px; overflow-x: auto; padding-block: 4px 8px; scrollbar-width: none; }
.hood-form { display: flex; gap: 8px; } .hood-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid #3A3A42; background: #15141C; color: #F2EDE2; font: inherit; }
.hood .hint { color: #9C98A6; font-size: .8rem; margin: 6px 0 0; } .hood .error { color: #F2B8B5; }
.hood-door { margin-block-end: 8px; } .hood-door .choice { inline-size: 100%; background: #15141C; color: #F2EDE2; border-color: #3A3A42; }
.hood-styles { display: flex; gap: 8px; margin-block-start: 8px; flex-wrap: wrap; } .hood-styles .sw { inline-size: 36px; block-size: 36px; border-radius: 50%; border: 2px solid #3A3A42; cursor: pointer; } .hood-styles .sw.on { border-color: #F3B562; box-shadow: 0 0 0 2px #0B0A14, 0 0 0 4px #F3B562; }
.hood-person { position: absolute; inset-inline: 12px; inset-block-end: 12px; z-index: 2; background: #15141C; border: 1px solid #3A3A42; border-radius: 16px; padding: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.hood-person h3 { margin: 0 0 8px; } .hood-report { display: grid; gap: 6px; margin-block-start: 8px; } .hood-report textarea { inline-size: 100%; border-radius: 10px; border: 1px solid #3A3A42; background: #0F0E16; color: #F2EDE2; padding: 8px; font: inherit; }
.hood-msg { display: grid; place-items: center; padding: 24px; text-align: center; gap: 12px; }
.hd-label { fill: #F2EDE2; font: 700 22px Figtree, sans-serif; text-anchor: middle; paint-order: stroke; stroke: #0B0A14; stroke-width: 5px; }
.hd-name { fill: #FFE3B0; font: 700 17px Figtree, sans-serif; text-anchor: middle; paint-order: stroke; stroke: #0B0A14; stroke-width: 5px; }
.hd-sign { fill: #FFE3B0; font: 700 16px Figtree, sans-serif; text-anchor: middle; } .hd-room-name { fill: #FFE3B0; font: 700 34px Amiri, serif; text-anchor: middle; }
.hd-house, .hd-go { cursor: pointer; } .hd-house:hover > rect, .hd-house:focus-visible > rect { stroke: #F3B562; stroke-width: 3px; } .hd-go:focus-visible, .hd-house:focus-visible { outline: none; }
.hd-house.mine .hd-name { fill: #F3B562; }
.hp { transition: transform 600ms linear; pointer-events: none; } .hp-ini { fill: #0B0A14; font: 800 12px Figtree, sans-serif; text-anchor: middle; } .hp-name { fill: #F2EDE2; font: 700 14px Figtree, sans-serif; text-anchor: middle; paint-order: stroke; stroke: #0B0A14; stroke-width: 4px; }
.hp-bub-t { fill: #1A1206; font: 600 14px Figtree, sans-serif; text-anchor: middle; } .hp-bub { animation: hp-bub .25s ease-out both; }
@keyframes hp-bub { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .hood { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr) auto; } .hood-top { grid-column: 1 / -1; } .hood-map { grid-column: 1; grid-row: 2; } .hood-places { grid-column: 1; grid-row: 3; } .hood-chat { grid-column: 2; grid-row: 2 / 4; max-block-size: none; border-inline-start: 1px solid #26252D; border-block-start: 0; display: flex; flex-direction: column; } .hood-log { max-block-size: none; flex: 1; } }
@media (prefers-reduced-motion: reduce) { .hp { transition: none !important; } .hp-bub { animation: none; } }
/* Locked peek for non-Premium */
.hood-lock { position: relative; overflow: hidden; padding: 0; }
.hood-peek { max-block-size: 420px; overflow: hidden; filter: saturate(.85) brightness(.75); } .hood-peek svg { display: block; inline-size: 100%; block-size: auto; }
.hood-lock-text { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 60px 18px 18px; background: linear-gradient(transparent, rgba(11,10,20,.92) 38%); color: #F2EDE2; }
.hood-lock-text h2 { margin: 6px 0; } .hood-lock-text .lock-badge { position: static; display: inline-grid; }
.hood-lock-text .muted { color: #C9C3B6; } .circle-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.hood-map.room .hp-body { transform: scale(1.9); }
@media (min-width: 900px) { .hood-map.room .hp-body { transform: scale(1.35); } }
/* the locked peek: picture on top, words below it */
.hood-lock-text { position: relative; margin-block-start: -110px; padding-block-start: 110px; }
.hood-peek { max-block-size: 360px; }
/* one shared neighbourhood: streets, search, joining */
.hood-streets { display: flex; align-items: center; gap: 6px; margin-block-start: 4px; font-size: .85rem; color: #C9C3B6; }
.hood-streets .icon { min-inline-size: 44px; min-block-size: 36px; border-radius: 10px; border: 1px solid #3A3A42; background: #15141C; color: #F2EDE2; font-size: 1.3rem; cursor: pointer; }
.hood-streets .icon:disabled { opacity: .35; cursor: default; }
.hood-find { margin-block-end: 8px; display: grid; gap: 6px; justify-items: start; } .hood-find form { inline-size: 100%; }
.hood-found { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hood-blocked { margin-block-start: 10px; } .hood-blocked ul { display: grid; gap: 4px; } .hood-blocked li { align-items: center; }
.hood .btn.danger-ghost { color: #F2B8B5; border-color: #5A3A3A; }
.hood-join { place-items: stretch; text-align: start; max-inline-size: 560px; margin-inline: auto; overflow-y: auto; align-content: start; }
.hood-join h3 { margin: 0; font-size: 1.3rem; } .hood-join ul { display: grid; gap: 6px; margin: 0; padding: 0; }
.hood-join input:not([type=checkbox]) { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid #3A3A42; background: #15141C; color: #F2EDE2; font: inherit; }
.hood-join .check { display: flex; gap: 10px; align-items: flex-start; } .hood-join .check input { inline-size: 22px; block-size: 22px; margin-block-start: 2px; flex-shrink: 0; }
.hood-join .btn.primary { justify-self: start; }
.hood-top h2 { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hood-top .btn.small { flex-shrink: 0; white-space: nowrap; }
.hood-online { color: #9C98A6; font-size: .8rem; margin: 2px 0 0; } .hood-streets .hood-online { margin: 0 0 0 4px; }
.hood-door .choice strong { color: #FFE3B0; } .hood-door .choice span { color: #C9C3B6; }
.hood-join { padding-block-end: max(32px, env(safe-area-inset-bottom)); }
.hood-streets span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
