/* English en Familia — papel cálido, un acento por persona, iconos dibujados, movimiento mínimo. */
:root {
  --fs: 1;
  --bg: #f6f3ec; --card: #ffffff; --fill: rgba(31,28,23,.07); --line: rgba(31,28,23,.13);
  --text: #1f1c17; --muted: #655f54;
  --accent: #0b62d4; --on: #ffffff; --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --ok: #187a48; --ok-soft: color-mix(in srgb, var(--ok) 16%, transparent); --bad: #b83a28; --bad-soft: color-mix(in srgb, var(--bad) 14%, transparent);
  --mat: rgba(250,248,243,.78); --r: 16px;
  --shadow: 0 1px 2px rgba(31,28,23,.06), 0 6px 18px rgba(31,28,23,.07);
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
:root[data-p="papa"] { --accent: #0b62d4; } :root[data-p="mama"] { --accent: #c0441a; } :root[data-p="hijo"] { --accent: #0b7a55; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #141311; --card: #201e1b; --fill: rgba(243,239,231,.09); --line: rgba(243,239,231,.16); --text: #f3efe7; --muted: #a8a296; --mat: rgba(32,30,27,.78); --ok: #55d796; --bad: #ff8f7d; --shadow: 0 1px 2px rgba(0,0,0,.4); --on: #0c0c0b; }
  :root[data-p="papa"] { --accent: #7db8ff; } :root[data-p="mama"] { --accent: #ff9d7a; } :root[data-p="hijo"] { --accent: #5fdcaa; } :root:not([data-p]) { --accent: #7db8ff; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: calc(16px * var(--fs)); accent-color: var(--accent); scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; caret-color: var(--accent); }
body.has-tabs { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
body.noscroll { overflow: hidden; }
::selection { background: var(--accent-soft); color: inherit; }
h1, h2, h3, p { margin: 0; } h1, h2, h3 { text-wrap: balance; } p { text-wrap: pretty; }
.more { width: 100%; padding: .8rem 1rem; color: var(--accent); font-weight: 700; text-align: left; border-top: 1px solid var(--line); min-height: 52px; }
h1.large { font: 800 2.05rem/1.08 var(--display); letter-spacing: -.028em; }
h2 { font: 750 1.4rem/1.15 var(--display); letter-spacing: -.02em; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
h3.sec { font: 700 1.15rem/1.2 var(--display); letter-spacing: -.012em; margin: 1.8rem 0 .55rem; display: flex; align-items: center; gap: .45rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center-t { text-align: center; } .hidden { display: none !important; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.ico { display: inline-flex; vertical-align: -.22em; flex: none; } .ico svg { width: 1.25em; height: 1.25em; display: block; }

.page { max-width: 760px; margin: 0 auto; padding: calc(22px + env(safe-area-inset-top)) 16px 24px; display: flex; flex-direction: column; gap: .8rem; }
.center-page { min-height: 100vh; justify-content: center; text-align: center; } .center-page h1 { text-align: center; }
.head { align-items: flex-start; } .date { color: var(--muted); font-size: .92rem; margin-top: .15rem; } .date::first-letter { text-transform: uppercase; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); font-size: 1.6rem; display: grid; place-items: center; flex: none; }

.card { background: var(--card); border-radius: var(--r); padding: 1.1rem; box-shadow: var(--shadow); }
.card.tight { padding: .85rem 1rem; margin-top: .6rem; } .ttl { font: 700 1.05rem/1.2 var(--display); display: flex; align-items: center; gap: .4rem; }
.bar { height: 10px; border-radius: 99px; background: var(--fill); overflow: hidden; margin-top: .55rem; } .bar.sm { height: 6px; margin-top: .3rem; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; }

/* iconos en insignias */
.bdg { width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; } .bdg .ico svg { width: 1.35rem; height: 1.35rem; }
.bdg.xl { width: 3.5rem; height: 3.5rem; border-radius: 16px; } .bdg.xl .ico svg { width: 1.8rem; height: 1.8rem; } .bdg.emo { font-size: 1.35rem; }

/* camino de hoy: horario visual */
.today .min { color: var(--muted); font-size: .9rem; } .today .min b { color: var(--text); font: 800 1.4rem var(--display); }
.path { list-style: none; margin: 1.4rem 0 1.2rem; padding: 0; display: flex; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; position: relative; min-width: 0; padding: 0 .1rem; }
.step::before { content: ""; position: absolute; top: 26px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.step:first-child::before { display: none; } .step.done::before, .step.now::before { background: var(--accent); }
.node { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line); color: var(--muted); position: relative; z-index: 1; transition: transform .1s; } .node:active { transform: scale(.94); } .node .ico svg { width: 1.45rem; height: 1.45rem; }
.step.done .node { background: var(--accent); border-color: var(--accent); color: var(--on); }
.step.now .node { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.sl { font-size: .76rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; } .step small { color: var(--muted); font-size: .72rem; }
.step.done .sl { color: var(--muted); }
.btn { background: var(--accent); color: var(--on); padding: .85rem 1.3rem; border-radius: 14px; font-weight: 700; font-size: 1.02rem; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; letter-spacing: -.005em; box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 6px 14px color-mix(in srgb, var(--accent) 28%, transparent); transition: transform .1s, filter .1s, box-shadow .1s; }
.btn:active { transform: translateY(1px) scale(.98); filter: brightness(.95); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 2px 6px color-mix(in srgb, var(--accent) 25%, transparent); }
.btn.secondary { background: var(--fill); color: var(--text); box-shadow: none; } .btn.cta { width: 100%; font-size: 1.1rem; min-height: 56px; }
.allset { display: flex; flex-direction: column; align-items: center; gap: .15rem; text-align: center; color: var(--ok); } .allset .ico svg { width: 2rem; height: 2rem; } .allset small { color: var(--muted); }
.strip { display: grid; grid-template-columns: auto 1fr; gap: .7rem; }
.cta { justify-content: flex-start !important; text-align: left; padding: .75rem 1.1rem !important; } .cta .ico svg { width: 1.5rem; height: 1.5rem; } .cta .ctx { display: flex; flex-direction: column; line-height: 1.2; } .cta .ctx small { font-weight: 600; opacity: .85; font-size: .8rem; }
.pill { background: var(--card); border-radius: var(--r); padding: .8rem .95rem; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-items: center; } .pill .ico { color: var(--accent); grid-row: span 2; } .pill .ico svg { width: 1.6rem; height: 1.6rem; } .pill b { font: 800 1.15rem/1.1 var(--display); } .pill small { color: var(--muted); } .pill .bar { grid-column: 1 / -1; }
.pill.lv { grid-template-columns: auto auto 1fr; } .pill.lv small { justify-self: start; }
.fam-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; } .fam-chip { background: var(--fill); padding: .3rem .75rem; border-radius: 99px; font-size: .85rem; font-weight: 600; }

/* listas */
.list { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .8rem 1rem; text-align: left; text-decoration: none; color: inherit; min-height: 60px; transition: background .1s, transform .1s; }
.row + .row { border-top: 1px solid var(--line); } .row:active { background: var(--fill); transform: scale(.99); }
.rt { display: flex; flex-direction: column; flex: 1; min-width: 0; } .rt small { color: var(--muted); line-height: 1.3; } .chev { color: var(--muted); } .chev .ico svg { width: 1.2rem; height: 1.2rem; }
.feature { display: flex; align-items: center; gap: 1rem; width: 100%; padding: 1.1rem; border-radius: var(--r); background: var(--accent); color: var(--on); text-align: left; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 10px 24px color-mix(in srgb, var(--accent) 30%, transparent); transition: transform .1s; } .feature:active { transform: scale(.985); }
.feature .bdg { background: rgba(255,255,255,.2); color: inherit; } :root:where([data-p]) .feature .bdg { background: color-mix(in srgb, var(--on) 22%, transparent); }
.ft { display: flex; flex-direction: column; flex: 1; gap: .1rem; } .ft small { font-weight: 700; opacity: .85; } .ft b { font: 800 1.35rem/1.15 var(--display); letter-spacing: -.02em; } .ft span { font-size: .93rem; opacity: .92; }
.fgo { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--on) 22%, transparent); }
.decks { margin-top: .6rem; }

/* pestañas: material translúcido */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom)); background: var(--mat); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); border-top: 1px solid var(--line); z-index: 20; }
.tabbar button { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .2rem 0; color: var(--muted); min-height: 52px; } .tabbar button:active { transform: scale(.94); }
.tabbar .ico { padding: .2rem 1rem; border-radius: 99px; transition: background .2s; } .tabbar .ico svg { width: 1.45rem; height: 1.45rem; } .tabbar small { font-size: .74rem; font-weight: 650; }
.tabbar .on { color: var(--accent); } .tabbar .on .ico { background: var(--accent-soft); }

.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .75rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; align-self: flex-start; } .chip.big { font-size: 1rem; padding: .4rem .9rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; } .chips.center { justify-content: center; }
.tip { background: var(--accent-soft); border-radius: 12px; padding: .7rem .9rem; font-size: .93rem; margin: .6rem 0; line-height: 1.45; } .tip .ico { color: var(--accent); margin-right: .15rem; }
.link { color: var(--accent); font-size: .85rem; min-height: 44px; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; } .actions > .btn { flex: 1 1 auto; } .actions.col { flex-direction: column; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--fill); color: var(--accent); vertical-align: middle; margin-left: .15rem; display: inline-grid; place-items: center; transition: transform .1s; } .icon-btn:active { transform: scale(.9); }
.seg { display: inline-flex; background: var(--fill); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { padding: .4rem .9rem; min-height: 40px; border-radius: 9px; font-weight: 650; font-size: .9rem; color: var(--muted); } .seg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.field { width: 100%; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem; font: inherit; color: var(--text); resize: vertical; } .field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .field.tall { min-height: 220px; } .field.pin { text-align: center; font-size: 1.4rem; letter-spacing: .3em; margin: .8rem 0; }
.form { display: flex; flex-direction: column; gap: .9rem; } .form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 650; font-size: .9rem; } .lbl { font-weight: 650; font-size: .9rem; margin-bottom: .3rem; }
.switch { flex-direction: row !important; justify-content: space-between; align-items: center; position: relative; font-weight: 500 !important; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; } .switch i { width: 51px; height: 31px; border-radius: 99px; background: var(--fill); border: 1px solid var(--line); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 1px; left: 1px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.3); transition: transform .25s cubic-bezier(.16,1,.3,1); } .switch input:checked + i { background: var(--accent); border-color: var(--accent); } .switch input:checked + i::after { transform: translateX(20px); } .switch input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }
.toggle, .check { display: flex; gap: .5rem; align-items: center; font-size: .92rem; padding: .35rem 0; min-height: 44px; }

/* perfiles */
.picker { display: flex; flex-direction: column; gap: .8rem; margin-top: 1rem; }
.who { --pa: #0b62d4; background: var(--card); border-radius: 20px; padding: 1.1rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; text-align: left; align-items: center; box-shadow: var(--shadow); transition: transform .12s; } .who:active { transform: scale(.98); }
.who[data-p="mama"] { --pa: #c0441a; } .who[data-p="hijo"] { --pa: #0b7a55; }
.who .av { grid-row: span 3; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-size: 2.3rem; background: color-mix(in srgb, var(--pa) 14%, transparent); }
.who b { font: 800 1.3rem var(--display); letter-spacing: -.02em; } .who small { color: var(--muted); } .who .mini { font-size: .85rem; color: var(--muted); } .who .mini .ico { color: var(--pa); }
.done-mark { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto .6rem; background: var(--accent-soft); color: var(--accent); } .done-mark .ico svg { width: 2.4rem; height: 2.4rem; }

/* logros */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); padding: 1rem .4rem; } .nums div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; } .nums div + div { border-left: 1px solid var(--line); } .nums b { font: 800 1.7rem/1.1 var(--display); letter-spacing: -.03em; } .nums small { color: var(--muted); font-size: .76rem; line-height: 1.2; padding: 0 .2rem; }
.week { display: flex; gap: .5rem; justify-content: space-between; height: 120px; } .wd { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; } .wb { flex: 1; width: 100%; max-width: 34px; background: var(--fill); border-radius: 10px; display: flex; align-items: flex-end; overflow: hidden; } .wb i { width: 100%; background: var(--accent); border-radius: 10px; opacity: .65; } .wb i.full { opacity: 1; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; } .medal { background: var(--card); border-radius: var(--r); padding: .9rem; display: flex; flex-direction: column; gap: .15rem; box-shadow: var(--shadow); } .medal .bdg { margin-bottom: .3rem; } .medal b { font-family: var(--display); } .medal small { color: var(--muted); line-height: 1.25; } .medal.locked { opacity: .55; } .medal.locked .bdg { filter: grayscale(1); }

/* capa de actividad */
.layer { position: fixed; inset: 0; background: var(--bg); z-index: 30; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.topbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .8rem; padding: calc(.5rem + env(safe-area-inset-top)) 1rem .5rem; background: var(--mat); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); border-bottom: 1px solid var(--line); }
.topbar .back { color: var(--accent); font-weight: 650; font-size: 1.02rem; min-height: 44px; display: inline-flex; align-items: center; gap: .15rem; padding-right: .6rem; } .topbar .t { font: 700 1rem var(--display); flex: 1; text-align: center; margin-right: 4.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act { max-width: 720px; margin: 0 auto; padding: .8rem 16px 3rem; } .act > .bar { margin: .4rem 0 1rem; }
.stage { display: flex; flex-direction: column; gap: .7rem; } .stage.center { text-align: center; align-items: center; }
.prompt { font: 650 1.3rem/1.35 var(--display); letter-spacing: -.012em; }
.flash { text-align: center; display: flex; flex-direction: column; gap: .4rem; align-items: center; padding: 1.6rem 1rem; }
.emoji.xl { font-size: 5.5rem; line-height: 1.1; } .emoji.lg { font-size: 3.4rem; line-height: 1.1; }
.flash .en { font: 800 2.2rem/1.15 var(--display); letter-spacing: -.028em; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .3rem; } .en.md { font-size: 1.6rem !important; } .flash .es { font-size: 1.3rem; color: var(--accent); font-weight: 650; } .flash .ex { color: var(--muted); }
.player { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.big-play { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: var(--on); display: grid; place-items: center; box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 8px 20px color-mix(in srgb, var(--accent) 38%, transparent); transition: transform .1s; align-self: center; } .big-play .ico svg { width: 2.2rem; height: 2.2rem; } .big-play:active { transform: scale(.93); } .big-play:disabled { background: var(--fill); color: var(--muted); box-shadow: none; opacity: 1; }
.wave { display: flex; gap: 4px; height: 28px; align-items: center; } .wave i { width: 5px; height: 8px; background: var(--accent); border-radius: 3px; opacity: .5; } .wave.on i { animation: wv .9s ease-in-out infinite; opacity: 1; } .wave.on i:nth-child(2) { animation-delay: .12s; } .wave.on i:nth-child(3) { animation-delay: .24s; } .wave.on i:nth-child(4) { animation-delay: .36s; } .wave.on i:nth-child(5) { animation-delay: .48s; }
@keyframes wv { 0%, 100% { height: 8px; } 50% { height: 26px; } }
.questions { display: flex; flex-direction: column; gap: 1rem; } .qblock .q { font-weight: 700; margin-bottom: .4rem; font-size: 1.05rem; }
.opts { display: grid; gap: .5rem; } .opts.four { grid-template-columns: 1fr 1fr; } .opts.emoji-opts { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.opt { background: var(--card); border: 2px solid transparent; border-radius: 14px; padding: .9rem 1rem; text-align: left; font-weight: 600; box-shadow: var(--shadow); min-height: 54px; transition: transform .1s, border-color .15s, background .15s; } .opt:active { transform: scale(.98); } .opt .en { font-size: 1.05rem; } .opt .es { color: var(--muted); font-weight: 500; }
.opt.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); } .opt.ok { border-color: var(--ok); background: var(--ok-soft); } .opt.bad { border-color: var(--bad); background: var(--bad-soft); } .opt:disabled { opacity: 1; }
.emoji-opts .opt { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .2rem; } .oe { font-size: 2.4rem; display: block; } .opts.four .opt { text-align: center; font: 700 1.3rem var(--display); }
.line { margin: .3rem 0; } details summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.diff { font-size: 1.1rem; line-height: 1.8; } .diff .ok { color: var(--ok); font-weight: 600; } .diff .miss { color: var(--bad); font-weight: 700; text-decoration: underline wavy; }
.clock { font: 800 3.4rem var(--display); text-align: center; letter-spacing: -.03em; } .clock.rec { color: var(--bad); } .clock.sm { font-size: 1.6rem; text-align: left; }
.rec-dot { color: var(--bad); font-weight: 700; text-align: center; animation: bl 1.4s infinite; } @keyframes bl { 50% { opacity: .35; } }
audio { width: 100%; margin-top: .4rem; } .model { line-height: 1.55; margin-top: .6rem; background: var(--fill); padding: .8rem; border-radius: 12px; }
.passage { line-height: 1.9; font-size: 1.12rem; } .sent { padding: .2rem .3rem; border-radius: 10px; transition: background .2s; } .sent.now { background: var(--accent-soft); } .es-line { color: var(--accent); font-size: .92rem; line-height: 1.4; }
.w { cursor: pointer; border-radius: 6px; padding: 0 1px; } .w:hover { background: var(--accent-soft); }
.gloss { position: sticky; bottom: 12px; background: var(--mat); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 14px; padding: .7rem 1rem; box-shadow: var(--shadow); font-size: 1.05rem; }
.bubble { padding: .9rem 1.1rem; border-radius: 20px; max-width: 92%; } .bubble.npc { background: var(--card); border-bottom-left-radius: 6px; box-shadow: var(--shadow); } .bubble.me { background: var(--accent-soft); border-bottom-right-radius: 6px; margin-left: auto; margin-top: .6rem; }
.bubble .en { font-size: 1.12rem; font-weight: 600; } .bubble .es { color: var(--muted); font-size: .9rem; }
.phrase { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-top: 1px solid var(--line); } .phrase:first-of-type { border: 0; }
.moods { display: flex; gap: .8rem; justify-content: center; } .mood { display: flex; flex-direction: column; align-items: center; background: var(--card); border: 2px solid transparent; border-radius: 18px; padding: .8rem 1.1rem; font-size: 2.2rem; box-shadow: var(--shadow); min-width: 84px; } .mood small { font-size: .8rem; color: var(--muted); } .mood.sel { border-color: var(--accent); }
.today-list { text-align: left; padding-left: 1.2rem; font-size: 1.1rem; line-height: 2; } .today-list span { font-size: 1.4rem; } .breathe { margin: .6rem 0; } .breath-dot { width: 70px; height: 70px; border-radius: 50%; background: var(--accent-soft); margin: 0 auto .4rem; animation: br 8s ease-in-out infinite; } @keyframes br { 0%, 100% { transform: scale(.7); } 50% { transform: scale(1.15); } }
.grid.mem { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; } .tile { aspect-ratio: 1; position: relative; perspective: 600px; border-radius: 16px; }
.tile .face { position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; backface-visibility: hidden; transition: transform .45s cubic-bezier(.16,1,.3,1); box-shadow: var(--shadow); padding: .3rem; text-align: center; }
.tile .front { background: var(--accent); color: var(--on); font: 800 2rem var(--display); } .tile .back { background: var(--card); transform: rotateY(180deg); } .tile.flip .front { transform: rotateY(-180deg); } .tile.flip .back { transform: rotateY(0); } .tile.done .back { background: var(--ok-soft); } .tile .word { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.build-line { min-height: 64px; background: var(--fill); border-radius: 16px; padding: .6rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; border: 2px dashed var(--line); } .build-line.ok { border-color: var(--ok); background: var(--ok-soft); } .build-bank { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: .4rem 0; }
.wtile { background: var(--card); padding: .65rem 1rem; border-radius: 12px; font-weight: 700; font-size: 1.1rem; box-shadow: 0 2px 6px rgba(0,0,0,.12); min-height: 48px; transition: transform .1s; } .wtile:active { transform: scale(.93); }

/* hoja de resultado */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.38); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; background: var(--mat); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%); border-radius: 24px 24px 0 0; padding: 1.4rem 1.2rem calc(1.6rem + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.2); border: 1px solid var(--line); }
.sheet h2 { justify-content: center; }
@media (min-width: 700px) { .scrim { align-items: center; } .sheet { border-radius: 24px; padding-bottom: 1.6rem; } }
@media (prefers-reduced-transparency: reduce) { .tabbar, .topbar, .sheet, .gloss { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .card, .row, .opt, .pill, .medal { border: 1.5px solid var(--text); } }
/* modo calmado y movimiento reducido */
.calm *, .calm *::before, .calm *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; } .calm .breath-dot { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: 0s !important; } }
.err { color: var(--bad); font-weight: 600; min-height: 1.4em; }
.av.big { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-size: 3rem; margin: 0 auto; background: var(--accent-soft); }
.av.big[data-p="papa"] { background: rgba(11,98,212,.14); } .av.big[data-p="mama"] { background: rgba(192,68,26,.14); } .av.big[data-p="hijo"] { background: rgba(11,122,85,.15); }
.center-page .link { margin-top: .6rem; }
