/* Continhas: visual "Adesivos suaves" (tokens copiados de site/style.css, para o jogo ser independente) */
:root {
  --y: #ffcd4f;
  --ink: #5c4646;
  --paper: #fffdf5;
  --pink: #ff86a3;
  --sky: #5ec4f5;
  --leaf: #5fcf8c;
  --orange: #ffa94d;
  --red: #ee6a6a;
  --lilas: #c7b3f0;
  --borda: #b39189;   /* contorno de quem não tem cor própria (papel) */
  --sombra: rgba(92, 70, 70, .16);
  --traco: 2px;
  --display: "Gluten", "Comic Sans MS", cursive;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --emoji: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  /* fundo próprio das Continhas (cada jogo tem o seu, veja o CLAUDE.md): laranja com sinaizinhos de mais e de menos */
  --fundo: #ffb877;
  --fundo-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M16 10v12M10 16h12M42 48h12' stroke='%23f7a462' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --fundo-tam: 64px 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  overflow: hidden;
  overscroll-behavior: none;
  background-color: var(--fundo);
  background-image: var(--fundo-img);
  background-size: var(--fundo-tam);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: var(--c-dedo); }
.hidden { display: none !important; }
h1, h2 { font-family: var(--display); font-weight: 800; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(32px, 6vw, 46px); }

/* ---------- camadas ---------- */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center;
  padding: calc(14px + var(--safe-t)) 16px 14px calc(16px + var(--safe-l));
  pointer-events: none;
}
/* nas páginas que rolam, uma faixa atrás do Início e do som para o texto não passar por baixo. Ela usa o mesmo
   fundo da página (alinhado, porque a faixa é fixa no canto e quem rola é a tela, não a página) e some
   embaixo, para o texto passar por trás suavemente */
body.paging .topbar {
  padding-bottom: 22px;
  background-color: var(--fundo);
  background-image: var(--fundo-img);
  background-size: var(--fundo-tam);
  background-position: 0 0;
  -webkit-mask-image: linear-gradient(#000 75%, transparent);
  mask-image: linear-gradient(#000 75%, transparent);
}
.topbar .home-link { pointer-events: auto; }
body.playing .topbar { display: none; }
body.playing .gear { display: none; }

/* Botão "Início": volta para a lista de jogos do laurinha.net */
.home-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 16px 6px 10px;
  font-family: var(--display); font-weight: 800; font-size: 20px;
  color: var(--ink); text-decoration: none;
  background: var(--y); border: var(--traco) solid color-mix(in srgb, var(--y) 60%, #4a3636); border-radius: 999px;
  box-shadow: 0 4px 0 var(--sombra);
  transition: transform .12s ease, box-shadow .12s ease;
}
.home-link svg { width: 22px; height: 22px; }
.home-link:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--sombra); }

/* ---------- som (sempre à mão) ---------- */
.sound-dock {
  position: fixed; z-index: 40; top: calc(12px + var(--safe-t)); right: calc(14px + var(--safe-r));
  display: flex; gap: 10px;
}
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: var(--paper); border: var(--traco) solid var(--borda); box-shadow: 0 4px 0 var(--sombra);
  transition: transform .12s ease, box-shadow .12s ease;
}
.round-btn svg { width: 28px; height: 28px; }
.round-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--sombra); }
#btnMute .off { display: none; }
#btnMute[aria-pressed="true"] { background: #fddde3; }
#btnMute[aria-pressed="true"] .on { display: none; }
#btnMute[aria-pressed="true"] .off { display: inline; }

/* ---------- telas ---------- */
.screen {
  position: fixed; inset: 0; z-index: 1;
  display: grid; place-items: center;
  padding: calc(84px + var(--safe-t)) calc(16px + var(--safe-r)) calc(20px + var(--safe-b)) calc(16px + var(--safe-l));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.screen.scroll { place-items: start center; }
.overlay {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center;
  padding: calc(84px + var(--safe-t)) 16px calc(16px + var(--safe-b));
  background: rgba(92, 70, 70, .35);
  overflow: auto;
}

.panel {
  display: grid; gap: 14px; justify-items: center; text-align: center;
  width: min(560px, 100%);
  padding: 24px 22px 26px;
  background: var(--paper);
  border: var(--traco) solid var(--borda); border-radius: 26px; box-shadow: 0 8px 0 var(--sombra);
  transform: rotate(-.3deg);
  animation: pop .35s cubic-bezier(.3, 1.4, .5, 1) both;
}
@keyframes pop { from { transform: scale(.85) rotate(-3deg); opacity: 0; } }
.sub { margin: -6px 0 2px; font-weight: 800; }
.lbl { font-family: var(--body); font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; opacity: .75; margin-top: 4px; }
.big-text { margin: 0; font-size: 22px; font-weight: 800; }

/* ---------- botões ---------- */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1;
  background: var(--pink); color: var(--ink); border: var(--traco) solid color-mix(in srgb, var(--pink) 60%, #4a3636); border-radius: 16px;
  padding: 8px 22px 10px; box-shadow: 0 5px 0 var(--sombra); text-decoration: none; min-height: 52px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn.big { font-size: 34px; padding: 10px 34px 12px; border-radius: 20px; box-shadow: 0 6px 0 var(--sombra); min-height: 66px; }
.btn.alt { background: var(--sky); color: var(--ink); border-color: color-mix(in srgb, var(--sky) 60%, #4a3636); }
.btn.small { font-size: 18px; padding: 5px 14px 7px; min-height: 42px; box-shadow: 0 4px 0 var(--sombra); }
.btn.leaf { background: var(--leaf); color: var(--ink); border-color: color-mix(in srgb, var(--leaf) 60%, #4a3636); }
.btn.sky { background: var(--sky); color: var(--ink); border-color: color-mix(in srgb, var(--sky) 60%, #4a3636); }
.btn:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--sombra); }
.btn:disabled { opacity: .45; cursor: var(--c-seta); transform: none; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btns.col { flex-direction: column; align-items: stretch; width: min(360px, 100%); }
.link {
  background: none; border: 0; padding: 8px 10px; min-height: 44px;
  font-weight: 900; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}
:focus-visible { outline: 4px solid var(--sky); outline-offset: 3px; }

/* níveis e modos: botões grandes que ficam "apertados" quando escolhidos */
.ages { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.age {
  min-width: 70px; height: 70px; padding: 0 12px; border-radius: 18px;
  background: #fff; border: var(--traco) solid var(--borda); box-shadow: 0 5px 0 var(--sombra);
  font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1;
  display: grid; place-items: center;
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.age small { display: block; font-family: var(--body); font-size: 12px; font-weight: 900; margin-top: 2px; }
.age[aria-checked="true"] { background: var(--y); transform: translateY(2px); box-shadow: 0 3px 0 var(--sombra); border-color: color-mix(in srgb, var(--y) 60%, #4a3636); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.modes.two { grid-template-columns: repeat(2, 1fr); width: min(340px, 100%); }
.mode {
  display: grid; justify-items: center; align-content: center; gap: 2px; padding: 10px 6px; min-height: 64px;
  background: #fff; border: var(--traco) solid var(--borda); border-radius: 16px; box-shadow: 0 5px 0 var(--sombra);
  font-weight: 900; font-size: 17px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.mode .mi { font-family: var(--display); font-size: 26px; line-height: 1; }
.mode[aria-checked="true"] { background: var(--leaf); transform: translateY(2px); box-shadow: 0 3px 0 var(--sombra); border-color: color-mix(in srgb, var(--leaf) 60%, #4a3636); }
#menuLinguas .mode[aria-checked="true"] { background: var(--sky); border-color: color-mix(in srgb, var(--sky) 60%, #4a3636); }
#menuLinguas .mi { font-size: 22px; white-space: nowrap; }
.play { margin-top: 6px; }
.progress { display: grid; gap: 6px; justify-items: center; font-weight: 900; }
.dots { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 360px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: var(--traco) solid var(--borda); background: #fff; }
.dots i.on { background: var(--y); box-shadow: inset 0 0 0 2px #fdf5d1; border-color: color-mix(in srgb, var(--y) 60%, #4a3636); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; margin-top: 6px; font-size: 16px; }

/* ---------- jogo ---------- */
.game {
  display: flex; flex-direction: column; gap: 10px; place-items: stretch;
  padding: calc(12px + var(--safe-t)) calc(12px + var(--safe-r)) calc(12px + var(--safe-b)) calc(12px + var(--safe-l));
  overflow: hidden;
  touch-action: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.game-head { display: flex; align-items: center; gap: 12px; min-height: 56px; padding-right: 76px; }
body:not(.playing) .game-head { visibility: hidden; }
.round-title {
  font-size: clamp(18px, 4.6vw, 32px); background: var(--y); color: var(--ink);
  padding: 4px 16px 6px; border-radius: 14px; transform: rotate(-.6deg);
  min-width: 0; text-wrap: balance;
}
.conta-dots { flex-wrap: nowrap; flex-shrink: 0; margin-left: auto; }
.dots i.agora { background: var(--pink); border-color: color-mix(in srgb, var(--pink) 60%, #4a3636); transform: scale(1.2); }

/* a conta: [a] + [b] = [?] numa linha, ou em duas ([a] + [b] / = [?]) quando assim os cartões ficam maiores.
   --s (tamanho do cartão) vem do layout() do main.js */
.board { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; }
.board.wide { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); }
.conta {
  --s: 160px;
  min-height: 0; min-width: 0;
  display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: center; gap: 10px;
}
.conta .quebra { display: none; }
.conta.duas .quebra { display: block; flex-basis: 100%; height: 0; }
.conta.entra > :not(.quebra) { animation: entra .4s cubic-bezier(.3, 1.4, .5, 1) both; }
.conta.entra > :nth-child(2) { animation-delay: .05s; }
.conta.entra > :nth-child(3) { animation-delay: .1s; }
.conta.entra > :nth-child(5) { animation-delay: .15s; }
.conta.entra > :nth-child(6) { animation-delay: .2s; }
@keyframes entra { from { transform: translateY(24px) scale(.8); opacity: 0; } }

.parte, .resposta {
  position: relative; width: var(--s); height: var(--s);
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: calc(var(--s) * .03); padding: calc(var(--s) * .06);
  background: var(--paper); border: var(--traco) solid var(--borda); border-radius: calc(var(--s) * .12 + 6px);
  box-shadow: 0 6px 0 var(--sombra);
}
.parte { cursor: var(--c-dedo); }
.parte.a { rotate: -.6deg; }
.parte.b { rotate: .4deg; }
.parte .num {
  font-family: var(--display); font-weight: 800; font-size: calc(var(--s) * .24); line-height: 1; text-align: center;
}
.art { container-type: size; width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; }
.sinal {
  width: calc(var(--s) * .34); text-align: center;
  font-family: var(--display); font-weight: 800; font-size: calc(var(--s) * .42); line-height: 1;
}

/* o "?" é o alvo (classe .fig, que o drag.js procura) */
.resposta { touch-action: none; cursor: var(--c-dedo); transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.resposta .slot {
  display: grid; place-items: center; height: calc(var(--s) * .3);
  border: 3px dashed rgba(92, 70, 70, .3); border-radius: 12px;
  font-family: var(--display); font-weight: 800; font-size: calc(var(--s) * .24); line-height: 1; color: rgba(92, 70, 70, .45);
}
.fig.over { transform: scale(1.06); box-shadow: 0 9px 0 var(--sombra); background: #fdf5d1; }
.fig.over .slot { border-color: var(--pink); background: #ffe3ea; }
.fig.done { background: #f0fff4; }
.fig.done .slot { border: var(--traco) solid color-mix(in srgb, var(--y) 60%, #4a3636); background: var(--y); color: var(--ink); }
.fig.yay { animation: yay .8s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes yay {
  0% { transform: scale(1); }
  30% { transform: scale(1.18) rotate(-6deg) translateY(-10px); }
  55% { transform: scale(.96) rotate(4deg); }
  80% { transform: scale(1.04) rotate(-1deg); }
  100% { transform: scale(1) rotate(0); }
}

/* dicas: na soma as coisinhas aparecem juntas e clarinhas no "?"; na subtração as que saem ficam riscadas */
.art.dica { opacity: .4; }
.c.riscado { position: relative; }
.c.riscado .e { opacity: .3; }
.c.riscado::after {
  content: ""; position: absolute; inset: 14%;
  background:
    linear-gradient(45deg, transparent 43%, var(--red) 43% 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, var(--red) 43% 57%, transparent 57%);
  border-radius: 4px;
}

/* quantidades: arranjo de dado (até 6) e quadro de dez, medidos pelo espaço do cartão (container query) */
.dice {
  display: grid; grid-template: repeat(3, minmax(0, 1fr)) / repeat(3, minmax(0, 1fr));
  width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); margin: auto;
}
.dice .c, .frame .c { position: relative; display: grid; place-items: center; font-family: var(--emoji); line-height: 1; min-width: 0; min-height: 0; }
.dice .c { font-size: min(29cqw, 29cqh); }
.frames { display: grid; gap: 4px; width: 100%; height: 100%; align-content: center; justify-items: center; }
.frame {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; width: min(96cqw, 210cqh);
  border: 2px solid rgba(92, 70, 70, .45); border-radius: 8px; padding: 2px; background: #fff;
}
.frames.two .frame { width: min(96cqw, 108cqh); }
.frame .c { aspect-ratio: 1; font-size: min(14cqw, 31cqh); }
.frames.two .frame .c { font-size: min(14cqw, 16cqh); }
.frame .c.empty::before { content: ""; width: 42%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(92, 70, 70, .25); }

.tray { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-content: center; padding: 4px 8px 10px; }
.board.wide .tray { flex-direction: column; flex-wrap: nowrap; gap: 14px; padding: 4px 8px 8px 4px; }
.chip {
  min-height: max(48px, 2.2em); min-width: max(56px, 2.2em); padding: .28em .62em .36em;
  font-family: var(--display); font-weight: 800; font-size: var(--chip-font, 28px); line-height: 1; letter-spacing: .02em;
  color: var(--ink); background: #fff; border: var(--traco) solid var(--borda); border-radius: 16px; box-shadow: 0 5px 0 var(--sombra);
  touch-action: none; cursor: var(--c-mao);
  user-select: none; -webkit-user-select: none;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s;
}
.chip:nth-child(4n+1) { background: #ffe3ea; }
.chip:nth-child(4n+2) { background: #dff3ff; }
.chip:nth-child(4n+3) { background: #e2f7e9; }
.chip:nth-child(4n) { background: #fdf1dd; }
.chip.lifting { opacity: .3; }
.chip.used { visibility: hidden; }
.chip.apaga { opacity: .35; transition: opacity .3s; }
.chip.hint:not(.used) { animation: brilho 1.1s ease-in-out infinite; }
@keyframes brilho {
  0%, 100% { box-shadow: 0 5px 0 var(--sombra), 0 0 0 0 rgba(255, 212, 59, 0); }
  50% { box-shadow: 0 5px 0 var(--sombra), 0 0 0 10px rgba(255, 212, 59, .9); }
}
.chip.sel { transform: translateY(-6px) rotate(-.8deg); box-shadow: 0 11px 0 var(--sombra); outline: 4px solid var(--pink); outline-offset: 2px; }
.chip.nope { animation: nope .45s ease; }
@keyframes nope {
  20% { transform: translateX(-8px) rotate(-3deg); }
  40% { transform: translateX(7px) rotate(2deg); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
.chip-ghost {
  position: fixed; z-index: 45; margin: 0; pointer-events: none;
  box-shadow: 0 13px 0 rgba(92, 70, 70, .45); cursor: var(--c-agarra); transition: none;
}

/* balão de fala e carimbo */
.bubble {
  position: fixed; z-index: 46; left: 50%; top: calc(76px + var(--safe-t));
  width: max-content; max-width: min(560px, calc(100% - 32px));
  transform: translate(-50%, -10px) scale(.9); opacity: 0; pointer-events: none;
  padding: 8px 20px 10px; background: var(--paper); border: var(--traco) solid var(--borda); border-radius: 22px;
  box-shadow: 0 5px 0 var(--sombra);
  font-family: var(--display); font-weight: 800; font-size: clamp(20px, 4vw, 30px); text-align: center;
  transition: opacity .2s ease, transform .25s cubic-bezier(.3, 1.4, .5, 1);
}
.bubble.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.stamp {
  position: fixed; z-index: 55; left: 50%; top: 24%; pointer-events: none; opacity: 0;
  font-family: var(--display); font-weight: 800; font-size: clamp(56px, 14vw, 120px); line-height: 1; white-space: nowrap;
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 7px 0 var(--sombra);
  transform: translate(-50%, -50%) rotate(var(--rot, -4deg)) scale(3);
}
.stamp.go { animation: stamp 1.3s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot)) scale(3); }
  18% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot)) scale(.92); }
  28% { transform: translate(-50%, -50%) rotate(var(--rot)) scale(1.04); }
  75% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot)) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot)) scale(1.1); }
}

/* fim de rodada e de nível */
.party h1 { font-size: clamp(34px, 7vw, 52px); }
.medal { display: flex; gap: 6px; font-family: var(--emoji); font-size: 48px; line-height: 1; }
.medal span { animation: jump 1s cubic-bezier(.3, 1.4, .5, 1) both; }
.medal span:nth-child(2) { animation-delay: .15s; font-size: 62px; }
.medal span:nth-child(3) { animation-delay: .3s; }
@keyframes jump { from { transform: translateY(30px) scale(0) rotate(-40deg); } }
.trophy { font-family: var(--emoji); font-size: 84px; line-height: 1; animation: jump 1s cubic-bezier(.3, 1.4, .5, 1) both, wiggle 2s 1s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.ask { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; }

/* tela de som */
.sliders { display: grid; gap: 14px; width: 100%; }
.slider { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; text-align: left; }
.slider label { font-weight: 900; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--pink) var(--p, 50%), #fff var(--p, 50%)); border: var(--traco) solid var(--borda); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: #fff; border: var(--traco) solid var(--borda); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--pink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -13px; border-radius: 50%; background: var(--y); border: var(--traco) solid color-mix(in srgb, var(--y) 60%, #4a3636); box-shadow: 0 3px 0 var(--sombra); }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--y); border: var(--traco) solid color-mix(in srgb, var(--y) 60%, #4a3636); }

/* ---------- "Como são os níveis" ---------- */
.page { width: min(980px, 100%); display: grid; gap: 18px; padding-bottom: 40px; text-align: left; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.page-head h1 {
  display: inline-block; background: var(--y); color: var(--ink); padding: 4px 18px 6px; border-radius: 14px;
  transform: rotate(-.6deg); font-size: clamp(28px, 6vw, 40px);
}
.card-box {
  background: var(--paper); border: var(--traco) solid var(--borda); border-radius: 18px; box-shadow: 0 6px 0 var(--sombra);
  padding: 16px 18px; display: grid; gap: 10px; min-width: 0;
}
.card-box h2 { font-size: 26px; }
.card-box p { margin: 0; max-width: 75ch; }
.method section { scroll-margin-top: 90px; }
.table-wrap { overflow-x: auto; }
.dose { border-collapse: collapse; width: 100%; max-width: 75ch; font-size: 16px; background: #fff; border: 2px solid rgba(92, 70, 70, .25); border-radius: 10px; }
.dose th, .dose td { padding: 7px 10px; text-align: left; border-bottom: 1px solid rgba(92, 70, 70, .15); }
.dose th { font-weight: 900; background: #fdf5d1; }
.dose td:first-child { font-weight: 900; white-space: nowrap; }

/* ---------- hover só onde existe mouse ---------- */
@media (hover: hover) {
  .home-link:hover, .home-link:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sombra); outline: none; }
  .btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--sombra); }
  .round-btn:hover, .age:not([aria-checked="true"]):hover, .mode:not([aria-checked="true"]):hover {
    transform: translateY(-2px); box-shadow: 0 6px 0 var(--sombra);
  }
  .chip:not(.used):not(.sel):hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--sombra); }
}

@media (max-width: 520px) {
  .panel { padding: 20px 14px 22px; }
  .age { min-width: 58px; height: 62px; font-size: 28px; }
  .mode { font-size: 15px; }
  .btn.big { font-size: 30px; }
  .slider { grid-template-columns: 66px 1fr auto; gap: 8px; }
  .slider .btn { padding: 4px 10px 6px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stamp { display: none; }
}
