/* HOY — juego diario de completar */
#hoy .content-body { width: 100%; max-width: 520px; margin: 0 auto; padding: 16px; box-sizing: border-box; }
.hoy-toggle { display: flex; background: var(--card); border: 1px solid var(--bdr); border-radius: 999px; padding: 3px; margin-left: auto; }
.hoy-toggle button { border: 0; background: none; color: var(--muted); min-height: var(--touch-min); padding: 0 16px; border-radius: 999px; font: inherit; font-size: 15px; cursor: pointer; }
.hoy-toggle button.on { background: var(--gold); color: #2c1810; font-weight: 600; }
.hoy-themes { display: flex; gap: 8px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.hoy-chip { white-space: nowrap; flex-shrink: 0; }
.hoy-chip small { opacity: .7; font-weight: 500; }
.hoy-chip { min-height: var(--touch-min); padding: 0 16px; border-radius: 999px; border: 1px solid var(--bdr); background: var(--card); color: var(--txt); font: inherit; font-size: 14px; cursor: pointer; }
.hoy-chip.on { border-color: var(--gold); background: var(--gold); color: #2c1810; font-weight: 600; }
.hoy-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
.hoy-card { background: var(--card); border: 1px solid var(--bdr); border-radius: var(--radius-lg); padding: 22px; }
.hoy-q { font-size: 23px; font-weight: 600; line-height: 1.4; margin: 0 0 6px; color: var(--txt); }
.hoy-gap { display: inline-block; min-width: 80px; border-bottom: 3px solid var(--gold); color: var(--txt); }
.hoy-nw { white-space: nowrap; }
.hoy-s { color: var(--muted); margin: 0 0 20px; }
.hoy-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hoy-opts button { min-height: 54px; padding: 10px 8px; border-radius: var(--radius-md); border: 2px solid var(--bdr); background: var(--card2); color: var(--txt); font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; overflow-wrap: anywhere; }
.hoy-opts button:hover:not(:disabled) { border-color: var(--gold); }
.hoy-opts button.ok { border-color: var(--green); background: color-mix(in srgb, var(--green) 15%, transparent); }
.hoy-opts button.bad { border-color: var(--rose); background: color-mix(in srgb, var(--rose) 12%, transparent); }
.hoy-note { display: none; margin-top: 18px; padding: 14px; border-radius: var(--radius-md); background: var(--card2); font-size: 15px; color: var(--txt); }
.hoy-note.show { display: block; }
.hoy-note b { color: var(--txt); border-bottom: 2px solid var(--gold); }
.hoy-next { display: none; width: 100%; margin-top: 16px; min-height: 52px; border: 0; border-radius: 999px; background: var(--gold); color: #2c1810; font: inherit; font-weight: 700; cursor: pointer; }
.hoy-next.show { display: block; }
.hoy-end { text-align: center; }
.hoy-end p { color: var(--muted); }
.hoy-big { font-size: 42px; margin: 4px 0; color: var(--txt) !important; font-weight: 700; }
.hoy-row { display: flex; gap: 10px; margin-top: 18px; }
.hoy-row button { flex: 1; min-height: 52px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; border: 2px solid var(--gold); }
.hoy-a { background: var(--gold); color: #2c1810; }
.hoy-b { background: none; color: var(--txt); }
#hoy button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
@media (max-width: 768px) {
  #hoy .topbar-title { font-size: 15px; }
  .hoy-toggle button { padding: 0 11px; font-size: 14px; }
}

/* modo escribir */
.hoy-write { display: flex; gap: 8px; }
.hoy-write input { flex: 1; min-width: 0; min-height: 54px; padding: 0 16px; border-radius: 16px; border: 2px solid var(--bdr); background: var(--card); color: var(--txt); font: inherit; font-size: 18px; font-weight: 600; }
.hoy-write input:focus { outline: none; border-color: var(--brand, #13855F); }
.hoy-write input.ok { border-color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--card)); }
.hoy-write input.bad { border-color: var(--rose); background: color-mix(in srgb, var(--rose) 10%, var(--card)); }
.hoy-write button { min-height: 54px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--cta, var(--gold)); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.hoy-write button:disabled { opacity: .5; cursor: default; }
.hoy-hint { display: block; margin: 10px auto 0; min-height: var(--touch-min); padding: 0 14px; border: 0; background: none; color: var(--teal); font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.hoy-streak { font-weight: 700; color: var(--gold) !important; font-size: 17px; }
@media (max-width: 400px) { .hoy-write { flex-direction: column; } }

/* menú: el resto plegado */
.menu-more { margin-top: 6px; }
.menu-more > summary { list-style: none; cursor: pointer; min-height: var(--touch-min); display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px dashed var(--bdr); color: var(--muted); font-weight: 600; margin: 4px 0 12px; }
.menu-more > summary::-webkit-details-marker { display: none; }
.menu-more > summary::after { content: " ▾"; margin-left: 6px; }
.menu-more[open] > summary::after { content: " ▴"; }

/* ---------- interactividad: serie, sonido, auto-avance, confeti, repaso ---------- */
.hoy-meta { align-items: center; }
#hoyLevel { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.hoy-combo { color: #C2410C; font-weight: 800; font-size: 15px; animation: hoyPop .35s cubic-bezier(.2, 1.6, .4, 1); display: inline-block; }
[data-theme="dark"] .hoy-combo { color: #FF9F43; }
.hoy-snd { border: 0; background: none; font-size: 16px; min-width: var(--touch-min); min-height: var(--touch-min); cursor: pointer; padding: 0; }
.hoy-gap.fill-ok { color: var(--green); font-weight: 800; animation: hoyPop .35s cubic-bezier(.2, 1.6, .4, 1); }
.hoy-gap.fill-bad { color: var(--rose); font-weight: 800; }
.hoy-next.auto { position: relative; overflow: hidden; }
.hoy-next.auto::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: rgba(255, 255, 255, .75); transform-origin: left; animation: hoyTimer 2.5s linear forwards; }
@keyframes hoyTimer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hoyPop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
.hoy-card { position: relative; }
.hoy-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.hoy-confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 3px; animation: hoyFall 2.2s cubic-bezier(.3, .6, .5, 1) forwards; }
@keyframes hoyFall { to { transform: translate(var(--dx), 420px) rotate(var(--r)); opacity: 0; } }
.hoy-review { text-align: left; margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--card2); }
.hoy-review-t { margin: 0 0 8px; font-weight: 800; color: var(--txt) !important; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; }
.hoy-review-i { margin: 0 0 10px; color: var(--txt) !important; font-size: 16px; line-height: 1.4; }
.hoy-review-i b { color: var(--teal); }
.hoy-review-i span { display: block; color: var(--muted); font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .hoy-opts { counter-reset: opt; }
  .hoy-opts button { position: relative; }
  .hoy-opts button::before { counter-increment: opt; content: counter(opt); position: absolute; top: 6px; left: 9px; font-size: 11px; color: var(--muted); font-weight: 600; }
}
#hoyStage:focus { outline: none; }
