/* ===== TAIKO =====
   Otro mundo dentro de Fortaleza, con la misma energía que samba pero en
   clave de festival japonés (matsuri): el estampado asanoha (hoja de
   cáñamo) del ribete de un happi hace de cabecera como el estampado
   africano en samba; tinta (sumi), papel (washi), bermellón (shu) y oro.
   Tarjetas de papel con sombra roja desplazada, como los botones de
   Fortaleza. Dibujos propios (tambor, tomoe, sello 済), nunca emblemas de
   grupos. */

:root{
  --sumi:#131110;
  --kuro:#1d1a17;
  --kuro2:#27231f;
  --hai:#8f887d;
  --washi:#efe6d2;
  --washi2:#e2d6bc;
  --tinta:#1a1612;
  --shu:#c83a2b;
  --shu-oscuro:#9e2a1e;
  --kin:#d9a94a;
  --linea:rgba(239,230,210,.14);
  --asanoha:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='41.57' viewBox='0 0 24 41.57'%3E%3Crect width='100%25' height='100%25' fill='%23b8321f'/%3E%3Cpath d='M-36.00 0.00L-12.00 0.00M-12.00 0.00L-24.00 -20.78M-24.00 -20.78L-36.00 0.00M-24.00 -6.93L-36.00 0.00M-24.00 -6.93L-12.00 0.00M-24.00 -6.93L-24.00 -20.78M-24.00 -20.78L0.00 -20.78M0.00 -20.78L-12.00 0.00M-12.00 0.00L-24.00 -20.78M-12.00 -13.86L-24.00 -20.78M-12.00 -13.86L0.00 -20.78M-12.00 -13.86L-12.00 0.00M-12.00 0.00L12.00 0.00M12.00 0.00L0.00 -20.78M0.00 -20.78L-12.00 0.00M0.00 -6.93L-12.00 0.00M0.00 -6.93L12.00 0.00M0.00 -6.93L0.00 -20.78M0.00 -20.78L24.00 -20.78M24.00 -20.78L12.00 0.00M12.00 0.00L0.00 -20.78M12.00 -13.86L0.00 -20.78M12.00 -13.86L24.00 -20.78M12.00 -13.86L12.00 0.00M12.00 0.00L36.00 0.00M36.00 0.00L24.00 -20.78M24.00 -20.78L12.00 0.00M24.00 -6.93L12.00 0.00M24.00 -6.93L36.00 0.00M24.00 -6.93L24.00 -20.78M24.00 -20.78L48.00 -20.78M48.00 -20.78L36.00 0.00M36.00 0.00L24.00 -20.78M36.00 -13.86L24.00 -20.78M36.00 -13.86L48.00 -20.78M36.00 -13.86L36.00 0.00M36.00 0.00L60.00 0.00M60.00 0.00L48.00 -20.78M48.00 -20.78L36.00 0.00M48.00 -6.93L36.00 0.00M48.00 -6.93L60.00 0.00M48.00 -6.93L48.00 -20.78M48.00 -20.78L72.00 -20.78M72.00 -20.78L60.00 0.00M60.00 0.00L48.00 -20.78M60.00 -13.86L48.00 -20.78M60.00 -13.86L72.00 -20.78M60.00 -13.86L60.00 0.00M60.00 0.00L84.00 0.00M84.00 0.00L72.00 -20.78M72.00 -20.78L60.00 0.00M72.00 -6.93L60.00 0.00M72.00 -6.93L84.00 0.00M72.00 -6.93L72.00 -20.78M72.00 -20.78L96.00 -20.78M96.00 -20.78L84.00 0.00M84.00 0.00L72.00 -20.78M84.00 -13.86L72.00 -20.78M84.00 -13.86L96.00 -20.78M84.00 -13.86L84.00 0.00M-48.00 20.78L-24.00 20.78M-24.00 20.78L-36.00 0.00M-36.00 0.00L-48.00 20.78M-36.00 13.86L-48.00 20.78M-36.00 13.86L-24.00 20.78M-36.00 13.86L-36.00 0.00M-36.00 0.00L-12.00 0.00M-12.00 0.00L-24.00 20.78M-24.00 20.78L-36.00 0.00M-24.00 6.93L-36.00 0.00M-24.00 6.93L-12.00 0.00M-24.00 6.93L-24.00 20.78M-24.00 20.78L0.00 20.78M0.00 20.78L-12.00 0.00M-12.00 0.00L-24.00 20.78M-12.00 13.86L-24.00 20.78M-12.00 13.86L0.00 20.78M-12.00 13.86L-12.00 0.00M-12.00 0.00L12.00 0.00M12.00 0.00L0.00 20.78M0.00 20.78L-12.00 0.00M0.00 6.93L-12.00 0.00M0.00 6.93L12.00 0.00M0.00 6.93L0.00 20.78M0.00 20.78L24.00 20.78M24.00 20.78L12.00 0.00M12.00 0.00L0.00 20.78M12.00 13.86L0.00 20.78M12.00 13.86L24.00 20.78M12.00 13.86L12.00 0.00M12.00 0.00L36.00 0.00M36.00 0.00L24.00 20.78M24.00 20.78L12.00 0.00M24.00 6.93L12.00 0.00M24.00 6.93L36.00 0.00M24.00 6.93L24.00 20.78M24.00 20.78L48.00 20.78M48.00 20.78L36.00 0.00M36.00 0.00L24.00 20.78M36.00 13.86L24.00 20.78M36.00 13.86L48.00 20.78M36.00 13.86L36.00 0.00M36.00 0.00L60.00 0.00M60.00 0.00L48.00 20.78M48.00 20.78L36.00 0.00M48.00 6.93L36.00 0.00M48.00 6.93L60.00 0.00M48.00 6.93L48.00 20.78M48.00 20.78L72.00 20.78M72.00 20.78L60.00 0.00M60.00 0.00L48.00 20.78M60.00 13.86L48.00 20.78M60.00 13.86L72.00 20.78M60.00 13.86L60.00 0.00M60.00 0.00L84.00 0.00M84.00 0.00L72.00 20.78M72.00 20.78L60.00 0.00M72.00 6.93L60.00 0.00M72.00 6.93L84.00 0.00M72.00 6.93L72.00 20.78M-36.00 41.57L-12.00 41.57M-12.00 41.57L-24.00 20.78M-24.00 20.78L-36.00 41.57M-24.00 34.64L-36.00 41.57M-24.00 34.64L-12.00 41.57M-24.00 34.64L-24.00 20.78M-24.00 20.78L0.00 20.78M0.00 20.78L-12.00 41.57M-12.00 41.57L-24.00 20.78M-12.00 27.71L-24.00 20.78M-12.00 27.71L0.00 20.78M-12.00 27.71L-12.00 41.57M-12.00 41.57L12.00 41.57M12.00 41.57L0.00 20.78M0.00 20.78L-12.00 41.57M0.00 34.64L-12.00 41.57M0.00 34.64L12.00 41.57M0.00 34.64L0.00 20.78M0.00 20.78L24.00 20.78M24.00 20.78L12.00 41.57M12.00 41.57L0.00 20.78M12.00 27.71L0.00 20.78M12.00 27.71L24.00 20.78M12.00 27.71L12.00 41.57M12.00 41.57L36.00 41.57M36.00 41.57L24.00 20.78M24.00 20.78L12.00 41.57M24.00 34.64L12.00 41.57M24.00 34.64L36.00 41.57M24.00 34.64L24.00 20.78M24.00 20.78L48.00 20.78M48.00 20.78L36.00 41.57M36.00 41.57L24.00 20.78M36.00 27.71L24.00 20.78M36.00 27.71L48.00 20.78M36.00 27.71L36.00 41.57M36.00 41.57L60.00 41.57M60.00 41.57L48.00 20.78M48.00 20.78L36.00 41.57M48.00 34.64L36.00 41.57M48.00 34.64L60.00 41.57M48.00 34.64L48.00 20.78M48.00 20.78L72.00 20.78M72.00 20.78L60.00 41.57M60.00 41.57L48.00 20.78M60.00 27.71L48.00 20.78M60.00 27.71L72.00 20.78M60.00 27.71L60.00 41.57M60.00 41.57L84.00 41.57M84.00 41.57L72.00 20.78M72.00 20.78L60.00 41.57M72.00 34.64L60.00 41.57M72.00 34.64L84.00 41.57M72.00 34.64L72.00 20.78M72.00 20.78L96.00 20.78M96.00 20.78L84.00 41.57M84.00 41.57L72.00 20.78M84.00 27.71L72.00 20.78M84.00 27.71L96.00 20.78M84.00 27.71L84.00 41.57M-48.00 62.35L-24.00 62.35M-24.00 62.35L-36.00 41.57M-36.00 41.57L-48.00 62.35M-36.00 55.43L-48.00 62.35M-36.00 55.43L-24.00 62.35M-36.00 55.43L-36.00 41.57M-36.00 41.57L-12.00 41.57M-12.00 41.57L-24.00 62.35M-24.00 62.35L-36.00 41.57M-24.00 48.50L-36.00 41.57M-24.00 48.50L-12.00 41.57M-24.00 48.50L-24.00 62.35M-24.00 62.35L0.00 62.35M0.00 62.35L-12.00 41.57M-12.00 41.57L-24.00 62.35M-12.00 55.43L-24.00 62.35M-12.00 55.43L0.00 62.35M-12.00 55.43L-12.00 41.57M-12.00 41.57L12.00 41.57M12.00 41.57L0.00 62.35M0.00 62.35L-12.00 41.57M0.00 48.50L-12.00 41.57M0.00 48.50L12.00 41.57M0.00 48.50L0.00 62.35M0.00 62.35L24.00 62.35M24.00 62.35L12.00 41.57M12.00 41.57L0.00 62.35M12.00 55.43L0.00 62.35M12.00 55.43L24.00 62.35M12.00 55.43L12.00 41.57M12.00 41.57L36.00 41.57M36.00 41.57L24.00 62.35M24.00 62.35L12.00 41.57M24.00 48.50L12.00 41.57M24.00 48.50L36.00 41.57M24.00 48.50L24.00 62.35M24.00 62.35L48.00 62.35M48.00 62.35L36.00 41.57M36.00 41.57L24.00 62.35M36.00 55.43L24.00 62.35M36.00 55.43L48.00 62.35M36.00 55.43L36.00 41.57M36.00 41.57L60.00 41.57M60.00 41.57L48.00 62.35M48.00 62.35L36.00 41.57M48.00 48.50L36.00 41.57M48.00 48.50L60.00 41.57M48.00 48.50L48.00 62.35M48.00 62.35L72.00 62.35M72.00 62.35L60.00 41.57M60.00 41.57L48.00 62.35M60.00 55.43L48.00 62.35M60.00 55.43L72.00 62.35M60.00 55.43L60.00 41.57M60.00 41.57L84.00 41.57M84.00 41.57L72.00 62.35M72.00 62.35L60.00 41.57M72.00 48.50L60.00 41.57M72.00 48.50L84.00 41.57M72.00 48.50L72.00 62.35' stroke='%23d9a94a' stroke-width='1.1' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --asanoha-negro:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='41.57' viewBox='0 0 24 41.57'%3E%3Crect width='100%25' height='100%25' fill='%23131110'/%3E%3Cpath d='M-36.00 0.00L-12.00 0.00M-12.00 0.00L-24.00 -20.78M-24.00 -20.78L-36.00 0.00M-24.00 -6.93L-36.00 0.00M-24.00 -6.93L-12.00 0.00M-24.00 -6.93L-24.00 -20.78M-24.00 -20.78L0.00 -20.78M0.00 -20.78L-12.00 0.00M-12.00 0.00L-24.00 -20.78M-12.00 -13.86L-24.00 -20.78M-12.00 -13.86L0.00 -20.78M-12.00 -13.86L-12.00 0.00M-12.00 0.00L12.00 0.00M12.00 0.00L0.00 -20.78M0.00 -20.78L-12.00 0.00M0.00 -6.93L-12.00 0.00M0.00 -6.93L12.00 0.00M0.00 -6.93L0.00 -20.78M0.00 -20.78L24.00 -20.78M24.00 -20.78L12.00 0.00M12.00 0.00L0.00 -20.78M12.00 -13.86L0.00 -20.78M12.00 -13.86L24.00 -20.78M12.00 -13.86L12.00 0.00M12.00 0.00L36.00 0.00M36.00 0.00L24.00 -20.78M24.00 -20.78L12.00 0.00M24.00 -6.93L12.00 0.00M24.00 -6.93L36.00 0.00M24.00 -6.93L24.00 -20.78M24.00 -20.78L48.00 -20.78M48.00 -20.78L36.00 0.00M36.00 0.00L24.00 -20.78M36.00 -13.86L24.00 -20.78M36.00 -13.86L48.00 -20.78M36.00 -13.86L36.00 0.00M36.00 0.00L60.00 0.00M60.00 0.00L48.00 -20.78M48.00 -20.78L36.00 0.00M48.00 -6.93L36.00 0.00M48.00 -6.93L60.00 0.00M48.00 -6.93L48.00 -20.78M48.00 -20.78L72.00 -20.78M72.00 -20.78L60.00 0.00M60.00 0.00L48.00 -20.78M60.00 -13.86L48.00 -20.78M60.00 -13.86L72.00 -20.78M60.00 -13.86L60.00 0.00M60.00 0.00L84.00 0.00M84.00 0.00L72.00 -20.78M72.00 -20.78L60.00 0.00M72.00 -6.93L60.00 0.00M72.00 -6.93L84.00 0.00M72.00 -6.93L72.00 -20.78M72.00 -20.78L96.00 -20.78M96.00 -20.78L84.00 0.00M84.00 0.00L72.00 -20.78M84.00 -13.86L72.00 -20.78M84.00 -13.86L96.00 -20.78M84.00 -13.86L84.00 0.00M-48.00 20.78L-24.00 20.78M-24.00 20.78L-36.00 0.00M-36.00 0.00L-48.00 20.78M-36.00 13.86L-48.00 20.78M-36.00 13.86L-24.00 20.78M-36.00 13.86L-36.00 0.00M-36.00 0.00L-12.00 0.00M-12.00 0.00L-24.00 20.78M-24.00 20.78L-36.00 0.00M-24.00 6.93L-36.00 0.00M-24.00 6.93L-12.00 0.00M-24.00 6.93L-24.00 20.78M-24.00 20.78L0.00 20.78M0.00 20.78L-12.00 0.00M-12.00 0.00L-24.00 20.78M-12.00 13.86L-24.00 20.78M-12.00 13.86L0.00 20.78M-12.00 13.86L-12.00 0.00M-12.00 0.00L12.00 0.00M12.00 0.00L0.00 20.78M0.00 20.78L-12.00 0.00M0.00 6.93L-12.00 0.00M0.00 6.93L12.00 0.00M0.00 6.93L0.00 20.78M0.00 20.78L24.00 20.78M24.00 20.78L12.00 0.00M12.00 0.00L0.00 20.78M12.00 13.86L0.00 20.78M12.00 13.86L24.00 20.78M12.00 13.86L12.00 0.00M12.00 0.00L36.00 0.00M36.00 0.00L24.00 20.78M24.00 20.78L12.00 0.00M24.00 6.93L12.00 0.00M24.00 6.93L36.00 0.00M24.00 6.93L24.00 20.78M24.00 20.78L48.00 20.78M48.00 20.78L36.00 0.00M36.00 0.00L24.00 20.78M36.00 13.86L24.00 20.78M36.00 13.86L48.00 20.78M36.00 13.86L36.00 0.00M36.00 0.00L60.00 0.00M60.00 0.00L48.00 20.78M48.00 20.78L36.00 0.00M48.00 6.93L36.00 0.00M48.00 6.93L60.00 0.00M48.00 6.93L48.00 20.78M48.00 20.78L72.00 20.78M72.00 20.78L60.00 0.00M60.00 0.00L48.00 20.78M60.00 13.86L48.00 20.78M60.00 13.86L72.00 20.78M60.00 13.86L60.00 0.00M60.00 0.00L84.00 0.00M84.00 0.00L72.00 20.78M72.00 20.78L60.00 0.00M72.00 6.93L60.00 0.00M72.00 6.93L84.00 0.00M72.00 6.93L72.00 20.78M-36.00 41.57L-12.00 41.57M-12.00 41.57L-24.00 20.78M-24.00 20.78L-36.00 41.57M-24.00 34.64L-36.00 41.57M-24.00 34.64L-12.00 41.57M-24.00 34.64L-24.00 20.78M-24.00 20.78L0.00 20.78M0.00 20.78L-12.00 41.57M-12.00 41.57L-24.00 20.78M-12.00 27.71L-24.00 20.78M-12.00 27.71L0.00 20.78M-12.00 27.71L-12.00 41.57M-12.00 41.57L12.00 41.57M12.00 41.57L0.00 20.78M0.00 20.78L-12.00 41.57M0.00 34.64L-12.00 41.57M0.00 34.64L12.00 41.57M0.00 34.64L0.00 20.78M0.00 20.78L24.00 20.78M24.00 20.78L12.00 41.57M12.00 41.57L0.00 20.78M12.00 27.71L0.00 20.78M12.00 27.71L24.00 20.78M12.00 27.71L12.00 41.57M12.00 41.57L36.00 41.57M36.00 41.57L24.00 20.78M24.00 20.78L12.00 41.57M24.00 34.64L12.00 41.57M24.00 34.64L36.00 41.57M24.00 34.64L24.00 20.78M24.00 20.78L48.00 20.78M48.00 20.78L36.00 41.57M36.00 41.57L24.00 20.78M36.00 27.71L24.00 20.78M36.00 27.71L48.00 20.78M36.00 27.71L36.00 41.57M36.00 41.57L60.00 41.57M60.00 41.57L48.00 20.78M48.00 20.78L36.00 41.57M48.00 34.64L36.00 41.57M48.00 34.64L60.00 41.57M48.00 34.64L48.00 20.78M48.00 20.78L72.00 20.78M72.00 20.78L60.00 41.57M60.00 41.57L48.00 20.78M60.00 27.71L48.00 20.78M60.00 27.71L72.00 20.78M60.00 27.71L60.00 41.57M60.00 41.57L84.00 41.57M84.00 41.57L72.00 20.78M72.00 20.78L60.00 41.57M72.00 34.64L60.00 41.57M72.00 34.64L84.00 41.57M72.00 34.64L72.00 20.78M72.00 20.78L96.00 20.78M96.00 20.78L84.00 41.57M84.00 41.57L72.00 20.78M84.00 27.71L72.00 20.78M84.00 27.71L96.00 20.78M84.00 27.71L84.00 41.57M-48.00 62.35L-24.00 62.35M-24.00 62.35L-36.00 41.57M-36.00 41.57L-48.00 62.35M-36.00 55.43L-48.00 62.35M-36.00 55.43L-24.00 62.35M-36.00 55.43L-36.00 41.57M-36.00 41.57L-12.00 41.57M-12.00 41.57L-24.00 62.35M-24.00 62.35L-36.00 41.57M-24.00 48.50L-36.00 41.57M-24.00 48.50L-12.00 41.57M-24.00 48.50L-24.00 62.35M-24.00 62.35L0.00 62.35M0.00 62.35L-12.00 41.57M-12.00 41.57L-24.00 62.35M-12.00 55.43L-24.00 62.35M-12.00 55.43L0.00 62.35M-12.00 55.43L-12.00 41.57M-12.00 41.57L12.00 41.57M12.00 41.57L0.00 62.35M0.00 62.35L-12.00 41.57M0.00 48.50L-12.00 41.57M0.00 48.50L12.00 41.57M0.00 48.50L0.00 62.35M0.00 62.35L24.00 62.35M24.00 62.35L12.00 41.57M12.00 41.57L0.00 62.35M12.00 55.43L0.00 62.35M12.00 55.43L24.00 62.35M12.00 55.43L12.00 41.57M12.00 41.57L36.00 41.57M36.00 41.57L24.00 62.35M24.00 62.35L12.00 41.57M24.00 48.50L12.00 41.57M24.00 48.50L36.00 41.57M24.00 48.50L24.00 62.35M24.00 62.35L48.00 62.35M48.00 62.35L36.00 41.57M36.00 41.57L24.00 62.35M36.00 55.43L24.00 62.35M36.00 55.43L48.00 62.35M36.00 55.43L36.00 41.57M36.00 41.57L60.00 41.57M60.00 41.57L48.00 62.35M48.00 62.35L36.00 41.57M48.00 48.50L36.00 41.57M48.00 48.50L60.00 41.57M48.00 48.50L48.00 62.35M48.00 62.35L72.00 62.35M72.00 62.35L60.00 41.57M60.00 41.57L48.00 62.35M60.00 55.43L48.00 62.35M60.00 55.43L72.00 62.35M60.00 55.43L60.00 41.57M60.00 41.57L84.00 41.57M84.00 41.57L72.00 62.35M72.00 62.35L60.00 41.57M72.00 48.50L60.00 41.57M72.00 48.50L84.00 41.57M72.00 48.50L72.00 62.35' stroke='%23d9a94a' stroke-width='1.1' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --f-kanji:"Shippori Mincho B1","Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif;
  --f-texto:"Zen Kaku Gothic New","Hiragino Sans","Segoe UI",system-ui,sans-serif;
  --f-pincel:"Yuji Syuku","Shippori Mincho B1",serif;
  color-scheme:dark;
}

*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html{ background:var(--sumi); }
body{
  margin:0;
  min-height:100vh;
  background:var(--sumi);
  color:var(--washi);
  font-family:var(--f-texto);
  font-size:16px;
  line-height:1.6;
  overflow-x:hidden;
}
[hidden]{ display:none !important; }
h1,h2,h3{ font-family:var(--f-kanji); font-weight:800; margin:0; text-wrap:balance; }
p{ margin:0; }
button{ font:inherit; color:inherit; cursor:pointer; touch-action:manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible{ outline:2px solid var(--kin); outline-offset:3px; }
button:active, a:active{ filter:brightness(1.15); }

/* ---------- franja de estampado (como el ribete de un happi) ---------- */
.tk-franja{
  position:relative;
  height:calc(58px + env(safe-area-inset-top, 0px));
  background:var(--asanoha);
  border-bottom:4px solid var(--sumi);
  box-shadow:0 3px 0 var(--kin);
}
.tk-volver{
  position:absolute;
  left:max(14px, env(safe-area-inset-left, 0px));
  bottom:-16px;
  z-index:2;
  display:inline-block;
  padding:7px 14px 6px;
  background:var(--sumi);
  color:var(--washi);
  font-family:var(--f-kanji);
  font-weight:800;
  font-size:14px;
  letter-spacing:.18em;
  text-decoration:none;
  border:2px solid var(--kin);
  border-radius:6px;
  box-shadow:3px 3px 0 var(--shu);
  transform:rotate(-2deg);
}

/* ---------- cabecera: el tambor ---------- */
.tk-cab{
  position:relative;
  padding:42px max(20px, env(safe-area-inset-right, 0px)) 26px max(20px, env(safe-area-inset-left, 0px));
  overflow:hidden;
  min-height:230px;
  background:radial-gradient(circle at 100% 40%, rgba(200,58,43,.28), transparent 60%);
}
.tk-tambor{
  position:absolute;
  right:-58px;
  top:22px;
  width:210px;
  height:210px;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.55));
}
.tk-tambor .giro{ transform-origin:center; animation:giro 40s linear infinite; }
.tk-sello-cab{
  display:inline-block;
  writing-mode:vertical-rl;
  background:var(--shu);
  color:#fff;
  font-family:var(--f-kanji);
  font-weight:800;
  font-size:26px;
  line-height:1;
  letter-spacing:.08em;
  padding:9px 7px;
  border:2px solid var(--washi);
  outline:2px solid var(--shu);
  border-radius:4px;
  transform:rotate(-4deg);
  box-shadow:3px 3px 0 var(--sumi);
  margin-bottom:12px;
  animation:sellar .45s cubic-bezier(.3,1.6,.5,1) both;
}
.tk-eyebrow{ font-size:11px; letter-spacing:.26em; color:var(--kin); font-weight:700; }
.tk-cab h1{ font-size:32px; line-height:1.15; margin-top:6px; max-width:9ch; color:var(--washi); text-shadow:2px 2px 0 var(--sumi); position:relative; }
.tk-rei{
  margin-top:16px;
  display:inline-flex;
  align-items:baseline;
  gap:10px;
  background:var(--washi);
  color:var(--tinta);
  border:2px solid var(--sumi);
  border-radius:999px;
  padding:6px 16px 7px 12px;
  box-shadow:3px 3px 0 var(--shu);
  position:relative;
}
.tk-rei b{ font-family:var(--f-kanji); font-size:20px; color:var(--shu); }
.tk-rei span{ font-family:var(--f-kanji); font-weight:700; font-size:15px; }
.tk-rei small{ font-size:11px; color:#6d6458; }

/* ---------- contenido ---------- */
.tk-main{
  padding:6px max(16px, env(safe-area-inset-right, 0px)) calc(104px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  max-width:640px;
  margin:0 auto;
}
.tk-vista{ animation:aparece .35s ease both; }
@keyframes aparece{ from{ opacity:.4; transform:translateY(8px); } to{ opacity:1; transform:none; } }

/* títulos de sección: cortinilla noren roja con tres cortes */
.tk-sec{
  position:relative;
  font-size:24px;
  margin:38px 0 16px;
  padding-top:18px;
  display:flex;
  flex-direction:column;
}
.tk-sec::before{
  content:"";
  position:absolute;
  left:0; top:0;
  width:96px; height:8px;
  background:linear-gradient(90deg, var(--shu) 0 30%, transparent 30% 35%, var(--shu) 35% 65%, transparent 65% 70%, var(--shu) 70%);
}
.tk-sec span{
  font-family:var(--f-texto);
  font-size:11px;
  font-weight:700;
  letter-spacing:.24em;
  color:var(--kin);
  text-transform:uppercase;
  margin-bottom:2px;
}
.tk-intro{ color:var(--washi); opacity:.85; margin:26px 0 14px; font-size:15px; }

/* tarjeta de papel con sombra roja (el "botón Fortaleza" en versión taiko) */
.tk-caja{
  background:var(--washi);
  color:var(--tinta);
  border:2px solid var(--sumi);
  border-radius:10px;
  padding:18px 16px;
  margin-top:22px;
  box-shadow:6px 6px 0 var(--shu);
}

/* cuota */
.tk-cuota{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin-top:26px;
  padding:12px 14px;
  border:2px solid var(--kin);
  border-radius:10px;
  font-size:14px;
  font-weight:500;
  text-decoration:none;
  color:var(--washi);
  background:var(--kuro);
}
.tk-cuota.pendiente{ background:var(--shu); border-color:var(--sumi); color:#fff; box-shadow:5px 5px 0 var(--sumi); }
.tk-cuota small{ display:block; opacity:.75; font-size:12px; font-weight:400; }
.tk-cuota .ir{
  font-size:12px; letter-spacing:.14em; font-weight:700; white-space:nowrap;
  background:var(--washi); color:var(--tinta); padding:6px 10px; border-radius:6px;
}

/* repaso de la clase: hoja de cuaderno */
.tk-repaso{ transform:rotate(-.6deg); }
.tk-repaso .et{ font-size:11px; letter-spacing:.24em; color:var(--shu); font-weight:700; }
.tk-repaso h3{ font-size:22px; margin-top:4px; }
.tk-repaso .sub{ font-size:13px; color:#6d6458; margin-top:2px; }
.tk-nota{
  margin:14px 0 4px;
  font-family:var(--f-pincel);
  font-size:17px;
  line-height:1.55;
  border-left:3px solid var(--shu);
  padding-left:12px;
}
.tk-items{ list-style:none; margin:14px 0 0; padding:0; display:grid; gap:8px; }
.tk-item{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) 46px;
  gap:12px;
  align-items:center;
  padding:11px 12px 11px 14px;
  background:var(--washi2);
  color:var(--tinta);
  border:0;
  border-radius:8px;
  text-align:left;
}
.tk-item b{ display:block; font-size:15px; font-weight:700; }
.tk-item small{ font-size:12px; color:#6d6458; }
.tk-nuevo{
  font-size:9.5px;
  letter-spacing:.14em;
  color:#fff;
  background:var(--shu);
  border-radius:3px;
  padding:2px 6px;
  margin-left:6px;
  vertical-align:2px;
  font-weight:700;
}
.tk-sello{ width:46px; height:46px; color:var(--shu); }
.tk-sello svg{ width:100%; height:100%; display:block; transform:rotate(-7deg); }
.tk-item .hueco{ width:46px; height:46px; border:2px dashed rgba(26,22,18,.3); border-radius:7px; }
.tk-item.hecho .tk-sello svg{ animation:sellar .28s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes sellar{ from{ transform:rotate(-18deg) scale(1.6); opacity:0; } to{ transform:rotate(-7deg) scale(1); opacity:1; } }
.tk-repaso-ok{ margin-top:12px; font-size:14px; font-weight:700; color:var(--shu); }
.tk-vacio{ color:#6d6458; font-size:14px; }

/* próxima clase: bloque rojo con la fecha grande */
.tk-proxima{
  position:relative;
  overflow:hidden;
  margin-top:24px;
  padding:18px 18px 18px 20px;
  background:var(--shu);
  color:#fff;
  border:2px solid var(--sumi);
  border-radius:10px;
  box-shadow:6px 6px 0 var(--sumi);
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:18px;
  align-items:center;
}
.tk-proxima::after{
  content:"";
  position:absolute;
  right:0; top:0; bottom:0;
  width:34%;
  background:var(--asanoha);
  opacity:.5;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000);
  mask-image:linear-gradient(90deg, transparent, #000);
}
.tk-dia{ font-family:var(--f-kanji); text-align:center; line-height:1; min-width:64px; position:relative; z-index:1; }
.tk-dia b{ display:block; font-size:50px; font-weight:800; }
.tk-dia span{ font-size:12px; letter-spacing:.2em; font-weight:700; }
.tk-proxima > div:last-child{ position:relative; z-index:1; }
.tk-proxima .et{ font-size:11px; letter-spacing:.22em; font-weight:700; opacity:.85; }
.tk-proxima h3{ font-size:21px; margin-top:2px; line-height:1.25; }
.tk-proxima p{ font-size:13.5px; opacity:.9; margin-top:4px; }

/* calendario: 12 casillas */
.tk-fechas{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:10px;
}
.tk-fecha{
  position:relative;
  background:var(--kuro);
  border:2px solid var(--linea);
  border-radius:8px;
  padding:8px 4px 9px;
  text-align:center;
  font-family:var(--f-kanji);
  line-height:1.1;
  overflow:hidden;
}
.tk-fecha .n{ display:block; font-family:var(--f-texto); font-size:10px; font-weight:700; letter-spacing:.12em; color:var(--hai); }
.tk-fecha b{ display:block; font-size:24px; font-weight:800; margin-top:2px; }
.tk-fecha .mes{ font-size:11px; letter-spacing:.16em; color:var(--hai); font-family:var(--f-texto); font-weight:700; }
.tk-fecha.pasada{ background:var(--washi2); border-color:var(--sumi); color:var(--tinta); }
.tk-fecha.pasada .n, .tk-fecha.pasada .mes{ color:#6d6458; }
.tk-fecha .marca{ position:absolute; right:-4px; bottom:-6px; width:34px; height:34px; color:var(--shu); opacity:.9; }
.tk-fecha .marca svg{ width:100%; height:100%; transform:rotate(-12deg); }
.tk-fecha.siguiente{ background:var(--shu); border-color:var(--sumi); color:#fff; box-shadow:3px 3px 0 var(--kin); }
.tk-fecha.siguiente .n, .tk-fecha.siguiente .mes{ color:#fff; }

.tk-gracias{
  margin:48px 0 10px;
  padding:22px 16px;
  text-align:center;
  font-family:var(--f-pincel);
  font-size:21px;
  background:var(--asanoha-negro);
  border-top:3px solid var(--kin);
  border-bottom:3px solid var(--kin);
}
.tk-gracias span{
  display:inline-block;
  background:var(--sumi);
  padding:10px 18px 9px;
  border:2px solid var(--kin);
  border-radius:8px;
}
.tk-gracias small{ display:block; font-family:var(--f-texto); font-size:12px; color:var(--washi); opacity:.8; margin-top:4px; }

/* ---------- renshū: ejercicios con sonido ---------- */
.tk-tempo{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  border:2px solid var(--kin);
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  color:var(--kin);
  position:sticky;
  top:env(safe-area-inset-top, 0px);
  background:var(--sumi);
  z-index:3;
}
.tk-tempo input{ flex:1; accent-color:var(--shu); min-width:0; }
.tk-tempo output{ font-family:var(--f-kanji); font-weight:800; font-size:20px; color:var(--washi); min-width:3ch; text-align:right; font-variant-numeric:tabular-nums; }
.tk-ej-cab{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:start; }
.tk-ej h3{ font-size:19px; line-height:1.3; }
.tk-ej .meta{ font-size:12px; color:#6d6458; margin-top:2px; }
.tk-tocar{
  width:56px;
  height:56px;
  border-radius:50%;
  border:0;
  padding:0;
  background:none;
  position:relative;
  filter:drop-shadow(2px 3px 0 var(--shu));
}
.tk-tocar svg{ width:100%; height:100%; display:block; }
.tk-tocar.sonando .giro{ animation:giro 2.4s linear infinite; transform-origin:center; }
@keyframes giro{ to{ transform:rotate(360deg); } }
.tk-patron{ margin-top:14px; overflow-x:auto; padding-bottom:4px; }
.tk-fila{ display:grid; gap:4px; min-width:min-content; }
.tk-fila + .tk-fila{ margin-top:4px; }
.tk-s{
  min-width:44px;
  text-align:center;
  font-family:var(--f-kanji);
  font-weight:700;
  font-size:14px;
  padding:9px 2px;
  border-radius:5px;
  background:var(--washi2);
  color:#6d6458;
  transition:background .06s, color .06s, transform .06s;
  white-space:nowrap;
}
.tk-s.fuerte{ background:var(--sumi); color:var(--washi); font-weight:800; }
.tk-s.medio{ color:var(--tinta); font-weight:700; }
.tk-s.silencio{ background:transparent; border:2px dashed rgba(26,22,18,.2); }
.tk-s.tiempo{ box-shadow:inset 3px 0 0 var(--kin); }
.tk-s.on{ background:var(--shu); color:#fff; transform:scale(1.08); }
.tk-mano{ font-family:var(--f-texto); font-size:11px; font-weight:700; padding:2px; background:none; color:#6d6458; }
.tk-ej .nota{ margin-top:12px; font-size:14px; }

/* ---------- kotoba ---------- */
.tk-reiho{ margin-top:22px; }
.tk-reiho .tk-sec{ margin-top:4px; }
.tk-reiho ol{ margin:0; padding-left:20px; display:grid; gap:8px; font-size:15px; }
.tk-reiho em{ font-style:normal; font-family:var(--f-kanji); font-weight:800; color:var(--shu); }
.tk-buscar{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:2px solid var(--kin);
  background:var(--kuro);
  color:var(--washi);
  font:inherit;
  font-size:15px;
}
.tk-grupo{ margin-top:24px; }
.tk-grupo h3{
  display:inline-block;
  font-size:12px; font-family:var(--f-texto); font-weight:700; letter-spacing:.2em; text-transform:uppercase;
  background:var(--shu); color:#fff; padding:4px 10px; border-radius:4px; margin-bottom:8px;
}
.tk-palabra{ padding:10px 0; border-bottom:1px solid var(--linea); display:grid; grid-template-columns:minmax(0,9.5em) minmax(0,1fr); gap:12px; }
.tk-palabra b{ font-family:var(--f-kanji); font-weight:800; font-size:16px; color:var(--kin); }
.tk-palabra span{ font-size:14.5px; opacity:.9; }

/* ---------- barra inferior ---------- */
.tk-nav{
  position:fixed;
  left:0; right:0; bottom:0;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:4px;
  background:var(--sumi);
  padding:6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
  z-index:10;
}
/* ribete de estampado encima de la barra */
.tk-nav::before{
  content:"";
  position:absolute;
  left:0; right:0; top:-7px;
  height:7px;
  background:var(--asanoha);
}
.tk-nav button, .tk-nav a{
  background:none;
  border:0;
  border-radius:8px;
  padding:6px 0 7px;
  text-align:center;
  font-size:11px;
  color:var(--hai);
  text-decoration:none;
}
.tk-nav b{ display:block; font-family:var(--f-kanji); font-size:19px; font-weight:800; color:var(--washi); line-height:1.3; }
.tk-nav .activa{ background:var(--shu); color:#fff; box-shadow:2px 2px 0 var(--kin); }
.tk-nav .activa b{ color:#fff; }

.tk-toast{
  position:fixed;
  left:50%;
  bottom:calc(92px + env(safe-area-inset-bottom, 0px));
  transform:translateX(-50%) translateY(20px);
  background:var(--washi);
  color:var(--tinta);
  border:2px solid var(--sumi);
  box-shadow:4px 4px 0 var(--shu);
  padding:10px 16px;
  border-radius:8px;
  font-size:14px;
  font-weight:500;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s, transform .2s;
  max-width:calc(100% - 32px);
  z-index:20;
}
.tk-toast.visible{ opacity:1; transform:translateX(-50%) translateY(0); }

@media (prefers-reduced-motion:reduce){
  .tk-sello-cab, .tk-vista, .tk-item.hecho .tk-sello svg{ animation:none; }
  .tk-tambor .giro, .tk-tocar.sonando .giro{ animation:none; }
}
