/* "Pop burst" theme: bright saturated gradients, thick ink outlines, hard offset shadows, sticker cards. For ages 7+. */
:root {
  --ink: #1d1042;
  --ink2: #5b4a8a;
  --pink: #ff3d9a;
  --purple: #7a4cff;
  --blue: #2b7bff;
  --cyan: #18d6ff;
  --yellow: #ffd633;
  --lime: #8cf23a;
  --orange: #ff8c3a;
  --red: #ff4468;
  --white: #ffffff;
  --cream: #fff6dc;
  --bd: 3px solid var(--ink);
  --sh: 5px 5px 0 var(--ink);
  --sh-sm: 3px 3px 0 var(--ink);
  --radius: 24px;
  --display: 'Secular One', 'Rubik', system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
/* Nothing may make the page wider than the screen (iPad Safari widens the whole page for one wide element,
   which pushes the top bar and the home button out of view). 'html' keeps the sticky top bar working. */
html { overflow-x: hidden; }
body { max-width: 100vw; overflow-x: clip; }
body {
  font-family: 'Rubik', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background: linear-gradient(160deg, #5b3bff 0%, #a63dff 42%, #ff3d9a 100%);
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
  padding-bottom: env(safe-area-inset-bottom);
}
/* big flat shapes and halftone dots behind everything */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 214, 51, .9) 0 90px, transparent 91px),
    radial-gradient(circle at 92% 22%, rgba(24, 214, 255, .85) 0 130px, transparent 131px),
    radial-gradient(circle at 6% 88%, rgba(140, 242, 58, .8) 0 110px, transparent 111px),
    radial-gradient(circle at 96% 92%, rgba(255, 140, 58, .85) 0 150px, transparent 151px),
    radial-gradient(rgba(255, 255, 255, .22) 2.2px, transparent 2.8px) 0 0 / 24px 24px;
}
#app { position: relative; z-index: 1; }
.bg-deco { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-deco i { position: absolute; font-style: normal; font-size: 2.2rem; opacity: .75; animation: floaty 7s ease-in-out infinite; }
.bg-deco i:nth-child(1) { top: 18%; left: 5%; }
.bg-deco i:nth-child(2) { top: 62%; left: 92%; animation-delay: -2s; font-size: 2.8rem; }
.bg-deco i:nth-child(3) { top: 40%; left: 3%; animation-delay: -4s; }
.bg-deco i:nth-child(4) { top: 8%; left: 88%; animation-delay: -1s; }
.bg-deco i:nth-child(5) { top: 78%; left: 8%; animation-delay: -3s; font-size: 2.6rem; }
.bg-deco i:nth-child(6) { top: 30%; left: 94%; animation-delay: -5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-22px) rotate(8deg); } }

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; touch-action: manipulation; }
input, textarea { font: inherit; -webkit-user-select: text; user-select: text; }
h1, h2 { font-family: var(--display); font-weight: 400; }
h2 { margin: 28px 2px 12px; font-size: 1.7rem; color: #fff; text-shadow: 3px 3px 0 var(--ink); letter-spacing: .3px; }
h2 small { font-family: 'Rubik', sans-serif; font-size: .9rem; color: #fff; opacity: .9; text-shadow: none; font-weight: 500; }
.note { color: #fff; margin: 6px 2px; font-weight: 500; text-shadow: 1px 1px 0 rgba(29, 16, 66, .5); }
.row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.hidden { display: none !important; }
.loading { font-size: 70px; text-align: center; padding-top: 30vh; }

main { max-width: 1000px; margin: 0 auto; padding: 14px 16px 130px; box-sizing: border-box; width: 100%; }

/* ---------- buttons ---------- */
.btn {
  background: var(--white); border: var(--bd); border-radius: 18px; padding: 11px 18px; font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--sh-sm); transition: transform .08s, box-shadow .08s; color: var(--ink);
}
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .4; }
.btn.big { font-size: 1.25rem; padding: 14px 24px; border-radius: 22px; box-shadow: 4px 4px 0 var(--ink); }
.btn.primary { background: var(--yellow); }
.btn.round { width: 52px; height: 52px; padding: 0; border-radius: 50%; font-size: 1.3rem; flex: none; display: grid; place-items: center; }
.btn.round.home { background: var(--yellow); font-size: 1.5rem; }
.btn.help { color: var(--purple); font-size: 1.5rem; }
.btn.mini { padding: 5px 10px; font-size: 1rem; border-radius: 12px; box-shadow: 2px 2px 0 var(--ink); }
.btn.ghost { background: rgba(255, 255, 255, .25); border: 2.5px dashed #fff; box-shadow: none; color: #fff; }
.how .btn.ghost, .card .btn.ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.danger-soft { background: #ffd3dc; color: #b0123a; }

/* ---------- header / nav ---------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: var(--bd);
}
.top h1 { flex: 1; margin: 0; font-size: 1.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.logo { flex: 1; font-family: var(--display); font-size: 1.6rem; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo b { font-weight: 400; background: linear-gradient(90deg, var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--pink); border: var(--bd); box-shadow: var(--sh-sm); font-size: 1.4rem; transform: rotate(-6deg); }
.stats { display: flex; gap: 8px; align-items: center; }
.pill { background: #fff; border: var(--bd); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 1.05rem; white-space: nowrap; box-shadow: 2px 2px 0 var(--ink); }
.pill.level { background: var(--purple); color: #fff; display: flex; align-items: center; gap: 8px; }
.pill.level i { display: block; width: 46px; height: 9px; border-radius: 8px; background: rgba(255, 255, 255, .35); border: 2px solid var(--ink); overflow: hidden; }
.pill.level i b { display: block; height: 100%; background: var(--yellow); }
.stats .pill:nth-child(3) { background: var(--orange); }

nav.bottom {
  position: fixed; bottom: calc(10px + env(safe-area-inset-bottom)); left: 14px; right: 14px; z-index: 10; display: flex; justify-content: space-around; gap: 6px;
  background: #fff; border: var(--bd); border-radius: 28px; box-shadow: var(--sh); padding: 6px;
}
nav.bottom button { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: .9rem; font-weight: 700; padding: 4px 8px; border-radius: 20px; color: var(--ink2); border: 3px solid transparent; }
nav.bottom button span { font-size: 1.6rem; }
nav.bottom button.on { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }

/* ---------- tips & guides ---------- */
.tip {
  display: flex; gap: 10px; align-items: flex-start; background: #fff3a6; border: var(--bd); box-shadow: var(--sh-sm);
  color: var(--ink); border-radius: 18px; padding: 10px 14px; margin: 8px 0 12px; font-size: 1.05rem; line-height: 1.45; font-weight: 500;
}
.tip span { flex: none; }
button.tip { width: 100%; text-align: right; }
.tip .tip-say { margin-right: auto; opacity: .7; }
.guide { margin-top: 16px; background: #fff; border: var(--bd); box-shadow: var(--sh); border-radius: var(--radius); padding: 14px 16px; }
.guide-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 1.15rem; }
.guide-head b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.guide-head span { color: var(--ink2); font-size: .95rem; font-weight: 500; }
.path { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; }
.path li { display: flex; align-items: center; gap: 6px; border: var(--bd); border-radius: 999px; padding: 5px 12px 5px 6px; font-size: .95rem; font-weight: 700; box-shadow: 2px 2px 0 var(--ink); }
.path li:nth-child(1) { background: #ffd3e8; } .path li:nth-child(2) { background: #c9f6ff; } .path li:nth-child(3) { background: #e2d5ff; }
.path li:nth-child(4) { background: #d8ffb0; } .path li:nth-child(5) { background: #ffe0b8; }
.path li span, h2.step span {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: .9rem;
}
h2.step { display: flex; align-items: center; gap: 10px; }
h2.step span { width: 36px; height: 36px; font-size: 1.1rem; background: var(--yellow); color: var(--ink); border: var(--bd); text-shadow: none; box-shadow: 2px 2px 0 var(--ink); font-family: 'Rubik', sans-serif; }

/* ---------- stage + singer ---------- */
.stage {
  position: relative; border-radius: 30px; overflow: hidden; height: 290px; border: 4px solid var(--ink); box-shadow: 7px 7px 0 var(--ink);
  display: flex; align-items: flex-end; justify-content: center;
}
.stage.small { height: 240px; }
.stage.full { height: 340px; }
.stage > .scene, .player-stage > .scene, .scene-pic > .scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .spot {
  position: absolute; top: -40px; left: 50%; width: 320px; height: 420px; transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(255, 255, 220, .6), transparent 70%); pointer-events: none;
}
.stage .floor { position: absolute; bottom: 0; left: 0; right: 0; height: 38px; background: linear-gradient(#2c1559, #0e0522); border-top: 4px solid var(--edge, #ffd633); box-shadow: 0 -6px 18px color-mix(in srgb, var(--edge, #ffd633) 55%, transparent); }
.stage .floor::after { content: ''; position: absolute; left: 50%; top: 4px; width: 60%; height: 18px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(255,255,255,.28), transparent 70%); }
.stage .singer { position: relative; z-index: 2; margin-bottom: 12px; animation: sway 4s ease-in-out infinite; transform-origin: bottom center; }
.stage.celebrate .singer, .singer.bounce { animation: bounce .5s ease-in-out 3; }
.stage.live .singer { animation: bounce .45s ease-in-out infinite; }
.stage.live .spot { animation: spot 1.2s ease-in-out infinite alternate; }
.stage .on-stage { position: absolute; z-index: 3; bottom: 54px; left: 16px; background: var(--pink); color: #fff; font-size: 1.25rem; }
.stage .crowd { position: absolute; z-index: 3; bottom: 0; left: 0; width: 100%; height: 64px; display: block; }
.stage .crowd .phone { filter: drop-shadow(0 0 5px #fff6a8); }
.stage.live .crowd { animation: cheer .4s ease-in-out infinite alternate; }
.avatar .mic { animation: wiggle 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

@keyframes sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes cheer { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes spot { from { transform: translateX(-70%); } to { transform: translateX(-30%); } }

/* ---------- home ---------- */
.warmup {
  display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 16px; padding: 16px 18px;
  border-radius: var(--radius); font-size: 1.25rem; font-weight: 800; background: var(--orange); color: var(--ink); border: var(--bd); box-shadow: var(--sh);
  animation: pulse 1.8s infinite;
}
.warmup span { background: var(--yellow); border: var(--bd); border-radius: 999px; padding: 2px 12px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
.songs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.song-card {
  position: relative; background: var(--c, var(--pink)); border: var(--bd); border-radius: var(--radius); padding: 12px 12px 14px;
  text-align: center; box-shadow: var(--sh); transition: transform .12s;
}
.song-card:nth-child(odd) { transform: rotate(-1.2deg); }
.song-card:nth-child(even) { transform: rotate(1.2deg); }
.song-card:active { transform: scale(.96) rotate(0); box-shadow: 2px 2px 0 var(--ink); }
.song-emoji { width: 92px; height: 92px; margin: 0 auto 10px; border-radius: 50%; background: #fff; border: var(--bd); display: grid; place-items: center; font-size: 3.2rem; box-shadow: var(--sh-sm); }
.song-he { background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; padding: 5px 8px; font-family: var(--display); font-size: 1.1rem; line-height: 1.25; }
.song-en { color: var(--ink); font-size: .85rem; font-weight: 700; margin: 6px 0 10px; opacity: .85; }
.bar { height: 12px; border-radius: 12px; background: #fff; border: 2.5px solid var(--ink); overflow: hidden; }
.bar div { height: 100%; background: var(--ink); }
.crowns { position: absolute; top: 10px; left: 12px; font-size: 1.3rem; }

/* ---------- song ---------- */
.video { max-width: 760px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16/9; border: 4px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); }
.video iframe { width: 100%; height: 100%; border: 0; }
.novideo { color: #fff; display: grid; place-items: center; height: 100%; font-size: 1.3rem; text-align: center; padding: 20px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.actions.one { grid-template-columns: 1fr; }
.actions .learn { background: var(--cyan); }
.actions .print { background: var(--lime); }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.game-card { border: var(--bd); border-radius: var(--radius); padding: 14px 8px; font-weight: 800; font-size: 1.05rem; box-shadow: var(--sh); display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .08s; }
.game-card:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.game-card span { font-size: 2.5rem; }
.game-card:nth-child(6n+1) { background: #ffd3e8; } .game-card:nth-child(6n+2) { background: #c9f6ff; } .game-card:nth-child(6n+3) { background: #fff3a6; }
.game-card:nth-child(6n+4) { background: #d8ffb0; } .game-card:nth-child(6n+5) { background: #ffe0b8; } .game-card:nth-child(6n) { background: #e2d5ff; }
.lyrics { background: #fff; border: var(--bd); box-shadow: var(--sh); border-radius: var(--radius); padding: 8px 16px; }
.line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 2px dashed #d9cdf5; }
.line:last-child { border: 0; }
.line > div { flex: 1; }
.line .en { font-size: 1.3rem; text-align: left; font-weight: 500; }
.line .he { color: var(--ink2); font-size: 1rem; margin-top: 2px; }
.w { border-radius: 6px; }
.w.known { padding: 0 4px; background: var(--yellow); border-bottom: 3px solid var(--ink); font-weight: 800; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip { background: #fff; border: var(--bd); border-radius: 999px; padding: 7px 16px; font-size: 1.05rem; font-weight: 700; box-shadow: 2px 2px 0 var(--ink); }
.chip.lvl2 { background: #fff3a6; }
.chip.lvl3 { background: #d8ffb0; }
.chip.glow { background: var(--pink); color: #fff; transform: scale(1.12); transition: .2s; }

/* ---------- popups / cards ---------- */
.popup { position: fixed; inset: 0; z-index: 50; background: rgba(29, 16, 66, .6); display: grid; place-items: center; padding: 20px; }
.card { background: #fff; border: 4px solid var(--ink); border-radius: 28px; padding: 24px 32px; text-align: center; min-width: 280px; box-shadow: 8px 8px 0 var(--ink); }
.pic-big { font-size: 5.5rem; line-height: 1.1; }
.popup .en, .flash .en { font-family: var(--display); font-size: 2.6rem; color: var(--pink); text-shadow: 2px 2px 0 var(--ink); }
.popup .he, .flash .he { font-size: 1.8rem; font-weight: 800; }
.pop-in { animation: popin .35s cubic-bezier(.2, 1.6, .5, 1); }
@keyframes popin { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.how-wrap { display: grid; place-items: center; min-height: 70vh; }
.how { max-width: 560px; width: 100%; text-align: right; }
.how-icon { font-size: 3.6rem; text-align: center; }
.how h2 { text-align: center; margin: 6px 0 2px; font-size: 1.9rem; color: var(--ink); text-shadow: none; }
.how-label { text-align: center; color: #fff; background: var(--purple); border: var(--bd); display: table; margin: 0 auto 12px; padding: 2px 16px; border-radius: 999px; font-weight: 800; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; align-items: center; gap: 12px; border: var(--bd); border-radius: 16px; padding: 10px 14px; margin-bottom: 10px; font-size: 1.2rem; line-height: 1.4; font-weight: 500; box-shadow: 2px 2px 0 var(--ink); }
.steps li:nth-child(1) { background: #ffd3e8; } .steps li:nth-child(2) { background: #c9f6ff; } .steps li:nth-child(3) { background: #d8ffb0; }
.steps li span { font-size: 1.8rem; flex: none; }

/* ---------- learn ---------- */
.learn { text-align: center; }
.dots { display: flex; justify-content: center; gap: 8px; margin: 8px 0 18px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); }
.dots i.on { background: var(--yellow); }
.flash { display: block; margin: 0 auto; width: min(440px, 100%); background: #fff; border: 4px solid var(--ink); border-radius: 30px; padding: 26px; box-shadow: 8px 8px 0 var(--ink); }
.flash .pic-big { font-size: 8rem; }

/* ---------- games ---------- */
.game { text-align: center; padding-top: calc(12px + env(safe-area-inset-top)); }
.game-top { display: flex; align-items: center; gap: 10px; }
.progress { flex: 1; height: 20px; background: #fff; border: var(--bd); border-radius: 20px; overflow: hidden; }
.progress div { height: 100%; background: repeating-linear-gradient(45deg, var(--lime) 0 12px, #6fe02a 12px 24px); transition: width .4s; }
.game-title { display: table; margin: 16px auto 8px; background: #fff; border: var(--bd); border-radius: 999px; padding: 4px 20px; font-family: var(--display); font-size: 1.3rem; box-shadow: var(--sh-sm); }
.hint { color: #fff; font-size: 1.15rem; font-weight: 700; margin: 6px 0 14px; text-shadow: 2px 2px 0 var(--ink); }
.big-speaker { font-size: 3.4rem; width: 124px; height: 124px; border-radius: 50%; background: var(--yellow); border: 4px solid var(--ink); box-shadow: var(--sh); margin: 10px auto 6px; display: block; animation: pulse 1.4s infinite; }
.big-speaker:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 210px)); gap: 18px; justify-content: center; }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 190px)); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 200px)); } }
.tile { background: #fff; border: 4px solid var(--ink); border-radius: 26px; box-shadow: var(--sh); aspect-ratio: 1; font-size: 4.6rem; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .1s; }
.tile:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.tile.small { font-size: 3.4rem; }
.tile .label { font-size: 1.1rem; font-weight: 800; margin-top: 4px; direction: ltr; }
.tile.right, .btn.right, .mt.right { background: var(--lime) !important; animation: popin .3s; }
.tile.wrong, .btn.wrong, .mt.wrong, .line-btn.wrong { background: #ffc2cf !important; animation: shake .35s; opacity: .85; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

.question.he-word { font-family: var(--display); font-size: 3rem; margin: 10px 0; color: #fff; text-shadow: 4px 4px 0 var(--ink); }
.choices { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.choice { display: flex; gap: 10px; }
.choice .speaker { font-size: 1.5rem; width: 68px; background: var(--cyan); }
.choice .word { font-size: 1.9rem; min-width: 260px; direction: ltr; }

.match { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 700px; margin: 0 auto; }
.match .col { display: flex; flex-direction: column; gap: 12px; }
.mt { background: #fff; border: var(--bd); border-radius: 18px; padding: 16px 10px; font-size: 1.5rem; font-weight: 800; box-shadow: var(--sh-sm); }
.mt.sel { background: var(--cyan); }
.col.en .mt { direction: ltr; }

.lyric-q { font-size: 1.9rem; font-weight: 700; background: #fff; border: 4px solid var(--ink); border-radius: 24px; padding: 20px; max-width: 760px; margin: 10px auto; box-shadow: var(--sh); }
.lyric-q .blank { display: inline-block; min-width: 90px; border-bottom: 5px solid var(--pink); color: var(--pink); }
.lyric-he { color: #fff; font-size: 1.15rem; margin-bottom: 12px; font-weight: 500; text-shadow: 1px 1px 0 var(--ink); }

.placed { text-align: left; max-width: 700px; margin: 0 auto 10px; font-size: 1.25rem; color: #fff; font-weight: 800; text-shadow: 2px 2px 0 var(--ink); }
.lines { display: flex; flex-direction: column; gap: 12px; max-width: 700px; margin: 0 auto; }
.line-btn { background: #fff; border: var(--bd); border-radius: 18px; padding: 14px 18px; font-size: 1.3rem; text-align: left; box-shadow: var(--sh-sm); font-weight: 700; }
.line-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.line-btn small { display: block; color: var(--ink2); font-size: 1rem; text-align: right; font-weight: 500; }

/* microphone game */
.mic-big { display: grid; place-items: center; width: 140px; height: 140px; margin: 22px auto 8px; border-radius: 50%; background: var(--pink); border: 4px solid var(--ink); font-size: 4rem; box-shadow: var(--sh); transition: .2s; }
.mic-big:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.mic-big.waiting { opacity: .75; }
.mic-big.listening { background: var(--red); animation: ring 1s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 5px 5px 0 var(--ink), 0 0 0 0 rgba(255, 255, 255, .8); } 100% { box-shadow: 5px 5px 0 var(--ink), 0 0 0 34px rgba(255, 255, 255, 0); } }
.mic-label { display: table; margin: 0 auto; font-size: 1.15rem; font-weight: 800; color: var(--ink); background: var(--cyan); border: var(--bd); border-radius: 999px; padding: 2px 16px; min-height: 1.6em; }
.heard { min-height: 50px; font-size: 1.25rem; margin: 12px auto; max-width: 600px; line-height: 1.5; color: #fff; font-weight: 700; text-shadow: 1px 1px 0 var(--ink); }
.heard b { color: var(--yellow); }
.mic-note { max-width: 520px; margin: 6px auto; color: #fff; font-size: .95rem; text-shadow: 1px 1px 0 var(--ink); }
.heard .fix, .mictest .fix, .mic-note .fix { margin: 8px auto 0; max-width: 560px; text-align: right; font-size: .95rem; background: #fff3a6; color: var(--ink); text-shadow: none; border: var(--bd); border-radius: 14px; padding: 8px 12px; line-height: 1.6; font-weight: 500; }
.heard small.code, .mictest small.code { display: block; margin-top: 6px; opacity: .8; font-size: .8rem; }
div.level { width: 180px; height: 10px; margin: 4px auto 8px; border-radius: 8px; background: #fff; border: 2.5px solid var(--ink); overflow: hidden; }
div.level i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .08s; }

.fly-star { position: fixed; z-index: 60; font-size: 3rem; pointer-events: none; animation: fly .9s ease-in forwards; }
@keyframes fly { to { transform: translate(calc(-50vw + 100px), -80vh) scale(.4); opacity: .2; } }
.confetti { position: fixed; top: -40px; z-index: 60; pointer-events: none; animation: fall 2.6s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

/* ---------- result ---------- */
.result { text-align: center; }
.big-text { font-family: var(--display); font-size: 3.4rem; color: #fff; text-shadow: 4px 4px 0 var(--ink); margin-top: 16px; }
.earned { display: table; margin: 8px auto; background: var(--yellow); border: var(--bd); border-radius: 999px; padding: 4px 26px; font-family: var(--display); font-size: 2.2rem; box-shadow: var(--sh); }

/* ---------- closet ---------- */
.tabs { display: flex; gap: 8px; margin: 14px 0 16px; overflow-x: auto; padding: 4px 4px 8px; }
.tabs button { flex: 1; background: #fff; border: var(--bd); border-radius: 18px; padding: 8px 6px; font-size: 1rem; font-weight: 800; min-width: 80px; box-shadow: var(--sh-sm); }
.tabs button.on { background: var(--yellow); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.item { position: relative; background: #fff; border: var(--bd); border-radius: 22px; padding: 10px 10px 12px; box-shadow: var(--sh-sm); display: flex; flex-direction: column; align-items: center; gap: 3px; overflow: hidden; transition: transform .15s; }
.item:active { transform: scale(.97); }
.item .pic { width: 100%; height: 132px; border-radius: 16px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; position: relative;
  background: radial-gradient(circle at 50% 30%, #ffffff 0, #ffe3f3 45%, #e6dcff 100%); border: 2px solid rgba(27,21,48,.12); margin-bottom: 6px; }
.item .pic .avatar { margin-bottom: -10px; flex: none; }
.items:not(.outfit):not(.stage) .item .pic { align-items: flex-start; }
.items:not(.outfit):not(.stage) .item .pic .avatar { margin-top: -8px; }
.item .scene-pic { background: #1b1530; }
.item.on { background: linear-gradient(160deg, #fff6a8, #ffd1ea); }
.item.on::after { content: '✔'; position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; border-radius: 50%; background: #2ad37a; color: #fff; font-weight: 900; display: grid; place-items: center; border: var(--bd); }
.item.locked .pic { filter: saturate(.55) brightness(.92); }
.item.locked.can .pic { filter: none; }
.item.locked.can { animation: canbuy 1.8s ease-in-out infinite; }
.item .nm { font-weight: 800; font-size: 1.05rem; }
.item .en { color: var(--ink2); font-size: .9rem; }
.item .price { font-weight: 800; color: #fff; background: var(--pink); border-radius: 999px; padding: 2px 12px; margin-top: 4px; border: 2px solid var(--ink); }
.item.has .price { background: #18d6ff; color: var(--ink); }
.item.on .price { background: #2ad37a; color: #fff; }
.item.locked:not(.can) .price { background: #8f86a8; }
@keyframes canbuy { 0%, 100% { box-shadow: var(--sh-sm); } 50% { box-shadow: 0 0 0 4px #ffd633, var(--sh-sm); } }

/* ---------- concert ---------- */
.concert { text-align: center; }
.concert #show { margin-top: 6px; }

/* ---------- welcome ---------- */
.welcome { text-align: center; padding-top: calc(30px + env(safe-area-inset-top)); }
.welcome h1 { font-size: 3rem; margin: 22px 0 6px; color: #fff; text-shadow: 4px 4px 0 var(--ink); }
.welcome p { font-size: 1.3rem; color: #fff; font-weight: 700; text-shadow: 2px 2px 0 var(--ink); }

/* ---------- parent ---------- */
.parent.gate { text-align: center; font-size: 1.3rem; color: #fff; font-weight: 700; text-shadow: 2px 2px 0 var(--ink); }
.parent input, .parent textarea { width: 100%; padding: 12px; border-radius: 14px; border: var(--bd); font-size: 1.05rem; background: #fff; color: var(--ink); margin-top: 4px; }
.parent.gate input { max-width: 200px; text-align: center; font-size: 1.7rem; display: block; margin: 10px auto 16px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { border: var(--bd); border-radius: 18px; padding: 14px; text-align: center; color: var(--ink); font-weight: 700; box-shadow: var(--sh-sm); }
.stat:nth-child(1) { background: #d8ffb0; } .stat:nth-child(2) { background: #c9f6ff; } .stat:nth-child(3) { background: #ffe0b8; } .stat:nth-child(4) { background: #fff3a6; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.1rem; }
.week { display: flex; gap: 8px; align-items: flex-end; background: #fff; border: var(--bd); box-shadow: var(--sh-sm); border-radius: 18px; padding: 14px; }
.week div { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: .85rem; font-weight: 700; }
.week i { width: 70%; background: var(--pink); border: 2.5px solid var(--ink); border-radius: 6px 6px 2px 2px; }
.wordtable { background: #fff; border: var(--bd); box-shadow: var(--sh-sm); border-radius: 18px; padding: 8px 14px; max-height: 360px; overflow: auto; }
.wr { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 2px dashed #d9cdf5; }
.wr:last-child { border: 0; }
.wr b { min-width: 90px; }
.wr .lv { color: var(--purple); letter-spacing: 2px; margin-right: auto; font-weight: 800; }
.add { display: grid; gap: 12px; background: #fff; border: var(--bd); box-shadow: var(--sh-sm); border-radius: 18px; padding: 16px; }
.add label { display: block; font-weight: 700; }
.tips { color: #fff; font-weight: 500; text-shadow: 1px 1px 0 rgba(29, 16, 66, .6); }
.tips li { margin-bottom: 8px; }
.warn { background: #fff3a6; border: var(--bd); padding: 12px; border-radius: 14px; font-weight: 500; }
.reset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.reset-grid .big { grid-column: 1 / -1; }
details.persong { margin-top: 14px; background: #fff; border: var(--bd); box-shadow: var(--sh-sm); border-radius: 16px; padding: 10px 14px; }
details.persong summary { cursor: pointer; font-weight: 800; padding: 6px 0; }
.mictest .checks { list-style: none; padding: 0; }
.mictest .checks li { background: #fff; border: var(--bd); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--sh-sm); }
.mictest .result { margin-top: 8px; min-height: 1.4em; color: #fff; font-weight: 700; text-shadow: 1px 1px 0 var(--ink); }
.toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); z-index: 80; background: var(--lime); border: var(--bd); color: var(--ink); font-weight: 800; padding: 12px 26px; border-radius: 999px; box-shadow: var(--sh); animation: popin .25s; }

/* ---------- printable sheet (always white paper) ---------- */
.print-help { max-width: 800px; margin: 10px auto; padding: 0 16px; text-align: center; font-size: 1.1rem; color: #fff; font-weight: 700; text-shadow: 2px 2px 0 var(--ink); }
.sheet { background: #fff; max-width: 800px; margin: 16px auto 60px; padding: 28px; border: 4px solid var(--ink); border-radius: 14px; box-shadow: var(--sh); color: #000; }
.sheet-head { display: flex; align-items: center; gap: 14px; font-size: 1.3rem; border-bottom: 3px solid #000; padding-bottom: 10px; }
.sheet-head > span:first-child { font-size: 3rem; }
.sheet-head .nm { margin-right: auto; }
.sheet table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.sheet td { padding: 8px 6px; border-bottom: 1px solid #ccc; vertical-align: middle; }
.sheet td.pic { font-size: 2.6rem; width: 70px; text-align: center; }
.sheet td.trace { font-size: 2.6rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px #888; letter-spacing: 4px; width: 32%; text-align: left; }
.sheet td.write div { height: 46px; background: repeating-linear-gradient(#fff 0 22px, #bbb 22px 23px, #fff 23px 45px, #555 45px 46px); }
.sheet td.he { width: 110px; font-size: 1.2rem; }
.sheet .draw { margin-top: 18px; font-size: 1.2rem; }
.sheet .draw .box { height: 200px; border: 3px dashed #999; border-radius: 16px; margin-top: 8px; }
.sheet-foot { margin-top: 14px; font-size: 1rem; color: #444; }

@media print {
  body { background: #fff; }
  body::before, .bg-deco { display: none; }
  .noprint, nav.bottom { display: none !important; }
  .sheet { box-shadow: none; margin: 0; max-width: none; border: 0; }
  main { padding: 0; }
}

@media (max-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tiles.three { grid-template-columns: repeat(3, 1fr); }
  .tile { font-size: 3.4rem; }
  .choice .word { min-width: 180px; font-size: 1.6rem; }
  .stage { height: 250px; }
  .pill.level i { display: none; }
}

/* ---------- pop zone: concert poster + album-style cards (aimed a bit older) ---------- */
.pop-zone {
  position: relative; margin-top: 30px; padding: 0 16px 24px; overflow: hidden;
  background: linear-gradient(180deg, #12052a 0%, #2a0b56 55%, #12052a 100%);
  border: 4px solid var(--ink); border-radius: 30px; box-shadow: 7px 7px 0 var(--ink);
}
.pop-zone .songs { position: relative; z-index: 2; margin-top: 18px; gap: 26px; }
.pop-poster { position: relative; margin: 0 -16px; height: 300px; overflow: hidden; border-bottom: 3px solid #ff3d9a; }
.song .pop-poster { margin: 0 0 18px; height: 260px; border: 4px solid var(--ink); border-radius: 26px; box-shadow: 7px 7px 0 var(--ink); }
.pop-poster svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pop-sign { position: absolute; top: 22px; right: 24px; text-align: right; color: #fff; max-width: 40%; }
.pop-sign .neon {
  display: inline-block; font-family: 'Rubik', sans-serif; font-weight: 800; letter-spacing: 6px; font-size: .95rem;
  color: #fff; padding: 3px 12px; border: 2px solid #ff7cc4; border-radius: 8px;
  text-shadow: 0 0 6px #ff3d9a, 0 0 14px #ff3d9a; box-shadow: 0 0 10px #ff3d9a, inset 0 0 8px #ff3d9a;
}
.pop-sign b {
  display: block; margin-top: 8px; font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1.1;
  color: #fff; text-shadow: 0 0 10px #b06bff, 0 0 26px #ff3d9a, 3px 3px 0 var(--ink);
  overflow-wrap: anywhere;
}
.pop-sign small { display: block; margin-top: 4px; font-size: 1rem; font-weight: 600; color: #ffd9f0; text-shadow: 0 1px 2px #000; }

.song-card.pop {
  transform: none; isolation: isolate; padding: 14px 14px 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .45)), var(--c);
  border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 3px var(--ink), 0 0 26px var(--c);
}
.song-card.pop:active { transform: scale(.97); }
.song-card.pop .song-emoji {
  width: 100%; height: auto; aspect-ratio: 1.25; border-radius: 16px; font-size: 4.2rem; border: 2px solid rgba(255, 255, 255, .7);
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 55%), linear-gradient(135deg, #1a0838, #3b0f6e);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .5); filter: saturate(1.2);
}
.song-card.pop .song-he { background: rgba(10, 2, 30, .55); color: #fff; border: 2px solid rgba(255, 255, 255, .75); margin-top: 10px; }
.song-card.pop .song-en { color: #fff; opacity: .95; }
.song-card.pop .bar { background: rgba(255, 255, 255, .25); border-color: rgba(255, 255, 255, .8); }
.song-card.pop .bar div { background: var(--yellow); }
.vinyl {
  position: absolute; z-index: -1; top: 26px; left: -34px; width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0 13px, #111 14px 16px, transparent 17px), repeating-radial-gradient(circle, #151515 0 2px, #2a2a2a 2px 4px);
  border: 3px solid var(--ink); animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .pop-poster { height: 230px; }
  .pop-sign b { font-size: 2rem; }
}
/* narrow phones: keep the header counters on screen */
@media (max-width: 520px) {
  .logo b { display: none; }
  .stats { gap: 5px; }
  .pill { padding: 3px 8px; font-size: .95rem; }
  .top h1 { font-size: 1.2rem; }
  .pop-sign { max-width: 58%; top: 14px; right: 14px; }
  .pop-sign .neon { letter-spacing: 3px; font-size: .75rem; white-space: nowrap; }
  .pop-sign b { font-size: 1.7rem; }
  .pop-sign small { font-size: .85rem; }
}

/* ---------- players: who's playing? ---------- */
.player-chip {
  display: flex; align-items: center; gap: 6px; background: #fff; border: var(--bd); border-radius: 999px;
  padding: 2px 12px 2px 4px; font-weight: 800; box-shadow: 2px 2px 0 var(--ink); max-width: 170px;
}
.player-chip .mini { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); overflow: hidden; border: 2px solid var(--ink); }
.player-chip .mini svg { width: 26px; height: auto; margin-top: 8px; }
.player-chip b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-chip i { font-style: normal; color: var(--purple); }
.who { text-align: center; padding-top: calc(24px + env(safe-area-inset-top)); }
.who-title { font-size: 2.6rem; color: #fff; text-shadow: 4px 4px 0 var(--ink); margin: 10px 0 26px; }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; max-width: 760px; margin: 0 auto; }
.player {
  background: #fff; border: 4px solid var(--ink); border-radius: 28px; box-shadow: 7px 7px 0 var(--ink); padding: 14px 14px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .1s;
}
.player:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.player-stage { position: relative; width: 100%; height: 170px; border-radius: 20px; border: 3px solid var(--ink); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.player-stage .avatar { position: relative; margin-bottom: -4px; }
.player b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; }
.player span { color: var(--ink2); font-weight: 700; }
.player.add { background: var(--yellow); justify-content: center; min-height: 260px; }
.player.add .plus { font-size: 4rem; color: var(--ink); }
.name-input { display: block; margin: 10px auto 6px; width: min(340px, 90%); text-align: center; font-size: 1.8rem; font-weight: 800; padding: 12px; border: 4px solid var(--ink); border-radius: 20px; box-shadow: var(--sh); color: var(--ink); background: #fff; }
.players-admin .wr .lv { color: var(--good, #2ec27e); font-size: .9rem; letter-spacing: 0; }
@media (max-width: 520px) { .player-chip b { display: none; } }

/* ---------- add a song ---------- */
.add-song-big {
  display: flex; align-items: center; gap: 16px; width: 100%; margin-top: 18px; padding: 16px 20px; text-align: right;
  background: var(--lime); border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: 7px 7px 0 var(--ink);
}
.add-song-big:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.add-song-big .plus { display: grid; place-items: center; flex: none; width: 74px; height: 74px; border-radius: 50%; background: #fff; border: var(--bd); font-size: 2.6rem; box-shadow: var(--sh-sm); }
.add-song-big b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.8rem; }
.add-song-big small { display: block; font-size: 1.05rem; font-weight: 600; }
.song-card.add-card-small { background: #fff; border-style: dashed; }
.song-card.add-card-small .song-emoji { background: var(--lime); }
.addsong { text-align: center; }
.add-box h2, .found-card h2 { color: var(--ink); text-shadow: none; margin: 6px 0; }
.add-help { font-size: 1.1rem; font-weight: 500; }
.name-input.small { font-size: 1.05rem; font-weight: 500; }
.yt-link { margin-top: 12px; font-weight: 700; color: var(--ink2); }
.yt-link summary { cursor: pointer; }
.find-status { min-height: 1.6em; margin-top: 12px; font-size: 1.2rem; font-weight: 700; }
.find-status small.code { display: block; font-size: .8rem; opacity: .6; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
.found { margin-top: 22px; }
.found-art { width: min(360px, 90%); margin: 0 auto 10px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: var(--bd); box-shadow: var(--sh-sm); background: #1a0838; display: grid; place-items: center; font-size: 4rem; }
.found-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.found-artist { font-size: 1.2rem; font-weight: 700; color: var(--ink2); margin: 0; }
.found-he { font-size: 1.3rem; font-weight: 800; margin: 4px 0 0; }
.note-dark { color: var(--ink2); font-weight: 500; }
.found-card .chips { justify-content: center; }
.video { position: relative; }
/* iPad Safari sizes an iframe by its content unless it is pinned: keep the player exactly inside its box. */
.video .yt-slot, .video iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: 100%; display: block; border: 0; }
.novideo.small { font-size: 1.1rem; gap: 14px; align-content: center; }
.novideo .btn { display: inline-block; margin-top: 12px; background: #ff0033; color: #fff; text-decoration: none; }

/* ---------- song pictures from YouTube ---------- */
.song-card { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.song-thumb { position: relative; width: 100%; aspect-ratio: 16/9; margin: 0 0 10px; border-radius: 16px; overflow: hidden; border: var(--bd); background: #1b1530; box-shadow: var(--sh-sm); }
.song-thumb::before { content: attr(data-emoji); position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; }
.song-thumb img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; pointer-events: none; }
.song-thumb .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 34px; border-radius: 10px; background: rgba(255, 0, 51, .92); color: #fff; display: grid; place-items: center; font-size: 1rem; padding-left: 3px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.song-thumb .badge { position: absolute; bottom: 6px; right: 6px; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); display: grid; place-items: center; font-size: 1.3rem; }
.song-card.pop .song-thumb { border: 2px solid rgba(255, 255, 255, .8); }
.drag-hint { margin: -4px 0 12px; font-weight: 700; color: #fff; text-shadow: 1px 1px 0 var(--ink); }

/* ---------- drag a song to the bin ---------- */
.song-card.drag-src { opacity: .25; }
.drag-ghost { position: fixed !important; z-index: 1000; margin: 0; pointer-events: none; transform: rotate(-4deg) scale(1.05) !important; box-shadow: 12px 16px 0 rgba(0, 0, 0, .35) !important; transition: none; }
.drag-ghost.into-bin { transition: transform .35s ease-in, opacity .35s; transform: scale(.1) rotate(40deg) !important; opacity: 0; }
body.dragging-song { overflow: hidden; touch-action: none; }
.drag-bin {
  position: fixed; z-index: 999; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 14px 26px; border-radius: 999px; background: #fff; border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink); font-size: 1.15rem; animation: binIn .25s ease-out; white-space: nowrap;
}
.drag-bin .lid { font-size: 2.6rem; transition: transform .15s; }
.drag-bin.hot { background: #ff3d5a; color: #fff; transform: translateX(-50%) scale(1.12); }
.drag-bin.hot .lid { transform: rotate(-18deg) translateY(-4px); }
.drag-bin.eat .lid { animation: binEat .35s ease-in-out; }
@keyframes binIn { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
@keyframes binEat { 50% { transform: scale(1.4); } }

/* ---------- karaoke ---------- */
.karaoke-card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 0 14px; width: 100%;
  margin: 18px 0 6px; padding: 16px 20px; text-align: right; color: #fff; border: 4px solid var(--ink); border-radius: 24px; box-shadow: 7px 7px 0 var(--ink);
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .25), transparent 40%), linear-gradient(120deg, #ff3d9a, #8a4fff 60%, #18d6ff);
}
.karaoke-card .k-mic { grid-row: 1 / 3; font-size: 2.8rem; width: 72px; height: 72px; display: grid; place-items: center; background: #1b1530; border-radius: 50%; border: 3px solid #fff; }
.karaoke-card b { font-family: var(--display); font-size: 1.7rem; text-shadow: 2px 2px 0 var(--ink); }
.karaoke-card small { font-size: 1rem; font-weight: 700; }
.karaoke-card .k-go { grid-row: 1 / 3; grid-column: 3; font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; background: #fff; color: var(--ink); border-radius: 50%; border: 3px solid var(--ink); }
.karaoke .k-title { color: #fff; text-shadow: 3px 3px 0 var(--ink); }
.karaoke .k-title small { display: block; font-size: 1rem; opacity: .9; }
.chip.sang { background: #2ad37a; color: #fff; }
.sing-box { text-align: center; margin: 18px 0 30px; }
.sing-btn { background: #ff2e4d; color: #fff; font-size: 1.5rem; padding: 18px 40px; animation: pulse 1.6s infinite; }
.sing-live { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; background: #1b1530; color: #fff; border: var(--bd); border-radius: 24px; padding: 14px 20px; box-shadow: var(--sh); }
.sing-live[hidden], .sing-btn[hidden] { display: none; }
.sing-live b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.sing-live .meter { width: 160px; height: 18px; border-radius: 10px; background: #3b3356; overflow: hidden; border: 2px solid #fff; }
.sing-live .meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2ad37a, #ffd633, #ff3d5a); transition: width .08s; }
.sing-live::before { content: '🔴 מקליטה'; font-weight: 800; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.listening { font-size: 1.3rem; font-weight: 800; color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.sing-score { background: #fff; border: var(--bd); border-radius: 26px; box-shadow: var(--sh); padding: 18px; margin-top: 14px; }
.sing-score .big-text { color: var(--pink); margin-top: 0; }
.sing-score p { font-size: 1.15rem; font-weight: 700; }

/* ---------- cloud save ---------- */
.cloud { margin-bottom: 18px; }
.cloud input { max-width: 320px; }
.family-code { font-family: ui-monospace, Menlo, monospace; font-size: 1.5rem; font-weight: 800; text-align: center; background: #1b1530; color: #ffd633; border-radius: 16px; padding: 14px; margin: 10px 0; letter-spacing: 1px; word-break: break-all; user-select: all; -webkit-user-select: all; }
.cloud-link { color: #fff; border-color: #fff; }
.join .cloud-msg { color: #fff; font-weight: 700; min-height: 1.4em; }
.join .name-input { font-size: 1.3rem; }
.chip.practice { background: #ffe1a8; }
.sing-score small { font-weight: 600; color: var(--ink2); font-size: .9rem; }

.more-note { display: block; text-align: center; margin: 6px 0 0; color: #fff; opacity: .9; font-weight: 600; }
.more-words { background: var(--yellow); }
.sing-live small { flex-basis: 100%; text-align: center; color: #fff; opacity: .85; }
.logbox summary { cursor: pointer; font-weight: 700; }
.log-view { max-height: 320px; overflow: auto; background: #1b1530; color: #cfe; font-size: .72rem; padding: 10px; border-radius: 12px; white-space: pre-wrap; word-break: break-word; user-select: text; -webkit-user-select: text; }
.mic-card{background:#fff7d6;border:3px solid #ffd23f;border-radius:20px;padding:14px 16px;margin:10px 0;text-align:center}
.mic-card h3{margin:0 0 6px}.mic-card .fix{text-align:start;margin:8px 0}

/* boy / girl pick */
.who-are { margin: 14px 0 4px; font-weight: 700; }
.gender-pick { display: flex; gap: 14px; justify-content: center; margin: 6px 0 14px; }
.gbtn { font: inherit; font-family: var(--display); font-size: 1.3rem; display: grid; gap: 2px; place-items: center; min-width: 120px; padding: 12px 18px; background: #fff; color: var(--ink); border: var(--bd); border-radius: 22px; box-shadow: var(--sh-sm); cursor: pointer; }
.gbtn span { font-size: 2.4rem; }
.gbtn.on { background: var(--yellow); transform: translateY(-3px); box-shadow: var(--sh); }
.keep-row { align-items: center; gap: 8px; }
/* blue theme for boys: the pink accents turn blue */
html[data-g="m"] { --pink: #2f80ff; --purple: #1f5fd6; }
html[data-g="m"] body { background-image: linear-gradient(160deg, #1b6bff 0%, #18b6e8 55%, #5ee0c4 100%); }

/* karaoke result: score and points */
.score-head { display: flex; align-items: baseline; gap: 8px; justify-content: center; font-family: var(--display); }
.score-head b { font-size: 2.6rem; color: var(--pink); }
.score-head span { font-size: 1.1rem; }
.score-bar { height: 16px; border: var(--bd); border-radius: 12px; background: #fff; overflow: hidden; margin: 6px 0 12px; }
.score-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--yellow)); }
.pts { background: var(--cream); border: 2px dashed var(--ink2); border-radius: 16px; padding: 8px 12px; margin-bottom: 8px; }
.pts-row, .pts-total { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-weight: 700; }
.pts-total { border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 8px; font-family: var(--display); font-size: 1.3rem; }
.pts-total b { color: var(--pink); }
.missed summary { cursor: pointer; font-weight: 700; margin: 8px 0; }
.chip.practice, .missed .chip { font-size: 1rem; }

/* daily streak strip + weekly summary */
.streak, .weekly { padding: 12px 14px; margin: 10px 0; }
.streak-msg { font-weight: 800; text-align: center; margin-bottom: 8px; }
.streak-days { display: flex; gap: 6px; justify-content: space-between; margin: 8px 0; }
.streak-days div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.streak-days i { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; display: grid; place-items: center; font-style: normal; font-size: 1.1rem; }
.streak-days .on i { background: var(--yellow); }
.streak-days .today i { box-shadow: 0 0 0 3px var(--pink); }
.streak-days small { font-weight: 700; font-size: .8rem; }
.weekly h2 { margin: 0 0 8px; }

/* =====================================================================
   Premium layer (v37): depth, gloss, motion. Keeps the pop identity, adds the "wow".
   ===================================================================== */
:root {
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --glow: 0 10px 30px rgba(29, 16, 66, .35);
  --gloss: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 52%);
}

/* living background: the gradient drifts slowly, blobs breathe */
body { background-size: 220% 220%; animation: bgshift 22s ease-in-out infinite alternate; }
@keyframes bgshift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
body::before { animation: blobs 16s ease-in-out infinite alternate; }
@keyframes blobs { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(-8px, 10px); } }

/* every screen glides in */
#app > main, #app > .top { animation: screenIn .45s var(--spring) backwards; }
#app > .top { animation-name: dropIn; animation-duration: .4s; }
@keyframes screenIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* top bar: frosted glass with a colour-line instead of a flat border */
.top {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  border-bottom: 0; box-shadow: 0 8px 24px rgba(29, 16, 66, .22);
}
.top::after { content: ''; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink), var(--yellow), var(--lime)); }

/* glossy, springy buttons */
.btn, .tabs button, .pill, .game-card, .tile, .mt {
  background-image: var(--gloss); background-blend-mode: soft-light;
  transition: transform .22s var(--spring), box-shadow .22s ease, filter .2s ease;
}
.btn { position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; top: 0; left: -80%; width: 45%; height: 100%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); opacity: 0; }
.btn.primary::after, .btn.big::after { animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 62% { left: -80%; opacity: 0; } 70% { opacity: 1; } 100% { left: 140%; opacity: 0; } }
@media (hover: hover) {
  .btn:hover:not(:disabled), .game-card:hover, .tile:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.05) saturate(1.1); }
  .song-card:hover { transform: translateY(-6px) rotate(0) scale(1.03); box-shadow: 7px 9px 0 var(--ink), var(--glow); }
}
.btn:active { transform: translate(3px, 3px) scale(.97); }
.btn.primary { background-color: var(--yellow); background-image: var(--gloss), linear-gradient(135deg, #ffe566, #ffc400); }
.btn.round.home { background-image: var(--gloss), linear-gradient(135deg, #ffe566, #ffb800); }

/* pills: stats feel like game HUD badges */
.pill { background-image: var(--gloss); }
.pill.level { background-image: var(--gloss), linear-gradient(135deg, #8d5bff, #5b2ee0); }
.pill.level i b { background: linear-gradient(90deg, #ffe566, #ff9d00); position: relative; overflow: hidden; }
.pill.level i b::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); transform: translateX(-100%); animation: barshine 2.8s linear infinite; }
@keyframes barshine { to { transform: translateX(100%); } }
.stats .pill:nth-child(3) { background-image: var(--gloss), linear-gradient(135deg, #ffa24d, #ff6a1f); }

/* song cards: depth, stagger, soft colour glow */
.song-card {
  background-image: var(--gloss), radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .35), transparent 55%);
  box-shadow: var(--sh), 0 14px 26px -10px var(--c, rgba(0, 0, 0, .4));
  animation: cardIn .6s var(--spring) both;
}
.songs > :nth-child(1) { animation-delay: .05s; } .songs > :nth-child(2) { animation-delay: .12s; } .songs > :nth-child(3) { animation-delay: .19s; }
.songs > :nth-child(4) { animation-delay: .26s; } .songs > :nth-child(5) { animation-delay: .33s; } .songs > :nth-child(n+6) { animation-delay: .4s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.9) rotate(0); } }
.song-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%) 200% 0 / 250% 100%; animation: cardshine 7s ease-in-out infinite; }
.songs > :nth-child(2n)::after { animation-delay: 2.3s; } .songs > :nth-child(3n)::after { animation-delay: 4.1s; }
@keyframes cardshine { 0%, 70% { background-position: 200% 0; } 100% { background-position: -100% 0; } }

/* game cards and answer tiles */
.game-card { animation: cardIn .5s var(--spring) both; }
.game-card:nth-child(2) { animation-delay: .06s; } .game-card:nth-child(3) { animation-delay: .12s; } .game-card:nth-child(4) { animation-delay: .18s; } .game-card:nth-child(5) { animation-delay: .24s; } .game-card:nth-child(6) { animation-delay: .3s; }
.tile.pic, .tile { animation: cardIn .5s var(--spring) both; }
.tile:nth-child(2) { animation-delay: .07s; } .tile:nth-child(3) { animation-delay: .14s; } .tile:nth-child(4) { animation-delay: .21s; }
.tile:active { transform: scale(.93); }
.tile.right, .btn.right, .mt.right { box-shadow: var(--sh), 0 0 0 6px rgba(140, 242, 58, .55), 0 0 40px rgba(140, 242, 58, .8) !important; animation: rightpop .5s var(--spring); }
@keyframes rightpop { 0% { transform: scale(1); } 40% { transform: scale(1.12) rotate(-2deg); } 100% { transform: scale(1); } }

/* streak strip + weekly summary: glass cards */
.streak.card, .weekly.card { background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 244, 214, .92)); border-radius: 26px; box-shadow: var(--sh-sm), 0 14px 30px -12px rgba(29, 16, 66, .45); }
.streak-days .on i { background: radial-gradient(circle at 35% 30%, #fff3a0, #ffc400); animation: starpop .5s var(--spring) both; }
.streak-days .on:nth-child(2) i { animation-delay: .06s; } .streak-days .on:nth-child(3) i { animation-delay: .12s; } .streak-days .on:nth-child(4) i { animation-delay: .18s; }
.streak-days .on:nth-child(5) i { animation-delay: .24s; } .streak-days .on:nth-child(6) i { animation-delay: .3s; } .streak-days .on:nth-child(7) i { animation-delay: .36s; }
@keyframes starpop { from { transform: scale(0) rotate(-90deg); } }
.streak-days .today i { animation: todayring 2s ease-in-out infinite; }
@keyframes todayring { 0%, 100% { box-shadow: 0 0 0 3px var(--pink); } 50% { box-shadow: 0 0 0 7px rgba(255, 61, 154, .25); } }

/* results screen: big celebratory type */
.big-text { background: linear-gradient(180deg, #fff 0%, #ffe9a8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; filter: drop-shadow(4px 5px 0 var(--ink)); animation: popin .6s var(--spring) both, floatText 3s ease-in-out .6s infinite; }
@keyframes floatText { 50% { transform: translateY(-6px) rotate(-1deg); } }
.earned { background-image: var(--gloss), linear-gradient(135deg, #ffe566, #ffb800); animation: earnedPulse 1.6s ease-in-out infinite; }
@keyframes earnedPulse { 50% { transform: scale(1.06); box-shadow: var(--sh), 0 0 30px rgba(255, 214, 51, .9); } }

/* warm-up banner and the add-song hero */
.warmup { background-image: var(--gloss), linear-gradient(135deg, #ff9d3a, #ff4d6d); color: #fff; box-shadow: var(--sh), 0 12px 28px -8px rgba(255, 77, 109, .7); }
.add-song-big { background-image: var(--gloss), linear-gradient(135deg, #b6ff6a, #5fe0a0); box-shadow: var(--sh), 0 14px 30px -10px rgba(95, 224, 160, .8); transition: transform .25s var(--spring); }
.add-song-big .plus { display: inline-block; animation: plusSpin 6s linear infinite; }
@keyframes plusSpin { 0%, 85% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
.add-song-big:active { transform: scale(.97); }

/* closet items */
.item { transition: transform .25s var(--spring), box-shadow .2s; }
@media (hover: hover) { .item:hover { transform: translateY(-5px) scale(1.03); box-shadow: var(--sh-sm), var(--glow); } }
.tabs button.on { background-image: var(--gloss), linear-gradient(135deg, #ffe566, #ffc400); transform: translateY(-2px); }

/* sparkle cursor-free ambient stars on top of everything pretty */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.tile.pic { background-image: var(--gloss), radial-gradient(circle at 50% 38%, #fff 0, #fff 38%, #f1e8ff 100%); }
.tile.pic:nth-child(2n) { background-image: var(--gloss), radial-gradient(circle at 50% 38%, #fff 0, #fff 38%, #e3f8ff 100%); }
.tile.pic:nth-child(3n) { background-image: var(--gloss), radial-gradient(circle at 50% 38%, #fff 0, #fff 38%, #fff0d9 100%); }

/* ---------- Hanukkah banner + section (only during the holiday) ---------- */
.hanuka { position: relative; display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; padding: 16px 18px; border: var(--bd); border-radius: 28px; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .25), transparent 55%), linear-gradient(135deg, #1b3fd8, #3a86ff 55%, #7ec8ff); box-shadow: var(--sh), 0 16px 34px -10px rgba(58, 134, 255, .8); animation: cardIn .7s var(--spring) both; }
.hanuka::before { content: '✦  ✧  ✦  ✧  ✦'; position: absolute; inset: 6px 0 auto 0; text-align: center; letter-spacing: 18px; font-size: .9rem; color: rgba(255, 255, 255, .55); animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .25; } }
.hanuka .htxt { flex: 1; min-width: 0; text-align: right; position: relative; }
.hanuka h2 { margin: 0 0 4px; font-family: var(--display); font-size: 1.7rem; text-shadow: 3px 3px 0 var(--ink); }
.hanuka p { margin: 0 0 10px; font-weight: 700; text-shadow: 1px 1px 0 rgba(29, 16, 66, .5); }
.menorah { position: relative; display: flex; align-items: flex-end; gap: 4px; padding: 0 4px 10px; flex: none; }
.menorah .cn { position: relative; width: 9px; height: 34px; border: 2px solid var(--ink); border-radius: 4px; background: linear-gradient(90deg, #e9f4ff, #9bc8ff); display: block; }
.menorah .shamash { height: 46px; background: linear-gradient(90deg, #fff1b0, #ffc400); }
.menorah .cn.on::before { content: ''; position: absolute; left: 50%; top: -17px; width: 12px; height: 17px; margin-left: -6px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 70%, #fff7b0 0 30%, #ffb300 60%, #ff5a00 100%); filter: drop-shadow(0 0 7px #ffb300); transform-origin: 50% 90%; animation: flame .9s ease-in-out infinite alternate; }
.menorah .cn.on:nth-child(2n)::before { animation-delay: -.3s; } .menorah .cn.on:nth-child(3n)::before { animation-delay: -.6s; }
@keyframes flame { from { transform: scale(1) rotate(-4deg); } to { transform: scale(1.12, 1.2) rotate(4deg); } }
.menorah .base { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; border: 2px solid var(--ink); border-radius: 6px; background: linear-gradient(180deg, #ffe566, #ffb800); }
.seasonal { display: inline-block; vertical-align: middle; font-size: .8rem; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; margin-inline-start: 8px; }
.songs.holiday .song-card { background-image: var(--gloss), radial-gradient(circle at 80% 0%, rgba(255, 255, 255, .5), transparent 55%); }
@media (max-width: 380px) { .hanuka { flex-direction: column; text-align: center; } .hanuka .htxt { text-align: center; } }

/* song library + home "more songs" row */
.more-songs { margin: 14px 0 6px; justify-content: center; }
.library .lib-search { width: 100%; padding: 14px 18px; font-size: 1.15rem; border: var(--bd); border-radius: 18px; box-shadow: var(--sh-sm); margin: 6px 0 4px; background: #fff; color: var(--ink); }
.library .tabs { margin-top: 10px; }
.library .songs { margin-top: 8px; }
.k-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.k-tools .btn { font-size: 1rem; padding: 8px 14px; }
.k-note { text-align: center; font-weight: 700; color: #fff; text-shadow: 1px 1px 0 rgba(29, 16, 66, .6); margin: 4px 0 8px; }

/* ---------- add to home screen: card + bottom sheet ---------- */
.install-card { position: relative; display: flex; align-items: center; gap: 12px; margin: 10px 0; padding: 12px 40px 12px 14px; background: linear-gradient(135deg, #fff, #ffe9f4); border-radius: 24px; box-shadow: var(--sh-sm), 0 14px 28px -12px rgba(255, 61, 154, .6); animation: cardIn .6s var(--spring) both; }
.install-card .ic-emoji { font-size: 2.2rem; animation: bounce 2.2s ease-in-out infinite; }
.install-card .ic-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: right; }
.install-card .ic-txt b { font-family: var(--display); font-size: 1.2rem; }
.install-card .ic-txt small { font-weight: 600; opacity: .75; }
.install-card .ic-x { position: absolute; top: 4px; left: 8px; width: 30px; height: 30px; font-size: .9rem; opacity: .55; }
.sheet-back { position: fixed; inset: 0; z-index: 100; background: rgba(29, 16, 66, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fade .25s ease both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: min(560px, 100%); max-height: 92vh; overflow-y: auto; background: #fff; border: var(--bd); border-bottom: 0; border-radius: 28px 28px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); text-align: right; box-shadow: 0 -10px 40px rgba(0, 0, 0, .35); animation: sheetUp .4s var(--spring) both; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@media (min-width: 700px) { .sheet-back { align-items: center; } .sheet { border-bottom: var(--bd); border-radius: 28px; } }
.sheet-x { position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; font-size: 1rem; }
.sheet-icon { font-size: 2.6rem; text-align: center; }
.sheet h2 { margin: 4px 0 10px; text-align: center; font-family: var(--display); }
.steps { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.1rem; font-weight: 600; }
.steps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); border: var(--bd); display: grid; place-items: center; font-family: var(--display); }
.steps .ic-share { vertical-align: middle; color: #0a84ff; margin: 0 2px; }
.steps .ic-plus { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 6px; font-weight: 800; vertical-align: middle; }
.sheet .hint { font-size: .95rem; opacity: .75; text-align: center; }
.sheet .row { justify-content: center; margin-top: 12px; }

/* Invite options: same family vs. another family */
.invite-opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 6px 0 10px; }
.invite-opt { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.7); border: 2px dashed rgba(0,0,0,.12); }
.invite-opt small { opacity: .75; line-height: 1.35; }

/* Hebrew word under the picture, for children who read Hebrew */
.tile .he-label { display: block; font-size: 1.05rem; font-weight: 800; margin-top: 2px; color: #6b5a8e; direction: rtl; line-height: 1.1; }
.tile.small .he-label { font-size: .9rem; }

/* Admin console */
.admin { max-width: 1100px; margin: 0 auto; padding: 18px 14px 60px; }
.adm-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.adm-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.kpi { background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: 0 4px 0 rgba(27,21,48,.15); border: 2px solid #1b1530; text-align: center; }
.kpi-i { font-size: 1.5rem; } .kpi-n { font-size: 1.9rem; font-weight: 900; color: #1b1530; line-height: 1.1; } .kpi-l { font-weight: 800; font-size: .95rem; } .kpi small { display: block; opacity: .7; margin-top: 2px; font-size: .78rem; line-height: 1.25; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 12px 0; }
.adm-card { background: #fff; border-radius: 18px; padding: 12px 14px; border: 2px solid #1b1530; box-shadow: 0 4px 0 rgba(27,21,48,.15); color: #1b1530; }
.adm-card.wide { margin-top: 12px; } .adm-card h3 { margin: 0 0 8px; font-size: 1.05rem; } .adm-card h4 { margin: 10px 0 4px; font-size: .9rem; }
.cbars { display: flex; align-items: flex-end; gap: 2px; direction: ltr; }
.cbar { flex: 1; min-width: 3px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.cbar i { display: block; width: 100%; border-radius: 4px 4px 0 0; } .cbar span { font-size: .6rem; opacity: .65; height: 12px; line-height: 12px; white-space: nowrap; }
.hbars { display: grid; gap: 6px; } .hb { display: grid; grid-template-columns: minmax(80px, 1.2fr) 2fr auto; gap: 6px; align-items: center; font-size: .85rem; } .hb small { grid-column: 1 / -1; opacity: .6; margin-top: -4px; font-size: .72rem; }
.hb-t { background: #f0e9ff; border-radius: 99px; height: 10px; overflow: hidden; } .hb-t i { display: block; height: 100%; background: linear-gradient(90deg, #7c5cff, #ff4fa3); border-radius: 99px; } .hb em { font-style: normal; font-weight: 800; white-space: nowrap; }
.adm-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed rgba(0,0,0,.12); font-size: .88rem; }
.adm-scroll { overflow-x: auto; } .adm-t { width: 100%; border-collapse: collapse; font-size: .82rem; } .adm-t th, .adm-t td { padding: 6px 8px; border-bottom: 1px solid rgba(0,0,0,.1); text-align: start; white-space: nowrap; } .adm-t th { background: #f6f1ff; position: sticky; top: 0; }
@media (max-width: 520px) { .adm-grid { grid-template-columns: 1fr; } }

/* Readability fixes (contrast): dark text on white sheets, stronger chips and buttons */
.sheet-back .sheet h2, .sheet-back .sheet h3 { color: var(--ink); text-shadow: none; }
.sheet-back .sheet p, .sheet-back .sheet li, .sheet-back .sheet small, .sheet-back .sheet b { color: var(--ink); text-shadow: none; }
.sheet-back .sheet .hint { color: #4a3d78; text-shadow: none; font-size: 1rem; font-weight: 600; margin: 12px 0; }
h2 small { text-shadow: 1px 1px 0 var(--ink), 0 0 8px rgba(29, 16, 66, .55); opacity: 1; }
.how h2 small, .card h2 small, .sheet h2 small { color: var(--ink); text-shadow: none; }
.btn.ghost { background: rgba(29, 16, 66, .5); text-shadow: 1px 1px 0 rgba(29, 16, 66, .6); }
.item .price { background: #d81b78; }
.item.on .price { background: #2ad37a; color: var(--ink); }
.item.locked:not(.can) .price { background: #6b6285; }
.novideo .btn { background: #c9002b; }
.song-card.pop .song-en { text-shadow: 0 1px 3px rgba(10, 2, 30, .9), 0 0 6px rgba(10, 2, 30, .6); font-weight: 800; }
/* install steps with little pictures of what to press */
.isteps { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 14px; }
.isteps li { display: flex; gap: 10px; align-items: flex-start; }
.isteps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #ff3d9a; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; }
.isteps li > div { flex: 1; min-width: 0; font-size: 1.1rem; line-height: 1.35; color: var(--ink); }
.isteps small { display: block; font-size: .95rem; font-weight: 600; color: #4a3d78; margin: 2px 0 6px; }
.isteps .ic-share { vertical-align: middle; color: #0a84ff; }
.mock { position: relative; background: #eef0f6; border: 2px solid #c9cde0; border-radius: 14px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #333; font-size: .95rem; direction: ltr; }
.mock.list { flex-direction: column; align-items: stretch; direction: rtl; text-align: right; }
.mock.list span { padding: 6px 8px; border-radius: 8px; }
.mock .hl { background: #fff; outline: 3px solid #ff3d9a; font-weight: 800; display: flex; justify-content: space-between; animation: pulseHl 1.4s ease-in-out infinite; }
.mock-url { flex: 1; text-align: center; background: #fff; border-radius: 10px; padding: 5px; }
.mock-share { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #0a84ff; outline: 3px solid #ff3d9a; animation: pulseHl 1.4s ease-in-out infinite; }
.mock.bottom { justify-content: center; }
.mock.bottom .mock-url { display: none; }
.mock .pointer { position: absolute; font-size: 1.8rem; font-style: normal; bottom: -14px; right: 38%; animation: nudge 1s ease-in-out infinite; }
.mock.top .pointer { right: 14px; }
.mock.add { justify-content: space-between; direction: rtl; }
.mock.add b { color: #fff; background: #0a84ff; border-radius: 999px; padding: 4px 16px; outline: 3px solid #ff3d9a; animation: pulseHl 1.4s ease-in-out infinite; }
@keyframes pulseHl { 50% { outline-color: rgba(255, 61, 154, .25); } }
@keyframes nudge { 50% { transform: translateY(-6px); } }
.sheet-back .sheet .isteps small { color: #4a3d78; }
.sheet-back .sheet .mock, .sheet-back .sheet .mock span, .sheet-back .sheet .mock b { color: #333; }
.sheet-back .sheet .mock.add b { color: #fff; }
.isteps li { border: 0; box-shadow: none; padding: 0; margin: 0; background: none !important; }
.isteps .n { font-family: var(--display); border: 0; }
.mock span, .mock b { font-size: .95rem; flex: none; font-weight: 700; }
.mock .mock-url { flex: 1; }
.mock.list .hl b { font-size: 1.2rem; }
.isteps .ic-plus { width: 20px; height: 20px; font-size: .8rem; }
/* karaoke: two clear steps */
.k-step { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font-size: 1.2rem; color: #fff; text-shadow: 1px 1px 0 var(--ink); }
.k-step .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--ink); text-shadow: none; display: grid; place-items: center; font-family: var(--display); border: var(--bd); }
.k-fix { margin: 8px 0; background: rgba(255, 255, 255, .92); border-radius: 14px; padding: 8px 12px; color: var(--ink); }
.k-fix summary { font-weight: 700; cursor: pointer; }
.k-fix p { margin: 8px 0; }
.sing-btn.nudge { animation: nudgePulse 1s ease-in-out infinite; outline: 4px solid var(--yellow); }
@keyframes nudgePulse { 50% { transform: scale(1.06); } }
/* parents gate: year of birth */
.parent.gate .gate-icon { font-size: 3.2rem; margin-top: 10px; text-shadow: none; }
.parent.gate p { line-height: 1.5; }
.parent.gate .gate-note { display: block; margin-top: 10px; font-size: .9rem; font-weight: 600; opacity: .9; text-shadow: 1px 1px 0 var(--ink); }
.parent.gate #gate-msg { min-height: 1.4em; font-size: 1rem; }
/* ---------- more ways to learn: ABC world and word worlds ---------- */
.worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.world { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: var(--bd); border-radius: 24px; box-shadow: var(--sh); color: var(--ink); text-align: center; }
.world b { font-family: var(--display); font-size: 1.2rem; }
.world small { font-weight: 600; font-size: .85rem; color: #3b2d6b; }
.world .wi { font-size: 2.2rem; line-height: 1.1; font-weight: 800; }
.abc-w { background: linear-gradient(135deg, #fff3a6, #ffd3e8); }
.abc-w .wi { color: #ff3d9a; letter-spacing: 2px; text-shadow: 2px 2px 0 var(--ink); }
.words-w { background: linear-gradient(135deg, #c9f6ff, #d8ffb0); }
.abc-head { text-align: center; color: var(--ink); }
.abc-head b { font-family: var(--display); font-size: 1.3rem; }
.abc-head small { display: block; font-weight: 600; margin-top: 6px; }
.abc-play { display: block; margin: 12px auto; }
.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.letter { position: relative; background: #fff; border: var(--bd); border-radius: 18px; padding: 8px 4px; box-shadow: var(--sh-sm); display: flex; flex-direction: column; align-items: center; color: var(--ink); }
.letter b { font-size: 1.7rem; font-weight: 800; color: var(--c); text-shadow: 1px 1px 0 var(--ink); }
.letter span { font-size: 1.4rem; }
.letter.done { background: #fff8d6; }
.letter i { position: absolute; top: -8px; left: -6px; font-style: normal; font-size: 1.1rem; }
.abc-letter { text-align: center; }
.letter-hero { display: flex; flex-direction: column; align-items: center; margin: 10px auto; padding: 10px 26px; background: #fff; border: var(--bd); border-radius: 28px; box-shadow: var(--sh); color: var(--ink); }
.letter-hero b { font-size: 5rem; line-height: 1; font-weight: 800; color: var(--c); text-shadow: 3px 3px 0 var(--ink); }
.letter-hero b small { font-size: 3.2rem; margin-inline-start: 10px; }
.letter-hero .lw { font-size: 1.3rem; font-weight: 700; margin-top: 6px; }
.letter-hero .lw em { font-style: normal; font-size: 2rem; }
.letter-hero mark { background: none; color: var(--c); font-size: 1.5em; font-weight: 800; text-shadow: 1px 1px 0 var(--ink); }
.letter-hero .lw small { color: #4a3d78; font-size: 1rem; }
.trace-title { color: #fff; text-shadow: 2px 2px 0 var(--ink); margin: 14px 0 6px; }
.trace-title b { color: var(--yellow); font-size: 1.4em; }
.trace-wrap { display: flex; justify-content: center; }
.trace-wrap canvas { border: var(--bd); border-radius: 24px; box-shadow: var(--sh); background: #fff; --ink-c: #ff3d9a; touch-action: none; }
.trace-msg { min-height: 1.6em; color: #fff; font-weight: 800; font-size: 1.15rem; text-shadow: 1px 1px 0 var(--ink); }
.abc-game { text-align: center; }
.abc-game h2 { color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.abc-game .progress { height: 12px; background: rgba(255, 255, 255, .3); border-radius: 99px; overflow: hidden; margin: 10px 0; }
.abc-game .progress div { height: 100%; background: var(--yellow); }
.abc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 420px; margin: 16px auto; }
.letter.big-l { padding: 18px 4px; }
.letter.big-l b { font-size: 3.6rem; }
.letter.right { background: #b8ffcf; transform: scale(1.08); }
.letter.wrong { background: #ffd0d0; opacity: .6; }
.words-worlds .note-dark { margin: 10px 0; }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.topic-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; background: #fff; border: var(--bd); border-top: 10px solid var(--c); border-radius: 22px; box-shadow: var(--sh-sm); color: var(--ink); }
.topic-card .te { font-size: 2.4rem; }
.topic-card b { font-family: var(--display); font-size: 1.15rem; }
.topic-card small { color: #4a3d78; font-weight: 600; }
.topic-card .bar { width: 90%; height: 8px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; margin-top: 6px; background: #eee; }
.topic-card .bar div { height: 100%; background: var(--c); }
.topic h2 { color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.topic h2 small { color: #fff; }
.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.wcard { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; color: var(--ink); }
.wcard .pic { font-size: 2rem; }
.wcard b { font-size: 1.05rem; }
.wcard small { color: #4a3d78; font-weight: 600; }
.wcard.lvl3 { background: #d8ffb0; } .wcard.lvl2 { background: #fff3a6; }
/* today's missions */
.missions { color: var(--ink); }
.missions h2 { font-size: 1.25rem; margin: 0 0 8px; color: var(--ink); text-shadow: none; }
.missions h2 small { display: block; margin-top: 2px; font-family: system-ui, sans-serif; font-size: .85rem; font-weight: 700; color: #4a3d78; text-shadow: none; }
.mlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mission { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; background: #fff8d6; border: 2.5px solid var(--ink); border-radius: 16px; color: var(--ink); font-size: .9rem; line-height: 1.2; }
.mission .mi { font-size: 1.8rem; }
.mission.done { background: #d8ffb0; }
.mission.done b { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .75; }
.missions.all-done { background: linear-gradient(135deg, #fff, #d8ffb0); }
/* sticker album */
.album-w { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 10px; flex-wrap: wrap; background: linear-gradient(135deg, #ffe0b8, #e2d5ff); }
.album-w small { width: 100%; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; margin-top: 12px; }
.sticker { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 22px; color: var(--ink); font-size: .85rem; line-height: 1.2; }
.sticker span { font-size: 2.6rem; }
.sticker.has { background: #fff; border: 3px dashed #ff3d9a; box-shadow: var(--sh-sm); transform: rotate(-2deg); }
.sticker.has:nth-child(even) { transform: rotate(2deg); }
.sticker.locked { background: rgba(255, 255, 255, .6); border: 3px dashed rgba(29, 16, 66, .35); }
.sticker.locked span { filter: grayscale(1); opacity: .6; }
/* ---------- tabs: 5 items in the bottom bar ---------- */
nav.bottom button { padding: 4px 2px; font-size: .82rem; line-height: 1.15; min-width: 0; }
nav.bottom button span { font-size: 1.5rem; }
@media (max-width: 380px) { nav.bottom button { font-size: .72rem; } }
.home > .row .btn.big { flex: 1; }
/* ---------- journey card on home ---------- */
.journey-card { display: flex; flex-direction: column; gap: 10px; }
.jc-head { display: flex; justify-content: space-between; align-items: baseline; }
.jc-head b { font-family: var(--display); font-size: 1.25rem; }
.jc-next { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: var(--bd); border-inline-start: 10px solid var(--c); border-radius: 20px; box-shadow: var(--sh-sm); color: var(--ink); text-align: start; }
.jc-next .jn { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--ink); display: grid; place-items: center; font-weight: 800; }
.jc-next .je { font-size: 2rem; }
.jc-next .jt { flex: 1; display: flex; flex-direction: column; }
.jc-next .jt b { font-size: 1.1rem; }
.jc-next .go { font-size: 1.4rem; }
/* ---------- learn hub ---------- */
.learnhub .worlds { margin-top: 6px; }
.map-w { background: linear-gradient(135deg, #b8f2c8, #fff3a6); }
.story-w { background: linear-gradient(135deg, #ffd3e8, #c9e4ff); }
/* ---------- the song journey map ---------- */
.map .trail { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 30px; }
.map .trail::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 0; border-left: 6px dashed rgba(42, 27, 77, .25); transform: translateX(-3px); }
.stop { position: relative; display: flex; flex-direction: column; align-items: center; width: 140px; }
.stop.right { transform: translateX(-70px); }
.stop.left { transform: translateX(70px); }
.node { position: relative; width: 84px; height: 84px; border-radius: 50%; border: var(--bd); background: #fff; box-shadow: var(--sh); display: grid; place-items: center; }
.node .ne { font-size: 2.3rem; }
.node .nn { position: absolute; bottom: -6px; inset-inline-start: -6px; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: var(--ink); }
.node i { position: absolute; top: -10px; inset-inline-end: -8px; font-style: normal; font-size: 1.5rem; }
.node.done { background: var(--c); }
.node.current { background: #fff; outline: 5px solid var(--c); animation: nodepulse 1.4s ease-in-out infinite; }
.node.locked { background: #e9e4f5; filter: grayscale(.6); box-shadow: var(--sh-sm); }
.node.locked .ne { font-size: 1.8rem; opacity: .7; }
@keyframes nodepulse { 50% { transform: scale(1.1); } }
.stop .nt { margin-top: 8px; font-weight: 700; color: var(--ink); text-align: center; background: rgba(255, 255, 255, .85); border-radius: 10px; padding: 0 6px; }
.chest { display: flex; flex-direction: column; align-items: center; font-size: 2.6rem; padding: 6px 12px; border-radius: 20px; border: var(--bd); background: #ffe7a3; box-shadow: var(--sh-sm); }
.chest small { font-size: .85rem; font-weight: 700; color: var(--ink); }
.chest.ready { animation: nodepulse 1.2s ease-in-out infinite; background: #ffd23f; }
.chest.locked, .chest.got { opacity: .75; }
@media (prefers-reduced-motion: reduce) { .node.current, .chest.ready { animation: none; } }
/* ---------- song stories ---------- */
.topic-card { position: relative; }
.topic-card .read { position: absolute; top: 6px; inset-inline-end: 8px; font-style: normal; }
.story .dots { display: flex; justify-content: center; gap: 8px; margin: 6px 0 12px; }
.story .dots i { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; }
.story .dots i.on { background: var(--c); }
.story .page { background: #fff; border: var(--bd); border-top: 12px solid var(--c); border-radius: 26px; box-shadow: var(--sh); padding: 18px 16px; text-align: center; max-width: 620px; margin: 0 auto; }
.story .pic { font-size: 4.4rem; line-height: 1.2; margin-bottom: 8px; }
.story .en { font-size: 1.6rem; font-weight: 700; line-height: 1.6; color: var(--ink); margin: 6px 0 12px; }
.story .en .w { cursor: pointer; border-radius: 8px; padding: 0 2px; }
.story .en .w.known { border-bottom: 3px dotted var(--c); }
.story .en .w.lit { background: var(--yellow); }
.story .he-toggle { font-weight: 700; color: var(--ink2); text-decoration: underline; }
.story .he { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-top: 8px; }
.story .row { justify-content: center; margin-top: 12px; }
/* ---------- letter sounds (phonics) ---------- */
.sound-row { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; margin: 10px auto; padding: 10px 14px; background: #fff; border: var(--bd); border-radius: 20px; box-shadow: var(--sh-sm); color: var(--ink); font-weight: 600; text-align: start; }
.sound-row .snd-l { font-size: 1.8rem; font-weight: 800; color: #ff3d9a; text-shadow: 1px 1px 0 var(--ink); }
.sound-row span:nth-child(2) { flex: 1; }
.sound-row b { font-size: 1.3rem; }
.sound-pic { display: flex; flex-direction: column; align-items: center; margin: 10px auto; padding: 12px 24px; background: #fff; border: var(--bd); border-radius: 26px; box-shadow: var(--sh); color: var(--ink); }
.sound-pic span { font-size: 5rem; line-height: 1.1; }
.sound-pic small { font-weight: 700; }
.abc-opts.three { grid-template-columns: 1fr 1fr 1fr; }
/* intro lines on the map and the stories list: readable on the purple background */
.map > .note-dark, .stories > .note-dark { background: #fff; color: var(--ink); border: var(--bd); border-radius: 18px; padding: 10px 14px; box-shadow: var(--sh-sm); font-weight: 600; max-width: 720px; margin: 4px auto 14px; text-align: center; }
/* story pictures read left to right, like the English sentence under them */
.story .pic, .jc-next .je { direction: ltr; unicode-bidi: isolate; }
/* ---------- small phones (iPhone SE / mini): found by the deep layout test ---------- */
/* three answer cards always fit side by side (they used to run off the screen) */
.tiles.three { grid-template-columns: repeat(3, minmax(0, 190px)); }
.tile .label, .tile .he-label { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
@media (max-width: 700px) { .tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 380px) {
  .tile.small { font-size: 2.6rem; border-radius: 20px; }
  .tile.small .label { font-size: .95rem; }
  .tile.small .he-label { font-size: .8rem; }
  /* top bar: everything stays on screen */
  .top { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .top .logo b { display: none; }
  .top .logo { flex: 0 0 auto; }
  .pill { padding: 3px 8px; font-size: .95rem; }
  .top:has(h1) .pill.level { display: none; }
}
@media (max-width: 430px) { .top:has(h1) .pill.level i { display: none; } }
/* bigger tap areas */
.install-card .ic-x { width: 40px; height: 40px; top: 0; left: 2px; }
.story .he-toggle { padding: 10px 14px; }
/* Karaoke: while recording, the meter and the "finished" button stay at the bottom of the screen,
   so a child singing along with the video can always see and press them (on iPhones they were below the screen). */
.sing-live:not([hidden]) {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  max-width: 640px; margin: 0 auto; gap: 10px 14px; padding: 10px 14px;
}
.sing-box:has(.sing-live:not([hidden])) { padding-bottom: 150px; }
@media (max-width: 430px) { .sing-live .meter { width: 110px; } .sing-live .btn.big { padding: 10px 18px; font-size: 1.1rem; } }
/* the karaoke clock reads "0:12 / 1:00" left-to-right (Hebrew layout used to flip it to "1:00 / 0:12") */
#sing-time { direction: ltr; unicode-bidi: isolate; }
/* iPhone: on inner screens the page title was cut to "מס…" by the counters. Keep only the stars there
   (level and streak still show on the home screen). Found by the iOS Simulator UX review. */
@media (max-width: 430px) {
  .top:has(h1) .pill.level, .top:has(h1) .stats .pill[title="ימים ברצף"] { display: none; }
  .top:has(h1) { gap: 8px; }
}
@media (max-width: 380px) { .top h1 { font-size: 1.05rem; } .top:has(h1) { gap: 6px; } }
/* Tablets: the story fills the screen with bigger pictures and text (it was a small card on iPad) */
@media (min-width: 700px) {
  .story .page { max-width: 820px; padding: 30px 28px; }
  .story .pic { font-size: 6.5rem; }
  .story .en { font-size: 2.3rem; line-height: 1.55; }
  .story .he { font-size: 1.45rem; }
  .story .row .btn { font-size: 1.3rem; padding: 14px 30px; }
}
/* ---------- simple home: one big "continue" button ---------- */
.next-big {
  display: flex; align-items: center; gap: 16px; width: 100%; margin: 16px 0 6px; padding: 16px 20px;
  background: linear-gradient(135deg, #ffe14d, #ffb703); color: var(--ink); border: var(--bd); border-radius: 30px;
  box-shadow: var(--sh), 0 16px 30px -12px rgba(255, 170, 0, .8); text-align: start; animation: nbPulse 2.4s ease-in-out infinite;
}
.next-big:active { transform: translateY(3px); box-shadow: 2px 2px 0 var(--ink); }
.next-big .nb-play { flex: none; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--pink); color: #fff; border: var(--bd); font-size: 2.1rem; box-shadow: var(--sh-sm); padding-inline-start: 6px; }
.next-big .nb-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.next-big .nb-t b { font-family: var(--display); font-size: 2rem; line-height: 1.1; }
.next-big .nb-song { font-size: 1.15rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-big .nb-t small { font-size: 1rem; font-weight: 700; color: #4a3d00; }
@keyframes nbPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@media (prefers-reduced-motion: reduce) { .next-big { animation: none; } }
.journey-link { display: block; margin: 0 auto 12px; padding: 8px 18px; background: rgba(255, 255, 255, .85); border: 2.5px solid var(--ink); border-radius: 999px; font-weight: 800; color: var(--ink); }
.journey-link b { color: var(--purple); }
@media (max-width: 430px) { .next-big .nb-play { width: 60px; height: 60px; font-size: 1.7rem; } .next-big .nb-t b { font-size: 1.7rem; } }
/* screen tips: after a few visits they shrink to a small "how?" button, so screens look calmer */
.tip.mini { display: inline-flex; width: auto; margin: 6px auto; padding: 6px 14px; gap: 6px; font-size: .95rem; }
.tip.mini span { margin: 0; }

/* v69: first sign-in: parent or kid, the kid's QR screen, and the parent's one-tap approve */
.role-pick { display: grid; gap: 14px; max-width: 360px; margin: 18px auto 8px; padding: 0 16px; }
.role-btn { display: flex; align-items: center; gap: 14px; font-size: 1.45rem; padding: 18px 22px; text-align: start; flex-wrap: wrap; }
.role-btn .role-e { font-size: 2.4rem; line-height: 1; }
.role-btn small { flex-basis: 100%; font-size: .95rem; font-weight: 700; opacity: .75; margin-inline-start: calc(2.4rem + 14px); margin-top: -8px; }
.welcome .gate-note { font-size: 1rem; max-width: 420px; margin: 10px auto; opacity: .95; padding: 0 16px; }
.qr-box { width: min(240px, 62vw); aspect-ratio: 1; margin: 12px auto; background: #fff; border: var(--bd); border-radius: 22px; box-shadow: var(--sh); padding: 10px; display: grid; place-items: center; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-box .qr-wait { font-size: 2.5rem; }
.kid-wait .btn.big { margin: 6px auto; }
.approve .ap-email { font-size: 1.1rem; background: #fff; color: var(--ink); text-shadow: none; display: inline-block; padding: 6px 14px; border-radius: 14px; border: var(--bd); }
.approve .ap-yes { font-size: 1.6rem; padding: 18px 44px; margin: 14px auto 4px; }
