﻿/* Wordie Kids shared styles */
:root {
  --brand: #FF6B35;
  --brand-2: #FFB800;
  --mint: #2DD4A8;
  --sky: #4F8CFF;
  --lilac: #A78BFA;
  --ink: #1F2937;
  --muted: #6B7280;
  --bg: #FFF8F1;
  --card: #FFFFFF;
  --safe-b: 34px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink); background: var(--bg);
}
.safe { padding-bottom: calc(72px + var(--safe-b)); }
.iphone-bar { height: 54px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: calc(64px + var(--safe-b));
  padding: 8px 12px var(--safe-b);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid #F1E8DE;
  display: flex; justify-content: space-around; align-items: flex-start;
  z-index: 40;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; font-weight: 700; color: #9CA3AF;
  text-decoration: none; min-width: 56px;
}
.tab.active { color: var(--brand); }
.tab i { font-size: 18px; }
.blob {
  background: radial-gradient(120% 120% at 10% 0%, #FFE08A 0%, #FFD0B5 40%, #FFF8F1 75%);
}
.card {
  background: var(--card); border-radius: 20px;
  box-shadow: 0 8px 24px rgba(31,41,55,.06);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #FF8F5A);
  color: #fff; border: 0; border-radius: 16px; font-weight: 800;
  box-shadow: 0 8px 18px rgba(255,107,53,.28);
}
.progress {
  height: 10px; border-radius: 999px; background: #F3E8DE; overflow: hidden;
}
.progress > span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
}
.mascot-ring {
  background: linear-gradient(145deg, #FFE9A8, #FFC48A);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.05);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
}
.game-tile {
  border-radius: 22px; color: #fff; font-weight: 800;
  min-height: 110px; position: relative; overflow: hidden;
}
.game-tile::after {
  content: ""; position: absolute; right: -20px; bottom: -20px;
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.opt {
  border: 2px solid #F1E8DE; background: #fff; border-radius: 16px;
  padding: 14px 16px; font-weight: 800; text-align: left; width: 100%;
}
.opt.correct { border-color: var(--mint); background: #E8FFF6; }
.opt.wrong { border-color: #FB7185; background: #FFF1F2; }
.star { color: #FBBF24; }
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { scrollbar-width: none; }
.nav-title { font-weight: 900; font-size: 18px; }
.back {
  width: 36px; height: 36px; border-radius: 12px; background: #fff;
  display: grid; place-items: center; color: var(--ink);
  text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.gallery {
  background: #0F172A; min-height: 100vh; padding: 32px 24px 64px;
}
.phone {
  width: 393px; height: 852px; border-radius: 54px; background: #111;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 2px #333;
  position: relative; flex-shrink: 0;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 42px;
  overflow: hidden; background: #fff; border: 0;
}
.notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 34px; background: #111; border-radius: 20px;
  z-index: 5; pointer-events: none;
}
.phone-label {
  color: #94A3B8; font-size: 13px; font-weight: 700;
  text-align: center; margin-top: 12px;
}
