/* rádio Átomo e bichinhos de humor */
  /* ---------- radio atomo: vinil compacto no cabecalho, do lado do avatar ---------- */
  .top-row-right { display:flex; align-items:center; gap:8px; }
  .header-radio-widget { flex:none; width:36px; height:36px; border-radius:18px; background:var(--card);
    border:1px solid var(--card-b); box-shadow:var(--shadow); display:flex; align-items:center; overflow:hidden;
    cursor:pointer; transition: width .4s cubic-bezier(.2,.8,.2,1); }
  .header-radio-widget.aberto { width:180px; }
  .header-radio-widget:active { transform: scale(.94); }
  .header-radio-disco { width:36px; height:36px; flex:none; display:flex; align-items:center; justify-content:center; }
  .header-radio-disco svg { width:26px; height:26px; display:block; animation: vinilGirar 3s linear infinite; animation-play-state: paused; }
  .header-radio-widget.aberto .header-radio-disco svg { animation-play-state: running; }
  @keyframes vinilGirar { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  .header-radio-marquee-wrap { flex:1; min-width:0; height:100%; display:flex; align-items:center; gap:6px;
    padding-right:8px; opacity:0; transition: opacity .25s ease; }
  .header-radio-widget.aberto .header-radio-marquee-wrap { opacity:1; transition-delay:.15s; }
  .header-radio-marquee { flex:1; min-width:0; height:100%; overflow:hidden; position:relative; }
  .header-radio-marquee span { position:absolute; white-space:nowrap; font-family:'DM Sans', sans-serif;
    font-size:10.5px; font-weight:700; color:var(--ink); top:50%; transform:translateY(-50%); }
  .header-radio-widget.aberto .header-radio-marquee span { animation: radioMarqueeAndar 8s linear infinite; left:100%; }
  @keyframes radioMarqueeAndar { from { left:100%; } to { left:-140%; } }
  .header-radio-estilo-btn { flex:none; width:18px; height:18px; border:none; background:none; padding:0; margin:0;
    color:var(--ink-faint); font-size:12px; line-height:1; cursor:pointer; }

  .home-emocoes-wrap { margin-bottom: 18px; }
  .home-emocoes-card { background:var(--card); border:1px solid var(--card-b); border-radius:18px; padding:14px 3px 10px; box-shadow:var(--shadow);
    display:flex; justify-content:center; gap:1px; }
  .home-emocao-col { display:flex; flex-direction:column; align-items:center; gap:6px; flex:1; min-width:0; }
  .home-emocao-pct { font-family:'DM Sans', sans-serif; font-size:10.5px; font-weight:800; color:var(--ink-dim); }
  .home-emocao-barra-wrap { width:94%; height:94px; border-radius:999px; background:var(--card-b); display:flex; align-items:flex-end; overflow:hidden; }
  .home-emocao-barra { width:100%; border-radius:999px; transition: height .55s cubic-bezier(.32,1.4,.4,1); }
  .home-emocao-barra.pulso { animation: emocaoBarraPulso .5s ease; }
  @keyframes emocaoBarraPulso { 0% { filter:brightness(1); } 35% { filter:brightness(1.35); } 100% { filter:brightness(1); } }
  .home-emocao-nome { font-family:'DM Sans', sans-serif; font-size:9.5px; font-weight:700; color:var(--ink-faint); text-transform:capitalize; }

  /* ---------- bichinhos de humor: toca na carinha pra registrar como voce ta ---------- */
  .home-humor-widget { margin: 10px 0 18px; background:var(--card); border:1px solid var(--card-b); border-radius:18px;
    padding: 14px 8px 10px; box-shadow: var(--shadow); }
  .home-humor-titulo { font-family:'DM Sans', sans-serif; font-size:10.5px; font-weight:700; color:var(--ink-faint);
    text-transform:uppercase; letter-spacing:.07em; text-align:center; margin-bottom:10px; }
  .home-humor-carinhas { display:flex; justify-content:space-between; gap:4px; }
  .humor-face-wrap { flex:1; display:flex; flex-direction:column; align-items:center; gap:5px; cursor:pointer;
    -webkit-tap-highlight-color: transparent; }
  .humor-face-svg { width:100%; max-width:66px; aspect-ratio:1; display:block; transform-origin:50% 50%;
    animation: humorWiggle 2.8s ease-in-out infinite; }
  .humor-face-wrap:nth-child(2) .humor-face-svg { animation-delay: .3s; }
  .humor-face-wrap:nth-child(3) .humor-face-svg { animation-delay: .55s; }
  .humor-face-wrap:nth-child(4) .humor-face-svg { animation-delay: .8s; }
  .humor-face-wrap:nth-child(5) .humor-face-svg { animation-delay: 1.05s; }
  @keyframes humorWiggle { 0%,100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(4deg) scale(1.05); } }
  /* toque satisfatorio: a bolinha ja cede na hora do toque (feedback instantaneo, feito
     bola de borracha/massinha sendo apertada), depois solta num esprime elastico maior,
     e a expressao troca pra uma versao mais intensa daquele humor enquanto isso acontece */
  .humor-face-wrap:active .humor-face-svg { transform: scale(1.14,.8); transition: transform .08s ease-out; }
  .humor-face-wrap.tocando .humor-face-svg { animation: humorEsprime .68s cubic-bezier(.34,1.56,.64,1); }
  @keyframes humorEsprime {
    0%   { transform: scale(1,1); }
    16%  { transform: scale(1.38,.66); }
    36%  { transform: scale(.7,1.36); }
    56%  { transform: scale(1.18,.86); }
    74%  { transform: scale(.9,1.1); }
    88%  { transform: scale(1.05,.97); }
    100% { transform: scale(1,1); }
  }
  /* expressoes bem grandes e fofas, estilo mascote atomo: corpo lã fofa lisa,
     olhos e boca grandes pra ficar clara a diferenca ao apertar */
  .humor-face-base, .humor-face-intenso { transition: opacity .15s ease; }
  .humor-face-intenso { opacity: 0; }
  .humor-face-wrap.tocando .humor-face-base { opacity: 0; }
  .humor-face-wrap.tocando .humor-face-intenso { opacity: 1; }
  .humor-face-label { font-family:'DM Sans', sans-serif; font-size:9.5px; font-weight:700; color:var(--ink-faint); text-transform:capitalize; }


  /* ---------- humor em 100% ---------- */
  /* feliz/calma cheio: a barra brilha (luz dourada em volta + reflexo passando) */
  .home-emocao-barra-wrap.brilhando { box-shadow: 0 0 0 2px rgba(244,211,94,.55), 0 0 18px rgba(244,190,70,.55); animation: humorBrilhaPulso 2.4s ease-in-out infinite; }
  @keyframes humorBrilhaPulso { 0%, 100% { box-shadow: 0 0 0 2px rgba(244,211,94,.45), 0 0 12px rgba(244,190,70,.4); } 50% { box-shadow: 0 0 0 2px rgba(244,211,94,.75), 0 0 22px rgba(244,190,70,.7); } }
  .home-emocao-barra.cheia-brilha { position: relative; overflow: hidden; }
  .home-emocao-barra.cheia-brilha::after { content: ''; position: absolute; left: 0; right: 0; height: 40%; top: 100%;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.7), transparent); animation: humorReflexo 2.2s ease-in-out infinite; }
  @keyframes humorReflexo { 0% { top: 100%; } 60%, 100% { top: -45%; } }

  /* triste/ansiosa/brava cheio: a barra vira um "líquido fervendo" — vermelho com profundidade
     (mais escuro no fundo, mais claro na superfície) e bolhas de verdade subindo.
     As bolhas são <span class="bolha-ferve"> criadas pelo home.js, cada uma com tamanho,
     posição e velocidade sorteados (variáveis --x, --t, --d, --dur, --balanco). */
  .home-emocao-barra.cheia-ferve { position: relative; overflow: hidden;
    /* !important: o style inline da barra usa 'background:' (atalho) e ganharia sem ele */
    background: linear-gradient(180deg, #E8665A 0%, #D2463A 35%, #A9302A 100%) !important;
    box-shadow: inset 0 -10px 18px rgba(90,15,10,.35), inset 0 3px 6px rgba(255,255,255,.25);
    animation: humorFerveRespira 2.6s ease-in-out infinite; }
  /* superfície: um brilho mexendo no topo, como água agitada */
  .home-emocao-barra.cheia-ferve::before { content: ''; position: absolute; left: -20%; right: -20%; top: 0; height: 14px;
    background: radial-gradient(ellipse at 30% 0%, rgba(255,255,255,.45), transparent 60%),
                radial-gradient(ellipse at 75% 0%, rgba(255,255,255,.3), transparent 55%);
    animation: humorFerveSuperficie 1.4s ease-in-out infinite alternate; pointer-events: none; }
  @keyframes humorFerveSuperficie { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
  @keyframes humorFerveRespira { 0%, 100% { filter: saturate(1); } 50% { filter: saturate(1.15) brightness(1.04); } }

  /* cada bolha: um anelzinho translúcido com reflexo de luz em cima à esquerda */
  .bolha-ferve { position: absolute; bottom: -12px; left: var(--x); width: var(--t); height: var(--t); border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.9) 0 14%, rgba(255,255,255,.18) 15% 55%, rgba(255,255,255,.05) 56%);
    border: 1px solid rgba(255,255,255,.6); box-shadow: 0 0 3px rgba(255,220,210,.35);
    opacity: 0; pointer-events: none;
    animation: bolhaSobe var(--dur) cubic-bezier(.45,.05,.7,.9) var(--d) infinite; }
  /* sobe balançando de um lado pro outro, cresce um pouco e "estoura" (aumenta e some) perto do topo */
  @keyframes bolhaSobe {
    0%   { transform: translate(0, 0) scale(.5); opacity: 0; }
    10%  { opacity: .95; }
    30%  { transform: translate(var(--balanco), -30cqh) scale(.75); }
    55%  { transform: translate(calc(var(--balanco) * -1), -58cqh) scale(.9); }
    82%  { transform: translate(var(--balanco), -86cqh) scale(1); opacity: .9; }
    92%  { transform: translate(0, -96cqh) scale(1.35); opacity: .5; }
    100% { transform: translate(0, -100cqh) scale(1.6); opacity: 0; }
  }
  /* cqh = % da altura da barra (a barra é um "container"), assim a bolha sobe a barra inteira, seja qual for a altura */
  .home-emocao-barra.cheia-ferve { container-type: size; }
  /* quem pediu menos movimento no celular não vê bolhas mexendo */
  @media (prefers-reduced-motion: reduce) {
    .home-emocao-barra.cheia-ferve, .home-emocao-barra.cheia-ferve::before, .bolha-ferve { animation: none; }
    .bolha-ferve { opacity: .6; bottom: 30%; }
  }

  /* caixinha embaixo da barra */
  .home-humor-cheio { margin: 10px 0 4px; padding: 12px 14px; border-radius: 18px; }
  .home-humor-cheio.boa { background: color-mix(in srgb, #F4D35E 18%, var(--card)); border: 1px solid color-mix(in srgb, #F4D35E 45%, transparent); }
  .home-humor-cheio.pesada { background: color-mix(in srgb, #D2463A 10%, var(--card)); border: 1px solid color-mix(in srgb, #D2463A 30%, transparent);
    display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
  .home-humor-cheio-titulo { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
  .home-humor-cheio-sub { font-size: 12px; color: var(--ink-dim); margin-top: 4px; }
  .home-humor-cheio-linha { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
  .home-humor-cheio-linha input { flex: 1; min-width: 0; }

  /* estrela dourada no calendário da semana */
  .home-semana-dia { position: relative; }
  .estrela-dourada { position: absolute; top: 12px; right: calc(50% - 19px); font-size: 11px; color: #E3B021;
    text-shadow: 0 0 6px rgba(244,190,70,.8); line-height: 1; }
