/* كان وكان — رحلة الفانوس (kid-first app shell) */
:root {
  --night: #191333; --night2: #241b4d; --night3: #2f2566;
  --cream: #f6efe2; --paper: #fffdf7; --ink: #2d2418;
  --gold: #c99a4a; --goldD: #7a4a1f; --goldL: #f3d8a8;
  --coral: #e76f51; --leaf: #6a994e; --teal: #2a9d8f; --berry: #b5548b;
  --fui: "Cairo", "Geeza Pro", sans-serif;
  --fbody: "Noto Naskh Arabic", "Geeza Pro", serif;
  --fen: "Georgia", serif;
  --r: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: clip; }
body {
  font-family: var(--fui); background: var(--night); color: var(--cream);
  min-height: 100vh; user-select: none; -webkit-user-select: none;
}
button { font-family: var(--fui); border: 0; background: none; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.en { font-family: var(--fen); font-style: italic; direction: ltr; unicode-bidi: isolate; }
/* parents toggled English off → hide decorative English on kid screens
   (parents' corner keeps its own — it's for adults) */
body.no-en #scr-map .en, body.no-en #scr-story .en, body.no-en #scr-album .en,
body.no-en #scr-heroes .en, body.no-en #overlay .en { display: none; }

/* ---------- splash ---------- */
#splash {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center;
  background: radial-gradient(ellipse 600px 500px at 50% 20%, var(--night3), var(--night) 75%);
}
.sp-lantern { font-size: 4.6rem; animation: floaty 3s ease-in-out infinite; filter: drop-shadow(0 0 34px rgba(255,200,100,.75)); }
#splash h1 { font-size: 2rem; font-weight: 900; color: var(--goldL); }
.sp-sub { color: #b7ab8d; font-size: .95rem; }
.sp-bar { width: 210px; height: 12px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 16px; }
.sp-bar span { display: block; height: 100%; width: 6%; border-radius: 99px; background: linear-gradient(90deg, #e9b96a, var(--gold)); transition: width .4s; }
.sp-note { font-size: .85rem; color: #8f84ab; }

/* ---------- HUD ---------- */
#hud {
  position: fixed; top: 0; inset-inline: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(25,19,51,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,154,74,.25);
}
.hud-item { font-weight: 800; font-size: 1rem; background: rgba(255,255,255,.08); border-radius: 99px; padding: 6px 12px; white-space: nowrap; }
.hud-item.streak.hot { background: rgba(231,111,81,.25); }
.hud-xp { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.hud-lantern { font-size: 1.7rem; filter: drop-shadow(0 0 10px rgba(255,200,100,.6)); }
.hud-xp-col { flex: 1; min-width: 0; }
.hud-level { font-size: .78rem; font-weight: 800; color: var(--goldL); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-bar { height: 9px; border-radius: 99px; background: rgba(255,255,255,.13); overflow: hidden; margin-top: 3px; }
.hud-bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #e9b96a, var(--gold)); border-radius: 99px; transition: width .5s; }
#hud.needs-id { cursor: pointer; box-shadow: inset 0 -2px 0 rgba(231,111,81,.55); }

/* ---------- identity card (claim name / PIN) ---------- */
.id-join, .id-chip {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 32px);
  margin: 12px 16px 0; padding: 12px 15px; border-radius: var(--r);
  text-align: start; font-family: var(--fui);
}
.id-join {
  background: linear-gradient(135deg, var(--coral), var(--gold)); color: #fff;
  box-shadow: 0 6px 18px rgba(231,111,81,.35); animation: idpulse 2.6s ease-in-out infinite;
}
@keyframes idpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
.id-join-ic { font-size: 2rem; filter: drop-shadow(0 0 10px rgba(255,225,160,.85)); }
.id-join-txt { flex: 1; min-width: 0; }
.id-join-txt b { display: block; font-size: 1.05rem; font-weight: 900; }
.id-join-txt small { display: block; font-size: .74rem; opacity: .93; font-weight: 600; margin-top: 2px; }
.id-join-cta { background: rgba(255,255,255,.28); border-radius: 99px; padding: 8px 14px; font-weight: 900; white-space: nowrap; }
.id-chip {
  background: linear-gradient(135deg, var(--night2), var(--night3));
  border: 1.5px solid rgba(201,154,74,.45); color: var(--cream);
}
.id-ic { font-size: 1.7rem; filter: drop-shadow(0 0 8px rgba(255,200,100,.5)); }
.id-txt { flex: 1; min-width: 0; }
.id-txt b { display: block; font-size: 1rem; font-weight: 900; color: var(--goldL); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-txt small { display: block; font-size: .76rem; color: #b7ab8d; margin-top: 1px; }
.id-cog { font-size: 1.1rem; opacity: .75; }

/* ---------- screens & tabbar ---------- */
#screens { padding: 66px 0 calc(74px + var(--safe-b)); min-height: 100vh; }
.scr { display: none; }
.scr.on { display: block; animation: fadein .25s; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }
#tabbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 40; display: flex;
  background: rgba(25,19,51,.97); border-top: 1px solid rgba(201,154,74,.3);
  padding: 6px 4px calc(6px + var(--safe-b));
}
#tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: .72rem; font-weight: 800; color: #8f84ab; padding: 4px 0; border-radius: 14px; }
#tabbar button span { font-size: 1.45rem; filter: grayscale(.7) opacity(.7); transition: .2s; }
#tabbar button.on { color: var(--goldL); }
#tabbar button.on span { filter: none; transform: scale(1.12); }

/* ---------- journey map ---------- */
.world { padding: 18px 16px 8px; }
.world-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--night2), var(--night3));
  border: 1.5px solid rgba(201,154,74,.4); border-radius: var(--r); padding: 12px 16px;
}
.world-head .wicon { font-size: 2rem; }
.world-head h2 { font-size: 1.15rem; color: var(--goldL); }
.world-head .wen { font-size: .78rem; color: #b7ab8d; }
.world-head .wstars { margin-inline-start: auto; font-weight: 800; color: var(--goldL); font-size: .9rem; white-space: nowrap; }
.world.locked-world { opacity: .45; filter: grayscale(.6); }
.nodes { position: relative; padding: 6px 0; }
.node { position: relative; display: flex; align-items: center; gap: 14px; margin: 18px 0; cursor: pointer; -webkit-tap-highlight-color: rgba(201,154,74,.15); }
.node:active:not(.locked) .bubble { transform: scale(.96); }
.node .bubble { transition: transform .12s; }
.node:nth-child(even) { flex-direction: row-reverse; text-align: end; }
.node .bubble {
  width: 92px; height: 92px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 4px solid var(--gold); box-shadow: 0 6px 22px rgba(0,0,0,.45), 0 0 22px rgba(233,185,106,.25);
  position: relative; background: var(--night2);
}
.node .bubble img { width: 100%; height: 100%; object-fit: cover; }
.node.locked .bubble { border-color: #4a4168; filter: grayscale(1) brightness(.6); box-shadow: none; }
.node.locked .bubble::after { content: "🔒"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; background: rgba(20,15,40,.45); }
.node.done .bubble { border-color: var(--leaf); }
.node .meta { min-width: 0; }
.node .meta h3 { font-family: var(--fbody); font-size: 1.12rem; color: var(--cream); line-height: 1.6; }
.node .meta .stars { color: var(--goldL); letter-spacing: 2px; font-size: 1rem; }
.node .meta .vtag { font-size: .74rem; color: #b7ab8d; }
.node .go {
  margin-inline-start: 4px; background: linear-gradient(135deg,#e9b96a,var(--gold));
  color: #3a2508; font-weight: 900; border-radius: 99px; padding: 8px 16px; font-size: .9rem;
  box-shadow: 0 4px 14px rgba(201,154,74,.45);
}
.node.locked .go { display: none; }
.node .connector {
  position: absolute; top: 100%; inset-inline-start: 44px; width: 4px; height: 22px;
  background: repeating-linear-gradient(180deg, rgba(201,154,74,.6) 0 6px, transparent 6px 12px);
}
.node:nth-child(even) .connector { inset-inline-start: auto; inset-inline-end: 44px; }
.map-cta { text-align: center; padding: 26px 20px 10px; color: #8f84ab; font-size: .85rem; }

/* quests card on map */
.quests { margin: 12px 16px 4px; background: linear-gradient(135deg, var(--night2), var(--night3)); border: 1.5px solid rgba(201,154,74,.4); border-radius: var(--r); padding: 14px 16px; }
.quests h2 { font-size: 1rem; color: var(--goldL); margin-bottom: 8px; }
.quest { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.quest .q-txt { flex: 1; min-width: 0; }
.quest .q-txt b { font-size: .92rem; display: block; }
.quest .q-bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 4px; }
.quest .q-bar span { display: block; height: 100%; background: var(--teal); border-radius: 99px; transition: width .4s; }
.quest .q-claim { background: linear-gradient(135deg,#e9b96a,var(--gold)); color: #3a2508; font-weight: 900; border-radius: 99px; padding: 6px 13px; font-size: .82rem; }
.quest .q-claim:disabled { background: rgba(255,255,255,.1); color: #8f84ab; }
.quest .q-claim.ready { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }

/* ---------- story flow ---------- */
.sf-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px 4px; }
.sf-back { font-size: 1.5rem; padding: 4px 10px; }
.sf-title { font-family: var(--fbody); font-size: 1.15rem; line-height: 1.5; flex: 1; min-width: 0; }
.sf-steps { display: flex; gap: 6px; justify-content: center; padding: 8px 0 2px; }
.sf-steps b { width: 34px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.15); }
.sf-steps b.on { background: var(--gold); }
.sf-stage { padding: 12px 16px; }
.sf-cover { border-radius: var(--r); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.5); margin-bottom: 12px; }
.sf-value-chip { display: inline-block; background: rgba(201,154,74,.2); border: 1px solid rgba(201,154,74,.5); border-radius: 99px; padding: 6px 14px; font-size: .9rem; margin-bottom: 10px; }
.vid-frame { position: relative; padding-top: 56.25%; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 10px 26px rgba(0,0,0,.5); }
.vid-frame iframe, .vid-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.vtabs button { background: rgba(255,255,255,.09); border-radius: 99px; padding: 7px 13px; font-size: .85rem; font-weight: 800; color: var(--cream); }
.vtabs button.on { background: var(--gold); color: #3a2508; }
.vid-empty { border-radius: var(--r); background: var(--night2); border: 1.5px dashed rgba(201,154,74,.5); padding: 30px 16px; text-align: center; line-height: 2; }
.big-btn {
  display: block; width: 100%; text-align: center; margin-top: 14px;
  background: linear-gradient(135deg,#e9b96a,var(--gold)); color: #3a2508;
  font-weight: 900; font-size: 1.1rem; border-radius: 99px; padding: 15px;
  box-shadow: 0 8px 24px rgba(201,154,74,.4);
}
.big-btn:disabled { opacity: .45; box-shadow: none; }
.ghost-btn { display: block; width: 100%; text-align: center; margin-top: 10px; border: 1.5px solid rgba(201,154,74,.5); color: var(--goldL); font-weight: 800; border-radius: 99px; padding: 12px; font-size: .95rem; }

/* word cards */
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wcard { perspective: 700px; cursor: pointer; height: 116px; }
.wcard .in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s; }
.wcard.flip .in { transform: rotateY(180deg); }
.wcard .f { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 16px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; }
.wcard .front { background: var(--paper); color: var(--goldD); font-family: var(--fbody); font-weight: 700; font-size: 1.45rem; border: 2px solid var(--gold); }
.wcard .back { background: var(--goldD); color: #fdf6e9; transform: rotateY(180deg); font-family: var(--fbody); font-size: .98rem; line-height: 1.75; }
.wcard.en-card .front { font-family: var(--fen); font-size: 1.1rem; font-weight: 600; }
.wcard.en-card .back { font-family: var(--fen); font-size: .88rem; line-height: 1.5; }
.wcard.got .front::after { content: "✓"; position: absolute; top: 6px; inset-inline-end: 10px; color: var(--leaf); font-weight: 900; }
.sec-label { font-size: .95rem; font-weight: 800; color: var(--goldL); margin: 16px 0 8px; }

/* quiz */
.hearts { text-align: center; font-size: 1.3rem; letter-spacing: 4px; padding: 4px 0 10px; }
.q-count { text-align: center; font-size: .8rem; color: #8f84ab; margin-bottom: 6px; }
.q-box { background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 18px 16px; box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.q-box h3 { font-family: var(--fbody); font-size: 1.28rem; line-height: 2; margin-bottom: 14px; color: var(--ink); }
.q-box.q-en { direction: ltr; text-align: left; }
.q-box.q-en h3, .q-box.q-en .opt { font-family: var(--fen); }
.opt { display: block; width: 100%; text-align: start; background: var(--cream); border: 2px solid rgba(201,154,74,.4); border-radius: 14px; padding: 12px 14px; margin: 8px 0; font-size: 1.02rem; font-family: var(--fbody); color: var(--ink); }
.opt.correct { background: #e7f2e3; border-color: var(--leaf); font-weight: 700; }
.opt.wrong { background: #fbe5e0; border-color: var(--coral); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.err-words { line-height: 2.4; font-family: var(--fbody); font-size: 1.2rem; }
.err-words span { padding: 2px 5px; border-radius: 8px; cursor: pointer; }
.err-words span.correct { background: #e7f2e3; outline: 2px solid var(--leaf); }
.err-words span.wrong { background: #fbe5e0; outline: 2px solid var(--coral); }
.explain { display: none; margin-top: 10px; background: #f4ecdb; border-radius: 12px; padding: 10px 12px; font-family: var(--fbody); font-size: .95rem; line-height: 1.9; color: #5a4a2f; }
/* ---------- hero-name picker ---------- */
.pick-label { font-weight: 900; font-size: .82rem; color: var(--goldD); margin: 12px 0 6px; text-align: start; }
.pick-grid { display: flex; flex-wrap: wrap; gap: 6px; max-height: 132px; overflow-y: auto; padding: 2px; }
.pick-grid.titles { max-height: 88px; }
.pick-chip {
  background: var(--cream); border: 1.5px solid rgba(201,154,74,.45); color: var(--ink);
  border-radius: 99px; padding: 6px 12px; font-size: .88rem; font-weight: 800; font-family: var(--fui);
}
.pick-chip.on { background: linear-gradient(135deg,#e9b96a,var(--gold)); color: #3a2508; border-color: var(--goldD); }
.pick-preview {
  margin-top: 12px; font-weight: 900; font-size: 1.15rem; color: var(--goldD);
  background: #f4ecdb; border-radius: 12px; padding: 10px;
}

/* ---------- حكمة اليوم ---------- */
.wis-card { display: block; width: calc(100% - 32px); margin: 12px 16px 0; border-radius: var(--r); text-align: start; font-family: var(--fui); }
.wis-card.dark {
  padding: 13px 16px;
  background: linear-gradient(135deg, var(--night2), var(--night3));
  border: 1.5px dashed rgba(201,154,74,.6); color: var(--cream);
}
.wis-guess { display: flex; gap: 8px; margin-top: 12px; }
.wis-opt {
  flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(201,154,74,.5);
  color: var(--goldL); border-radius: 12px; padding: 10px 6px; font-weight: 800; font-size: .85rem;
}
.wis-badge { font-size: .7rem; font-weight: 800; background: rgba(201,154,74,.18); color: var(--goldD); border-radius: 99px; padding: 2px 10px; }
.wis-badge.hit { background: #e7f2e3; color: #33502a; }
.wis-lantern { font-size: 2rem; animation: wisglow 2.2s ease-in-out infinite; }
@keyframes wisglow { 0%,100% { filter: drop-shadow(0 0 4px rgba(255,200,100,.4)); } 50% { filter: drop-shadow(0 0 18px rgba(255,200,100,.95)); } }
.wis-cta b { display: block; font-size: 1.05rem; font-weight: 900; color: var(--goldL); }
.wis-cta small { display: block; font-size: .78rem; color: #8f84ab; margin-top: 2px; }
.wis-card.lit {
  background: var(--paper); color: var(--ink); padding: 14px 16px;
  border: 2px solid var(--gold); box-shadow: 0 6px 22px rgba(201,154,74,.3); animation: pop .4s;
}
.wis-top { font-weight: 900; color: var(--goldD); font-size: .95rem; }
.wis-text { font-family: var(--fbody); font-size: 1.06rem; line-height: 2; margin-top: 6px; }
.wis-try { font-family: var(--fui); font-weight: 700; font-size: .85rem; background: #f4ecdb; border-radius: 10px; padding: 8px 10px; margin-top: 8px; color: #5a4a2f; }
.wis-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 10px; }
.wis-src { font-size: .75rem; color: #9b8a68; font-weight: 700; }
.wis-share { background: linear-gradient(135deg,#e9b96a,var(--gold)); color: #3a2508; font-weight: 900; border-radius: 99px; padding: 7px 14px; font-size: .82rem; }

/* ---------- bedtime audio ---------- */
.bed-card { margin: 14px 0 4px; background: linear-gradient(135deg, var(--night2), var(--night3)); border: 1.5px solid rgba(201,154,74,.45); border-radius: var(--r); padding: 14px 16px; }
.bed-head { font-weight: 900; color: var(--goldL); font-size: 1.02rem; }
.bed-head small { display: block; font-weight: 600; color: #8f84ab; font-size: .78rem; margin-top: 2px; }
.bed-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.bed-play { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg,#e9b96a,var(--gold)); color: #3a2508; font-size: 1.15rem; font-weight: 900; flex: none; box-shadow: 0 4px 14px rgba(201,154,74,.4); }
.bed-lang { font-weight: 800; font-size: .85rem; white-space: nowrap; }
.bed-bar { flex: 1; height: 10px; border-radius: 99px; background: rgba(255,255,255,.13); overflow: hidden; cursor: pointer; }
.bed-bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg,#e9b96a,var(--gold)); border-radius: 99px; transition: width .3s linear; }
.bed-time { font-size: .78rem; color: #b7ab8d; font-weight: 700; min-width: 38px; text-align: center; }

/* self-paced continue after a wrong answer — pops in after the correction lands */
.q-next { animation: qnext .3s .5s backwards; }
@keyframes qnext { from { opacity: 0; transform: translateY(10px); } }
.explain.show { display: block; }

/* completion */
.done-wrap { text-align: center; padding: 30px 16px; }
.done-stars { font-size: 3rem; letter-spacing: 8px; margin: 12px 0; }
.done-gem { font-size: 3.6rem; animation: pop .6s; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } }
.done-xp { font-size: 1.1rem; color: var(--goldL); font-weight: 900; margin: 8px 0; }

/* ---------- album ---------- */
.alb-tabs { display: flex; gap: 8px; padding: 14px 16px 4px; }
.alb-tabs button { flex: 1; background: rgba(255,255,255,.08); border-radius: 99px; padding: 9px; font-weight: 800; font-size: .9rem; color: var(--cream); }
.alb-tabs button.on { background: var(--gold); color: #3a2508; }
.alb-body { padding: 14px 16px; }
.gem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gem-slot { background: var(--night2); border: 1.5px solid rgba(201,154,74,.3); border-radius: 16px; padding: 14px 6px; text-align: center; }
.gem-slot .g-ic { font-size: 2rem; filter: grayscale(1) opacity(.35); }
.gem-slot.got .g-ic { filter: none; animation: pop .5s; }
.gem-slot .g-name { font-size: .78rem; margin-top: 4px; color: #b7ab8d; }
.gem-slot.got .g-name { color: var(--goldL); font-weight: 800; }
.alb-empty { text-align: center; color: #8f84ab; padding: 40px 20px; line-height: 2; }
.cert { background: linear-gradient(135deg, var(--paper), #f4ecdb); color: var(--ink); border-radius: var(--r); padding: 16px; margin-bottom: 12px; display: flex; gap: 12px; align-items: center; border: 2px solid var(--gold); }
.cert .c-ic { font-size: 2.2rem; }
.cert h3 { font-size: 1rem; color: var(--goldD); }
.cert p { font-size: .8rem; color: #7a6a4f; }

/* ---------- heroes ---------- */
.lb-wrap { padding: 14px 16px; }
.lb-me { background: linear-gradient(135deg, var(--night2), var(--night3)); border: 1.5px solid rgba(201,154,74,.5); border-radius: var(--r); padding: 14px 16px; text-align: center; margin-bottom: 14px; }
.lb-me .big { font-size: 1.5rem; font-weight: 900; color: var(--goldL); }
.lb-row { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border-radius: 14px; padding: 10px 12px; margin: 6px 0; }
.lb-row.me { outline: 2px solid var(--gold); }
.lb-row .rank { width: 34px; text-align: center; font-weight: 900; font-size: 1.05rem; }
.lb-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.lb-row .pts { color: var(--goldL); font-weight: 800; font-size: .9rem; white-space: nowrap; }

/* ---------- parents ---------- */
.par-wrap { padding: 16px; }
.par-card { background: var(--night2); border: 1.5px solid rgba(201,154,74,.35); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.par-card h3 { color: var(--goldL); font-size: 1rem; margin-bottom: 8px; }
.par-card p { font-size: .9rem; line-height: 1.9; color: #cfc3a2; }
.par-gate { text-align: center; padding: 30px 16px; }
.par-gate input { width: 130px; text-align: center; font-size: 1.6rem; border-radius: 14px; border: 2px solid var(--gold); background: var(--paper); color: var(--ink); padding: 10px; margin: 14px 0; font-family: var(--fui); }
.stat-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: .92rem; }

/* ---------- toast / overlay / fx ---------- */
#toast { position: fixed; top: 70px; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 90; pointer-events: none; }
.toast-msg { background: var(--paper); color: var(--goldD); font-weight: 900; border-radius: 99px; padding: 10px 20px; box-shadow: 0 10px 26px rgba(0,0,0,.4); animation: toastin 2.4s forwards; }
@keyframes toastin { 0% { opacity: 0; transform: translateY(-14px) scale(.9); } 12%,80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
#overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15,11,32,.86); display: none; align-items: center; justify-content: center; padding: 24px; }
#overlay.show { display: flex; }
.ov-card { background: var(--paper); color: var(--ink); border-radius: 24px; padding: 28px 22px; width: min(400px, 100%); text-align: center; border: 3px solid var(--gold); animation: pop .4s; max-height: 84vh; overflow-y: auto; }
.ov-card h2 { color: var(--goldD); font-size: 1.3rem; margin-bottom: 10px; }
.ov-card p { font-family: var(--fbody); line-height: 2; font-size: 1rem; }
.ov-card input { width: 100%; text-align: center; font-size: 1.1rem; border-radius: 12px; border: 2px solid var(--gold); background: var(--cream); padding: 11px; margin-top: 10px; font-family: var(--fbody); }
.ov-card input.pin { letter-spacing: 8px; font-family: var(--fui); font-weight: 800; }
.ov-err { display: none; color: #c0392b; font-weight: 800; font-size: .88rem; margin-top: 10px; }
.ov-err.show { display: block; }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 150; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* lite video player */
.vid-lite { cursor: pointer; }
.vid-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; font-size: 2rem; color: #fff;
  background: rgba(231, 111, 81, .95); box-shadow: 0 10px 34px rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center; padding-inline-start: 6px;
}
.vid-lite:active .vid-play { transform: translate(-50%, -50%) scale(.92); }
