/* =================================================== BloomTracks features */

[hidden] { display: none !important; }
.small { font-size: .9rem; }
.left { justify-content: flex-start !important; text-align: left; }
code { background: var(--purple-soft); padding: .1em .45em; border-radius: 8px; font-weight: 800; letter-spacing: .05em; }

/* ------------------------------------------------------------ Pro badges */
.pro-badge, .mini-pro {
  display: inline-block; background: linear-gradient(135deg, #ffc93c, #ff9f1c); color: #5a3a00;
  font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .06em;
  padding: .12em .55em; border-radius: 999px; vertical-align: middle; margin-left: 6px;
}
.mini-pro { position: absolute; top: -6px; right: -6px; font-size: .6rem; margin: 0; }
.item .pro-badge { position: absolute; top: 10px; right: 10px; margin: 0; }
.item { position: relative; }
.item.locked svg { filter: grayscale(.4); opacity: .75; }
.chip-pro { color: #c77700; font-size: .7rem; }

/* ------------------------------------------------------------------ modal */
.modal-wrap { position: fixed; inset: 0; z-index: 120; background: rgba(45, 42, 62, .45); display: grid; place-items: center; padding: 16px; }
.modal { position: relative; width: 100%; max-width: 460px; }
.modal-x { position: absolute; top: 12px; right: 12px; }

/* ---------------------------------------------------------------- landing */
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.usp { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.usp > span { font-size: 2.2rem; }
.usp h3 { font-size: 1.2rem; margin-top: 6px; }
.usp p { color: var(--muted); margin: 0; font-size: .97rem; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mode-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); text-align: center; }
.mode-card h3 { font-size: 1.4rem; }
.mode-card p { color: var(--muted); margin: 0; }
.subject-cards.four { grid-template-columns: repeat(2, 1fr); }
.subject-card.world { border-top-color: var(--teal); }
.subject-card.create { border-top-color: #ffb020; }
.world .chip { background: #ddf7f4; }
.create .chip { background: #fff1d6; }
.early-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 1.08rem; }
.early-list li { background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 4px 14px rgba(91, 60, 196, .07); }
.early-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.early-tile { aspect-ratio: 1; display: grid; place-content: center; text-align: center; font-size: 3.2rem; background: #fff; border-radius: 26px; box-shadow: 0 8px 0 #e2daf7, var(--shadow); animation: bob 4s ease-in-out infinite; }
.early-tile:nth-child(2n) { animation-delay: -1.3s; }
.early-tile:nth-child(3n) { animation-delay: -2.6s; }
.early-tile small { font-size: .9rem; font-weight: 800; color: var(--muted); }
.plans.three { grid-template-columns: repeat(3, minmax(0, 340px)); }
.interval-toggle { display: flex; justify-content: center; gap: 8px; margin: -16px 0 30px; }
.interval-toggle b { color: var(--green); margin-left: 4px; }
.interval-toggle .tab.active b { color: #c7f5d6; }
.plan .interval-toggle { margin: 4px 0 10px; justify-content: flex-start; }
.perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 34px; }
.perks.single { grid-template-columns: 1fr; margin: 0; }
.perk { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 4px 14px rgba(91, 60, 196, .07); }
.perk > span { font-size: 1.6rem; }
.perk p { margin: 2px 0 0; color: var(--muted); font-size: .93rem; }

/* ------------------------------------------------------------------- auth */
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.role-opt { margin: 0; cursor: pointer; }
.role-opt input { position: absolute; opacity: 0; pointer-events: none; }
.role-opt span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; border: 3px solid var(--line); border-radius: 16px; font-size: 1.6rem; text-align: center; }
.role-opt b { font-size: 1rem; }
.role-opt small { font-size: .78rem; color: var(--muted); font-weight: 700; }
.role-opt input:checked + span { border-color: var(--purple-2); background: var(--purple-soft); }
.role-opt input:focus-visible + span { outline: 3px solid var(--yellow); }
.kid-login h1 { font-size: 1.9rem; }
.code-form { margin-top: 10px; }
.code-input { text-align: center; font-family: var(--font-head) !important; font-size: 2.2rem !important; letter-spacing: .3em; text-transform: uppercase; }
.who-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 18px 0; }
.who { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 3px solid var(--line); background: #fff; border-radius: 22px; padding: 10px 14px; cursor: pointer; font: inherit; color: var(--ink); transition: transform .15s; }
.who:hover { transform: translateY(-3px); border-color: var(--purple-2); }
.who b { font-family: var(--font-head); font-size: 1.1rem; }
.who.on { border-color: var(--green); background: #effbf2; box-shadow: 0 0 0 3px #bfeccc; }
.who-grid.small { justify-content: flex-start; }
.pin-dots { display: flex; justify-content: center; gap: 12px; margin: 12px 0; }
.pin-dots i { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--purple-2); }
.pin-dots i.on { background: var(--purple-2); }
.kid-login .numpad { margin: 10px auto 16px; justify-content: center; }

/* -------------------------------------------------------------- dashboard */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.plan-box { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); }
.plan-box b { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.plan-box small { color: var(--muted); font-weight: 700; }
.plan-box.pro { background: linear-gradient(135deg, #fff8e1, #fff); border: 2px solid #ffd67a; }
.quick-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; margin-top: 22px; }
.action-card { display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
a.action-card:hover { transform: translateY(-3px); transition: transform .15s; }
.action-card > span { font-size: 2rem; }
.action-card b { font-family: var(--font-head); font-size: 1.25rem; }
.action-card small { color: var(--muted); font-weight: 700; }
.code-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
.code-card small { flex-basis: 100%; order: 3; }
.code-card .btn { margin-left: auto; }
.icon-only { padding-left: .9em; padding-right: .9em; white-space: nowrap; }
.kid-card .row-btns .btn-block { flex: 1; width: auto; }
label.inline { display: flex; align-items: center; gap: 8px; }
.who-cell { display: flex; align-items: center; gap: 8px; }
.art-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.art-strip img { width: 110px; height: 110px; object-fit: cover; border-radius: 14px; border: 3px solid #fff; box-shadow: var(--shadow); background: #fff; }

/* ---------------------------------------------------------- together/class */
.subject-tabs.left { justify-content: flex-start; flex-wrap: wrap; }
.topic-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 14px; }
.topic-btn { text-align: left; border: 3px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 14px; font: inherit; font-weight: 800; cursor: pointer; color: var(--ink); }
.topic-btn:hover { border-color: var(--purple-2); background: #faf8ff; }
.row-btns.left { justify-content: flex-start; gap: 10px; }
.page .card + .card { margin-top: 20px; }

/* ------------------------------------------------------------------ map */
.island.locked .island-emoji { filter: grayscale(.6); opacity: .7; }
.island.locked { background: #fbfaff; }
.badge.pro { background: linear-gradient(135deg, #ffc93c, #ff9f1c); color: #5a3a00; }
.buddy-btn { border: 0; background: none; padding: 0; cursor: pointer; }
.subject-tab.active.world { background: var(--teal); color: #fff; box-shadow: 0 5px 0 #1f9488; }
.subject-tab.active.create { background: #ffb020; color: #fff; box-shadow: 0 5px 0 #d48a00; }
.world .island-emoji { background: #ddf7f4; }
.create .island-emoji { background: #fff1d6; }

/* -------------------------------------------------------------- gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 24px; }
.art-card { margin: 0; background: #fff; border-radius: 22px; padding: 12px; box-shadow: var(--shadow); }
.art-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 14px; background: #fff; display: block; }
.art-card figcaption { display: flex; align-items: center; gap: 8px; padding-top: 10px; }
.art-card figcaption b { flex: 1; }

/* ------------------------------------------------- Bloomie talking/listening */
.m-talk { display: none; }
.bloomie-talking .talker .m-idle { display: none; }
.bloomie-talking .talker .m-talk { display: inline; animation: talk .22s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes talk { from { transform: scaleY(.35); } to { transform: scaleY(1.1); } }
.bloomie-listening .mic, .mic.on { background: var(--coral) !important; color: #fff; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, .55); } 50% { box-shadow: 0 0 0 12px rgba(255, 107, 107, 0); } }
.bubble-box {
  position: relative; margin: 10px 0; background: #fff; border-radius: 18px; padding: 10px 14px;
  font-weight: 700; box-shadow: var(--shadow); font-size: .98rem; line-height: 1.35; text-align: left;
}
.bubble-box::before { content: ''; position: absolute; top: -10px; left: 50%; margin-left: -10px; border: 10px solid transparent; border-bottom-color: #fff; border-top: 0; }
.bubble-box.pop, .speech.pop { animation: pop .3s ease; }
.center-bubble { max-width: 420px; margin: 0 auto 10px; text-align: center; }

/* ---------------------------------------------------------------- play UI */
.buddy-art { border: 0; background: none; padding: 0; cursor: pointer; display: block; margin: 0 auto; }
.scoreboard { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.player { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 4px 12px 4px 4px; box-shadow: 0 3px 0 var(--line); font-weight: 800; border: 3px solid transparent; }
.player span { background: var(--purple-soft); border-radius: 999px; padding: 0 .55em; font-family: var(--font-head); }
.player.turn { border-color: var(--yellow); transform: scale(1.06); box-shadow: 0 6px 16px rgba(255, 201, 60, .5); }
.results.wide { max-width: 760px; }
.play-title { margin: 0; flex: 1; font-size: 1.4rem; }
.activity-main { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding-top: 22px; padding-bottom: 50px; align-items: start; }
.buddy.mini { position: sticky; top: 90px; }

body.big-screen { font-size: 20px; }
body.big-screen .q-prompt h2 { font-size: 2.4rem; }
body.big-screen .choice { font-size: 2.3rem; min-height: 100px; }
body.big-screen .big-eq { font-size: 4.4rem; }
body.big-screen .play-main { grid-template-columns: 180px 1fr; }

/* ----------------------------------------------------------- quiz extras */
.choices.two { grid-template-columns: repeat(2, 1fr); }
.choices.pics .choice { min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.choice small { font-family: var(--font-body); font-size: .95rem; font-weight: 800; color: var(--muted); }
.emo { font-size: 2.4rem; line-height: 1; }
.emo.xl { font-size: 3.6rem; }
.big-letter { font-family: var(--font-head); font-size: 3.4rem; line-height: 1; }
.big-letter-inline { font-family: var(--font-head); font-size: 1.4em; color: var(--purple-2); }
.color-blob { display: inline-block; width: 72px; height: 72px; border-radius: 50%; border: 4px solid #2d2a3e22; vertical-align: middle; }
.color-blob.sm { width: 26px; height: 26px; border-width: 2px; }
.choice .color-blob.sm { margin-right: 6px; }
.tower { display: inline-flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 140px; }
.tower-top { font-size: 1.8rem; line-height: 1; }
.tower-body { width: 22px; background: linear-gradient(#7c5cff, #5b3cc4); border-radius: 6px 6px 0 0; }
.pencil { display: inline-block; height: 18px; border-radius: 4px 0 0 4px; background: linear-gradient(90deg, #ffd166 85%, #f4a261 85%, #f4a261 95%, #2d2a3e 95%); box-shadow: inset 0 -4px 0 #e0a800; }
.ten-frame { display: grid; grid-template-columns: repeat(5, 46px); gap: 6px; padding: 8px; background: #fff; border: 3px solid var(--purple-2); border-radius: 12px; }
.ten-frame i { height: 46px; border-radius: 8px; background: var(--purple-soft); }
.ten-frame i.on { background: radial-gradient(circle, var(--coral) 55%, var(--purple-soft) 58%); }
.pairs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pairs span { display: inline-flex; gap: 4px; padding: 6px; border: 2px dashed #cfc4f2; border-radius: 12px; }
.coins { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 520px; }
.coin { display: inline-grid; place-items: center; border-radius: 50%; font-family: var(--font-head); font-weight: 800; color: #4a3500; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); }
.coin.c1 { width: 46px; height: 46px; background: #d08c4d; color: #fff; }
.coin.c5 { width: 52px; height: 52px; background: #c9ced6; }
.coin.c10 { width: 44px; height: 44px; background: #dfe3e8; }
.coin.c25 { width: 60px; height: 60px; background: #e6e9ee; }
.pictograph { background: #fff; border: 3px solid var(--line); border-radius: 16px; padding: 12px 16px; min-width: min(420px, 100%); }
.pg-title { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; text-align: center; margin-bottom: 6px; }
.pg-row { display: grid; grid-template-columns: 120px 1fr; align-items: center; border-top: 1px solid var(--line); padding: 6px 0; }
.pg-label { font-weight: 800; }
.pg-icons { font-size: 1.6rem; letter-spacing: .1em; }
.pg-key { text-align: right; font-weight: 800; color: var(--muted); margin-top: 6px; }
.sentence-box { font-size: 1.5rem; font-weight: 800; background: #fffaf0; border-radius: 14px; padding: 12px 20px; }
.passage h3 { margin: 0 0 4px; }
.q-tools { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.tool { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; background: var(--purple-soft); color: var(--purple); border-radius: 999px; padding: .45em 1.1em; font-weight: 800; font-size: 1rem; }
.tool:hover:not(:disabled) { background: #e2d9ff; }
.tool:disabled { opacity: .45; cursor: default; }
.grownup { margin-top: 18px; background: #f3f8ff; border: 2px dashed #bcd3f5; border-radius: 16px; padding: 10px 16px; }
.grownup summary { cursor: pointer; font-weight: 800; color: #22427a; }
.grownup p { margin: 8px 0; }
.spoiler { background: #22427a; color: transparent; border-radius: 6px; padding: 0 .4em; cursor: pointer; transition: color .2s, background .2s; }
.spoiler:hover, .spoiler:focus { background: #dbe8fb; color: #22427a; }
.spoiler * { visibility: hidden; }
.spoiler:hover *, .spoiler:focus * { visibility: visible; }

/* ------------------------------------------------------------ activities */
.studio { display: grid; grid-template-columns: 1fr 220px; gap: 20px; }
.studio-main { background: #fff; border-radius: 26px; padding: 18px; box-shadow: var(--shadow-lg); }
.color-canvas { max-width: 520px; margin: 0 auto; aspect-ratio: 1; }
.color-canvas svg { width: 100%; height: 100%; display: block; }
.color-canvas [data-i] { cursor: pointer; transition: fill .15s; }
.color-canvas [data-i]:hover { filter: brightness(.96); }
.palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0; }
.pal { width: 38px; height: 38px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); cursor: pointer; transition: transform .12s; }
.pal.on { transform: scale(1.2); box-shadow: 0 0 0 3px var(--ink); }
.studio-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.page-list { background: #fff; border-radius: 22px; padding: 14px; box-shadow: var(--shadow); align-self: start; }
.page-list h3 { font-size: 1.1rem; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb { aspect-ratio: 1; border: 3px solid var(--line); border-radius: 14px; background: #fff; padding: 2px; cursor: pointer; display: grid; place-items: center; }
.thumb.on { border-color: var(--purple-2); }
.thumb svg { width: 100%; height: 100%; }
.thumb.locked { font-size: 1.4rem; background: #fff8e1; border-style: dashed; }
.thumb.locked small { font-size: .65rem; font-weight: 800; color: #8a6200; }

.paint { background: #fff; border-radius: 26px; padding: 16px; box-shadow: var(--shadow-lg); }
.paint-tools { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 12px; }
.tool-group { display: flex; gap: 6px; background: var(--purple-soft); border-radius: 16px; padding: 6px; }
.ptool, .psize, .pstamp { position: relative; width: 46px; height: 46px; border: 0; border-radius: 12px; background: #fff; cursor: pointer; font-size: 1.4rem; display: grid; place-items: center; }
.ptool.on, .psize.on, .pstamp.on { background: var(--purple-2); box-shadow: 0 3px 0 #43299b; }
.psize i { display: block; border-radius: 50%; background: var(--ink); }
.psize.on i { background: #fff; }
.paint-canvas { display: block; width: 100%; aspect-ratio: 10 / 7; border: 3px solid var(--line); border-radius: 18px; touch-action: none; cursor: crosshair; background: #fff; }

.memory-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-weight: 700; }
.tab.locked { background: #fff8e1; color: #8a6200; }
.memory-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 12px; max-width: 640px; margin: 0 auto; }
.mcard { position: relative; aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; perspective: 600px; }
.mface { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 18px; backface-visibility: hidden; transition: transform .35s ease; font-size: clamp(1.8rem, 6vw, 3rem); }
.mface.front { background: linear-gradient(135deg, var(--purple-2), var(--purple)); color: #fff; box-shadow: 0 5px 0 #43299b; }
.mface.back { background: #fff; transform: rotateY(180deg); box-shadow: 0 5px 0 var(--line); border: 3px solid var(--line); font-family: var(--font-head); font-weight: 800; }
.mface.back.dots { font-size: clamp(.7rem, 2vw, 1.1rem); letter-spacing: .1em; word-break: break-all; padding: 8px; color: var(--coral); }
.mcard.flip .front { transform: rotateY(180deg); }
.mcard.flip .back { transform: rotateY(360deg); }
.mcard.matched .back { border-color: var(--green); background: #effbf2; }

.jig-layout { display: grid; grid-template-columns: 1fr 200px; gap: 20px; align-items: start; }
.jig-board { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; max-width: 520px; width: 100%; margin: 0 auto; aspect-ratio: 1; background: var(--line); padding: 4px; border-radius: 18px; }
.jig-tile { position: relative; border: 0; padding: 0; border-radius: 8px; cursor: pointer; background-repeat: no-repeat; background-color: #fff; transition: transform .15s, box-shadow .15s; }
.jig-tile.sel { transform: scale(.92); box-shadow: 0 0 0 4px var(--yellow); z-index: 1; }
.jig-tile.empty { background: transparent; cursor: default; }
.jig-tile i { position: absolute; top: 4px; left: 6px; font-style: normal; font-weight: 800; color: #fff; text-shadow: 0 1px 3px #000a; }
.jig-board.solved { gap: 0; padding: 0; background: none; box-shadow: 0 0 0 6px var(--green), var(--shadow-lg); animation: pop .5s; }
.jig-board.solved .jig-tile { border-radius: 0; }
.jig-side { display: grid; gap: 12px; text-align: center; }
.jig-preview { background: #fff; border-radius: 18px; padding: 8px; box-shadow: var(--shadow); }
.jig-preview svg { width: 100%; height: auto; border-radius: 12px; }
.jig-preview small { font-weight: 800; color: var(--muted); }

.maze { display: grid; justify-items: center; gap: 14px; }
.maze-board { width: 100%; max-width: 520px; background: #fff; border-radius: 22px; padding: 10px; box-shadow: var(--shadow-lg); touch-action: none; }
.maze-svg { width: 100%; height: auto; display: block; }
.maze-player { transition: transform .15s ease; }
.dpad { display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(3, 64px); gap: 6px; }
.dpad button { border: 0; border-radius: 16px; background: var(--purple-soft); font-size: 1.8rem; cursor: pointer; box-shadow: 0 4px 0 #d8cdfb; }
.dpad button:active { transform: translateY(3px); box-shadow: 0 1px 0 #d8cdfb; }
.dpad [data-dir="n"] { grid-column: 2; grid-row: 1; }
.dpad [data-dir="w"] { grid-column: 1; grid-row: 2; }
.dpad [data-mic], .dpad > span { grid-column: 2; grid-row: 2; }
.dpad [data-dir="e"] { grid-column: 3; grid-row: 2; }
.dpad [data-dir="s"] { grid-column: 2; grid-row: 3; }

/* --------------------------------------------------------------- upgrade */
.upgrade-hero { text-align: center; max-width: 720px; margin: 0 auto 26px; }
.upgrade-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.upgrade-grid { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: start; }
.upgrade-grid .plan { display: grid; gap: 12px; }
.pro-note { background: #effbf2; border-radius: 14px; padding: 12px 14px; margin: 0; }
.demo-note { background: #fff8e1; border-radius: 14px; padding: 12px 14px; font-size: .93rem; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .plans.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 960px) {
  .modes, .quick-actions, .upgrade-grid { grid-template-columns: 1fr; }
  .studio, .jig-layout { grid-template-columns: 1fr; }
  .page-list .thumbs { grid-template-columns: repeat(6, 1fr); }
  .jig-side { grid-template-columns: 120px 1fr; align-items: center; }
  .activity-main { grid-template-columns: 1fr; }
  .buddy.mini { position: static; display: flex; align-items: center; gap: 12px; }
  .buddy.mini .buddy-art svg { width: 64px; height: 64px; }
  .buddy.mini .bubble-box { flex: 1; margin: 0; }
  .buddy.mini .bubble-box::before { display: none; }
  .buddy .bubble-box { margin: 0; }
}
@media (max-width: 720px) {
  .usp-grid, .subject-cards.four { grid-template-columns: 1fr; }
  .early-art { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .early-tile { font-size: 2.4rem; }
  .page-list .thumbs { grid-template-columns: repeat(4, 1fr); }
  .choices.pics .choice { min-height: 96px; }
  .emo.xl { font-size: 2.8rem; }
  .pg-row { grid-template-columns: 90px 1fr; }
  .ten-frame { grid-template-columns: repeat(5, 36px); }
  .ten-frame i { height: 36px; }
  .memory-grid { gap: 8px; }
  .pal { width: 32px; height: 32px; }
  .ptool, .psize, .pstamp { width: 40px; height: 40px; }
  .plan-box { width: 100%; }
  .code-card .btn { margin-left: 0; }
  .buddy .bubble-box { display: none; }
}

/* ---- crawlable intro, replaced as soon as the app renders */
.seo-intro { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; color: var(--muted); }
.seo-intro h1 { font-size: 1.6rem; }
.seo-intro h2 { font-size: 1.2rem; }

/* Account → Emails toggle */
.check-line { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check-line input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--purple); flex: none; }
