/* ============================================================================
   claudia-hanafuda.css  ·  Pyon Go! — culture kit (花札 & 俳句)
   Hanafuda flower-cards (12 months) + a 5·7·5 haiku display. Reusable on any
   culture spread. Link AFTER claudia-pyon-go-core.css.
   Author: Ms. Claudia · for Cesar Borgenkrans / sparklesnap.dev
   ========================================================================== */

/* ---- 1. The 5·7·5 haiku block ---- */
.haiku-575 { border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 14px; text-align: center;
  background:
    radial-gradient(circle at 18% 20%, #fff 0, transparent 55%),
    radial-gradient(circle at 85% 85%, #eef3e8 0, transparent 55%), var(--matcha-bg); }
.h575-line { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 7px 0; }
.h575-line .ln { font-family: var(--f-serif-jp); font-size: 1.35rem; font-weight: 600; color: var(--matcha); }
.h575-line .ct { font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: #fff; background: var(--kyoto-red);
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.haiku-575 .ro { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-soft); margin-top: 8px; }
.haiku-575 .tr { font-family: var(--f-serif-jp); font-style: italic; color: var(--ink); margin-top: 4px; }
.haiku-575 .by { font-family: var(--f-mono); font-size: 11px; color: var(--ink-soft); margin-top: 2px; }

/* ---- 2. Hanafuda flower-cards (one per month) ---- */
.hana-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin: 6px 0; }
.hana { border: 2.5px solid #1a1612; border-radius: 9px; overflow: hidden; background: #fdf6ec;
  appearance: none; padding: 0; display: flex; flex-direction: column; color: inherit; font: inherit;
  text-align: initial; box-shadow: 2px 2px 0 rgba(26,22,18,.22); }
.hana .mo { font-family: var(--f-mono); font-size: 8.5px; font-weight: 700; letter-spacing: .04em;
  background: #1a1612; color: #f6e7c1; text-align: center; padding: 2px 0; }
.hana-art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--card-tint, #fff7ef); }
.hana-art::after { content: ""; position: absolute; inset: 0; border-left: 3px solid var(--season, #7ca6bd); pointer-events: none; }
.hana-art img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.94) contrast(1.02); }
.hana:nth-child(1) .hana-art img { object-position: 50% 48%; }
.hana:nth-child(2) .hana-art img { object-position: 50% 53%; }
.hana:nth-child(3) .hana-art img { object-position: 50% 50%; }
.hana:nth-child(4) .hana-art img { object-position: 50% 44%; }
.hana:nth-child(5) .hana-art img { object-position: 50% 48%; }
.hana:nth-child(6) .hana-art img { object-position: 50% 46%; }
.hana:nth-child(7) .hana-art img { object-position: 50% 56%; }
.hana:nth-child(8) .hana-art img { object-position: 50% 42%; }
.hana:nth-child(9) .hana-art img { object-position: 50% 54%; }
.hana:nth-child(10) .hana-art img { object-position: 50% 53%; }
.hana:nth-child(11) .hana-art img { object-position: 50% 48%; }
.hana:nth-child(12) .hana-art img { object-position: 50% 48%; }
.hana-label { min-width: 0; padding: 6px 4px 7px; display: grid; gap: 2px; background: #fffdf8; }
.hana .nm { font-family: var(--f-sans-jp); font-weight: 700; font-size: .74rem; text-align: center; color: var(--ink); }
.hana .ro { font-family: var(--f-mono); font-size: .56rem; color: var(--ink-soft); text-align: center; }
/* seasonal tints */
.hana.s-spring { --card-tint: #ffeef3; --season: #d9a5b5; }
.hana.s-summer { --card-tint: #eafaef; --season: #7fb8a5; }
.hana.s-autumn { --card-tint: #fdf1dc; --season: #c28b56; }
.hana.s-winter { --card-tint: #e9f0f8; --season: #7ca6bd; }

/* ---- 2b. HyperFrames · Porcelain Hanafuda Prism ----
   A registered GSAP composition for the haiku listening action. The static
   hero frame remains complete without JavaScript; timelines add the lacquer
   shimmer, 5·7·5 response, and the click-performance around it. */
.hf-haiku-stage {
  position: relative;
  width: min(100%, 360px);
  margin: 18px auto 3px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hf-haiku-button {
  --shimmer-pos: -150%;
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 76px;
  padding: 10px 14px 10px 11px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 0%, rgba(230,184,92,.95), transparent 31%),
    radial-gradient(circle at 84% 5%, rgba(216,107,129,.92), transparent 42%),
    linear-gradient(118deg, #176d7c 0%, #4c75a0 38%, #8170ad 66%, #c75f7c 100%);
  box-shadow:
    0 14px 28px rgba(16,46,64,.2),
    0 5px 0 rgba(16,46,64,.16),
    inset 0 1px 0 rgba(255,255,255,.88),
    inset 0 -1px 0 rgba(16,46,64,.22);
  cursor: pointer;
  text-align: left;
  transform-origin: 50% 58%;
  will-change: transform, filter;
}
.hf-haiku-button:hover { filter: saturate(1.08) brightness(1.04); }
.hf-haiku-button:active { translate: 0 2px; }
.hf-haiku-button:focus-visible { outline-color: #e6b85c; outline-offset: 5px; }
.hf-haiku-button__aurora {
  position: absolute;
  z-index: 0;
  width: 90%;
  height: 220%;
  left: 15%;
  top: -60%;
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(104,201,200,.08), rgba(255,255,255,.42), rgba(230,184,92,.28), rgba(216,107,129,.14), rgba(104,201,200,.08));
  filter: blur(15px);
  opacity: .76;
  pointer-events: none;
  will-change: transform, opacity;
}
.hf-haiku-button__edge {
  position: absolute;
  z-index: 2;
  inset: 3px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 18px;
  box-shadow: inset 0 0 18px rgba(233,244,247,.14);
  pointer-events: none;
}
.shimmer-sweep-target { position: relative; }
.shimmer-sweep-target .shimmer-mask {
  position: absolute;
  z-index: 1;
  top: -70%;
  left: 0;
  width: 38%;
  height: 250%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12) 26%, rgba(255,255,255,.92) 50%, rgba(230,246,248,.2) 74%, transparent);
  filter: blur(1px);
  mix-blend-mode: screen;
  transform: translateX(var(--shimmer-pos)) rotate(14deg);
  pointer-events: none;
  will-change: transform;
}
.hf-haiku-seal,
.hf-haiku-copy,
.hf-haiku-meter { position: relative; z-index: 4; }
.hf-haiku-seal {
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 50% 48% 46% 52%;
  color: #fffdf8;
  background: radial-gradient(circle at 32% 24%, #f8d58d 0 9%, #e6a65f 32%, #c75f7c 70%, #9f4769 100%);
  box-shadow: 0 4px 10px rgba(16,46,64,.24), inset 0 1px 2px rgba(255,255,255,.75);
  font-family: var(--f-serif-jp);
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1;
  will-change: transform;
}
.hf-haiku-copy { min-width: 0; display: grid; gap: 2px; }
.hf-haiku-copy strong {
  font-family: var(--f-serif-jp);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: 1.12;
  text-shadow: 0 1px 8px rgba(16,46,64,.22);
}
.hf-haiku-copy small {
  color: rgba(255,255,255,.82);
  font-family: var(--f-mono);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}
.hf-haiku-meter { display: flex; align-items: center; gap: 4px; }
.hf-haiku-meter i {
  display: grid;
  place-items: center;
  width: 20px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  color: #173243;
  background: rgba(255,253,248,.9);
  box-shadow: 0 2px 8px rgba(16,46,64,.14);
  font-family: var(--f-serif-jp);
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
  will-change: transform, background-color, color;
}
.hf-haiku-meter i:nth-child(2) { color: #fff; background: rgba(230,184,92,.9); }
.hf-haiku-burst,
.hf-haiku-petals {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}
.hf-haiku-ray {
  position: absolute;
  left: -1px;
  bottom: 0;
  width: 2px;
  height: var(--ray-length);
  border-radius: 999px;
  background: linear-gradient(to top, rgba(230,184,92,.92), rgba(104,201,200,.1));
  opacity: 0;
  transform: rotate(var(--ray-angle)) scaleY(0);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.hf-haiku-petal {
  position: absolute;
  left: -5px;
  top: -7px;
  width: 10px;
  height: 14px;
  border-radius: 70% 35% 65% 40%;
  background: var(--petal-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--petal-color), transparent 38%);
  opacity: 0;
  will-change: transform, opacity;
}
@media (max-width: 380px) {
  .hf-haiku-button { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; padding-inline: 9px; }
  .hf-haiku-seal { width: 36px; }
  .hf-haiku-copy strong { font-size: .92rem; }
  .hf-haiku-meter { gap: 2px; }
  .hf-haiku-meter i { width: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-haiku-burst, .hf-haiku-petals, .shimmer-mask { display: none; }
  .hf-haiku-button__aurora { opacity: .52; }
  .hf-haiku-button { will-change: auto; }
}

/* ---- 3. Kigo (season-word) note pill ---- */
.kigo { display: inline-block; font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; background: var(--matcha); color: #fff; padding: 2px 9px; border-radius: 50px; }
