* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #FFF6E9;
  --card: #FFFFFF;
  --ink: #3B3024;
  --ink-soft: #7D6D59;
  --coral: #FF8A5C;
  --coral-dark: #E06A3C;
  --coral-text: #B24725;
  --teal: #4EC9B0;
  --teal-dark: #2E9A85;
  --teal-text: #217768;
  --amber: #FFC24B;
  --amber-dark: #C98F1B;
  --amber-text: #805600;
  --purple: #B08CE8;
  --purple-dark: #8A63C4;
  --purple-text: #7047A8;
  --pink: #FF9EBB;
  --green: #7ECB6F;
  --green-dark: #4E9E41;
  --green-text: #357B2F;
  --red-soft: #FFDAD1;
  --radius: 22px;
}

html, body {
  height: 100%;
  background: var(--bg);
  font-family: "SF Pro Rounded", ui-rounded, "Nunito", "Comic Sans MS", system-ui, sans-serif;
  color: var(--ink);
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}

#app { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; min-height: 100%; }

.environment-banner {
  min-height: 34px; padding: 7px 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #3B3024; color: #FFFFFF;
  font-size: 13px; font-weight: 750; line-height: 1.25;
  text-align: center; letter-spacing: 0.01em;
  box-shadow: 0 2px 0 rgba(59,48,36,0.18);
}
.environment-banner strong {
  color: #FFE08A; font-size: 12px; font-weight: 900;
  letter-spacing: 0.08em;
}

@media (max-width: 420px) {
  .environment-banner {
    align-items: flex-start; flex-direction: column; gap: 1px;
    padding: 6px 12px; text-align: left;
  }
}

button { font-family: inherit; color: inherit; border: none; background: none; cursor: pointer; }
button:active { transform: scale(0.96); }

.screen { animation: pop-in 0.25s ease; }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.topbar .spacer { flex: 1; }

.chip {
  background: var(--card); border-radius: 999px; padding: 8px 14px;
  font-size: 16px; font-weight: 700; box-shadow: 0 2px 0 rgba(59,48,36,0.08);
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius); font-size: 22px; font-weight: 800;
  padding: 16px 26px; color: var(--ink); background: var(--coral);
  box-shadow: 0 4px 0 var(--coral-dark); min-height: 60px;
}
.btn:active { box-shadow: 0 1px 0 var(--coral-dark); transform: translateY(3px); }
.btn.teal { background: var(--teal); box-shadow: 0 4px 0 var(--teal-dark); }
.btn.teal:active { box-shadow: 0 1px 0 var(--teal-dark); }
.btn.amber { background: var(--amber); box-shadow: 0 4px 0 var(--amber-dark); }
.btn.amber:active { box-shadow: 0 1px 0 var(--amber-dark); }
.btn.purple { background: var(--purple); box-shadow: 0 4px 0 var(--purple-dark); }
.btn.purple:active { box-shadow: 0 1px 0 var(--purple-dark); }
.btn.green { background: var(--green); box-shadow: 0 4px 0 var(--green-dark); }
.btn.green:active { box-shadow: 0 1px 0 var(--green-dark); }
.btn.danger { background: #E86A5E; box-shadow: 0 4px 0 #B44339; }
.btn.danger:active { box-shadow: 0 1px 0 #B44339; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 0 3px 0 rgba(59,48,36,0.12); font-size: 18px; border: 2px solid #EAD9BF; }
.btn.big { font-size: 26px; padding: 20px 34px; width: 100%; }
.btn.small { font-size: 16px; padding: 10px 16px; min-height: 44px; }

.card {
  background: var(--card); border-radius: var(--radius); padding: 20px;
  box-shadow: 0 3px 0 rgba(59,48,36,0.08); margin-bottom: 14px;
}

.title { font-size: 30px; font-weight: 900; }
.subtitle { font-size: 17px; color: var(--ink-soft); font-weight: 600; }

.mascot-big { font-size: 90px; line-height: 1; text-align: center; }

.mascot-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px auto; max-width: 460px; }
.mascot-pick {
  font-size: 44px; background: var(--card); border-radius: 18px;
  padding: 10px 12px; box-shadow: 0 3px 0 rgba(59,48,36,0.1); line-height: 1;
}
.mascot-pick.chosen { outline: 5px solid var(--teal); }

.path { display: flex; flex-direction: column; gap: 0; margin-top: 6px; }
.path-node {
  display: flex; align-items: center; gap: 16px; background: var(--card);
  border-radius: var(--radius); padding: 14px 18px; width: 100%; text-align: left;
  box-shadow: 0 3px 0 rgba(59,48,36,0.08); position: relative;
}
.path-node .ico { font-size: 40px; width: 52px; text-align: center; }
.path-node .nm { font-size: 21px; font-weight: 800; }
.path-node .mn { font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.path-node .st { margin-left: auto; font-size: 30px; }
.path-node.done { background: #EAF8E4; }
.path-node.locked { opacity: 0.45; }
.path-node.now { outline: 4px solid var(--coral); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { outline-color: var(--coral); } 50% { outline-color: var(--amber); } }
.path-link { width: 6px; height: 16px; background: #EAD9BF; margin: 0 0 0 42px; border-radius: 3px; }

.bigword {
  font-size: 64px; font-weight: 900; text-align: center; padding: 40px 10px;
  letter-spacing: 2px; white-space: nowrap; word-break: normal;
  overflow-wrap: normal; hyphens: none;
}

.two-btns { display: flex; gap: 14px; }
.two-btns .btn { flex: 1; }

.opt-list { display: flex; flex-direction: column; gap: 12px; }
.opt {
  background: var(--card); border-radius: var(--radius); padding: 16px 18px;
  font-size: 21px; font-weight: 700; text-align: left; width: 100%;
  box-shadow: 0 3px 0 rgba(59,48,36,0.1); border: 3px solid #EAD9BF;
}
.opt.right { border-color: var(--green); background: #EAF8E4; }
.opt.wrong { border-color: #E86A5E; background: var(--red-soft); animation: shake 0.35s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }

.emoji-opts { display: flex; gap: 14px; justify-content: center; }
.emoji-opt {
  font-size: 58px; background: var(--card); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: 0 4px 0 rgba(59,48,36,0.1); border: 4px solid transparent;
}
.emoji-opt.right { border-color: var(--green); background: #EAF8E4; }
.emoji-opt.wrong { border-color: #E86A5E; background: var(--red-soft); animation: shake 0.35s; }

.story {
  font-size: 26px; line-height: 1.75; font-weight: 600; letter-spacing: 0.4px;
}
.story .w { border-radius: 8px; padding: 1px 2px; }
.story .w.reach { background: #D9F2EC; }

.speaker {
  width: 96px; height: 96px; border-radius: 50%; background: var(--coral);
  box-shadow: 0 5px 0 var(--coral-dark); font-size: 44px; color: var(--ink);
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
}
.speaker:active { box-shadow: 0 1px 0 var(--coral-dark); transform: translateY(4px); }
.speaker.playing { animation: wob 0.6s infinite; }
@keyframes wob { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.tiles { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tile {
  background: var(--teal); color: var(--ink); font-size: 40px; font-weight: 900;
  border-radius: 16px; padding: 12px 16px; box-shadow: 0 4px 0 var(--teal-dark);
}

.progress-dots { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }
.pdot { width: 16px; height: 16px; border-radius: 50%; background: #EAD9BF; }
.pdot.on { background: var(--coral); }
.pdot.ok { background: var(--green); }

.center { text-align: center; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }

.overlay {
  position: fixed; inset: 0; background: rgba(59,48,36,0.45);
  display: flex; align-items: center; justify-content: center; z-index: 50;
  animation: pop-in 0.2s;
}
.overlay .inner {
  background: var(--card); border-radius: 28px; padding: 30px 26px;
  text-align: center; max-width: 420px; width: 88%;
}
.sticker-burst { font-size: 84px; animation: burst 0.6s ease; }
@keyframes burst { 0% { transform: scale(0.2) rotate(-20deg); } 70% { transform: scale(1.2) rotate(6deg); } 100% { transform: scale(1); } }

.confetti { position: fixed; top: -40px; font-size: 30px; z-index: 60; animation: fall linear forwards; pointer-events: none; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }

.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mem-card {
  aspect-ratio: 3/3.4; border-radius: 16px; background: var(--purple);
  box-shadow: 0 4px 0 var(--purple-dark); font-size: 30px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  padding: 4px; text-align: center; word-break: normal; overflow-wrap: normal;
}
.mem-card.open { background: var(--card); color: var(--ink); box-shadow: 0 4px 0 rgba(59,48,36,0.12); }
.mem-card.won { background: #EAF8E4; color: var(--ink); box-shadow: 0 4px 0 var(--green); }
.mem-card .q { font-size: 40px; }
.mem-word {
  display: block; width: 100%; font-size: 17px; white-space: nowrap;
  word-break: normal; overflow-wrap: normal; hyphens: none;
}

.soup-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.soup-cell {
  aspect-ratio: 1; border-radius: 14px; background: var(--card); font-size: 28px;
  font-weight: 900; box-shadow: 0 3px 0 rgba(59,48,36,0.1);
  display: flex; align-items: center; justify-content: center;
}
.soup-cell.got { background: var(--amber); }
.soup-cell.no { animation: shake 0.3s; }

.blanks { display: flex; gap: 8px; justify-content: center; }
.blank {
  min-width: 44px; height: 56px; border-bottom: 5px solid var(--ink-soft);
  font-size: 36px; font-weight: 900; text-align: center; line-height: 56px; padding: 0 4px;
}

.chips-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.word-chip {
  background: var(--card); border-radius: 999px; padding: 12px 18px; font-size: 21px;
  font-weight: 800; box-shadow: 0 3px 0 rgba(59,48,36,0.12); min-height: 44px;
  border: 2px solid #EAD9BF;
}
.word-chip.used { opacity: 0.25; pointer-events: none; }
.word-chip.no { animation: shake 0.3s; background: var(--red-soft); }
.built { font-size: 24px; font-weight: 800; min-height: 40px; text-align: center; }

.timer-bar { height: 14px; background: #EAD9BF; border-radius: 7px; overflow: hidden; }
.timer-fill { height: 100%; background: var(--teal); border-radius: 7px; transition: width 1s linear; }

.stat-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.stat-table td, .stat-table th { padding: 7px 6px; border-bottom: 1px solid #F0E5D2; text-align: left; }
.stat-table th { color: var(--ink-soft); font-size: 13px; }
.stat-table td.num { text-align: right; font-weight: 800; }

.sticker-grid { display: flex; flex-wrap: wrap; gap: 8px; font-size: 40px; }

.gear { font-size: 22px; opacity: 0.5; padding: 8px; }

.world-chip { font-size: 14px; font-weight: 800; padding: 5px 12px; border-radius: 999px; display: inline-block; }
.world-dieren { background: #EAF8E4; color: var(--green-text); }
.world-magie { background: #F1E8FD; color: var(--purple-text); }
.world-sport { background: #FFEFD6; color: var(--amber-text); }

.parent-note { font-size: 15px; color: var(--ink-soft); background: #FBF0DD; border-radius: 14px; padding: 10px 14px; font-weight: 600; }
.consent-row { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 14px; font-weight: 700; }
.consent-row input { width: 22px; height: 22px; accent-color: var(--teal-dark); }
button:focus-visible, input:focus-visible { outline: 4px solid var(--purple-dark); outline-offset: 3px; }

@media (max-width: 430px) {
  .bigword { font-size: 46px; }
  .memory-grid { grid-template-columns: repeat(3, 1fr); }
  .story { font-size: 22px; }
  .mascot-pick { font-size: 48px; }
}

/* ---- v2: profiles, levels, rewards, typed dictee ---- */
.mascot-btn { background: none; border: none; padding: 0; line-height: 1; min-width: 44px; min-height: 44px; }
.reward-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.reward-chip {
  background: var(--card); border-radius: 999px; padding: 7px 13px; font-size: 15px;
  font-weight: 800; box-shadow: 0 2px 0 rgba(59,48,36,0.1); border: none;
}

.prof-list, .level-list { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; margin: 0 auto; }
.prof-card, .level-card {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border-radius: var(--radius); padding: 14px 16px; width: 100%; text-align: left;
  box-shadow: 0 4px 0 rgba(59,48,36,0.1); border: 3px solid transparent;
}
.prof-card:active, .level-card:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(59,48,36,0.1); }
.prof-naam { font-size: 20px; font-weight: 800; flex: 1; }
.prof-sub { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.level-card .prof-naam { flex: none; }
.level-card .prof-sub { margin-left: auto; }
.level-card.lvl1 { border-color: var(--green); }
.level-card.lvl2 { border-color: var(--amber); }
.level-card.lvl3 { border-color: var(--purple); }

/* inviting "Over de app" link on the profiles screen */
.about-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #FFF3E0, #FFE7D2);
  color: var(--coral-text); font-size: 17px; font-weight: 800;
  border-radius: 999px; padding: 9px 18px 9px 10px;
  border: 2px solid rgba(255,138,92,0.35);
  box-shadow: 0 3px 0 rgba(224,106,60,0.16);
}
.about-link:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(224,106,60,0.16); }
.about-link .al-ico {
  width: 34px; height: 34px; border-radius: 999px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 1px 3px rgba(224,106,60,0.22);
}
.about-link .al-chev { font-size: 22px; font-weight: 900; opacity: 0.55; margin-left: 2px; }

.name-input, .dictee-input {
  font-family: inherit; font-size: 26px; font-weight: 800; text-align: center;
  padding: 14px 16px; border-radius: 16px; border: 3px solid var(--amber);
  background: var(--card); color: var(--ink); width: 100%; max-width: 340px; outline: none;
}
.name-input:focus, .dictee-input:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,138,92,0.2); }
.gat { color: var(--coral-text); font-weight: 900; letter-spacing: 2px; }

.reis-path { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px; margin: 6px 0; }
.reis-stop { font-size: 18px; color: #C9B79A; }
.reis-stop.on { color: var(--amber-text); }
.reis-line { width: 12px; height: 4px; background: #EAD9BF; border-radius: 2px; }
.reis-line.on { background: var(--amber); }

.medal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 10px; }
.medal { text-align: center; background: #FBF0DD; border-radius: 14px; padding: 10px 6px; }
.medal.off { opacity: 0.45; }
.medal-n { font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-top: 2px; }

/* ---- sentence dictee ---- */
.dictee-area {
  font-family: inherit; font-size: 22px; font-weight: 700; line-height: 1.5;
  padding: 12px 14px; border-radius: 16px; border: 3px solid var(--amber);
  background: var(--card); color: var(--ink); width: 100%; max-width: 460px;
  outline: none; resize: none; text-align: center;
}
.dictee-area:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,138,92,0.2); }
.dictee-check { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
.dw {
  font-size: 22px; font-weight: 800; border-radius: 12px; padding: 8px 12px;
  display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15;
}
.dw.ok { background: #EAF8E4; color: var(--green-text); }
.dw.bad { background: var(--red-soft); color: #B44339; }
.dw-typed { font-size: 12px; font-weight: 600; color: #9A5A4E; margin-top: 2px; text-decoration: line-through; }
/* word-by-word sentence builder */
.dictee-strip { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0 2px; }
.dw.cur { background: var(--card); border: 2px dashed var(--coral); color: var(--ink); min-width: 46px; }
.dw.todo { background: #EFEAE1; color: #C9BCA8; letter-spacing: 2px; }
.dictee-strip .dw.pop { animation: wpop 0.5s ease; }

/* ---- reward bar (home) + reward page ---- */
.reward-bar {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: linear-gradient(135deg, #FF9E4E 0%, var(--coral) 45%, #F47A4D 100%);
  border-radius: 999px; padding: 15px 16px 15px 20px;
  color: var(--ink); font-weight: 800; font-size: 15.5px;
  box-shadow: 0 5px 0 var(--coral-dark), 0 9px 16px rgba(224,106,60,0.30);
  animation: rb-breathe 3.4s ease-in-out infinite;
}
.reward-bar:active {
  transform: translateY(3px) scale(0.992);
  box-shadow: 0 2px 0 var(--coral-dark), 0 4px 9px rgba(224,106,60,0.25);
  animation: none;
}
.rb-left {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 900; font-size: 20px; letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(150,50,20,0.38);
}
.rb-stat { margin-left: auto; white-space: nowrap; font-weight: 800; text-shadow: 0 1px 1px rgba(150,50,20,0.32); }
.rb-stat + .rb-stat { margin-left: 0; }
.rb-go {
  flex-shrink: 0; margin-left: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  background: #fff; color: var(--coral-text);
  font-size: 26px; font-weight: 900; line-height: 1;
  box-shadow: 0 2px 5px rgba(150,50,20,0.25);
}
@keyframes rb-breathe {
  0%, 100% { transform: translateY(0) scale(1);
    box-shadow: 0 5px 0 var(--coral-dark), 0 9px 16px rgba(224,106,60,0.30); }
  50% { transform: translateY(-2px) scale(1.012);
    box-shadow: 0 7px 0 var(--coral-dark), 0 15px 24px rgba(224,106,60,0.38); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .confetti { display: none !important; }
}

.reis-hero { text-align: center; padding: 8px 0 4px; }
.reis-castle-goal { font-size: 20px; font-weight: 800; }
.reis-bar {
  height: 20px; background: #EFE3CC; border-radius: 999px; margin: 14px auto 8px;
  max-width: 460px; overflow: hidden; position: relative;
}
.reis-fill { height: 100%; background: var(--amber); border-radius: 999px; transition: width .4s ease; min-width: 20px; }
.reis-stat { font-size: 15px; color: var(--ink-soft); font-weight: 700; }

.medal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; margin-top: 18px; }
.medal { text-align: center; background: var(--card); border-radius: 16px; padding: 14px 8px; box-shadow: 0 3px 0 rgba(59,48,36,0.08); }
.medal-e { font-size: 40px; line-height: 1; }
.medal.locked { opacity: 1; }
.medal.locked .medal-e { filter: grayscale(1); opacity: 0.28; }
.medal.locked .medal-n { color: #C3B49B; }
.medal.got { background: #FFF6E0; }
.medal-n { font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-top: 6px; }

/* ---- reis: adventure map + sticker sheets ---- */
.reis-map-card { text-align: center; }
.reis-goal { font-size: 19px; font-weight: 800; color: var(--ink); }
.reis-stat { font-size: 15px; color: var(--ink-soft); font-weight: 700; margin-top: 8px; }
.reis-help { margin-top: 2px; }
.reis-node { cursor: pointer; outline: none; }
.reis-node text { pointer-events: none; }
.reis-node.lock { cursor: default; }
.reis-node:not(.lock):focus .reis-node-ring { stroke: var(--teal-text); stroke-width: 5; }
.reis-node:not(.lock):active { opacity: 0.72; }
.reis-cur { animation: pulse-stroke 1.4s infinite; }
@keyframes pulse-stroke { 0%,100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.35; } }
.sheet-title { font-size: 18px; font-weight: 800; color: var(--ink); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sticker-sheet { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.sticker-slot {
  aspect-ratio: 1; border-radius: 14px; background: #FBF3E4; border: 2px dashed #E3D3B4;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.sticker-slot.filled { background: #FFF6E0; border: 2px solid var(--amber); }
.sticker-slot .ss-ico { opacity: 0.3; filter: grayscale(1); font-size: 0.82em; }
.sticker-slot.filled .ss-e { animation: wpop 0.5s ease; }
.sheet-foot { font-size: 14px; color: var(--ink-soft); font-weight: 700; margin-top: 10px; text-align: center; }
.past-sheet { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.past-label { font-size: 13px; font-weight: 800; color: var(--ink-soft); min-width: 46px; }
.past-sheet .sticker-sheet { flex: 1; gap: 5px; }
.past-sheet .sticker-slot { border-radius: 10px; font-size: 17px; border-width: 2px; }

/* ---- home: replay/practice banner ---- */
.replay-banner { background: #FFF6E0; border: 2px solid var(--amber); }

/* ---- parent corner: tiles + focus bars ---- */
.stat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.stat-tile { background: #FBF0DD; border-radius: 16px; padding: 14px 8px; text-align: center; }
.stat-tile .st-e { font-size: 22px; }
.stat-tile .st-num { font-size: 24px; font-weight: 900; color: var(--ink); line-height: 1.1; margin-top: 2px; }
.stat-tile .st-lbl { font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-top: 3px; }
.focus-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.focus-lbl { font-size: 14px; font-weight: 700; color: var(--ink); flex: 1; min-width: 0; }
.focus-track { flex: 0 0 84px; height: 10px; border-radius: 999px; background: #F0E5D2; overflow: hidden; }
.focus-bar { display: block; height: 100%; background: var(--coral); border-radius: 999px; }
.focus-n { font-size: 13px; font-weight: 800; color: var(--ink-soft); min-width: 40px; text-align: right; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-word { display: inline-block; background: #FBF0DD; border-radius: 999px; padding: 5px 11px; font-size: 14px; font-weight: 700; }
.section-label { font-size: 13px; font-weight: 800; color: var(--ink-soft); margin: 20px 4px 0; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- shared game head ---- */
.game-head { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; }
@keyframes wpop { 0% { transform: scale(1); } 50% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---- uniform gentle skip (every Spel game) ---- */
/* Calm, secondary "Overslaan →" appended at the foot of an activity: clearly
   available when a child is stuck, but muted so it isn't the obvious first choice
   over actually answering. */

/* ---- woordballonnen ---- */
.balloon-field { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; padding: 6px 0 22px; }
.balloon {
  position: relative; width: 132px; min-height: 128px; padding: 10px 8px;
  border-radius: 48% 48% 48% 48% / 42% 42% 58% 58%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-weight: 900; font-size: 25px; line-height: 1.1;
  box-shadow: inset -9px -9px 0 rgba(0,0,0,0.08), 0 6px 0 rgba(59,48,36,0.14);
}
.balloon .balloon-txt {
  display: block; width: 100%; white-space: nowrap; word-break: normal;
  overflow-wrap: normal; hyphens: none; text-align: center; padding: 0 4px;
}
.balloon .balloon-knot {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-top: 11px solid rgba(0,0,0,0.14);
}
.balloon:active { transform: translateY(3px) scale(0.97); }
.b-coral { background: var(--coral); } .b-teal { background: var(--teal); } .b-amber { background: var(--amber); }
.b-purple { background: var(--purple); } .b-green { background: var(--green); } .b-pink { background: var(--pink); }
.balloon.pop { animation: balloon-pop 0.5s ease forwards; pointer-events: none; }
@keyframes balloon-pop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(0.15); opacity: 0; } }
.balloon.wobble { animation: balloon-wob 0.5s ease; }
@keyframes balloon-wob { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-7deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); } }
.balloon.show { box-shadow: 0 0 0 5px var(--green), inset -9px -9px 0 rgba(0,0,0,0.08), 0 6px 0 rgba(59,48,36,0.14); }

/* ---- extra stickers shelf (reis) ---- */
.extras-shelf { display: flex; flex-wrap: wrap; gap: 10px; }
.extra-sticker { font-size: 38px; line-height: 1; }

/* ---- welcome / landing page ---- */
.welkom-hero { text-align: center; padding: 12px 8px 4px; }
.welkom-sun { font-size: 80px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(224,106,60,0.22)); }
.welkom-title { font-size: 36px; font-weight: 900; margin-top: 2px; letter-spacing: 0.3px; }
.welkom-tag { font-size: 18px; font-weight: 700; color: var(--ink-soft); margin-top: 6px; }
.welkom-cta { display: flex; max-width: 340px; margin: 20px auto 0; }

.welkom-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 26px 0 14px; }
.wtab {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border-radius: 999px; padding: 9px 16px 9px 9px;
  font-size: 15px; font-weight: 800; color: var(--ink-soft);
  box-shadow: 0 3px 0 rgba(59,48,36,0.08); border: 2px solid transparent;
}
.wtab .wtab-ico {
  width: 28px; height: 28px; border-radius: 999px; background: #FFF3E0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.wtab.on {
  color: var(--ink); background: linear-gradient(135deg, #FF9E4E, var(--coral));
  border-color: transparent; box-shadow: 0 3px 0 var(--coral-dark);
}
.wtab.on .wtab-ico { background: rgba(255,255,255,0.28); }

.welkom-panelwrap { min-height: 230px; padding: 22px 20px; }
.wpanel { display: none; }
.wpanel.show { display: block; animation: pop-in 0.2s ease; }
.welkom-p { font-size: 17px; font-weight: 600; line-height: 1.6; color: var(--ink); margin-bottom: 14px; }
.welkom-p:last-child { margin-bottom: 0; }
.welkom-p b { font-weight: 900; color: var(--coral-text); }
.welkom-lead { font-size: 18.5px; }

/* skill tags (Over de app) */
.wp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.wp-tag {
  font-size: 14.5px; font-weight: 800; color: var(--coral-text);
  background: #FFF1E2; border-radius: 999px; padding: 7px 13px;
}

/* daily-activities grid (Zo werkt het) */
.wp-acts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px;
}
.wp-act {
  display: flex; align-items: center; gap: 10px;
  background: #FBF3E4; border-radius: 16px; padding: 11px 12px;
  font-size: 16px; font-weight: 800; color: var(--ink);
}
.wp-act-ico {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 999px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
  box-shadow: 0 2px 0 rgba(59,48,36,0.08);
}

/* soft callout / tip / parent note */
.wp-callout {
  display: flex; align-items: flex-start; gap: 11px;
  background: #FFF1E2; border-radius: 16px; padding: 13px 15px;
  font-size: 16.5px; font-weight: 600; line-height: 1.5; color: var(--ink);
  margin-top: 4px;
}
.wp-callout:not(:last-child) { margin-bottom: 12px; }
.wp-callout b { font-weight: 900; color: var(--coral-text); }
.wp-callout-ico { flex-shrink: 0; font-size: 22px; line-height: 1.3; }

/* numbered install steps with round badges */
.welkom-steps { list-style: none; counter-reset: step; margin: 2px 0 14px; padding: 0; }
.welkom-steps li {
  position: relative; counter-increment: step;
  font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--ink);
  padding: 8px 0 8px 46px; min-height: 34px;
}
.welkom-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 6px;
  width: 32px; height: 32px; border-radius: 999px;
  background: linear-gradient(135deg, #FF9E4E, var(--coral)); color: var(--ink);
  font-size: 17px; font-weight: 900; line-height: 32px; text-align: center;
  box-shadow: 0 2px 0 var(--coral-dark);
}

/* icon notes list (Voortgang) */
.wp-notes { display: flex; flex-direction: column; gap: 12px; }
.wp-note {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16.5px; font-weight: 600; line-height: 1.5; color: var(--ink);
}
.wp-note-ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px; background: #FBF3E4;
  display: inline-flex; align-items: center; justify-content: center; font-size: 21px;
}

/* anonymous developer sign-off */
.dev-note {
  max-width: 460px; margin: 20px auto 4px; padding: 0 8px; text-align: center;
  font-size: 14px; font-weight: 600; font-style: italic; line-height: 1.55;
  color: var(--ink-soft);
}
.dev-note .dn-heart { font-style: normal; }

/* ---- manage children (Kindjes beheren) ---- */
.kb-head { text-align: center; margin: 2px 0 16px; }
.kb-title { font-size: 26px; font-weight: 900; }
.kb-tag { font-size: 15.5px; font-weight: 700; color: var(--ink-soft); margin-top: 4px; }
.kb-list { display: flex; flex-direction: column; gap: 12px; max-width: 460px; margin: 0 auto; }
.kb-card {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px;
  background: var(--card); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: 0 3px 0 rgba(59,48,36,0.08);
}
.kb-card.editing { outline: 3px solid var(--coral); }
.kb-ico {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 999px; background: #FFF3E0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 32px; line-height: 1;
}
.kb-info { flex: 1 1 130px; min-width: 0; }
.kb-naam { font-size: 21px; font-weight: 800; }
.kb-sub { font-size: 14px; font-weight: 700; color: var(--ink-soft); margin-top: 2px; }
.kb-actions { display: flex; gap: 8px; margin-left: auto; }
.kb-btn { white-space: nowrap; }
.kb-input {
  flex: 1 1 150px; min-width: 0; max-width: none; text-align: left;
  font-size: 20px; padding: 11px 14px;
}

/* ---- letterspellen: tik de letters op volgorde (slang / ballon / hockey) ----
   Eén layout, drie jasjes. Alle beweging is CSS (pop, slide, zweven) — geen
   canvas, geen game-loop, kan dus niet vastlopen. */
.spel-wrap { border-radius: var(--radius); padding: 16px 12px 20px; margin-bottom: 14px; box-shadow: 0 3px 0 rgba(59,48,36,0.08); }
.spel-vak {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center;
  min-height: 62px; margin-bottom: 6px;
}
.spel-slot {
  width: 46px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 900; color: var(--ink);
  background: rgba(255,255,255,0.35); box-shadow: inset 0 0 0 3px rgba(255,255,255,0.55);
}
.spel-slot.vol { animation: slot-vol 0.4s ease; }
@keyframes slot-vol { 0% { transform: scale(0.2); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

.spel-hint { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 6px 0 14px; }
.spel-onder { font-size: 15px; font-weight: 700; color: var(--ink-soft); }

.spel-veld { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 6px 0 2px; }
.spel-tegel {
  position: relative; width: 68px; height: 68px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 900; color: var(--ink);
}
.spel-tegel .tegel-letter { line-height: 1; }
.spel-tegel:active { transform: translateY(3px) scale(0.96); }
.spel-tegel.mis { animation: shake 0.35s; }
.spel-tegel.weg { pointer-events: none; animation: tegel-weg 0.4s ease forwards; }
@keyframes tegel-weg { 0% { transform: scale(1); } 45% { transform: scale(1.25); } 100% { transform: scale(0.1); opacity: 0; } }

/* jasje 1: slang — gras + groene schakels die aangroeien */
.sk-slang { background: linear-gradient(180deg, #EAF8E4, #D7F0CC); }
.sv-slang .spel-slot { background: var(--green); box-shadow: inset 0 0 0 3px var(--green-dark); }
.slang-kop { font-size: 40px; margin-right: 2px; line-height: 1; }
.st-slang { background: var(--green); box-shadow: 0 5px 0 var(--green-dark); border-radius: 50% 50% 44% 44%; }

/* jasje 2: ballon — lucht + zwevende ballonnen (zweven = puur CSS) */
.sk-ballon { background: linear-gradient(180deg, #E6F4FF, #F4FBFF); }
.sv-ballon .spel-slot { background: var(--coral); box-shadow: inset 0 0 0 3px var(--coral-dark); }
.st-ballon {
  border-radius: 48% 48% 48% 48% / 42% 42% 58% 58%;
  box-shadow: inset -7px -7px 0 rgba(0,0,0,0.08), 0 6px 0 rgba(59,48,36,0.14);
  animation: ballon-zweef 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.45s);
}
.sf-ballon .spel-tegel:nth-child(6n+1) { background: var(--coral); }
.sf-ballon .spel-tegel:nth-child(6n+2) { background: var(--teal); }
.sf-ballon .spel-tegel:nth-child(6n+3) { background: var(--purple); }
.sf-ballon .spel-tegel:nth-child(6n+4) { background: var(--amber); }
.sf-ballon .spel-tegel:nth-child(6n+5) { background: var(--green); }
.sf-ballon .spel-tegel:nth-child(6n+6) { background: var(--pink); }
.st-ballon .ballon-knoop {
  position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 10px solid rgba(0,0,0,0.14);
}
@keyframes ballon-zweef { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* jasje 3: hockey — ijsbaan + pucks die het doel in schieten */
.sk-hockey { background: linear-gradient(180deg, #E9F3FB, #F6FBFF); }
.sv-hockey .spel-slot {
  background: #4A6B8A; color: #fff; text-shadow: 0 2px 1px rgba(0,0,0,0.35);
  box-shadow: inset 0 0 0 3px #33506B;
}
.doel-net { font-size: 38px; line-height: 1; }
.st-hockey {
  background: radial-gradient(circle at 40% 34%, #4a4a4a, #171717);
  color: #fff; text-shadow: 0 2px 1px #000;
  border-radius: 50%; box-shadow: 0 5px 0 #000, inset 0 3px 6px rgba(255,255,255,0.15);
}
.st-hockey.weg { animation: puck-weg 0.5s ease forwards; }
@keyframes puck-weg { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(-120px) scale(0.4); opacity: 0; } }

/* ============================================================
   v30 — ouder-gebied (profielen · ouder-gate · Kindjes beheren · ouder-pagina)
   Zelfde warme info-page-familie: variabelen, ronde iconen, zachte schaduw.
   ============================================================ */

/* profielenscherm: "Nieuw kindje" en "Kindjes beheren" zijn even grote knoppen.
   Nieuw kindje springt eruit (warme coral + gradient + diepere lift); Kindjes
   beheren heeft dezelfde vorm maar een rustige, gedempte teal — duidelijk de
   secundaire actie, plat (geen gradient/animatie), en gegrendeld (🔒). */
.prof-new {
  background: linear-gradient(135deg, #FFA765, var(--coral));
  box-shadow: 0 5px 0 var(--coral-dark); letter-spacing: 0.3px;
}
.prof-new:active { box-shadow: 0 1px 0 var(--coral-dark); transform: translateY(4px); }

.prof-manage { background: #5DB4A4; box-shadow: 0 4px 0 #3C8B7C; }
.prof-manage:active { box-shadow: 0 1px 0 #3C8B7C; transform: translateY(3px); }

/* ouder-gate: zachte 4-cijfer code (geboortejaar) */
.gate-wrap { max-width: 360px; margin: 6px auto 0; text-align: center; }
.gate-lock { font-size: 58px; line-height: 1; }
.gate-title { font-size: 26px; font-weight: 900; margin-top: 10px; }
.gate-tag { font-size: 16px; font-weight: 600; color: var(--ink-soft); line-height: 1.5; margin-top: 8px; }
.gate-tag b { color: var(--coral-text); font-weight: 900; }
.gate-input {
  font-family: inherit; font-weight: 900; text-align: center;
  font-size: 40px; letter-spacing: 14px; padding: 14px 8px 14px 22px;
  display: block; width: 100%; max-width: 240px; margin: 20px auto 0;
  border-radius: 18px; border: 3px solid var(--amber); background: var(--card);
  color: var(--ink); outline: none;
}
.gate-input:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,138,92,0.2); }
.gate-msg { min-height: 22px; margin-top: 12px; font-size: 15px; font-weight: 800; color: var(--coral-text); }
.gate-go { display: block; width: 100%; max-width: 240px; margin: 2px auto 0; }
.gate-note { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-top: 16px; }

/* Kindjes beheren: niveau-kiezer per kind */
.kb-niveau {
  flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch;
  border-top: 2px solid #F3EADB; margin-top: 4px; padding-top: 12px;
}
.kb-niveau-lbl { flex: 1 1 100%; font-size: 12.5px; font-weight: 800; color: var(--ink-soft); }
.kb-lvl {
  flex: 1 1 0; min-width: 96px; display: flex; align-items: center; gap: 8px;
  background: #FBF3E4; border-radius: 14px; padding: 9px 11px;
  border: 2px solid transparent; text-align: left;
}
.kb-lvl:active { transform: translateY(1px); }
.kb-lvl-ico { font-size: 20px; flex-shrink: 0; }
.kb-lvl-tx { display: flex; flex-direction: column; min-width: 0; }
.kb-lvl-nm { font-size: 14px; font-weight: 800; color: var(--ink); }
.kb-lvl-sub { font-size: 11px; font-weight: 700; color: var(--ink-soft); line-height: 1.2; }
.kb-lvl.on { background: #fff; border-color: var(--teal); box-shadow: 0 2px 0 rgba(46,154,133,0.35); }
.kb-lvl.on .kb-lvl-nm { color: var(--teal-text); }

/* ouder-pagina: "Vandaag geoefend?"-badge */
.today-badge {
  display: flex; align-items: center; gap: 13px;
  border-radius: 18px; padding: 14px 16px; margin-bottom: 14px;
}
.today-badge .tb-ico { font-size: 30px; line-height: 1; flex-shrink: 0; }
.today-badge .tb-tx { display: flex; flex-direction: column; min-width: 0; }
.today-badge .tb-lbl { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.75; }
.today-badge .tb-tit { font-size: 18px; font-weight: 900; line-height: 1.2; margin-top: 1px; }
.today-badge .tb-sub { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin-top: 2px; }
.today-badge.yes { background: #EAF8E4; color: var(--green-text); }
.today-badge.no { background: #FFF1E2; color: var(--coral-text); }

/* ouder-pagina: overzicht van de 6 dagelijkse onderdelen */
.pblocks { display: flex; flex-direction: column; gap: 8px; }
.pblock { display: flex; align-items: center; gap: 10px; background: #FBF3E4; border-radius: 14px; padding: 9px 11px; }
.pblock .pb-ico {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 999px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 19px;
  box-shadow: 0 2px 0 rgba(59,48,36,0.06);
}
.pblock .pb-tx { display: flex; flex-direction: column; min-width: 0; }
.pblock .pb-tx b { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.pblock .pb-mn { font-size: 12px; font-weight: 600; color: var(--ink-soft); line-height: 1.3; }

/* ouder-pagina: kleine rustige hint + afgezonderde gevaar-kaart */
.parent-hint { font-size: 13px; font-weight: 600; color: var(--ink-soft); background: #FBF3E4; border-radius: 12px; padding: 9px 12px; line-height: 1.45; }
.parent-hint b { font-weight: 800; color: var(--coral-text); }
.danger-card { border: 2px solid #F6D3CD; background: #FFF6F3; }

/* ============================================================
   v61 — paid demo boundary
   Calm, child-safe locks; commercial details stay in the parent area.
   ============================================================ */
.paid-offer {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: 620px; margin: 12px auto 18px; padding: 14px 16px;
  border: 2px solid #BFE6D8; border-radius: 18px; background: #F1FBF6;
  box-shadow: 0 3px 0 rgba(46,154,133,0.12); text-align: left;
}
.paid-offer-icon { font-size: 34px; line-height: 1; }
.paid-offer-copy { display: flex; flex: 1 1 190px; flex-direction: column; min-width: 0; }
.paid-offer-copy b { color: var(--green-text); font-size: 16px; font-weight: 900; }
.paid-offer-copy span { color: var(--ink-soft); font-size: 13px; font-weight: 700; margin-top: 2px; }

.level-card.locked, .prof-card.locked { background: #F8F1E7; border-color: #D9CBB8; }
.level-card.locked .prof-naam, .prof-card.locked .prof-naam { color: var(--ink-soft); }
.level-access {
  margin-left: 8px; padding: 5px 8px; border-radius: 999px; white-space: nowrap;
  background: #E8F7EA; color: var(--green-text); font-size: 11px; font-weight: 900;
}
.level-card.locked .level-access { background: #EEE4D7; color: #786B5B; }
.kb-lvl.locked { background: #F3ECE2; border-color: #E1D6C8; }
.kb-lvl.locked .kb-lvl-nm, .kb-lvl.locked .kb-lvl-sub { color: #786B5B; }

.paid-lock-card, .paid-parent-head {
  max-width: 440px; margin: 18px auto 0; padding: 24px 20px;
  border-radius: 24px; background: var(--card); text-align: center;
  box-shadow: 0 5px 0 rgba(59,48,36,0.08);
}
.paid-lock-icon { font-size: 58px; line-height: 1; margin-bottom: 12px; }
.paid-lock-card .btn { width: 100%; max-width: 340px; }
.paid-parent-head { box-shadow: none; background: transparent; padding-top: 8px; }
.paid-plan-card { max-width: 520px; margin-left: auto; margin-right: auto; }
.paid-plan-title {
  color: var(--coral-text); font-size: 13px; font-weight: 900;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.paid-plan-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.paid-plan-row > span:first-child { font-size: 30px; }
.paid-plan-row > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.paid-plan-row b { font-size: 16px; font-weight: 900; }
.paid-plan-row small { color: var(--ink-soft); font-size: 13px; font-weight: 700; margin-top: 2px; }
.paid-status {
  display: flex; flex-direction: column; padding: 12px 14px; border-radius: 14px;
  background: #FFF4E6; color: var(--ink-soft); line-height: 1.45;
}
.paid-status b { color: var(--coral-text); font-size: 14px; }
.paid-status span { font-size: 13px; font-weight: 650; margin-top: 3px; }
.paid-plan-card .btn:disabled { opacity: 0.58; cursor: not-allowed; box-shadow: none; transform: none; }
.paid-demo-strip {

/* ---- v63: professional parent account and access area ---- */
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.58; cursor: not-allowed; box-shadow: none; transform: none;
}
.parent-section-tabs {
  display: flex; max-width: 520px; margin: 0 auto 14px; padding: 5px;
  border: 1px solid #E7DAC8; border-radius: 999px; background: #F4EBDD;
}
.parent-section-tabs span {
  flex: 1; padding: 8px 10px; border-radius: 999px; text-align: center;
  color: var(--ink-soft); font-size: 13px; font-weight: 800;
}
.parent-section-tabs .on { background: #fff; color: var(--ink); box-shadow: 0 2px 5px rgba(59,48,36,0.08); }
.account-overview-card { border: 2px solid #E9DDCC; }
.account-state {
  display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 13px 14px;
  border-radius: 16px; background: #F7F1E8;
}
.account-state.loading { background: #FFF6E2; }
.account-state.warning { background: #FFF0EC; }
.account-state.success { background: #EAF8E4; }
.account-state-icon { flex: 0 0 auto; font-size: 26px; }
.account-state > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.account-state b { font-size: 15px; font-weight: 900; }
.account-state small { margin-top: 2px; color: var(--ink-soft); font-size: 12.5px; font-weight: 650; overflow-wrap: anywhere; }
.parent-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.parent-auth-actions .btn { width: 100%; }
.privacy-mini {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 13px; padding-top: 12px;
  border-top: 1px solid #EFE5D7; color: var(--ink-soft); font-size: 12.5px; font-weight: 650; line-height: 1.45;
}
.paid-offer-grid { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 520px; margin: 0 auto; }
.premium-card { border: 2px solid #E6D8F6; background: linear-gradient(180deg, #FFFFFF, #FCF9FF); }
.paid-feature-list { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; color: var(--ink-soft); font-size: 13.5px; font-weight: 750; }
.paid-feature-list span::first-letter { color: var(--green-text); }
.paid-status.success { background: #EAF8E4; }
.paid-status.success b { color: var(--green-text); }
.parent-trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 560px; margin: 2px auto 0;
}
.parent-trust-row span {
  padding: 7px 10px; border: 1px solid #E8DCCA; border-radius: 999px; background: rgba(255,255,255,0.55);
  color: var(--ink-soft); font-size: 11.5px; font-weight: 800;
}
.auth-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: stretch; max-width: 680px; margin: 10px auto; }
.auth-brand-panel {
  padding: 26px 22px; border-radius: 24px;
  background: linear-gradient(150deg, #FFF1DF 0%, #F0FAF6 100%); border: 2px solid #E9DDCC;
}
.auth-brand-icon { font-size: 54px; margin-bottom: 12px; }
.auth-brand-panel .title { font-size: 25px; margin-top: 6px; }
.auth-points { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; color: var(--ink-soft); font-size: 13px; font-weight: 750; line-height: 1.4; }
.auth-card { margin: 0; padding: 22px; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 14px; background: #F4EBDD; }
.auth-switch button { min-height: 40px; border-radius: 11px; color: var(--ink-soft); font-size: 13.5px; font-weight: 850; }
.auth-switch button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 5px rgba(59,48,36,0.09); }
.auth-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; text-align: left; }
.auth-field > span { color: var(--ink); font-size: 13px; font-weight: 850; }
.auth-field input {
  width: 100%; min-height: 50px; padding: 12px 13px; border: 2px solid #DED1BE; border-radius: 13px;
  background: #FFFEFC; color: var(--ink); font: inherit; font-size: 16px; font-weight: 650;
  -webkit-user-select: text; user-select: text;
}
.auth-field input:focus { border-color: var(--teal-dark); outline: 3px solid rgba(78,201,176,0.2); }
.auth-check { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 14px; color: var(--ink-soft); font-size: 12.5px; font-weight: 700; line-height: 1.4; text-align: left; }
.auth-check input { width: 21px; height: 21px; flex: 0 0 auto; accent-color: var(--teal-dark); }
.auth-message { min-height: 20px; margin: 7px 0 10px; padding: 0 2px; font-size: 13px; font-weight: 750; line-height: 1.4; text-align: left; }
.auth-message.error { color: #A43B31; }
.auth-message.success { color: var(--green-text); }
.auth-message.info { color: var(--ink-soft); }
.auth-submit { min-height: 54px; padding: 14px 18px; font-size: 18px; }
.auth-text-button { width: 100%; margin-top: 13px; color: var(--teal-text); font-size: 13.5px; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.auth-footnote { margin-top: 17px; padding-top: 13px; border-top: 1px solid #EFE5D7; color: var(--ink-soft); font-size: 11.5px; font-weight: 650; line-height: 1.45; }
.auth-confirmation { display: flex; min-height: 320px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.auth-confirmation > div { font-size: 54px; }
.auth-confirmation h2 { margin-top: 10px; font-size: 24px; }
.auth-confirmation p { margin: 10px 0 20px; color: var(--ink-soft); font-size: 14px; font-weight: 650; line-height: 1.55; }
.account-hero { display: flex; align-items: center; gap: 15px; max-width: 620px; margin: 6px auto 16px; }
.account-avatar { display: flex; width: 62px; height: 62px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 20px; background: #F0E9FA; font-size: 31px; }
.account-hero .title { font-size: 25px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 620px; margin: 0 auto; }
.account-card { max-width: 620px; margin-left: auto; margin-right: auto; }
.account-card-title { margin-bottom: 12px; color: var(--coral-text); font-size: 13px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.account-detail { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F0E6D8; }
.account-detail span { color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.account-detail b { max-width: 65%; font-size: 13px; font-weight: 850; overflow-wrap: anywhere; text-align: right; }
.account-detail b.good { color: var(--green-text); }
.account-wide { width: 100%; margin-top: 14px; }
.account-entitlement { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 15px; background: #F7F1E8; }
.account-entitlement.active { background: #EAF8E4; }
.account-entitlement > span { font-size: 30px; }
.account-entitlement > div { display: flex; flex-direction: column; }
.account-entitlement b { font-size: 14px; font-weight: 900; }
.account-entitlement small { margin-top: 2px; color: var(--ink-soft); font-size: 11.5px; font-weight: 700; }
.privacy-list { display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); font-size: 13px; font-weight: 700; line-height: 1.45; }

@media (max-width: 620px) {
  .auth-layout, .account-grid { grid-template-columns: 1fr; }
  .auth-brand-panel { padding: 20px 18px; }
  .auth-brand-icon { font-size: 42px; }
  .auth-points { margin-top: 14px; }
}

@media (max-width: 430px) {
  .parent-auth-actions { grid-template-columns: 1fr; }
  .parent-section-tabs span { padding-left: 5px; padding-right: 5px; font-size: 12px; }
  .account-hero { align-items: flex-start; }
  .auth-card { padding: 18px 15px; }
}
  margin: 10px 0 14px; padding: 10px 13px; border-radius: 13px;
  background: #EAF8E4; color: var(--green-text); font-size: 14px; font-weight: 900;
}
.reis-node.lock[data-locked-i] { cursor: pointer; }
.reis-node.lock[data-locked-i]:focus .reis-node-ring { stroke: var(--coral); stroke-width: 5; }
.reis-node.lock[data-locked-i]:active { opacity: 0.72; }

@media (max-width: 430px) {
  .paid-offer .btn { width: 100%; }
  .level-card { flex-wrap: wrap; }
  .level-card .prof-sub { margin-left: 0; flex: 1 1 150px; }
  .level-access { margin-left: auto; }
  .paid-lock-card { padding: 22px 16px; }
}
