/* Las cuentas de Balky: lo propio de este juego. La cabecera, el pie, el ranking y la ventana final vienen de memory.css. */
.c-page { background: #FFD23F; }
.c-play { gap: 14px; }
.c-levels { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.c-levels .g-pill { padding: 7px 14px; white-space: nowrap; }
.c-levels .g-pill[aria-pressed="true"] { background: #E4533D; color: #FFFFFF; }
.c-levels .g-pill:disabled { cursor: default; opacity: .55; }
.c-levels .g-pill:disabled[aria-pressed="true"] { opacity: 1; }

/* Inicio */
.c-intro { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; background: #FFFCF3; border: 4px solid #1A1A1F; border-radius: 26px;
  box-shadow: 7px 7px 0 #1A1A1F; padding: 22px 20px 26px; }
.c-intro svg { width: min(220px, 58vw); height: auto; }
.c-intro p { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.5; text-wrap: balance; max-width: 440px; }
.c-intro .lv { font-family: 'Gochi Hand', cursive; font-size: 24px; color: #E4533D; }
.c-big { font: 800 20px 'Lexend', system-ui, sans-serif; color: #FFFFFF; background: #E4533D; border: 3px solid #1A1A1F; border-radius: 16px; padding: 14px 34px;
  box-shadow: 5px 5px 0 #1A1A1F; cursor: pointer; }
.c-big:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #1A1A1F; }

/* Candado + cronómetro */
.c-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.c-lock { display: flex; align-items: center; gap: 6px; }
.c-lock svg { width: 30px; height: 36px; flex: none; }
.c-slot { width: 36px; height: 44px; box-sizing: border-box; border: 3px solid #1A1A1F; border-radius: 10px; background: #FFFFFF; box-shadow: 3px 3px 0 #1A1A1F;
  display: flex; align-items: center; justify-content: center; font: 400 22px 'Bagel Fat One', 'Arial Rounded MT Bold', sans-serif; }
.c-slot.cur { background: #FFF3B8; outline: 3px dashed #1A1A1F; outline-offset: 2px; }
.c-slot.ok { background: #C9EFD9; }
.c-slot.bad { background: #FFD6CF; color: #E4533D; }
.c-slot.pop { animation: c-pop .45s ease; }
.c-clock { font-size: 16px; font-weight: 800; background: #FFFFFF; border: 3px solid #1A1A1F; border-radius: 12px; padding: 6px 10px; box-shadow: 3px 3px 0 #1A1A1F;
  font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Quién pregunta */
.c-ask { display: flex; align-items: flex-end; gap: 12px; }
.c-who { flex: none; width: 76px; height: 96px; box-sizing: border-box; border: 3px solid #1A1A1F; border-radius: 14px; box-shadow: 3px 3px 0 #1A1A1F; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; }
.c-who img { height: 90%; width: auto; display: block; }
.c-bubble { position: relative; flex: 1; min-width: 0; min-height: 64px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  background: #FFFFFF; border: 3px solid #1A1A1F; border-radius: 18px; box-shadow: 4px 4px 0 #1A1A1F; padding: 8px 14px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.c-bubble b { font: 400 22px/1.1 'Gochi Hand', cursive; color: #E4533D; }

/* La cuenta y las respuestas */
.c-op { background: #FFFCF3; border: 4px solid #1A1A1F; border-radius: 22px; box-shadow: 6px 6px 0 #1A1A1F; padding: 20px 10px 18px; text-align: center;
  font: 400 clamp(44px, 14vw, 68px)/1 'Bagel Fat One', 'Arial Rounded MT Bold', sans-serif; white-space: nowrap; }
.c-op i { font-style: normal; color: #E4533D; }
.c-op .q { display: inline-block; min-width: 1.2em; border-bottom: 6px solid #1A1A1F; color: #4A4A55; }
.c-op .q.ok { color: #1E8A4C; border-color: #1E8A4C; }
.c-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.c-ans { font: 400 clamp(30px, 10vw, 42px)/1 'Bagel Fat One', 'Arial Rounded MT Bold', sans-serif; color: #1A1A1F; background: #FFFFFF; border: 4px solid #1A1A1F; border-radius: 20px;
  box-shadow: 5px 5px 0 #1A1A1F; padding: 18px 6px; cursor: pointer; touch-action: manipulation; }
.c-ans:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #1A1A1F; }
.c-ans:focus-visible, .c-big:focus-visible { outline: 4px solid #1F3A5F; outline-offset: 3px; }
.c-ans.ok { background: #3DBE6B; color: #FFFFFF; animation: c-pop .45s ease; }
.c-ans.bad { background: #E4533D; color: #FFFFFF; animation: c-shake .4s ease; }
.c-ans.dim { opacity: .45; }
.c-answers.lock .c-ans { pointer-events: none; }
@keyframes c-pop { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes c-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }

/* Para madres y padres */
.c-parents { display: flex; flex-direction: column; gap: 8px; background: #FFFCF3; border: 3px solid #1A1A1F; border-radius: 22px; box-shadow: 5px 5px 0 #1A1A1F; padding: 18px 20px; margin-top: 6px; }
.c-parents h2 { margin: 0; font-size: 17px; font-weight: 800; }
.c-parents ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; font-size: 15px; line-height: 1.5; }
.c-parents p { margin: 0; font-size: 15px; line-height: 1.5; }
.c-intro-text { margin: 0; font-size: 18px; line-height: 1.6; }

/* Ranking por niveles */
.c-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.c-tabs button { font: 800 13px 'Lexend', system-ui, sans-serif; color: #1A1A1F; background: #FFFFFF; border: 2px solid #1A1A1F; border-radius: 999px; padding: 5px 11px; cursor: pointer; white-space: nowrap; }
.c-tabs button[aria-selected="true"] { background: #FFD23F; }
.c-other { display: flex; align-items: center; gap: 14px; text-decoration: none; background: #C9EFD9; border: 3px solid #1A1A1F; border-radius: 20px; box-shadow: 5px 5px 0 #1A1A1F; padding: 14px 18px; }
.c-other .k { font-family: 'Gochi Hand', cursive; font-size: 20px; color: #E4533D; display: block; }
.c-other b { font-size: 17px; }
.c-other img { width: 46px; height: auto; flex: none; }

/* Final */
.c-review { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.c-review li { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #FFFFFF; border: 3px solid #1A1A1F; border-radius: 12px; padding: 6px 12px;
  font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.c-review li.bad { background: #FFD6CF; }
.c-review li small { font-size: 13px; font-weight: 600; color: #4A4A55; }
.g-stamp.soft { color: #1A1A1F; border-color: #1A1A1F; }
.c-page ~ .g-win .g-save { background: #FFD23F; }

/* Banquete de Balky */
.c-feast { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(26, 26, 31, .6); cursor: pointer;
  padding: 20px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); }
.c-say { font: 400 clamp(30px, 9vw, 40px)/1.05 'Bagel Fat One', 'Arial Rounded MT Bold', sans-serif; color: #FFFFFF; -webkit-text-stroke: 6px #1A1A1F; paint-order: stroke fill;
  text-shadow: 4px 4px 0 #1A1A1F; text-align: center; min-height: 1.1em; }
.c-stage { position: relative; width: 320px; height: 300px; max-width: 100%; box-sizing: border-box; background: #FFFCF3; border: 5px solid #1A1A1F; border-radius: 28px; box-shadow: 8px 8px 0 #1A1A1F; overflow: hidden; }
.c-stage::before { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: #C9EFD9; border-top: 4px solid #1A1A1F; }
.c-stage .fbox { position: absolute; left: 8px; bottom: 16px; width: 150px; }
.c-stage .fbox svg { width: 100%; height: auto; overflow: visible; display: block; }
.c-stage .lid { transform-box: fill-box; transform-origin: 0% 100%; }
.c-stage .glow { position: absolute; left: 30px; bottom: 96px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, #FFE58A 0, rgba(255, 210, 63, .33) 45%, transparent 70%); opacity: 0; }
.c-stage .dog { position: absolute; left: 118px; top: 58px; width: 196px; transform-origin: 50% 100%; }
.c-stage .dog img { width: 100%; height: auto; display: block; }
.c-stage .cookie { position: absolute; left: 0; top: 0; width: 58px; height: 58px; opacity: 0; will-change: transform; }
.c-stage .cookie svg { width: 100%; height: 100%; display: block; }
.c-stage .nam { position: absolute; left: 150px; top: 18px; font: 400 30px 'Gochi Hand', cursive; color: #E4533D; opacity: 0; white-space: nowrap; }
.c-stage .crumb { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #C98A3E; border: 2px solid #1A1A1F; box-sizing: border-box; }
.c-stage .heart { position: absolute; font-size: 26px; color: #E4533D; -webkit-text-stroke: 2px #1A1A1F; opacity: 0; }
.c-skip { font-size: 14px; font-weight: 600; color: #FFFFFF; }

@media (max-width: 1023px) {
  .c-parents { display: none; }
  .c-side-intro { display: none; }
}
@media (max-width: 380px) {
  .c-levels .g-pill { font-size: 12px; padding: 6px 9px; }
  .c-slot { width: 32px; height: 40px; font-size: 19px; }
  .c-clock { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .c-ans.ok, .c-ans.bad, .c-slot.pop { animation: none; } }
@media (max-width: 440px) {
  .c-levels { gap: 6px; }
  .c-levels .g-pill { font-size: 12.5px; padding: 6px 9px; }
}
