:root { color-scheme: only light; }   /* the app has its own colours: stop phone "dark mode" from darkening it */
:root {
  --bg: #F2F6FF; --ink: #1B2340; --muted: #4A5578; --blue: #2456B8; --blue-d: #1B3F8A;
  --yellow: #FFD23F; --yellow-d: #D9A90F; --green: #2E9E4F; --green-d: #1F6B38; --pink: #C2185B;
  --line: #D5E0F5; --card: #FFFFFF; --purple: #3B1E7A;
  --display: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #DCE6FF; font-family: 'Tajawal', sans-serif; color: var(--ink); -webkit-tap-highlight-color: transparent; }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
a { color: var(--blue); }

.app { max-width: 520px; min-height: 100dvh; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; position: relative; }
@media (min-width: 560px) { .app { box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(27,35,64,.15); } }

/* header */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 16px; background: var(--blue); color: #fff; border-radius: 0 0 28px 28px; box-shadow: 0 6px 0 var(--blue-d); }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.brand-logo { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid var(--yellow); box-shadow: 0 3px 0 #163A80; background: #fff; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.1; }
.brand-hello { font-size: 14px; color: #DCE6FF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stars { display: flex; align-items: center; gap: 6px; background: var(--blue-d); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 16px; min-height: 44px; }
.stars img { width: 26px; height: 26px; }

/* main */
.view { flex: 1 1 auto; padding: 18px 16px 110px; outline: none; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.25; }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 21px; }
.muted { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.back { align-self: flex-start; border: 0; background: transparent; color: var(--blue); font-weight: 800; font-size: 16px; padding: 8px 0; min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; }

/* buttons */
.btn { border: 0; border-radius: 16px; padding: 15px 20px; min-height: 54px; font-weight: 800; font-size: 18px; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--yellow-d); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-d); }
.btn-ghost { background: #fff; color: var(--blue); box-shadow: 0 4px 0 var(--line); }
.btn:active { transform: translateY(3px); box-shadow: none; }
.btn[disabled] { opacity: .6; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.cat { border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: var(--ink); }
.cat-circle { width: 84px; height: 84px; border-radius: 50%; border: 4px solid; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.cat-circle img { width: 56px; height: 56px; object-fit: contain; }
.cat:active .cat-circle { transform: scale(.94); }
.cat-name { font-size: 14px; font-weight: 800; text-align: center; line-height: 1.25; }

/* featured */
.featured { display: flex; align-items: center; gap: 12px; background: var(--purple); color: #fff; border-radius: 22px; padding: 14px; text-decoration: none; }
.featured img { width: 72px; height: 72px; object-fit: contain; flex: 0 0 auto; }
.featured .label { font-size: 12px; color: var(--yellow); font-weight: 700; }
.featured .title { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.2; }
.featured .sub { font-size: 13px; color: #E4DBFF; }
.pill-soon { background: var(--yellow); color: var(--purple); font-weight: 800; font-size: 12px; padding: 6px 10px; border-radius: 999px; flex: 0 0 auto; }

/* episode cards */
.row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; padding: 10px; box-shadow: 0 3px 0 var(--line); text-decoration: none; color: var(--ink); min-height: 84px; }
.thumb { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 40px; height: 40px; object-fit: contain; }
.row .t { font-weight: 800; font-size: 16px; line-height: 1.3; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.chip-done { background: #E3F6E8; color: var(--green-d); }
.chip-new { background: #FFE066; color: #5C4400; }
.chip-soon { background: #FFF3C4; color: #6B5200; }
.chip-exp { background: #FFEBDD; color: #9C3108; }
.chip-ask { background: #FDE7EF; color: #9A1248; }
.chip-game { background: #EEE5FF; color: #5B2A9E; }
.ep-game { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 20px; background: var(--gc); color: #fff; text-decoration: none; box-shadow: 0 5px 0 rgba(0,0,0,.18); }
.ep-game img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; border: 3px solid rgba(255,255,255,.85); flex: 0 0 auto; }
.ep-game span { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ep-game small { font-size: 13px; font-weight: 700; opacity: .92; }
.ep-game b { font-size: 19px; font-weight: 900; line-height: 1.2; }
.ep-game i { font-style: normal; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--gc); display: flex; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 auto; }
.ep-game:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }

/* player */
.player { position: relative; border-radius: 20px; overflow: hidden; background: #1B2340; aspect-ratio: 16 / 9; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .cover { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.player .soon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; text-align: center; padding: 16px; }
.box { background: var(--card); border-radius: 16px; padding: 14px; }

/* quiz */
.progress { height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--green); border-radius: 999px; transition: width .3s; }
.opt { border: 3px solid #B8C6E3; background: #fff; color: var(--ink); font-weight: 800; font-size: 18px; border-radius: 16px; padding: 14px; text-align: start; min-height: 58px; }
.opt.right { border-color: var(--green); background: #E3F6E8; color: var(--green-d); }
.opt.wrong { border-color: var(--pink); background: #FDE7EC; color: #9A1248; }
.prize { width: 170px; height: 170px; border-radius: 50%; background: var(--purple); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px #E4DBFF; animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.prize img { width: 115px; height: 115px; object-fit: contain; }
@keyframes pop { from { transform: scale(.3); } to { transform: scale(1); } }
.center { align-items: center; text-align: center; }

/* shelf */
.shelf { background: #E0A96D; border: 5px solid #8A5A34; border-radius: 24px; padding: 16px 12px 4px; box-shadow: inset 0 0 0 4px #C98B55; }
.shelf-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; min-height: 116px; }
.plank { height: 14px; background: #8A5A34; border-radius: 4px; box-shadow: 0 6px 0 #6B4428; margin: 4px -4px 18px; }
.item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.item img { width: 78px; height: 78px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0,0,0,.25)); }
.item.locked img { width: 62px; height: 62px; opacity: .8; filter: none; }
.item .lbl { font-size: 12px; font-weight: 800; background: #FFF6DA; border-radius: 999px; padding: 2px 8px; text-align: center; }
.item.locked .lbl { background: transparent; color: #4F3A20; font-weight: 700; }

/* passport + votes */
.passport { background: #FFF6E0; border: 3px dashed #C9A86A; border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }

/* forms */
label { font-weight: 800; }
.field { font-size: 18px; padding: 12px; border: 2px solid #B8C6E3; border-radius: 12px; background: #fff; width: 100%; }
.field:focus { outline: 3px solid var(--yellow); border-color: var(--blue); }
textarea.field { min-height: 100px; resize: vertical; }
.msg { font-weight: 800; }
.msg.bad { color: var(--pink); }
.msg.good { color: var(--green-d); }
.kid { border: 3px solid var(--line); background: #fff; border-radius: 18px; padding: 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 96px; font-weight: 800; color: var(--ink); }
.kid img { width: 54px; height: 54px; }
.kid.on { border-color: var(--green); background: #E3F6E8; }
.avatars { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; padding: 0; }
.avatar img { width: 40px; height: 40px; }
.avatar[aria-pressed="true"] { border-color: var(--blue); background: #E6EEFF; }
.small { font-size: 13px; color: var(--muted); }
.link-btn { border: 0; background: transparent; color: var(--blue); font-weight: 700; font-size: 15px; min-height: 44px; text-decoration: underline; }

/* bottom tabs */
.tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; z-index: 5; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #fff; border-top: 1px solid var(--line); padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; border-radius: 14px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 800; }
.tabs a img { width: 30px; height: 30px; opacity: .55; transition: transform .15s, opacity .15s; }
.tabs a.on { background: #E6EEFF; color: var(--blue); }
.tabs a.on img { opacity: 1; transform: scale(1.12); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* certificate */
.cert { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 6px 0 var(--line); background: #FFF8E6; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { border: 3px solid var(--line); background: #fff; border-radius: 14px; min-height: 48px; font-weight: 800; font-size: 17px; color: var(--ink); }
.seg button[aria-pressed="true"] { border-color: var(--blue); background: #E6EEFF; color: var(--blue); }

/* wide screens: iPad (portrait & landscape), desktop */
.rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ep { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cert-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.narrow { width: 100%; max-width: 640px; margin-inline: auto; }
@media (min-width: 700px) {
  .app { max-width: 1100px; }
  .tabs { max-width: 1100px; }
  .top { padding-inline: 28px; border-radius: 0 0 36px 36px; }
  .view { padding: 26px 32px 120px; }
  .cats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .cat-circle { width: 100px; height: 100px; }
  .cat-circle img { width: 66px; height: 66px; }
  .cat-name { font-size: 15px; }
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ep { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 24px; }
  .cert-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .cert { max-width: 520px; }
  .h1 { font-size: 30px; }
  .tabs a { flex-direction: row; gap: 8px; font-size: 15px; }
}
@media (min-width: 1000px) {
  .rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cats { gap: 24px; }
}
/* landscape phones / short screens: keep the header compact */
@media (max-height: 520px) and (orientation: landscape) {
  .top { position: static; padding-block: 8px 10px; }
  .brand-logo { width: 44px; height: 44px; }
  .tabs a { min-height: 44px; }
}

/* launch countdown overlay */
body.locked { overflow: hidden; }
.launch { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(circle at 50% 30%, rgba(91,42,158,.72), rgba(27,20,70,.88)); -webkit-backdrop-filter: blur(7px) saturate(1.1); backdrop-filter: blur(7px) saturate(1.1); }
.launch[hidden] { display: none; }
.launch.bye { animation: launchBye .7s ease forwards; }
@keyframes launchBye { to { opacity: 0; transform: scale(1.06); } }
.launch-card { width: 100%; max-width: 460px; background: #fff; border-radius: 30px; padding: 26px 20px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: 0 10px 0 #2B1B4A, 0 30px 80px rgba(0,0,0,.35); border: 4px solid var(--yellow); animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
.launch-logo { width: 104px; height: 104px; border-radius: 50%; border: 5px solid var(--yellow); box-shadow: 0 5px 0 #D9A90F; object-fit: cover; margin-top: -78px; background: #fff; }
.launch-kicker { background: #FF5E7E; color: #fff; font-weight: 800; font-size: 14px; border-radius: 999px; padding: 4px 14px; }
.launch-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.2; color: var(--blue); }
.launch-sub { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.launch-count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; margin: 6px 0 2px; }
.launch-count div { background: #2456B8; color: #fff; border-radius: 18px; padding: 10px 4px 8px; box-shadow: 0 5px 0 #1B3F8A; display: flex; flex-direction: column; align-items: center; }
.launch-count b { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.launch-count span { font-size: 13px; font-weight: 700; color: #DCE6FF; }
.launch-date { margin: 4px 0 0; font-size: 16px; color: var(--ink); }
@media (min-width: 700px) { .launch-card { max-width: 560px; padding: 30px 32px 26px; } .launch-title { font-size: 38px; } .launch-count b { font-size: 46px; } }
@media (max-height: 560px) { .launch-logo { width: 72px; height: 72px; margin-top: 0; } .launch-sub { display: none; } .launch-card { gap: 6px; padding: 14px; } .launch-count b { font-size: 26px; } }

/* governorate ranking */
.ranks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.rank { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(60px, 30%) auto; align-items: center; gap: 10px; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 10px 12px; text-align: start; color: var(--ink); min-height: 64px; }
.rank .pos { width: 40px; height: 40px; border-radius: 50%; background: #EEF2FA; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--muted); }
.rank .who { display: flex; flex-direction: column; min-width: 0; }
.rank .nm { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.2; }
.rank .cnt { font-size: 13px; font-weight: 700; color: var(--muted); }
.rank .bar { height: 10px; background: #EEF2FA; border-radius: 999px; overflow: hidden; }
.rank .bar span { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width .4s; }
.rank .go { font-size: 13px; font-weight: 800; border-radius: 999px; padding: 6px 12px; background: var(--yellow); color: var(--ink); white-space: nowrap; }
.rank.gold { border-color: #E0A33A; background: #FFF8E1; } .rank.gold .pos { background: #FFD23F; color: #6B4A00; } .rank.gold .bar span { background: #E0A33A; }
.rank.silver .pos { background: #D5DBE5; color: #3B4558; }
.rank.bronze .pos { background: #F2C49B; color: #6B3A10; }
.rank.on { border: 3px solid var(--green); } .rank.on .go { background: var(--green); color: #fff; }
@media (min-width: 700px) { .ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* games */
.gx { gap: 18px; }
.gx-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 22px 20px 24px; color: #fff; text-align: center;
  background: radial-gradient(circle 64px at 8% 12%, #FF8FB1 98%, transparent 100%), radial-gradient(circle 52px at 94% 100%, #FFD23F 98%, transparent 100%), radial-gradient(circle 22px at 82% 18%, #7BE4954d 98%, transparent 100%), linear-gradient(135deg, #8E5BD9 0%, #2456B8 55%, #1C7ED6 100%);
  box-shadow: 0 6px 0 #1B3F8A; }
.gx-hero h1 { margin: 6px 0 2px; font-family: var(--display); font-size: 38px; line-height: 1.1; text-shadow: 0 3px 0 #1B3F8A; }
.gx-hero.mini { display: flex; align-items: center; gap: 14px; padding: 12px 18px; text-align: start; border-radius: 24px; }
.gx-hero.mini .gx-pad { width: 54px; height: 54px; flex: none; }
.gx-hero.mini h1 { margin: 0; font-size: 26px; }
.gx-hero.mini p { font-size: 13px; }
.gx-hero.mini .gx-spark.s2, .gx-hero.mini .gx-spark.s4 { display: none; }
.gx-hero p { margin: 0; font-weight: 800; font-size: 16px; opacity: .95; }
.gx-pad { width: 82px; height: 82px; filter: drop-shadow(0 4px 0 rgba(0,0,0,.25)); animation: gxBob 2.4s ease-in-out infinite; }
.gx-spark { position: absolute; font-size: 22px; opacity: .9; animation: gxTwinkle 2.2s ease-in-out infinite; }
.gx-spark.s1 { top: 14px; right: 22px; color: #FFD23F; }
.gx-spark.s2 { top: 58px; left: 26px; color: #7BE495; font-size: 14px; animation-delay: .4s; }
.gx-spark.s3 { bottom: 16px; right: 40px; color: #FFB3C6; font-size: 18px; animation-delay: .8s; }
.gx-spark.s4 { top: 22px; left: 70px; color: #9AD8FF; font-size: 15px; animation-delay: 1.2s; }
.gx-spark.s5 { bottom: 26px; left: 18%; color: #FFD23F; font-size: 12px; animation-delay: 1.6s; }
.gx-list { display: grid; gap: 18px; }
.gx-sec { display: grid; gap: 22px; }
.gx-kinds { display: flex; gap: 6px; overflow-x: auto; padding: 10px 6px 6px; scrollbar-width: none; justify-content: flex-start; }
.gx-kinds::-webkit-scrollbar { display: none; }
.gx-kind { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.gx-kind-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--kc); color: var(--kc);
  box-shadow: 0 4px 0 var(--kc); transition: transform .12s, box-shadow .12s; }
.gx-kind-ic svg { width: 32px; height: 32px; }
.gx-kind-t { font-family: var(--display); font-size: 12.5px; font-weight: 800; line-height: 1.2; color: var(--ink); text-align: center; }
.gx-kind:active .gx-kind-ic { transform: translateY(3px); box-shadow: 0 1px 0 var(--kc); }
.gx-kind.on .gx-kind-ic { background: var(--kc); color: #fff; transform: translateY(-2px) scale(1.06); box-shadow: 0 5px 0 color-mix(in srgb, var(--kc) 65%, #000), 0 0 0 4px color-mix(in srgb, var(--kc) 22%, transparent); }
.gx-kind.on .gx-kind-t { color: var(--kc); }
@media (min-width: 700px) { .gx-kinds { justify-content: center; gap: 14px; } .gx-kind { flex-basis: 88px; } .gx-kind-ic { width: 66px; height: 66px; } .gx-kind-ic svg { width: 36px; height: 36px; } .gx-kind-t { font-size: 14px; } }
.gx-sec .gx-h2 { margin: 4px 0 -4px; display: flex; align-items: center; gap: 8px; }
.gx-topic { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; background: #fff; border: 2px solid var(--cc); color: var(--cc); font-size: 12px; font-weight: 800; }
.gx-topic img { width: 18px; height: 18px; }
.gx-soon.gx-draw { flex-direction: row; justify-content: flex-start; gap: 14px; text-align: start; padding: 14px 16px; }
.gx-soon.gx-draw .gx-soon-t { margin-top: 0; }
.gx-draw-tx { display: flex; flex-direction: column; gap: 2px; }
.gx-soon.gx-draw .gx-box { width: 64px; height: 64px; font-size: 34px; flex: none; }
.gx-cont { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 22px; background: #fff; border: 3px solid var(--gc); box-shadow: 0 5px 0 var(--gc); text-decoration: none; color: var(--ink); }
.gx-cont img { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; }
.gx-cont span { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.gx-cont small { font-size: 12px; font-weight: 800; color: var(--muted); }
.gx-cont b { font-family: var(--display); font-size: 20px; color: var(--gc); }
.gx-cont-go { flex: none !important; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); display: grid !important; place-items: center; font-size: 15px; box-shadow: 0 3px 0 var(--yellow-d); }
.gx-card { position: relative; display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 26px; text-decoration: none; color: var(--ink);
  background: repeating-linear-gradient(-45deg, #FFF8E1 0 18px, #FFF1C7 18px 36px); border: 4px solid var(--gc); box-shadow: 0 7px 0 var(--gc);
  animation: gxPop .5s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); transition: transform .12s, box-shadow .12s; }
.gx-card:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--gc); }
.gx-art img { width: 132px; height: 132px; border-radius: 26px; object-fit: cover; display: block; border: 3px solid #fff; box-shadow: 0 4px 0 rgba(0,0,0,.18); transform: rotate(-3deg); }
.gx-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gx-title { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--gc); }
.gx-desc { font-size: 14px; font-weight: 700; color: var(--muted); line-height: 1.5; }
.gx-play { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 10px 18px; border-radius: 999px; background: var(--yellow); color: var(--ink);
  font-family: var(--display); font-size: 19px; font-weight: 800; box-shadow: 0 4px 0 var(--yellow-d); animation: gxPulse 1.6s ease-in-out infinite; }
.gx-play svg { width: 20px; height: 20px; }
[dir="rtl"] .gx-play svg { transform: scaleX(-1); }
.gx-tags { position: absolute; top: -14px; left: 14px; display: flex; gap: 6px; z-index: 1; }
.gx-tag { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; border: 2px solid #fff; }
.gx-tag.new { background: #E63946; color: #fff; box-shadow: 0 2px 0 #A4161A; transform: rotate(-4deg); }
.gx-tag.beta { background: #fff; color: #8E5BD9; border-color: #8E5BD9; }
.gx-tag.soon { background: var(--gc); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.gx-lock .gx-art { position: relative; }
.gx-lock .gx-art img { filter: saturate(.85) brightness(.92); }
.gx-lock-ic { position: absolute; bottom: -6px; left: -6px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.gx-lock-ic svg { width: 20px; height: 20px; }
.gx-cd { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.gx-cd-l { font-size: 13px; font-weight: 800; color: var(--gc); }
.gx-pv { align-self: flex-start; margin-top: 6px; padding: 6px 12px; border-radius: 999px; border: 2px dashed var(--gc); color: var(--gc); background: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.gx-cd-row { display: flex; gap: 4px; flex-wrap: wrap; }
.gx-cd-u { display: flex; flex-direction: column; align-items: center; flex: 1 1 0; min-width: 38px; max-width: 58px; padding: 5px 2px 4px; border-radius: 14px; background: var(--gc); color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.22); }
.gx-cd-u b { font-family: var(--display); font-size: 18px; line-height: 1.1; }
.gx-cd-u small { font-size: 10.5px; font-weight: 800; opacity: .92; }
.gx-h2 { margin: 6px 0 0; font-family: var(--display); font-size: 22px; color: var(--purple); }
.gx-soon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gx-soon { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px 14px; border-radius: 22px; background: #fff; border: 3px dashed var(--sc); text-align: center;
  animation: gxPop .5s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); }
.gx-box { width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center; background: var(--sc); box-shadow: 0 5px 0 rgba(0,0,0,.22), inset 0 -6px 0 rgba(0,0,0,.12);
  color: #fff; font-family: var(--display); font-size: 44px; font-weight: 800; animation: gxWobble 2.8s ease-in-out infinite; animation-delay: var(--d); }
.gx-soon-t { font-family: var(--display); font-size: 18px; font-weight: 800; color: var(--sc); margin-top: 6px; }
.gx-soon-s { font-size: 13px; font-weight: 700; color: var(--muted); }
@keyframes gxBob { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-6px) rotate(6deg); } }
@keyframes gxTwinkle { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.35); opacity: .45; } }
@keyframes gxPop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes gxPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes gxWobble { 0%,80%,100% { transform: rotate(0); } 85% { transform: rotate(-9deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .gx *, .gx-card, .gx-soon { animation: none !important; } }
@media (min-width: 700px) {
  .gx-card { grid-template-columns: 200px 1fr; padding: 18px; }
  .gx-art img { width: 200px; height: 200px; }
  .gx-title { font-size: 34px; } .gx-desc { font-size: 16px; }
  .gx-soon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .tabs a { font-size: 11px; }
  .gx-card { grid-template-columns: 104px 1fr; } .gx-art img { width: 104px; height: 104px; }
  .gx-title { font-size: 22px; } .gx-play { font-size: 17px; padding: 9px 14px; }
}

/* trips */
.tr { gap: 18px; }
.tr-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 20px 20px 22px; text-align: center; color: #fff;
  background: radial-gradient(circle 46px at 92% 16%, #FFE066 96%, transparent 100%), linear-gradient(180deg, #4FB3FF 0%, #1C7ED6 60%, #2456B8 100%); box-shadow: 0 6px 0 #13599A; }
.tr-hero h1 { margin: 4px 0 2px; font-family: var(--display); font-size: 36px; line-height: 1.1; text-shadow: 0 3px 0 #13599A; position: relative; }
.tr-hero p { margin: 0; font-weight: 800; position: relative; }
.tr-balloon { width: 76px; height: 76px; position: relative; filter: drop-shadow(0 5px 0 rgba(0,0,0,.2)); animation: trFloat 3s ease-in-out infinite; }
.tr-count { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 999px; background: #FFD23F; color: var(--ink); font-weight: 800; font-size: 14px; box-shadow: 0 3px 0 var(--yellow-d); position: relative; }
.tr-cloud { position: absolute; background: #fff; opacity: .55; border-radius: 999px; animation: trDrift 9s linear infinite; }
.tr-cloud::before, .tr-cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.tr-cloud.c1 { width: 70px; height: 22px; top: 30px; right: -10px; }
.tr-cloud.c2 { width: 54px; height: 18px; top: 92px; left: 8%; animation-duration: 12s; animation-delay: -4s; }
.tr-cloud.c3 { width: 40px; height: 14px; bottom: 26px; right: 30%; animation-duration: 14s; animation-delay: -8s; }
.tr-cloud::before { width: 30px; height: 30px; top: -14px; right: 12px; } .tr-cloud::after { width: 20px; height: 20px; top: -9px; left: 10px; }
.tr-h2 { margin: 0 0 10px; font-family: var(--display); font-size: 22px; color: #6B4A1E; }
.tr-passport { border-radius: 24px; padding: 14px 14px 10px; background: repeating-linear-gradient(0deg, #FFF6E0 0 26px, #FBEBC4 26px 27px); border: 3px solid #C9A46A; box-shadow: 0 5px 0 #A9834A; }
.tr-trail { position: relative; isolation: isolate; display: flex; gap: 6px; padding-top: 10px; overflow-x: auto; padding: 8px 4px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tr-trail::-webkit-scrollbar { display: none; }
.tr-stop:not(:last-child)::after { content: ""; position: absolute; z-index: -1; top: 39px; inset-inline-start: 50%; width: calc(100% + 6px); border-top: 3px dashed #C9A46A; }
.tr-stop { position: relative; flex: 0 0 74px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; scroll-snap-align: start; animation: gxPop .5s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); }
.tr-em { position: relative; width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; border: 4px solid var(--gc); box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.tr-em > img:first-child { width: 46px; height: 46px; object-fit: contain; }
.tr-stamp { position: absolute; width: 38px; height: 38px; left: -12px; bottom: -9px; transform: rotate(-14deg); mix-blend-mode: multiply; }
.tr-num { position: absolute; top: -4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--gc); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; border: 2px solid #fff; }
.tr-nm { margin-top: 8px; font-weight: 800; font-size: 13px; color: var(--gc); white-space: nowrap; }
.tr-stop.next { --gc: #8E5BD9; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.tr-stop.next .tr-em { border-style: dashed; background: #F1EBFF; color: #8E5BD9; font-family: var(--display); font-size: 34px; font-weight: 800; animation: gxWobble 2.8s ease-in-out infinite; }
.tr-vote { border-radius: 24px; padding: 16px; background: linear-gradient(135deg, #FFF0F4, #FFF8E1); border: 3px solid #FFB3C6; }
.tr-vote .tr-h2 { color: var(--pink); }
.tr-vote p { margin: 0 0 10px; font-weight: 700; color: var(--muted); line-height: 1.6; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-chips span { padding: 4px 10px; border-radius: 999px; background: #fff; border: 2px solid #FFD1DC; font-size: 12px; font-weight: 800; color: var(--muted); }
@keyframes trFloat { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes trDrift { from { translate: 0 0; } to { translate: -420px 0; } }
@media (prefers-reduced-motion: reduce) { .tr *, .tr-stop { animation: none !important; } }
@media (min-width: 700px) { .tr-stop { flex-basis: 104px; } .tr-em { width: 86px; height: 86px; } .tr-em > img:first-child { width: 64px; height: 64px; } .tr-stop:not(:last-child)::after { top: 51px; } .tr-stamp { width: 46px; height: 46px; } .tr-nm { font-size: 15px; } }
.tr .rank { --rc: #4FB3FF; grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-areas: "pos who go" "pos bar go"; row-gap: 6px; border: 3px solid color-mix(in srgb, var(--rc) 45%, #fff); box-shadow: 0 4px 0 color-mix(in srgb, var(--rc) 35%, #fff); border-radius: 20px; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.tr .rank:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--rc) 35%, #fff); }
.tr .rank:nth-child(5n+2) { --rc: #FF5E7E; } .tr .rank:nth-child(5n+3) { --rc: #2E9E4F; } .tr .rank:nth-child(5n+4) { --rc: #FF9F1C; } .tr .rank:nth-child(5n+5) { --rc: #8E5BD9; }
.tr .rank .pos { grid-area: pos; background: color-mix(in srgb, var(--rc) 18%, #fff); color: var(--rc); }
.tr .rank .who { grid-area: who; } .tr .rank .bar { grid-area: bar; } .tr .rank .go { grid-area: go; }
.tr .rank .bar span { background: var(--rc); }
.tr .rank .who { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tr .rank .go { font-family: var(--display); font-size: 16px; padding: 8px 16px; box-shadow: 0 3px 0 var(--yellow-d); }
.tr .rank.gold { --rc: #E0A33A; } .tr .rank.gold .pos { background: #FFD23F; color: #6B4A00; }
.tr .rank.on { --rc: #2E9E4F; background: #EFFBF2; } .tr .rank.on .go { background: var(--green); color: #fff; box-shadow: 0 3px 0 var(--green-d); }
.tr .ranks { gap: 10px; }

/* shelf */
.sh { gap: 18px; }
.sh-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 20px 20px 22px; text-align: center; color: #fff;
  background: radial-gradient(circle 50px at 4% 8%, #FF8FB1 96%, transparent 100%), radial-gradient(circle 40px at 94% 10%, #FFE066 96%, transparent 100%), linear-gradient(135deg, #FF9F1C 0%, #F76707 55%, #E8590C 100%); box-shadow: 0 6px 0 #B5480A; }
.sh-hero h1 { margin: 4px 0 2px; font-family: var(--display); font-size: 36px; line-height: 1.1; text-shadow: 0 3px 0 #B5480A; position: relative; }
.sh-hero p { margin: 0; font-weight: 800; position: relative; }
.sh-trophy { width: 78px; height: 78px; position: relative; filter: drop-shadow(0 5px 0 rgba(0,0,0,.2)); animation: gxBob 2.6s ease-in-out infinite; }
.sh-meter { position: relative; margin: 12px auto 0; max-width: 300px; height: 30px; border-radius: 999px; background: rgba(255,255,255,.3); border: 3px solid #fff; overflow: hidden; }
.sh-meter span { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; background: #FFD23F; border-radius: 999px; transition: width .6s; }
.sh-meter b { position: relative; display: grid; place-items: center; height: 100%; color: var(--ink); font-size: 14px; }
.sh-tip { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 18px; background: #FFF8E1; border: 3px dashed #FFB703; font-weight: 800; color: #6B4A1E; }
.sh .shelf { background: linear-gradient(180deg, #E8B47A, #D99A5B); border-radius: 26px; box-shadow: inset 0 0 0 4px #C98B55, 0 6px 0 #6B4428; }
.sh .item { text-decoration: none; color: inherit; animation: gxPop .5s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); }
.sh-glow { position: relative; display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; }
.sh-got .sh-glow { background: radial-gradient(circle, #FFF3B0 0 45%, rgba(255,243,176,0) 70%); }
.sh-got .sh-glow img { animation: shFloat 3s ease-in-out infinite; animation-delay: var(--d); }
.sh-got:active .sh-glow img { transform: scale(.92); }
.sh-pad { position: absolute; bottom: 4px; left: 6px; font-size: 18px; }
.sh .item .lbl { background: #FFF6DA; color: #3B2A12; }
.sh-got .lbl { background: #fff; border: 2px solid #FFB703; }
.sh-stars { display: flex; gap: 1px; font-size: 18px; line-height: 1; }
.sh-stars i { font-style: normal; color: rgba(255,255,255,.7); -webkit-text-stroke: 1px #6B4428; }
.sh-stars i.on { color: #FFD23F; }
.sh-try { font-size: 11px; font-weight: 800; color: #fff; background: #8E5BD9; border-radius: 999px; padding: 2px 8px; box-shadow: 0 2px 0 #5F3A9E; }
.sh-lock .sh-glow img { animation: gxWobble 3.2s ease-in-out infinite; animation-delay: var(--d); }
@keyframes shFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .sh *, .sh .item { animation: none !important; } }

/* back button */
.back { align-self: flex-start; gap: 8px; padding: 6px 16px 6px 8px; min-height: 44px; border-radius: 999px; background: #fff; border: 3px solid var(--blue); box-shadow: 0 4px 0 var(--blue-d); color: var(--blue); font-family: var(--display); font-size: 17px; font-weight: 800; transition: transform .12s, box-shadow .12s; }
.back:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--blue-d); }
.back-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.back-ic svg { width: 18px; height: 18px; }

/* ask */
.ak { gap: 18px; }
.ak-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 20px 20px 22px; text-align: center; color: #fff;
  background: radial-gradient(circle 46px at 94% 12%, #FFE066 96%, transparent 100%), radial-gradient(circle 34px at 3% 96%, #7BE495 96%, transparent 100%), linear-gradient(135deg, #D6336C 0%, #A61E4D 50%, #8E5BD9 100%); box-shadow: 0 6px 0 #7A1238; }
.ak-hero h1 { margin: 4px 0 2px; font-family: var(--display); font-size: 34px; line-height: 1.15; text-shadow: 0 3px 0 rgba(0,0,0,.25); position: relative; }
.ak-hero p { margin: 0; font-weight: 800; position: relative; }
.ak-hero .gx-spark { font-weight: 800; }
.ak-bubble { width: 80px; height: 80px; position: relative; filter: drop-shadow(0 5px 0 rgba(0,0,0,.2)); animation: gxBob 2.4s ease-in-out infinite; }
.ak-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 24px; background: #fff; border: 3px solid #FFC2D4; box-shadow: 0 5px 0 #FFC2D4; }
.ak-card.center { align-items: stretch; text-align: center; }
.ak-lead { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.6; color: var(--ink); }
.ak-h2 { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 800; color: var(--pink); }
.ak-starters { display: flex; flex-wrap: wrap; gap: 8px; }
.ak-chip { border: 2px solid #8E5BD9; background: #F1EBFF; color: #5F3A9E; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 3px 0 #C9B8F5; }
.ak-chip:active { transform: translateY(2px); box-shadow: 0 1px 0 #C9B8F5; }
.ak-text { min-height: 130px; border-radius: 20px; border: 3px dashed #FFB3C6; background: #FFF8FA; font-size: 18px; }
.ak-send { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); font-family: var(--display); font-size: 21px; font-weight: 800; box-shadow: 0 5px 0 var(--yellow-d); cursor: pointer; animation: gxPulse 1.8s ease-in-out infinite; }
.ak-send svg { width: 22px; height: 22px; }
[dir="rtl"] .ak-send svg { transform: scaleX(-1); }
.ak-send:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--yellow-d); animation: none; }
.ak-wall { display: flex; flex-direction: column; gap: 10px; }
.ak-wall .ak-h2 { color: var(--purple); }
.ak-asked { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ak-q { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 18px 18px 18px 4px; background: #fff; border: 3px solid #C9B8F5; box-shadow: 0 4px 0 #C9B8F5; text-decoration: none; color: var(--ink); animation: gxPop .5s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); }
.ak-q:nth-child(3n+2) { border-color: #9AD8FF; box-shadow: 0 4px 0 #9AD8FF; } .ak-q:nth-child(3n+3) { border-color: #FFC2D4; box-shadow: 0 4px 0 #FFC2D4; }
.ak-who { font-size: 13px; font-weight: 800; color: #8E5BD9; }
.ak-t { font-weight: 800; font-size: 15px; line-height: 1.4; }
.ak-ok { background: radial-gradient(circle 46px at 94% 12%, #FFE066 96%, transparent 100%), linear-gradient(135deg, #37B24D, #2E9E4F 55%, #1F6B38); box-shadow: 0 6px 0 #17542B; padding: 26px 20px; }
.ak-check { position: relative; display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #fff; color: var(--green); box-shadow: 0 5px 0 rgba(0,0,0,.2); animation: gxPop .6s cubic-bezier(.2,1.6,.4,1) both; }
.ak-check svg { width: 60px; height: 60px; }
@media (prefers-reduced-motion: reduce) { .ak *, .ak .ak-q { animation: none !important; } }
@media (min-width: 700px) { .ak-asked { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* in-app game player */
body.playing { overflow: hidden; }
body.playing .tabs, body.playing header, body.playing .top { display: none !important; }
.play { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: #1B2340; }
.play-bar { display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: var(--blue); box-shadow: 0 4px 0 var(--blue-d); }
.play-bar .back { border-color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.25); min-height: 42px; font-size: 16px; }
.play-t { flex: 1 1 auto; color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-ext { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; text-decoration: none; }
.play-frame { flex: 1 1 auto; width: 100%; border: 0; background: #fff; }

.player.vertical { aspect-ratio: 9 / 16; width: min(100%, 360px, calc(72vh * 9 / 16)); margin-inline: auto; }

/* episode language switch */
.lang-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 10px; border-radius: 999px; background: #E6EEFF; border: 3px solid var(--line); }
.lang-tabs button { border: 0; border-radius: 999px; min-height: 42px; background: transparent; color: var(--muted); font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.lang-tabs button[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--blue-d); }
.chip-en { background: #E6EEFF; color: var(--blue); }

/* language */
.lang-btn { min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; border: 3px solid #fff; background: rgba(255,255,255,.18); color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; cursor: pointer; margin-inline-start: auto; }
.lang-btn:active { transform: translateY(2px); }
.launch-card { position: relative; }
.launch-lang { position: absolute; top: 12px; inset-inline-end: 12px; margin: 0; }
[dir="ltr"] .back-ic svg { transform: scaleX(-1); }

.launch-lang { border-color: var(--blue); background: #E6EEFF; color: var(--blue); }

/* home category tiles */
.cat { animation: gxPop .5s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); }
.cat-circle { position: relative; background: radial-gradient(circle at 32% 28%, #fff 0 18%, var(--ct) 46%); border-color: var(--cc); box-shadow: 0 5px 0 var(--cs), 0 0 0 5px color-mix(in srgb, var(--cc) 14%, transparent); }
.cat-circle img { animation: catBob 3s ease-in-out infinite; animation-delay: calc(var(--d) * 4); filter: drop-shadow(0 3px 0 rgba(0,0,0,.12)); }
.cat-name { color: #fff; background: var(--cc); padding: 3px 10px; border-radius: 999px; box-shadow: 0 3px 0 var(--cs); font-size: 13px; }
.cat:hover .cat-circle, .cat:focus-visible .cat-circle { transform: translateY(-3px) rotate(-4deg); }
.cat:active .cat-circle { transform: scale(.92); }
@keyframes catBob { 0%,100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-4px) rotate(-5deg); } 60% { transform: translateY(0) rotate(4deg); } }

/* category page */
.ct { gap: 16px; }
.ct-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 18px 20px 20px; text-align: center; color: #fff;
  background: radial-gradient(circle 52px at 6% 12%, rgba(255,255,255,.22) 96%, transparent 100%), radial-gradient(circle 40px at 96% 92%, rgba(255,210,63,.85) 96%, transparent 100%), linear-gradient(135deg, var(--cc), var(--cs)); box-shadow: 0 6px 0 color-mix(in srgb, var(--cs) 80%, #000); }
.ct-hero h1 { margin: 8px 0 6px; font-family: var(--display); font-size: 34px; line-height: 1.15; text-shadow: 0 3px 0 rgba(0,0,0,.2); position: relative; }
.ct-ic { position: relative; display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.18); animation: gxBob 2.6s ease-in-out infinite; }
.ct-ic img { width: 64px; height: 64px; object-fit: contain; }
.ct-chips { position: relative; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ct-chips span { background: #FFD23F; color: var(--ink); padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; box-shadow: 0 3px 0 var(--yellow-d); }
.ct-row { border: 3px solid color-mix(in srgb, var(--cc) 30%, #fff); box-shadow: 0 4px 0 color-mix(in srgb, var(--cc) 30%, #fff); border-radius: 20px; animation: gxPop .45s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); transition: transform .12s, box-shadow .12s; }
.ct-row:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--cc) 30%, #fff); }
.ct-thumb { position: relative; flex: 0 0 auto; }
.ct-thumb .thumb { width: 72px; height: 72px; border-radius: 16px; }
.ct-play { position: absolute; bottom: -4px; inset-inline-end: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--cc); color: #fff; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.ct-play svg { width: 14px; height: 14px; }
.ct-sv { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--ct); border: 2px dashed var(--cc); display: grid; place-items: center; }
.ct-sv img { width: 30px; height: 30px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .cat, .cat-circle img, .ct *, .ct-row { animation: none !important; } }

/* lively: home cards, episode, quiz, done */
.ep-info { gap: 10px; }
.ep-cat { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: 999px; background: var(--ct); color: var(--cc); border: 2px solid var(--cc); font-weight: 800; font-size: 13px; }
.ep-cat img { width: 24px; height: 24px; }
.ct .player { border: 4px solid var(--cc); box-shadow: 0 6px 0 var(--cs); }
.ct .ep-info .h1 { color: var(--cc); }
.ep-sv { border: 3px dashed var(--cc); background: var(--ct); }
.ep-sv img { animation: shFloat 3s ease-in-out infinite; }
.ep-quiz { animation: gxPulse 1.8s ease-in-out infinite; font-family: var(--display); font-size: 19px; }
.qz .progress { height: 16px; background: var(--ct); border: 2px solid color-mix(in srgb, var(--cc) 35%, #fff); }
.qz .progress > div { background: linear-gradient(90deg, var(--yellow), #FF9F1C); }
.qz-q { font-size: 23px; line-height: 1.35; background: #fff; border: 3px solid var(--cc); box-shadow: 0 5px 0 var(--cs); border-radius: 22px; padding: 16px; color: var(--ink); margin: 0; }
.qz .opt { display: flex; align-items: center; gap: 12px; border-radius: 20px; box-shadow: 0 4px 0 #B8C6E3; animation: gxPop .4s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); transition: transform .1s; }
.qz .opt:active { transform: translateY(3px); }
.qz-l { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--cc); color: #fff; font-family: var(--display); font-size: 18px; }
.qz .opt.right { box-shadow: 0 4px 0 var(--green); } .qz .opt.right .qz-l { background: var(--green); }
.qz .opt.wrong { box-shadow: 0 4px 0 var(--pink); } .qz .opt.wrong .qz-l { background: var(--pink); }
.dn { position: relative; overflow: hidden; border-radius: 28px; padding: 22px 16px 20px !important; background: radial-gradient(circle 60px at 8% 10%, #FFE066 96%, transparent 100%), radial-gradient(circle 46px at 94% 88%, #FFB3C6 96%, transparent 100%), linear-gradient(180deg, #FFF8E1, #FFE8B0); border: 3px solid #FFB703; box-shadow: 0 6px 0 #D9A90F; }
.dn .h1 { font-family: var(--display); font-size: 32px; color: var(--purple); position: relative; }
.dn .prize { position: relative; animation: pop .5s cubic-bezier(.2,1.6,.4,1), shFloat 3s ease-in-out .6s infinite; }
.dn .gx-spark { color: #FF9F1C; }
.lv-page .h1 { font-family: var(--display); color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .ep-sv img, .ep-quiz, .qz .opt, .dn .prize { animation: none !important; } }
.ct-sv:not(.got) img { filter: grayscale(.85); opacity: .55; }
.ct-sv.got { border-style: solid; background: #FFF3B0; box-shadow: 0 0 0 4px rgba(255,210,63,.35); }
.sh .item .sh-glow img.sh-dim { filter: grayscale(1) brightness(.4) contrast(1.1); opacity: .85; }

/* home: newest episodes */
.nw-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #fff; border: 3px solid var(--cc); box-shadow: 0 5px 0 var(--cs); text-decoration: none; color: var(--ink); animation: gxPop .5s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); transition: transform .12s, box-shadow .12s; }
.nw-card:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--cs); }
.nw-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #1B2340; }
.nw-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.nw-card:hover .nw-img img { transform: scale(1.05); }
.nw-play { position: absolute; bottom: 8px; inset-inline-end: 8px; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.nw-play svg { width: 20px; height: 20px; }
.nw-ribbon { position: absolute; top: 8px; inset-inline-start: 8px; background: #E63946; color: #fff; font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.nw-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 12px; }
.nw-cat { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 4px; border-radius: 999px; background: var(--cc); color: #fff; font-size: 11px; font-weight: 800; }
.nw-cat img { width: 18px; height: 18px; background: #fff; border-radius: 50%; padding: 1px; }
.nw-t { font-weight: 800; font-size: 15px; line-height: 1.35; color: var(--cc); }
.nw-card.first .nw-play { animation: nwPlay2 1.8s ease-in-out infinite; }
@keyframes nwPlay2 { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .nw-card, .nw-play { animation: none !important; } }

/* footer + contact */
.ft { margin-top: 14px; padding: 18px 8px 6px; text-align: center; border-top: 3px dashed var(--line); }
.ft-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 460px; margin: 0 auto; }
.ft-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 8px 10px; border-radius: 999px; background: #fff; white-space: nowrap; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); color: var(--blue); font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.ft-btn span { font-size: 18px; line-height: 1; }
.ft-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.ft-c { margin: 14px 0 0; font-size: 15px; font-weight: 800; color: var(--muted); line-height: 1.6; }
.cu { gap: 16px; }
.cu-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 18px 20px 20px; text-align: center; color: #fff;
  background: radial-gradient(circle 46px at 94% 12%, #FFE066 96%, transparent 100%), radial-gradient(circle 40px at 4% 92%, #9AD8FF 96%, transparent 100%), linear-gradient(135deg, #12B886, #0CA678 50%, #1C7ED6); box-shadow: 0 6px 0 #087F5B; }
.cu-hero h1 { margin: 4px 0 4px; font-family: var(--display); font-size: 34px; text-shadow: 0 3px 0 rgba(0,0,0,.2); position: relative; }
.cu-hero p { margin: 0; font-weight: 800; line-height: 1.6; position: relative; }
.cu-ic { position: relative; display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; font-size: 40px; box-shadow: 0 5px 0 rgba(0,0,0,.18); animation: gxBob 2.6s ease-in-out infinite; }
.cu-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 24px; background: #fff; border: 3px solid #96F2D7; box-shadow: 0 5px 0 #96F2D7; }
.cu-card label { font-weight: 800; color: var(--ink); margin-top: 4px; }
.cu-card textarea { min-height: 140px; resize: vertical; }
.cu-hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; inset-inline-start: -9999px; }
.cu-social { display: flex; flex-direction: column; gap: 10px; }
.cu-grid { display: grid; gap: 10px; }
.cu-s { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; color: #fff; text-decoration: none; box-shadow: 0 5px 0 rgba(0,0,0,.25); transition: transform .12s; }
.cu-s:active { transform: translateY(3px); }
.cu-s svg { width: 34px; height: 34px; flex: 0 0 auto; }
.cu-s span { display: flex; flex-direction: column; min-width: 0; }
.cu-s b { font-family: var(--display); font-size: 19px; }
.cu-s small { font-weight: 700; opacity: .9; overflow: hidden; text-overflow: ellipsis; }
.cu-s.yt { background: #E62117; } .cu-s.fb { background: #1877F2; } .cu-s.em { background: #7048E8; }
@media (min-width: 700px) { .cu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ft-btn.ct { background: #12B886; border-color: #12B886; color: #fff; box-shadow: 0 4px 0 #087F5B; }
.ft-btn.pv { background: #7048E8; border-color: #7048E8; color: #fff; box-shadow: 0 4px 0 #5034B8; }
.ft-btn.ct:active { box-shadow: 0 1px 0 #087F5B; } .ft-btn.pv:active { box-shadow: 0 1px 0 #5034B8; }
.ft-c { display: inline-block; padding: 6px 16px; border-radius: 999px; background: #E6EEFF; color: var(--blue-d); }

/* privacy page */
.pp-body { background: var(--bg); }
.pp { max-width: 820px; margin: 0 auto; padding: 16px 16px 40px; display: flex; flex-direction: column; gap: 16px; line-height: 1.85; color: var(--ink); }
.pp [hidden] { display: none !important; }
.pp article { display: flex; flex-direction: column; gap: 16px; }
.pp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pp-lang { margin: 0; border-color: var(--blue); background: #E6EEFF; color: var(--blue); }
.pp-hero { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 28px; padding: 22px 18px 20px;
  background: radial-gradient(circle 50px at 94% 10%, #FFE066 96%, transparent 100%), radial-gradient(circle 40px at 4% 94%, #9AD8FF 96%, transparent 100%), linear-gradient(135deg, #2456B8, #1B3F8A 60%, #7048E8); box-shadow: 0 6px 0 #142F6B; }
.pp-logo { width: 84px; height: 84px; border-radius: 50%; border: 4px solid #FFD23F; box-shadow: 0 4px 0 rgba(0,0,0,.2); position: relative; }
.pp-hero h1 { margin: 8px 0 2px; font-family: var(--display); font-size: 34px; line-height: 1.2; position: relative; }
.pp-hero p { margin: 0; font-weight: 700; opacity: .95; position: relative; }
.pp-date { display: inline-block; margin-top: 10px; padding: 4px 14px; border-radius: 999px; background: #FFD23F; color: var(--ink); font-weight: 800; font-size: 14px; position: relative; }
.pp-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pp-sum div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 8px; border-radius: 20px; background: #fff; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); line-height: 1.4; }
.pp-sum span { font-size: 28px; } .pp-sum b { font-family: var(--display); font-size: 16px; color: var(--blue); } .pp-sum small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pp-toc { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-radius: 20px; background: #fff; border: 2px dashed var(--line); }
.pp-toc a { padding: 4px 12px; border-radius: 999px; background: #E6EEFF; color: var(--blue); font-weight: 800; font-size: 13.5px; text-decoration: none; line-height: 1.6; }
.pp-card { padding: 16px 18px; border-radius: 22px; background: #fff; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); scroll-margin-top: 12px; }
.pp-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-family: var(--display); font-size: 22px; color: var(--blue-d); line-height: 1.3; }
.pp-card h2 span { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 16px; box-shadow: 0 3px 0 var(--blue-d); }
.pp-card p { margin: 6px 0; } .pp-card ul { margin: 6px 0; padding-inline-start: 22px; } .pp-card li { margin: 4px 0; }
.pp-card a { color: var(--blue); font-weight: 800; }
.pp-card code { background: #EEF2FA; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.pp-note { padding: 10px 12px; border-radius: 14px; background: #FFF8E1; border: 2px dashed #FFB703; font-weight: 700; font-size: 14.5px; }
.pp-kids { border-color: #96F2D7; box-shadow: 0 4px 0 #96F2D7; } .pp-kids h2 span { background: #12B886; box-shadow: 0 3px 0 #087F5B; }
.pp-table { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); margin: 8px 0; font-size: 14.5px; line-height: 1.6; }
.pp-tr { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.pp-tr span { padding: 8px 10px; border-top: 1px solid var(--line); }
.pp-tr span + span { border-inline-start: 1px solid var(--line); }
.pp-th span { background: var(--blue); color: #fff; font-weight: 800; border-top: 0; }
.pp-tr:nth-child(odd):not(.pp-th) span { background: #F7F9FF; }
.pp-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pp-btns .ft-btn { color: #fff; max-width: 100%; min-width: 0; } .pp-btns .ft-btn.ct { font-size: clamp(12px, 3.9vw, 16px); }
@media (max-width: 560px) {
  .pp-tr { grid-template-columns: 1fr; } .pp-tr span + span { border-inline-start: 0; border-top: 0; padding-top: 0; }
  .pp-tr span:nth-child(2)::before { content: "🕒 "; } .pp-tr span:nth-child(3)::before { content: "🎯 "; }
  .pp-tr span:nth-child(2), .pp-tr span:nth-child(3) { color: var(--muted); font-size: 13.5px; }
  .pp-tr:not(.pp-th) span:first-child { font-weight: 800; }
  .pp-th { display: none; }
}
@media (min-width: 700px) { .pp-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* sponsors */
.sp-wrap { position: relative; margin-top: 10px; }
.sp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 8px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 3px 0 rgba(0,0,0,.15); font-size: 14px; line-height: 1.2; }
.sp-badge small { color: var(--muted); font-weight: 700; font-size: 12px; }
.sp-badge img { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; }
.sp-badge b { font-weight: 800; }
.sp-home { text-align: center; } .sp-home .sp-badge { border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.sp-list { display: flex; flex-direction: column; gap: 10px; }
.sp-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: #fff; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); color: var(--ink); text-decoration: none; }
.sp-card img { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; flex: 0 0 auto; }
.sp-card span { display: flex; flex-direction: column; } .sp-card b { font-family: var(--display); font-size: 18px; } .sp-card small { color: var(--muted); font-weight: 700; }
@media (max-width: 380px) { .ft-links { grid-template-columns: 1fr; max-width: 260px; } }
.rk-em { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; align-self: center; filter: drop-shadow(0 2px 0 rgba(0,0,0,.12)); }
.rk-none { display: grid; place-items: center; font-size: 22px; border-radius: 50%; background: color-mix(in srgb, var(--rc) 12%, #fff); opacity: .7; }
.tr .rank .who { align-items: center; }

/* parents (signed in) */
.pk { gap: 16px; }
.pk-sec { padding: 14px; border-radius: 24px; background: #fff; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.pk-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--display); font-size: 21px; color: var(--blue-d); }
.pk-h span { margin-inline-start: auto; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: #E6EEFF; color: var(--blue); }
.pk-av { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #F1F5FF; }
.pk-av img { width: 50px; height: 50px; }
.pk-form { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 26px; scroll-margin-top: 12px;
  background: radial-gradient(circle 36px at 4% 6%, #FFE066 96%, transparent 100%), linear-gradient(180deg, #FFF8E1, #FFF1C7); border: 3px solid #FFB703; box-shadow: 0 6px 0 #D9A90F; }
.pk-fh { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-family: var(--display); font-size: 23px; color: #B35C00; position: relative; }
.pk-fh span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #FF9F1C; color: #fff; box-shadow: 0 3px 0 #D9480F; }
.pk-form label, .pk-lbl { font-weight: 800; color: var(--ink); }
.pk-name { font-size: 20px; min-height: 54px; border: 3px solid #FFD8A8; }
.pk-avatars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 4px; }
.pk-avatars .avatar { width: 100%; height: auto; aspect-ratio: 1; border-width: 3px; transition: transform .12s; }
.pk-avatars .avatar img { width: 72%; height: 72%; }
.pk-avatars .avatar[aria-pressed="true"] { border-color: #FF9F1C; background: #fff; box-shadow: 0 0 0 4px rgba(255,159,28,.3); transform: scale(1.08); }
.pk-danger { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border-radius: 20px; background: #FFF5F5; border: 2px dashed #FFC9C9; }
.pk-danger h2 { margin: 0 0 2px; font-size: 15px; color: #C92A2A; }
@media (min-width: 700px) { .pk-avatars { grid-template-columns: repeat(8, minmax(0, 1fr)); max-height: none; } }
.brand-name { white-space: nowrap; }
@media (max-width: 420px) { .brand-logo { width: 50px; height: 50px; } .brand-name { font-size: 19px; } .top .lang-btn { min-width: 40px; height: 40px; font-size: 15px; } .stars { padding: 6px 10px; } .stars img { width: 26px; height: 26px; } }
@media (max-width: 350px) { .brand-name { font-size: 16px; } .brand-logo { width: 42px; height: 42px; } }
.pk-danger { gap: 8px; align-items: stretch; }
.pk-dbtn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; background: #fff; border: 2px solid #FFC9C9; box-shadow: 0 3px 0 #FFC9C9; color: #C92A2A; font: inherit; text-align: start; cursor: pointer; }
.pk-dbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #FFC9C9; }
.pk-dbtn span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.pk-dbtn b { font-weight: 800; font-size: 15px; } .pk-dbtn small { font-size: 12px; color: #A61E4D; opacity: .8; font-weight: 700; }
.pk-dic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #FFE3E3; color: #C92A2A; }
.pk-dic svg { width: 22px; height: 22px; }
.pk-dbtn.strong { background: #FFF5F5; } .pk-dbtn.strong .pk-dic { background: #C92A2A; color: #fff; }
.pk-preview { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pk-av.big { width: 104px; height: 104px; background: #fff; border: 4px solid #FFB703; box-shadow: 0 5px 0 #D9A90F; animation: gxBob 2.6s ease-in-out infinite; }
.pk-av.big img { width: 80px; height: 80px; }
.pk-preview b { font-family: var(--display); font-size: 22px; color: #B35C00; }

/* sign-in page */
.lg { gap: 16px; }
.lg-hero { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 28px; padding: 20px 18px 22px;
  background: radial-gradient(circle 50px at 94% 12%, #FFE066 96%, transparent 100%), radial-gradient(circle 40px at 4% 92%, #9AD8FF 96%, transparent 100%), linear-gradient(135deg, #2456B8, #7048E8); box-shadow: 0 6px 0 #1B3F8A; }
.lg-lock { position: relative; display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.2); animation: gxBob 2.6s ease-in-out infinite; }
.lg-lock svg { width: 52px; height: 52px; }
.lg-hero h1 { position: relative; margin: 8px 0 4px; font-family: var(--display); font-size: 34px; text-shadow: 0 3px 0 rgba(0,0,0,.2); }
.lg-hero p { position: relative; margin: 0; font-weight: 800; font-size: 16px; line-height: 1.6; }
.lg-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 16px; border-radius: 26px; background: #fff; border: 3px solid #FFB703; box-shadow: 0 6px 0 #D9A90F; text-align: center; }
.lg-card h2 { margin: 0; font-family: var(--display); font-size: 21px; color: var(--blue-d); }
.lg-gbtn { width: 100%; max-width: 320px; min-height: 48px; display: flex; justify-content: center; }
.g-fb { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 320px; min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 1px solid #dadce0; background: #fff; color: #1f1f1f; font: 600 16px/1.2 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 1px 2px rgba(60,64,67,.25); }
.g-fb:active { transform: translateY(1px); }
.g-fb svg { flex: none; }
.lg-safe { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.7; }
.lg-safe a { color: var(--blue); font-weight: 800; }
.lg-h { margin: 4px 0 0; font-family: var(--display); font-size: 21px; color: var(--purple); }
.lg-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lg-perk { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 8px; border-radius: 20px; background: #fff; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); line-height: 1.4; animation: gxPop .45s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); }
.lg-perk span { font-size: 30px; } .lg-perk b { font-family: var(--display); font-size: 16px; color: var(--blue); } .lg-perk small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
@media (min-width: 700px) { .lg-perks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .tabs a { font-size: 10.5px; } .tabs a img { width: 27px; height: 27px; } }
/* kids: one compact row like the passport trail */

/* PIN pad + kid mode */
.pn { gap: 14px; }
.pn-ic { position: relative; display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.2); animation: gxBob 2.6s ease-in-out infinite; }
.pn-ic img { width: 50px; height: 50px; }
.pn-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 14px; border-radius: 28px; background: #fff; border: 3px solid #D0BFFF; box-shadow: 0 6px 0 #D0BFFF; }
.pn-dots { display: flex; gap: 14px; direction: ltr; padding: 10px 18px; border-radius: 999px; background: #F3F0FF; }
.pn-dots i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #B197FC; background: #fff; transition: background .15s, transform .2s cubic-bezier(.2,1.6,.4,1); }
.pn-dots i.on { transform: scale(1.18); border-color: #fff; }
.pn-dots i.on:nth-child(1) { background: #FF5E7E; } .pn-dots i.on:nth-child(2) { background: #FFB703; } .pn-dots i.on:nth-child(3) { background: #2E9E4F; } .pn-dots i.on:nth-child(4) { background: #1C7ED6; }
.pn-keys { display: grid; grid-template-columns: repeat(3, 76px); gap: 12px; direction: ltr; }
.pn-keys button { --kc: #4DABF7; height: 66px; border-radius: 22px; border: 3px solid var(--kc); background: color-mix(in srgb, var(--kc) 14%, #fff); box-shadow: 0 5px 0 var(--kc); font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--ink); cursor: pointer;
  animation: gxPop .4s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d, 0s); transition: transform .08s, box-shadow .08s; }
.pn-keys button:nth-child(3n+2) { --kc: #FF8FA3; } .pn-keys button:nth-child(3n) { --kc: #FFC53D; }
.pn-keys button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--kc); }
.pn-keys .pn-del { --kc: #ADB5BD; font-size: 24px; }
.shake { animation: pnShake .4s; }
@keyframes pnShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@media (max-width: 360px) { .pn-keys { grid-template-columns: repeat(3, 66px); } .pn-keys button { height: 58px; } }
@media (prefers-reduced-motion: reduce) { .pn *, .pn-keys button { animation: none !important; } }
.km-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 26px; background: linear-gradient(180deg, #FFFBEA, #FFF3C4); border: 3px solid #FFD23F; box-shadow: 0 5px 0 #D9A90F; }
.km-card.on { background: linear-gradient(180deg, #F0FBF3, #DDF5E3); border-color: #2E9E4F; box-shadow: 0 5px 0 #1F6B38; }
.km-top { display: flex; align-items: flex-start; gap: 12px; }
.km-ic { flex: 0 0 auto; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 3px solid #FFD23F; box-shadow: 0 3px 0 #D9A90F; }
.km-card.on .km-ic { border-color: #2E9E4F; box-shadow: 0 3px 0 #1F6B38; }
.km-ic img { width: 34px; height: 34px; }
.km-tx { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; line-height: 1.5; }
.km-tx b { font-family: var(--display); font-size: 21px; color: var(--ink); line-height: 1.2; }
.km-tx small { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.km-state { flex: 0 0 auto; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; background: #fff; color: #B35C00; border: 2px solid #FFD23F; }
.km-card.on .km-state { background: #2E9E4F; color: #fff; border-color: #2E9E4F; }
.km-main { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); font-family: var(--display); font-size: 20px; font-weight: 800; text-decoration: none; box-shadow: 0 5px 0 var(--yellow-d); cursor: pointer; transition: transform .1s, box-shadow .1s; }
.km-main:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--yellow-d); }
.km-main.off { background: #fff; color: #1F6B38; border: 3px solid #2E9E4F; box-shadow: 0 5px 0 #1F6B38; }
.km-main.off:active { box-shadow: 0 1px 0 #1F6B38; }
.km-sub { align-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 16px; border-radius: 999px; background: #fff; border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); color: var(--blue); font-weight: 800; font-size: 15px; text-decoration: none; }
.km-sub:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.km-tip { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.7); border: 2px dashed rgba(0,0,0,.08); font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.6; }

/* PIN pop-up */
body.pm-open { overflow: hidden; }
.pm { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(27, 20, 70, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: pmFade .2s ease both; }
.pm-box { position: relative; width: 100%; max-width: 360px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 16px 18px; border-radius: 30px; background: radial-gradient(circle 40px at 92% 6%, #FFE066 96%, transparent 100%), #fff; border-color: #B197FC; box-shadow: 0 8px 0 #7048E8, 0 20px 50px rgba(0,0,0,.3); animation: pmPop .35s cubic-bezier(.2,1.5,.4,1) both; }
.pm-box h2 { margin: 2px 0 0; font-family: var(--display); font-size: 24px; color: #5F3DC4; }
.pm-sub { margin: 0; font-weight: 700; color: var(--muted); line-height: 1.6; font-size: 14.5px; }
.pm-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--muted); font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.pm-box .pn-ic { width: 70px; height: 70px; background: #FFF3BF; border: 3px solid #FFD23F; box-shadow: 0 4px 0 #D9A90F; }
.pm-box .pn-ic img { width: 42px; height: 42px; }
.pm-box .msg:empty { display: none; }
@keyframes pmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pmPop { from { transform: scale(.85) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-height: 640px) { .pm-box .pn-ic { display: none; } .pn-keys button { height: 54px; } }

/* home: Ask Yahya banner (same shape as the weekly-episode banner) */
.ask-banner { background: #A61E4D; }
.ask-banner .ab-ic { flex: 0 0 auto; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #fff; border: 4px solid var(--yellow); box-shadow: 0 0 0 3px rgba(255,210,63,.35); }
.ask-banner .ab-ic img { width: 46px; height: 46px; animation: gxBob 2.6s ease-in-out infinite; }
.ask-banner .sub { color: #FFD6E4; }

/* episode share */
.ep-share { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 3px solid var(--cc, var(--blue)); border-radius: 999px; background: #fff; color: var(--cc, var(--blue)); font-family: var(--display); font-size: 17px; font-weight: 800; box-shadow: 0 4px 0 var(--cc, var(--blue)); cursor: pointer; }
.ep-share svg { width: 22px; height: 22px; }
.ep-share:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cc, var(--blue)); }
.share-sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.share-sheet[hidden] { display: none; }
.share-sheet a, .share-sheet button { display: grid; place-items: center; min-height: 46px; border-radius: 16px; border: 0; color: #fff; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.sh-wa { background: #25D366; } .sh-fb { background: #1877F2; } .sh-cp { background: #7048E8; }

/* install banner + guide */
.in { gap: 14px; }
.in-hero { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 28px; padding: 18px 18px 20px;
  background: radial-gradient(circle 46px at 94% 12%, #FFE066 96%, transparent 100%), radial-gradient(circle 36px at 4% 94%, #96F2D7 96%, transparent 100%), linear-gradient(135deg, #0B7285, #1C7ED6); box-shadow: 0 6px 0 #095A69; }
.in-hero h1 { position: relative; margin: 8px 0 4px; font-family: var(--display); font-size: 30px; text-shadow: 0 3px 0 rgba(0,0,0,.2); }
.in-hero p { position: relative; margin: 0; font-weight: 800; line-height: 1.6; }
.in-phone { position: relative; display: inline-grid; place-items: center; width: 70px; height: 104px; border-radius: 18px; background: #1B2340; border: 4px solid #fff; box-shadow: 0 5px 0 rgba(0,0,0,.25); animation: gxBob 2.6s ease-in-out infinite; }
.in-phone img { width: 46px; height: 46px; border-radius: 12px; }
.in-done { padding: 12px 14px; border-radius: 18px; background: #EFFBF2; border: 3px solid var(--green); color: var(--green-d); font-weight: 800; text-align: center; }
.in-warn { padding: 12px 14px; border-radius: 18px; background: #FFF4E6; border: 3px solid #FFA94D; color: #9C3108; font-weight: 800; line-height: 1.6; }
.in-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: #E3FAFC; border: 3px solid #99E9F2; }
.in-tabs button { min-height: 46px; border: 0; border-radius: 999px; background: transparent; color: #0B7285; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.in-tabs button[aria-pressed="true"] { background: #0B7285; color: #fff; box-shadow: 0 3px 0 #095A69; }
.in-now { text-decoration: none; }
.in-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.in-steps li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: #fff; border: 3px solid #C5F6FA; box-shadow: 0 4px 0 #99E9F2; animation: gxPop .45s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); }
.in-n { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #0B7285; color: #fff; font-family: var(--display); font-weight: 800; }
.in-ic { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #E3FAFC; color: #0B7285; font-size: 24px; }
.in-ic svg { width: 26px; height: 26px; }
.in-tx { display: flex; flex-direction: column; gap: 2px; line-height: 1.5; min-width: 0; } .in-tx b { font-size: 16px; } .in-tx small { color: var(--muted); font-weight: 700; }
.in-now[hidden] { display: none !important; }
.in-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; }
.os-ic { width: 24px; height: 24px; flex: 0 0 auto; }
.os-apple { display: inline-block; background: currentColor; -webkit-mask: url(/assets/os_ios.png) center / contain no-repeat; mask: url(/assets/os_ios.png) center / contain no-repeat; }
.in-tabs button[aria-pressed="true"] img.os-ic { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); }

/* lively header */
.top { overflow: hidden; isolation: isolate;
  background: radial-gradient(circle 30px at 30% -8px, rgba(255,210,63,.9) 96%, transparent 100%), radial-gradient(circle 26px at 4% 110%, rgba(255,143,177,.8) 96%, transparent 100%), linear-gradient(120deg, #2456B8 0%, #3B5BDB 55%, #7048E8 100%);
  box-shadow: 0 6px 0 #1B3F8A; }
.top::before, .top::after { content: "★"; position: absolute; z-index: -1; color: rgba(255,255,255,.35); font-size: 14px; animation: gxTwinkle 2.4s ease-in-out infinite; }
.top::before { top: 12px; left: 38%; } .top::after { bottom: 10px; left: 52%; font-size: 10px; animation-delay: 1s; }
.brand { gap: 12px; }
.brand-logo { border-width: 4px; box-shadow: 0 0 0 4px rgba(255,210,63,.3), 0 3px 0 #163A80; animation: hdrBob 3.2s ease-in-out infinite; }
.brand-text { gap: 6px; }
.brand-name { font-size: 22px; text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.brand-hello { align-self: flex-start; max-width: 100%; padding: 3px 12px 3px 10px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.35); color: #fff; font-size: 13px; font-weight: 800; line-height: 1.4; }
.stars { background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 var(--yellow-d); padding: 5px 12px 5px 6px; }
.stars svg path { fill: #E8590C; }
.stars img { width: 32px; height: 32px; background: #fff; border-radius: 50%; padding: 2px; }
.top .lang-btn { background: rgba(255,255,255,.18); }
@keyframes hdrBob { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .brand-logo, .top::before, .top::after { animation: none; } }
@media (max-width: 360px) { .top { gap: 6px; padding-inline: 10px; } .brand { gap: 8px; } .brand-name { font-size: 15.5px; } .brand-hello { font-size: 11.5px; padding: 2px 8px; } .top .lang-btn { min-width: 34px; height: 34px; font-size: 13px; padding: 0 6px; } .stars { padding: 4px 8px 4px 4px; gap: 4px; font-size: 14px; } .stars img { width: 26px; height: 26px; } }
.brand-hello b { font-weight: 800; color: var(--yellow); }
[dir="ltr"] .top { background: radial-gradient(circle 30px at 70% -8px, rgba(255,210,63,.9) 96%, transparent 100%), radial-gradient(circle 26px at 96% 110%, rgba(255,143,177,.8) 96%, transparent 100%), linear-gradient(240deg, #2456B8 0%, #3B5BDB 55%, #7048E8 100%); }

/* in-app browser hint */
.iab { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 8px; border-radius: 999px; background: linear-gradient(135deg, #FFE8A3, #FFC9A0); border: 2px solid #FF9F1C; box-shadow: 0 3px 0 #D9480F; animation: gxPop .45s cubic-bezier(.2,1.4,.4,1) both; }
.iab-ic { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; font-size: 17px; }
.iab-t { flex: 1 1 auto; min-width: 0; font-weight: 800; font-size: 13px; line-height: 1.3; color: #7A2E05; }
.iab-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: #E8590C; color: #fff; font-weight: 800; font-size: 13px; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 0 #A33A05; }
.iab-cp, .iab-x { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.75); color: #9C3108; font-size: 13px; font-weight: 800; cursor: pointer; }
@media (max-width: 360px) { .iab-cp { display: none; } .iab-t { font-size: 12px; } .iab-go { padding: 0 10px; font-size: 12px; } }
.iab.manual { border-radius: 20px; } .iab.manual .iab-t { font-size: 12.5px; } .iab-t b { color: #C2410C; }
.iab.manual .iab-cp { background: #E8590C; color: #fff; box-shadow: 0 2px 0 #A33A05; animation: gxPulse 1.4s ease-in-out infinite; }

/* ---------- parent report */
.rp-entry-sub { margin: -4px 0 10px; color: var(--muted); font-size: 13.5px; }
.rp-kidrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 2px 0 4px; }
@media (min-width: 700px) { .rp-kidrow { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rp-kidbtn { flex: 0 0 auto; min-width: 104px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: linear-gradient(160deg, #FFF6D6, #FFE3EC); border: 2px solid #FFD23F; box-shadow: 0 4px 0 #D9A90F; }
.rp-kidbtn img { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid #fff; }
.rp-kidbtn b { font-size: 15px; } .rp-kidbtn small { color: #C2410C; font-weight: 800; font-size: 12px; }
.rp-kidbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 #D9A90F; }
.rp-sheet { display: flex; flex-direction: column; gap: 14px; }
#rpBody { display: flex; flex-direction: column; gap: 14px; }
.rp-hero { border-radius: 24px; padding: 14px 16px; background: linear-gradient(135deg, #2456B8, #5B2A9E); color: #fff; box-shadow: 0 5px 0 #1B3F8A; display: flex; gap: 12px; align-items: center; }
.rp-hero > img:first-child { width: 58px; height: 58px; border-radius: 50%; background: #fff; border: 3px solid var(--yellow); flex: 0 0 auto; }
.rp-hero div { flex: 1; min-width: 0; } .rp-hero b { font-family: var(--display); font-size: 21px; display: block; line-height: 1.2; } .rp-hero span { font-size: 14px; color: #DCE6FF; }
.rp-logo { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; opacity: .95; }
.rp-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.rp-pill { flex: 0 0 auto; border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; min-height: 42px; font-weight: 800; font-size: 14px; color: var(--ink); }
.rp-pill.on { background: var(--yellow); border-color: var(--yellow-d); box-shadow: 0 3px 0 var(--yellow-d); }
.rp-dates { display: flex; gap: 8px; }
.rp-dates label { flex: 1; min-width: 0; background: #fff; border: 2px dashed #9DB4E6; border-radius: 14px; padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.rp-dates input { border: 0; background: transparent; font-weight: 800; font-size: 15px; color: var(--ink); padding: 2px 0; min-height: 30px; width: 100%; }
.rp-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rp-k { border-radius: 20px; padding: 12px 14px; color: #fff; min-width: 0; }
.rp-k i { font-style: normal; font-size: 22px; } .rp-k b { display: block; font-family: var(--display); font-size: 24px; line-height: 1.15; white-space: nowrap; } .rp-k span { font-size: 13px; opacity: .95; }
.rp-k.k1 { background: #2E9E4F; box-shadow: 0 4px 0 #1F6B38; } .rp-k.k2 { background: #D6336C; box-shadow: 0 4px 0 #9A1248; }
.rp-k.k3 { background: #D9480F; box-shadow: 0 4px 0 #9C3108; } .rp-k.k4 { background: #1C7ED6; box-shadow: 0 4px 0 #13599A; }
.rp-card { background: #fff; border-radius: 22px; padding: 14px; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.rp-card h3 { margin: 0 0 10px; font-family: var(--display); font-size: 18px; }
.rp-fav { display: flex; align-items: center; gap: 10px; background: var(--ct); border-radius: 16px; padding: 10px; margin-bottom: 8px; }
.rp-fav img { width: 46px; height: 46px; } .rp-fav b { font-family: var(--display); font-size: 18px; color: var(--cc); display: block; } .rp-fav small { color: var(--muted); font-weight: 700; }
.rp-bar { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin: 8px 0; }
.rp-bar > div { height: 14px; border-radius: 999px; background: #EEF2FB; overflow: hidden; } .rp-bar i { display: block; height: 100%; border-radius: 999px; }
.rp-bar em { font-style: normal; color: var(--muted); min-width: 40px; text-align: end; }
.rp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rp-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.rp-list .dot { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; } .rp-list .dot img { width: 24px; height: 24px; }
.rp-tt { flex: 1; min-width: 0; } .rp-tt small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.rp-star { color: #F2B705; font-size: 16px; letter-spacing: -1px; white-space: nowrap; } .rp-star i { font-style: normal; color: #E2E8F5; }
.rp-pend { color: #9C3108; background: #FFEBDD; border-radius: 999px; padding: 3px 8px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.rp-game { display: flex; align-items: center; gap: 10px; } .rp-game + .rp-game { margin-top: 10px; }
.rp-game img { width: 68px; height: 46px; border-radius: 12px; object-fit: cover; } .rp-game b { display: block; } .rp-game small { color: var(--muted); font-weight: 700; }
.rp-sv { display: flex; gap: 10px; flex-wrap: wrap; } .rp-sv figure { margin: 0; width: 76px; text-align: center; }
.rp-sv img { width: 60px; height: 60px; background: #FFF6D6; border-radius: 16px; padding: 6px; border: 2px solid var(--yellow); }
.rp-sv figcaption { font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.rp-sub { margin: 10px 0 0; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.rp-q { background: #EEE5FF; border-radius: 14px; padding: 10px 12px; font-size: 14px; font-weight: 600; } .rp-q + .rp-q { margin-top: 6px; }
.rp-q small { display: block; color: #5B2A9E; font-weight: 800; margin-top: 4px; font-size: 12px; }
.rp-none { font-size: 14px; } .rp-note { margin: 0; font-size: 12.5px; color: #13599A; background: #E1F0FF; border-radius: 12px; padding: 8px 10px; font-weight: 700; }
.rp-empty { text-align: center; background: #fff; border: 2px dashed var(--line); border-radius: 22px; padding: 24px 16px; }
.rp-empty span { font-size: 40px; } .rp-empty b { display: block; font-family: var(--display); font-size: 19px; margin: 6px 0; } .rp-empty p { margin: 0; color: var(--muted); font-size: 14px; }
.rp-foot { margin: 0; text-align: center; font-size: 12px; color: var(--muted); font-weight: 700; }
.rp-pdf { background: #E8590C; color: #fff; box-shadow: 0 4px 0 #A33A05; width: 100%; }
.rp-pdf:disabled { opacity: .7; }
/* report PDF: one compact A4 page */
.rp-print { padding: 22px 24px; gap: 12px; }
.rp-print #rpBody { gap: 12px; }
.rp-print .rp-hero { padding: 12px 16px; border-radius: 20px; box-shadow: 0 4px 0 #1B3F8A; }
.rp-print .rp-hero b { font-size: 22px; } .rp-print .rp-hero span { font-size: 14px; }
.rp-print .rp-kpis { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rp-print .rp-k { padding: 10px 12px; border-radius: 16px; } .rp-print .rp-k i { font-size: 18px; } .rp-print .rp-k b { font-size: 22px; } .rp-print .rp-k span { font-size: 12px; }
.rp-print .rp-note { font-size: 11.5px; padding: 6px 10px; }
.rp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.rp-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rp-print .rp-card { padding: 11px 12px; border-radius: 18px; box-shadow: 0 3px 0 var(--line); }
.rp-print .rp-card h3 { font-size: 16px; margin-bottom: 8px; }
.rp-print .rp-fav { padding: 8px; margin-bottom: 4px; } .rp-print .rp-fav img { width: 38px; height: 38px; } .rp-print .rp-fav b { font-size: 16px; }
.rp-print .rp-bar { margin: 5px 0; font-size: 12px; }
.rp-print .rp-list { gap: 7px; } .rp-print .rp-list li { font-size: 13px; } .rp-print .rp-list .dot { width: 30px; height: 30px; } .rp-print .rp-list .dot img { width: 20px; height: 20px; }
.rp-print .rp-game img { width: 56px; height: 38px; }
.rp-print .rp-sv figure { width: 64px; } .rp-print .rp-sv img { width: 50px; height: 50px; }
.rp-print .rp-q { padding: 8px 10px; font-size: 13px; }
.rp-more { margin: 8px 0 0; font-size: 12px; font-weight: 800; color: var(--muted); }
.rp-print .rp-foot { font-size: 11px; }
/* header slides away while scrolling down, comes back on scroll up */
.top { will-change: transform; }

/* ---------- shelf by section */
.shc-grid { display: flex; flex-direction: column; gap: 14px; }
.shc { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 8px; padding: 12px 10px 10px; border-radius: 24px; text-decoration: none; color: #fff;
  background: radial-gradient(circle at 85% 0%, rgba(255,255,255,.35) 0 22%, transparent 23%), linear-gradient(160deg, color-mix(in srgb, var(--cc) 72%, #fff), var(--cc) 70%);
  border: 3px solid #fff; box-shadow: 0 6px 0 var(--cs), 0 10px 18px rgba(27,35,64,.12); animation: gxPop .45s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); min-width: 0; }
.shc::before, .shc::after { content: "★"; position: absolute; z-index: -1; color: rgba(255,255,255,.45); animation: gxTwinkle 2.4s ease-in-out infinite; }
.shc::before { top: 8px; inset-inline-end: 12px; font-size: 14px; } .shc::after { top: 44%; inset-inline-start: 8px; font-size: 10px; animation-delay: 1.1s; }
.shc:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--cs); }
.shc-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.shc-ic { width: 40px; height: 40px; flex: 0 0 auto; background: #fff; border-radius: 50%; padding: 5px; box-shadow: 0 3px 0 var(--cs); }
.shc-top b { font-family: var(--display); font-size: 16.5px; line-height: 1.15; color: #fff; text-shadow: 0 2px 0 var(--cs); flex: 1; min-width: 0; }
.shc-full { font-size: 20px; filter: drop-shadow(0 2px 0 var(--cs)); animation: shFloat 2.6s ease-in-out infinite; }
.shc-plank { display: flex; align-items: flex-end; justify-content: center; gap: 4px; min-height: 62px; padding: 6px 6px 0; border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, #FFF6D6 0 30%, transparent 70%), linear-gradient(180deg, #F6D7A8, #E5B077); border-bottom: 9px solid #8A5A34; box-shadow: inset 0 0 0 3px #D9A066, 0 3px 0 #6B4428; }
.shc-plank img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(0,0,0,.22)); }
.shc-plank img.off { filter: grayscale(1) brightness(.55); opacity: .55; width: 36px; height: 36px; }
.shc-soon { align-self: center; font-size: 12px; font-weight: 800; color: #6B4428; padding-bottom: 8px; text-align: center; }
.shc-meter { height: 12px; border-radius: 999px; background: rgba(255,255,255,.35); overflow: hidden; border: 2px solid #fff; }
.shc-meter span { display: block; height: 100%; background: var(--yellow); border-radius: 999px; }
.shc-cnt { align-self: center; font-size: 12.5px; font-weight: 800; color: var(--cs); background: #fff; border-radius: 999px; padding: 3px 12px; box-shadow: 0 2px 0 var(--cs); }
.shc.soon { filter: saturate(.55); opacity: .85; border-style: dashed; box-shadow: 0 4px 0 var(--cs); }
.shc-myst { background: #fff; border: 2px dashed #C9B6F2; border-radius: 22px; padding: 12px; }
.shc-myst h2 { margin: 0 0 8px; font-family: var(--display); font-size: 17px; color: #5B2A9E; }
.shc-myst div { display: flex; gap: 10px; overflow-x: auto; }
.shc-myst span { flex: 0 0 auto; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.shc-myst img { width: 46px; height: 46px; } .shc-myst small { font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.shc-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 16px 18px 18px; text-align: center; color: #fff; background: var(--cc); box-shadow: 0 6px 0 var(--cs); }
.shc-hero > img { width: 64px; height: 64px; background: #fff; border-radius: 50%; padding: 8px; box-shadow: 0 4px 0 var(--cs); }
.shc-hero h1 { margin: 6px 0 0; font-family: var(--display); font-size: 28px; line-height: 1.15; text-shadow: 0 3px 0 var(--cs); }
/* sections stacked: compact rows */
.shc-grid { gap: 10px; }
.shc { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 26px; grid-template-areas: "ic name plank go" "ic bar plank go"; align-items: center; column-gap: 10px; row-gap: 4px; padding: 9px 10px; border-radius: 20px; border-width: 2px; box-shadow: 0 4px 0 var(--cs); }
.shc-top { display: contents; }
.shc-ic { grid-area: ic; width: 42px; height: 42px; padding: 4px; box-shadow: 0 2px 0 var(--cs); }
.shc-top b { grid-area: name; font-size: 16px; align-self: end; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shc-full { position: absolute; top: 2px; inset-inline-start: 2px; font-size: 15px; }
.shc-go { grid-area: go; width: 26px; height: 26px; box-shadow: 0 2px 0 var(--cs); display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--cs); }
.shc-go svg { width: 15px; height: 15px; }
[dir="ltr"] .shc-go { transform: scaleX(-1); }
.shc-plank { grid-area: plank; min-height: 44px; padding: 3px 6px 0; gap: 3px; border-radius: 10px; border-bottom-width: 6px; box-shadow: inset 0 0 0 2px #D9A066, 0 2px 0 #6B4428; }
.shc-plank img { width: 32px; height: 32px; } .shc-plank img.off { width: 26px; height: 26px; }
.shc-soon { font-size: 10.5px; padding: 0 2px 6px; max-width: 92px; line-height: 1.3; }
.shc-bottom { grid-area: bar; display: flex; align-items: center; gap: 6px; align-self: start; min-width: 0; }
.shc-meter { flex: 1; height: 9px; border-width: 1.5px; min-width: 30px; }
.shc-cnt { background: none; box-shadow: none; padding: 0; color: #fff; font-size: 11.5px; white-space: nowrap; }
.shc::before { top: 4px; font-size: 11px; } .shc::after { display: none; }

/* ---------- Ask Yahya: "already answered / asked before" pop-up */
.am-box { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding-top: 26px;
  background: radial-gradient(circle 46px at 90% 4%, #FFE066 96%, transparent 100%), #fff; border: 3px solid #FFB3C7; box-shadow: 0 8px 0 #D6336C, 0 20px 50px rgba(0,0,0,.3); }
.am-badge { font-family: var(--display); font-weight: 800; font-size: 19px; color: #fff; background: linear-gradient(135deg, #E8590C, #D6336C); padding: 8px 16px; border-radius: 999px; box-shadow: 0 4px 0 #9A1248; margin-inline-end: 28px; }
.am-ep { width: 100%; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--ct); border: 3px solid var(--cc); border-radius: 22px; overflow: hidden; box-shadow: 0 5px 0 var(--cc); }
.am-thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--ct); }
.am-thumb > img { width: 100%; height: 100%; object-fit: cover; } .am-thumb > img.am-ic { width: 72px; height: 72px; object-fit: contain; }
.am-play { position: absolute; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 80%, #fff), var(--cc)); border: 3px solid #fff;
  box-shadow: 0 4px 0 rgba(0,0,0,.18), 0 8px 22px rgba(0,0,0,.28); }
.am-play::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid rgba(255,255,255,.75); animation: amRing 1.8s ease-out infinite; }
.am-play svg { width: 30px; height: 30px; margin-left: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
@keyframes amRing { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .am-play::before { animation: none; opacity: .5; } }
.am-tx { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; text-align: start; }
.am-tx small { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 12px; color: var(--cc); } .am-tx small img { width: 18px; height: 18px; }
.am-tx b { font-family: var(--display); font-size: 19px; line-height: 1.3; }
.am-main { width: 100%; }
.am-alt { width: 100%; min-height: 50px; border: 3px solid #FFB3C7; border-radius: 16px; background: #fff; color: #C2255C; font-weight: 800; font-size: 16px; padding: 10px 14px; box-shadow: 0 4px 0 #FFB3C7; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.am-alt:active { transform: translateY(3px); box-shadow: 0 1px 0 #FFB3C7; }
.am-big { font-size: 54px; line-height: 1; animation: shFloat 2.6s ease-in-out infinite; }
.am-box h2 { margin: 0; font-family: var(--display); font-size: 25px; color: #C2410C; }
.am-q { margin: 0; width: 100%; background: #EEE5FF; border-radius: 16px; padding: 10px 12px; font-weight: 700; color: #3B1E7A; }
.am-thumb { overflow: hidden; } .am-thumb > img.yt { position: absolute; top: 50%; left: 0; width: 100%; height: 134%; transform: translateY(-50%); }  /* YouTube hqdefault has black bars */
.am-pi { width: 22px; height: 22px; padding: 4px; box-sizing: content-box; border-radius: 50%; background: var(--ink); color: var(--yellow); }
/* YouTube "hqdefault" thumbnails carry black bars top and bottom: zoom past them */
.nw-img img.yt { transform: scale(1.34); }
.thumb-box { overflow: hidden; position: relative; } .thumb-box img { width: 100%; height: 100%; object-fit: cover; display: block; } .thumb-box img.yt { transform: scale(1.34); }

/* locked souvenir pop-up */
.sv-box { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 26px;
  background: radial-gradient(circle 46px at 90% 4%, #FFE066 96%, transparent 100%), #fff; border: 3px solid var(--cc); box-shadow: 0 8px 0 var(--cs), 0 20px 50px rgba(0,0,0,.3); }
.sv-stage { position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #FFF3B0 0 40%, var(--ct) 41% 100%); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--cc), 0 6px 0 3px var(--cs); }
.sv-stage img { width: 104px; height: 104px; filter: grayscale(.85) brightness(.7) drop-shadow(0 4px 0 rgba(0,0,0,.2)); animation: shFloat 3s ease-in-out infinite; }
.sv-lock { position: absolute; bottom: -2px; inset-inline-end: 4px; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 3px 0 var(--cs); border: 3px solid var(--cc); }
.sv-box h2 { margin: 4px 0 0; font-family: var(--display); font-size: 25px; color: var(--cs); }
.sv-ep { display: flex; align-items: center; gap: 8px; width: 100%; background: var(--ct); border-radius: 14px; padding: 8px 12px; text-align: start; }
.sv-ep img { width: 28px; height: 28px; flex: 0 0 auto; } .sv-ep b { font-size: 15px; line-height: 1.35; }
.sv-go { width: 100%; }
button.item { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; cursor: pointer; }
/* close (✕) buttons on all pop-ups: red */
.pm-x { background: #E03131; border-color: #fff; color: #fff; box-shadow: 0 3px 0 #A61E1E; }
.pm-x:active { transform: translateY(2px); box-shadow: 0 1px 0 #A61E1E; }
.pm-x { display: grid; place-items: center; padding: 0; } .pm-x svg { width: 22px; height: 22px; }
/* shelf certificate */
.sc-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: #F1F3F5; border: 3px dashed #ADB5BD; color: var(--ink); text-decoration: none; }
.sc-card .sc-ic { font-size: 30px; } .sc-card b { display: block; font-family: var(--display); font-size: 18px; } .sc-card small { color: var(--muted); font-weight: 700; }
.sc-card.on { background: linear-gradient(135deg, #FFE066, #FFB703); border: 3px solid #fff; box-shadow: 0 5px 0 #D9A90F, 0 10px 20px rgba(217,169,15,.35); animation: nwPlay2 1.8s ease-in-out infinite; }
.sc-card.on small { color: #6B4428; }
.dn-full { font-family: var(--display); font-size: 20px; font-weight: 800; color: #C2410C; background: #FFF3BF; border-radius: 16px; padding: 10px 14px; }
.dn-left { margin: 0; font-weight: 800; color: var(--purple); background: #EEE5FF; border-radius: 14px; padding: 10px 14px; }
.sv-stage.won img { filter: drop-shadow(0 4px 0 rgba(0,0,0,.2)); }
.sv-stage.won .sv-lock { color: #2E9E4F; font-weight: 900; }
.sv-stars { font-size: 26px; }
.sv-go2 { width: 100%; }
/* "new update" pop-up */
.upd-box { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 26px; }
.upd-ic { font-size: 60px; line-height: 1; animation: shFloat 2.4s ease-in-out infinite; }
.upd-box h2 { margin: 0; font-family: var(--display); font-size: 25px; color: #5F3DC4; }
.upd-go { width: 100%; }
.upd-ic { animation: none; display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, #FFF3B0 0 40%, #E5DBFF 41%); border: 4px solid #fff; box-shadow: 0 0 0 3px #B197FC; overflow: hidden; }
.upd-ic img { width: 84px; height: 84px; animation: updLaunch 1.6s ease-in-out infinite; }
@keyframes updLaunch { 0%,100% { transform: translateY(4px) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .upd-ic img { animation: none; } }
.btn-white { background: #fff; color: var(--blue); border: 3px solid var(--blue); box-shadow: 0 4px 0 var(--blue-d); }
.btn-white:active, .btn-yellow:active { transform: translateY(3px); }
.btn-white:active { box-shadow: 0 1px 0 var(--blue-d); }
.upd-later { width: 100%; }
.upd-pi path { stroke: var(--yellow); }
.ft-v { margin: 4px 0 0; text-align: center; font-size: 12px; color: var(--muted); opacity: .8; }
.upd-ver { background: #E5DBFF; color: #5F3DC4; border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: 14px; }
.upd-ver b { font-family: system-ui, sans-serif; }
.upd-notes { width: 100%; text-align: start; background: #F8F9FF; border: 2px dashed #D0BFFF; border-radius: 16px; padding: 10px 12px; }
.upd-notes b { color: #5F3DC4; font-size: 14px; }
.upd-notes ul { margin: 6px 0 0; padding-inline-start: 20px; display: grid; gap: 4px; font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.upd-notes li::marker { content: '✨ '; }
.ft-v span { font-family: system-ui, sans-serif; font-weight: 700; }

/* ---------- "for you" suggestions */
.rc { background: linear-gradient(160deg, #F3F0FF, #FFF4E6); border: 3px solid #fff; border-radius: 26px; padding: 14px 0 14px; box-shadow: 0 6px 0 #D0BFFF; }
.rc-h { margin: 0 14px 10px; display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 20px; color: #5F3DC4; }
.rc-h img { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 3px solid #FFD23F; }
.rc-row { display: flex; gap: 12px; overflow-x: auto; padding: 2px 14px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rc-card { flex: 0 0 168px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: #fff; border: 3px solid var(--cc); border-radius: 20px; padding: 0 0 10px; overflow: hidden; box-shadow: 0 5px 0 var(--cs); animation: gxPop .45s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); }
.rc-card:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--cs); }
.rc-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ct); display: grid; place-items: center; }
.rc-img img { width: 100%; height: 100%; object-fit: cover; } .rc-img img.yt { transform: scale(1.34); } .rc-img img.ic { width: 56px; height: 56px; object-fit: contain; }
.rc-play { position: absolute; bottom: 6px; inset-inline-end: 6px; width: 34px; height: 34px; border-radius: 50%; background: var(--cc); color: #fff; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.rc-play svg { width: 16px; height: 16px; }
.rc-why { margin: 0 8px; font-size: 11.5px; font-weight: 800; border-radius: 10px; padding: 4px 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-why.q { background: #FFF3BF; color: #8A5A00; } .rc-why.cat { background: #FFE3EC; color: #A61E4D; } .rc-why.new { background: #E3FAFC; color: #0B7285; }
.rc-t { margin: 0 10px; font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.3; }
.ra-card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 26px; text-decoration: none; color: #fff;
  background: radial-gradient(circle at 90% 0%, rgba(255,255,255,.35) 0 18%, transparent 19%), linear-gradient(135deg, #FF922B, #E64980 60%, #7048E8); border: 3px solid #fff; box-shadow: 0 6px 0 #862E9C, 0 12px 24px rgba(112,72,232,.3); }
.ra-card .gx-spark { z-index: -1; }
.ra-top { font-family: var(--display); font-size: 24px; font-weight: 800; text-shadow: 0 3px 0 rgba(0,0,0,.2); animation: winPopR .7s cubic-bezier(.2,1.6,.4,1) both; }
.ra-q { font-weight: 800; font-size: 15px; background: rgba(255,255,255,.2); border-radius: 12px; padding: 6px 10px; align-self: flex-start; }
.ra-ep { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: 18px; padding: 8px; }
.ra-img { width: 84px; height: 63px; border-radius: 12px; overflow: hidden; flex: 0 0 auto; background: #F1F3F5; } .ra-img img { width: 100%; height: 100%; object-fit: cover; } .ra-img img.yt { transform: scale(1.34); }
.ra-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ra-tx small { color: var(--muted); font-weight: 800; font-size: 12px; } .ra-tx b { font-family: var(--display); font-size: 16px; line-height: 1.3; }
.ra-go { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; box-shadow: 0 3px 0 var(--yellow-d); flex: 0 0 auto; animation: nwPlay2 1.8s ease-in-out infinite; } .ra-go svg { width: 20px; height: 20px; }
@keyframes winPopR { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ra-top, .ra-go, .rc-card { animation: none; } }
/* "for you": make the scroll obvious */
.rc-wrap { position: relative; }
.rc-card { flex-basis: 150px; }
.rc-next { position: absolute; z-index: 2; top: 34%; inset-inline-end: 6px; width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; background: #7048E8; color: #fff; display: grid; place-items: center; padding: 0; box-shadow: 0 4px 0 #5F3DC4, 0 6px 14px rgba(95,61,196,.35); animation: rcNudge 1.6s ease-in-out infinite; }
.rc-next svg { width: 22px; height: 22px; }
[dir="ltr"] .rc-next svg { transform: scaleX(-1); }
.rc-next[hidden] { display: none; }
@keyframes rcNudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }
[dir="ltr"] .rc-next { animation-name: rcNudgeL; } @keyframes rcNudgeL { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.rc-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.rc-dots i { width: 8px; height: 8px; border-radius: 999px; background: #D0BFFF; transition: width .25s, background .25s; }
.rc-dots i.on { width: 22px; background: #7048E8; }
.rc-hint { margin: 6px 0 0; text-align: center; font-size: 12.5px; font-weight: 800; color: #7048E8; }
@media (prefers-reduced-motion: reduce) { .rc-next { animation: none; } }
.rc-row.more { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 44px); mask-image: linear-gradient(to right, transparent 0, #000 44px); padding-inline-end: 36px; }
[dir="ltr"] .rc-row.more { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 44px); mask-image: linear-gradient(to left, transparent 0, #000 44px); }
.rc-why.more { background: #F3F0FF; color: #5F3DC4; }

.ra-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ra-kid { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px 4px 5px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 18px; border: 3px solid #fff; box-shadow: 0 4px 0 var(--yellow-d); animation: winPopR .6s cubic-bezier(.2,1.6,.4,1) both; }
[dir="ltr"] .ra-kid { padding: 4px 5px 4px 14px; }
.ra-kid img { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid #fff; }
.ra-head .ra-top { font-size: 22px; }
.ra-card .gx-spark.s4 { display: none; }
/* boy / girl */
.pk-g { margin-bottom: 4px; }

/* ---------- search (header button + screen) */
.search-btn { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border-radius: 999px; border: 3px solid #fff; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; margin-inline-start: auto; }
.search-btn svg { width: 22px; height: 22px; }
.search-btn:active { transform: translateY(2px); }
.top .search-btn + .lang-btn { margin-inline-start: 0; }
@media (max-width: 420px) { .search-btn { width: 40px; height: 40px; } .search-btn svg { width: 20px; height: 20px; } }
@media (max-width: 360px) { .search-btn { width: 34px; height: 34px; border-width: 2.5px; } .search-btn svg { width: 17px; height: 17px; } }
.sr-h1 { font-family: var(--display); color: var(--blue); font-size: 26px; margin: 2px 0 0; text-align: center; }
.sr-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 4px solid var(--blue); border-radius: 999px; padding: 6px 6px 6px 8px; padding-inline-start: 14px; box-shadow: 0 5px 0 var(--blue-d); }
.sr-ic { color: var(--blue); display: grid; place-items: center; flex: 0 0 auto; }
.sr-ic svg { width: 22px; height: 22px; }
.sr-in { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); padding: 8px 0; }
.sr-in::-webkit-search-cancel-button { -webkit-appearance: none; }
.sr-mic { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 999px; border: 0; background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--yellow-d); display: grid; place-items: center; cursor: pointer; position: relative; }
.sr-mic svg { width: 26px; height: 26px; }
.sr-mic:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--yellow-d); }
.sr-mic.on { background: #F2546B; color: #fff; box-shadow: 0 4px 0 #B8293F; animation: srPulse 1.1s ease-in-out infinite; }
@keyframes srPulse { 0%, 100% { box-shadow: 0 4px 0 #B8293F, 0 0 0 0 rgba(242,84,107,.45); } 50% { box-shadow: 0 4px 0 #B8293F, 0 0 0 12px rgba(242,84,107,0); } }
.sr-listen { margin: 0; text-align: center; font-weight: 800; color: var(--blue); background: #EAF1FF; border-radius: 16px; padding: 10px 14px; }
.sr-listen.err { color: #A8314F; background: #FDE7EC; }
.sr-h { font-family: var(--display); font-size: 20px; color: var(--ink); margin: 6px 4px 8px; }
.sr-hint p { margin: 0 4px 4px; color: var(--muted, #5b6478); font-weight: 700; text-align: center; }
.sr-sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-cat { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; color: var(--cc); margin-bottom: 2px; }
.sr-cat img { width: 16px; height: 16px; }
.sr-row .t { display: block; }
.sr-more, .sr-wait { text-align: center; color: var(--blue); font-weight: 800; margin: 10px 0; }
.sr-wait { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 24px 0; }
.sr-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); animation: srDot 1s ease-in-out infinite; }
.sr-dot:nth-child(2) { animation-delay: .15s; } .sr-dot:nth-child(3) { animation-delay: .3s; margin-inline-end: 6px; }
@keyframes srDot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sr-mic.on, .sr-dot { animation: none; } }

.sr-miss { position: relative; text-align: center; background: #fff; border: 3px solid #E4DAF7; border-radius: 26px; padding: 18px 16px 20px; box-shadow: 0 5px 0 #E4DAF7; animation: gxPop .45s cubic-bezier(.2,1.4,.4,1) both; }
.sr-miss-art { display: block; width: 112px; height: 112px; margin: 0 auto 4px; animation: gxBob 2.8s ease-in-out infinite; }
.sr-miss-art svg { width: 100%; height: 100%; display: block; }
.sr-miss h2 { font-family: var(--display); font-size: 22px; line-height: 1.25; margin: 2px 0 4px; color: var(--blue); }
.sr-miss p { margin: 0 0 16px; font-weight: 800; color: var(--muted); }
.sr-ask { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 22px 6px 8px; padding-inline-start: 8px; padding-inline-end: 22px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-family: var(--display); font-size: 19px; font-weight: 800; text-decoration: none; box-shadow: 0 5px 0 var(--yellow-d); transition: transform .12s, box-shadow .12s; }
.sr-ask:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--yellow-d); }
.sr-ask-ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 0 var(--yellow-d); }
.sr-ask-ic img { width: 28px; height: 28px; }
@media (prefers-reduced-motion: reduce) { .sr-miss, .sr-miss-art { animation: none; } }

/* header on phones: room for the search button, the name never hides behind it */
.brand { flex: 0 1 auto; min-width: 0; }
.brand-text { min-width: 0; }
@media (max-width: 440px) {
  .top { gap: 6px; padding-inline: 12px; }
  .brand { gap: 8px; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-name { font-size: 19px; }
  .brand-hello { font-size: 12px; padding: 2px 9px; }
  .search-btn, .top .lang-btn { width: 38px; min-width: 38px; height: 38px; padding: 0; border-width: 2.5px; }
  .top .lang-btn { font-size: 14px; }
  .search-btn svg { width: 18px; height: 18px; }
  .stars { padding: 4px 10px 4px 4px; gap: 4px; min-height: 40px; }
  .stars img { width: 30px; height: 30px; }
}
@media (max-width: 385px) {
  .top { gap: 5px; padding-inline: 10px; }
  .brand { gap: 6px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-name { font-size: 17px; }
  .search-btn, .top .lang-btn { width: 34px; min-width: 34px; height: 34px; }
  .top .lang-btn { font-size: 13px; }
  .search-btn svg { width: 16px; height: 16px; }
  .stars { padding: 3px 8px 3px 3px; font-size: 14px; }
  .stars img { width: 26px; height: 26px; }
}
@media (max-width: 340px) { .brand-name { font-size: 15px; } .brand-logo { width: 38px; height: 38px; } .brand-hello { font-size: 11px; } }

/* ---------- the lab tab */
.tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tabs a span { white-space: nowrap; }
@media (max-width: 400px) { .tabs a { font-size: 11px; } .tabs a img { width: 27px; height: 27px; } }
@media (max-width: 340px) { .tabs a { font-size: 10px; } .tabs a img { width: 24px; height: 24px; } }
.lb-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 18px 18px 20px; color: #fff; text-align: center; background: radial-gradient(circle at 50% 0%, #2CC7B9, #0E6F78 75%); box-shadow: 0 6px 0 #0A5A62; }
.lb-hero h1 { position: relative; margin: 6px 0 2px; font-family: var(--display); font-size: 34px; line-height: 1.1; text-shadow: 0 3px 0 #0A5A62; }
.lb-hero p { position: relative; margin: 0; font-weight: 800; font-size: 15px; line-height: 1.6; opacity: .95; }
.lb-av { position: relative; display: inline-grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: #fff; border: 4px solid #7FE0D6; box-shadow: 0 4px 0 rgba(0,0,0,.25); box-sizing: border-box; animation: gxBob 2.6s ease-in-out infinite; }
.lb-av img { width: 56px; height: 56px; }
/* bubbles rising from the bottom */
.lb-bub { position: absolute; bottom: -24px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95) 0 18%, rgba(255,255,255,.25) 20%, rgba(255,255,255,.12) 70%); border: 1.5px solid rgba(255,255,255,.6); animation: lbRise 6s ease-in infinite; pointer-events: none; }
.lb-bub:nth-child(1) { left: 6%; animation-delay: 0s; } .lb-bub:nth-child(2) { left: 18%; width: 9px; height: 9px; animation-delay: 1.4s; animation-duration: 5s; }
.lb-bub:nth-child(3) { left: 30%; width: 20px; height: 20px; animation-delay: 3s; animation-duration: 7s; } .lb-bub:nth-child(4) { left: 46%; width: 8px; height: 8px; animation-delay: .7s; }
.lb-bub:nth-child(5) { left: 60%; width: 16px; height: 16px; animation-delay: 2.2s; animation-duration: 6.5s; } .lb-bub:nth-child(6) { left: 72%; width: 10px; height: 10px; animation-delay: 4s; animation-duration: 5.2s; }
.lb-bub:nth-child(7) { left: 84%; width: 18px; height: 18px; animation-delay: 1s; animation-duration: 7.5s; } .lb-bub:nth-child(8) { left: 94%; width: 8px; height: 8px; animation-delay: 3.4s; }
@keyframes lbRise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(8px, -110px); } 85% { opacity: .9; } 100% { transform: translate(-6px, -230px); opacity: 0; } }
/* water molecules (H2O, the "Mickey Mouse" shape): two small hydrogens fly in and stick to the oxygen, then drift off again */
.lb-mol { position: absolute; width: 60px; height: 52px; pointer-events: none; }
.lb-mol.m1 { top: 12px; right: 12px; transform: rotate(14deg); } .lb-mol.m2 { top: 62px; left: 8px; transform: rotate(-16deg) scale(.85); }
.lb-mol .at { position: absolute; border-radius: 50%; border: 2.5px solid #1F1A33; box-sizing: border-box; }
.lb-mol .o { left: 15px; top: 18px; width: 30px; height: 30px; background: radial-gradient(circle at 35% 30%, #FFC2D0, #FF5E7E 60%, #E23D62); z-index: 1; animation: lbPulse 4s ease-in-out infinite; }
.lb-mol .h { top: 6px; width: 19px; height: 19px; background: radial-gradient(circle at 35% 30%, #fff, #DDEFFF 70%); animation: lbJoin 4s ease-in-out infinite; }
.lb-mol .h.l { left: 6px; --dx: -16px; } .lb-mol .h.r { left: 35px; --dx: 16px; }
.lb-mol.m2 .at { animation-delay: 2s; }
@keyframes lbJoin { 0%, 8% { transform: translate(var(--dx), -14px); opacity: 0; } 20% { opacity: 1; } 42%, 74% { transform: translate(0, 0); opacity: 1; } 46% { transform: translate(0, 0) scale(1.12); } 92%, 100% { transform: translate(var(--dx), -14px); opacity: 0; } }
@keyframes lbPulse { 0%, 40% { transform: scale(1); } 46% { transform: scale(1.1); } 52%, 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .lb-bub, .lb-mol *, .lb-av { animation: none; opacity: 1; transform: none; } .lb-bub { display: none; } }
.lb-h2 { margin: 6px 4px 0; font-family: var(--display); font-size: 22px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.lb-h2 .n { background: #FFD23F; border-radius: 999px; padding: 0 10px; font-size: 14px; box-shadow: 0 2px 0 #D9A90F; }
.lb-exps { display: grid; gap: 10px; }
.lb-exp { display: flex; align-items: center; gap: 12px; background: #fff; border: 3px solid #C9D5EE; border-radius: 20px; padding: 10px; }
.lb-exp .ic { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--t); border: 3px solid #1F1A33; box-sizing: border-box; }
.lb-exp .ic img { width: 40px; height: 40px; }
.lb-exp .tx { flex: 1 1 auto; min-width: 0; } .lb-exp .tx b { display: block; font-family: var(--display); font-size: 17px; color: var(--ink); } .lb-exp .tx small { font-size: 13px; font-weight: 700; color: var(--muted); }
.lb-exp .lock { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; background: #1F1A33; color: #FFD23F; border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 13px; }
.lb-exp .lock svg { width: 14px; height: 14px; }
.lb-safe { display: flex; gap: 10px; align-items: center; background: #FFF6D6; border: 2.5px dashed #D9A90F; border-radius: 18px; padding: 10px 12px; font-weight: 800; font-size: 14px; color: #5B4A12; }
.lb-safe img { width: 34px; height: 34px; flex: 0 0 auto; }

/* compact report tiles (same size as the kid tiles above) */
.rp-kidrow .rp-kidbtn { min-width: 0; padding: 8px 4px 7px; gap: 2px; border-radius: 16px; }
.rp-kidrow .rp-kidbtn img { width: 38px; height: 38px; }
.rp-kidrow .rp-kidbtn b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-kidrow .rp-kidbtn small { font-size: 10.5px; white-space: nowrap; }
/* header: stars count in its own small white chip */
.stars .st-chip { display: inline-flex; align-items: center; gap: 3px; background: #fff; border-radius: 999px; padding: 2px 9px 2px 6px; min-width: 40px; justify-content: center; box-sizing: border-box; }
.stars .st-chip svg { width: 16px; height: 16px; }
.stars #starCount { font-family: var(--display); font-size: 16px; line-height: 1; font-variant-numeric: tabular-nums; }
/* game screen: back button on one line */
.play-bar .play-back { white-space: nowrap; flex: 0 0 auto; padding-inline-end: 16px; }
/* shelves: every souvenir uses the same rows (picture, name, stars/button), so long names don't push others out of line */
.sh .shelf-row { align-items: start; }
.sh .item { display: grid; grid-template-rows: 86px 3em auto; justify-items: center; align-items: center; gap: 4px; }
.sh .item .lbl { max-width: 100%; box-sizing: border-box; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* report: episode lines stay short, extra episodes fold behind a small arrow */
.rp-tt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-list li { gap: 8px; }
.rp-fold { margin-top: 10px; }
.rp-fold > summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: 6px; width: fit-content; margin: 0 auto; padding: 5px 14px; border-radius: 999px; background: #EEF2FB; color: var(--blue); font-size: 13px; font-weight: 800; cursor: pointer; }
.rp-fold > summary::-webkit-details-marker { display: none; }
.rp-fold > summary i { font-style: normal; font-size: 16px; line-height: 1; transform: translateY(-3px); transition: transform .2s; }
.rp-fold[open] > summary i { transform: rotate(180deg) translateY(-2px); }
.rp-fold .rpx-close, .rp-fold[open] .rpx-open { display: none; }
.rp-fold[open] .rpx-close { display: inline; }
.rp-fold[open] > summary { margin-bottom: 10px; }
@media print { .rp-fold > summary { display: none; } .rp-fold > ul { display: flex !important; } }

/* game medal on the game card: bright when won, grey until then */
.gx-art { position: relative; }
.gx-medal { position: absolute; top: -10px; right: -8px; width: 46px; height: 55px; filter: drop-shadow(0 3px 0 rgba(0,0,0,.2)); transform: rotate(8deg); }
.gx-medal img { width: 100% !important; height: 100% !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; transform: none !important; background: none !important; }
.gx-medal.off { filter: grayscale(1) opacity(.45); }

/* report: game medals, same size as the souvenirs */
.rp-c-med .rp-sv figure { position: relative; }
.rp-new { position: absolute; top: -4px; left: 0; background: #E63946; color: #fff; font-size: 9.5px; font-weight: 800; border-radius: 999px; padding: 1px 6px; }
.rp-c-med .rp-sv img { object-fit: contain; }

/* ---------- Kenzy's puzzles (detective cases) */
.kz-banner { background: linear-gradient(135deg, #5B3FC4, #8E5BD9); position: relative; overflow: hidden; }
.kz-banner::after { content: "🔍"; position: absolute; left: -6px; bottom: -14px; font-size: 64px; opacity: .14; transform: rotate(-20deg); }
.kz-banner .ab-ic { flex: 0 0 auto; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #3B2F86; border: 4px solid #FFB3C6; overflow: hidden; }
.kz-banner .ab-ic img { width: 100%; height: 100%; }
.kz-banner .sub { color: #EEE8FF; }
.kz-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 18px 18px 20px; color: #fff; text-align: center; background: radial-gradient(circle at 50% 0%, #8E5BD9, #3B2F86 75%); box-shadow: 0 6px 0 #2A1F66; }
.kz-hero .kz-av { width: 86px; height: 86px; border-radius: 50%; border: 4px solid #FFB3C6; box-shadow: 0 4px 0 rgba(0,0,0,.25); animation: gxBob 2.6s ease-in-out infinite; }
.kz-hero h1 { margin: 6px 0 2px; font-family: var(--display); font-size: 34px; line-height: 1.1; text-shadow: 0 3px 0 #2A1F66; }
.kz-hero p { margin: 0; font-weight: 800; font-size: 15px; line-height: 1.6; opacity: .95; }
.kz-card { background: #fff; border: 3px solid #E4DBFF; border-radius: 22px; padding: 12px; }
.kz-me { display: flex; align-items: center; gap: 12px; }
.kz-me > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kz-me small { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.kz-me b { font-family: var(--display); font-size: 22px; color: #5B3FC4; }
.kz-badge { width: 72px; height: 76px; flex: 0 0 auto; filter: drop-shadow(0 4px 0 rgba(0,0,0,.18)); }
.kz-badge.off { filter: grayscale(1) opacity(.4); }
.kz-meter { height: 12px; border-radius: 999px; background: #EEE8FF; overflow: hidden; }
.kz-meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FFB3C6, #8E5BD9); }
.kz-h2 { margin: 4px 0 0; font-family: var(--display); font-size: 21px; color: #5B3FC4; }
.kz-files { display: grid; gap: 10px; }
.kz-file { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; text-decoration: none; color: var(--ink); background: #FFF8E7; border: 3px solid var(--kc); box-shadow: 0 4px 0 var(--kc); animation: gxPop .45s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); }
.kz-file::before { content: ""; position: absolute; top: -9px; right: 18px; width: 70px; height: 12px; background: var(--kc); border-radius: 8px 8px 0 0; }
.kz-file:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--kc); }
.kz-em { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; font-size: 30px; border-radius: 14px; background: #fff; border: 2px solid var(--kc); }
.kz-ft { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kz-ft b { font-family: var(--display); font-size: 17px; line-height: 1.25; }
.kz-ft small { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.kz-file.solved .kz-ft small { color: #E8A100; font-size: 15px; letter-spacing: 1px; }
.kz-go { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: var(--kc); color: #fff; font-size: 12px; font-weight: 800; }
.kz-stamp { flex: 0 0 auto; padding: 4px 10px; border: 3px solid #2E9E4F; color: #2E9E4F; border-radius: 10px; font-family: var(--display); font-weight: 800; font-size: 15px; transform: rotate(-10deg); background: rgba(255,255,255,.7); }
.kz-file.locked { background: #F3F4F8; box-shadow: 0 4px 0 #C9CFDD; }
.kz-file.locked .kz-em { color: #9AA3BC; font-weight: 800; }
.kz-ranks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.kz-rk { display: grid; justify-items: center; gap: 2px; text-align: center; }
.kz-rk img { width: 46px; height: 48px; filter: grayscale(1) opacity(.35); }
.kz-rk.on img { filter: none; }
.kz-rk small { font-size: 10.5px; font-weight: 800; color: var(--muted); line-height: 1.25; }
.kz-rk.on small { color: #5B3FC4; }
/* the case file */
.kz-folder { position: relative; display: grid; gap: 14px; padding: 26px 14px 16px; border-radius: 8px 24px 24px 24px; background: #FFF4D6; border: 3px solid #C99A3B; box-shadow: 0 6px 0 #A67C2A; margin-top: 14px; }
.kz-tab { position: absolute; top: -20px; right: 16px; padding: 3px 14px 6px; border-radius: 12px 12px 0 0; background: var(--kc); color: #fff; font-weight: 800; font-size: 13px; }
.kz-folder h1 { margin: 0; text-align: center; font-family: var(--display); font-size: 26px; color: var(--kc); line-height: 1.2; }
.kz-steps { display: flex; align-items: center; justify-content: center; gap: 4px; }
.kz-steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #fff; color: #B8A47A; border: 2px solid #E2CFA0; }
.kz-steps span.on { background: var(--kc); color: #fff; border-color: var(--kc); }
.kz-steps i { width: 18px; height: 3px; border-radius: 2px; background: #E2CFA0; }
.kz-say { display: flex; align-items: flex-start; gap: 10px; }
.kz-say img { width: 58px; height: 58px; border-radius: 50%; border: 3px solid #FFB3C6; flex: 0 0 auto; }
.kz-say p { position: relative; margin: 0; flex: 1; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 10px 12px; font-weight: 800; font-size: 16px; line-height: 1.7; }
.kz-say.small img { width: 46px; height: 46px; } .kz-say.small p { font-size: 14.5px; background: #FFF0F4; border-color: #E5566C; }
.kz-hint { margin: 0; text-align: center; font-weight: 800; color: #8A6A2A; font-size: 14px; }
.kz-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 10px; border-radius: 16px; background: #B88A5A; box-shadow: inset 0 0 0 4px #8E6436; background-image: radial-gradient(rgba(0,0,0,.08) 1px, transparent 1.5px); background-size: 8px 8px; }
.kz-clue { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 10px; border: 0; border-radius: 4px; background: #fff; box-shadow: 0 4px 8px rgba(0,0,0,.25); transform: rotate(var(--r)); font: inherit; color: var(--ink); cursor: pointer; text-align: center; min-height: 128px; }
.kz-clue:active { transform: rotate(var(--r)) scale(.96); }
.kz-pin { position: absolute; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: #E5384F; box-shadow: inset -2px -2px 0 rgba(0,0,0,.2), 0 2px 2px rgba(0,0,0,.3); }
.kz-ce { font-size: 32px; line-height: 1.1; }
.kz-ce.q { animation: gxBob 1.8s ease-in-out infinite; }
.kz-clue b { font-family: var(--display); font-size: 13.5px; line-height: 1.25; }
.kz-clue small { font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.45; }
.kz-clue.on { background: #FFFDF4; animation: kzFlip .35s ease both; }
@keyframes kzFlip { from { transform: rotate(var(--r)) rotateY(90deg); } }
.kz-notes { display: grid; gap: 5px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 2px dashed #C99A3B; font-size: 13px; font-weight: 700; line-height: 1.5; color: #5A4A2A; }
.kz-notes b { font-family: var(--display); font-size: 15px; color: #8A6A2A; }
.kz-q { margin: 0; text-align: center; font-family: var(--display); font-size: 22px; color: var(--ink); }
.kz-opts { display: grid; gap: 8px; }
.kz-opt { display: flex; align-items: center; gap: 10px; text-align: start; padding: 12px; border-radius: 16px; border: 3px solid #E4DBFF; background: #fff; font: inherit; font-weight: 800; font-size: 15px; color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 #E4DBFF; line-height: 1.5; }
.kz-opt span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #EEE8FF; color: #5B3FC4; font-family: var(--display); }
.kz-opt.wrong { border-color: #F3A9B5; background: #FDECEF; color: #9E2236; box-shadow: 0 3px 0 #F3A9B5; animation: kzShake .4s; }
.kz-opt.wrong span { background: #E5566C; color: #fff; }
@keyframes kzShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.kz-solved { display: grid; justify-items: center; gap: 6px; }
.kz-bigstamp { padding: 6px 22px; border: 5px solid #2E9E4F; border-radius: 14px; color: #2E9E4F; font-family: var(--display); font-size: 34px; font-weight: 800; transform: rotate(-8deg); background: rgba(255,255,255,.6); animation: kzStamp .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes kzStamp { from { transform: rotate(-8deg) scale(2.2); opacity: 0; } }
.kz-stars { display: flex; gap: 4px; font-size: 32px; color: #E1D6B8; }
.kz-stars .on { color: #FFB703; text-shadow: 0 2px 0 #C77C00; }
.kz-secret { padding: 12px; border-radius: 16px; background: #EAF7EE; border: 2px solid #9ADBB1; }
.kz-secret b { font-family: var(--display); font-size: 17px; color: #1F6B38; }
.kz-secret p { margin: 4px 0 0; font-weight: 700; font-size: 15px; line-height: 1.7; color: #24402D; }
.kz-ep { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background: #fff; border: 2px solid #E4DBFF; text-decoration: none; color: var(--ink); }
.kz-ep img { width: 74px; height: 56px; object-fit: cover; border-radius: 10px; }
.kz-ep span { display: flex; flex-direction: column; } .kz-ep small { font-size: 12px; font-weight: 800; color: #5B3FC4; } .kz-ep b { font-size: 15px; }
.kz-pop-box { text-align: center; overflow: visible; padding-top: 70px; margin-top: 60px; }
.kz-pop-box img { position: relative; width: 130px; height: 136px; margin: -130px auto 4px; display: block; filter: drop-shadow(0 6px 0 rgba(0,0,0,.2)); animation: kzStamp .7s .1s cubic-bezier(.2,1.4,.4,1) both; }
.kz-pop-box small { color: #5B3FC4; font-weight: 800; font-size: 15px; }
.kz-pop-box h2 { margin: 2px 0 6px; font-size: 28px; }
.kz-pop-box .btn { width: 100%; margin-top: 12px; }
.kz-rays { position: absolute; top: -70px; left: 50%; width: 260px; height: 260px; translate: -50% 0; border-radius: 50%; background: repeating-conic-gradient(rgba(255,210,63,.4) 0 10deg, transparent 10deg 20deg); -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); animation: kzSpin 14s linear infinite; pointer-events: none; }
@keyframes kzSpin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .kz *, .kz-pop * { animation: none !important; } }

/* ---------- «نادي المستكشفين» (membership) */
.club-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 20px 18px; text-align: center; color: #3B2A00; background: radial-gradient(circle at 50% 0%, #FFF3BF, #FFD23F 70%); box-shadow: 0 6px 0 #D9A90F; }
.club-hero-ic { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: #fff; font-size: 40px; box-shadow: 0 4px 0 rgba(0,0,0,.12); animation: gxBob 2.6s ease-in-out infinite; }
.club-hero h1 { margin: 6px 0 2px; font-family: var(--display); font-size: 32px; color: #5B3FC4; }
.club-hero p { margin: 0; font-weight: 800; font-size: 15px; line-height: 1.6; }
.club-card { background: #fff; border: 3px solid #F1E3A8; border-radius: 22px; padding: 14px; display: grid; gap: 10px; }
.club-card h2 { margin: 0; font-family: var(--display); font-size: 20px; color: #5B3FC4; }
.club-free { margin: 0; padding: 8px 10px; border-radius: 12px; background: #EAF7EE; color: #1F6B38; font-weight: 800; font-size: 13px; line-height: 1.6; }
.club-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.club-plans.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.club-plans.three .club-plan { padding-inline: 6px; }
.club-plans.three .club-price { font-size: 24px; }
.club-plans.one { grid-template-columns: 1fr; }
.pb-card { display: grid; gap: 10px; text-align: center; }
.pb-card .club-free { margin: 0; }
.pb-card .msg:empty { display: none; }
.pb-diag { margin: 0; text-align: left; font: 600 12px/1.5 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.club-plans.three small em { font-style: normal; color: #2EAE4F; font-weight: 900; }
.club-plan { position: relative; display: grid; justify-items: center; gap: 2px; padding: 16px 8px 12px; border-radius: 20px; background: #fff; border: 3px solid #E4DBFF; text-align: center; font: inherit; color: inherit; cursor: pointer; box-shadow: 0 4px 0 #E4DBFF; }
.club-plan b { font-family: var(--display); font-size: 18px; color: #5B3FC4; }
.club-price { font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.club-price small { font-size: 14px; color: var(--muted); }
.club-plan > small { font-size: 11.5px; font-weight: 800; color: var(--muted); line-height: 1.4; }
.club-plan.on { border-color: #5B3FC4; background: #F5F1FF; box-shadow: 0 4px 0 #5B3FC4; }
.club-tick { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff; background: #E4DBFF; }
.club-plan.on .club-tick { background: #5B3FC4; }
.club-plan:active { transform: translateY(3px); }
.club-tag { position: absolute; top: -12px; padding: 2px 10px; border-radius: 999px; background: #E63946; color: #fff; font-size: 11.5px; font-weight: 800; }
.club-steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; font-weight: 700; font-size: 14px; line-height: 1.6; }
.club-pay { display: grid; gap: 6px; margin-top: 6px; }
.club-pay span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 10px; background: #F5F1FF; }
.club-pay small { font-weight: 800; color: #5B3FC4; } .club-pay b { font-size: 15px; user-select: all; }
.club-redeem .field { text-align: center; font-size: 19px; letter-spacing: 2px; text-transform: uppercase; }
.club-on { display: grid; gap: 12px; border: 3.5px solid #1F1A33; background: linear-gradient(135deg, #12B886 0%, #20C997 45%, #3BC9DB 100%); box-shadow: 0 6px 0 #1F1A33; color: #fff; position: relative; overflow: hidden; }
.club-on::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.16); top: -50px; inset-inline-start: -40px; pointer-events: none; }
.con-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.con-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #FFF; border: 3px solid #1F1A33; font-size: 24px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; box-shadow: 0 3px 0 #1F1A33; flex: 0 0 auto; }
.con-top b { font-family: var(--display); font-size: 22px; line-height: 1.2; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.18); }
.con-chip { display: grid; gap: 4px; justify-items: center; align-content: start; text-align: center; padding: 10px 6px 10px; border-radius: 18px; background: #fff; color: #1F1A33; border: 2.5px solid #1F1A33; min-width: 0; }
.con-chip i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--c-soft); color: var(--c); }
.con-chip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.con-chip.plan svg { fill: currentColor; fill-opacity: .18; }
.con-chip small { font-size: 12px; font-weight: 800; color: #6B7393; line-height: 1.2; }
.con-chip b { font-family: var(--display); font-size: 15.5px; line-height: 1.3; color: #1F1A33; }
.con-chip.plan { --c: #E8890C; --c-soft: #FFF1D6; }
.con-chip.date { --c: #1C7ED6; --c-soft: #E3F0FF; }
.con-chip.left { --c: #0CA678; --c-soft: #DDF7EE; }
.con-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: relative; z-index: 1; }
.club-fine { margin: 0; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.6; }
.club-pop { text-align: center; display: grid; gap: 10px; justify-items: center; }
.club-pop-ic { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: #FFF3BF; border: 3px solid #FFD23F; font-size: 40px; box-shadow: 0 4px 0 #D9A90F; }
.club-pop .btn { width: 100%; }
.kz-file.club-locked { width: 100%; border-style: dashed; font: inherit; text-align: start; cursor: pointer; background: #FFFBEA; }
.kz-go.club { background: #FFB703; color: #3B2A00; }
.club-player { position: relative; display: grid; place-items: center; }
.club-player .cover { filter: blur(3px) brightness(.7); }
.club-ep { position: absolute; padding: 12px 20px; border: 0; border-radius: 999px; background: #FFD23F; box-shadow: 0 4px 0 #D9A90F; font: inherit; font-weight: 800; font-size: 17px; color: #3B2A00; cursor: pointer; }
.gx-club { font-size: 12px; font-weight: 800; color: #8A5A00; background: #FFF3BF; border-radius: 999px; padding: 3px 9px; align-self: flex-start; }
.adm-form { display: grid; gap: 8px; } .adm-form label { display: grid; gap: 4px; font-weight: 800; font-size: 13px; }
.adm-new { display: grid; gap: 6px; margin-top: 6px; } .adm-code { padding: 10px; border-radius: 12px; border: 2px dashed #5B3FC4; background: #F5F1FF; font: 800 18px ui-monospace, monospace; letter-spacing: 1px; color: #3B2F86; cursor: pointer; }
.adm-list { display: grid; gap: 6px; max-height: 420px; overflow-y: auto; }
.adm-row { display: grid; gap: 1px; padding: 8px 10px; border-radius: 12px; background: #F6F8FD; font-size: 13px; }
.adm-row b { font-size: 14px; } .adm-row small { color: var(--muted); font-weight: 700; } .adm-row.used { opacity: .6; }

.adm-seg button[aria-pressed="true"] { background: #5B3FC4; border-color: #5B3FC4; color: #fff; }
.adm-seg button[aria-pressed="true"]::before { content: "✓ "; }

.club-cancel { margin: 0; font-size: 13px; font-weight: 800; color: #fff; line-height: 1.6; text-align: center; position: relative; z-index: 1; }
.club-cancel a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.adm-act { justify-self: start; margin-top: 4px; padding: 5px 10px; border-radius: 999px; border: 2px solid #C9CFDD; background: #fff; font: inherit; font-size: 12px; font-weight: 800; color: var(--muted); cursor: pointer; }
.adm-act.stop { border-color: #F3A9B5; color: #C93A52; }

/* home: club ad */
@keyframes clubShine { 0%, 55% { left: -40%; } 100% { left: 130%; } }

.club-was { font-size: 15px; font-weight: 800; color: #C93A52; text-decoration-thickness: 2px; }
.club-offer { padding: 10px 12px; border-radius: 16px; background: #E63946; color: #fff; font-weight: 800; font-size: 14.5px; text-align: center; box-shadow: 0 4px 0 #A4161A; }

/* club page: free vs club comparison */
.cmp { display: grid; gap: 0; border-radius: 18px; overflow: hidden; border: 2px solid #F1E3A8; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; animation: gxPop .4s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d, 0s); }
.cmp-row + .cmp-row { border-top: 1.5px dashed #F1E3A8; }
.cmp-row > span { display: flex; align-items: center; justify-content: center; padding: 9px 6px; text-align: center; min-width: 0; }
.cmp-f { justify-content: flex-start !important; gap: 8px; font-weight: 800; font-size: 13.5px; line-height: 1.3; text-align: start !important; background: #fff; }
.cmp-f i { font-style: normal; width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: #FFF6D6; font-size: 16px; }
.cmp-free { background: #F7F8FC; }
.cmp-club { background: #FFF6D6; }
.cmp-head > span { padding: 10px 6px; font-family: var(--display); font-weight: 800; font-size: 15px; }
.cmp-head > span:first-child { background: #fff; }
.cmp-col-free { background: #E9ECF5; color: var(--muted); }
.cmp-col-club { background: linear-gradient(135deg, #FFE066, #FFC93C); color: #5B3FC4; }
.cmp-yes, .cmp-no { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; }
.cmp-yes { background: #D3F9D8; color: #2B8A3E; }
.cmp-yes.club { background: #5B3FC4; color: #fff; box-shadow: 0 2px 0 #3A2590; }
.cmp-no { background: #ECEEF4; color: #A0A7BD; }
.cmp-txt { font-size: 12px; font-weight: 800; line-height: 1.35; color: var(--muted); }
.cmp-txt.club { color: #5B3FC4; }
@media (prefers-reduced-motion: reduce) { .cmp-row { animation: none; } }
#recBox:empty { display: none; }   /* no suggestions yet: no extra gap on the home page */   /* its outline and shadow sit outside the box: keep the same visible gap as the other cards */

/* ---------- lab experiments: list links + experiment page (#/exp/<id>) */
a.lb-exp.open { border-color: #1F1A33; box-shadow: 0 4px 0 rgba(31,26,51,.18); text-decoration: none; color: inherit; }
a.lb-exp.open:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(31,26,51,.18); }
.lb-go { flex: 0 0 auto; background: #13A39A; color: #fff; border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: 13.5px; box-shadow: 0 3px 0 #0A5A62; }
.lb-go.free { background: #2E9E4F; box-shadow: 0 3px 0 #1F6B38; }
.lb-go.club { background: #FFD23F; color: #1F1A33; box-shadow: 0 3px 0 #D9A90F; }
.lb-stamp { flex: 0 0 auto; width: 50px; height: 50px; transform: rotate(-12deg); }
.lx { gap: 12px; }
.lx-hero { display: flex; align-items: center; gap: 12px; background: var(--t); border: 3px solid #1F1A33; border-radius: 24px; padding: 12px; box-shadow: 0 5px 0 rgba(31,26,51,.2); }
.lx-hero .ic { flex: 0 0 auto; width: 74px; height: 74px; border-radius: 20px; background: #fff; border: 3px solid #1F1A33; display: grid; place-items: center; box-sizing: border-box; }
.lx-hero .ic img { width: 52px; height: 52px; }
.lx-hero small { font-weight: 800; font-size: 13px; color: #0E7C86; }
.lx-hero h1 { margin: 2px 0 0; font-family: var(--display); font-size: 24px; line-height: 1.2; color: var(--ink); }
.lx-bar { display: flex; align-items: flex-start; justify-content: center; gap: 0; padding: 2px 4px; }
.lx-bar span { display: grid; justify-items: center; gap: 2px; flex: 0 0 auto; width: 58px; }
.lx-bar span b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #F1F4FB; border: 3px solid #C9D2E6; font-size: 19px; box-sizing: border-box; filter: grayscale(.7); opacity: .7; }
.lx-bar span small { font-size: 12px; font-weight: 800; color: #8A94AE; }
.lx-bar span.on b { background: #FFD23F; border-color: #1F1A33; box-shadow: 0 3px 0 #D9A90F; filter: none; opacity: 1; animation: gxBob 2.4s ease-in-out infinite; }
.lx-bar span.on small { color: var(--ink); }
.lx-bar span.ok b { background: #13A39A; border-color: #1F1A33; color: #fff; filter: none; opacity: 1; font-size: 18px; font-weight: 900; }
.lx-bar span.ok small { color: #0E7C86; }
.lx-bar i { flex: 1 1 auto; height: 4px; margin-top: 18px; background: #DDE3F0; border-radius: 4px; min-width: 8px; }
.lx-card { background: #fff; border: 3px solid #1F1A33; border-radius: 22px; padding: 14px; box-shadow: 0 4px 0 rgba(31,26,51,.16); display: grid; gap: 10px; }
.lx-card h2 { margin: 0; }
.lx-h { font-family: var(--display); font-size: 20px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.lx-h .n { margin-inline-start: auto; background: #EAF7F6; color: #0E7C86; border-radius: 999px; padding: 0 10px; font-size: 14px; }
.lx-say { display: flex; gap: 10px; align-items: flex-start; }
.lx-say img { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; border: 3px solid #FFD23F; object-fit: cover; }
.lx-say p { margin: 0; background: #EAF7F6; border-radius: 4px 18px 18px 18px; padding: 10px 12px; font-weight: 800; font-size: 16px; line-height: 1.6; color: #0E5E66; }
.lx-opts { display: grid; gap: 8px; }
.lx-opt { display: flex; align-items: center; gap: 10px; text-align: start; min-height: 54px; padding: 8px 12px; border-radius: 18px; background: #F7F9FF; border: 3px solid #C9D2E6; font: 800 16px var(--body, inherit); color: var(--ink); cursor: pointer; }
.lx-opt span { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2.5px solid #C9D2E6; display: grid; place-items: center; font-family: var(--display); }
.lx-opt.on { background: #FFF6D6; border-color: #1F1A33; box-shadow: 0 3px 0 #D9A90F; }
.lx-opt.on span { background: #FFD23F; border-color: #1F1A33; }
.lx-note { margin: 0; font-weight: 800; font-size: 14px; color: #0E7C86; }
.lx-items { display: grid; gap: 8px; }
.lx-item { display: flex; align-items: center; gap: 10px; text-align: start; padding: 8px 10px; border-radius: 16px; background: #fff; border: 2.5px solid #DDE3F0; cursor: pointer; font: inherit; color: var(--ink); }
.lx-item .ck { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; border: 2.5px solid #AAB6D3; display: grid; place-items: center; box-sizing: border-box; }
.lx-item .ck svg { width: 16px; height: 16px; }
.lx-item .e { flex: 0 0 auto; font-size: 26px; line-height: 1; }
.lx-item .t { flex: 1 1 auto; min-width: 0; font-weight: 800; font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.lx-item.on { background: #EAF7F6; border-color: #13A39A; }
.lx-item.on .ck { background: #13A39A; border-color: #13A39A; }
.lx-item.on .t { color: #0E5E66; }
.lx-adult { display: inline-flex; align-items: center; gap: 3px; background: #FFF0E0; color: #A34A00; border: 1.5px solid #F2B27A; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 800; white-space: nowrap; justify-self: center; }
.lx-soon { display: flex; gap: 10px; align-items: center; background: #F7F9FF; border: 2.5px dashed #AAB6D3; border-radius: 18px; padding: 10px; }
.lx-soon img { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.lx-soon p { margin: 0; font-weight: 800; font-size: 14.5px; line-height: 1.6; color: #4A5578; }
.lx-video .player { margin-block: 0; }
.lx-step { background: linear-gradient(180deg, var(--t), #fff 70%); justify-items: center; text-align: center; padding: 16px 14px 18px; }
.lx-dots { display: flex; gap: 6px; justify-content: center; }
.lx-dots i { width: 10px; height: 10px; border-radius: 50%; background: #DDE3F0; }
.lx-dots i.ok { background: #13A39A; } .lx-dots i.on { width: 26px; border-radius: 6px; background: #1F1A33; }
.lx-sn { font-weight: 800; font-size: 13px; color: #0E7C86; }
.lx-big { font-size: 74px; line-height: 1.1; filter: drop-shadow(0 4px 0 rgba(0,0,0,.12)); animation: gxBob 2.6s ease-in-out infinite; }
.lx-st { margin: 0; font-family: var(--display); font-size: 20px; line-height: 1.55; color: var(--ink); }
.lx-timer { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 8px 18px; border-radius: 999px; background: #1F1A33; color: #FFD23F; border: 0; font: 800 17px var(--display); cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.lx-timer.run { background: #13A39A; color: #fff; animation: lxPulse 1s ease-in-out infinite; }
.lx-timer.over { background: #FF5E7E; color: #fff; }
@keyframes lxPulse { 50% { transform: scale(1.05); } }
.lx-nav { display: flex; gap: 10px; }
.lx-nav .btn { flex: 1 1 0; }
.lx-prev { background: #fff; border: 3px solid #1F1A33; color: var(--ink); }
.lx-res { text-align: center; }
.lx-res b { font-family: var(--display); font-size: 19px; line-height: 1.5; }
.lx-res span { font-weight: 700; font-size: 15px; line-height: 1.7; color: #4A5578; }
.lx-res.yes { background: #E3F6E8; border-color: #2E9E4F; }
.lx-res.no { background: #FFF6D6; border-color: #D9A90F; }
.lx-res:empty { display: none; }
.lx-why { background: #EAF7F6; border-color: #13A39A; }
.lx-why p, .lx-chal p { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.8; color: var(--ink); }
.lx-chal { background: #FFF6D6; border-color: #D9A90F; }
.lx-share { display: flex; align-items: center; gap: 10px; }
.lx-share .e { font-size: 34px; flex: 0 0 auto; }
.lx-share div { flex: 1 1 auto; display: grid; gap: 2px; } .lx-share b { font-family: var(--display); font-size: 17px; } .lx-share small { font-weight: 700; font-size: 13px; color: var(--muted); line-height: 1.5; }
.lx-shbtn { flex: 0 0 auto; background: #FDE7EC; color: #A8314F; border: 2.5px solid #E2577A; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px; text-decoration: none; }
.lx-stamp { display: flex; align-items: center; gap: 12px; background: #EAF7F6; border-color: #13A39A; }
.lx-stamp img { width: 70px; height: 70px; transform: rotate(-10deg); animation: lxStamp .5s cubic-bezier(.2,1.6,.4,1) both; }
.lx-stamp div { display: grid; gap: 2px; } .lx-stamp b { font-family: var(--display); font-size: 18px; } .lx-stamp small { font-weight: 800; color: #0E7C86; }
@keyframes lxStamp { from { transform: scale(2) rotate(-30deg); opacity: 0; } }
.lx-need { margin: 0; font-weight: 800; font-size: 16px; color: var(--ink); }
.lx-club { text-align: center; justify-items: center; background: #F4F0FF; border-color: #5B3FC4; }
.lx-club p { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.7; color: #4A5578; }
.lx-club .btn { width: 100%; }
.lx-cic { width: 64px; height: 64px; border-radius: 50%; background: #FFF3BF; border: 3px solid #FFD23F; display: grid; place-items: center; font-size: 32px; box-shadow: 0 4px 0 #D9A90F; }
.lx-free { font-weight: 800; color: #2E9E4F; text-decoration: none; }
.lx-wait { margin: 0; text-align: center; font-weight: 800; font-size: 16px; color: #0E7C86; }
.rp-c-lab .rp-sv figure { position: relative; }
.rp-c-lab .rp-sv img { object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .lx-big, .lx-bar span.on b, .lx-timer.run, .lx-stamp img { animation: none; } }
/* lab: scientist ranks (same cards as the detective ranks, in the lab's teal) */
.lb-me, .lb-ranks { border-color: #BFEAE5; }
.lb-me b { color: #0E7C86; }
.lb-me .kz-meter { background: #E2F6F3; } .lb-me .kz-meter i { background: linear-gradient(90deg, #7FE0D6, #13A39A); }
.lb-ranks .kz-rk.on small { color: #0E7C86; }
.lb-ranks .kz-rk i { font-style: normal; font-size: 10px; font-weight: 800; color: #8A94AE; }
.lx-doh { margin: 4px 4px -2px; }
#lxDo { gap: 12px; }
.lx-item .e img { width: 34px; height: 34px; display: block; }
.lx-big img { width: 96px; height: 96px; display: block; }
/* puzzles: drawn icons instead of emojis */
.kz-em .kz-icimg { width: 38px; height: 38px; }
.kz-ce .kz-icimg { width: 44px; height: 44px; display: block; margin: 0 auto; }
.kz-tab .kz-icimg { width: 18px; height: 18px; vertical-align: -4px; margin-inline-start: 4px; background: #fff; border-radius: 6px; padding: 2px; }
.kz-notes span .kz-icimg { width: 20px; height: 20px; vertical-align: -5px; }
/* emojis were cut at the top on iPhone: the glyph is taller than a tight line box, and a filter/animation clips it to that box */
.lx-big { display: block; line-height: 1.3; padding: 8px 12px 2px; filter: none; text-shadow: 0 4px 0 rgba(0,0,0,.08); }
.kz-ce { display: block; line-height: 1.3; padding-top: 4px; }
.lx-item .e { line-height: 1.3; }
.kz-em { line-height: 1.3; }
.lx-bar span b { line-height: 1.3; }

/* ---------- invite friends */
.inv-card { background: linear-gradient(160deg, #FFF6D6, #FFE9F2); border-color: #F2B8D2; display: grid; gap: 12px; }
.inv-top { display: flex; gap: 12px; align-items: flex-start; }
.inv-ic { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 32px; background: #fff; border: 3px solid #1F1A33; box-shadow: 0 4px 0 #1F1A33; animation: gxBob 2.6s ease-in-out infinite; }
.inv-top h2 { margin: 0 0 4px; font-family: var(--display); font-size: 19px; }
.inv-top p { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.6; color: #4A5578; }
.inv-body { display: grid; gap: 10px; }
.inv-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 3px dashed #E2577A; border-radius: 16px; padding: 8px 14px; }
.inv-code small { font-weight: 800; color: var(--muted); }
.inv-code b { font-family: var(--display); font-size: 24px; letter-spacing: 3px; color: #C2185B; }
.inv-acts { display: flex; gap: 8px; }
.inv-acts .btn { flex: 1; min-height: 50px; font-size: 15.5px; }
.inv-wa { background: #25D366; color: #fff; border: 3px solid #1F1A33; box-shadow: 0 4px 0 #1F1A33; font-weight: 800; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; }
.inv-wa::before { content: ""; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2z' fill='%23fff'/%3E%3Cpath d='M8.5 7.5c.3-.6.6-.6 1-.6h.7c.2 0 .5 0 .7.6l.9 2.1c.1.3 0 .5-.1.7l-.6.8c-.1.2-.1.4 0 .6.6 1.1 1.6 2.1 2.8 2.7.2.1.4.1.6-.1l.8-.9c.2-.2.4-.3.7-.2l2 .9c.4.2.5.4.5.7 0 1.3-1.1 2.3-2.4 2.3-3.7-.3-7.5-4-7.9-7.7 0-.7.1-1.4.4-1.9z' fill='%2325D366'/%3E%3C/svg%3E") center/contain no-repeat; }
.inv-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.inv-stats span { background: #fff; border: 2.5px solid #F2D9E6; border-radius: 14px; padding: 6px 8px; text-align: center; font-weight: 800; font-size: 12.5px; color: var(--muted); display: grid; }
.inv-stats b { font-family: var(--display); font-size: 24px; color: var(--ink); }
.inv-fine { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.ref-pop { text-align: center; }
.ref-burst { width: 96px; height: 96px; margin: -6px auto 6px; border-radius: 50%; display: grid; place-items: center; background: repeating-conic-gradient(#FFD23F 0 15deg, #FFE98A 15deg 30deg); border: 4px solid #1F1A33; box-shadow: 0 5px 0 #1F1A33; animation: refSpin 10s linear infinite; }
.ref-burst span { font-size: 48px; animation: refSpin 10s linear infinite reverse; }
.ref-btns { display: grid; gap: 8px; margin-top: 6px; }
.lg-gift { margin: 0 0 10px; background: #FFF3BF; border: 2.5px dashed #D9A90F; border-radius: 14px; padding: 8px 12px; font-weight: 800; font-size: 14.5px; text-align: center; }
@keyframes refSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ref-burst, .ref-burst span, .inv-ic { animation: none; } }
.inv-stats b i { font-style: normal; font-size: 15px; color: var(--muted); }
.adm-chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; font-weight: 700; color: var(--muted); line-height: 1.5; }
.adm-chk input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
.adm-warn { color: #C2410C; }

/* ---------- «نادي المستكشفين» membership card (child's shelf page, paid accounts only) */
.mc-wrap { display: grid; justify-items: center; gap: 8px; }
.mc { --mx: .3; --my: .2; position: relative; width: min(340px, 100%); aspect-ratio: 340 / 214; padding: 0; border: 0; background: none; perspective: 900px; cursor: pointer; font: inherit; color: #fff; text-align: start; animation: mcIn .6s cubic-bezier(.2,1.4,.4,1) both; }
.mc-in { position: absolute; inset: 0; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,1.3,.5,1); }
.mc.flip .mc-in { transform: rotateY(180deg); }
.mc-face { position: absolute; inset: 0; border-radius: 22px; border: 4px solid #1F1A33; box-shadow: 0 8px 0 rgba(31,26,51,.35); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(120% 90% at 85% 0%, rgba(255,255,255,.25), transparent 55%), linear-gradient(135deg, #7B5CFF, #5B3FC4 45%, #2E2A9E 80%, #1B3F8A); }
.mc-face::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,255,255,.5) 1.2px, transparent 2px) 0 0 / 22px 22px; opacity: .35; }
.mc-front { transform: rotateY(0deg) translateZ(1px); -webkit-transform: rotateY(0deg) translateZ(1px); }
.mc-back { transform: rotateY(180deg) translateZ(1px); -webkit-transform: rotateY(180deg) translateZ(1px); }
/* iPhone Safari can ignore backface-visibility, so each face is also hidden halfway through the turn */
.mc-front, .mc-back { transition: visibility 0s .3s; }
.mc.flip .mc-front, .mc:not(.flip) .mc-back { visibility: hidden; }
.mc-holo { position: absolute; inset: -40%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 40%, rgba(255,230,140,.45) 47%, rgba(140,220,255,.42) 51%, rgba(255,150,220,.38) 55%, transparent 62%);
  transform: translate(calc((var(--mx) - .5) * 40%), calc((var(--my) - .5) * 20%)); transition: transform .15s; animation: mcHolo 6s ease-in-out infinite alternate; }
.mc-tilt .mc-holo { animation: none; transition: none; will-change: transform; transform: translate3d(calc((var(--mx) - .5) * 26%), calc((var(--my) - .5) * 10%), 0); filter: hue-rotate(calc((var(--mx) - .5) * 90deg)); }
.mc-tilt .mc-in { will-change: transform; transform: rotateY(calc((var(--mx) - .5) * 6deg)) rotateX(calc((.5 - var(--my)) * 4deg)); transition: none; }
.mc-tilt .mc.flip .mc-in { transform: rotateY(calc(180deg + (var(--mx) - .5) * 6deg)) rotateX(calc((.5 - var(--my)) * 4deg)); }
.mc-tilt .mc.turning .mc-in { transition: transform .7s cubic-bezier(.3,1.3,.5,1); }
.mc-stripe { position: absolute; top: 10%; left: 0; right: 0; height: 17%; background: #1F1A33; }
.mc-h { position: absolute; top: 31%; right: 4.5%; font-family: var(--display); font-weight: 900; font-size: 16px; -webkit-text-stroke: 2px #1F1A33; paint-order: stroke fill; }
.mc-perks { position: absolute; top: 44%; right: 4.5%; left: 4.5%; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; font-weight: 800; font-size: 12px; }
.mc-sig { position: absolute; bottom: 5%; left: 4.5%; right: 4.5%; display: flex; justify-content: space-between; align-items: flex-end; font-weight: 800; font-size: 10px; color: #D6CCFF; }
.mc-sig i { display: block; font-style: normal; font-weight: 900; font-size: 20px; color: #fff; transform: rotate(-6deg); }
.mc-off .mc-face { filter: grayscale(.85) brightness(.85); }
.mc-off .mc-holo { display: none; }
.mc-hint { margin: 4px 0 0; font-weight: 800; font-size: 12.5px; color: #7A6FA8; }
@keyframes mcIn { from { transform: translateY(14px) scale(.92); opacity: 0; } }
@keyframes mcHolo { from { margin-left: -12%; } to { margin-left: 12%; } }
@media (prefers-reduced-motion: reduce) { .mc, .mc-holo { animation: none; } .mc-in { transition: none; } }
html[lang="en"] .mc-perks { font-size: 10.5px; gap: 2px 8px; }

/* install page: the how-to video button and its player */
.in-vid { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border-radius: 22px; border: 3px solid #1F1A33; background: linear-gradient(135deg, #FF5E7E, #E5366C); color: #fff; box-shadow: 0 5px 0 #1F1A33; cursor: pointer; font: inherit; text-align: start; }
.in-vid:active { transform: translateY(3px); box-shadow: 0 2px 0 #1F1A33; }
.in-vid-play { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; background: #fff; color: #E5366C; display: grid; place-items: center; font-size: 20px; padding-inline-start: 4px; box-shadow: 0 3px 0 rgba(31,26,51,.35); }
.in-vid b { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; }
.in-vid small { display: block; font-weight: 700; font-size: 13px; opacity: .92; }
.in-player { border: 4px solid #1F1A33; box-shadow: 0 6px 0 rgba(31,26,51,.35); }

/* «أنا دفعت» on the club page, and the owner's pending list */
.pay-form { display: grid; gap: 8px; margin-top: 12px; padding: 14px; border-radius: 18px; background: #F3FFF5; border: 2.5px dashed #2EAE4F; }
.pay-form h3 { margin: 0; font-family: var(--display); font-size: 18px; }
.pay-form .msg { margin: 0; }
.pay-alt { text-align: center; font-weight: 700; font-size: 13.5px; color: #5B3FC4; }
.pay-wait { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: #FFF6D6; border: 2.5px solid #FFC21A; }
.pay-wait > span { font-size: 28px; }
.pay-wait b { display: block; font-family: var(--display); font-size: 17px; }
.pay-wait small { display: block; font-weight: 700; font-size: 13px; line-height: 1.6; color: #6A5A20; }
.adm-row.pay { border-color: #FFC21A; background: #FFFBEA; }
.adm-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-act.ok { background: #2EAE4F; border-color: #1F8A3A; color: #fff; }
.pay-pic { display: block; cursor: pointer; text-align: center; padding: 11px; border-radius: 14px; border: 2.5px dashed #9AA3BC; background: #fff; font-weight: 800; font-size: 14px; color: #4A5578; }
.pay-pic.on { border-color: #2EAE4F; color: #1F8A3A; background: #EFFFF2; }
.ipn-btn { display: flex; justify-content: center; margin: 10px 0 4px; background: linear-gradient(#7B5CFF, #5B3FC4); color: #fff; border: 3px solid #1F1A33; box-shadow: 0 5px 0 #1F1A33; font-size: 17px; text-decoration: none; }
.ipn-note { display: block; font-weight: 700; font-size: 12.5px; color: var(--muted); }

/* «تم تفعيل اشتراكك» popup */
.act-pop { text-align: center; }
.act-rows { display: grid; gap: 8px; margin: 12px 0; padding: 0; }
.act-rows > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 10px 14px; border-radius: 16px; background: #F3F6FF; border: 2px solid #D9E1F2; }
.act-rows dt { font-weight: 800; font-size: 14px; color: var(--muted); }
.act-rows dd { margin: 0; font-family: var(--display); font-size: 18px; color: #1F1A33; }

/* FAQ page */
.faq-q { border-top: 2px dashed var(--line); padding: 2px 0; }
.faq-q:first-of-type { border-top: 0; }
.faq-q summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 0; font-weight: 800; font-size: 16px; color: var(--ink, #1F1A33); line-height: 1.5; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after { content: '+'; margin-inline-start: auto; flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #E6EEFF; color: var(--blue); font-weight: 900; font-size: 18px; transition: transform .2s; }
.faq-q[open] summary::after { content: '−'; background: var(--blue); color: #fff; }
.faq-q p { margin: 0 0 12px !important; color: var(--muted); font-weight: 600; line-height: 1.75; }
.ft-links .ft-btn { min-width: 0; padding: 8px 8px; gap: 6px; font-size: clamp(14px, 3.9vw, 16px); }
/* landscape phones: the activation popup fits without scrolling */
@media (orientation: landscape) and (max-height: 520px) {
  .act-pop { max-width: 620px; padding: 12px 16px 12px; }
  .act-pop .ref-burst { width: 56px; height: 56px; margin: 0 auto; }
  .act-pop .ref-burst span { font-size: 30px; }
  .act-pop h2 { margin: 4px 0 0; font-size: 22px; }
  .act-pop .pm-sub { margin: 2px 0; font-size: 14px; }
  .act-pop .act-rows { grid-template-columns: 1fr 1fr; margin: 8px 0; gap: 6px; }
  .act-pop .act-rows > div { padding: 6px 12px; }
  .act-pop   .act-pop .btn { padding-block: 8px; min-height: 0; }
}
.con-ic svg { width: 26px; height: 26px; fill: #FFD43B; stroke: #1F1A33; stroke-width: 1.8; stroke-linejoin: round; }
.con-rn { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; margin-inline-end: 4px; }

/* countdown: link to the install page, open before launch */
.launch-inst { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 11px 14px; border-radius: 18px; background: #E6EEFF; border: 2.5px solid #2456B8; box-shadow: 0 4px 0 #1B3F8A; color: #1B3F8A; font-weight: 800; font-size: 16px; text-decoration: none; text-align: start; }
.launch-inst > span:first-child { font-size: 24px; line-height: 1; }
.launch-inst-t { flex: 1; min-width: 0; }
.launch-inst-go { font-size: 26px; line-height: 1; }
[dir="ltr"] .launch-inst-go { transform: scaleX(-1); }
.launch-inst:active { transform: translateY(3px); box-shadow: 0 1px 0 #1B3F8A; }
/* before launch, the install page is the only page that opens: hide the bottom bar */
body.pre-launch nav.tabs { display: none; }
@media (max-height: 560px) { .launch-inst { padding: 7px 12px; font-size: 14px; } }
@media (max-height: 560px) {
  .launch { padding: 10px; }
  .launch-card { max-height: calc(100vh - 20px); overflow-y: auto; gap: 5px; padding: 10px 14px; }
  .launch-logo { width: 54px; height: 54px; border-width: 3px; }
  .launch-title { font-size: 24px; }
  .launch-count div { padding: 4px 4px 3px; border-radius: 14px; }
  .launch-count b { font-size: 24px; }
  .launch-date { font-size: 14px; margin: 0; }
}
/* admin: QR scan counts */
.adm-scan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.adm-scan span { display: grid; justify-items: center; padding: 10px; border-radius: 16px; background: #EEF3FF; border: 2px solid #D5E0F5; }
.adm-scan b { font-family: var(--display); font-size: 30px; color: #2456B8; line-height: 1.1; font-variant-numeric: tabular-nums; }
.adm-scan small { font-weight: 800; color: var(--muted); }
.pay-pic.need { border-color: #E03131; color: #C92A2A; background: #FFF0F0; animation: payShake .35s; }
@keyframes payShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .pay-pic.need { animation: none; } }
/* admin: emergency switches */
.adm-sos { border-color: #FFA8A8; background: #FFF8F8; }
.adm-flag { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 2px solid #E9ECF5; margin-top: 8px; }
.adm-flag.on { border-color: #E03131; background: #FFF0F0; }
.af-ic { font-size: 24px; flex: 0 0 auto; }
.af-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.af-tx b { font-size: 15px; } .af-tx small { font-weight: 700; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.af-note { color: #C92A2A !important; }
.af-btn { flex: 0 0 auto; border: 2px solid #E03131; background: #fff; color: #C92A2A; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }
.adm-flag.on .af-btn { background: #2E9E4F; border-color: #2E9E4F; color: #fff; }
@media (max-height: 560px) { .launch.maint .launch-sub { display: block; font-size: 14px; } }
.pay-why { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; opacity: .7; word-break: break-word; }
.adm-scan.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } @media (min-width: 600px) { .adm-scan.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* admin code plans: paid plans in one row of 3, gift codes in a row of 2 */
.adm-seg { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.adm-seg button { grid-column: span 2; min-width: 0; }
.adm-seg button[data-admplan="day"], .adm-seg button[data-admplan="week"] { grid-column: span 3; }
/* game full screen inside the app: the bar hides, a small shrink button stays in the corner */
.play-ext { border: 0; cursor: pointer; font: inherit; }
/* top centre: the games keep their own buttons (home, sound) in the corners */
.play-unfs { display: none; position: absolute; z-index: 2; top: calc(4px + env(safe-area-inset-top, 0px)); left: 50%; margin-left: -26px; width: 52px; height: 30px; border-radius: 0 0 16px 16px; border: 0; background: rgba(20,24,60,.4); color: #fff; place-items: center; cursor: pointer; }
.play-unfs svg { width: 18px; height: 18px; }
.play.full .play-bar { display: none; }
.play.full .play-unfs { display: grid; }
@media (orientation: landscape) { .play-unfs { top: 50%; left: env(safe-area-inset-left, 0px); margin: -26px 0 0; width: 30px; height: 52px; border-radius: 0 16px 16px 0; } }
.gx-tag.free { background: #12B886; color: #fff; border-color: #0CA678; box-shadow: 0 2px 0 #087F5B; }
/* home: «a game is fully free» announcement */
/* puzzles: coming cases show their title and opening date, locked */
.kz-file.locked .kz-em { position: relative; filter: grayscale(.6); opacity: .85; }
.kz-lk { position: absolute; bottom: -4px; inset-inline-end: -6px; font-style: normal; font-size: 18px; filter: none; }
.kz-file.locked .kz-ft b { color: #4A5578; }
.kz-soon { flex: 0 0 auto; background: #EEF1F8; color: #4A5578; border: 2px solid #D5DBEA; font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
/* game cards: the tags (beta, new, free) sit on the top edge, so the title starts below them */
.gx-card { padding-top: 30px; }
.gx-tags { white-space: nowrap; }
@media (min-width: 700px) { .gx-card { padding-top: 34px; } }

/* launch party pop-up (1.0.0) */
.party-box { position: relative; overflow: hidden; text-align: center; padding: 0 0 18px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.party-top { position: relative; padding: 22px 18px 20px; color: #fff; background: radial-gradient(260px 200px at 100% 0%, rgba(120,170,255,.7), transparent 70%), radial-gradient(220px 200px at 0% 100%, rgba(255,94,156,.55), transparent 70%), linear-gradient(160deg, #2F6BFF, #2456D8 50%, #6A3DF0); border-radius: 0 0 28px 28px; }
.party-top h2 { margin: 10px 0 4px; font-family: var(--display); font-size: 27px; line-height: 1.25; color: #fff; }
.party-top p { margin: 0; font-weight: 700; font-size: 15px; opacity: .95; line-height: 1.5; }
.party-ver { display: inline-block; background: #FFD23F; color: #1B2340; border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: 14px; box-shadow: 0 4px 0 rgba(20,20,80,.25); }
.party-ver b { font-family: system-ui, sans-serif; }
.party-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px; }
.party-grid span { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 16px; background: #F3F6FF; border: 2px solid #E1E8FF; }
.party-grid img { width: 34px; height: 34px; }
.party-grid b { font-size: 12.5px; line-height: 1.3; color: var(--ink); }
.party-gift { margin: 0 16px; padding: 10px 12px; border-radius: 14px; background: #FFF6D6; border: 2px dashed #FFC94A; font-weight: 800; font-size: 14px; color: #7A4B00; }
.party-go { margin: 0 16px; }
.party-box .pm-x { z-index: 3; background: rgba(255,255,255,.9); }
.party-cf { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.party-cf i { position: absolute; top: -14px; left: var(--x); width: 8px; height: 14px; border-radius: 2px; background: var(--c); transform: rotate(var(--r)); animation: partyFall 3.2s linear var(--d) 3 both; }
@media (prefers-reduced-motion: reduce) { .party-cf { display: none; } }
@media (orientation: landscape) and (max-height: 520px) {
  .party-box { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px 0; max-width: min(760px, 96vw); padding: 0; }
  .party-top { grid-row: 1 / 4; height: 100%; border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
  .party-top h2 { font-size: 22px; }
  .party-grid { padding: 14px 14px 0; gap: 6px; } .party-grid span { padding: 6px 2px; } .party-grid img { width: 26px; height: 26px; }
  .party-go { margin: 0 14px 14px; }
}
.party-box { background: #fff; }
.party-top > .party-txt, .party-top > p { position: relative; z-index: 1; }
.party-top > .party-hero { z-index: 1; }
.party-cf { z-index: 0; } .party-cf i { animation-iteration-count: infinite; } @keyframes partyFall { to { transform: translateY(420px) rotate(calc(var(--r) + 540deg)); } }
.party-ver { align-self: center; }
.party-top h2 { font-size: 25px; }
.party-grid img[src*="kenzy"] { border-radius: 50%; }
@media (orientation: landscape) and (max-height: 520px) { .party-box .pm-x { left: auto; right: 12px; top: 12px; } .party-top { padding-top: 26px; } }
/* launch party header: the launch-ad look (rings, sparkles, Yahya, app icons) */
.party-top { text-align: start; padding: 22px 18px 16px; min-height: 230px; overflow: hidden; }
.party-ring { position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); top: -120px; inset-inline-end: -90px; }
.party-ring.r2 { width: 180px; height: 180px; top: auto; bottom: -90px; inset-inline-end: auto; inset-inline-start: 30%; }
.party-st { position: absolute; color: #FFD23F; font-size: 22px; line-height: 1; } .party-st.w { color: #fff; font-size: 14px; }
.party-hero { position: absolute; inset-inline-end: -4px; top: 34px; width: 132px; transform: rotate(4deg); filter: drop-shadow(0 10px 14px rgba(10,10,60,.35)); animation: shFloat 2.6s ease-in-out infinite; }
.party-txt { position: relative; margin-inline-end: 120px; display: grid; justify-items: start; gap: 8px; }
.party-kick { background: #FF5E9C; color: #fff; border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: 13px; box-shadow: 0 6px 16px rgba(255,94,156,.45); }
.party-top h2 { margin: 0; font-size: 26px; line-height: 1.2; text-align: start; }
.party-top h2 span { color: #FFD23F; font-size: 30px; }
.party-ver { align-self: auto; font-size: 13px; padding: 3px 12px; }
.party-icons { display: flex; gap: 6px; }
.party-icons img { width: 34px; height: 34px; border-radius: 10px; border: 2px solid rgba(255,255,255,.7); box-shadow: 0 4px 10px rgba(10,10,60,.3); }
.party-icons img:nth-child(odd) { transform: rotate(-6deg); } .party-icons img:nth-child(even) { transform: rotate(6deg); }
.party-top p { position: relative; margin-top: 12px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .party-hero { animation: none; } }
@media (orientation: landscape) and (max-height: 520px) { .party-top { min-height: 0; justify-content: center; } .party-hero { top: auto; bottom: 46px; width: 124px; } .party-top h2 { font-size: 22px; } .party-top h2 span { font-size: 26px; } }
.party-hero { top: 62px; width: 128px; }
@media (orientation: landscape) and (max-height: 520px) { .party-hero { top: auto; bottom: 50px; width: 118px; } }
.party-top p { margin-top: 22px; }
@media (orientation: landscape) and (max-height: 520px) { .party-txt { margin-top: 34px; } .party-top p { margin-top: 12px; } }

/* ---------- «حكايات ماما» */
.st-banner { background: linear-gradient(140deg, #3B2F9E, #1F1A5C); color: #fff; border-color: #2A2370; box-shadow: 0 6px 0 #17134A; }
.st-banner .label { color: #FFE89A; } .st-banner .sub { color: rgba(255,255,255,.8); }
.st-banner .ab-ic img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.st-banner .pill-soon { background: #FFD23F; color: #1B2340; }
body.st-night { background: #120F33; } body.st-night .app { background: radial-gradient(500px 360px at 85% 0%, rgba(140,120,255,.35), transparent 70%), linear-gradient(180deg, #2B2470, #1A1646 50%, #120F33); }
.st-page { color: #fff; }
.st-page .back { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.st-page .back svg { stroke: #fff; }
.st-pv { font-size: 13px; padding: 8px 12px; border-radius: 14px; background: rgba(255,210,63,.15); color: #FFE89A; border: 1px dashed rgba(255,210,63,.5); }
.st-hero { position: relative; border-radius: 26px; padding: 20px 18px 18px; background: radial-gradient(300px 200px at 0% 0%, rgba(140,120,255,.45), transparent 70%), linear-gradient(140deg, #3B2F9E, #26206A); border: 1px solid rgba(255,255,255,.14); overflow: hidden; min-height: 116px; }
.st-moon { position: absolute; inset-inline-end: 34px; top: 16px; width: 64px; height: 64px; border-radius: 50%; box-shadow: -16px 9px 0 0 #FFE89A; }
.st-hero h1 { position: relative; margin: 0; font-family: var(--display); font-size: 30px; line-height: 1.2; }
.st-hero p { position: relative; margin: 6px 0 0; font-weight: 700; font-size: 14.5px; opacity: .85; max-width: 70%; }
.st-map { border-radius: 20px; padding: 12px 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.st-map b { font-size: 14.5px; } .st-map b span { color: #FFD23F; }
.st-sec { font-weight: 800; font-size: 14px; opacity: .8; margin: 4px 4px -4px; }
.st-feat { display: grid; grid-template-columns: 116px 1fr; gap: 12px; align-items: center; border-radius: 22px; padding: 10px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.st-feat .art img { width: 116px; height: 116px; border-radius: 16px; object-fit: cover; display: block; }
.st-feat .tx { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.st-feat .tag { background: #FFE3EE; color: #C2185B; border-radius: 999px; padding: 1px 10px; font-size: 12.5px; font-weight: 800; }
.st-feat b { font-family: var(--display); font-size: 20px; line-height: 1.25; }
.st-feat small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.st-feat .go { margin-top: 4px; background: #FFD23F; color: var(--ink); border-radius: 999px; padding: 5px 14px; font-family: var(--display); font-size: 15px; box-shadow: 0 3px 0 #D9A90F; }
.st-chip { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.st-chip.done { background: rgba(62,230,181,.2); color: #7CF5D0; } .st-chip.club { background: rgba(255,210,63,.18); color: #FFD23F; } .st-chip.soon { background: rgba(255,255,255,.1); } .st-chip.go { background: #FFD23F; color: var(--ink); }
/* the player: a full-screen storybook */
body.st-open { overflow: hidden; }
body.st-open .tabs, body.st-open header.top { visibility: hidden; }
.stp { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: #17133F; color: #fff; overflow: hidden; }
.stp-scene { position: relative; flex: 0 0 50%; overflow: hidden; }
.stp-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s, filter .4s; }
.stp-scene img.fade { opacity: 0; }
.stp.night .stp-scene img { filter: brightness(.55) saturate(.8); }
.stp-scene::after { content: ''; position: absolute; inset: auto 0 0; height: 48%; background: linear-gradient(transparent, #17133F); pointer-events: none; }
.stp-bar { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.stp-ib { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,12,50,.5); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 18px; padding: 0; cursor: pointer; }
.stp-ib svg { display: block; width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stp-where { padding: 7px 14px; border-radius: 999px; background: rgba(15,12,50,.5); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.22); font-weight: 800; font-size: 13px; }
.stp-ttl { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; z-index: 2; }
.stp-ttl small { display: block; font-weight: 800; font-size: 12.5px; color: #FFE89A; }
.stp-ttl b { font-family: var(--display); font-size: 28px; text-shadow: 0 3px 14px rgba(0,0,0,.55); }
.stp-low { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 16px calc(12px + env(safe-area-inset-bottom)); }
.stp-dots { display: flex; justify-content: center; gap: 6px; margin: 2px 0 10px; }
.stp-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.25); transition: width .3s; } .stp-dots i.ok { background: rgba(255,232,154,.6); } .stp-dots i.on { width: 24px; background: #FFE89A; }
.stp-page { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 22px; padding: 16px 20px 34px; color: #2A2350; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(240px 120px at 100% 0%, #FFFDF6, transparent), linear-gradient(180deg, #FFF8EA, #F6EBD3); box-shadow: 0 16px 40px rgba(0,0,0,.4), inset 0 0 0 1px rgba(160,120,60,.15); }
.stp-page::before { content: ''; position: absolute; inset: 8px; border-radius: 16px; border: 1.5px dashed rgba(170,130,70,.25); pointer-events: none; }
.stp-page p { margin: 0; } .stp-page .prev, .stp-page .next { font-weight: 700; font-size: 14px; color: #8C7A5E; line-height: 1.7; }
.stp-page .prev { margin-bottom: 8px; } .stp-page .next { margin-top: 8px; color: #B9AE98; }
.stp-page .now { font-family: var(--display); font-size: 21px; line-height: 1.6; animation: stIn .35s ease-out; }
.stp.fs2 .stp-page .now { font-size: 24px; } .stp.fs3 .stp-page .now { font-size: 28px; } .stp.fs3 .stp-page .prev, .stp.fs3 .stp-page .next { display: none; }
.stp-page .now em { font-style: normal; background: linear-gradient(transparent 58%, rgba(255,210,63,.7) 58%); }
.stp.noread .stp-page .now em { background: none; } .stp.noread .stp-page { filter: saturate(.6); }
.stp.noread .stp-page p { opacity: .35; }
@keyframes stIn { from { opacity: 0; transform: translateY(6px); } }
.stp-mama { position: absolute; bottom: 10px; inset-inline-end: 14px; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11.5px; color: #8C7A5E; opacity: .5; }
.stp-mama.on { opacity: 1; }
.stp-mama i { display: flex; gap: 2px; align-items: end; height: 14px; } .stp-mama i b { width: 3px; height: 5px; border-radius: 2px; background: #E0A93C; }
.stp-mama.on i b { animation: stWave .9s ease-in-out infinite; } .stp-mama i b:nth-child(2) { animation-delay: .15s; } .stp-mama i b:nth-child(3) { animation-delay: .3s; } .stp-mama i b:nth-child(4) { animation-delay: .45s; } .stp-mama i b:nth-child(5) { animation-delay: .6s; }
@keyframes stWave { 50% { height: 14px; } }
.stp-tools { display: flex; margin-top: 10px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 4px; gap: 4px; }
.stp-tools button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border-radius: 14px; border: 0; background: none; color: rgba(255,255,255,.75); font: 800 11.5px 'Tajawal', sans-serif; cursor: pointer; }
.stp-tools button.on { background: rgba(255,232,154,.14); color: #FFE89A; box-shadow: inset 0 0 0 1px rgba(255,232,154,.35); }
.stp-tools svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stp-tools b { font-family: system-ui, sans-serif; font-size: 15px; line-height: 20px; }
.stp-end { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: rgba(15,12,50,.82); backdrop-filter: blur(4px); animation: stIn .4s; }
.stp-end.sleep { background: #07061A; transition: background 3s; cursor: pointer; }
.stp-gn { display: grid; justify-items: center; gap: 10px; text-align: center; } .stp-gn b { font-family: var(--display); font-size: 30px; color: #FFE89A; } .stp-gn small { opacity: .4; font-weight: 700; }
.stp-gn .mn { width: 70px; height: 70px; border-radius: 50%; box-shadow: -16px 10px 0 0 #FFE89A; margin-inline-start: 30px; }
.stp-done { width: min(340px, 100%); display: grid; gap: 10px; justify-items: center; text-align: center; padding: 22px 18px; border-radius: 26px; background: #fff; color: var(--ink); }
.stp-done .fl { font-size: 46px; } .stp-done b { font-family: var(--display); font-size: 22px; } .stp-done p { margin: 0; font-weight: 700; color: var(--muted); line-height: 1.6; }
.stp-done .btn { width: 100%; }
@media (orientation: landscape) and (max-height: 600px) {
  .stp { flex-direction: row; }
  .stp-scene { flex: 0 0 44%; }
  .stp-scene::after { inset: 0 auto 0 0; width: 40%; height: auto; background: linear-gradient(-90deg, transparent, #17133F); }
  .stp-low { padding: 12px 16px 10px; }
  .stp-dots { margin: 0 0 8px; }
  .stp-page { padding: 12px 18px 30px; } .stp-page .now { font-size: 18px; } .stp-page .prev, .stp-page .next { font-size: 12.5px; }
  .stp.fs2 .stp-page .now { font-size: 21px; } .stp.fs3 .stp-page .now { font-size: 24px; } .stp-tools { margin-top: 6px; } .stp-tools button { flex-direction: row; justify-content: center; gap: 6px; padding: 6px; }
}
.stp-end[hidden] { display: none; }
.stp-page.long .prev, .stp-page.long .next { display: none; } .stp-page.mid .prev { display: none; }
.stp-page { justify-content: safe center; }

/* player controls v2: one family of line icons, glass buttons, volume and speed */
.stp-ib svg { stroke-width: 2; }
.stp-tools button:active { transform: scale(.94); }
.stp-tools { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.stp-tools button { gap: 4px; padding: 8px 2px; transition: transform .12s, background .2s; }
.stp-tools button svg { width: 22px; height: 22px; stroke-width: 1.8; }
.stp-tools button span { font-size: 11px; white-space: nowrap; }
@media (orientation: landscape) and (max-height: 600px) {
  .stp-tools { margin-top: 6px; } .stp-tools button { flex-direction: row; padding: 5px 2px; gap: 4px; } .stp-tools button svg { width: 18px; height: 18px; } .stp-tools button span { font-size: 10.5px; }
}
@media (orientation: portrait) and (max-height: 780px) { .stp-scene { flex-basis: 42%; } .stp-page .now { font-size: 18.5px; line-height: 1.55; } .stp.fs2 .stp-page .now { font-size: 21px; } .stp.fs3 .stp-page .now { font-size: 24px; } .stp-tools { margin-top: 8px; } }

/* bedtime tool buttons: each its own soft night colour, a glowing icon bubble when on */
.stp-tools { background: none; border: 0; padding: 0; gap: 8px; }
.stp-tools button { position: relative; flex-direction: column; gap: 5px; padding: 10px 2px 9px; border-radius: 20px; color: #fff; background: linear-gradient(160deg, var(--c1), var(--c2)); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 4px 0 var(--c3), 0 8px 18px rgba(0,0,0,.25); opacity: .62; filter: saturate(.55); transition: transform .12s, opacity .2s, filter .2s, box-shadow .2s; }
.stp-tools button.on, .stp-tools button.t-font { opacity: 1; filter: none; }
.stp-tools button.on { box-shadow: 0 4px 0 var(--c3), 0 0 22px var(--glow); }
.stp-tools button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--c3); }
.stp-tools button i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.stp-tools button svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; }
.stp-tools button span { font: 800 11.5px 'Tajawal', sans-serif; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.stp-tools button.on::after { content: ''; position: absolute; top: 7px; inset-inline-end: 9px; width: 8px; height: 8px; border-radius: 50%; background: #FFF6C9; box-shadow: 0 0 8px #FFE89A; }
.stp-tools .t-read { --c1: #7C6CF2; --c2: #5847D6; --c3: #3D2FA8; --glow: rgba(124,108,242,.6); }
.stp-tools .t-music { --c1: #FF8FB8; --c2: #E5649A; --c3: #B8457A; --glow: rgba(255,143,184,.55); }
.stp-tools .t-sleep { --c1: #FFC94A; --c2: #F2A93B; --c3: #C27F1C; --glow: rgba(255,201,74,.55); }
.stp-tools .t-font { --c1: #3FC9B0; --c2: #22A88F; --c3: #157A68; --glow: rgba(63,201,176,.5); }
@media (orientation: landscape) and (max-height: 600px) {
  .stp-tools { gap: 6px; } .stp-tools button { flex-direction: row; padding: 5px 4px; gap: 6px; border-radius: 16px; box-shadow: 0 3px 0 var(--c3); }
  .stp-tools button i { width: 26px; height: 26px; } .stp-tools button svg { width: 16px; height: 16px; } .stp-tools button span { font-size: 10.5px; }
  .stp-tools button.on::after { top: 4px; inset-inline-end: 5px; width: 6px; height: 6px; }
}
.stp .stp-tools button, .stp .stp-tools button.on { background: linear-gradient(160deg, var(--c1), var(--c2)); color: #fff; }
.stp .stp-tools button { opacity: .5; filter: none; }
.stp .stp-tools button.on, .stp .stp-tools button.t-font { opacity: 1; box-shadow: 0 4px 0 var(--c3), 0 0 22px var(--glow), inset 0 1px 0 rgba(255,255,255,.3); }
.stp .stp-tools button.t-font { box-shadow: 0 4px 0 var(--c3), inset 0 1px 0 rgba(255,255,255,.3); }
@media (orientation: landscape) and (max-height: 600px) { .stp .stp-tools button.on { box-shadow: 0 3px 0 var(--c3), 0 0 16px var(--glow); } .stp .stp-tools button.t-font { box-shadow: 0 3px 0 var(--c3); } }
/* bedtime tool buttons, v3: same family as the page — night glass when off, the book's cream paper with moon-gold when on */
.stp .stp-tools { gap: 8px; }
.stp .stp-tools button, .stp .stp-tools button.on, .stp .stp-tools button.t-font { opacity: 1; filter: none; color: #CFC8F5; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); border-radius: 18px; }
.stp .stp-tools button i { background: rgba(255,255,255,.08); box-shadow: none; width: 32px; height: 32px; }
.stp .stp-tools button svg { stroke: #CFC8F5; }
.stp .stp-tools button span { color: #CFC8F5; text-shadow: none; font-weight: 800; }
.stp .stp-tools button.on { background: linear-gradient(180deg, #FFF8EA, #F6E7C4); border-color: rgba(255,232,154,.9); box-shadow: 0 0 0 1px rgba(255,232,154,.25), 0 6px 18px rgba(255,210,63,.18); }
.stp .stp-tools button.on i { background: #FFD23F; box-shadow: 0 2px 6px rgba(217,169,15,.45); }
.stp .stp-tools button.on svg { stroke: #2A2350; }
.stp .stp-tools button.on span { color: #2A2350; }
.stp .stp-tools button.on::after { display: none; }
.stp .stp-tools button:active { transform: scale(.95); box-shadow: none; }
@media (orientation: landscape) and (max-height: 600px) { .stp .stp-tools button i { width: 24px; height: 24px; } .stp .stp-tools button.on { box-shadow: 0 0 0 1px rgba(255,232,154,.25); } }

/* «حكايات ماما» card on home: the Kenzy card's layout in night colours */
.st-banner { background: radial-gradient(220px 140px at 0% 0%, rgba(140,120,255,.45), transparent 70%), linear-gradient(135deg, #2B2470, #3B2F9E 60%, #4C3FB8); }
.st-banner::after { content: ""; left: auto; inset-inline-end: -26px; bottom: auto; top: -30px; width: 96px; height: 96px; border-radius: 50%; box-shadow: -22px 14px 0 0 rgba(255,232,154,.16); opacity: 1; transform: none; font-size: 0; }
.st-banner .ab-ic { background: #1F1A55; border-color: #FFE89A; }
.st-banner .ab-ic img { width: 82%; height: 82%; }
.st-banner .label { color: #FFE89A; }
.st-banner .pill-soon { background: #FFD23F; color: #2A2350; }
.st-bn-stars i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: .6; animation: stTw 2.6s ease-in-out infinite; }
.st-bn-stars i:nth-child(1) { top: 14px; left: 38%; } .st-bn-stars i:nth-child(2) { top: 62%; left: 22%; width: 3px; height: 3px; animation-delay: .8s; }
.st-bn-stars i:nth-child(3) { top: 24%; left: 12%; width: 3px; height: 3px; animation-delay: 1.5s; } .st-bn-stars i:nth-child(4) { bottom: 12px; left: 46%; animation-delay: 2s; }
@keyframes stTw { 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .st-bn-stars i { animation: none; } }
.st-banner .ab-ic { background: radial-gradient(circle at 35% 30%, #fff, #ECE8FF 70%); }
.st-bn-stars i:nth-child(1) { left: 26%; top: 12px; } .st-bn-stars i:nth-child(4) { left: 30%; bottom: 10px; }

/* countdown to a story's opening */
.st-cd { display: inline-flex; align-items: baseline; gap: 4px; direction: ltr; }
.st-cd b { min-width: 34px; padding: 3px 6px; border-radius: 9px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,232,154,.4); font: 800 18px/1.2 system-ui, sans-serif; color: #FFE89A; text-align: center; }
.st-cd small { font-size: 10px; font-weight: 800; opacity: .75; margin-inline-start: -1px; }
.st-cd i { font-style: normal; color: #FFE89A; opacity: .6; font-weight: 800; }
[dir=rtl] .st-cd { flex-direction: row-reverse; }
.st-feat .st-cd b { background: #2B2470; color: #FFE89A; border-color: #2B2470; }
.st-feat .st-cd small { color: var(--muted); opacity: 1; }
.st-feat .st-cd i { color: #2B2470; }
.st-lock .art { position: relative; } .st-lock .art img { filter: brightness(.65) saturate(.8); }
.st-lock .lk { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; }

.st-cd { display: inline-flex; align-items: flex-start; gap: 5px; direction: inherit; }
[dir=rtl] .st-cd { flex-direction: row; }
.st-cd .u { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.st-cd b { min-width: 40px; }
.st-cd small { margin: 0; }
.st-cd i { padding-top: 4px; }

/* games page: the games stand on a wooden toy shelf, three per plank (five on wide screens) */
.gx-sec .gx-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; padding: 14px 10px 0; border-radius: 22px; border: 3px solid #C98A4B;
  background: repeating-linear-gradient(to bottom, #FFF4DE 0 150px, #B8763A 150px 164px, #8A5326 164px 168px); box-shadow: 0 5px 0 #A86A33; }
.gx-sec .gx-card { display: flex; flex-direction: column; align-items: center; height: 168px; padding: 0 0 22px; background: none; border: 0; border-radius: 0; box-shadow: none; animation: none; }
.gx-sec .gx-card:active { transform: translateY(3px); box-shadow: none; }
.gx-sec .gx-art { display: block; padding: 0; }
.gx-sec .gx-art img { width: 92px; height: 92px; border-radius: 18px; border: 3px solid #fff; box-shadow: 0 6px 0 rgba(0,0,0,.18); transform: rotate(-3deg); transition: transform .15s; }
.gx-sec .gx-card:nth-child(2n) .gx-art img { transform: rotate(3deg); }
.gx-sec .gx-card:hover .gx-art img { transform: rotate(0) translateY(-3px); }
.gx-sec .gx-info { padding: 6px 0 0; gap: 0; align-items: center; text-align: center; }
.gx-sec .gx-title { font-size: 13px; line-height: 1.2; color: #6B3E12; text-shadow: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gx-sec .gx-desc, .gx-sec .gx-club, .gx-sec .gx-topic, .gx-sec .gx-play, .gx-sec .gx-tag.beta { display: none; }
.gx-sec .gx-tags { top: -8px; left: 50%; transform: translateX(-50%); gap: 4px; white-space: nowrap; } .gx-sec .gx-tag { font-size: 10px; padding: 2px 7px; border-width: 1.5px; }
.gx-sec .gx-medal { width: 26px; height: 32px; top: -4px; right: 2px; }
.gx-sec .gx-card.gx-lock .gx-cd, .gx-sec .gx-pv { display: none; }
.gx-sec .gx-soon.gx-draw { grid-column: 1 / -1; align-self: start; margin-bottom: 30px; }
@media (min-width: 700px) { .gx-sec .gx-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* compact section headers (like the games page): icon beside the title, less height */
.ct-hero, .sh-hero, .shc-hero, .lb-hero, .kz-hero, .tr-hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; align-content: center;
  text-align: start; padding: 12px 16px; border-radius: 24px; }
.ct-hero > :not(.gx-spark):not(.ct-ic), .sh-hero > :not(.gx-spark):not(.sh-trophy), .shc-hero > :not(.gx-spark):not(img),
.lb-hero > :not(.gx-spark):not(.lb-av):not(.lb-bub):not(.lb-mol), .kz-hero > :not(.gx-spark):not(.kz-av), .tr-hero > :not(.tr-cloud):not(.tr-balloon) { grid-column: 2; }
.ct-ic, .sh-trophy, .shc-hero > img, .lb-av, .kz-hero .kz-av, .tr-balloon { grid-column: 1; grid-row: 1 / span 4; width: 56px; height: 56px; }
.ct-ic img, .lb-av img { width: 38px; height: 38px; }
.lb-av, .kz-hero .kz-av { border-width: 3px; }
.shc-hero > img { padding: 6px; }
.ct-hero h1, .sh-hero h1, .shc-hero h1, .lb-hero h1, .kz-hero h1, .tr-hero h1 { margin: 0; font-size: 24px; line-height: 1.2; }
.sh-hero p, .lb-hero p, .kz-hero p, .tr-hero p { font-size: 12.5px; line-height: 1.5; margin: 0; }
.ct-chips { justify-content: flex-start; gap: 6px; margin-top: 4px; } .ct-chips span { font-size: 12px; padding: 3px 10px; }
.sh-meter { margin: 6px 0 0; max-width: none; height: 24px; border-width: 2px; } .sh-meter b { font-size: 12px; }
.tr-count { justify-self: start; margin-top: 4px; font-size: 12px; padding: 3px 10px; }
.st-hero { padding: 12px 16px; } .st-hero h1 { font-size: 24px; } .st-hero p { font-size: 12.5px; margin-top: 2px; }
.st-hero { min-height: 0; } .st-hero .st-moon { transform: scale(.55); top: 2px; inset-inline-end: 22px; }
.tr-hero h1, .tr-hero p, .tr-count { z-index: 1; }
.tr-hero .tr-cloud { display: none; }
/* one size for every section header: same height, icon, title and one line under it */
.ct-hero, .sh-hero, .shc-hero, .lb-hero, .kz-hero, .tr-hero, .gx-hero.mini, .st-hero { height: 96px; min-height: 0; box-sizing: border-box; padding: 12px 16px; border-radius: 24px; overflow: hidden; }
.ct-ic, .sh-trophy, .shc-hero > img, .lb-av, .kz-hero .kz-av, .tr-balloon, .gx-hero.mini .gx-pad { width: 58px !important; height: 58px !important; }
.ct-hero h1, .sh-hero h1, .shc-hero h1, .lb-hero h1, .kz-hero h1, .tr-hero h1, .gx-hero.mini h1, .st-hero h1 { font-size: 22px !important; line-height: 1.25; margin: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-hero p, .kz-hero p, .gx-hero.mini p, .st-hero p { font-size: 12.5px !important; line-height: 1.5; margin: 2px 0 0 !important; max-width: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-hero p, .tr-hero p { display: none; }
.sh-meter { height: 22px; margin-top: 6px; } .ct-chips { margin-top: 5px; } .tr-count { margin-top: 5px; }
.st-hero { display: flex; flex-direction: column; justify-content: center; }
.ct-ic, .sh-trophy, .shc-hero > img, .lb-av, .kz-hero .kz-av, .tr-balloon { grid-row: 1 / span 2 !important; }

/* every section header moves: the icon bobs, the sparkles twinkle, and a soft light sweeps across now and then */
.ct-ic, .sh-trophy, .shc-hero > img, .lb-av, .kz-hero .kz-av, .gx-hero.mini .gx-pad { animation: gxBob 2.6s ease-in-out infinite !important; }
.tr-balloon { animation: trFloat 3s ease-in-out infinite !important; }
.st-hero .st-moon { animation: stMoon 4s ease-in-out infinite; }
@keyframes stMoon { 0%,100% { transform: scale(.55) rotate(-6deg); } 50% { transform: scale(.55) translateY(-8px) rotate(6deg); } }
.ct-hero .gx-spark, .sh-hero .gx-spark, .shc-hero .gx-spark, .lb-hero .gx-spark, .kz-hero .gx-spark, .tr-hero .gx-spark, .gx-hero.mini .gx-spark, .st-hero .gx-spark { display: block !important; z-index: 0; font-size: 13px; }
.ct-hero .gx-spark.s1, .sh-hero .gx-spark.s1, .shc-hero .gx-spark.s1, .lb-hero .gx-spark.s1, .kz-hero .gx-spark.s1, .tr-hero .gx-spark.s1, .gx-hero.mini .gx-spark.s1, .st-hero .gx-spark.s1 { top: 10px; right: auto; left: 30%; font-size: 15px; }
.ct-hero .gx-spark.s2, .sh-hero .gx-spark.s2, .shc-hero .gx-spark.s2, .lb-hero .gx-spark.s2, .kz-hero .gx-spark.s2, .tr-hero .gx-spark.s2, .gx-hero.mini .gx-spark.s2, .st-hero .gx-spark.s2 { top: 58px; left: 12%; }
.ct-hero .gx-spark.s3, .sh-hero .gx-spark.s3, .shc-hero .gx-spark.s3, .lb-hero .gx-spark.s3, .kz-hero .gx-spark.s3, .tr-hero .gx-spark.s3, .gx-hero.mini .gx-spark.s3, .st-hero .gx-spark.s3 { top: auto; bottom: 10px; right: auto; left: 44%; }
.ct-hero .gx-spark.s4, .sh-hero .gx-spark.s4, .shc-hero .gx-spark.s4, .lb-hero .gx-spark.s4, .kz-hero .gx-spark.s4, .tr-hero .gx-spark.s4, .gx-hero.mini .gx-spark.s4, .st-hero .gx-spark.s4 { top: 16px; left: 6%; }
.ct-hero .gx-spark.s5, .sh-hero .gx-spark.s5, .shc-hero .gx-spark.s5, .lb-hero .gx-spark.s5, .kz-hero .gx-spark.s5, .tr-hero .gx-spark.s5, .gx-hero.mini .gx-spark.s5, .st-hero .gx-spark.s5 { top: auto; bottom: 14px; left: 22%; }
.ct-hero::after, .sh-hero::after, .shc-hero::after, .lb-hero::after, .kz-hero::after, .tr-hero::after, .gx-hero.mini::after, .st-hero::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 34%; left: -40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent); transform: skewX(-18deg); animation: heroSweep 6s ease-in-out infinite; }
@keyframes heroSweep { 0%, 62% { left: -40%; } 100% { left: 120%; } }
.ct-hero > *, .sh-hero > *, .shc-hero > *, .lb-hero > *, .kz-hero > *, .tr-hero > *, .gx-hero.mini > *, .st-hero > * { position: relative; }
.ct-hero > .gx-spark, .sh-hero > .gx-spark, .shc-hero > .gx-spark, .lb-hero > .gx-spark, .kz-hero > .gx-spark, .tr-hero > .gx-spark, .gx-hero.mini > .gx-spark, .st-hero > .gx-spark, .lb-hero > .lb-bub, .lb-hero > .lb-mol, .st-hero > .st-moon { position: absolute; }
@media (prefers-reduced-motion: reduce) { .ct-hero *, .sh-hero *, .shc-hero *, .lb-hero *, .kz-hero *, .tr-hero *, .gx-hero *, .st-hero *, .ct-hero::after, .sh-hero::after, .shc-hero::after, .lb-hero::after, .kz-hero::after, .tr-hero::after, .gx-hero::after, .st-hero::after { animation: none !important; } }
.sh-meter, .ct-chips, .tr-count, .ct-hero h1, .sh-hero h1, .shc-hero h1, .lb-hero h1, .kz-hero h1, .tr-hero h1, .gx-hero.mini h1, .st-hero h1 { z-index: 1; }

/* ❤️ likes on Mama's stories */
.st-like { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; cursor: pointer; font: inherit; color: #fff; }
.st-like svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.st-like.on svg { fill: #FF4D7E; stroke: #FF4D7E; }
.st-like.pop svg { animation: stLikePop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes stLikePop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.stp-bar .st-like.stp-ib svg { stroke-width: 2.2; fill: none; stroke: #fff; }
.stp-bar .st-like.stp-ib.on svg { fill: #FF4D7E; stroke: #FF4D7E; }
.stp-bar .st-like .n { position: absolute; bottom: -6px; inset-inline-start: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #FF4D7E; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.stp-bar .st-like .n:empty { display: none; }
.stp-bar { gap: 8px; }
.stp-likeq { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 8px; font-weight: 800; font-size: 14px; }
.st-like.big { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: #FF4D7E; box-shadow: 0 4px 0 #E3D7F5; flex: none; flex-direction: column; gap: 0; }
.st-like.big svg { width: 30px; height: 30px; }
.st-like.big .n { font-size: 11px; font-weight: 800; color: #FF4D7E; line-height: 1; }
.st-like.big .n:empty { display: none; }
.st-hearts { color: #FF8FB1; font-weight: 800; }
.stp-r { display: flex; gap: 8px; }

/* story player controls: story bar with time gone / left, a clear play button, ±15 with words, volume on the side */
.stp-page.tight .prev, .stp-page.tight .next { display: none; }
.nx { direction: ltr; margin-top: 10px; }
.nx-seek { display: grid; grid-template-columns: 42px 1fr 48px; align-items: center; gap: 8px; }
.nx-seek .t { font: 800 12.5px system-ui, sans-serif; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
.nx-seek .t.r { text-align: right; color: rgba(255,255,255,.6); }
.nx-track { position: relative; height: 8px; border-radius: 99px; background: rgba(255,255,255,.16); }
.nx-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, #FFC21A, #FFE27A); box-shadow: 0 0 10px rgba(255,210,63,.45); }
.nx-tick { position: absolute; top: -3px; width: 3px; height: 14px; border-radius: 2px; background: rgba(255,255,255,.35); transform: translateX(-50%); pointer-events: none; }
.nx-knob { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 2px 6px rgba(0,0,0,.35), 0 0 0 5px rgba(255,210,63,.35); pointer-events: none; }
.nx-track input { position: absolute; inset: -14px -10px; width: calc(100% + 20px); height: 36px; margin: 0; opacity: 0; cursor: pointer; direction: ltr; }
.nx-ctl { position: relative; display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 14px; }
.nx-sk { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; color: #fff; padding: 0; cursor: pointer; font: inherit; }
.nx-sk .c { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); transition: transform .12s, background .12s; }
.nx-sk:active .c { transform: scale(.92); background: rgba(255,255,255,.18); }
.nx-sk svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nx-sk b { position: absolute; font: 900 11px system-ui, sans-serif; top: 51%; left: 50%; transform: translate(-50%, -50%); }
.nx-sk small { font-family: var(--display); font-weight: 700; font-size: 11px; opacity: .75; }
.nx-play { width: 78px; height: 78px; border-radius: 50%; border: 0; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: radial-gradient(circle at 35% 28%, #FFF1B0 0 18%, #FFD23F 45%, #F5B400 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 0 0 7px rgba(255,210,63,.14), inset 0 -4px 0 rgba(0,0,0,.12), inset 0 3px 0 rgba(255,255,255,.55); transition: transform .12s; }
.nx-play:active { transform: scale(.94); }
.nx-play.on { animation: nxGlow 2.4s ease-in-out infinite; }
@keyframes nxGlow { 0%,100% { box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 0 0 7px rgba(255,210,63,.14), inset 0 -4px 0 rgba(0,0,0,.12), inset 0 3px 0 rgba(255,255,255,.55); } 50% { box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 0 0 12px rgba(255,210,63,.08), inset 0 -4px 0 rgba(0,0,0,.12), inset 0 3px 0 rgba(255,255,255,.55); } }
.nx-play { position: relative; }
/* the core: a cream disc inside the yellow moon-orb, with the icon in its exact centre */
.nx-core { width: 70%; height: 70%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, #FFFDF2, #FFF2C2 70%); box-shadow: inset 0 -3px 0 rgba(181,120,0,.18), 0 2px 0 rgba(255,255,255,.6); }
.nx-play svg { display: block; width: 62%; height: 62%; fill: #2A2350; }
/* a dotted «orbit» turns around the button while the story plays, and two little stars twinkle */
.nx-play::before { content: ""; position: absolute; inset: -11px; border-radius: 50%; border: 2px dashed rgba(255,232,154,.55); opacity: 0; transition: opacity .3s; pointer-events: none; }
.nx-play.on::before { opacity: 1; animation: nxOrbit 9s linear infinite; }
.nx-st { position: absolute; font-style: normal; color: #FFE89A; font-size: 13px; line-height: 1; pointer-events: none; text-shadow: 0 0 8px rgba(255,232,154,.8); }
.nx-st.s1 { top: -6px; inset-inline-end: -2px; animation: nxTw 2.2s ease-in-out infinite; }
.nx-st.s2 { bottom: 0; inset-inline-start: -8px; font-size: 9px; animation: nxTw 2.2s 1.1s ease-in-out infinite; }
.nx-play:not(.on) .nx-st { opacity: .55; animation-duration: 3.4s; }
@keyframes nxOrbit { to { transform: rotate(360deg); } }
@keyframes nxTw { 0%,100% { transform: scale(.7); opacity: .4; } 50% { transform: scale(1.15); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nx-play.on::before, .nx-st { animation: none !important; } }
@media (orientation: landscape) and (max-height: 520px) { .nx-ctl { margin-top: 8px; gap: 24px; } .nx-play { width: 64px; height: 64px; } .nx-sk .c { width: 44px; height: 44px; } }

/* home: «new game» banner (games[].promo) */
@keyframes ngFlip { 0%, 30% { transform: rotateY(0); } 45%, 80% { transform: rotateY(180deg); } 95%, 100% { transform: rotateY(360deg); } }

/* home: new game + free game side by side, toy-block cards */
/* portrait phones: each one a small cube, the game picture fills it, «يلا نلعب!» sits inside at the bottom */
@keyframes gxPulse2 { 50% { transform: translateX(-50%) scale(1.07); } }
/* portrait: just the two picture cubes, gently floating (no «play» button) */
@keyframes hgFloat { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }

/* home: the big turning banner */
.hero-c { position: relative; }
.hero-t { display: flex; transition: transform .55s cubic-bezier(.3,.9,.3,1); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hero-c { overflow: hidden; border-radius: 26px; box-shadow: 0 8px 20px rgba(31,26,51,.18); border: 3px solid #fff; }
.hero-s { flex: 0 0 100%; position: relative; aspect-ratio: 16 / 9; max-height: 260px; width: 100%; display: block; overflow: hidden; color: #fff; text-decoration: none; background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--hb) 60%, #fff), var(--hb)); }
.hero-s img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
/* a game's cover is a framed square: in portrait the banner crops its sides, so zoom in a little to lose the dark frame at the edges */
@media (orientation: portrait) { .hero-s.zoom > img { transform: scale(1.16); } }
.hero-s img.fit { object-fit: contain; object-position: center; inset: 7% auto 7% 3%; width: 46%; height: 88%; filter: drop-shadow(0 8px 14px rgba(0,0,0,.3)); animation: gxBob 3s ease-in-out infinite; }
[dir="ltr"] .hero-s img.fit { inset: 7% 3% 7% auto; }
.hero-s::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,14,54,.85), rgba(18,14,54,.15) 55%, transparent); pointer-events: none; }
.hero-s:has(img.fit)::after { background: linear-gradient(to left, rgba(18,14,54,.0), rgba(18,14,54,.0)); }
.hero-tx { position: absolute; z-index: 1; inset-inline: 16px 110px; bottom: 14px; display: grid; gap: 3px; justify-items: start; }
.hero-s:has(img.fit) .hero-tx { inset-inline: 16px 52%; bottom: auto; top: 50%; transform: translateY(-50%); }
.hero-tag { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #FF5E7E; box-shadow: 0 2px 0 #B8234A; }
.hero-tx b { font-family: var(--display); font-size: 25px; line-height: 1.15; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.hero-tx small { font-weight: 700; font-size: 13px; opacity: .95; }
.hero-go { position: absolute; z-index: 1; inset-inline-end: 14px; bottom: 14px; background: #FFD23F; color: #1F1A33; font-family: var(--display); font-weight: 800; font-size: 15px; padding: 6px 14px; border-radius: 999px; box-shadow: 0 3px 0 #D9A90F; }
.hero-s:has(img.fit) .hero-go { inset-inline-end: auto; inset-inline-start: 16px; }
.hero-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.hero-dots button { pointer-events: auto; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 9px; background: rgba(255,255,255,.55); transition: width .3s, background .3s; cursor: pointer; }
.hero-dots button.on { width: 22px; background: #fff; }
@media (orientation: landscape) and (max-height: 520px) { .hero-s { aspect-ratio: auto; height: 200px; } }
@media (prefers-reduced-motion: reduce) { .hero-t { transition: none; } .hero-s img.fit { animation: none; } }
/* banner slides that only have a game logo: the logo as a floating toy cube, light things drifting behind it */
.hero-s.cube { background: radial-gradient(circle at 25% 50%, rgba(255,255,255,.35), transparent 45%), repeating-conic-gradient(from 0deg at 25% 50%, rgba(255,255,255,.09) 0 10deg, transparent 10deg 20deg), linear-gradient(135deg, color-mix(in srgb, var(--hb) 70%, #fff), var(--hb)); }
[dir="ltr"] .hero-s.cube { background: radial-gradient(circle at 75% 50%, rgba(255,255,255,.35), transparent 45%), repeating-conic-gradient(from 0deg at 75% 50%, rgba(255,255,255,.09) 0 10deg, transparent 10deg 20deg), linear-gradient(135deg, color-mix(in srgb, var(--hb) 70%, #fff), var(--hb)); }
.hero-s.cube::after { display: none; }
.hero-cube { position: absolute; z-index: 1; top: 50%; inset-inline-end: 7%; --s: min(128px, 30vw); width: var(--s); height: var(--s); margin-top: calc(var(--s) / -2); border-radius: 22%; border: 4px solid #fff; overflow: hidden;
  box-shadow: 0 8px 0 color-mix(in srgb, var(--hb) 55%, #000), 0 16px 24px rgba(0,0,0,.3); animation: heroCube 3.4s ease-in-out infinite; }
[dir="rtl"] .hero-cube { inset-inline-end: auto; left: 8%; }
.hero-cube img { position: static; width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes heroCube { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
.hero-s.cube .hero-tx { inset-inline: 16px 48%; bottom: auto; top: 50%; transform: translateY(-62%); }
.hero-s.cube .hero-go { inset-inline-end: auto; inset-inline-start: 16px; bottom: 16px; }
.hero-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-fx i { position: absolute; font-style: normal; font-weight: 900; color: rgba(255,255,255,.55); text-shadow: 0 0 8px rgba(255,255,255,.6); animation: heroFloat calc(4s + var(--k) * .45s) ease-in-out infinite; animation-delay: calc(var(--k) * -.7s); }
.hero-fx i:nth-child(3n) { color: #FFE27A; }
@keyframes heroFloat { 0%, 100% { transform: translate(0, 0) rotate(0); opacity: .35; } 50% { transform: translate(10px, -14px) rotate(20deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-cube, .hero-fx i { animation: none; } }
.hero-cube.emo { display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #8C6BFF, #5B3FC4 60%, #3B2A9E); }
.hero-cube.emo b { font-size: calc(var(--s) * .62); line-height: 1; filter: drop-shadow(0 4px 0 rgba(0,0,0,.15)); animation: heroStar 2.4s ease-in-out infinite; }
@keyframes heroStar { 50% { transform: scale(1.1) rotate(8deg); } }

/* home: «مساحة بابا وماما» — install + club, quiet cards on a dashed tray */
.pc { border-radius: 24px; padding: 12px; background: rgba(255,255,255,.55); border: 2px dashed #C9CFE6; }
.pc-h { margin: 0 4px 10px; font-family: var(--display); font-size: 18px; color: var(--purple); }
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pc-grid.one { grid-template-columns: 1fr; }
.pc-card { display: grid; grid-template-columns: 1fr; grid-template-areas: "ic" "b" "s" "go"; justify-items: center; text-align: center; gap: 3px; align-items: center; padding: 12px 10px; border-radius: 20px; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--pcc); box-shadow: 0 4px 0 var(--pcc); }
.pc-card:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pcc); }
.pc-card.inst { --pcc: #1C9C8C; } .pc-card.club { --pcc: #E0A800; background: linear-gradient(160deg, #FFFDF2, #FFF1C2); }
.pc-ic { grid-area: ic; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--pcc) 15%, #fff); font-size: 26px; }
.pc-ic img { width: 100%; height: 100%; object-fit: cover; }
.pc-card b { grid-area: b; font-family: var(--display); font-size: 16px; line-height: 1.2; }
.pc-card small { grid-area: s; font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.35; }
.pc-go { grid-area: go; justify-self: stretch; text-align: center; margin-top: 8px; padding: 5px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; color: #fff; background: var(--pcc); }
@media (min-width: 700px), (orientation: landscape) and (max-height: 520px) { .pc-card { grid-template-areas: "ic b go" "ic s go"; grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; text-align: start; column-gap: 10px; } .pc-go { margin-top: 0; } }

/* home: sections as one row of small circles (swipe for more) */
.cats.cats-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 4px 8px; margin: -6px 0 0; scrollbar-width: none; }
.cats.cats-row::-webkit-scrollbar { display: none; }
.cats-row .cat { flex: 0 0 72px; scroll-snap-align: start; gap: 6px; }
.cats-row .cat-circle { width: 64px; height: 64px; border-width: 3px; box-shadow: 0 4px 0 var(--cs), 0 0 0 4px color-mix(in srgb, var(--cc) 14%, transparent); }
.cats-row .cat-circle img { width: 40px; height: 40px; }
.cats-row .cat-name { background: none; box-shadow: none; padding: 0; color: var(--ink); font-size: 11.5px; line-height: 1.25; }
@media (min-width: 700px), (orientation: landscape) and (max-height: 520px) { .cats.cats-row { justify-content: center; overflow: visible; margin: 0; padding-inline: 0; } .cats-row .cat { flex-basis: 84px; } }

/* home rows: episodes and games, swipe sideways */
.hr-h { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 20px; color: var(--ink); }
.hr-h a { margin-inline-start: auto; font-family: inherit; font-size: 14px; font-weight: 800; color: var(--purple); text-decoration: none; }
.hr-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 10px; scrollbar-width: none; }
.hr-row::-webkit-scrollbar { display: none; }
.hr-ep { flex: 0 0 168px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; border-radius: 20px; overflow: hidden; background: #fff; text-decoration: none; color: var(--ink); border: 3px solid var(--cc); box-shadow: 0 4px 0 var(--cs); }
.hr-ep:active, .hr-gm:active { transform: translateY(3px); }
.hr-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.hr-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hr-img img.yt { transform: scale(1.35); }
.hr-play { position: absolute; bottom: 6px; inset-inline-start: 6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #FFD23F; color: #1F1A33; font-size: 12px; box-shadow: 0 2px 0 #D9A90F; }
.hr-done { position: absolute; top: 6px; inset-inline-end: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #2EAE4F; color: #fff; font-weight: 900; font-size: 13px; border: 2px solid #fff; }
.hr-cat { display: inline-flex; align-items: center; gap: 4px; margin: 2px 8px 0; font-size: 11px; font-weight: 800; color: var(--cc); }
.hr-cat img { width: 15px; height: 15px; }
.hr-ep b { margin: 0 8px; font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hr-gm { position: relative; flex: 0 0 96px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); text-align: center; }
.hr-gm img { width: 96px; height: 96px; border-radius: 24px; border: 3px solid #fff; object-fit: cover; box-shadow: 0 5px 0 rgba(31,26,51,.2); }
.hr-gm b { font-size: 12.5px; font-weight: 800; line-height: 1.25; }
.hr-new { position: absolute; top: -6px; inset-inline-start: -4px; z-index: 1; background: #E63946; color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; border: 2px solid #fff; transform: rotate(-6deg); }
@media (min-width: 700px), (orientation: landscape) and (max-height: 520px) { .hr-ep { flex-basis: 190px; } .hr-gm { flex-basis: 108px; } .hr-gm img { width: 108px; height: 108px; } }

/* banner: picture slides fill the whole banner (logo pictures sit a bit higher so the faces show) */
.hero-s:not(.cube) img { object-position: center 28%; }

/* home: «كمّل من مكان ما وقفت» */
.ct-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 22px; background: #fff; text-decoration: none; color: var(--ink); box-shadow: 0 4px 0 #D9DEF0; border: 2px solid #E6E9F5; }
.ct-card:active { transform: translateY(3px); box-shadow: 0 1px 0 #D9DEF0; }
.ct-card > img { width: 62px; height: 62px; border-radius: 16px; object-fit: cover; flex: none; border: 2px solid #fff; box-shadow: 0 3px 0 rgba(31,26,51,.15); }
.ct-tx { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ct-tx b { font-family: var(--display); font-size: 16px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-tx small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ct-bar { height: 8px; border-radius: 9px; background: #E6E9F5; overflow: hidden; margin-top: 2px; }
.ct-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #2EAE4F, #7FE0A6); }
[dir="rtl"] .ct-bar i { margin-inline-start: 0; }
.ct-go { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #FFD23F; color: #1F1A33; font-size: 16px; box-shadow: 0 3px 0 #D9A90F; }

/* home episodes row: why each episode is there */
.hr-why { position: absolute; top: 6px; inset-inline-start: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 0 rgba(31,26,51,.18); white-space: nowrap; }
.hr-why.new { background: #FF5E7E; }
.hr-why.q { background: #F08C00; }
.hr-why.cat { background: #E03E6C; }
.hr-why.more { background: #5B3FC4; }
.hr-q { margin: -2px 8px 0; font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- «حسابي»: the parents' corner (kids, club line, four tools, settings list) */
.pa { gap: 14px; }
.pa-hero { position: relative; overflow: hidden; padding: 16px 18px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #5B3FC4, #2456B8); box-shadow: 0 5px 0 #2E2280; }
.pa-hero h1 { margin: 0; font-family: var(--display); font-size: 22px; }
.pa-hero small { opacity: .9; font-weight: 700; font-size: 13px; }
.pa-h { display: flex; align-items: center; gap: 6px; margin: 4px 2px 8px; font-family: var(--display); font-size: 17px; }
.pa-h a { margin-inline-start: auto; font-family: var(--body, inherit); font-size: 13px; font-weight: 800; color: #5B3FC4; text-decoration: none; }
.pa-kids { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.pa-kids::-webkit-scrollbar { display: none; }
.pa-kid { flex: 0 0 74px; display: grid; justify-items: center; gap: 2px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; }
.pa-av { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid #D9DEF0; font-size: 28px; font-weight: 900; color: #F5B400; }
.pa-av img { width: 46px; height: 46px; }
.pa-kid.on .pa-av { border-color: #2EAE4F; box-shadow: 0 0 0 4px #CFF3DA; }
.pa-kid.on .pa-av::after { content: "✓"; position: absolute; bottom: -4px; left: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #2EAE4F; color: #fff; font-size: 12px; font-weight: 900; border: 2px solid #fff; }
.pa-kid.add .pa-av { border-style: dashed; border-color: #F5B400; }
.pa-kid b { font-size: 13.5px; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-kid small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pa-ask { color: #D6336C; font-weight: 900; text-decoration: none; }
.pa-club { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; color: #fff; text-decoration: none; background: linear-gradient(135deg, #7B4FD9, #4A2FB0); box-shadow: 0 4px 0 #2E1C7A; }
.pa-club.on { background: linear-gradient(135deg, #2EAE4F, #1E7F37); box-shadow: 0 4px 0 #165E29; }
.pa-club:active, .pa-tile:active { transform: translateY(3px); }
.pa-cic { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #FFD23F; font-size: 22px; }
.pa-club b { display: block; font-family: var(--display); font-size: 16px; }
.pa-club small { font-size: 12.5px; font-weight: 700; opacity: .92; }
.pa-cgo { margin-inline-start: auto; flex: none; padding: 6px 12px; border-radius: 999px; background: #FFD23F; color: var(--ink); font-family: var(--display); font-size: 13px; }
.pa-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pa-tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.pa-tile { position: relative; display: block; min-height: 98px; padding: 12px; border-radius: 20px; background: #fff; border: 2px solid #E6E9F5; box-shadow: 0 4px 0 #D9DEF0; color: var(--ink); text-decoration: none; }
.pa-te { font-size: 26px; line-height: 1; }
.pa-tile b { display: block; margin-top: 6px; font-family: var(--display); font-size: 15px; }
.pa-tile small { font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.4; }
.pa-bd { position: absolute; top: 10px; inset-inline-end: 10px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.pa-bd.off { background: #FFF1D6; color: #B07A00; }
.pa-bd.on { background: #D3F5DE; color: #1E7F37; }
.pa-list { display: grid; background: #fff; border-radius: 20px; border: 2px solid #E6E9F5; box-shadow: 0 4px 0 #D9DEF0; overflow: hidden; }
.pa-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1.5px solid #EEF0F8; background: none; font: inherit; font-weight: 800; font-size: 14.5px; color: var(--ink); text-decoration: none; text-align: start; cursor: pointer; list-style: none; }
.pa-row::-webkit-details-marker { display: none; }
.pa-list > :last-child, .pa-list > :last-child .pa-row { border-bottom: 0; }
.pa-row small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.pa-ri { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #F3F0FF; font-size: 16px; }
.pa-go { margin-inline-start: auto; font-style: normal; font-family: var(--display); font-size: 18px; color: #A9A6C6; }
[dir="ltr"] .pa-go { transform: scaleX(-1); }
.pa-p { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #FFD23F; font-family: var(--display); font-size: 18px; }
.pa-out { margin-inline-start: auto; flex: none; padding: 6px 14px; border-radius: 999px; border: 2px solid #F7C6D3; background: #fff; color: #D6336C; font: inherit; font-weight: 900; font-size: 13px; cursor: pointer; }
.pa-danger { align-self: center; color: #D6336C; font-size: 12.5px; font-weight: 800; opacity: .85; }
@media (min-width: 700px), (orientation: landscape) and (max-height: 520px) { .pa-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pa-tiles > :last-child:nth-child(odd) { grid-column: auto; } }

/* ---------- the club page: steps, smaller plan boxes, the chosen plan filled with colour */
.cl-steps { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--muted); }
.cl-steps span { padding: 4px 10px; border-radius: 999px; background: #fff; border: 2px solid #E6E9F5; }
.cl-steps span.on { border-color: #5B3FC4; color: #5B3FC4; }
.cl-steps i { width: 14px; height: 2px; background: #D9DEF0; }
.club-plans.three { gap: 8px; }
.club-plans.three .club-plan { padding: 12px 4px 8px; gap: 0; border-radius: 16px; border-width: 2.5px; }
.club-plans.three .club-plan b { font-size: 14.5px; }
.club-plans.three .club-price { font-size: 21px; }
.club-plans.three .club-price small { font-size: 11px; }
.club-plans.three .club-was { font-size: 12px; }
.club-plans.three .club-plan > small { font-size: 10.5px; }
.club-plans.three .club-tick { top: 5px; left: 5px; width: 18px; height: 18px; font-size: 11px; }
.club-plans.three .club-tag { top: -10px; font-size: 10.5px; padding: 1px 8px; }
.club-plan.on { background: linear-gradient(160deg, #7B4FD9, #5B3FC4); border-color: #3A2590; box-shadow: 0 4px 0 #2E1C7A; }
.club-plan.on b, .club-plan.on .club-price, .club-plan.on .club-price small, .club-plan.on > small, .club-plan.on .club-was { color: #fff; }
.club-plan.on > small em { color: #FFD23F !important; }
.club-plan.on .club-tick { background: #FFD23F; color: var(--ink); }
.cl-perks ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.cl-perks li { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.cl-perks li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #2EAE4F; color: #fff; font-size: 11px; }
.cl-more summary, .cl-renew > summary { cursor: pointer; list-style: none; font-weight: 900; color: #5B3FC4; font-size: 14px; }
.cl-more summary::-webkit-details-marker, .cl-renew > summary::-webkit-details-marker { display: none; }
.cl-more[open] summary { margin-bottom: 10px; }
.cl-renew[open] > summary { margin-bottom: 12px; }
.cl-renew { display: grid; gap: 12px; }
.cl-code .club-redeem { margin: 0 12px 12px; box-shadow: none; border: 2px dashed #E6E9F5; }
@media (min-width: 700px), (orientation: landscape) and (max-height: 520px) { .club-plans.three { max-width: 460px; width: 100%; margin-inline: auto; } }
/* parents' corner: a shield-with-heart badge in the title, and an on/off switch on the kid-mode tile */
.pa-hero { display: flex; align-items: center; gap: 12px; }
.pa-hero > span:not(.gx-spark) { position: relative; }
.pa-hic { flex: none; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: #fff; box-shadow: 0 4px 0 rgba(31,26,51,.35); }
.pa-hic svg { width: 38px; height: 38px; }
.pa-stretch { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.pa-km.on { border-color: #7FE0A6; background: #F1FCF4; }
.pa-sw { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 62px; height: 30px; padding: 0; border-radius: 999px; border: 2px solid #1F1A33; background: #D9DEF0; cursor: pointer; display: block; text-decoration: none; transition: background .2s; }
.pa-sw { direction: ltr; inset-inline-end: auto; left: 10px; }
[dir="ltr"] .pa-sw { left: auto; right: 10px; }
.pa-sw i { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 rgba(31,26,51,.35); transition: left .2s; }
.pa-sw span { position: absolute; top: 50%; right: 7px; translate: 0 -50%; font: 900 10.5px Tahoma, sans-serif; color: #5A5478; }
.pa-sw[aria-checked="true"] { background: #2EAE4F; }
.pa-sw[aria-checked="true"] i { left: calc(100% - 24px); }
.pa-sw[aria-checked="true"] span { right: auto; left: 9px; color: #fff; }

/* ---------- «كارت البطل»: the child's membership card, bright, frame and sky follow the tier */
.mc.hcard { width: min(290px, 84%); aspect-ratio: 340 / 318; --deep: #1F1A33;
  --fr: linear-gradient(135deg, #FFB86B, #F08C4A, #FF8FB1); --sh: #C2602A; --sky: linear-gradient(#7FD3FF, #BDEBFF); --hill: #8BD96B; --ring: #F08C4A; --tierbg: #FFE1C7; --tiertx: #A8501C; }
.mc.hcard.t-silver { --fr: linear-gradient(135deg, #DDE6F5, #9FB3D9, #C9D6F0); --sh: #6E83AD; --sky: linear-gradient(#B49BFF, #E3D9FF); --hill: #7FE0A6; --ring: #9FB3D9; --tierbg: #EEF2FA; --tiertx: #4A5578; }
.mc.hcard.t-gold { --fr: linear-gradient(135deg, #FFE27A, #FFC21A, #FF9F1C, #FFE27A); --sh: #C98A00; --sky: linear-gradient(#FFB0C4, #FFE7EE); --hill: #FFD23F; --ring: #FFC21A; --tierbg: #FFF4C9; --tiertx: #9A6A00; }
.mc.hcard .mc-face { border: 5px solid transparent; border-radius: 26px; box-shadow: 0 6px 0 var(--sh); background: linear-gradient(#fff, #fff) padding-box, var(--fr) border-box; color: var(--ink); }
.mc.hcard .mc-face::before { display: none; }
.mc.hcard .mc-holo { opacity: .35; }
.mc.hcard .mc-front { display: flex; flex-direction: column; text-align: center; }
.hc-art { position: relative; flex: 0 0 47%; overflow: hidden; border-radius: 21px 21px 0 0; background: var(--sky); display: grid; place-items: center; }
.hc-rays { position: absolute; inset: -60%; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.35) 0 10deg, transparent 10deg 24deg); animation: hcSpin 40s linear infinite; }
.hc-hill { position: absolute; left: -10%; right: -10%; bottom: -34px; height: 70px; border-radius: 50%; background: var(--hill); }
.hc-av { position: relative; z-index: 2; width: 34%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 5px solid var(--ring); display: grid; place-items: center; box-shadow: 0 5px 0 rgba(31,26,51,.18); margin-top: 9%; }
.hc-av img { width: 74%; height: 74%; }
.hc-tier, .hc-club { position: absolute; top: 8px; z-index: 3; padding: 3px 10px; border-radius: 999px; border: 2px solid #1F1A33; font-weight: 900; font-size: 11px; white-space: nowrap; }
.hc-tier { inset-inline-end: 8px; background: var(--tierbg); color: var(--tiertx); }
.hc-club { inset-inline-start: 8px; background: #FFD23F; color: #1F1A33; }
.hc-sp { position: absolute; z-index: 2; font-size: 15px; } .hc-sp.s1 { top: 42%; inset-inline-start: 14%; } .hc-sp.s2 { top: 40%; inset-inline-end: 14%; }
.hc-nm { margin-top: 4px; font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1.15; }
.hc-role { font-weight: 800; font-size: 12px; color: #6B6890; }
.hc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 7px 9px 5px; }
.hc-stats > span { border-radius: 14px; padding: 5px 2px; font-weight: 800; font-size: 11px; }
.hc-stats b { display: block; font-family: var(--display); font-size: 17px; line-height: 1.2; }
.hc-stats .y { background: #FFF4C9; color: #B07A00; } .hc-stats .b { background: #E3F6FF; color: #1C6ED6; } .hc-stats .p { background: #FFE3EA; color: #D6336C; }
.hc-ft { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 0 12px 9px; font-weight: 800; font-size: 11px; color: #6B6890; }
.hc-ft b { color: #1F1A33; letter-spacing: .8px; }
.hc-exp { display: block; background: #FFD23F; padding: 6px; font-weight: 900; font-size: 12px; color: #1F1A33; }
.mc.hcard.mc-off .mc-face { filter: none; }
.mc.hcard.mc-off .hc-art { filter: saturate(.4); }
.mc.hcard.mc-off .hc-ft { padding-bottom: 6px; }
.mc.hcard .mc-back { background: linear-gradient(160deg, #FFF8EC, #fff) padding-box, var(--fr) border-box; }
.mc.hcard .mc-stripe { background: var(--fr); top: 8%; height: 7%; }
.mc.hcard .mc-h { top: 20%; color: #5B3FC4; -webkit-text-stroke: 0; }
.mc.hcard .mc-perks { top: 31%; grid-template-columns: 1fr; gap: 5px; font-size: 13px; color: #1F1A33; text-align: start; }
.mc.hcard .mc-sig { color: #6B6890; } .mc.hcard .mc-sig i { color: #5B3FC4; }
@keyframes hcSpin { to { transform: rotate(360deg); } }

/* ---------- kid-mode screen: small strip, «النهارده لعبت», a quiet parents' row with a round hold button */
.km-strip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #2EAE4F, #1C6ED6); box-shadow: 0 4px 0 #165E29; }
.km-sic { flex: none; width: 42px; height: 42px; border-radius: 13px; background: #fff; display: grid; place-items: center; }
.km-sic img { width: 26px; height: 26px; }
.km-strip b { display: block; font-family: var(--display); font-size: 16px; }
.km-strip small { font-size: 12.5px; font-weight: 700; opacity: .92; }
.kt h2 { margin: 0 2px 8px; font-family: var(--display); font-size: 15px; color: #6B6890; }
.kt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kt-row span { display: grid; justify-items: center; padding: 8px 4px; border-radius: 16px; background: #fff; border: 2px solid #E6E9F5; font-weight: 800; font-size: 12px; color: #6B6890; }
.kt-row i { font-style: normal; font-size: 22px; } .kt-row b { font-family: var(--display); font-size: 18px; color: var(--ink); }

/* ---------- parents' corner: invite card with a goal bar, and the parent «ID card» */
.pa-inv { display: grid; gap: 10px; padding: 14px; border-radius: 22px; background: #fff; border: 2px solid #E6E9F5; box-shadow: 0 4px 0 #D9DEF0; }
.pa-inv-top { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.pa-inv-g { flex: none; width: 52px; height: 52px; border-radius: 16px; background: #FFE3EA; display: grid; place-items: center; font-size: 28px; }
.pa-inv-top b { display: block; font-family: var(--display); font-size: 15.5px; }
.pa-inv-top small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pa-inv-bar { height: 12px; border-radius: 9px; background: #F1EEF8; overflow: hidden; }
.pa-inv-bar i { display: block; height: 100%; min-width: 12px; border-radius: 9px; background: linear-gradient(90deg, #FFB0C4, #FF5E7E); transition: width .8s; }
[dir="rtl"] .pa-inv-bar i { margin-inline-start: 0; }
.pa-inv-lb { display: flex; justify-content: space-between; margin-top: -4px; font-weight: 800; font-size: 12px; color: var(--muted); }
.pa-inv-bt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pa-inv-wa, .pa-inv-cp { display: block; text-align: center; padding: 10px; border-radius: 999px; border: 0; font: inherit; font-family: var(--display); font-size: 14px; text-decoration: none; cursor: pointer; }
.pa-inv-wa { background: #25D366; color: #fff; box-shadow: 0 3px 0 #128C4A; }
.pa-inv-cp { background: #F3F0FF; color: #5B3FC4; }
.pa-id { position: relative; display: block; overflow: hidden; border-radius: 22px; background: #fff; border: 2px solid #E6E9F5; box-shadow: 0 4px 0 #D9DEF0; }
.pa-id-band { display: block; height: 46px; padding: 12px 98px 0 14px; background: linear-gradient(135deg, #5B3FC4, #2456B8); color: #fff; font-family: var(--display); font-size: 13px; }
[dir="ltr"] .pa-id-band { padding: 12px 14px 0 98px; }
.pa-id .pa-p { position: absolute; top: 14px; inset-inline-start: 16px; width: 66px; height: 66px; border: 4px solid #fff; box-shadow: 0 3px 0 rgba(31,26,51,.2); font-size: 28px; }
.pa-id-body { display: block; min-height: 58px; padding: 8px 14px 8px; padding-inline-start: 98px; padding-inline-end: 96px; }
.pa-id-body b { display: block; font-family: var(--display); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-id-body small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-id .pa-out { position: absolute; top: 58px; inset-inline-end: 12px; margin: 0; border: 0; background: #E5384F; color: #fff; padding: 8px 18px; box-shadow: 0 3px 0 #A8203A; font-family: var(--display); font-size: 14px; }
.pa-id .pa-out:active { transform: translateY(2px); box-shadow: 0 1px 0 #A8203A; }
.pa-id-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.pa-id-chips span { padding: 4px 10px; border-radius: 999px; background: #F3F0FF; color: #5B3FC4; font-weight: 900; font-size: 11.5px; }
.pa-id-chips .g { background: #E7F8EC; color: #1E7F37; } .pa-id-chips .o { background: #FFF1D6; color: #B07A00; }

/* ---------- «وقت اللعب»: the parents' page, the 5-minute toast and the «time's up» screen */
.tl-hero { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #1C6ED6, #5B3FC4); box-shadow: 0 4px 0 #2E2280; }
.tl-ic { flex: none; width: 50px; height: 50px; border-radius: 16px; background: #fff; display: grid; place-items: center; font-size: 28px; }
.tl-hero h1 { margin: 0; font-family: var(--display); font-size: 20px; }
.tl-hero small { font-size: 12.5px; font-weight: 700; opacity: .92; }
.tl-kid { display: grid; gap: 8px; padding: 14px; border-radius: 22px; background: #fff; border: 2px solid #E6E9F5; box-shadow: 0 4px 0 #D9DEF0; }
.tl-kh { display: flex; align-items: center; gap: 10px; }
.tl-kh img { width: 44px; height: 44px; border-radius: 50%; background: #F3F6FF; border: 2px solid #E6E9F5; }
.tl-kh b { font-family: var(--display); font-size: 17px; }
.tl-kh small { margin-inline-start: auto; font-weight: 800; font-size: 12px; color: var(--muted); }
.tl-lb { font-weight: 900; font-size: 13px; color: #5B3FC4; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-chip { padding: 7px 12px; border-radius: 999px; border: 2px solid #E4DBFF; background: #fff; font: inherit; font-weight: 900; font-size: 13px; color: #5B3FC4; cursor: pointer; }
.tl-chip.on { background: #5B3FC4; border-color: #3A2590; color: #fff; box-shadow: 0 3px 0 #2E1C7A; }
.tl-we { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font: inherit; font-weight: 800; font-size: 13px; color: var(--ink); cursor: pointer; text-align: start; }
.tl-we i { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #C9C3E2; display: grid; place-items: center; font-style: normal; font-size: 12px; color: transparent; }
.tl-we[aria-pressed="true"] i { background: #2EAE4F; border-color: #1E7F37; color: #fff; }
.tu-more { margin-inline-start: auto; flex: none; padding: 9px 14px; border-radius: 999px; border: 0; background: #5B3FC4; color: #fff; font: inherit; font-family: var(--display); font-size: 14px; box-shadow: 0 3px 0 #2E1C7A; cursor: pointer; }
.tl-kid .tu-more { margin: 0; justify-self: start; }
.tu-card { position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 18px 16px 20px; border-radius: 26px; color: #fff; background: linear-gradient(160deg, #7B4FD9, #2456B8); box-shadow: 0 6px 0 #2E2280; }
.tu-y { height: 170px; filter: drop-shadow(0 6px 0 rgba(0,0,0,.2)); animation: tuWave 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
.tu-card h1 { margin: 0; font-family: var(--display); font-size: 23px; }
.tu-card p { margin: 0; font-weight: 800; font-size: 15px; opacity: .95; }
@keyframes tuWave { 50% { transform: rotate(-3deg) translateY(-4px); } }
.tl-toast { position: fixed; z-index: 90; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); translate: -50% 0; width: min(92%, 380px); display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 20px; background: #fff; border: 3px solid #1F1A33; box-shadow: 0 5px 0 #1F1A33; animation: tlIn .4s cubic-bezier(.2,1.4,.4,1) both; transition: opacity .5s, transform .5s; }
.tl-toast.out { opacity: 0; transform: translateY(-20px); }
.tl-toast img { width: 46px; height: 58px; object-fit: contain; }
.tl-toast b { display: block; font-family: var(--display); font-size: 16px; }
.tl-toast span { font-weight: 700; font-size: 13px; color: var(--muted); }
@keyframes tlIn { from { transform: translateY(-40px); opacity: 0; } }
.tu-par { display: grid; gap: 10px; padding: 12px; border-radius: 18px; border: 2px dashed #C9C3E2; background: #fff; }
.tu-par > b { font-size: 13px; color: #6B6890; }
.tu-acts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.tu-btn { display: block; text-align: center; padding: 11px 8px; border-radius: 999px; border: 0; background: #5B3FC4; color: #fff; font: inherit; font-family: var(--display); font-size: 14px; text-decoration: none; box-shadow: 0 3px 0 #2E1C7A; cursor: pointer; }
.tu-btn.sw { background: #FFD23F; color: #1F1A33; box-shadow: 0 3px 0 #D9A90F; }
/* play time: a calm mint tile with a clear clock, and the live countdown on the child's page */
.pa-tile.pa-tl { background: linear-gradient(160deg, #E9FBF3, #D3F5E6); border-color: #A8E6CB; box-shadow: 0 4px 0 #8FD9B8; }
.pa-tl .pa-te { display: inline-grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: #fff; box-shadow: 0 2px 0 #A8E6CB; }
.pa-tl small { color: #3E7F64; }
.tlc { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; padding: 12px 14px; border-radius: 20px; background: linear-gradient(160deg, #E9FBF3, #D3F5E6); border: 2px solid #A8E6CB; box-shadow: 0 4px 0 #8FD9B8; }
.tlc-ic { width: 46px; height: 46px; grid-row: span 2; }
.tlc-tx small { display: block; font-weight: 800; font-size: 12.5px; color: #3E7F64; }
.tlc-tx b { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1; color: #1F1A33; text-align: start; }
[dir="rtl"] .tlc-tx b { text-align: right; }
.tlc-bar { height: 10px; border-radius: 9px; background: #fff; overflow: hidden; }
.tlc-bar i { display: block; height: 100%; width: 100%; border-radius: 9px; background: linear-gradient(90deg, #7FE0A6, #2EAE4F); transition: width 1s linear; }
.tlc.low { background: linear-gradient(160deg, #FFF6DD, #FFE9B0); border-color: #FFD27A; box-shadow: 0 4px 0 #F2B84B; }
.tlc.low .tlc-bar i { background: linear-gradient(90deg, #FFB86B, #F08C4A); }
/* every parents' tool tile in the same calm mint, with its icon in a white box */
.pa-tile { background: linear-gradient(160deg, #E9FBF3, #D3F5E6); border-color: #A8E6CB; box-shadow: 0 4px 0 #8FD9B8; }
.pa-tile small { color: #3E7F64; }
.pa-tile .pa-te { display: inline-grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: #fff; box-shadow: 0 2px 0 #A8E6CB; font-size: 24px; }
.pa-km.on { background: linear-gradient(160deg, #D3F5E6, #B8EDD3); border-color: #7FE0A6; }
/* kid-mode strip: the parents' ON/OFF switch sits right under «وضع الطفل شغّال» */
.km-strip { flex-wrap: wrap; }
.km-stx { flex: 1; min-width: 0; }
.km-off { flex: 1 0 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.95); color: #1F1A33; font-weight: 800; font-size: 13px; }
.km-off .pa-sw { position: relative; top: auto; left: auto; right: auto; margin-inline-start: auto; flex: none; }
.pa-sw.big { width: 76px; height: 36px; border-width: 2.5px; }
.pa-sw.big i { top: 2.5px; width: 26px; height: 26px; }
.pa-sw.big[aria-checked="true"] i { left: calc(100% - 29px); }
.pa-sw.big span { font-size: 13px; }
/* story player on small landscape phones: the controls column never pushes past the screen */
@media (orientation: landscape) and (max-height: 600px) {
  .stp-low { min-width: 0; }
  .stp-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stp-tools button { min-width: 0; }
  .stp-tools button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (orientation: landscape) and (max-height: 600px) and (max-width: 760px) {
  .stp-tools button { flex-direction: column; gap: 2px; padding: 5px 2px; }
  .stp-tools button span { font-size: 11px; }
}
/* no double-tap zoom anywhere (iPhone zooms when a kid taps the same spot twice); pinch zoom still works */
html, body, button, a, input, label, .stp, .stp * { touch-action: manipulation; }

/* admin: «فعّل كـ» length picker next to the approve button */
.adm-as { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--muted); }
.adm-as select { font: inherit; font-size: 13px; font-weight: 800; color: var(--ink, #1F1A33); padding: 5px 8px; border-radius: 10px; border: 2px solid #C9CFDD; background: #fff; max-width: 190px; }

/* «🔴 لايف» banner on home + the live page */
.live-bn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; background: linear-gradient(135deg, #E5384F, #B3123A); color: #fff; text-decoration: none; box-shadow: 0 5px 0 #7E0C28; border: 3px solid #1F1A33; }
.live-bn .live-tx { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.live-bn b { font-size: 17px; font-weight: 900; } .live-bn small { font-size: 12.5px; opacity: .92; font-weight: 700; }
.live-go { flex: none; background: #fff; color: #B3123A; border-radius: 999px; padding: 7px 14px; font-weight: 900; font-size: 14px; }
.live-dot { flex: none; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #E5384F; border-radius: 999px; padding: 4px 10px; font: 900 13px/1 system-ui, sans-serif; direction: ltr; letter-spacing: .5px; }
.live-dot i { width: 9px; height: 9px; border-radius: 50%; background: #E5384F; animation: livePulse 1.2s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .25; transform: scale(.7); } }
.live-box { display: grid; gap: 12px; }
.live-box .back { justify-self: start; }
.live-box h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; font-size: 22px; }
.live-box .live-dot { border: 2px solid #E5384F; }
.live-player { background: #000; }
.live-note { font-size: 13px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .live-dot i { animation: none; } }
/* live page on a phone held sideways: the player fits the screen height, the title and note sit beside it */
@media (orientation: landscape) and (max-height: 560px) {
  .live-box { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr; align-items: start; column-gap: 16px; row-gap: 10px; }
  .live-box .live-player { grid-column: 1; grid-row: 1 / span 3; width: min(64vw, calc((100dvh - 170px) * 16 / 9)); }
  .live-box .back { grid-column: 2; grid-row: 1; justify-self: start; }
  .live-box h2 { grid-column: 2; grid-row: 2; font-size: 19px; }
  .live-box .live-note { grid-column: 2; grid-row: 3; }
}

/* live countdown */
.live-bn.soon { background: linear-gradient(135deg, #5B3FC4, #2456B8); box-shadow: 0 5px 0 #1B3F8A; }
.live-bn.soon .live-dot { color: #5B3FC4; } .live-bn.soon .live-dot i { background: #5B3FC4; } .live-bn.soon .live-go { color: #2456B8; }
.live-cd { font: 900 15px/1 system-ui, sans-serif; letter-spacing: 1px; background: rgba(255,255,255,.18); border-radius: 8px; padding: 2px 7px; }
.live-cdbox { display: grid; justify-items: center; gap: 8px; padding: 22px 16px; border-radius: 24px; background: linear-gradient(135deg, #5B3FC4, #2456B8); color: #fff; border: 3px solid #1F1A33; box-shadow: 0 6px 0 #1B3F8A; text-align: center; }
.live-cdbox small { font-size: 16px; font-weight: 800; opacity: .92; }
.live-cdbox b { font: 900 clamp(44px, 14vw, 72px)/1 system-ui, sans-serif; letter-spacing: 2px; }
.live-cdbox span { font-size: 13.5px; font-weight: 700; opacity: .9; }
@media (orientation: landscape) and (max-height: 560px) {
  .live-wait .live-cdbox { grid-column: 1; grid-row: 1 / span 3; width: min(60vw, 460px); }
  .live-wait .live-cdbox b { font-size: clamp(40px, 9vw, 64px); }
}

/* festive look for the giveaway live */
.live-bn.fest, .live-bn.fest.soon { position: relative; overflow: hidden; background: linear-gradient(135deg, #FFB703 0%, #FF6B6B 45%, #B5179E 100%); box-shadow: 0 6px 0 #7A1F6E; }
.live-confetti { position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: radial-gradient(circle, #fff 2.5px, transparent 3px), radial-gradient(circle, #FFE066 3px, transparent 3.5px), radial-gradient(circle, #7FD1FF 2.5px, transparent 3px);
  background-size: 38px 38px, 53px 53px, 71px 71px; background-position: 0 0, 17px 9px, 31px 22px; animation: liveConf 6s linear infinite; }
@keyframes liveConf { to { background-position: 0 38px, 17px 62px, 31px 93px; } }
.live-bn.fest b, .live-bn.fest small, .live-cdbox.fest small, .live-cdbox.fest b, .live-cdbox.fest > span:last-child { text-shadow: 0 2px 0 rgba(90,10,60,.45); }
@media (max-width: 360px) { .live-trophy { display: none; } }
.live-bn.fest > *:not(.live-confetti) { position: relative; }
.live-bn.fest .live-tx { gap: 3px; }
.live-bn.fest .live-dot { align-self: flex-start; color: #B5179E; } .live-bn.fest .live-dot i { background: #B5179E; }
.live-bn.fest .live-go { color: #B5179E; }
.live-trophy { flex: none; font-size: 40px; filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); animation: liveBounce 1.6s ease-in-out infinite; }
@keyframes liveBounce { 50% { transform: translateY(-5px) rotate(-6deg); } }
.live-prize { align-self: flex-start; background: #fff; color: #7A1F6E; border-radius: 10px; padding: 3px 9px; font-size: 13px; font-weight: 900; box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.live-cdbox.fest { position: relative; overflow: hidden; background: linear-gradient(135deg, #FFB703 0%, #FF6B6B 45%, #B5179E 100%); box-shadow: 0 6px 0 #7A1F6E; }
.live-cdbox.fest > *:not(.live-confetti) { position: relative; }
.live-big-ic { font-size: 46px; line-height: 1; filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); animation: liveBounce 1.6s ease-in-out infinite; }
.live-cdbox .live-prize { font-size: 15px; padding: 5px 12px; align-self: center; }
@media (prefers-reduced-motion: reduce) { .live-confetti, .live-trophy, .live-big-ic { animation: none; } }

/* PIN pop-up on a phone held sideways: text on one side, keypad on the other, so the 0 key is never below the screen */
@media (orientation: landscape) and (max-height: 520px) {
  #pinModal .pm-box { max-width: 620px; display: grid; grid-template-columns: 1fr 1.15fr; column-gap: 18px; align-items: center; padding: 14px 16px; }
  #pinModal .pm-box > * { grid-column: 1; }
  #pinModal .pm-box > .pn-keys { grid-column: 2; grid-row: 1 / span 8; margin: 0; }
  #pinModal .pm-box > .pm-x { grid-column: auto; z-index: 3; }
  #pinModal .pm-box > .pn-keys { margin-top: 40px; }
  #pinModal .pn-keys button { height: 46px; }
}
.iab-why { margin: 6px 4px 10px; font-size: 13px; font-weight: 700; line-height: 1.6; color: #7A2E05; }

/* «ضيف طفل»: 3 short steps like a kids' app */
.aw-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 16px 16px; border-radius: 30px; background: radial-gradient(circle 70px at 92% 4%, #FFE066 96%, transparent 100%), radial-gradient(circle 46px at 4% 96%, #CDEBFF 96%, transparent 100%), #fff; border: 3px solid #E3E9FF; box-shadow: 0 6px 0 #D5E0F5; text-align: center; overflow: clip; }
.aw-card.aw-in .aw-step:not([hidden]) { animation: awIn .35s cubic-bezier(.2,1.2,.4,1) both; }
.aw-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aw-dots { display: flex; gap: 6px; }
.aw-dots i { width: 28px; height: 10px; border-radius: 999px; background: #E3E9FF; transition: background .3s, width .3s; }
.aw-dots i.on { background: var(--yellow); box-shadow: 0 2px 0 var(--yellow-d); }
.aw-count { font-weight: 800; font-size: 13px; color: var(--muted); }
.aw-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.aw-ring { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 5px solid #FFB703; box-shadow: 0 6px 0 #D9A90F, 0 0 0 8px #FFF3BF; animation: gxBob 2.6s ease-in-out infinite; }
.aw-ring img { width: 96px; height: 96px; }
.aw-ring.party { animation: awParty .9s cubic-bezier(.2,1.4,.4,1) both, gxBob 2.6s 1s ease-in-out infinite; }
.aw-name { font-family: var(--display); font-size: 24px; color: #B35C00; min-height: 1.3em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-step[hidden] { display: none !important; }
.aw-step { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.aw-q { margin: 0; font-family: var(--display); font-size: 26px; line-height: 1.25; color: #5F3DC4; }
.aw-input { width: 100%; box-sizing: border-box; min-height: 64px; padding: 0 18px; border-radius: 22px; border: 3px solid #B49BFF; background: #F7F4FF; font: 800 24px var(--display); color: var(--ink); text-align: center; outline: none; }
.aw-input:focus { border-color: #7048E8; background: #fff; box-shadow: 0 0 0 5px rgba(112,72,232,.15); }
.aw-hint { margin: -4px 0 0; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.aw-next { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 60px; border: 0; border-radius: 999px; background: var(--yellow); box-shadow: 0 5px 0 var(--yellow-d); font: 800 22px var(--display); color: var(--ink); text-decoration: none; cursor: pointer; }
.aw-next:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--yellow-d); }
.aw-next:disabled { background: #E9ECF5; box-shadow: 0 5px 0 #D0D6E6; color: #9AA3BD; cursor: default; }
.aw-next.go { background: #2EBD6B; box-shadow: 0 5px 0 #1F8A4C; color: #fff; }
.aw-prev { border: 0; background: none; color: var(--muted); font: 800 15px var(--display); text-decoration: underline; cursor: pointer; padding: 4px 10px; }
.aw-g { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aw-gc { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 12px; border-radius: 26px; border: 4px solid #D5E0F5; background: #fff; box-shadow: 0 6px 0 #D5E0F5; cursor: pointer; transition: transform .15s; }
.aw-gc span { font-size: 58px; line-height: 1; }
.aw-gc b { font: 800 22px var(--display); color: var(--ink); }
.aw-gc.b[aria-pressed="true"] { border-color: #4DABF7; background: #E7F5FF; box-shadow: 0 6px 0 #339AF0; transform: translateY(-3px); }
.aw-gc.g[aria-pressed="true"] { border-color: #F783AC; background: #FFF0F6; box-shadow: 0 6px 0 #E64980; transform: translateY(-3px); }
.aw-avs { width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.aw-av { width: 100%; height: auto; aspect-ratio: 1; border-width: 3px; animation: gxPop .4s var(--d) cubic-bezier(.2,1.4,.4,1) backwards; position: relative; }
.aw-av img { width: 74%; height: 74%; }
.aw-av[aria-pressed="true"] { border-color: #2EBD6B; background: #EBFBEE; box-shadow: 0 0 0 4px rgba(46,189,107,.25); transform: scale(1.08); }
.aw-av[aria-pressed="true"]::after { content: "✓"; position: absolute; top: -6px; inset-inline-end: -6px; width: 22px; height: 22px; border-radius: 50%; background: #2EBD6B; color: #fff; font-size: 13px; font-weight: 900; display: grid; place-items: center; border: 2px solid #fff; }
.aw-done .aw-q { font-size: 30px; color: #2EBD6B; }
.aw-safe { margin: 4px 0 0; font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.6; }
@keyframes awIn { from { opacity: 0; transform: translateX(var(--aw-dx, -24px)); } }
html[dir="ltr"] .aw-card { --aw-dx: 24px; }
@keyframes awParty { 0% { transform: scale(.6) rotate(-10deg); } 60% { transform: scale(1.15) rotate(6deg); } 100% { transform: none; } }
@media (max-height: 600px) { .aw-safe, .aw-step[data-s="1"] .aw-hint { display: none; } .aw-ring { width: 80px; height: 80px; } .aw-ring img { width: 60px; height: 60px; } }
/* the «يلا نبدأ» button stays on screen above the tab bar while choosing a picture */
.aw-step[data-s="3"] .aw-next.go { position: sticky; bottom: calc(env(safe-area-inset-bottom) + 86px); z-index: 2; }
/* short screens: smaller picture so the question and the button fit without scrolling */
@media (max-height: 700px) { .aw-ring { width: 92px; height: 92px; border-width: 4px; box-shadow: 0 4px 0 #D9A90F, 0 0 0 6px #FFF3BF; } .aw-ring img { width: 68px; height: 68px; } .aw-name { font-size: 20px; } .aw-q { font-size: 22px; } .aw-card { gap: 10px; padding-top: 12px; } .aw-gc span { font-size: 46px; } .aw-input { min-height: 56px; } .aw-next { min-height: 54px; font-size: 20px; } }
@media (max-width: 360px) { .aw-avs { grid-template-columns: repeat(4, 1fr); } .aw-ring { width: 108px; height: 108px; } .aw-ring img { width: 80px; height: 80px; } .aw-q { font-size: 23px; } }
/* phone held sideways: the picture and name on one side, the question on the other */
@media (orientation: landscape) and (max-height: 520px) {
  .aw-card { display: grid; grid-template-columns: 170px 1fr; grid-template-rows: auto 1fr auto; column-gap: 18px; align-items: start; text-align: center; }
  .aw-top { grid-column: 1 / -1; }
  .aw-hero { grid-column: 1; grid-row: 2; align-self: center; }
  .aw-step { grid-column: 2; grid-row: 2; }
  .aw-safe { display: none; }
  .aw-avs { grid-template-columns: repeat(8, 1fr); gap: 8px; }
  .aw-ring { width: 100px; height: 100px; } .aw-ring img { width: 74px; height: 74px; }
  .aw-card { gap: 8px; padding: 10px 14px; } .aw-step { gap: 8px; } .aw-q { font-size: 20px; } .aw-hint { display: none; }
  .aw-input, .aw-next { min-height: 48px; } .aw-next { font-size: 18px; } .aw-gc { padding: 8px; } .aw-gc span { font-size: 38px; }
  .aw-step[data-s="3"] .aw-next.go { bottom: calc(env(safe-area-inset-bottom) + 62px); }
}
@media (prefers-reduced-motion: reduce) { .aw-card *, .aw-card.aw-in .aw-step { animation: none !important; } }

/* stories list: the story's own picture, with its country's flag as a little badge */

/* play mark (drawn, never the ▶ emoji) and the «go» arrow in a dark dot */
.play-ic { display: block; width: 58%; height: 58%; }
.hr-play .play-ic, .ct-go .play-ic, .in-vid-play .play-ic, .ep-game .play-ic { width: 60%; height: 60%; }
.in-vid-play { padding: 0; }
.st-chip .play-ic, .st-feat .go .play-ic { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.17em; }
.hr-play { width: 34px; height: 34px; border: 2px solid #fff; box-shadow: 0 3px 0 rgba(0,0,0,.22); }
.go-dot { display: inline-grid; place-items: center; width: 1.55em; height: 1.55em; border-radius: 50%; background: #1F1A33; color: #FFD23F; margin-inline-start: 8px; flex: none; }
.go-dot svg { width: 64%; height: 64%; }
html[dir="ltr"] .go-dot svg { transform: scaleX(-1); }
/* the banner's buttons: one clean pill with a gloss, the arrow in a dot at its end */
.hero-go { display: inline-flex; align-items: center; padding: 5px 5px 5px 15px; padding-inline-start: 15px; padding-inline-end: 5px; background: linear-gradient(180deg, #FFE36E, #FFCB1F); border: 2px solid rgba(255,255,255,.75); box-shadow: 0 3px 0 #C99400, 0 6px 14px rgba(0,0,0,.18); line-height: 1.2; }
/* «جديدة» on a game no longer cut off by the row's edge */
.hr-row { padding-top: 12px; }
.hr-new { top: -8px; inset-inline-start: -2px; }
/* the club slide's star: drawn, fully inside its box */
.hero-cube.emo b.hero-star { display: grid; place-items: center; width: 72%; height: 72%; font-size: 0; filter: drop-shadow(0 4px 0 rgba(0,0,0,.18)); }
.hero-star svg { width: 100%; height: 100%; }
@media (max-width: 360px) { .hero-s.cube .hero-tx small { display: none; } .hero-go { font-size: 14px; } }
/* «تعديل» next to «مين بيلعب دلوقتي؟»: the same round orange pencil badge as the edit page */
.pa-edit { display: inline-flex; align-items: center; gap: 6px; }
.pa-edic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #FF9F1C; box-shadow: 0 2px 0 #D9480F; font-size: 14px; line-height: 1; }

/* parents' page: one family of modern line icons, each in a soft coloured rounded square */
.pi { display: block; width: 60%; height: 60%; }
.pa-tile .pa-te { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 0; color: #fff; box-shadow: 0 3px 0 rgba(31,26,51,.14), inset 0 1px 0 rgba(255,255,255,.35); }
.pa-te.pi-violet { background: linear-gradient(145deg, #9775FA, #6741D9); }
.pa-te.pi-orange { background: linear-gradient(145deg, #FFA94D, #F76707); }
.pa-te.pi-green { background: linear-gradient(145deg, #51CF66, #2B8A3E); }
.pa-te.pi-blue { background: linear-gradient(145deg, #4DABF7, #1971C2); }
.pa-ri { width: 34px; height: 34px; border-radius: 11px; background: #EEEAFF; color: #5F3DC4; font-size: 0; }
.pa-ri .pi { width: 62%; height: 62%; }
.pa-cic { color: #7A4E00; background: linear-gradient(145deg, #FFE066, #FAB005); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); font-size: 0; }
.pa-cic .pi { width: 58%; height: 58%; fill: rgba(255,255,255,.55); }
.pa-inv-g { color: #fff; background: linear-gradient(145deg, #F783AC, #D6336C); font-size: 0; }
.pa-edic { color: #fff; font-size: 0; }
.pa-edic .pi { width: 58%; height: 58%; }
.pk-fh span { font-size: 0; } .pk-fh span .pi { width: 58%; height: 58%; }
.pa-id-chips > span { display: inline-flex; align-items: center; gap: 4px; }
.pa-id-chips .pi { width: 14px; height: 14px; flex: none; }
/* «تعديل» as a clear button: orange pill, white pencil in a darker dot, raised like the app's other buttons */
.pa-h a.pa-edit { gap: 7px; padding: 4px 14px 4px 5px; padding-inline-start: 5px; padding-inline-end: 14px; border-radius: 999px; background: linear-gradient(180deg, #FFB347, #FF9F1C); color: #fff; font-family: var(--display); font-size: 14.5px; box-shadow: 0 3px 0 #D9480F; border: 2px solid rgba(255,255,255,.7); }
.pa-h a.pa-edit:active { transform: translateY(2px); box-shadow: 0 1px 0 #D9480F; }
.pa-edit .pa-edic { width: 26px; height: 26px; background: #E8590C; box-shadow: none; }

/* ---------- passport (جواز السفر) ---------- */
.pz-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pz-save { height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: #FFD23F; color: #2A2350; font: 800 14px 'Tajawal', sans-serif; cursor: pointer; }
.pz-wrap { display: flex; justify-content: center; margin-top: 6px; perspective: 1800px; }
.pz-book { position: relative; flex: 0 0 auto; width: 342px; height: 540px; transform-origin: top center; border-radius: 12px 6px 6px 12px; overflow: hidden; background: #F6EFD9; box-shadow: 0 18px 40px rgba(0,0,0,.45); color: #2A2A4A; direction: rtl; }
.pz-book.cv { background: #12305A; cursor: pointer; }
.pz-book::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 16px; background: linear-gradient(to left, rgba(60,50,20,.3), rgba(60,50,20,0)); pointer-events: none; z-index: 3; }
.pz-pg { position: absolute; inset: 0; transform-origin: right center; transition: transform .24s ease-in, opacity .24s; }
.pz-pg.out-n { transform: rotateY(-70deg); opacity: .3; } .pz-pg.out-p { transform: rotateY(70deg); opacity: .3; }
.pz-pg.in-n { animation: ppIn .3s ease-out; } .pz-pg.in-p { animation: ppIn .3s ease-out; }
@keyframes ppIn { from { transform: rotateY(55deg); opacity: .4; } to { transform: none; opacity: 1; } }
.pz-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 44px 30px 34px 26px; color: #E6C068; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 6px); }
.pz-cv-in { position: absolute; inset: 14px 24px 14px 14px; border: 2px solid #E6C068; border-radius: 8px; } .pz-cv-in::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(230,192,104,.55); border-radius: 5px; }
.pz-cv-top { position: relative; font-weight: 800; font-size: 13.5px; letter-spacing: 1px; }
.pz-cv-em { position: relative; margin-top: 26px; } .pz-cv-t1 { position: relative; margin-top: 20px; font-family: var(--display); font-size: 40px; line-height: 1.15; } .pz-cv-t2 { position: relative; font-weight: 800; font-size: 20px; }
.pz-paper { position: absolute; inset: 0; background-color: #F6EFD9; background-image: repeating-radial-gradient(circle at 50% 130%, rgba(122,106,58,.09) 0 1px, transparent 1px 7px); }
.pz-perf { position: absolute; top: 5px; inset-inline: 0; margin: 0 auto; left: 50%; transform: translateX(-50%); fill: #17133F; }
.pz-hd { position: absolute; left: 22px; right: 28px; top: 40px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1.5px solid #B3A678; padding-bottom: 6px; } .pz-hd b { font-size: 15px; font-weight: 800; } .pz-hd span { font-size: 12px; font-weight: 700; color: #7A6A3A; }
.pz-num { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font: 700 12px 'Tajawal', sans-serif; color: #7A6A3A; font-style: normal; }
.pz-wm { position: absolute; left: 50%; top: 130px; transform: translateX(-50%); opacity: .12; pointer-events: none; }
.pz-bio { position: absolute; left: 22px; right: 28px; top: 90px; display: flex; gap: 16px; align-items: flex-start; }
.pz-fs { display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; } .pz-f small { display: block; font-size: 11px; font-weight: 700; color: #7A6A3A; line-height: 1.3; } .pz-f b { display: block; font-size: 17px; font-weight: 800; line-height: 1.3; }
.pz-ph { width: 116px; height: 146px; border: 2px solid #8A7A4A; border-radius: 6px; overflow: hidden; background: #8EC9F7; flex: 0 0 auto; } .pz-ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.pz-sg { position: absolute; left: 22px; right: 28px; top: 348px; display: flex; align-items: center; gap: 12px; } .pz-sg small { font-size: 11px; font-weight: 700; color: #7A6A3A; } .pz-sign { width: 140px; height: 56px; transform: rotate(-3deg); }
.pz-mrz { position: absolute; left: 12px; right: 18px; bottom: 34px; font: 10.5px/1.5 'Courier New', monospace; letter-spacing: 1px; background: rgba(122,106,58,.09); padding: 7px 9px; border-radius: 4px; display: flex; flex-direction: column; color: #2A2A4A; overflow: hidden; white-space: nowrap; }
.pz-stamps { position: absolute; left: 0; right: 10px; top: 76px; bottom: 34px; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; }
.pz-st { display: block; max-width: 92%; height: auto; opacity: .94; }
.pz-ghost { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 3px dashed #B3A678; border-radius: 50%; color: #7A6A3A; text-decoration: none; padding: 0 18px; box-sizing: border-box; } .pz-ghost b { font-size: 14px; font-weight: 800; } .pz-ghost small { font-size: 10.5px; font-weight: 700; }
.pz-empty { font-weight: 700; color: #7A6A3A; }
.pz-open { margin: 16px auto 0; display: flex; min-width: 240px; justify-content: center; }
.pz-hint { text-align: center; margin: 8px 0 0; font-size: 13px; font-weight: 500; opacity: .7; color: #fff; }
.pz-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 0; }
.pz-nav button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #FFD23F; color: #2A2350; font: 800 26px 'Tajawal', sans-serif; cursor: pointer; } .pz-nav button:first-child { background: rgba(255,255,255,.12); color: #fff; } .pz-nav button:disabled { opacity: .3; cursor: default; }
.pz-dots { display: flex; gap: 6px; } .pz-dots i { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.25); } .pz-dots i.on { width: 22px; background: #FFE89A; }
.pz-strip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.pz-th { position: relative; flex: 0 0 auto; width: 46px; height: 58px; } .pz-cvmini { width: 42px; height: 54px; border-radius: 6px; background: #12305A; border: 1.5px solid #E6C068; display: flex; align-items: center; justify-content: center; } .pz-th img { position: absolute; right: -8px; bottom: -6px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #26206A; object-fit: cover; object-position: center 25%; }
.pz-tx { flex: 1 1 auto; display: flex; flex-direction: column; } .pz-tx b { font-size: 16px; font-weight: 800; } .pz-tx small { font-size: 12.5px; opacity: .75; font-weight: 700; }
.pz-dt { display: flex; gap: 5px; } .pz-dt i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #8E88C8; box-sizing: border-box; } .pz-dt i.on { background: #FFD23F; border-color: #FFD23F; } .pz-go { font-size: 22px; opacity: .6; }
.pz-land { display: grid; place-items: center; } .pz-land-st { background: #F6EFD9; border-radius: 12px; padding: 8px; animation: ppStampIn .7s cubic-bezier(.2,1.4,.4,1) both; box-shadow: 0 0 0 0 rgba(255,210,63,.6), 0 8px 22px rgba(0,0,0,.35); }
.pz-land-s { font-weight: 800; opacity: .6; margin-top: -4px; }
@keyframes ppStampIn { 0% { transform: scale(2.2) rotate(-10deg); opacity: 0; } 60% { transform: scale(.94) rotate(1deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pz-land-st { animation: none; } .pz-pg { transition: none; } }

/* ---------- stories page v2: tonight card + library of covers ---------- */
.sz-tonight { position: relative; display: block; height: 250px; border-radius: 24px; overflow: hidden; background: #231C5A; color: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.sz-tonight img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sz-tonight::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,18,63,.96) 0%, rgba(23,18,63,.55) 42%, rgba(23,18,63,0) 75%); }
.sz-tag { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; height: 30px; padding: 0 14px; border-radius: 15px; background: #FFD23F; color: #2A2350; font-size: 13px; font-weight: 800; display: flex; align-items: center; }
.sz-tx { position: absolute; z-index: 1; inset-inline: 18px 90px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; } .sz-tx b { font-family: var(--display); font-size: 26px; line-height: 1.2; } .sz-tx small { font-size: 14px; font-weight: 700; opacity: .9; }
.sz-play { position: absolute; z-index: 1; inset-inline-end: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #FFD23F; display: grid; place-items: center; box-shadow: 0 0 24px rgba(255,210,63,.45); } .sz-play svg { width: 24px; height: 24px; fill: #2A2350; }
.sz-sec { margin: 6px 4px -4px; font-size: 20px; }
.sz-chips { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; } .sz-chips::-webkit-scrollbar { display: none; }
.sz-chip { flex: 0 0 auto; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: rgba(255,255,255,.1); color: #fff; font: 700 14px 'Tajawal', sans-serif; cursor: pointer; } .sz-chip.on { background: #FFD23F; color: #2A2350; font-weight: 800; }
.sz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.sz-card { display: flex; flex-direction: column; gap: 2px; color: #fff; text-decoration: none; min-width: 0; } .sz-card.off { opacity: .75; }
.sz-img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: #231C5A; margin-bottom: 6px; } .sz-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sz-card b { font-size: 15px; line-height: 1.35; } .sz-card small { font-size: 12.5px; opacity: .7; font-weight: 700; }
.sz-b { position: absolute; top: 10px; inset-inline-start: 10px; height: 26px; padding: 0 12px; border-radius: 13px; font-size: 12px; font-weight: 800; display: flex; align-items: center; background: #17123F; color: #fff; }
.sz-b.new { background: #FFD23F; color: #2A2350; } .sz-b.done { background: rgba(23,18,63,.85); color: #7CF5D0; } .sz-b.club { background: rgba(23,18,63,.85); color: #FFD23F; }
@media (min-width: 700px) { .sz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (orientation: landscape) {
  /* landscape: two columns (tonight + passport | library) so nothing sits in a long single column */
  .st-page.sz2 { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 8px 16px; align-items: start; }
  .st-page.sz2 > * { grid-column: 1 / -1; }
  .st-page.sz2 > .back, .st-page.sz2 .st-hero { display: none; }
  .st-page.sz2 .sz-tonight { grid-column: 1; grid-row: 1 / span 2; height: 100%; min-height: 0; }
  .st-page.sz2 .pz-strip, .st-page.sz2 .st-map { grid-column: 1; grid-row: 3; padding-block: 6px; }
  .st-page.sz2 .sz-sec { display: none; }
  .st-page.sz2 .sz-chips { grid-column: 2; grid-row: 1; } .st-page.sz2 .sz-chip { min-height: 34px; padding: 0 14px; font-size: 13px; }
  .st-page.sz2 .sz-grid { grid-column: 2; grid-row: 2 / span 2; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .st-page.sz2 .sz-card b { font-size: 13px; } .st-page.sz2 .sz-card small { font-size: 11px; } .st-page.sz2 .sz-img { border-radius: 14px; margin-bottom: 3px; } .st-page.sz2 .sz-b { top: 6px; inset-inline-start: 6px; height: 22px; padding: 0 8px; font-size: 11px; }
  .st-page.sz2 .sz-tx { inset-inline: 14px 74px; } .st-page.sz2 .sz-tx b { font-size: 20px; } .st-page.sz2 .sz-play { width: 48px; height: 48px; }
}
/* sleep mode inside the player: the whole page softens together (no edge between the picture and the rest) */
.stp.night { filter: brightness(.5) saturate(.75) sepia(.2); transition: filter .6s; }
.stp.night .stp-scene img { filter: none; }
.stp.night .stp-tools, .stp.night .stp-ib, .stp.night .stp-where { border-color: transparent; }
.stp.night .stp-page::before { display: none; }

/* passport: no page scroll on any screen */
body.pz-on .top { display: none; }
body.pz-on .pz-page { gap: 8px; }
.pz-wrap { overflow: visible; }
@media (orientation: landscape) and (max-height: 520px) {
  .pz-page:not(.pz-sp) { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 8px 22px; align-items: center; justify-items: center; }
  .pz-page:not(.pz-sp) .pz-top { grid-column: 2; grid-row: 1; justify-self: stretch; flex-wrap: wrap; }
  .pz-page:not(.pz-sp) .pz-wrap { grid-column: 1; grid-row: 1 / span 3; width: 42vw; }
  .pz-page:not(.pz-sp) .pz-open, .pz-page:not(.pz-sp) .pz-hint, .pz-page:not(.pz-sp) .pz-nav { grid-column: 2; grid-row: 2; align-self: center; margin-top: 0; }
  .pz-page:not(.pz-sp) .pz-hint { grid-row: 3; align-self: start; }
  .pz-page:not(.pz-sp) .pz-nav { width: 100%; padding-inline: 0; }
}
body.pz-on .view { padding-bottom: calc(var(--tabs-h, 64px) + 8px + env(safe-area-inset-bottom)); }
@media (orientation: landscape) and (max-height: 520px) { body.pz-on .view { padding-bottom: 66px; } }
.pz-nav button { direction: ltr; unicode-bidi: isolate; }

/* landscape: the open book (spine in the middle) */
.pz-sp { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.pz-sp .pz-side { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pz-sp .pz-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pz-sp .pz-wrap { margin-top: 0; display: flex; justify-content: center; }
.pz-arw { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #FFD23F; color: #2A2350; display: grid; place-items: center; cursor: pointer; direction: ltr; } .pz-arw:not(.nx) { background: rgba(255,255,255,.14); color: #fff; }
.pz-book.sp { width: 684px; overflow: visible; background: transparent; box-shadow: none; border-radius: 0; perspective: 2400px; transition: transform .7s cubic-bezier(.45,.05,.3,1); }
.pz-book.sp::after { display: none; } .pz-book.sp.cv { background: transparent; }
.pz-half { position: absolute; top: 0; width: 342px; height: 540px; overflow: hidden; background: #F6EFD9; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.pz-hl { left: 0; border-radius: 12px 0 0 12px; } .pz-hr { left: 342px; border-radius: 0 12px 12px 0; } .pz-half.empty { visibility: hidden; }
.pz-hl::after, .pz-hr::after { content: ''; position: absolute; top: 0; bottom: 0; width: 24px; pointer-events: none; z-index: 3; }
.pz-hl::after { right: 0; background: linear-gradient(to left, rgba(60,50,20,.32), rgba(60,50,20,0)); } .pz-hr::after { left: 0; background: linear-gradient(to right, rgba(60,50,20,.32), rgba(60,50,20,0)); }
.pz-lin { background-color: #12305A; }
.pz-leaf { position: absolute; top: 0; width: 342px; height: 540px; transform-style: preserve-3d; z-index: 5; }
.pz-leaf.fw { left: 0; transform-origin: right center; } .pz-leaf.bw { left: 342px; transform-origin: left center; }
.pz-leaf > div { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #F6EFD9; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.pz-leaf > .bk { transform: rotateY(180deg); }
.pz-leaf.fw.go { transform: rotateY(180deg); } .pz-leaf.bw.go { transform: rotateY(-180deg); }
.pz-sp .pz-cover { background-color: #12305A; }
.pz-page { touch-action: pan-y; user-select: none; -webkit-user-select: none; }

/* page-turn by dragging: shading that follows the turn */
.pz-leaf.fw.go, .pz-leaf.bw.go { transform: none; }
.pz-sh { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(to left, rgba(20,16,50,.65), rgba(20,16,50,.05) 70%); }
.pz-leaf > .bk .pz-sh { background: linear-gradient(to right, rgba(20,16,50,.65), rgba(20,16,50,.05) 70%); }
.pz-leaf1 { position: absolute; inset: 0; transform-origin: right center; z-index: 5; transform-style: preserve-3d; }
.pz-leaf1 > .ft { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #F6EFD9; box-shadow: -10px 0 30px rgba(0,0,0,.35); }
.pz-book:not(.sp) { perspective: 1600px; }
body.pz-on .app, body.pz-on .app * { touch-action: pan-y; }
body.pz-on .view { min-height: calc(100vh - 140px); }
.pz-cta { flex: 0 0 auto; height: 40px; padding: 0 16px; border-radius: 999px; background: #FFD23F; color: #2A2350; font: 800 14px 'Tajawal', sans-serif; display: inline-flex; align-items: center; }
.pz-login .pz-tx b { font-size: 15px; line-height: 1.35; }
.pz-login { align-self: stretch; width: 100%; box-sizing: border-box; }
.pz-login .pz-tx { min-width: 0; }
.pz-login { flex: 0 0 auto; height: auto; min-height: 74px; }
.pz-login .pz-tx { flex: 1 1 0; }
.pz-login .pz-cta { height: 36px; padding: 0 14px; font-size: 13.5px; }
@media (orientation: landscape) {
  .st-page.sz2 .pz-login { min-height: 0; padding: 8px 12px; gap: 10px; }
  .st-page.sz2 .pz-login .pz-th, .st-page.sz2 .pz-login small { display: none; }
  .st-page.sz2 .pz-login .pz-tx b { font-size: 14px; }
}
.pz-bk .pz-cv-em { margin-top: 46px; } .pz-bk .pz-cv-t1 { margin-top: 26px; font-size: 32px; text-align: center; line-height: 1.25; } .pz-bk .pz-cv-t2 { margin-top: 12px; font-size: 16px; text-align: center; line-height: 1.5; max-width: 280px; }
.pz-bkn { position: relative; margin-top: 30px; padding: 6px 18px; border: 2px solid #E6C068; border-radius: 999px; font-weight: 800; font-size: 15px; color: #E6C068; }
.pz-bk { background-color: #12305A; }
/* tablets in landscape (iPad): bigger two-column stories page so the screen is used */
@media (orientation: landscape) and (min-height: 600px) {
  .st-page.sz2 { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 30px; }
  .st-page.sz2 .sz-tonight { min-height: 430px; }
  .st-page.sz2 .sz-tx b { font-size: 32px; } .st-page.sz2 .sz-tx small { font-size: 16px; } .st-page.sz2 .sz-play { width: 66px; height: 66px; }
  .st-page.sz2 .sz-chip { min-height: 42px; font-size: 15px; padding: 0 20px; }
  .st-page.sz2 .sz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .st-page.sz2 .sz-card b { font-size: 17px; } .st-page.sz2 .sz-card small { font-size: 14px; } .st-page.sz2 .sz-img { border-radius: 18px; margin-bottom: 6px; }
  .st-page.sz2 .sz-b { height: 26px; font-size: 13px; padding: 0 12px; top: 8px; inset-inline-start: 8px; }
  .st-page.sz2 .pz-strip { padding: 14px 18px; } .st-page.sz2 .pz-tx b { font-size: 18px; } .st-page.sz2 .pz-login .pz-tx b { font-size: 18px; } .st-page.sz2 .pz-login small { display: block; }
  .st-page.sz2 .pz-login .pz-th { display: block; } .st-page.sz2 .pz-cta { height: 42px; font-size: 15px; }
}
/* story player on tablets in landscape (iPad): the picture beside the reading card and controls, like on a phone but bigger */
@media (orientation: landscape) and (min-height: 601px) {
  .stp { flex-direction: row; }
  .stp-scene { flex: 0 0 46%; }
  .stp-scene::after { inset: 0 auto 0 0; width: 34%; height: auto; background: linear-gradient(-90deg, transparent, #17133F); }
  .stp-low { padding: 26px 34px 22px; justify-content: center; }
  .stp-dots { margin: 0 0 14px; }
  .stp-page { padding: 22px 28px 36px; } .stp-page .now { font-size: 28px; line-height: 1.7; } .stp-page .prev, .stp-page .next { font-size: 17px; }
  .stp.fs2 .stp-page .now { font-size: 32px; } .stp.fs3 .stp-page .now { font-size: 36px; }
  .stp-tools { gap: 12px; margin-top: 14px; } .stp-tools button { flex-direction: row; justify-content: center; gap: 10px; padding: 10px 6px; border-radius: 18px; } .stp-tools button svg { width: 22px; height: 22px; } .stp-tools button i { width: 32px; height: 32px; } .stp-tools button span { font-size: 14px; }
}

/* play time: changes wait for «احفظ» — a save bar above the tab bar */
.tl-save { position: sticky; bottom: calc(env(safe-area-inset-bottom) + 86px); z-index: 4; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 20px; background: linear-gradient(135deg, #7048E8, #4C2FB8); color: #fff; border: 2px solid rgba(255,255,255,.35); box-shadow: 0 5px 0 #3B1E7A, 0 10px 24px rgba(76,47,184,.35); animation: gxPop .3s cubic-bezier(.2,1.4,.4,1) both; }
.tl-save span { flex: 1 1 auto; font-weight: 800; font-size: 14px; line-height: 1.4; }
.tl-save button { flex: none; min-height: 42px; padding: 0 14px; border-radius: 999px; font: 800 15px var(--display); cursor: pointer; }
.tl-cancel { background: rgba(255,255,255,.16); color: #fff; border: 2px solid rgba(255,255,255,.45); }
.tl-ok { background: #2EBD6B; color: #fff; border: 0; box-shadow: 0 3px 0 #1F8A4C; }
.tl-ok:active { transform: translateY(2px); box-shadow: 0 1px 0 #1F8A4C; }
.tl-saved { justify-content: center; background: #2EBD6B; color: #fff; }
@media (orientation: landscape) and (max-height: 520px) { .tl-save { bottom: calc(env(safe-area-inset-bottom) + 62px); } }
.tl-ic { color: #2B8A3E; } .tl-ic .pi { width: 58%; height: 58%; }

/* a locked game with its own banner above the shelf of its section (content.json games[].banner) — compact */
.gx-bn { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 14px 12px 10px; margin: 12px 0 4px; border-radius: 20px; color: #fff; overflow: visible;
  background: radial-gradient(circle at 85% 20%, rgba(120,140,255,.45), transparent 55%), linear-gradient(135deg, #1A2470, #0B1040 70%); border: 3px solid var(--gc); box-shadow: 0 5px 0 var(--gc), 0 0 20px rgba(80,110,255,.3);
  animation: gxPop .5s cubic-bezier(.2,1.4,.4,1) both; }
.gx-bn-st { position: absolute; inset: 0; border-radius: 17px; overflow: hidden; pointer-events: none; }
.gx-bn-st i { position: absolute; font-style: normal; color: #fff; opacity: .7; font-size: 9px; animation: gxTwinkle 2.4s ease-in-out infinite; }
.gx-bn-st i:nth-child(1) { top: 14%; left: 8%; } .gx-bn-st i:nth-child(2) { top: 70%; left: 30%; font-size: 7px; animation-delay: .4s; } .gx-bn-st i:nth-child(3) { top: 20%; left: 48%; font-size: 11px; animation-delay: .9s; } .gx-bn-st i:nth-child(4) { top: 82%; left: 12%; font-size: 8px; animation-delay: 1.3s; } .gx-bn-st i:nth-child(5) { top: 52%; left: 4%; animation-delay: 1.8s; }
.gx-bn .gx-tags { top: -11px; } .gx-bn .gx-tag { padding: 3px 9px; font-size: 11px; }
.gx-bn .gx-art { position: relative; }
.gx-bn .gx-art img { width: 76px; height: 76px; border-radius: 18px; filter: saturate(.9) brightness(.95); }
.gx-bn .gx-lock-ic { width: 28px; height: 28px; bottom: -5px; left: -5px; border-width: 2px; } .gx-bn .gx-lock-ic svg { width: 14px; height: 14px; }
.gx-bn .gx-info { gap: 3px; }
.gx-bn .gx-title { color: #FFD23F; font-size: 21px; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.gx-bn .gx-desc { display: none; }
.gx-bn .gx-cd-l { color: #9BE8FF; font-size: 13px; }
.gx-bn .gx-pv { margin-top: 3px; padding: 4px 10px; font-size: 12px; background: rgba(255,255,255,.12); color: #FFE27A; border-color: #FFD23F; }
.gx-bn .gx-tag.soon { background: #FFD23F; color: #1F1A33; border-color: #1F1A33; }
@media (min-width: 700px) { .gx-bn { grid-template-columns: 96px 1fr; } .gx-bn .gx-art img { width: 96px; height: 96px; } .gx-bn .gx-title { font-size: 26px; } }
@media (max-width: 380px) { .gx-bn { grid-template-columns: 64px 1fr; gap: 10px; } .gx-bn .gx-art img { width: 64px; height: 64px; } .gx-bn .gx-title { font-size: 19px; } }
@media (max-width: 380px) { .gx-bn { grid-template-columns: 88px 1fr; gap: 10px; } .gx-bn .gx-art img { width: 88px; height: 88px; } .gx-bn .gx-title { font-size: 21px; } .gx-bn .gx-desc { font-size: 12.5px; } }
@media (orientation: landscape) and (max-height: 520px) { .gx-bn { grid-template-columns: 96px 1fr; } .gx-bn .gx-art img { width: 96px; height: 96px; } }

/* ===================== Landscape layouts (phone held sideways, iPad landscape, desktop) =====================
   Only for wide landscape screens (≥700px wide). Portrait and small landscape phones are untouched.
   Pattern: the page's .stack becomes a 2-column grid; everything spans both columns unless placed. */
.hm-cats { display: contents; }
@media (orientation: landscape) and (min-width: 700px) {
  .stack.home, .stack.tr, .stack.shc-page, .stack.gx, .stack.lb, .stack.kz, .stack.lx, .qz.narrow {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; align-items: start; }
  :is(.stack.home, .stack.tr, .stack.shc-page, .stack.gx, .stack.lb, .stack.kz, .stack.lx, .qz.narrow) > * { grid-column: 1 / -1; min-width: 0; }
  :is(.stack.home, .stack.tr, .stack.shc-page, .stack.gx, .stack.lb, .stack.kz, .stack.lx, .qz.narrow) > .back { justify-self: start; }

  /* home: banner | «عايز تكتشف إيه» side by side; bedtime stories | ask Yahya side by side */
  .stack.home > .hero-c { grid-column: 1; }
  .stack.home > .hm-cats { grid-column: 2; display: flex; flex-direction: column; gap: 12px; align-self: center; }
  .hm-cats .cats.cats-row { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .stack.home:has(> .ask-banner) > .st-banner, .stack.home:has(> .st-banner) > .ask-banner { grid-column: span 1; align-self: stretch; }

  /* quiz: the question on one side, the answers on the other */
  .qz.narrow { max-width: 1040px; column-gap: 22px; }
  .qz > .qz-q, .qz > .qz-head { grid-column: 1; }
  .qz > .stack { grid-column: 2; grid-row: span 3; }
  .qz > .msg, .qz > [data-next] { grid-column: 1; }

  /* episode: a bigger video */
  .ep { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 22px; }

  /* balloon trips: title | passport, then the votes in 3 columns */
  .stack.tr { align-items: stretch; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .stack.tr > .tr-hero { grid-column: 1; }
  .stack.tr > .tr-passport { grid-column: 2; }
  .stack.tr > .msg:empty { display: none; }
}
@media (orientation: landscape) and (min-width: 1000px) { .tr .ranks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (orientation: landscape) and (min-width: 700px) {

  /* souvenir shelf: sections in two columns */
  .sh .shc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* one section's shelf: the shelf on one side, tip + certificate + episodes on the other */
  .stack.shc-page { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: repeat(5, auto) 1fr; }
  .shc-page > .shelf { grid-column: 1; grid-row: span 4; max-width: none; margin: 0; }
  .shc-page > .sh-tip, .shc-page > .sc-card, .shc-page > .btn { grid-column: 2; }

  /* games: title | kinds in one row */
  .stack.gx > .gx-hero { grid-column: 1; }
  .stack.gx > .gx-kinds { grid-column: 2; align-self: center; justify-content: center; }

  /* lab + Kenzy's puzzles: title | my rank, then the list in two columns */
  .stack.lb, .stack.kz { align-items: stretch; }
  .stack.lb > .lb-hero, .stack.kz > .kz-hero { grid-column: 1; }
  .stack.lb > .lb-me, .stack.kz > .kz-me { grid-column: 2; }
  .stack.kz > .kz-hero ~ .kz-me { align-self: stretch; }
  .lb-exps, .kz-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack.lb > :is(h2, .lb-exps, .kz-ranks, .lb-safe), .stack.kz > :is(h2, .kz-files, .kz-ranks) { align-self: start; }

  /* an experiment: the choices in one row; the video beside the steps */
  .lx-opts { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .lx-items { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .stack.lx > .lx-video { grid-column: 1; grid-row: span 2; }
  .stack.lx > .lx-doh, .stack.lx > #lxDo { grid-column: 2; }
}

/* landscape, parents' side: two balanced columns, as close to one screen as possible */
.pa-col, .cl-col, .lsc, .cl-renew-in { display: contents; }
@media (orientation: landscape) and (min-width: 700px) {
  /* shared: two equal columns whose blocks end at the same line */
  .stack:is(.pa, .lg, .cu, .in) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 14px; align-items: stretch; }
  .stack:is(.pa, .lg, .cu, .in) > * { grid-column: 1 / -1; min-width: 0; }
  .stack:is(.pa, .lg, .cu, .in, .club) > .back { justify-self: start; }
  .stack > :is(.pa-col, .cl-col, .lsc) { grid-column: auto; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .stack:is(.lg, .cu) > .ft { display: none; }   /* the sign-in card and the contact page already link the policies */

  /* compact page titles: icon beside the words */
  :is(.lg-hero, .in-hero, .cu-hero, .club-hero) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; text-align: start; padding: 12px 18px; }
  :is(.lg-hero, .in-hero, .cu-hero, .club-hero) > :is(.lg-lock, .in-phone, .cu-ic, .club-hero-ic) { grid-row: 1 / span 2; width: 58px; height: 58px; font-size: 30px; }
  .in-hero > .in-phone { width: 44px; height: 64px; border-radius: 12px; border-width: 3px; } .in-phone img { width: 30px; height: 30px; border-radius: 8px; }
  .lg-lock svg { width: 36px; height: 36px; }
  :is(.lg-hero, .in-hero, .cu-hero, .club-hero) h1 { margin: 0; font-size: 26px; align-self: end; }
  :is(.lg-hero, .in-hero, .cu-hero, .club-hero) p { font-size: 13.5px; line-height: 1.5; align-self: start; }

  /* «مساحة بابا وماما»: kids + club + tools | invite + settings + account */
  .pa-col .pa-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1 1 auto; grid-auto-rows: 1fr; }
  .pa-col .pa-tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pa-col .pa-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pa-col .pa-list > .pa-row { border-bottom: 1.5px solid #EEF0F8; }
  .pa-col .pa-list > .pa-row:nth-child(odd) { border-inline-end: 1.5px solid #EEF0F8; }
  .pa-col .pa-list > .pa-row:nth-last-child(-n+2):nth-child(odd), .pa-col .pa-list > .pa-row:last-child { border-bottom: 0; }
  .pa-col .pa-id { margin-top: auto; }

  /* edit a child: name + boy/girl | the pictures; save across the bottom */
  .pk-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 20px; row-gap: 10px; align-items: stretch; }
  .pk-form > * { grid-column: 1 / -1; min-width: 0; }
  .pk-form > .lsc { grid-column: auto; display: flex; flex-direction: column; gap: 10px; }
  .pk-main .pk-preview { flex-direction: row; justify-content: center; gap: 12px; }
  .pk-main .pk-av.big { width: 72px; height: 72px; } .pk-main .pk-av.big img { width: 56px; height: 56px; }
  .pk-main .pk-g { margin-bottom: auto; }
  .pk-pics .pk-avatars { max-height: none; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 2px; }

  /* the club: plans + how to pay | what you get + codes + small print */
  .stack.club:has(> .cl-col) { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 18px; row-gap: 14px; align-items: stretch; }
  .stack.club:has(> .cl-col) > * { grid-column: 1 / -1; min-width: 0; }
  .stack.club:has(> .cl-col) > .cl-col { grid-column: auto; }
  .cl-col .club-plans.three { max-width: none; }
  .cl-col > .club-card:last-child { flex: 1 1 auto; }
  .cl-col > .cl-perks { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; }
  .cl-col > .cl-perks > .club-free { margin-top: auto; }
  .cl-col > .cl-perks > * { margin-block: 0; }
  .cl-col > .cl-perks ul { gap: 14px; } .cl-col > .cl-perks li { font-size: 15.5px; }
  .cl-col > .club-fine { margin: 0; }

  /* admin (owner only): the cards flow in two columns */
  .stack.adm { display: block; columns: 2; column-gap: 16px; }
  .stack.adm > * { break-inside: avoid; margin: 0 0 16px; }
  .stack.adm > .back { column-span: all; display: inline-flex; }

  /* contact: the form | title + social links */
  .stack.cu { grid-template-rows: auto 1fr auto; }
  .stack.cu > .cu-card { grid-column: 1; grid-row: 2 / span 2; }
  .stack.cu > .cu-hero { grid-column: 2; grid-row: 2; align-content: center; }
  .stack.cu > .cu-social { grid-column: 2; grid-row: 3; display: flex; flex-direction: column; gap: 8px; }
  .stack.cu > .cu-social .ak-h2 { margin: 0; }
  .cu-social .cu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cu-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 6px; align-content: start; }
  .cu-card > * { grid-column: 1 / -1; min-width: 0; }
  .cu-card > label[for="cuName"] { grid-column: 1; grid-row: 1; } .cu-card > #cuName { grid-column: 1; grid-row: 2; }
  .cu-card > label[for="cuEmail"] { grid-column: 2; grid-row: 1; } .cu-card > #cuEmail { grid-column: 2; grid-row: 2; }
  .cu-card textarea { min-height: 96px; }
  .cu-card > .cu-hp { position: absolute; }

  /* sign in: title + Google card | what you get */
  .lsc > .lg-card { flex: 1 1 auto; justify-content: center; }
  .lsc > .lg-h { margin: 0; }
  .lsc > .lg-perks { flex: 1 1 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .lsc > .lg-note { margin: 0; }

  /* install: title + phone type + video | the steps */
  .stack.in > .in-steps { grid-column: auto; margin: 0; justify-content: space-between; }
  .stack.in > .in-steps li { flex: 1 1 auto; padding: 8px 12px; }
  .lsc > .in-vid { flex: 1 1 auto; }
  .stack.in > .small { margin: 0; }

  /* balloon trips: title + «where should it fly?» | the passport */
  .stack.tr { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .stack.tr > .tr-hero { grid-column: 1; grid-row: 2; }
  .stack.tr > .tr-vote { grid-column: 1; grid-row: 3; }
  .stack.tr > .tr-passport { grid-column: 2; grid-row: 2 / span 2; display: flex; flex-direction: column; justify-content: center; }
}
/* phones held sideways: tighter spacing so the page fits the short screen */
@media (orientation: landscape) and (min-width: 700px) and (max-height: 520px) {
  .stack:is(.pa, .lg, .cu, .in), .stack.club:has(> .cl-col) { row-gap: 10px; }
  .stack > :is(.pa-col, .cl-col, .lsc) { gap: 10px; }
  :is(.lg-hero, .in-hero, .cu-hero, .club-hero) { padding: 8px 14px; border-radius: 20px; }
  :is(.lg-hero, .in-hero, .cu-hero, .club-hero) > :is(.lg-lock, .cu-ic, .club-hero-ic) { width: 44px; height: 44px; font-size: 24px; }
  :is(.lg-hero, .in-hero, .cu-hero, .club-hero) h1 { font-size: 21px; }
  :is(.lg-hero, .in-hero, .cu-hero, .club-hero) p { font-size: 12px; }
  .lg-card { padding: 12px; gap: 6px; } .lg-perk small { display: none; }
  .in-steps li { padding: 6px 10px; } .in-tabs button { min-height: 38px; }
  .cu-card { padding: 12px; } .cu-card textarea { min-height: 70px; } .cu-card .field { padding-block: 8px; }
  .pa-col .pa-row { padding: 9px 12px; }
}
@media (orientation: landscape) and (min-width: 700px) {
  /* reports: bigger kid buttons */
  .rp-entry .rp-kidrow { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .rp-entry .rp-kidrow .rp-kidbtn { padding: 16px 10px 14px; gap: 6px; }
  .rp-entry .rp-kidrow .rp-kidbtn img { width: 72px; height: 72px; }
  .rp-entry .rp-kidrow .rp-kidbtn b { font-size: 17px; } .rp-entry .rp-kidrow .rp-kidbtn small { font-size: 13px; }
  .rp-entry { padding: 20px; } .rp-entry .pk-h { font-size: 24px; } .rp-entry .rp-entry-sub { font-size: 15px; }

  /* empty pages (live ended, passport for guests): a big centred card that fills the screen */
  .live-end > .live-box, .pp-guest > .st-map { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 28px; border-radius: 28px; }
  .live-end > .live-box { background: #fff; border: 3px dashed #F3B4C0; }
  .live-end > .live-box::before { content: "📺"; font-size: 64px; line-height: 1; }
  .pp-guest > .st-map::before { content: "🛂"; font-size: 64px; line-height: 1; }
  .live-end > .live-box h2 { font-size: 30px; justify-content: center; } .live-end > .live-box p { font-size: 18px; }
  .pp-guest > .st-map p { font-size: 20px; font-weight: 800; color: #fff; }
  .pp-guest > .btn { align-self: center; min-width: 320px; }
}
@media (orientation: landscape) and (min-width: 700px) and (min-height: 600px) { .stack.live-end, .stack.pp-guest { min-height: calc(100dvh - 300px); } }
@media (orientation: landscape) and (min-width: 700px) and (max-height: 520px) {
  .live-end > .live-box, .pp-guest > .st-map { padding: 14px; gap: 6px; }
  .live-end > .live-box::before, .pp-guest > .st-map::before { font-size: 40px; }
  .live-end > .live-box h2 { font-size: 22px; } .live-end > .live-box p { font-size: 15px; }
}

/* home announcement: a locked game that is coming soon (soonGameBanner) */
.sg-bn { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 20px; text-decoration: none; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(120,140,255,.45), transparent 55%), linear-gradient(135deg, #1A2470, #0B1040 70%); border: 3px solid var(--gc); box-shadow: 0 5px 0 var(--gc), 0 0 18px rgba(80,110,255,.28); animation: gxPop .5s cubic-bezier(.2,1.4,.4,1) both; }
.sg-img { position: relative; flex: none; width: 58px; height: 58px; border-radius: 16px; object-fit: cover; border: 2px solid #fff; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.sg-tx { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-tag { align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: #FFD23F; color: #1F1A33; font-size: 11px; font-weight: 800; }
.sg-tx b { font-family: var(--display); font-size: 19px; line-height: 1.15; color: #FFD23F; text-shadow: 0 2px 0 rgba(0,0,0,.3); }
.sg-tx small { font-size: 12px; font-weight: 700; color: #BFEFFF; line-height: 1.35; }
/* home box for the new game under the hero («غواصة الأعماق») */
.dp-bn { position: relative; display: flex; align-items: center; gap: 10px; min-height: 118px; padding: 12px 14px; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; border: 3px solid #fff; box-shadow: 0 5px 0 #0E4FA3, 0 10px 18px rgba(10,50,120,.25); background: #0B6FB8 url(/games/deep/img/bg_l.webp) center 62% / cover; }
.dp-bn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,40,90,0) 0, rgba(4,40,90,.25) 38%, rgba(4,36,84,.82) 100%); }
.dp-bn:active { transform: translateY(3px); box-shadow: 0 2px 0 #0E4FA3; }
.dp-art { position: relative; flex: none; width: 118px; height: 96px; }
.dp-art .s { position: absolute; left: 0; top: 6px; width: 104px; filter: drop-shadow(0 5px 6px rgba(0,30,70,.5)); animation: dpF 3s ease-in-out infinite; }
.dp-art .g { position: absolute; right: -4px; bottom: 0; width: 38px; filter: drop-shadow(0 0 8px rgba(150,255,240,.95)); }
.dp-art .f { position: absolute; right: 2px; top: -2px; width: 30px; }
@keyframes dpF { 50% { transform: translateY(-6px) rotate(-3deg); } }
.dp-tx { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.dp-tag { padding: 2px 10px; border-radius: 999px; background: #FF4F7B; color: #fff; font-size: 11px; font-weight: 800; }
.dp-tx b { font-family: var(--display); font-size: 22px; line-height: 1.1; color: #FFD23F; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.dp-tx small { font-size: 12px; font-weight: 700; color: #E3F6FF; line-height: 1.35; }
.dp-go { margin-top: 2px; padding: 5px 16px; border-radius: 999px; font-size: 13px; font-weight: 900; color: #06284A; border: 2px solid #fff; background: linear-gradient(180deg, rgba(255,236,150,.92), rgba(255,184,31,.85)); box-shadow: 0 0 14px rgba(255,214,90,.75), inset 0 2px 0 rgba(255,255,255,.7); }
.dp-bub i { position: absolute; bottom: -10px; left: 12%; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); animation: dpB 4s linear infinite; }
.dp-bub i:nth-child(2) { left: 30%; animation-delay: 1.3s; } .dp-bub i:nth-child(3) { left: 44%; animation-delay: 2.4s; }
@keyframes dpB { to { transform: translateY(-140px); opacity: 0; } }
@media (min-width: 700px) { .dp-bn { min-height: 130px; } .dp-art { width: 170px; height: 110px; } .dp-art .s { width: 130px; } .dp-tx b { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .dp-art .s, .dp-art .m, .dp-bub i { animation: none; } }
/* «عيون خارقة» home box */
.dp-bn.ae { background: #2A1466 url(/games/animaleyes/owl/img/bg.webp) center 60% / cover; box-shadow: 0 5px 0 #4A2BA8, 0 10px 18px rgba(60,20,140,.3); }
.dp-bn.ae::before { background: linear-gradient(90deg, rgba(40,14,100,.15) 0, rgba(40,14,100,.45) 38%, rgba(34,10,86,.88) 100%); }
.dp-bn.ae:active { box-shadow: 0 2px 0 #4A2BA8; }
.dp-bn.ae .dp-art .m { position: absolute; left: 22px; top: 4px; width: 70px; height: 70px; border-radius: 18px; box-shadow: 0 0 18px rgba(185,140,255,.9); animation: dpF 3s ease-in-out infinite; }
.dp-bn.ae .dp-art .a1, .dp-bn.ae .dp-art .a2, .dp-bn.ae .dp-art .a3 { position: absolute; bottom: 0; height: 40px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
.dp-bn.ae .dp-art .a1 { left: 4px; } .dp-bn.ae .dp-art .a2 { left: 42px; height: 44px; } .dp-bn.ae .dp-art .a3 { left: 82px; }
.dp-bn.ae .dp-tx small { color: #EDE2FF; }
.dp-bn.ae .dp-go { color: #3A1A00; }
@media (min-width: 700px) { .dp-bn.ae .dp-art .m { left: 46px; width: 78px; height: 78px; } .dp-bn.ae .dp-art .a1 { left: 18px; } .dp-bn.ae .dp-art .a2 { left: 64px; height: 48px; } .dp-bn.ae .dp-art .a3 { left: 112px; } }
.sg-bn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gc); }
@media (max-width: 380px) { .sg-img { width: 48px; height: 48px; } .sg-tx b { font-size: 17px; } .sg-tx small { font-size: 11px; } }

/* iPad / wide landscape: use the whole screen width (no empty side margins) */
@media (orientation: landscape) and (min-width: 1000px) {
  .app, .tabs { max-width: 1400px; }
}
@media (orientation: landscape) and (min-width: 700px) {
  /* parents' area: when the tools are 3 (app already installed), one row of 3 instead of a lone wide tile */
  .pa-col .pa-tiles:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pa-col .pa-tiles:has(> :nth-child(3):last-child) > :last-child { grid-column: auto; }
  /* souvenir shelf: two columns with flex (steadier in Safari than a grid of grids) */
  .sh .shc-grid { display: flex; flex-flow: row wrap; align-items: stretch; gap: 10px; }
  .sh .shc-grid > .shc { flex: 0 0 calc(50% - 5px); max-width: calc(50% - 5px); }
  /* add a child: picture + name on one side, the question on the other, in a centred card */
  .aw-card { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 28px; align-items: start; text-align: center; width: 100%; max-width: 920px; margin-inline: auto; padding: 18px 24px; }
  .aw-top { grid-column: 1 / -1; justify-content: center; gap: 14px; }
  .aw-hero { grid-column: 1; grid-row: 2; align-self: center; }
  .aw-step { grid-column: 2; grid-row: 2; align-self: center; }
  .aw-safe { grid-column: 1 / -1; }
  .aw-avs { grid-template-columns: repeat(8, 1fr); gap: 8px; }
}
@media (orientation: landscape) and (min-width: 700px) and (max-height: 520px) {
  .aw-card { grid-template-columns: 170px minmax(0, 1fr); column-gap: 18px; padding: 10px 14px; max-width: none; }
}
@media (orientation: landscape) and (min-width: 700px) and (min-height: 600px) {
  .aw-card { min-height: calc(100dvh - 300px); max-width: 1000px; }
  .aw-hero .aw-ring { width: 170px; height: 170px; } .aw-hero .aw-ring img { width: 128px; height: 128px; }
  .aw-hero .aw-name { font-size: 28px; }
}
@media (orientation: landscape) and (min-width: 700px) {
  /* the club for members: «you're a member» | «what's unlocked», then «extend» across */
  .stack.club:has(> .club-on) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 14px; align-items: stretch; }
  .stack.club:has(> .club-on) > * { grid-column: 1 / -1; min-width: 0; }
  .stack.club:has(> .club-on) > .club-on { grid-column: 1; }
  .stack.club:has(> .club-on) > .cl-perks { grid-column: 2; display: flex; flex-direction: column; gap: 10px; }
  .stack.club:has(> .club-on) > .cl-perks > * { margin-block: 0; }
  .stack.club:has(> .club-on) > .cl-perks > .club-free { margin-top: auto; }
  .club-on { display: flex; flex-direction: column; justify-content: center; }
  /* «extend the membership» opened: plans on one side, how to pay on the other */
  .cl-renew-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 12px 16px; align-items: start; }
  .cl-renew-in > * { grid-column: 1; min-width: 0; margin: 0; }
  .cl-renew-in > .club-card { grid-column: 2; grid-row: 1 / span 3; }
  .cl-renew .club-plans.three { max-width: none; }
  /* an experiment's «bring these»: wider boxes so the words don't wrap word by word */
  .lx-items { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* ===================== Bottom menu, Nov 2026: a floating bar in the site's colours ===================== */
/* the header's blue-to-purple, a yellow bubble for the page you're on (like the «يلا نلعب» buttons), and it floats:
   shorter than the old white bar, the page shows around it, and it sits just above the iPhone's home line */
.tabs {
  --tb-gap: 10px;
  left: 50%; right: auto; transform: translateX(-50%);
  bottom: max(8px, calc(env(safe-area-inset-bottom) - 12px));
  width: calc(100% - 20px); max-width: 500px;
  padding: 6px; gap: 4px; border: 0; border-radius: 26px;
  background: linear-gradient(120deg, #2456B8 0%, #3B5BDB 55%, #7048E8 100%);
  box-shadow: 0 5px 0 #1B3F8A, 0 12px 26px rgba(27,35,64,.28);
}
[dir="ltr"] .tabs { background: linear-gradient(240deg, #2456B8 0%, #3B5BDB 55%, #7048E8 100%); }
.tabs a { min-height: 52px; gap: 1px; border-radius: 20px; color: #DCE6FF; font-size: 11.5px; transition: background .2s, transform .2s; }
.tabs a img { width: 28px; height: 28px; opacity: 1; filter: drop-shadow(0 2px 0 rgba(0,0,0,.18)); }
.tabs a.on { background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 var(--yellow-d); transform: translateY(-2px); }
.tabs a.on img { transform: scale(1.1); }
.tabs a:active { transform: translateY(1px); }
/* the page ends above the bar */
.view { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
body.pz-on .view { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (max-width: 400px) { .tabs a { font-size: 10.5px; } .tabs a img { width: 26px; height: 26px; } }
@media (max-width: 340px) { .tabs { width: calc(100% - 12px); padding: 5px; } .tabs a { font-size: 9.5px; min-height: 48px; } .tabs a img { width: 23px; height: 23px; } }
/* wide screens (iPad, desktop): one centred bar, icon beside the word */
@media (min-width: 700px) {
  .tabs { max-width: 640px; }
  .tabs a { flex-direction: row; gap: 8px; font-size: 15px; min-height: 50px; }
  .view { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
/* phones held sideways: the same bar, slimmer (icon beside the word), so the short screen keeps more room for the page */
@media (orientation: landscape) and (max-height: 520px) {
  .tabs { bottom: max(6px, calc(env(safe-area-inset-bottom) - 10px)); max-width: 560px; padding: 4px; border-radius: 22px; }
  .tabs a { flex-direction: row; gap: 6px; min-height: 40px; font-size: 12.5px; border-radius: 18px; }
  .tabs a img { width: 24px; height: 24px; }
  .tabs a.on { transform: none; }
  .view { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.pz-on .view { padding-bottom: 56px; }
}

/* menu (Nov 2026): Home · Stories · Games · Shelf · Profile. White line icons; the page you're on shows its coloured
   drawing inside the yellow bubble. The lab is reached from the games page and the home «العب» row. */
.tabs a img { width: 30px; height: 30px; filter: none; }
.tabs a .ic-on { display: none; }
.tabs a.on .ic { display: none; }
.tabs a.on .ic-on { display: block; transform: scale(1.12); filter: drop-shadow(0 2px 0 rgba(0,0,0,.12)); }
.tabs a .ic { opacity: .95; }
@media (orientation: landscape) and (max-height: 520px) { .tabs a img { width: 24px; height: 24px; } }
.hr-lab img { background: radial-gradient(circle at 50% 40%, #E6FCF5, #C3FAE8); padding: 14%; box-sizing: border-box; }
.gx-lab-art img { background: radial-gradient(circle at 50% 40%, #E6FCF5, #96F2D7); padding: 16%; box-sizing: border-box; }

/* ===== «غرفتي»: the child's room (a painted room, scaled to fit between the header and the menu) ===== */
body.rm-on .view { padding-top: 8px; padding-bottom: 0; }   /* the room is sized to end above the menu: nothing to scroll */
.rm { position: relative; touch-action: manipulation; }
/* the painting is drawn at its own size and scaled down: clip it so the page never gets wider than the phone (Safari would zoom out) */
.rm-wrap { position: relative; width: 100%; height: 0; overflow: hidden; contain: layout paint; }
.rm-toast { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 10px; background: #1F1A33; color: #fff; font-weight: 800; font-size: 14px; border-radius: 999px; padding: 6px 6px 6px 16px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); animation: rmFade .2s ease-out; }
.rm-toast button { border: 0; border-radius: 999px; background: #FFD23F; color: #1B2340; font: inherit; font-weight: 900; padding: 6px 14px; cursor: pointer; }
.rm-stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; background-size: 100% 100%; border-radius: 44px; overflow: hidden; box-shadow: 0 10px 30px rgba(27, 35, 64, .18); }
.rm-stage button { position: absolute; border: 0; background-color: transparent; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; font: inherit; }
.rm-stage img, .rm-ov img { -webkit-user-drag: none; user-select: none; }
img[data-gold] { opacity: 0; transition: opacity .25s; }
img[data-gold].ok { opacity: 1; }
.rm-sv img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 1.5px #7A4A00) drop-shadow(0 7px 4px rgba(70, 35, 0, .38)); }
.rm-sv:active { transform: scale(.94); }
.rm-sv.new::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 236, 140, .8), rgba(255, 214, 60, .25) 60%, transparent); animation: rmPulse 1.8s ease-in-out infinite; }
.rm-new { position: absolute; z-index: 2; top: -16%; left: -18%; background: #FF5E7E; color: #fff; border: 3px solid #fff; border-radius: 999px; font-weight: 900; font-size: 26px; line-height: 1.35; padding: 0 .45em; box-shadow: 0 0 14px #FFD23F; white-space: nowrap; }
.rm-frame { overflow: hidden; }
.rm-frame .rm-cert { width: 100%; height: 100%; }
.rm-rk img, .rm-md img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(1px 4px 3px rgba(60, 30, 8, .4)); }
.rm-rk.off img, .rm-md.off img, .rm-ov img.off { filter: grayscale(1) brightness(.6); opacity: .5; }
.rm-md { transform-origin: 50% 0; }
.rm-md img { height: auto; }
.rm-tack { position: absolute; z-index: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FF8FA3, #D6336C 60%, #8A1A40); box-shadow: 1px 2px 2px rgba(0, 0, 0, .4); pointer-events: none; }
.rm-md { z-index: 0; }
.rm-pp { display: grid; place-items: center; border-radius: 5px; background: linear-gradient(135deg, #1D2F7A, #13235C); border: 3px solid #C9A65A; box-shadow: 3px 6px 6px rgba(40, 20, 5, .45); }
.rm-pp svg { width: 70%; height: auto; }
.rm-chest { z-index: 7; }
.rm-chest img { position: relative; display: block; width: 100%; height: 100%; filter: drop-shadow(0 6px 4px rgba(60, 30, 8, .4)); }
.rm-chest b { position: absolute; left: 25.8%; width: 47.5%; top: 70.3%; height: 14.5%; display: grid; place-items: center; font-weight: 900; color: #6B3A0A; text-shadow: 0 1px 0 #FFF3B0; white-space: nowrap; }
.rm-halo { position: absolute; left: -40%; top: -30%; width: 180%; height: 150%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 226, 122, .9), rgba(255, 200, 60, .35) 55%, transparent); animation: rmPulse 2.2s ease-in-out infinite; }
.rm-spk { position: absolute; width: 18%; aspect-ratio: 1; background: #FFF7C2; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 4px #FFE27A); animation: rmTwinkle 1.6s ease-in-out infinite; }
.rm-spk.s1 { left: -4%; top: 14%; } .rm-spk.s2 { right: -2%; top: 2%; animation-delay: .5s; } .rm-spk.s3 { left: 40%; top: -10%; animation-delay: 1s; }
.rm-dot { position: absolute; top: -6%; right: -6%; min-width: 30%; aspect-ratio: 1; border-radius: 50%; background: #FF5E7E; color: #fff; border: 3px solid #fff; font-weight: 900; font-size: 26px; display: grid; place-items: center; }
.rm-sky, .rm-dark, .rm-glow { position: absolute; pointer-events: none; display: none; }
.rm-sky { z-index: 4; border-radius: 50% 50% 4px 4px / 40% 40% 4px 4px; }
.rm-dark { inset: 0; z-index: 5; background: rgba(24, 28, 92, .55); mix-blend-mode: multiply; }
.rm-glow { z-index: 6; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 120, .75), rgba(255, 190, 90, .25) 55%, transparent); mix-blend-mode: screen; }
.rm-stage.night .rm-sky, .rm-stage.night .rm-dark { display: block; }
.rm-stage.night:not(.lit) .rm-dark { background: rgba(8, 10, 40, .78); }
.rm-stage.lit .rm-glow { display: block; opacity: .4; }
.rm-stage.night.lit .rm-glow { opacity: 1; }
.rm-btn { z-index: 7; border-radius: 50% !important; border: 6px solid #fff !important; display: grid !important; place-items: center; box-shadow: 0 8px 10px rgba(40, 20, 5, .35); }
.rm-btn svg { width: 60%; height: 60%; }
.rm-btn::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 5px dashed var(--r); filter: drop-shadow(0 0 6px var(--r)) drop-shadow(0 0 12px var(--r)); animation: rmSpin 9s linear infinite; }
.rm-btn::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; box-shadow: 0 0 22px 6px var(--g); animation: rmPulse 1.8s ease-in-out infinite; }
.rm-dn { background: linear-gradient(135deg, #7048E8, #3B2A9E) !important; --r: #B197FC; --g: rgba(151, 117, 250, .6); }
.rm-cam { background: linear-gradient(135deg, #15AABF, #0B7285) !important; --r: #66D9E8; --g: rgba(21, 170, 191, .55); }
.rm-cam.busy { opacity: .55; }
.rm-btn:active, .rm-plate:active { transform: scale(.94); }
.rm-plate { z-index: 7; display: grid !important; place-items: center; border-radius: 12px !important; background: linear-gradient(#FFFDF6, #EFE6D2) !important; border: 3px solid #BFA77C !important; box-shadow: inset 0 2px 0 #fff, 0 5px 5px rgba(60, 30, 8, .3); }
.rm-plate::before { content: ""; position: absolute; inset: -12px; border-radius: 18px; border: 4px solid #FFD23F; box-shadow: 0 0 16px 4px rgba(255, 210, 63, .85), inset 0 0 10px rgba(255, 210, 63, .6); animation: rmPulse 1.8s ease-in-out infinite; }
.rm-plate i { position: absolute; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #BFA77C; }
.rm-plate i:first-child { top: 7px; } .rm-plate i:last-child { bottom: 7px; }
.rm-rock { width: 32px; height: 52px; border-radius: 7px; border: 3px solid #BFA77C; background: linear-gradient(#FFFFFF 0 50%, #E3D6BA 50%); }
.rm-rock.down { background: linear-gradient(#E3D6BA 0 50%, #FFFFFF 50%); }
.rm-spkb { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFF6DF, #E8D9B6); border: 3px solid #BFA77C; display: grid; place-items: center; }
.rm-spkb svg { width: 72%; height: 72%; }
.rm-tip { position: absolute; z-index: 8; background: #1F1A33; color: #FFD23F; font-weight: 900; font-size: 30px; border-radius: 16px; padding: 8px 16px; white-space: nowrap; pointer-events: none; animation: rmBob 1.6s ease-in-out infinite; }
/* the hall: the door opens on its hinges */
.rm-door { background-size: cover; background-position: center; transform-origin: 100% 50%; transition: transform .65s cubic-bezier(.5, 0, .3, 1), filter .65s; box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
.rm-door.open { transform: perspective(1800px) rotateY(70deg); filter: brightness(.82); }
.rm-door.locked { filter: saturate(.75) brightness(.92); cursor: default; }
.rm-door-nm { position: absolute; left: 18%; right: 19%; top: 21%; height: 15%; display: grid; place-items: center; font-weight: 900; color: #5B2E0A; text-shadow: 0 1.5px 0 rgba(255, 230, 170, .85), 0 -1px 0 rgba(60, 25, 0, .3); white-space: nowrap; overflow: hidden; }
.rm-knock { transform: translateX(-50%); animation: rmBobC 1.6s ease-in-out infinite; }
.rm-lock { position: absolute; z-index: 3; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .35)); pointer-events: none; }
.rm-gate { position: absolute; left: 12px; right: 12px; bottom: 16px; max-width: 460px; margin: 0 auto; background: #fff; border: 4px solid #1F1A33; border-radius: 26px; box-shadow: 0 7px 0 #1B3F8A; padding: 14px 16px; text-align: center; z-index: 2; }
.rm-gate b { display: block; font-size: 20px; }
.rm-gate p { margin: 4px 0 10px; color: #4A5578; font-weight: 800; font-size: 14px; line-height: 1.5; }
.rm-gate .btn { display: block; }
/* the certificate (frame of leaves) — sizes in em so one design works in a frame and in the pop-up */
.rm-cert { position: relative; width: 24em; height: 17em; font-size: var(--f); background: #FFFEF8; border: .25em solid var(--cc); text-align: center; color: #3B2A14; line-height: 1.25; overflow: hidden; }
.rm-cert-lv { position: absolute; inset: 0; width: 100%; height: 100%; }
.rm-cert-in { position: absolute; inset: 12% 12% 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rm-cert-st { color: #FFB400; font-size: 1.1em; letter-spacing: .2em; }
.rm-cert-t { font-weight: 900; font-size: 1.9em; color: var(--cs); white-space: nowrap; }
.rm-cert-l { font-weight: 700; font-size: .82em; color: #5A4A30; }
.rm-cert-n { font-weight: 900; font-size: 1.75em; color: #1B3F8A; border-bottom: .07em solid #C8922A; padding: 0 .8em .05em; margin: .1em 0; }
.rm-cert-x { font-weight: 700; font-size: .8em; color: #5A4A30; }
.rm-cert-f { position: absolute; left: 12%; right: 12%; bottom: 9%; display: flex; justify-content: space-between; align-items: flex-end; font-size: .62em; font-weight: 800; color: #5A4A30; }
.rm-cert-f span { display: flex; flex-direction: column; align-items: center; width: 9em; }
.rm-cert-f svg { width: 7em; height: 2.2em; }
.rm-cert-f i { font-style: normal; border-top: .1em solid #8A7A5A; width: 100%; padding-top: .2em; }
.rm-snapcap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; padding: 18px; text-align: center; font-weight: 900; font-size: 36px; color: #fff; background: linear-gradient(transparent, rgba(27, 35, 64, .75)); }
/* pop-ups */
.rm-ov { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 18, 50, .62); display: grid; place-items: center; padding: 16px; animation: rmFade .2s ease-out; }
.rm-pop { position: relative; width: 100%; max-width: 380px; max-height: calc(100dvh - 32px); overflow: auto; background: #fff; border: 4px solid #1F1A33; border-radius: 28px; box-shadow: 0 8px 0 #1B3F8A; padding: 18px 16px 16px; text-align: center; }
.rm-ov.wide .rm-pop { max-width: 440px; }
.rm-ov.sheet { place-items: end center; padding: 0; }
.rm-ov.sheet .rm-pop { max-width: 560px; border-radius: 28px 28px 0 0; border-bottom: 0; box-shadow: none; padding-bottom: calc(18px + env(safe-area-inset-bottom)); max-height: 86dvh; }
.rm-pop h3 { margin: 6px 0 2px; font-size: 22px; }
.rm-pop p { margin: 0 0 10px; color: #4A5578; font-weight: 800; line-height: 1.6; }
.rm-pop .btn { display: block; width: 100%; box-sizing: border-box; margin-top: 10px; text-align: center; }
.rm-x { position: absolute; top: 10px; left: 12px; width: 38px; height: 38px; border-radius: 50%; background: #F2F6FF; border: 3px solid #1F1A33; font-weight: 900; cursor: pointer; z-index: 2; }
.rm-big { width: 170px; height: 170px; margin: 4px auto 0; border-radius: 50%; background: radial-gradient(closest-side, #FFF3B8, #FFE07A 55%, transparent); display: grid; place-items: center; }
.rm-big img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 6px 4px rgba(70, 35, 0, .35)); }
.rm-ci { width: 22px; height: 22px; vertical-align: middle; }
.rm-rks { display: flex; justify-content: center; gap: 6px; margin-bottom: 4px; }
.rm-rks img { width: 44px; height: 44px; }
.rm-cbig { display: grid; place-items: center; margin-top: 34px; }
.rm-tabs { display: flex; gap: 8px; margin: 10px 0 8px; }
.rm-tabs button { flex: 1; padding: 9px 0; border-radius: 999px; font: inherit; font-weight: 900; border: 3px solid #1F1A33; background: #fff; cursor: pointer; }
.rm-tabs button.on { background: #FFD23F; }
.rm-cnt { font-size: 14px; }
.rm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rm-grid.ce { grid-template-columns: repeat(3, 1fr); }
.rm-cell { position: relative; aspect-ratio: 1; border-radius: 18px; background: #FFF6D6; border: 3px solid #E3C77A; display: grid; place-items: center; cursor: pointer; padding: 4px; font: inherit; }
.rm-cell img { width: 72%; height: 72%; object-fit: contain; }
.rm-cell.ce { aspect-ratio: auto; padding: 10px 4px; gap: 4px; }
.rm-cell.ce img { width: 46px; height: 46px; }
.rm-cell small { font-weight: 800; font-size: 12px; color: #4A5578; }
.rm-cell.pick { border-color: #2B8A3E; background: #E6F7EA; }
.rm-cell.pick::after { content: "✓"; position: absolute; top: -8px; left: -8px; width: 26px; height: 26px; border-radius: 50%; background: #2B8A3E; color: #fff; font-weight: 900; display: grid; place-items: center; border: 2px solid #fff; }
.rm-cell.lk { background: #EEF1F7; border-color: #D5DBE8; cursor: default; }
.rm-cell.lk img { filter: brightness(0); opacity: .2; }
.rm-cell.lk::before { content: "؟"; position: absolute; font-weight: 900; color: #8A93AD; font-size: 20px; }
.rm-empty { grid-column: 1 / -1; color: #8A93AD; font-weight: 800; padding: 20px; }
@keyframes rmPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes rmTwinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
@keyframes rmSpin { to { transform: rotate(360deg); } }
@keyframes rmBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes rmBobC { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }
@keyframes rmFade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rm-btn::before, .rm-halo, .rm-spk, .rm-tip, .rm-plate::before, .rm-sv.new::before { animation: none; } .rm-door { transition: none; } }

/* ===== «ركن المعلم» · «فصول المدرسة» · «فصلي» ===== */
.tc-seg { display: flex; gap: 4px; padding: 4px; background: #fff; border: 2px solid #E3EAF8; border-radius: 999px; box-shadow: 0 3px 0 #E3EAF8; }
.tc-seg a { flex: 1; text-align: center; padding: 9px 0; border-radius: 999px; font-weight: 900; font-size: 15px; color: var(--muted); text-decoration: none; }
.tc-seg a.on { background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 var(--yellow-d); }
.tc { gap: 12px; }
.tc-card { background: #fff; border: 2px solid #E6E9F5; border-radius: 22px; padding: 14px; box-shadow: 0 4px 0 #D9DEF0; display: flex; flex-direction: column; gap: 8px; }
.tc-card > b { font-size: 17px; }
.tc-hero { align-items: center; text-align: center; }
.tc-hero h2 { margin: 0; font-size: 21px; } .tc-hero p { margin: 0; color: var(--muted); font-weight: 700; line-height: 1.6; }
.tc-hero .btn, .tc-hero .field, .tc-hero label, .tc-hero .tc-chips { align-self: stretch; }
.tc-big { font-size: 52px; line-height: 1; }
.tc-l { display: flex; flex-direction: column; gap: 4px; font-weight: 900; font-size: 13px; color: var(--muted); text-align: start; }
.tc-mute { margin: 0; color: var(--muted); font-weight: 700; font-size: 13px; line-height: 1.6; }
.tc-note { margin: 0; padding: 10px 12px; border-radius: 14px; background: #FFF4E6; border: 2px solid #FFC078; color: #9C4A00; font-weight: 800; font-size: 13px; line-height: 1.6; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-chips button { border: 2px solid #D5E0F5; background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 900; font-size: 14px; cursor: pointer; color: var(--ink); }
.tc-chips button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tc-hi, .tc-cls-top { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex-direction: row; }
.tc-hi { background: linear-gradient(135deg, #FFF9DB, #fff); }
.tc-hi b, .tc-cls-top b { display: block; font-size: 17px; } .tc-hi small, .tc-cls-top small { color: var(--muted); font-weight: 800; }
.tc-cls-top > span:nth-child(2) { flex: 1; min-width: 0; }
.tc-cic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: #E3F6E8; flex: none; }
.tc-cic.y { background: var(--yellow); }
.tc-badge { background: #FFE3E3; color: #C92A2A; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.tc-cls.closed { opacity: .7; }
.tc-code { display: flex; align-items: center; gap: 8px; background: #F2F6FF; border: 2px dashed #9DB4E8; border-radius: 14px; padding: 6px 8px; }
.tc-code span { flex: 1; font-weight: 900; letter-spacing: .12em; font-size: 19px; color: var(--blue); text-align: start; }
.tc-wa { background: #25D366; color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 900; font-size: 13px; text-decoration: none; white-space: nowrap; }
.tc-cp { border: 2px solid #D5E0F5; background: #fff; border-radius: 999px; width: 36px; height: 36px; cursor: pointer; font-size: 15px; }
.tc-row2 { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.tc-link { border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 900; font-size: 14px; color: var(--blue); cursor: pointer; text-decoration: none; }
.tc-del { color: #C92A2A; align-self: center; }
.tc-kid { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 2px solid #F2F6FF; font-weight: 900; }
.tc-kid:last-child { border-bottom: 0; }
.tc-kid img { width: 36px; height: 36px; border-radius: 50%; background: #FFF6D6; flex: none; }
.tc-kid > span { flex: 1; min-width: 0; } .tc-kid small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; }
.tc-kid em { font-style: normal; font-size: 14px; white-space: nowrap; } .tc-kid em.ok { color: var(--green-d); } .tc-kid em.mid { color: #E8590C; } .tc-kid em.no { color: #8A93AD; }
.tc-ok, .tc-no { border: 0; border-radius: 999px; padding: 7px 12px; font: inherit; font-weight: 900; font-size: 13px; cursor: pointer; white-space: nowrap; }
.tc-ok { background: var(--green); color: #fff; } .tc-no { background: #FFE3E3; color: #C92A2A; }
.tc-waitbox { border-color: #FFC9C9; background: #FFF8F8; }
.tc-ex { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 2px solid #F2F6FF; }
.tc-ex:last-child { border-bottom: 0; }
.tc-ex > a:first-child { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; } .tc-ex b { display: block; } .tc-ex small { color: var(--muted); font-weight: 800; font-size: 12px; }
.tc-old summary { cursor: pointer; font-weight: 900; color: var(--muted); padding: 6px 0; }
.tc-old .tc-card { margin-top: 10px; }
.tc-q .tc-qh { display: flex; justify-content: space-between; align-items: center; }
.tc-qt { resize: vertical; font-size: 16px; }
.tc-opt { display: flex; align-items: center; gap: 8px; }
.tc-opt .field { font-size: 16px; padding: 9px 10px; }
.tc-opt.ok .field { border-color: var(--green); background: #EBFBEE; }
.tc-mark { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 3px solid #B8C6E3; background: #fff; color: #fff; font-weight: 900; cursor: pointer; }
.tc-opt.ok .tc-mark { background: var(--green); border-color: var(--green); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 4px 0 var(--green-d); }
.tc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tc-stats span { background: #fff; border: 2px solid #E6E9F5; border-radius: 18px; padding: 10px 4px; text-align: center; }
.tc-stats b { display: block; font-size: 22px; color: var(--blue); } .tc-stats small { color: var(--muted); font-weight: 800; font-size: 12px; }
.tc-stats.sm { align-self: stretch; }
.tc-hard { border-color: #FFC078; background: #FFF9F2; } .tc-hard p { margin: 0; font-weight: 800; color: var(--ink); }
.tc-bar { display: block; height: 10px; border-radius: 9px; background: #E3EAF8; overflow: hidden; }
.tc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FF922B, #FFD23F); }
.tc-qr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 6px 0; font-weight: 800; font-size: 14px; }
.tc-qr .tc-bar { grid-column: 1 / -1; } .tc-qr small { color: var(--muted); grid-row: 1; grid-column: 2; }
.tc-kids { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-self: stretch; }
.tc-kpick { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 20px; border: 3px solid #D5E0F5; background: #fff; font: inherit; cursor: pointer; min-width: 92px; }
.tc-kpick img { width: 52px; height: 52px; border-radius: 50%; background: #FFF6D6; }
.tc-kpick:disabled { opacity: .6; }
.tc-codein { text-align: center; letter-spacing: .2em; font-weight: 900; font-size: 22px; text-transform: uppercase; }
.tc-wait { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px; color: var(--muted); font-weight: 800; }
.tc-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #D5E0F5; border-top-color: var(--blue); animation: tcSpin .8s linear infinite; }
@keyframes tcSpin { to { transform: rotate(360deg); } }
.tc-adm { grid-template-columns: 1fr auto; align-items: center; } .tc-adm-b { display: flex; flex-direction: column; gap: 4px; }
/* the child's class card on the home page */
.hm-cls { background: linear-gradient(135deg, #15AABF, #0B7285); color: #fff; border-radius: 24px; padding: 14px; box-shadow: 0 5px 0 #0A5A6B; display: flex; flex-direction: column; gap: 6px; }
.hm-cls + .hm-cls { margin-top: 12px; }
.hm-cls > b { font-size: 18px; } .hm-cls > small { opacity: .9; font-weight: 800; margin-top: -4px; }
.hm-cls.wait { background: linear-gradient(135deg, #868E96, #495057); box-shadow: 0 5px 0 #343A40; }
.hm-ex { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .16); border-radius: 16px; padding: 10px 12px; color: #fff; text-decoration: none; font-weight: 900; }
.hm-ex span { flex: 1; min-width: 0; } .hm-ex em { font-style: normal; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 13px; white-space: nowrap; }
.hm-ex.done em { background: rgba(255, 255, 255, .25); color: #fff; }
.hm-cls-no { margin: 0; opacity: .85; font-weight: 700; }
#hmCls:empty { display: none; }
.cx .opt.picked { border-color: var(--blue); background: #E7EEFF; }
.cx-tm { background: #1F1A33; color: var(--yellow); border-radius: 999px; padding: 4px 10px; font-size: 14px; }
.cx-stars { font-size: 32px; }
.cx-rv { gap: 6px; } .cx-rv b { font-size: 15px; } .cx-rv.ok { border-color: #B2F2BB; } .cx-rv.no { border-color: #FFC9C9; }
.cx-rv span { border-radius: 12px; padding: 6px 10px; background: #F2F6FF; font-weight: 800; font-size: 14px; }
.cx-rv span.r { background: #D3F9D8; color: var(--green-d); } .cx-rv span.r::before { content: "✔ "; }
.cx-rv span.w { background: #FFE3E3; color: #C92A2A; text-decoration: line-through; }
@media (orientation: landscape) and (min-width: 700px) {
  .stack.tc { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px 16px; }
  .stack.tc > :is(.back, .tc-seg, h1, .tc-note, .msg, .tc-stats, .tc-hero, .tc-del) { grid-column: 1 / -1; }
  .stack.tc > .btn { align-self: start; }
  .stack.tc.cx { display: flex; }
}
.tc-code span { white-space: nowrap; }
@media (max-width: 360px) { .tc-code span { font-size: 16px; letter-spacing: .06em; } .tc-wa { padding: 6px 9px; font-size: 12px; } }
@media (orientation: landscape) and (min-width: 700px) { .stack.tc > p, .stack.tc > .btn-white { grid-column: 1 / -1; } }
/* teacher corner: steps, dates, child page, and the printable PDF sheet */
.tc-steps { display: flex; gap: 6px; align-self: stretch; }
.tc-steps span { flex: 1; text-align: center; padding: 6px 2px; border-radius: 999px; background: #F2F6FF; color: var(--muted); font-weight: 900; font-size: 12px; }
.tc-steps span.on { background: var(--yellow); color: var(--ink); } .tc-steps span.done { background: #E3F6E8; color: var(--green-d); }
.tc-mail { text-align: center; font-weight: 900; background: #F2F6FF; }
.tc-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tc-av { width: 50px; height: 50px; border-radius: 50%; background: #FFF6D6; flex: none; }
a.tc-kid { color: var(--ink); text-decoration: none; }
.tc-kid em.low { color: #C92A2A; }
.tc-bar.two { position: relative; overflow: visible; } .tc-bar.two i { border-radius: 9px; }
.tc-bar.two u { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-inline-start: -1px; background: #1F1A33; border-radius: 2px; }
.tp-sheet { position: fixed; left: -10000px; top: 0; width: 794px; padding: 36px 38px; background: #fff; color: #1B2340; font-family: TcPlex, Tajawal, sans-serif; font-size: 13px; line-height: 1.6; }
.tp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 3px solid #2456B8; padding-bottom: 12px; margin-bottom: 14px; }
.tp-head b { display: block; font-size: 22px; color: #1B2340; } .tp-head small { display: block; color: #4A5578; font-weight: 700; }
.tp-brand { text-align: end; font-weight: 900; color: #2456B8; }
.tp-sheet h3 { margin: 16px 0 6px; font-size: 16px; color: #2456B8; }
.tp-sheet table { width: 100%; border-collapse: collapse; }
.tp-sheet th { background: #EEF3FF; color: #1B2340; font-weight: 900; padding: 6px 8px; border: 1px solid #D5E0F5; text-align: start; }
.tp-sheet td { padding: 6px 8px; border: 1px solid #E3EAF8; font-weight: 700; }
.tp-sheet tr:nth-child(even) td { background: #FAFBFF; }
.tp-grid th, .tp-grid td { text-align: center; } .tp-grid td:first-child { text-align: start; }
.tp-sheet td.ok { color: #1F6B38; } .tp-sheet td.mid { color: #B35C00; } .tp-sheet td.low { color: #C92A2A; } .tp-sheet td.no { color: #8A93AD; }
.tp-sum td { background: #FFF9DB !important; font-weight: 900; }
.tp-bar { display: inline-block; vertical-align: middle; width: 80px; height: 8px; border-radius: 6px; background: #E3EAF8; overflow: hidden; margin-inline-start: 6px; }
.tp-bar i { display: block; height: 100%; background: #FF922B; }
.tp-sign { display: flex; justify-content: space-between; margin-top: 40px; font-weight: 800; }
.tp-foot { margin-top: 22px; padding-top: 10px; border-top: 1px solid #D5E0F5; color: #8A93AD; font-size: 12px; font-weight: 700; }
.tc-chart { display: block; width: 100%; height: auto; max-width: 100%; }
.tp-sheet .tc-chart { width: auto; }
.tp-two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.tc-lv { display: flex; height: 26px; border-radius: 9px; overflow: hidden; margin: 6px 0 8px; background: #E3EAF8; }
.tc-lv span { display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 13px; min-width: 0; }
.tc-lv .ok, .tc-lvk i.ok { background: #2E9E4F; } .tc-lv .mid, .tc-lvk i.mid { background: #FF922B; } .tc-lv .low, .tc-lvk i.low { background: #E03131; }
.tc-lvk { display: flex; flex-direction: column; gap: 4px; font-weight: 800; font-size: 13px; color: #4A5578; }
.tc-lvk i, .tp-key i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-inline-end: 6px; }
.tp-key { display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 800; font-size: 12px; color: #4A5578; margin: 4px 0 6px; }
.tp-key i.k { background: #2456B8; } .tp-key i.a { background: repeating-linear-gradient(90deg, #9DB4E8 0 5px, transparent 5px 8px); height: 4px; vertical-align: 3px; } .tp-key i.g { background: #EBFBEE; border: 1px solid #B2F2BB; } .tp-key i.r { background: #FFF5F5; border: 1px solid #FFC9C9; }
.tp-sheet, .tp-sheet * { font-weight: 400; } .tp-head b, .tp-sheet h3, .tp-sheet th, .tp-sheet td b, .tp-brand, .tp-sign { font-weight: 700 !important; } .tp-head small, .tp-foot, .tp-key, .tc-lvk { font-weight: 400 !important; }
/* teacher corner, round 2: plan, question types, pictures, AI, bank, QR, awards, the child's new questions */
.tc-plan b { font-size: 16px; } .tc-plan-n { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.tc-plan-n span { background: #F2F6FF; border-radius: 12px; padding: 6px 8px; font-weight: 900; } .tc-plan-n small { color: var(--muted); font-weight: 700; font-size: 12px; }
.tc-types { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tc-types button { flex: none; border: 2px solid #E3EAF8; background: #fff; border-radius: 999px; padding: 5px 10px; font: inherit; font-weight: 900; font-size: 12px; cursor: pointer; color: var(--muted); }
.tc-types button.on { background: #EEF3FF; border-color: var(--blue); color: var(--blue); }
.tc-tf { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tc-tf button { border: 3px solid #D5E0F5; background: #fff; border-radius: 16px; padding: 12px; font: inherit; font-weight: 900; font-size: 16px; cursor: pointer; }
.tc-tf button.on { border-color: var(--green); background: #EBFBEE; color: var(--green-d); }
.tc-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.tc-pair { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 6px; align-items: center; }
.tc-pair .field { font-size: 15px; padding: 9px 8px; min-width: 0; } .tc-pair > span { color: var(--blue); font-weight: 900; }
.tc-qimg { position: relative; } .tc-qimg img, .cx-img { display: block; max-width: 100%; max-height: 220px; border-radius: 14px; margin: 0 auto; border: 2px solid #E3EAF8; }
.tc-qimg .tc-no { margin-top: 6px; }
.tc-imgbtn { align-self: flex-start; cursor: pointer; }
.tc-ai { background: linear-gradient(135deg, #F3F0FF, #fff); border-color: #D0BFFF; }
.tc-big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tc-big3 > * { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 18px; border: 2px solid #E3EAF8; background: #fff; font: inherit; font-weight: 900; font-size: 13px; cursor: pointer; color: var(--ink); text-align: center; }
.tc-big3 > * span { font-size: 28px; } .tc-big3 > .on { border-color: #7048E8; background: #F3F0FF; }
.tc-aiimg { max-width: 100%; max-height: 200px; border-radius: 12px; align-self: center; }
.tc-bank { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; }
.tc-bq { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border-radius: 12px; background: #fff; border: 2px solid #E3EAF8; font-weight: 800; font-size: 14px; }
.tc-bq input { margin-top: 4px; width: 18px; height: 18px; } .tc-bq small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; }
.tc-sw { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 14px; } .tc-sw input { width: 20px; height: 20px; }
.tc-awi { font-size: 28px; width: 36px; text-align: center; }
.tc-awic button { font-size: 22px; padding: 4px 10px; }
.tc-qrbox { width: 220px; margin: 0 auto; } .tc-qrbox svg { width: 100%; height: auto; display: block; }
.tc-qrc { margin: 6px 0 0 !important; font-weight: 900; letter-spacing: .15em; font-size: 22px; color: var(--blue) !important; }
.tc-plans { margin-top: 6px; } .tc-plans button { font-size: 11px; padding: 4px 8px; }
.hm-new { font-style: normal; background: #FF5E7E; color: #fff; border-radius: 999px; padding: 0 8px; font-size: 11px; margin-inline-start: 4px; }
.hm-ex small { display: block; font-size: 12px; opacity: .9; }
.hm-note { margin: 2px 0; background: rgba(255, 255, 255, .18); border-radius: 12px; padding: 8px 10px; font-weight: 800; font-size: 14px; line-height: 1.5; }
.hm-aw { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; } .hm-aw span { background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-weight: 900; font-size: 12px; }
.cx-ep { display: flex; gap: 10px; align-items: center; align-self: stretch; background: #F2F6FF; border-radius: 16px; padding: 8px; text-decoration: none; color: var(--ink); text-align: start; }
.cx-ep img { width: 84px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; } .cx-ep small { display: block; color: var(--blue); font-weight: 900; } .cx-ep b { font-size: 14px; }
.cx-fill { text-align: center; font-size: 20px; font-weight: 900; }
.cx-ord { display: flex; flex-direction: column; gap: 6px; min-height: 10px; }
.cx-oin { background: #E7EEFF; border: 2px solid var(--blue); border-radius: 14px; padding: 10px 12px; font-weight: 900; }
.cx-match { display: grid; gap: 8px; }
.cx-ml { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 3px solid #D5E0F5; background: #fff; border-radius: 16px; padding: 10px 12px; font: inherit; cursor: pointer; text-align: start; }
.cx-ml.on { border-color: var(--yellow); background: #FFF9DB; } .cx-ml.got small { color: var(--blue); font-weight: 900; } .cx-ml b { font-size: 16px; }
.cx-mr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .cx .opt.used { opacity: .45; }
.tp-qr { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 30px 0; }
.tp-qr b { font-size: 30px; } .tp-qr > span { font-size: 18px; color: #4A5578; } .tp-qr svg { width: 360px; height: 360px; } .tp-qr em { font-style: normal; font-size: 40px; letter-spacing: .2em; font-weight: 700; color: #2456B8; }
.tp-qr ol { text-align: start; font-size: 17px; line-height: 2; } .tp-qr small { color: #8A93AD; font-size: 14px; }
.tp-cert { border: 10px double #D9A320; padding: 14px; } .tp-cert-in { border: 2px solid #E8C468; padding: 40px 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.tp-cert-ic { font-size: 70px; } .tp-cert b { font-size: 38px; color: #8A5A10; } .tp-cert span { font-size: 17px; color: #4A5578; } .tp-cert strong { font-size: 34px; color: #1B3F8A; border-bottom: 2px solid #D9A320; padding: 0 30px 4px; }
.tp-cert em { font-style: normal; font-size: 24px; color: #2E7D32; } .tp-cert .tp-sign { align-self: stretch; } .tp-cert small { color: #8A93AD; margin-top: 10px; }
.tc-plan-g { grid-column: 1 / -1; background: #FFF4E6 !important; }
.tc-gift { border-color: #FFD8A8; background: linear-gradient(135deg, #FFF9DB, #fff); }
.tc-gk { cursor: pointer; } .tc-gk input { width: 20px; height: 20px; flex: none; accent-color: #E8590C; } .tc-gk.done { opacity: .7; }
.hm-gift { display: flex; flex-direction: column; gap: 2px; background: var(--yellow); color: var(--ink); border-radius: 14px; padding: 8px 12px; font-weight: 800; font-size: 14px; text-decoration: none; box-shadow: 0 3px 0 var(--yellow-d); }
.hm-gift b { font-size: 13px; color: #9C4A00; }
.tc-why textarea { font-size: 14px; }
.cx-why { margin: 2px 0 0; background: #FFF9DB; border-radius: 12px; padding: 8px 10px; font-weight: 800; font-size: 14px; line-height: 1.6; color: #6B4A00; }
.tc-big3 { grid-template-columns: repeat(3, 1fr); } .tc-big3 > :nth-child(n+4) { grid-column: span 1; }
@media (min-width: 0) { .tc-big3 { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); } }
button.tc-lib { text-align: start; font: inherit; cursor: pointer; } .tc-lib span { font-weight: 900; }
.tc-libr summary { cursor: pointer; list-style: none; } .tc-libr[open] { background: #fff; border: 2px solid #E3EAF8; }
.tc-libq { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: start; margin-top: 8px; } .tc-libq textarea { font-size: 14px; padding: 6px 8px; } .tc-libq small { color: var(--green-d); font-weight: 800; }
.tc-libn { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 900; margin-top: 6px; }
.tc-libh { margin: 14px 0 4px; font-size: 15px; }
.tp-paper { font-size: 15px; } .tp-name { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 18px; font-weight: 700; }
.tq { border: 1px solid #E3EAF8; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; } .tq > b { display: block; font-size: 16px; margin-bottom: 8px; }
.tq img { display: block; max-height: 180px; max-width: 60%; margin: 0 auto 8px; border-radius: 8px; }
.tq-o { display: flex; flex-wrap: wrap; gap: 8px 26px; } .tq-o.col { flex-direction: column; gap: 8px; }
.tq-o i { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid #4A5578; border-radius: 50%; font-style: normal; font-size: 12px; margin-inline-end: 4px; }
.tq-line { border-bottom: 1.5px dashed #4A5578; height: 26px; width: 60%; }
.tq-box { display: inline-block; width: 22px; height: 22px; border: 1.5px solid #4A5578; border-radius: 4px; vertical-align: middle; margin-inline-end: 6px; }
.tq-h { margin: 0 0 6px; color: #8A93AD; font-size: 13px; }
.tq-m { display: flex; justify-content: space-between; gap: 60px; } .tq-m div { display: flex; flex-direction: column; gap: 10px; } .tq-m div:last-child { text-align: end; }
.tp-sheet small { font-weight: 400; color: #4A5578; }
/* the paper exam — a real school exam sheet */
/* the paper's faces are declared here too: html2canvas lays the sheet out again in a copy of the page, which only sees fonts declared in CSS (they download only when the paper is drawn) */
@font-face { font-family: XpHead; src: url("/assets/fonts/xp-alex-600.woff2") format("woff2"); font-weight: 600; font-display: block; }
@font-face { font-family: XpHead; src: url("/assets/fonts/xp-alex-800.woff2") format("woff2"); font-weight: 800; font-display: block; }
@font-face { font-family: XpBody; src: url("/assets/fonts/xp-readex-400.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: XpBody; src: url("/assets/fonts/xp-readex-500.woff2") format("woff2"); font-weight: 500; font-display: block; }
@font-face { font-family: XpBody; src: url("/assets/fonts/xp-readex-700.woff2") format("woff2"); font-weight: 700; font-display: block; }
/* ---------- paper exam (PDF): ink #0E1A33, one blue accent, one warm accent for the marks; XpHead = Alexandria, XpBody = Readex Pro */
.tp-sheet:has(.xp) { padding: 30px 34px 34px; }
.xp { --ink: #0E1A33; --ac: #1D4ED8; --ac2: #E8590C; --mute: #5B6683; --line: #D6DCE8; --tint: #F2F5FC; color: var(--ink); font-family: XpBody, TcPlex, sans-serif; font-size: 15px; line-height: 1.75; }
.xp h1, .xp-shn, .xp-band, .xp-seal, .xp-badge, .xp-end b, .xp-kick, .xp-meta dd { font-family: XpHead, XpBody, TcPlex, sans-serif; }
.xp-top { border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; }
.xp-band { display: flex; justify-content: space-between; align-items: center; padding: 7px 18px; background: var(--ink); color: #fff; font-size: 13px; }
.xp-band b { font-weight: 800; font-size: 15px; } .xp-band span { font-family: XpBody, TcPlex, sans-serif; font-weight: 500; opacity: .85; }
.xp-mast { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 14px 18px 14px; background: linear-gradient(180deg, #FFFFFF, var(--tint)); }
.xp-seal { width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--ac); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5.5px var(--ac); display: grid; place-content: center; text-align: center; color: var(--ac); }
.xp-seal svg { display: block; margin: 0 auto; } .xp-seal small { font-size: 10.5px; font-weight: 600; margin-top: 3px; }
.xp-ttl { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.xp-kick { display: inline-block; padding: 1px 10px; border-radius: 20px; background: #E6EDFD; color: var(--ac); font-size: 11.5px; font-weight: 600; }
.xp h1 { margin: 0; font-size: 30px; line-height: 1.25; font-weight: 800; color: var(--ink); } .xp h1.long { font-size: 23px; }
.xp-sub { color: var(--mute); font-size: 13.5px; font-weight: 500; } .xp-sub i { font-style: normal; margin: 0 8px; color: var(--ac2); }
.xp-meta { display: grid; grid-template-columns: repeat(2, auto); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.xp-meta > div { padding: 5px 14px; min-width: 92px; border-inline-start: 1px solid var(--line); border-top: 1px solid var(--line); }
.xp-meta > div:nth-child(odd) { border-inline-start: 0; } .xp-meta > div:nth-child(-n+2) { border-top: 0; }
.xp-meta dt { font-size: 10.5px; color: var(--mute); font-weight: 500; line-height: 1.4; } .xp-meta dd { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.xp-pupil { display: flex; align-items: center; gap: 18px; margin: 12px 0 0; padding: 8px 10px 8px 18px; border: 1.5px solid var(--ink); border-radius: 14px; } .xp-pupil label { padding-bottom: 4px; }
.xp-pupil label { display: flex; align-items: flex-end; gap: 8px; font-size: 13px; font-weight: 500; color: var(--mute); white-space: nowrap; } .xp-pupil label.w { flex: 1; }
.xp-pupil label i { display: inline-block; flex: 1; min-width: 86px; border-bottom: 1.5px dotted var(--ink); height: 22px; font-style: normal; color: var(--ink); font-weight: 700; font-size: 14px; line-height: 22px; }
.xp-score { flex: none; width: 62px; height: 62px; margin-inline-start: 4px; border-radius: 50%; border: 2px solid var(--ac2); display: grid; grid-template-rows: 1fr auto; justify-items: center; padding: 7px 0 8px; }
.xp-score span { width: 40px; border-bottom: 1.5px solid var(--ac2); } .xp-score small { font-size: 12px; font-weight: 700; color: var(--ac2); line-height: 1; padding-top: 5px; }
.xp-rules { display: flex; gap: 20px; margin: 12px 0 4px; padding: 7px 14px; list-style: none; border-radius: 10px; background: var(--tint); font-size: 12.5px; color: var(--mute); font-weight: 500; }
.xp-rules li::before { content: "◆"; color: var(--ac); font-size: 8px; margin-inline-end: 6px; vertical-align: 2px; }
.xp-sec { margin-top: 18px; }
.xp-sh { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.xp-badge { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 800; }
.xp-sht { flex: 1; display: block; line-height: 1.35; } .xp-shn { font-size: 18px; font-weight: 800; color: var(--ink); } .xp-ins { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: #34405E; }
.xp-mk { flex: none; font-family: XpBody, TcPlex, sans-serif; font-size: 12.5px; font-weight: 700; color: var(--ac2); border: 1.5px solid var(--ac2); border-radius: 20px; padding: 1px 12px; }
.xp-q { display: flex; gap: 10px; align-items: flex-start; padding: 9px 2px; border-bottom: 1px solid #EDF0F6; } .xp-q:last-child { border-bottom: 0; }
.xp-n { flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 7px; background: var(--tint); border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ac); }
.xp-t { flex: 1; min-width: 0; font-size: 15.5px; line-height: 1.85; }
.xp-tf .xp-par { flex: none; display: flex; align-items: center; font-size: 17px; font-weight: 700; color: var(--ink); } .xp-par i { display: inline-block; width: 34px; }
.xp-dots { display: inline-block; min-width: 150px; border-bottom: 1.5px dotted var(--ink); height: 1.1em; vertical-align: -3px; margin: 0 4px; }
.xp-mc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 14px; margin-top: 6px; } .xp-mc.wide { grid-template-columns: repeat(2, 1fr); }
.xp-mc span { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.xp-mc b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 1.4px solid var(--ink); border-radius: 50%; font-size: 12.5px; font-weight: 700; line-height: 1; }
.xp-ord { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; margin-top: 6px; } .xp-ord span { display: flex; align-items: center; gap: 10px; }
.xp-ord i { flex: none; width: 28px; height: 24px; border: 1.4px solid var(--ink); border-radius: 6px; }
.xp-t > .xp-fig { display: flex; width: fit-content; margin: 10px auto 4px; }
.xp-fig { flex-direction: column; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 6px; background: #fff; }
.xp-fig img { max-height: 160px; max-width: 280px; display: block; } .xp-fig figcaption { font-size: 12px; font-weight: 700; color: var(--mute); }
.xp-mt { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 8px; border: 1.2px solid #AEB7CC; border-radius: 10px; overflow: hidden; }
.xp-mt th { background: var(--tint); font-size: 13px; font-weight: 700; color: #34405E; padding: 6px 10px; text-align: start; border-bottom: 1.2px solid #AEB7CC; }
.xp-mt td { padding: 7px 10px; font-size: 15px; border-top: 1px solid #E3E8F2; } .xp-mt tr:nth-child(2) td { border-top: 0; }
.xp-mt th + th, .xp-mt td + td { border-inline-start: 1px solid #E3E8F2; }
.xp-mt td b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-inline-end: 8px; border-radius: 6px; background: var(--tint); font-size: 12.5px; color: var(--ac); }
.xp-mt .xp-ans { width: 78px; text-align: center; } .xp-mt .xp-ans i { display: inline-block; width: 34px; height: 22px; border: 1.4px solid var(--ink); border-radius: 6px; vertical-align: middle; }
.xp-end { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 22px; }
.xp-end b { display: flex; align-items: center; gap: 14px; width: 100%; font-size: 16px; font-weight: 800; } .xp-end b::before, .xp-end b::after { content: ""; flex: 1; height: 0; border-top: 1.5px solid var(--ink); }
.xp-end small { font-size: 13px; color: var(--mute); font-weight: 500; }
.xp-key { width: 100%; margin-top: 16px; border-collapse: separate !important; border-spacing: 0; border: 1.2px solid #AEB7CC; border-radius: 12px; overflow: hidden; }
.xp-key th { background: var(--ink) !important; color: #fff !important; border: 0 !important; padding: 7px 10px !important; font-size: 13px; font-family: XpHead, TcPlex, sans-serif; font-weight: 600 !important; }
.xp-key td { vertical-align: top; border: 0 !important; border-top: 1px solid #E3E8F2 !important; padding: 7px 10px !important; font-size: 14px; font-weight: 400 !important; background: #fff !important; }
.xp-key td:first-child { width: 26px; color: var(--ac); font-weight: 700 !important; } .xp-key td:last-child { width: 40%; }
.xp-key td b { font-weight: 700; } .xp-kg td { background: var(--tint) !important; color: var(--ink); font-size: 13.5px; } .xp-kg td b { font-family: XpHead, TcPlex, sans-serif; font-weight: 800; } .xp-kg em { float: inline-end; font-style: normal; color: var(--ac2); font-weight: 700; font-size: 12.5px; }
.xp-kl { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-inline-end: 6px; border-radius: 50%; border: 1.3px solid var(--ink); font-size: 12px; }
.xp-kc { display: inline-block; margin: 2px 0 2px 6px; padding: 0 8px; border-radius: 6px; background: var(--tint); white-space: nowrap; }
.xp-why { display: block; margin-top: 3px; font-size: 12.5px; color: var(--mute); font-weight: 400; } .xp-why::before { content: "💡 "; }
.xp-dash { color: var(--mute); }
/* «من المنهج الدراسي» picker in the exam editor */
.tc-cur { max-height: none; overflow: visible; gap: 8px; padding: 12px; border: 1.5px solid #D5E0F5; border-radius: 16px; background: #F7FAFF; }
.tc-cur > b { font-size: 16px; } .tc-cur > small { margin-top: -6px; }
.tc-cur .tc-step { flex-direction: row; align-items: center; justify-content: flex-start; align-self: stretch; gap: 8px; margin-top: 6px; color: var(--ink); font-size: 14px; } .tc-cur > b, .tc-cur > small, .tc-cur > p { align-self: stretch; text-align: start; } .tc-cur .tc-chips { align-self: stretch; } .tc-step i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2456B8; color: #fff; font-style: normal; font-size: 12px; font-weight: 900; }
.tc-cur .tc-chips button small { opacity: .7; font-weight: 700; margin-inline-start: 4px; } .tc-cur .tc-chips button:disabled { opacity: .4; }
.tc-curl { display: flex; flex-direction: column; gap: 6px; } .tc-curl > small { color: #4A5578; font-weight: 800; margin-top: 4px; } .tc-curl > small:empty { display: none; }
.tc-curl button { text-align: start; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #D5E0F5; background: #fff; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer; }
.tc-curl button.on { border-color: #2456B8; background: #EEF3FF; } .tc-curl button small { color: #4A5578; font-weight: 700; margin-inline-start: 6px; }
/* teacher plans and prices (approved Nov 2026) */
.tc-prices { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.tc-pr { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 2px solid #D5E0F5; border-radius: 16px; background: #fff; text-align: start; }
.tc-pr.on { border-color: #2456B8; background: #F4F7FF; }
.tc-pr-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .tc-pr-h b { font-size: 16px; }
.tc-pr-h em { font-style: normal; font-size: 12px; font-weight: 900; color: #2456B8; background: #E6EDFD; border-radius: 999px; padding: 2px 10px; }
.tc-pr > small { color: #4A5578; font-weight: 700; line-height: 1.6; }
.tc-pr-p { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.tc-pr-b { position: relative; display: flex; flex-direction: column; align-items: center; padding: 12px 4px 8px; border-radius: 12px; border: 1.5px solid #D5E0F5; background: #F7FAFF; color: var(--ink); text-decoration: none; text-align: center; }
.tc-pr-b b { font-size: 17px; font-weight: 900; line-height: 1.2; } .tc-pr-b b small { font-size: 11px; } .tc-pr-b span { font-size: 12px; font-weight: 700; color: #4A5578; }
.tc-pr-b i { position: absolute; top: -9px; inset-inline-end: 6px; font-style: normal; font-size: 10.5px; font-weight: 900; color: #fff; background: #2E9E4F; border-radius: 999px; padding: 1px 7px; }
.tc-pr-b:active { transform: scale(.97); }
@media (max-width: 340px) { .tc-pr-b b { font-size: 15px; } .tc-pr-b span { font-size: 11px; } }
/* ---------- teacher corner UX pass (Nov 2026): start checklist, compact plan, labelled tools, a save bar that stays in view */
.tc-start ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tc-start li { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--muted); }
.tc-start li i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); font-style: normal; font-size: 13px; font-weight: 900; background: #fff; }
.tc-start li.ok { color: #2E9E4F; } .tc-start li.ok i { background: #2E9E4F; border-color: #2E9E4F; color: #fff; } .tc-start li.ok span { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.tc-start li.now { color: var(--ink); } .tc-start li.now i { border-color: var(--blue); color: var(--blue); }
.tc-start li a { color: var(--blue); text-decoration: none; }
.tc-plan-s { padding: 10px 14px; }
.tc-plan-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; border: 0; background: none; padding: 2px 0; font: inherit; color: var(--ink); cursor: pointer; text-align: start; }
.tc-plan-row b { flex: 1 1 auto; font-weight: 900; } .tc-plan-row span { font-weight: 800; font-size: 13px; color: var(--muted); } .tc-plan-row i { font-style: normal; font-size: 12px; color: var(--blue); }
.tc-hi a { color: var(--blue); font-weight: 900; text-decoration: none; }
.tc-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 8px; }
.tc-tools > * { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 16px; border: 2px solid var(--line); background: #F7FAFF; font: inherit; font-size: 13px; font-weight: 900; color: var(--ink); text-decoration: none; cursor: pointer; text-align: center; }
.tc-tools > * span { font-size: 22px; line-height: 1; } .tc-tools > *:active { transform: translateY(2px); }
.tc-ex .tc-link, .tc-kid .tc-link { font-size: 13px; white-space: nowrap; }
.tc-kid .tc-no { white-space: nowrap; }
.tc-set summary, .tc-setx summary, .tc-joinmore summary { cursor: pointer; font-weight: 900; list-style: none; }
.tc-set summary::-webkit-details-marker, .tc-setx summary::-webkit-details-marker, .tc-joinmore summary::-webkit-details-marker { display: none; }
.tc-set summary::after, .tc-setx summary::after, .tc-joinmore summary::after { content: "▼"; float: inline-end; font-size: 12px; color: var(--blue); }
.tc-set[open] summary::after, .tc-setx[open] summary::after, .tc-joinmore[open] summary::after { content: "▲"; }
.tc-set[open], .tc-setx[open], .tc-joinmore[open] { gap: 10px; }
.tc-set { background: #FAFBFF; }
.tc-setx summary small { display: block; margin-top: 4px; font-weight: 700; color: var(--muted); font-size: 13px; }
.tc-joinmore form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.tc-savebar { position: sticky; bottom: calc(var(--tabs-h, 72px) + 8px + env(safe-area-inset-bottom)); z-index: 4; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 20px; background: rgba(255, 255, 255, .94); border: 2px solid var(--line); box-shadow: 0 6px 18px rgba(27, 35, 64, .14); backdrop-filter: blur(6px); }
.tc-savebar > span { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 48px; font-size: 11px; font-weight: 800; color: var(--muted); line-height: 1.1; } .tc-savebar > span b { font-size: 18px; color: var(--ink); }
.tc-savebar .btn { flex: 1; margin: 0; min-height: 46px; padding: 8px 10px; } .tc-savebar .btn-white { flex: 0 1 auto; }
@media (orientation: landscape) and (max-height: 520px) { .tc-savebar { bottom: calc(62px + env(safe-area-inset-bottom)); } }
.tc-kid-act { flex-wrap: wrap; row-gap: 2px; } .tc-kid-act > span { flex: 1 1 150px; min-width: 0; }
.stack.tc > .tc-savebar { grid-column: 1 / -1; }
/* ---------- teacher corner design pass (Nov 2026): the app's line icons in coloured squares, page bands like the app header, a colour per class */
.tc-ti { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; box-shadow: 0 3px 0 rgba(31, 26, 51, .14), inset 0 1px 0 rgba(255, 255, 255, .35); }
.tc-ti .pi { width: 60%; height: 60%; }
.t-blue { background: linear-gradient(145deg, #4DABF7, #1971C2); } .t-violet { background: linear-gradient(145deg, #9775FA, #6741D9); }
.t-green { background: linear-gradient(145deg, #51CF66, #2B8A3E); } .t-orange { background: linear-gradient(145deg, #FFA94D, #F76707); }
.t-pink { background: linear-gradient(145deg, #F783AC, #D6336C); } .t-teal { background: linear-gradient(145deg, #38D9A9, #0C8599); }
.t-yellow { background: linear-gradient(145deg, #FFE066, #FAB005); color: #7A4E00; } .t-gray { background: linear-gradient(145deg, #CED4DA, #868E96); }
.t-glass { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.tc-h { display: flex; align-items: center; gap: 10px; font-size: 16px; } .tc-h .tc-ti { width: 32px; height: 32px; border-radius: 10px; }
/* the band at the top of a page */
.tc-band { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #2F6BE0 0%, #4B4FD9 55%, #6A3FD4 100%); box-shadow: 0 5px 0 #23409A; }
.tc-band::after { content: ""; position: absolute; inset-inline-end: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.tc-band::before { content: ""; position: absolute; inset-inline-start: 18px; bottom: -34px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255, 212, 59, .22); pointer-events: none; }
.tc-band-cls { background: linear-gradient(135deg, #12B886 0%, #0CA678 45%, #1C7ED6 100%); box-shadow: 0 5px 0 #0B7285; }
.tc-band-rep { background: linear-gradient(135deg, #7048E8 0%, #5F3DC4 50%, #3B5BDB 100%); box-shadow: 0 5px 0 #3B2A8F; }
.tc-band-kid { background: linear-gradient(135deg, #F76707 0%, #E8590C 40%, #D6336C 100%); box-shadow: 0 5px 0 #A61E4D; }
.tc-band-t { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.tc-band-t small { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; opacity: .95; } .tc-band-t small .tc-ti { width: 28px; height: 28px; border-radius: 9px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.tc-band-t h1 { margin: 4px 0 0; font-size: 24px; line-height: 1.25; display: flex; align-items: center; gap: 10px; }
.tc-band-t h1 .tc-av { width: 44px; height: 44px; border: 3px solid rgba(255, 255, 255, .7); }
.tc-band-t > span { font-weight: 700; font-size: 13px; opacity: .9; }
.tc-band-n { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tc-band-n > span { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 8px 4px; border-radius: 16px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); font-weight: 800; font-size: 12px; text-align: center; }
.tc-band-n b { display: block; font-size: 22px; line-height: 1.2; color: #fff; } .tc-band-n small { color: rgba(255, 255, 255, .92); font-weight: 800; font-size: 12px; }
.tc-band-a { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: #FFD43B; color: #5C3D00; font-weight: 900; text-decoration: none; box-shadow: 0 3px 0 #E8A700; }
.tc-band-a .tc-ti { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .5); color: #7A4E00; box-shadow: none; } .tc-band-a i { margin-inline-start: auto; font-style: normal; font-size: 20px; }
/* a colour per class card */
.tc-cls { position: relative; overflow: hidden; }
.tc-cls::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 6px; background: var(--tone, #4DABF7); }
.tc-cls.tone-blue { --tone: #339AF0; } .tc-cls.tone-violet { --tone: #845EF7; } .tc-cls.tone-green { --tone: #40C057; } .tc-cls.tone-orange { --tone: #FD7E14; } .tc-cls.tone-pink { --tone: #F06595; } .tc-cls.tone-teal { --tone: #20C997; }
.tc-cls.closed::before { background: #CED4DA; }
.tc-cls-top > .tc-ti { width: 48px; height: 48px; border-radius: 15px; }
/* exams: an icon for the status */
.tc-ex > a:nth-child(2) { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.tc-ex > .tc-ti { width: 36px; height: 36px; }
/* tools: icon squares */
.tc-tools > * .tc-ti { width: 38px; height: 38px; border-radius: 12px; }
.tc-tools > * { background: #fff; box-shadow: 0 3px 0 #E3EAF8; }
/* the big call to action with an icon */
.tc-cta { display: flex; align-items: center; justify-content: center; gap: 10px; } .tc-cta .tc-ti { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .45); color: #5C3D00; box-shadow: none; }
/* editor: source tiles with icons */
.tc-big3 > * .tc-ti { width: 40px; height: 40px; border-radius: 13px; margin-bottom: 2px; }
/* start list: a thin progress line */
.tc-start { background: linear-gradient(180deg, #FFF9DB, #fff 60%); border-color: #FFE8A3; box-shadow: 0 4px 0 #F5DE9A; }
/* the child's exam: the intro card becomes a band too */
.cx .tc-hero:not(.cx-done) { color: #fff; border: 0; background: linear-gradient(135deg, #2F6BE0 0%, #4B4FD9 55%, #6A3FD4 100%); box-shadow: 0 5px 0 #23409A; }
.cx .tc-hero:not(.cx-done) p { color: rgba(255, 255, 255, .92); }
.cx .tc-hero:not(.cx-done) .tc-stats span { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .25); } .cx .tc-hero:not(.cx-done) .tc-stats b, .cx .tc-hero:not(.cx-done) .tc-stats small { color: #fff; }
.cx .tc-hero:not(.cx-done) .tc-big { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); }
.cx .tc-hero:not(.cx-done) .btn-white { background: rgba(255, 255, 255, .95); }
.cx-done { background: linear-gradient(180deg, #FFF9DB, #fff 55%); border-color: #FFE8A3; }
.tc-link .pi, .tc-no .pi, .tc-ok .pi { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-inline-end: 4px; }
.tc-band::before { inset-inline-start: auto; inset-inline-end: 28%; top: -46px; bottom: auto; width: 84px; height: 84px; }
.cx .tc-hero:not(.cx-done) .tc-big .pi { width: 58%; height: 58%; color: #fff; }
h1.tc-h { display: flex; align-items: center; gap: 10px; }
.tc-set summary.tc-h { display: flex; } .tc-set summary.tc-h::after { margin-inline-start: auto; }
.tc-ex { flex-wrap: wrap; row-gap: 4px; } .tc-ex > a:nth-child(2) { flex: 1 1 170px; }
/* ---------- compact, symmetric pages (proposal on the class page): a short band, one action block, equal columns in landscape */
.tc-band-s { padding: 10px 12px; gap: 8px; border-radius: 20px; box-shadow: 0 4px 0 #0B7285; }
.tc-band-s .tc-band-t { flex-direction: row; align-items: center; gap: 10px; }
.tc-band-s .tc-band-t > .tc-ti { width: 38px; height: 38px; border-radius: 12px; }
.tc-band-s .tc-band-t h1 { margin: 0; font-size: 19px; line-height: 1.2; }
.tc-band-s .tc-band-t small { font-size: 12px; font-weight: 800; opacity: .92; }
.tc-band-s .tc-band-n { gap: 6px; }
.tc-band-s .tc-band-n > span { flex-direction: row; justify-content: center; gap: 5px; padding: 5px 4px; border-radius: 12px; font-size: 12px; }
.tc-band-s .tc-band-n b { font-size: 16px; }
.tc-band-s::after { width: 120px; height: 120px; top: -60px; } .tc-band-s::before { display: none; }
.tc-dense { gap: 10px; }
.tc-dense .tc-card { padding: 12px; gap: 6px; border-radius: 20px; }
.tc-dense .tc-h { font-size: 15px; } .tc-dense .tc-h .tc-ti { width: 28px; height: 28px; border-radius: 9px; }
.tc-act { gap: 8px; }
.tc-tools4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tc-tools4 > * { padding: 8px 4px; font-size: 12px; border-radius: 14px; }
.tc-tools4 > * .tc-ti { width: 34px; height: 34px; border-radius: 11px; }
.tc-tools4 > .tc-t-main { background: linear-gradient(180deg, #FFE066, #FCC419); border-color: #F5B700; box-shadow: 0 3px 0 #E8A700; color: #4A3200; }
.tc-tools4 > .tc-t-main .tc-ti { background: rgba(255, 255, 255, .55); color: #7A4E00; box-shadow: none; }
@media (orientation: landscape) and (min-width: 700px) {
  .stack.tc.tc-clsp { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 10px 12px; }
  .stack.tc.tc-clsp > :is(.back, .tc-band, .tc-act, .tc-waitbox, .tc-set, .tc-pw, .msg) { grid-column: 1 / -1; }
  .stack.tc.tc-clsp > .back { justify-self: start; }
  .tc-clsp .tc-band-s { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; }
  .tc-clsp .tc-act { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 10px; }
  .tc-clsp .tc-act > .tc-mute { grid-column: 1 / -1; }
}
/* the actions of an exam or a child always sit together on their own line, under the name */
/* small icon buttons for the actions of an exam, a child, a medal and the class message: the same size, a colour per kind of action */
.tc-ib { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .08s; }
.tc-ib .pi { width: 20px; height: 20px; }
.tc-ib:active { transform: scale(.92); }
.i-blue { background: #E7F1FF; border-color: #C5DCFB; color: #1971C2; } .i-violet { background: #F0EBFF; border-color: #D9CEFF; color: #6741D9; }
.i-green { background: #E6F8EA; border-color: #BFEACB; color: #2B8A3E; } .i-yellow { background: #FFF6D6; border-color: #FBE3A1; color: #B07D00; }
.i-orange { background: #FFF0E3; border-color: #FFD2AE; color: #E8590C; } .i-red { background: #FFECEC; border-color: #FFC9C9; color: #E03131; }
.tc-ex, .tc-kid-act { flex-wrap: nowrap; gap: 6px; }
.tc-ex > a:nth-child(2), .tc-kid-act > span { flex: 1 1 0; min-width: 0; }
.tc-ex > a:nth-child(2) + .tc-ib, .tc-kid-act > span + .tc-ib, .tc-kid > span + .tc-ib { margin-inline-start: 4px; }
#tcNotice .tc-row2 { align-items: center; justify-content: space-between; }
@media (max-width: 360px) { .tc-ib { width: 34px; height: 34px; border-radius: 11px; } .tc-ib .pi { width: 18px; height: 18px; } }
/* ---------- 1) compact bands everywhere, 2) equal columns in landscape on every teacher page */
.tc-band-s.tc-band-rep { box-shadow: 0 4px 0 #3B2A8F; } .tc-band-s.tc-band-kid { box-shadow: 0 4px 0 #A61E4D; } .tc-band-s:not(.tc-band-cls):not(.tc-band-rep):not(.tc-band-kid) { box-shadow: 0 4px 0 #23409A; }
.tc-band-s .tc-band-t > .tc-av { flex: none; width: 40px; height: 40px; border: 2.5px solid rgba(255, 255, 255, .7); }
.tc-band-s .tc-band-t > div { min-width: 0; } .tc-band-s .tc-band-t h1 { overflow: hidden; text-overflow: ellipsis; }
.tc-dense .tc-band-a { padding: 6px 10px; border-radius: 14px; font-size: 14px; }
.tc-ib.sm { width: 32px; height: 32px; border-radius: 10px; } .tc-ib.sm .pi { width: 16px; height: 16px; }
.tc-dense .tc-qh { display: flex; align-items: center; justify-content: space-between; }
.tc-dense .tc-qimg { display: flex; align-items: flex-start; gap: 8px; }
@media (orientation: landscape) and (min-width: 700px) {
  .stack.tc.tc-dense { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 10px 12px; }
  .stack.tc.tc-dense > :is(.back, .tc-band, .tc-tools, .tc-act, .tc-waitbox, .tc-set, .tc-setx, .tc-pw, .tc-plan, .tc-savebar, .tc-note, .msg, h1, .btn, .tc-del, p) { grid-column: 1 / -1; }
  .stack.tc.tc-dense > .back { justify-self: start; }
  .stack.tc.tc-dense > .tc-band-s { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; }
  .stack.tc.tc-dense > .tc-band-s > .tc-band-a { grid-column: 1 / -1; }
  .tc-edp .tc-big3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tc-edp > .tc-ai { grid-column: 1 / -1; }
}

/* ---------- fold a finished question into one line (fold-q) */
.tc-qha { display: inline-flex; gap: 8px; }
.tc-foldbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px; font-weight: 700; color: var(--ink-2, #5b6478); font-size: .92rem; }
.tc-foldbar .tc-link { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.tc-foldbar .pi { width: 18px; height: 18px; }
.tc-q.tc-qc { padding: 0; }
.tc-qrow { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: inherit; }
.tc-qrow:focus-visible { outline: 3px solid #3b82f6; outline-offset: 2px; }
.tc-qn { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #e8efff; color: #2b5fd9; font-weight: 800; font-size: .95rem; }
.tc-qty { flex: none; width: 30px; text-align: center; font-size: 1.05rem; }
.tc-qtx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.tc-qtx i { color: #9aa3b5; font-style: normal; font-weight: 600; }
.tc-qst { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.tc-qst.ok { background: #e4f8ec; color: #158a4a; }
.tc-qst.bad { background: #fff3dc; color: #a86200; }
.tc-qst .pi { width: 14px; height: 14px; }
.tc-qrow .tc-ib { pointer-events: none; }
@media (max-width: 360px) { .tc-qrow { gap: 7px; padding: 8px 9px; } .tc-qty { display: none; } .tc-qst { padding: 4px 7px; } }
.tc-qst em { font-style: normal; }
.tc-qst.bad { font-weight: 900; }
@media (max-width: 600px) { .tc-qst { width: 26px; height: 26px; padding: 0; justify-content: center; } .tc-qst em { display: none; } }

/* ---------- question-type icons (option A: coloured tiles) */
.tc-qi { width: 22px; height: 22px; border-radius: 7px; box-shadow: none; }
.tc-qi .pi { width: 66%; height: 66%; }
.tc-types { display: grid !important; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; overflow: visible; }
.tc-types button { display: grid; justify-items: center; gap: 4px; min-width: 0; border-radius: 14px; padding: 7px 2px 6px; font-size: 11.5px; white-space: nowrap; }
.tc-types button > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tc-types button .tc-qi { width: 28px; height: 28px; border-radius: 9px; }
.tc-types button.on { --qc: #1971C2; --qb: #E7F1FF; border-color: var(--qc); background: var(--qb); color: var(--qc); }
.tc-types .q-tf.on { --qc: #2B8A3E; --qb: #E6F8EA; } .tc-types .q-fill.on { --qc: #E8590C; --qb: #FFF0E0; }
.tc-types .q-order.on { --qc: #6741D9; --qb: #F0EBFF; } .tc-types .q-match.on { --qc: #C2255C; --qb: #FFE9F1; }
.tc-qty { width: 30px; display: grid; place-items: center; } .tc-qty .tc-qi { width: 30px; height: 30px; border-radius: 9px; }
.tc-chips button .tc-qi, .tc-chips .tc-qi { display: inline-grid; vertical-align: -5px; margin-inline-end: 6px; width: 22px; height: 22px; }
.tc-chips button.on .tc-qi { box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.tc-bq small .tc-qi { display: inline-grid; vertical-align: -4px; width: 18px; height: 18px; border-radius: 6px; margin-inline-end: 4px; }
@media (max-width: 360px) { .tc-types { gap: 4px; } .tc-types button { font-size: 10px; padding: 6px 0 5px; letter-spacing: -.2px; } .tc-types button .tc-qi { width: 24px; height: 24px; } .tc-qty { display: grid; } }

/* ---------- the library room and the curriculum picker (lib-books) */
.tc-types > label { display: grid; justify-items: center; gap: 4px; min-width: 0; border: 2px solid #E3EAF8; background: #fff; border-radius: 14px; padding: 7px 2px 6px; font-weight: 900; font-size: 11.5px; white-space: nowrap; cursor: pointer; color: var(--muted); }
.tc-types > label.on { border-color: #1971C2; background: #E7F1FF; color: #1971C2; }
.tc-types > * .tc-ti:not(.tc-qi) { width: 28px; height: 28px; border-radius: 9px; box-shadow: none; }
.tc-types button small { font-size: 10.5px; font-weight: 800; opacity: .8; }
.tc-types button:disabled { opacity: .45; cursor: default; }
.lb-own { margin-inline-start: auto; font-size: 11px; font-weight: 900; padding: 4px 10px; border-radius: 999px; background: #FFF3DC; color: #A86200; }
.lb-bkc { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.lb-bkc > span:not(.tc-ti) { flex: 1; min-width: 0; display: grid; gap: 3px; } .lb-bkc b { font-size: 15px; } .lb-bkc small { font-size: 12px; color: var(--muted); font-weight: 700; }
.lb-bkc > .tc-ti { width: 44px; height: 44px; border-radius: 14px; }
.lb-prog { display: block; height: 7px; border-radius: 9px; background: #EEF1F7; overflow: hidden; margin-top: 3px; } .lb-prog i { display: block; height: 100%; background: #2FB36B; border-radius: 9px; }
.lb-prog.w { background: rgba(255, 255, 255, .25); } .lb-prog.w i { background: #fff; }
.lb-form { display: grid; gap: 8px; } .lb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .lb-grid2 { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; } .lb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lb-form .field, .lb-room .field { min-width: 0; }
.lb-band { border-radius: 18px; padding: 12px; color: #fff; background: linear-gradient(135deg, #2FB36B, #1E8A57); display: grid; gap: 8px; box-shadow: 0 3px 0 rgba(20, 90, 55, .25); }
.lb-band > * { min-width: 0; }
.lb-bt { display: flex; align-items: center; gap: 10px; } .lb-bt > span:not(.tc-ti) { flex: 1; min-width: 0; } .lb-bt b { display: block; font-size: 16px; } .lb-bt small { font-weight: 700; opacity: .92; font-size: 12px; }
.lb-bt > .tc-ti { width: 42px; height: 42px; border-radius: 13px; }
.tc-ib.lb-glass { background: rgba(255, 255, 255, .22); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); } .tc-ib.lb-glass.done { background: #fff; color: #1E8A57; }
.lb-lnk { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .16); border-radius: 12px; padding: 6px 8px; font-size: 12px; font-weight: 800; }
.lb-lnk > .pi { width: 18px; height: 18px; flex: none; } .lb-lnk code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-size: 11.5px; }
.lb-lock { font-size: 10.5px; font-weight: 900; background: #fff; color: #1E8A57; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.lb-pl { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; }
.lb-terms button { padding: 9px 4px 8px; font-size: 13px; }
.lb-uh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .lb-uh b { flex: 1; min-width: 0; font-size: 14px; } .lb-uh small { font-size: 11px; color: var(--muted); font-weight: 800; white-space: nowrap; }
.lb-uh .tc-ti { width: 30px; height: 30px; border-radius: 9px; }
.lb-ls { display: flex; align-items: center; gap: 9px; border: 1.5px solid #E3EAF8; border-radius: 14px; padding: 8px 10px; margin-bottom: 6px; text-decoration: none; color: inherit; min-height: 52px; box-sizing: border-box; }
.lb-n { flex: none; width: 28px; height: 28px; border-radius: 9px; background: #e8efff; color: #2b5fd9; display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.lb-m { flex: 1; min-width: 0; } .lb-m b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-m small { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--muted); }
.lb-st { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 900; padding: 4px 9px; border-radius: 999px; white-space: nowrap; } .lb-st .pi { width: 13px; height: 13px; }
.lb-st.ok { background: #e4f8ec; color: #158a4a; } .lb-st.dr { background: #FFF3DC; color: #A86200; } .lb-st.no { background: #F1F3F8; color: #8a91a8; }
.lb-bar { display: inline-flex; height: 6px; width: 64px; border-radius: 6px; overflow: hidden; background: #EEF1F7; flex: none; } .lb-bar.w { width: 100%; height: 10px; border-radius: 8px; margin: 8px 0 4px; }
.lb-bar i { display: block; } .lb-bar .g0, .lb-key .g0::before { background: #51CF66; } .lb-bar .g1, .lb-key .g1::before { background: #FFA94D; } .lb-bar .g2, .lb-key .g2::before { background: #9775FA; }
.lb-addl { display: grid; grid-template-columns: 1fr 96px 38px; gap: 6px; margin-top: 4px; } .lb-addl .field { padding: 8px 10px; font-size: 13px; }
.lb-addu { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; } .lb-addu .btn { margin: 0; padding-inline: 16px; }
.lb-key { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; } .lb-key em { font-style: normal; font-weight: 900; display: inline-flex; align-items: center; gap: 5px; } .lb-key em::before { content: ''; width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lb-key span { margin-inline-start: auto; }
.lb-src, .lb-sum { display: grid; gap: 8px; align-content: start; }
.lb-tyc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; } .lb-tyc span { display: flex; align-items: center; justify-content: center; gap: 5px; border: 1.5px solid #E3EAF8; border-radius: 12px; padding: 5px 2px; font-weight: 900; font-size: 13px; }
.tc-types .lb-f.g0.on { --qc: #2B8A3E; --qb: #E6F8EA; } .tc-types .lb-f.g1.on { --qc: #E8590C; --qb: #FFF0E0; } .tc-types .lb-f.g2.on { --qc: #6741D9; --qb: #F0EBFF; }
.lb-q { display: grid; gap: 6px; } .lb-qh { display: flex; align-items: center; gap: 8px; } .lb-qh .tc-qi { width: 26px; height: 26px; border-radius: 8px; }
.lb-bsel { flex: 1; min-width: 0; padding: 5px 8px; font-size: 12.5px; font-weight: 900; border-radius: 10px; }
.lb-bsel.g0 { color: #2B8A3E; background: #E6F8EA; } .lb-bsel.g1 { color: #E8590C; background: #FFF0E0; } .lb-bsel.g2 { color: #6741D9; background: #F0EBFF; }
.lb-ans { font-size: 12px; color: var(--muted); font-weight: 700; }
.lb-bar3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .lb-bar3 .btn { margin: 0; padding-inline: 6px; font-size: 14px; }
.lb-bl { display: inline-block; font-size: 10.5px; font-weight: 900; padding: 2px 7px; border-radius: 999px; } .lb-bl.g0 { background: #E6F8EA; color: #2B8A3E; } .lb-bl.g1 { background: #FFF0E0; color: #E8590C; } .lb-bl.g2 { background: #F0EBFF; color: #6741D9; }
/* the teacher's picker */
.lb-books { display: grid; gap: 6px; } .lb-bk { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; border: 2px solid #E3EAF8; border-radius: 14px; padding: 8px 10px; background: #fff; }
.lb-bk.on { border-color: #1971C2; background: #E7F1FF; } .lb-bk .tc-ti { width: 34px; height: 34px; border-radius: 11px; box-shadow: none; } .lb-bk b { display: block; font-size: 14px; } .lb-bk small { font-size: 11.5px; color: var(--muted); font-weight: 800; }
.lb-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lb-pk { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; border: 1.5px solid #E3EAF8; border-radius: 12px; padding: 7px 9px; background: #fff; min-width: 0; min-height: 50px; }
.lb-pk > span:last-child { min-width: 0; } .lb-pk b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lb-pk small { display: block; font-size: 11px; color: var(--muted); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-pk.on { border-color: #1971C2; background: #E7F1FF; }
.lb-ck { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #C9D6F2; display: grid; place-items: center; color: transparent; } .lb-ck .pi { width: 14px; height: 14px; } .lb-pk.on .lb-ck { background: #1971C2; border-color: #1971C2; color: #fff; }
.lb-dist > span:last-child { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 900; } .lb-dist em { font-style: normal; } .lb-dist em.g0 { color: #2B8A3E; } .lb-dist em.g1 { color: #E8590C; } .lb-dist em.g2 { color: #6741D9; }
.tc-cur .tc-types { margin-bottom: 4px; }
@media (max-width: 360px) { .lb-picks { grid-template-columns: 1fr; } .lb-addl { grid-template-columns: 1fr 78px 34px; } .lb-bar3 .btn { font-size: 12.5px; } }
.lb-room .lb-bkc { display: flex; flex-direction: row; align-items: center; text-align: start; }
.lb-room .lb-ls { flex-direction: row; }
.lb-src .msg:empty { display: none; }
.tc-qh .lb-bl { margin-inline-start: 8px; vertical-align: 2px; }
/* the automatic build card */
.lb-auto { display: grid; gap: 8px; }
.lb-tsrc { display: grid; gap: 4px; border: 1.5px dashed #C9D6F2; border-radius: 14px; padding: 9px 10px; align-content: start; }
.lb-tsrc.ok { border-style: solid; border-color: #B7E4C7; background: #F3FBF6; }
.lb-tsrc b { font-size: 13.5px; } .lb-tsrc small { font-size: 11.5px; color: var(--muted); font-weight: 800; }
.lb-tsrc .lb-up { margin: 2px 0 0; padding: 6px 8px; font-size: 12.5px; min-height: 0; }
.lb-run { display: grid; gap: 4px; } .lb-run .lb-pl { color: var(--ink, #1F1A33); } .lb-run .lb-prog { height: 9px; } .lb-run .lb-prog i { background: linear-gradient(90deg, #845EF7, #5C7CFA); }
.lb-rescan { justify-self: center; font-size: 12.5px; }

/* ---------- «كنز المستكشف» (White Friday treasure map) */
.kanz-bn { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; text-decoration: none; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 12% 110%, rgba(255,94,156,.35), transparent 55%), linear-gradient(135deg, #3E5BE0, #4A2FB0 60%, #2A1A78); border: 3px solid #F4B53F; box-shadow: 0 5px 0 #B9801C, 0 0 18px rgba(244,181,63,.3); animation: gxPop .5s cubic-bezier(.2,1.4,.4,1) both; }
.kanz-bn:active { transform: translateY(3px); box-shadow: 0 2px 0 #B9801C; }
.kanz-bn-wave { position: absolute; inset: auto -10% -18px -10%; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); }
.kanz-bn-ic { position: relative; flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 34px; background: #F7E2B0; border: 2px solid #fff; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.kanz-bn-tx { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kanz-bn-tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: #F4B53F; color: #3A2400; font-weight: 800; font-size: 12px; }
.kanz-bn-tx b { font-family: var(--display); font-size: 19px; line-height: 1.2; }
.kanz-bn-tx small { font-size: 13px; font-weight: 700; opacity: .92; line-height: 1.35; }
.kanz-card { position: relative; overflow: hidden; padding: 20px 16px 18px; border-radius: 26px; color: #fff; text-align: center;
  background: radial-gradient(circle at 85% 0%, rgba(140,170,255,.5), transparent 50%), radial-gradient(circle at 0% 100%, rgba(255,94,156,.3), transparent 50%), linear-gradient(170deg, #3E62E8, #4A2FB0 55%, #2A1A78); border: 3px solid #F4B53F; box-shadow: 0 6px 0 #B9801C; }
.kanz-bub i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #FFE27A; box-shadow: 0 0 8px #FFE27A; animation: kzTw 2.6s ease-in-out infinite; }
.kanz-bub i:nth-child(1) { top: 18px; left: 9%; } .kanz-bub i:nth-child(2) { top: 64px; left: 20%; width: 5px; height: 5px; animation-delay: .8s; } .kanz-bub i:nth-child(3) { top: 22px; right: 10%; animation-delay: 1.4s; } .kanz-bub i:nth-child(4) { top: 78px; right: 22%; width: 5px; height: 5px; animation-delay: 2s; }
@keyframes kzTw { 50% { opacity: .25; transform: scale(.6); } }
.kanz-tag { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #F4B53F; color: #3A2400; font-weight: 800; font-size: 13px; }
.kanz-h { margin: 8px 0 4px; font-family: var(--display); font-weight: 800; font-size: 30px; }
.kanz-p { margin: 0 auto; max-width: 520px; font-weight: 700; font-size: 15px; line-height: 1.6; opacity: .95; }
.kanz-map { position: relative; display: flex; align-items: flex-start; justify-content: center; margin: 18px auto 6px; padding: 14px 8px 10px; max-width: 520px; border-radius: 20px; background: #F7E2B0; box-shadow: inset 0 0 0 3px #D9B46A, 0 4px 0 #A57B2E; }
.kanz-dash { flex: 1; max-width: 26px; margin-top: 26px; border-top: 3px dashed #A57B2E; }
.kanz-pc { flex: none; width: 56px; display: flex; flex-direction: column; align-items: center; gap: 5px; animation: gxPop .45s var(--d) cubic-bezier(.2,1.4,.4,1) both; }
.kanz-pc-c { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #8E8A80; background: #E9D8B0; border: 3px dashed #BDA572; }
.kanz-pc small { font-size: 11px; font-weight: 800; color: #6E5320; white-space: nowrap; }
.kanz-pc.now .kanz-pc-c { color: #fff; background: #4A2FB0; border: 3px solid #fff; box-shadow: 0 0 0 3px #4A2FB0; animation: kzGlow 1.6s ease-in-out infinite; }
.kanz-pc.got .kanz-pc-c { background: radial-gradient(circle at 35% 30%, #FFF4C4, #F4B53F); border: 3px solid #fff; box-shadow: 0 0 0 3px #E39A12, 0 0 14px rgba(244,181,63,.8); }
.kanz-pc.pop .kanz-pc-c { animation: kzPop .7s cubic-bezier(.2,1.6,.4,1); }
@keyframes kzGlow { 50% { box-shadow: 0 0 0 6px rgba(74,47,176,.35); } }
@keyframes kzPop { 0% { transform: scale(.3) rotate(-30deg); } 100% { transform: scale(1) rotate(0); } }
.kanz-chest-w { position: relative; display: flex; flex-direction: column; align-items: center; margin: 6px auto 2px; }
.kanz-chest { width: 116px; height: 96px; filter: drop-shadow(0 4px 0 rgba(0,0,0,.25)); }
.kanz-chest .kanz-lid { transform-origin: 14px 44px; }
.kanz-chest.open .kanz-lid { transform: rotate(-24deg) translate(-6px, -10px); }
.kanz-count { margin-top: -2px; padding: 2px 14px; border-radius: 999px; background: rgba(0,0,0,.25); font-size: 15px; }
.kanz-win { margin: 12px auto 4px; max-width: 460px; padding: 14px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 4px 0 #B9801C; }
.kanz-win b { font-family: var(--display); font-size: 20px; } .kanz-win p { margin: 6px 0 12px; font-weight: 700; line-height: 1.5; }
.kanz-msg { min-height: 22px; margin: 8px 0 0; font-weight: 800; font-size: 15px; text-align: center; }
.kanz-msg.ok { color: #FFE27A; } .kanz-msg.no { color: #FFD0D0; }
.kanz-small { margin: 14px auto 0; max-width: 520px; font-size: 12.5px; font-weight: 700; opacity: .85; line-height: 1.5; }
button.kanz-pc { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.kanz-pc.on .kanz-pc-c { background: #F4B53F; color: #3A2400; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #F4B53F; animation: none; }
.kanz-pick { margin: 14px auto 4px; max-width: 460px; padding: 14px 12px 10px; border-radius: 20px; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.3); }
.kanz-q { display: block; margin-bottom: 10px; font-family: var(--display); font-size: 17px; line-height: 1.4; }
.kanz-ch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kanz-c { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 96px; padding: 8px 4px; border: 0; border-radius: 18px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 4px 0 #C9B4F2; transition: transform .12s; }
.kanz-c span { font-size: 40px; line-height: 1; }
.kanz-c small { font-weight: 800; font-size: 14px; }
.kanz-c:active { transform: translateY(3px); box-shadow: 0 1px 0 #C9B4F2; }
.kanz-c.picked { background: #FFF1C2; box-shadow: 0 4px 0 #E39A12; }
.kanz-c.wrong { background: #FFE1E1; box-shadow: 0 4px 0 #E58C8C; animation: kzNo .4s; }
.kanz-c:disabled { opacity: .55; cursor: default; }
@keyframes kzNo { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (max-width: 370px) {
  .kanz-c { min-height: 84px; } .kanz-c span { font-size: 34px; }
  .kanz-card { padding: 18px 10px 16px; }
  .kanz-map { padding: 12px 4px 8px; }
  .kanz-pc { width: 46px; } .kanz-pc-c { width: 42px; height: 42px; font-size: 21px; } .kanz-pc small { font-size: 10px; }
  .kanz-dash { max-width: 10px; margin-top: 21px; }
}
@media (min-width: 700px) and (orientation: landscape) { .kanz-pick { max-width: 640px; } .kanz-ch { grid-template-columns: repeat(6, 1fr); } .kanz-c { min-height: 88px; } }

/* ---------- the owner's control panel (#/admin): full screen, sidebar on wide screens, bottom bar on phones */
body.ad-on { background: #F3F5FB; }
body.ad-on .app { max-width: none; background: #F3F5FB; }
body.ad-on header.top, body.ad-on .tabs { display: none !important; }
body.ad-on .view { padding: 0; }
.ad { --ink: #1B2340; --mut: #6B7493; --ln: #E4E8F3; display: grid; grid-template-columns: 250px 1fr; min-height: 100dvh; color: var(--ink); font-family: 'Tajawal', sans-serif; }
.ad-side { position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 3px; color: #fff; background: linear-gradient(180deg, #1E2A78, #2A1A78); }
.ad-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; text-decoration: none; }
.ad-brand img { width: 42px; height: 42px; border-radius: 12px; background: #fff; }
.ad-brand b { display: block; font-family: var(--display); font-size: 19px; line-height: 1.1; } .ad-brand small { font-size: 12px; font-weight: 700; opacity: .7; }
.ad-nav { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: rgba(255,255,255,.82); text-decoration: none; font-weight: 700; font-size: 15px; }
.ad-nav i { font-style: normal; width: 22px; text-align: center; }
.ad-nav:hover { background: rgba(255,255,255,.08); }
.ad-nav.on { background: rgba(255,255,255,.15); color: #fff; box-shadow: inset -3px 0 0 #FFD23F; }
.ad-nav em { margin-inline-start: auto; font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.14); color: rgba(255,255,255,.75); }
.ad-bd { margin-inline-start: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: #FFD23F; color: #3A2400; font-size: 12px; font-weight: 800; text-align: center; }
.ad-sep { height: 1px; margin: 10px 6px; background: rgba(255,255,255,.14); }
.ad-exit { margin-top: auto; opacity: .8; }
.ad-main { min-width: 0; padding: 22px 28px 40px; }
.ad-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 18px; }
.ad-top h1 { margin: 0; font-family: var(--display); font-size: 26px; line-height: 1.2; }
.ad-sub { color: var(--mut); font-weight: 700; font-size: 14px; }
.ad-sp { flex: 1; }
.ad-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: #fff; border: 1px solid var(--ln); }
.ad-seg button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 800; color: var(--mut); padding: 6px 12px; border-radius: 9px; cursor: pointer; }
.ad-seg button.on { background: var(--ink); color: #fff; }
.ad-qs input, .ad-search input, .ad-gift input { font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--ln); border-radius: 12px; padding: 9px 12px; width: 300px; max-width: 100%; }
.ad-search { display: flex; gap: 8px; margin-bottom: 16px; } .ad-search input { flex: 1; width: auto; }
.ad-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 10px; padding: 8px 14px; background: var(--ink); color: #fff; font: inherit; font-size: 13.5px; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap; }
.ad-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--ln); }
.ad-btn:disabled { opacity: .5; }
.ad-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 16px; }
.ad-kpis.four { grid-template-columns: repeat(4, 1fr); }
.ad-kpi { min-width: 0; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--ln); }
.ad-kpi small { display: block; color: var(--mut); font-weight: 700; font-size: 13px; }
.ad-kpi > b { display: block; margin: 4px 0 2px; font-family: var(--display); font-size: 27px; line-height: 1.15; white-space: nowrap; }
.ad-kpi.alert { border-color: #F6C66B; background: #FFFBEF; }
.ad-d { display: block; font-weight: 800; font-size: 12.5px; } .ad-d.ad-up { color: #1F9D55; } .ad-d.ad-dn { color: #D64545; } .ad-d.ad-ne { color: var(--mut); } .ad-d.ad-warn { color: #8A6200; }
.ad-spark { display: block; width: 100%; height: 26px; margin-top: 6px; }
.ad-row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.ad-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.ad-card { min-width: 0; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--ln); }
.ad-card h2 { margin: 0 0 8px; font-size: 17px; display: flex; align-items: center; gap: 8px; } .ad-card h2 small { color: var(--mut); font-size: 13px; }
.ad-chart { display: block; width: 100%; height: 210px; }
.ad-note { margin: 8px 0 0; color: var(--mut); font-size: 12.5px; font-weight: 700; line-height: 1.6; }
.ad-note i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }
.ad-todo { display: flex; flex-direction: column; gap: 10px; }
.ad-td { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #F7F8FC; border: 1px solid var(--ln); color: inherit; text-decoration: none; }
.ad-td > span:nth-child(2) { flex: 1; min-width: 0; } .ad-td b { display: block; font-size: 14.5px; } .ad-td small { display: block; color: var(--mut); font-weight: 700; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; }
.ad-empty { margin: 8px 0; color: var(--mut); font-weight: 700; }
.ad-funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ad-fs { text-align: center; } .ad-fb { height: 100px; display: flex; align-items: flex-end; justify-content: center; }
.ad-fb i { display: block; width: 70%; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #6C8BFF, #4A2FB0); }
.ad-fs b { display: block; margin-top: 6px; font-family: var(--display); font-size: 18px; } .ad-fs small { display: block; color: var(--mut); font-weight: 700; font-size: 12px; } .ad-fs em { display: block; font-style: normal; font-weight: 800; font-size: 12px; color: #4A2FB0; }
.ad-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.ad-t th { padding: 8px 6px; border-bottom: 1px solid var(--ln); color: var(--mut); font-weight: 700; font-size: 12.5px; text-align: start; }
.ad-t td { padding: 9px 6px; border-bottom: 1px solid #F0F2F8; font-weight: 700; vertical-align: middle; }
.ad-t td small { display: block; color: var(--mut); font-size: 12px; }
.ad-t .ad-n { font-family: var(--display); }
.ad-fam tr[data-admfam] { cursor: pointer; } .ad-fam tr[data-admfam]:hover td { background: #F7F8FC; }
.ad-tw { overflow-x: auto; }
.ad-bar { height: 8px; border-radius: 99px; background: #EEF1F8; overflow: hidden; } .ad-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(270deg, #4A2FB0, #2456B8); }
.ad-pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.adp-g { background: #E3F6EA; color: #1F9D55; } .adp-y { background: #FFF1CC; color: #8A6200; } .adp-b { background: #E5ECFB; color: #2456B8; } .adp-x { background: #EEF0F5; color: #6B7493; }
.ad-gift { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .ad-gift input { flex: 1; width: auto; min-width: 140px; }
.ad-msg { padding: 12px 4px; border-bottom: 1px solid #F0F2F8; } .ad-msg:last-child { border-bottom: 0; }
.ad-msg.new { position: relative; padding-inline-start: 14px; } .ad-msg.new::before { content: ''; position: absolute; inset-inline-start: 0; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: #2456B8; }
.ad-msg-h b { display: block; font-size: 15px; } .ad-msg-h small { color: var(--mut); font-weight: 700; font-size: 12.5px; }
.ad-msg p { margin: 6px 0 8px; font-weight: 500; line-height: 1.6; white-space: pre-wrap; }
.ad-msg-a { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.ad-intabs { margin-bottom: 12px; } .ad-intabs .ad-bd { margin: 0 4px; }
.ad-soon { text-align: center; padding: 40px 20px; } .ad-soon b { font-size: 18px; } .ad-soon p { color: var(--mut); font-weight: 700; }
.ad-load { color: var(--mut); text-align: center; padding: 30px; } .ad-err { color: #D64545; font-weight: 800; }
.ad-old .club-card { margin: 0 0 16px; border-radius: 18px; border: 1px solid var(--ln); box-shadow: none; }
.ad-grid2.ad-old { margin-bottom: 0; } .ad-grid2.ad-old .club-card { margin-bottom: 16px; }
.ad-tabs, .ad-more { display: none; }
@media (max-width: 1250px) { .ad-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .ad-row, .ad-grid2 { grid-template-columns: 1fr; } .ad { grid-template-columns: 210px 1fr; } .ad-main { padding: 18px 18px 40px; } }
@media (max-width: 760px) {
  .ad { display: block; } .ad-side { display: none; }
  .ad-main { padding: 14px 14px calc(88px + env(safe-area-inset-bottom)); }
  .ad-top h1 { font-size: 22px; } .ad-qs { width: 100%; order: 3; } .ad-qs input { width: 100%; } .ad-top .ad-seg { width: 100%; justify-content: space-between; order: 4; } .ad-top .ad-sp { display: none; }
  .ad-kpis, .ad-kpis.four { grid-template-columns: repeat(2, 1fr); gap: 10px; } .ad-kpi > b { font-size: 23px; }
  .ad-chart { height: 170px; }
  .ad-funnel { gap: 4px; } .ad-fs b { font-size: 15px; } .ad-fs small { font-size: 10.5px; }
  .hide-s { display: none; }
  .ad-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #E4E8F3; }
  .ad-tabs a, .ad-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; font: inherit; font-size: 11px; font-weight: 800; color: #6B7493; text-decoration: none; }
  .ad-tabs i { font-style: normal; font-size: 20px; } .ad-tabs .on { color: #4A2FB0; }
  .ad-tabs .ad-bd { position: absolute; top: -2px; inset-inline-end: 18%; margin: 0; min-width: 18px; padding: 0 5px; font-size: 11px; }
  .ad-more:not([hidden]) { display: flex; position: fixed; inset: 0; z-index: 40; align-items: flex-end; background: rgba(15,20,50,.45); }
  .ad-more-box { width: 100%; padding: 14px 12px calc(84px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: linear-gradient(180deg, #1E2A78, #2A1A78); display: flex; flex-direction: column; gap: 2px; }
}
.ad-gift { flex-direction: column; align-items: stretch; } .ad-gift .ad-seg { flex-wrap: wrap; } .ad-gift .ad-seg button { flex: 1; }
.ad-lab { display: flex; align-items: center; gap: 8px; color: var(--mut); font-weight: 800; font-size: 13px; } .ad-lab input { width: 110px; flex: none; }
.ad-gift > .ad-btn { justify-content: center; padding: 11px; font-size: 15px; } .ad-gift .ad-note { margin: 0; color: #4A2FB0; }
.ad-old .adm-act { text-decoration: none; }
.club-offer-end { display: block; margin-top: 4px; font-size: 13px; font-weight: 800; opacity: .9; }
/* control panel, phase 2 */
.ad-ctabs { flex-wrap: wrap; }
.ad-ct td small { margin-top: 3px; } .ad-ct .ad-bar { margin-top: 4px; }
.ad-stars { color: #E39A12; white-space: nowrap; } .ad-stars small { display: inline; color: var(--mut); }
.ad-live { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 16px; background: #EFFAF3; border-color: #BFE8CF; } .ad-live span { color: var(--mut); font-weight: 700; font-size: 13.5px; }
.ad-offer { display: flex; flex-direction: column; gap: 10px; }
.ad-offer label { min-width: 0; display: flex; flex-direction: column; gap: 4px; color: var(--mut); font-weight: 800; font-size: 13px; }
.ad-offer input { width: 100%; box-sizing: border-box; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--ln); border-radius: 12px; padding: 9px 12px; min-width: 0; }
.ad-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .ad-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ad-offer > .ad-btn { justify-content: center; padding: 11px; font-size: 15px; }
.ad-mini { margin-bottom: 12px; } .ad-mini .ad-kpi > b { font-size: 22px; }
.ad-tps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; }
.ad-tp b { font-family: var(--display); } .ad-tp .ad-fb { height: 80px; } .ad-tp small { display: block; color: var(--mut); font-weight: 700; font-size: 12px; } .ad-tp em { font-style: normal; font-size: 11px; color: #4A2FB0; font-weight: 800; }
@media (max-width: 760px) { .ad-2 { grid-template-columns: 1fr; } .ad-ctabs { width: 100%; } .ad-ctabs button { flex: 1; padding: 6px 4px; font-size: 12px; } }
.ad .show-s { display: none; }
@media (max-width: 760px) { .ad .show-s { display: block; } }

/* deleting a child / the account without a parent PIN: type the word «حذف» */
.del-word { display: grid; gap: 10px; text-align: center; }
.del-word .pm-sub { margin: 0; }
.del-lbl { font-weight: 800; color: #5F3DC4; }
.del-in { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 2px solid #B197FC; border-radius: 16px; font: inherit; font-size: 20px; text-align: center; background: #F8F5FF; color: #1B1446; }
.del-in:focus { outline: none; border-color: #7048E8; box-shadow: 0 0 0 3px rgba(112, 72, 232, .2); }
.del-go { padding: 12px 16px; border: 0; border-radius: 18px; font: inherit; font-weight: 800; font-size: 17px; color: #fff; background: #E03131; box-shadow: 0 4px 0 #A61E1E; cursor: pointer; }
.del-go:active { transform: translateY(3px); box-shadow: 0 1px 0 #A61E1E; }
.pm-box h2 { padding-inline: 34px; }   /* long titles (e.g. «حذف الحساب نهائيًا») stay clear of the close button */

/* «نسيت الرقم السري»: the waiting-period note in the PIN modal */
.pm-note { margin: 6px 0 0; font-size: 13px; line-height: 1.6; font-weight: 700; color: var(--muted); }
.pm-note:empty { display: none; }
@media (max-height: 600px) and (orientation: portrait) { .pm-note { font-size: 12px; line-height: 1.5; } }


/* ===== Kid experience (UI/UX review, Nov 2026) ===== */
/* readable for young readers: tab names, section names and small tags */
.tabs a span { font-size: 12.5px; font-weight: 800; }
.cats .cat-name { font-size: 13.5px; }
.hero-tag, .nw-card .gx-tag, .gx-tag { font-size: 12.5px; }
/* AA contrast for white text on the pink «new» tags */
.hero-tag, .hr-why.new, .launch-kicker { background: #C2185B; box-shadow: 0 2px 0 #880E4F; }
/* tap targets: the header's round buttons reach 44 px (the drawn circle stays as it was) */
.top .search-btn, .top .lang-btn { position: relative; }
.top .search-btn::after, .top .lang-btn::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; }
/* kid mode: the home ends with a quiet line instead of the parents' tiles */
.ft-kid { padding-top: 6px; }
/* quiz: «اسمع السؤال» */
.qz-head { display: flex; align-items: flex-start; gap: 12px; }
.qz-head .qz-q { flex: 1 1 auto; margin: 0; }
.qz-say { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #5B3A00;
  border: 2px solid rgba(255,255,255,.75); background: linear-gradient(160deg, rgba(255,226,120,.95), rgba(255,184,0,.82));
  box-shadow: 0 4px 0 #C98A00, 0 0 18px rgba(255,200,40,.55), inset 0 2px 0 rgba(255,255,255,.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.qz-say svg { width: 30px; height: 30px; }
.qz-say:active { transform: translateY(2px); box-shadow: 0 2px 0 #C98A00, 0 0 14px rgba(255,200,40,.5); }
.qz-say.on { animation: qzSay 1s ease-in-out infinite; }
@keyframes qzSay { 50% { box-shadow: 0 4px 0 #C98A00, 0 0 0 10px rgba(255,200,40,.25), inset 0 2px 0 rgba(255,255,255,.7); } }
/* quiz result: where to next */
.dn-more { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 420px; }
.dn-more .btn { margin: 0; }
/* episode: the picture and a loader under the video until YouTube paints; a clear card when there's no internet */
.player .pl-wait { position: absolute; inset: 0; opacity: 1; }
.player .pl-spin { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  border: 7px solid rgba(255,255,255,.35); border-top-color: #FFD23F; animation: plSpin .9s linear infinite; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.player iframe { z-index: 1; }
@keyframes plSpin { to { transform: rotate(360deg); } }
.pl-off .cover { opacity: .35; filter: grayscale(.4); }
.pl-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 12px; color: #fff; }
.pl-msg b { font-size: 20px; } .pl-msg span { font-size: 15px; font-weight: 700; }
.pl-msg .btn { margin-top: 4px; min-height: 48px; padding-inline: 26px; }
/* a game that isn't out yet answers a tap */
[data-gxsoon] { cursor: pointer; }
.gx-shake { animation: gxShake .5s ease; }
@keyframes gxShake { 20% { transform: translateX(-8px) rotate(-1deg); } 40% { transform: translateX(7px) rotate(1deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.kid-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 18px; background: #1E2A6E; color: #fff; font-weight: 800; font-size: 16px; text-align: center; box-shadow: 0 6px 0 #0E1B4D, 0 12px 30px rgba(0,0,0,.3); animation: ktIn .25s ease both; }
@keyframes ktIn { from { opacity: 0; transform: translate(-50%, 12px); } }
/* landscape phones: a slimmer header, and the tab bar steps aside on the episode, quiz and game screens so the video and the answers are whole */
@media (orientation: landscape) and (max-height: 500px) {
  body[data-r="ep"] .tabs, body[data-r="quiz"] .tabs, body[data-r="done"] .tabs, body[data-r="play"] .tabs { display: none; }
  body[data-r="ep"] main, body[data-r="quiz"] main { padding-bottom: 16px; }
  body[data-r="ep"] .player:not(.vertical) { max-height: calc(100vh - 110px); aspect-ratio: auto; height: calc(100vh - 110px); }
}
@media (prefers-reduced-motion: reduce) { .qz-say.on, .gx-shake, .player .pl-spin { animation: none; } }
.img-x { visibility: hidden; }
.pl-off { background: radial-gradient(circle at 50% 35%, #2A3A8F, #141C55); }
.pl-mascot { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 4px solid #FFD23F; box-shadow: 0 4px 0 #C98A00; }
.player.pl-off { aspect-ratio: auto; }
.pl-off .pl-msg { position: static; padding: 22px 14px; }
