
html:root body .page-wrapper:has(.hero-shell) {
  position: relative; isolation: isolate; display: grid !important;
  grid-template-columns: minmax(0,1fr);
}
html:root body .kuyu20-scene-hero.kuyu20-hero-frame.hero-shell {
  position: relative !important; z-index: 2; display: flex !important; flex-direction: column;
  grid-column: 1; grid-row: 1; width: 100% !important; height: auto !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 !important; overflow: visible !important;
  background-color: #7d2a22 !important; background-image: var(--kuyu20-hero-image,none) !important;
  background-repeat: no-repeat !important; background-size: var(--kuyu20-frame-size,cover) !important;
  background-position: var(--kuyu20-frame-position,50% 68%) !important;
  border: 0 !important; border-radius: 14px 14px 12px 12px !important;
  box-shadow: none !important; isolation: isolate;
}
html:root body .kuyu20-scene-hero.kuyu20-hero-frame:has(.kuyu20-festival-action[aria-expanded="true"]) { z-index: 5; }
html:root body .kuyu20-scene-hero.kuyu20-hero-frame::before,
html:root body .kuyu20-scene-hero.kuyu20-hero-frame::after { content: none !important; display: none !important; }
html:root body .kuyu20-hero-frame > .kuyu20-hero-visual.hero-visual {
  position: relative; z-index: 1; isolation: isolate; width: 100%; height: 275px !important;
  min-height: 0 !important; aspect-ratio: auto !important; flex: 0 0 275px;
  padding-block: 0 !important; overflow: hidden; border-radius: 14px 14px 0 0; background: transparent;
}
html:root body .kuyu20-hero-frame .kuyu20-hero-background { z-index: -2; background: none !important; }
html:root body .kuyu20-hero-frame .kuyu20-hero-visual::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: var(--kuyu20-hero-overlay, linear-gradient(90deg, rgba(4,12,27,.25), transparent 55%, rgba(4,12,27,.15)));
}
html:root:not(.light-theme) body .kuyu20-hero-frame .kuyu20-hero-visual::after {
  background-image: linear-gradient(90deg,rgba(5,11,22,.36),rgba(5,11,22,.08) 58%,rgba(5,11,22,.28)),
    var(--kuyu20-hero-overlay,linear-gradient(90deg,rgba(4,12,27,.22),transparent 58%));
}

/* Transparent outer area: it carries the scene palette but never becomes a solid footer. */
html:root body .kuyu20-hero-frame > .kuyu20-festival-region.festival-section {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 100%; height: auto; min-height: 0; min-width: 0; flex: 0 0 auto;
  padding: 12px 0 14px; box-sizing: border-box;
  border-radius: 0 0 12px 12px; overflow: visible; isolation: isolate;
  background: linear-gradient(180deg,rgba(139,48,37,.08),rgba(51,22,29,.22));
  border: 0;
}
html:root body .kuyu20-hero-frame > .kuyu20-festival-region::before {
  content: none; display: none;
}
html:root body .kuyu20-hero-frame > .kuyu20-festival-region::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,rgba(255,218,190,.03),rgba(71,20,27,.11));
  border-radius: 0 0 12px 12px;
}

/* The continuation shares the Hero source and occupies the same grid row as the
   first content cards. This creates overlap without negative margins or transforms. */
html:root body .hero-continuation {
  grid-column: 1; grid-row: 2; position: relative; z-index: 0;
  display: block; width: 100%; height: 90px; min-height: 90px;
  pointer-events: none; overflow: hidden;
  background-color: #7d2a22;
  background-image: var(--kuyu20-hero-image,none);
  background-repeat: no-repeat;
  background-size: var(--kuyu20-frame-size,cover);
  background-position: var(--kuyu20-frame-position,50% 68%);
  filter: saturate(.92) contrast(.94);
  -webkit-mask-image: linear-gradient(to bottom,rgba(0,0,0,.8),rgba(0,0,0,0));
  mask-image: linear-gradient(to bottom,rgba(0,0,0,.8),rgba(0,0,0,0));
}
html:root body .page-wrapper:has(.hero-shell) > .main-layout {
  grid-column: 1; grid-row: 2; z-index: 2; margin-top: 0 !important;
}

/* Inset holiday card: identity, timer, date and detail action remain separate. */
html:root body .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival] {
  position: relative !important; z-index: 2; inset: auto !important; transform: none !important;
  display: grid !important;
  grid-template-columns: minmax(300px,.96fr) minmax(380px,1.2fr) minmax(150px,.48fr) auto !important;
  grid-template-rows: 1fr !important; align-items: center;
  width: 88% !important; max-width: 1088px !important; height: 88px !important; min-height: 82px !important; max-height: 92px !important;
  gap: 13px; margin: 0 auto !important; padding: 8px 16px !important; box-sizing: border-box;
  color: #3f2724 !important;
  background: linear-gradient(105deg,rgba(255,246,235,.87),rgba(250,230,215,.8) 52%,rgba(255,242,229,.86)) !important;
  border: 1px solid rgba(255,255,255,.46) !important; border-radius: 17px !important;
  box-shadow: 0 7px 20px rgba(91,29,24,.14),inset 0 1px rgba(255,255,255,.62) !important;
  backdrop-filter: blur(14px) saturate(1.06); -webkit-backdrop-filter: blur(14px) saturate(1.06);
  overflow: hidden;
}
html:root body .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival]::before,
html:root body .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival]::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  top: 0; width: 31%; height: 100%; opacity: .16;
}
html:root body .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival]::before {
  left: 0;
  background: radial-gradient(circle at 9% 20%,rgba(255,198,83,.52),transparent 25%),
    linear-gradient(115deg,rgba(190,26,35,.34),transparent 70%);
}
html:root body .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival]::after {
  right: 0;
  background: radial-gradient(circle at 90% 25%,rgba(255,190,72,.5),transparent 24%),
    linear-gradient(245deg,rgba(190,26,35,.32),transparent 70%);
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-header {
  grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 10px;
  min-width: 0; padding: 0 6px !important;
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-copy { display: grid; gap: 3px; min-width: 0; }
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-message {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px;
  color: #4f302b !important; font-size: 14px !important; line-height: 1.3;
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-message strong {
  color: color-mix(in srgb,var(--kuyu20-festival-accent,#c9232d) 88%,#8f1018) !important;
  -webkit-text-fill-color: color-mix(in srgb,var(--kuyu20-festival-accent,#c9232d) 88%,#8f1018) !important;
  font-size: 21px !important; line-height: 1.2;
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-lead-days {
  color: color-mix(in srgb,var(--kuyu20-festival-accent,#c9232d) 94%,#7f0c14);
  font-size: 28px; line-height: 1; font-style: normal; font-weight: 820;
  font-variant-numeric: tabular-nums;
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-lead-unit {
  color: #4f302b; font-size: 13px; font-weight: 650;
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] :is(.hc-lead-days,.hc-lead-unit)[hidden] { display: none !important; }
html:root body .kuyu20-hero-frame [data-kuyu20-festival] #hc-motto {
  display: flex !important; align-items: center; gap: 6px; min-width: 0;
  color: #6a4a43 !important; font-size: 13px !important; font-weight: 500;
  line-height: 1.3; overflow-wrap: anywhere;
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .today-status-holiday-icon {
  display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px;
  font-size: 24px; border: 1px solid rgba(191,53,54,.16);
  border-radius: 50%; background: rgba(255,255,255,.58); color: var(--kuyu20-festival-accent,#c9232d);
  box-shadow: 0 5px 14px rgba(116,37,31,.12);
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-timer {
  grid-column: 2; grid-row: 1; display: grid;
  grid-template-columns: repeat(4,minmax(62px,1fr)); align-items: stretch;
  gap: 10px; min-width: 0; padding: 0 !important; border: 0 !important;
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-box {
  display: grid; place-content: center; gap: 2px; min-width: 0; height: 64px;
  overflow: hidden; border-radius: 10px;
  color: color-mix(in srgb,var(--kuyu20-festival-accent,#c9232d) 94%,#7f0c14) !important;
  background: linear-gradient(180deg,rgba(255,252,247,.78),rgba(255,235,222,.66)) !important;
  border: 1px solid rgba(195,52,53,.09) !important;
  box-shadow: 0 3px 9px rgba(111,34,29,.08),inset 0 1px rgba(255,255,255,.68) !important;
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-box span {
  display: block; font-size: 32px !important; line-height: 1 !important; font-weight: 780;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
  color: inherit !important; -webkit-text-fill-color: currentColor !important;
  background: none !important; background-image: none !important;
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-box span > b {
  display: inline-block; min-width: .58em; font: inherit; color: inherit; transform-origin: 50% 50%;
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-box small {
  color: #806a62 !important; font-size: 10px !important; line-height: 1.1; font-weight: 550;
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-detail {
  grid-column: 3; grid-row: 1; display: grid; align-content: center; gap: 3px;
  min-width: 0; padding-left: 15px; border-left: 1px solid rgba(132,70,57,.16);
  color: #4c302b; font-size: 13px !important; line-height: 1.45; white-space: nowrap;
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-detail > span {
  display: flex; align-items: center; gap: 6px;
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-detail i {
  width: 13px; color: var(--kuyu20-festival-accent,#c9232d); text-align: center; opacity: .9;
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-detail span[hidden] { display: none !important; }
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-action {
  grid-column: 4; grid-row: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  appearance: none; -webkit-appearance: none; cursor: pointer; font-family: inherit;
  color: #fff;
  background: color-mix(in srgb,var(--kuyu20-festival-accent,#c9232d) 88%,#aa111a);
  border: 1px solid color-mix(in srgb,var(--kuyu20-festival-accent,#c9232d) 72%,#fff);
  box-shadow: 0 5px 14px color-mix(in srgb,var(--kuyu20-festival-accent,#c9232d) 24%,transparent);
  font-size: 12px; font-weight: 650; transition: background .22s ease,border-color .22s ease,transform .22s ease;
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-action:hover:where(html:not(.kuyu20-touch-ui) *) {
  background: color-mix(in srgb,var(--kuyu20-festival-accent,#c9232d) 94%,#8e0d15);
  border-color: rgba(255,255,255,.64);
  transform: translateY(-1px);
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-action:focus-visible {
  outline: 2px solid color-mix(in srgb,var(--kuyu20-festival-accent,#f4c46f) 70%,#fff); outline-offset: 2px;
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-action i { font-size: 9px; opacity: .8; transition: transform .22s ease; }
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-action[aria-expanded="true"] i { transform: rotate(90deg); }
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-celebration {
  grid-column: 2; grid-row: 1; display: grid; place-content: center; gap: 4px;
  min-width: 0; height: 64px; border-radius: 10px; text-align: center; color: color-mix(in srgb,var(--kuyu20-festival-accent,#c9232d) 88%,#8e1018);
  background: rgba(255,247,240,.68);
  border: 1px solid color-mix(in srgb,var(--kuyu20-festival-accent,#f4c46f) 20%,transparent);
}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-celebration strong { font-size: 15px; font-weight: 650; }
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-celebration small { font-size: 10px; color: #6a4a43; }
html:root body .kuyu20-hero-frame [data-kuyu20-festival] :is(.hc-timer,.kuyu20-festival-celebration)[hidden] { display: none !important; }

/* Ornament owns a separate layer so leaves may rise above the rounded glass card. */
html:root body .kuyu20-hero-frame > .festival-zone { position: relative; overflow: visible; }
html:root body .kuyu20-hero-frame .festival-decoration {
  position: absolute; z-index: 1; top: -34px; left: 0; right: 0;
  height: calc(100% + 50px); overflow: visible; pointer-events: none;
  transform: none; filter: none; isolation: auto;
}
html:root body .kuyu20-hero-frame .festival-decoration .kuyu20-festival-decor {
  position: absolute; pointer-events: none; width: 210px; height: 150px;
  object-fit: contain; opacity: .5; filter: saturate(1.04) drop-shadow(0 3px 9px rgba(4,10,20,.16));
}
html:root body .kuyu20-hero-frame .festival-decoration .kuyu20-festival-decor-start { left: 4.5%; top: -14px; }
html:root body .kuyu20-hero-frame .festival-decoration .kuyu20-festival-decor-end { right: 4.5%; top: -14px; }
html:root body .kuyu20-hero-frame [data-kuyu20-festival] > :not(.kuyu20-festival-decor) { position: relative; z-index: 1; }
html:root body .kuyu20-hero-frame [data-effect]:not([data-effect="none"]) .today-status-holiday-icon { animation: kuyu20-festival-breathe 4s ease-in-out infinite; }
html:root body .kuyu20-hero-frame [data-effect="moon"] .today-status-holiday-icon { color: #edd497; }
html:root body .kuyu20-hero-frame [data-effect="lantern"] .today-status-holiday-icon { color: #f4ae81; }
html:root body .kuyu20-hero-frame [data-effect="snow"] .today-status-holiday-icon { color: #aedbea; }
@keyframes kuyu20-festival-breathe { 0%,100% { opacity: .72; } 50% { opacity: 1; } }

/* Dark mode uses a genuinely dark glass surface over the dedicated night Hero image. */
html:root:not(.light-theme) body .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival] {
  color: #f7eee9 !important;
  background: linear-gradient(105deg,rgba(40,24,30,.78),rgba(29,25,34,.76) 52%,rgba(48,24,29,.8)) !important;
  border-color: rgba(255,178,131,.24) !important;
  box-shadow: 0 8px 22px rgba(4,8,17,.22),inset 0 1px rgba(255,226,207,.11) !important;
}
html:root:not(.light-theme) body .kuyu20-hero-frame [data-kuyu20-festival] .hc-message { color: #f4e9e2 !important; }
html:root:not(.light-theme) body .kuyu20-hero-frame [data-kuyu20-festival] .hc-message strong,
html:root:not(.light-theme) body .kuyu20-hero-frame [data-kuyu20-festival] .hc-lead-days {
  color: #ff5962 !important; -webkit-text-fill-color: #ff5962 !important;
}
html:root:not(.light-theme) body .kuyu20-hero-frame [data-kuyu20-festival] .hc-lead-unit,
html:root:not(.light-theme) body .kuyu20-hero-frame [data-kuyu20-festival] #hc-motto { color: #dccbc5 !important; }
html:root:not(.light-theme) body .kuyu20-hero-frame [data-kuyu20-festival] .today-status-holiday-icon {
  color: #ff6870; background: rgba(255,240,227,.1); border-color: rgba(255,125,102,.2);
}
html:root:not(.light-theme) body .kuyu20-hero-frame [data-kuyu20-festival] .hc-box {
  color: #ff5962 !important;
  background: linear-gradient(180deg,rgba(47,34,42,.78),rgba(39,27,34,.68)) !important;
  border-color: rgba(255,123,105,.14) !important;
  box-shadow: 0 3px 9px rgba(3,8,18,.14),inset 0 1px rgba(255,229,216,.08) !important;
}
html:root:not(.light-theme) body .kuyu20-hero-frame [data-kuyu20-festival] .hc-box small { color: #cbbab5 !important; }
html:root:not(.light-theme) body .kuyu20-hero-frame [data-kuyu20-festival] .hc-detail {
  color: #eadbd5; border-color: rgba(255,213,188,.15);
}
html:root:not(.light-theme) body .kuyu20-hero-frame [data-kuyu20-festival] .hc-detail i { color: #ff5962; }
html:root:not(.light-theme) body .kuyu20-hero-frame .festival-decoration .kuyu20-festival-decor { opacity: .42; }

.kuyu20-festival-details-panel {
  position: absolute; z-index: 12; top: 118px; right: 6%; width: min(310px,calc(100% - 24px));
  padding: 12px 14px; border-radius: 13px; color: #edf4ff;
  background: rgba(20,31,49,.9); border: 1px solid rgba(190,211,240,.22);
  box-shadow: 0 12px 30px rgba(2,8,18,.28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.kuyu20-festival-details-panel[hidden] { display: none !important; }
.kuyu20-festival-details-panel strong { display: block; margin-bottom: 5px; color: var(--kuyu20-festival-accent,#f4c46f); font-size: 13px; }
.kuyu20-festival-details-panel p { margin: 0 0 7px; color: #d4deeb; font-size: 11.5px; line-height: 1.55; }
.kuyu20-festival-details-panel span { color: #9facc0; font-size: 10.5px; }

@media (min-width: 1101px) {
  html:root body .kuyu20-hero-frame .kuyu20-scene-copy { top: 60px; transform: translateX(var(--kuyu20-copy-offset-x,0)); }
  html:root body .kuyu20-hero-frame .kuyu20-scene-meta { top: 71px; transform: translate(var(--kuyu20-time-offset-x,-18px),var(--kuyu20-time-offset-y,10px)); }
  html:root body .kuyu20-hero-frame .kuyu20-scene-meta time { font-size: 34px; }
  html:root body .kuyu20-hero-frame .kuyu20-scene-meta span,
  html:root body .kuyu20-hero-frame .kuyu20-scene-meta small { font-size: 11px; line-height: 1.15; }
  html:root body .kuyu20-hero-frame .kuyu20-scene-top .kuyu20-hero-brand { top: 48px; }
  html:root body .kuyu20-hero-frame .kuyu20-scene-copy p { margin-top: 8px; }
}

/* Light mode preserves the same warm festival identity without washing out the scene. */
html:root.light-theme body .kuyu20-hero-frame .kuyu20-hero-visual::after { opacity: .45; }
html:root.light-theme body .kuyu20-hero-frame :is(.kuyu20-scene-copy,.kuyu20-scene-meta) {
  color: #10233f !important; -webkit-text-fill-color: currentColor; text-shadow: 0 1px 2px rgba(255,255,255,.7);
}
html:root.light-theme body .kuyu20-hero-frame :is(.kuyu20-scene-copy,.kuyu20-scene-meta)::before { content: none !important; display: none !important; }
html:root.light-theme body .kuyu20-hero-frame :is(#kuyu20GreetingTitle,#kuyu20SceneClock) {
  color: #10233f !important; -webkit-text-fill-color: #10233f !important; text-shadow: 0 1px 2px rgba(255,255,255,.7);
}
html:root.light-theme body .kuyu20-hero-frame :is(#kuyu20GreetingCopy,#kuyu20SceneDate,#kuyu20SceneWeekday) {
  color: #1d334e !important; -webkit-text-fill-color: #1d334e !important; text-shadow: 0 1px 2px rgba(255,255,255,.8);
}
html:root.light-theme body .kuyu20-hero-frame > .kuyu20-festival-region {
  background: linear-gradient(180deg,rgba(255,239,226,.04),rgba(255,246,238,.12));
  border: 0;
}
html:root.light-theme body .hero-continuation {
  filter: saturate(.88) contrast(.9) brightness(1.04);
  opacity: .72;
}
html:root.light-theme body .kuyu20-hero-frame > .kuyu20-festival-region::before { content: none; display: none; }
html:root.light-theme body .kuyu20-hero-frame > .kuyu20-festival-region::after {
  background: linear-gradient(180deg,rgba(255,248,241,.02),rgba(255,244,235,.08));
}
html:root.light-theme body .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival] {
  color: #3f2724;
  background: linear-gradient(105deg,rgba(255,247,239,.89),rgba(251,234,222,.84) 52%,rgba(255,244,234,.88)) !important;
  border-color: rgba(255,255,255,.5) !important;
  box-shadow: 0 7px 20px rgba(104,47,38,.12),inset 0 1px rgba(255,255,255,.72) !important;
}
html:root.light-theme body .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival]::before,
html:root.light-theme body .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival]::after { opacity: .22; }
html:root.light-theme body .kuyu20-hero-frame .festival-decoration .kuyu20-festival-decor { opacity: .58; }
html:root.light-theme body .kuyu20-hero-frame [data-kuyu20-festival] .today-status-holiday-icon {
  color: var(--kuyu20-festival-accent,#c9232d); background: rgba(255,255,255,.7); border-color: rgba(191,53,54,.15);
}
html:root.light-theme body .kuyu20-hero-frame [data-kuyu20-festival] .hc-message strong {
  color: color-mix(in srgb,var(--kuyu20-festival-accent,#c9232d) 88%,#8f1018) !important;
  -webkit-text-fill-color: color-mix(in srgb,var(--kuyu20-festival-accent,#c9232d) 88%,#8f1018) !important;
}
html:root.light-theme body .kuyu20-hero-frame [data-kuyu20-festival] #hc-motto { color: #6a4a43 !important; }
html:root.light-theme body .kuyu20-hero-frame [data-kuyu20-festival] .hc-box {
  color: color-mix(in srgb,var(--kuyu20-festival-accent,#c9232d) 90%,#8d1018);
  background: linear-gradient(180deg,rgba(255,253,249,.82),rgba(255,237,225,.7)) !important;
  border-color: rgba(195,52,53,.08) !important;
  box-shadow: 0 3px 9px rgba(111,34,29,.07),inset 0 1px rgba(255,255,255,.72) !important;
}
html:root.light-theme body .kuyu20-hero-frame [data-kuyu20-festival] .hc-box small { color: #806a62 !important; }
html:root.light-theme body .kuyu20-hero-frame [data-kuyu20-festival] .hc-detail { color: #4c302b; border-color: rgba(132,70,57,.16); }
html:root.light-theme body .kuyu20-hero-frame [data-kuyu20-festival] .hc-detail i { color: var(--kuyu20-festival-accent,#c9232d); }
html:root.light-theme body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-action { color: #fff; }
html:root.light-theme body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-celebration { color: color-mix(in srgb,var(--kuyu20-festival-accent,#c9232d) 88%,#8e1018); }
html:root.light-theme body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-celebration small { color: #6a4a43; }
html:root.light-theme body .kuyu20-hero-frame::after {
  background: linear-gradient(180deg,rgba(244,247,251,0) 0 32%,var(--bg-color,#edf2f7) 100%);
}
html:root body .kuyu20-hero-frame .kuyu20-hero-brand { gap: 10px; padding: 5px 6px; background: rgba(5,15,31,.42); }
html:root body .kuyu20-hero-frame .kuyu20-hero-brand .hero-avatar { width: 30px !important; height: 30px !important; }
html:root body .kuyu20-hero-frame .kuyu20-hero-brand .hero-title { font-size: 15px !important; }
html:root body .kuyu20-hero-frame .kuyu20-hero-brand .theme-toggle { flex-basis: 29px; width: 29px !important; height: 29px !important; }
html:root.light-theme body .kuyu20-hero-frame .kuyu20-hero-visual[data-text-tone="dark"] :is(.kuyu20-scene-copy,.kuyu20-scene-meta) {
  color: #10233f !important; -webkit-text-fill-color: currentColor; text-shadow: 0 1px 2px rgba(255,255,255,.82),0 2px 8px rgba(255,255,255,.34);
}
html:root.light-theme body .kuyu20-hero-frame .kuyu20-hero-visual[data-text-tone="dark"] :is(#kuyu20GreetingTitle,#kuyu20SceneClock,#kuyu20GreetingCopy,#kuyu20SceneDate,#kuyu20SceneWeekday) {
  color: #10233f !important; -webkit-text-fill-color: #10233f !important;
  text-shadow: 0 1px 2px rgba(255,255,255,.82),0 2px 8px rgba(255,255,255,.34);
}
html:root:not(.light-theme) body .kuyu20-hero-frame :is(.kuyu20-scene-copy,.kuyu20-scene-meta),
html:root:not(.light-theme) body .kuyu20-hero-frame :is(#kuyu20GreetingTitle,#kuyu20SceneClock,#kuyu20GreetingCopy,#kuyu20SceneDate,#kuyu20SceneWeekday) {
  color: #fff !important; -webkit-text-fill-color: #fff !important; text-shadow: 0 2px 8px rgba(3,8,18,.62);
}
html:root.light-theme body .kuyu20-hero-frame .kuyu20-hero-visual[data-text-tone="light"] :is(.kuyu20-scene-copy,.kuyu20-scene-meta),
html:root.light-theme body .kuyu20-hero-frame .kuyu20-hero-visual[data-text-tone="light"] :is(#kuyu20GreetingTitle,#kuyu20SceneClock,#kuyu20GreetingCopy,#kuyu20SceneDate,#kuyu20SceneWeekday) {
  color: #fff !important; -webkit-text-fill-color: #fff !important; text-shadow: 0 2px 7px rgba(4,12,27,.58);
}
html:root.light-theme body .page-wrapper:has(.kuyu20-hero-frame)::before {
  top: 6px; left: 5%; right: 5%; height: 1px; border-radius: 0;
  background: linear-gradient(90deg,transparent,rgba(93,191,222,.36),transparent);
}
html:root.light-theme body .kuyu20-festival-details-panel {
  color: #18304e; background: rgba(241,247,254,.92); border-color: rgba(83,119,160,.2);
  box-shadow: 0 12px 30px rgba(59,84,115,.18);
}
html:root.light-theme body .kuyu20-festival-details-panel p { color: #405974; }
html:root.light-theme body .kuyu20-festival-details-panel span { color: #647b94; }

@media (max-width: 1100px) {
  html:root body .kuyu20-hero-frame > .kuyu20-hero-visual.hero-visual { height: 246px !important; flex-basis: 246px; }
  html:root body .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival] {
    width: calc(100% - 28px) !important;
    grid-template-columns: minmax(220px,1.25fr) minmax(260px,1.18fr) minmax(110px,.6fr) auto !important;
  }
}
@media (max-width: 760px) {
  html:root body .kuyu20-scene-hero.kuyu20-hero-frame.hero-shell {
    background-size: cover !important; background-position: 50% 50% !important;
  }
  html:root body .hero-continuation { background-size: cover; background-position: 50% 50%; }
  html:root body .kuyu20-hero-frame > .kuyu20-festival-region { height: auto; min-height: 132px; padding: 8px 0; }
  html:root body .kuyu20-hero-frame .festival-decoration { top: -22px; height: calc(100% + 34px); }
  html:root body .kuyu20-hero-frame .festival-decoration .kuyu20-festival-decor { width: 112px; height: 88px; opacity: .28; }
  html:root body .kuyu20-hero-frame .festival-decoration .kuyu20-festival-decor-start { left: -8px; top: -6px; }
  html:root body .kuyu20-hero-frame .festival-decoration .kuyu20-festival-decor-end { right: -8px; top: -6px; }
  html:root body .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival] {
    width: calc(100% - 16px) !important; height: auto !important; min-height: 116px !important;
    grid-template-columns: minmax(0,1.35fr) minmax(0,.8fr) !important;
    grid-template-rows: auto auto !important; gap: 8px; padding: 9px 11px !important;
  }
  html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-header { grid-column: 1 !important; grid-row: 1 !important; gap: 8px; }
  html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-message strong { font-size: 14px !important; }
  html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-message { font-size: 10px !important; }
  html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-lead-days { font-size: 20px; }
  html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-lead-unit { font-size: 10px; }
  html:root body .kuyu20-hero-frame [data-kuyu20-festival] .today-status-holiday-icon { width: 30px; height: 30px; flex-basis: 30px; font-size: 16px; }
  html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-timer,
  html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-celebration {
    grid-column: 1 / -1 !important; grid-row: 2 !important; padding: 0; border: 0;
  }
  html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-detail { grid-column: 2 !important; grid-row: 1 !important; padding: 0 32px 0 8px; font-size: 10px !important; }
  html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-action {
    position: absolute; right: 10px; top: 14px; width: 28px; height: 28px; padding: 0;
  }
  html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-action span { display: none; }
  html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-box { height: 50px; }
  html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-box span { font-size: 22px !important; }
  html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-decor { width: 92px; height: 74px; opacity: .16; }
  .kuyu20-festival-details-panel { top: 122px; right: 8px; width: calc(100% - 16px); box-sizing: border-box; }
}
@media (max-width: 600px) {
  html:root body .kuyu20-hero-frame .kuyu20-scene-copy { top: 85px; left: 18px; width: calc(100% - 36px); }
  html:root body .kuyu20-hero-frame .kuyu20-scene-copy h2 { white-space: normal; }
  html:root body .kuyu20-hero-frame .kuyu20-scene-copy p { font-size: 12px; line-height: 1.5; }
  html:root body .hero-continuation { height: 72px; min-height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html:root body .kuyu20-hero-frame [data-effect] :is(.today-status-holiday-icon,.kuyu20-festival-decor) { animation: none !important; }
}


html:root:not(.light-theme) body .page-wrapper .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-celebration {
  background: linear-gradient(120deg,rgba(114,29,40,.20),rgba(33,25,34,.22));
  border-color: rgba(255,163,139,.14); color: #ff7b80;
  box-shadow: inset 0 1px rgba(255,226,207,.04);
}
html:root:not(.light-theme) body .page-wrapper .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-celebration small { color: #dac9c2; }
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-action { text-decoration: none; box-sizing: border-box; }
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .festival-icon-image { width: 38px; height: 30px; object-fit: contain; }
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .today-status-holiday-icon > [hidden] { display: none !important; }
@media (max-width:767px) {
 html:root body .kuyu20-hero-frame [data-kuyu20-festival] .festival-icon-image { width:24px; height:20px; }
 html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-festival-action { width:44px; height:44px; top:7px; right:7px; }
 html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-detail { padding-right:46px; }
}

/* Mobile keeps the lunar date clear of the navigation target. */
@media (max-width:767px) {
 html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-header {grid-column:1 / -1!important;padding-right:44px!important;}
 html:root body .kuyu20-hero-frame [data-kuyu20-festival] .hc-detail {grid-column:1 / -1!important;grid-row:2!important;display:flex;flex-wrap:wrap;gap:8px 14px;padding:0;}
 html:root body .kuyu20-hero-frame [data-kuyu20-festival] :is(.hc-timer,.kuyu20-festival-celebration) {grid-row:3!important;}
}

@media(max-width:767px) {
 html:root body .page-wrapper .kuyu20-hero-frame:has([data-festival="national"]) {background-position:65% 60%!important;}
}

@media(max-width:767px) {
 html:root body .page-wrapper .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival] {max-height:none!important;}
}

/* V119: mobile blessing breaks at the natural clause boundary. */
@media (max-width: 767px) {
  #kuyu20FestivalHint .kuyu20-festival-hint-line { display: block; }
}

/* V140: fixed digit slots with soft crossfades and a restrained scan. */
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-countdown-digit{position:relative;display:inline-block;vertical-align:top;width:.62em;min-width:.62em;overflow:hidden;isolation:isolate}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-countdown-current,html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-countdown-outgoing{display:block;font:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;pointer-events:none}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-countdown-outgoing{position:absolute;inset:0;z-index:1}
html:root body .kuyu20-hero-frame [data-kuyu20-festival] .kuyu20-countdown-scan{position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(105deg,transparent 24%,currentColor 49%,transparent 74%);opacity:0}

/* V151: light countdown lead number matches the festival name exactly. */
html:root.light-theme body .kuyu20-hero-frame [data-kuyu20-festival] .hc-lead-days{color:color-mix(in srgb,var(--kuyu20-festival-accent,#c9232d) 88%,#8f1018)!important;-webkit-text-fill-color:color-mix(in srgb,var(--kuyu20-festival-accent,#c9232d) 88%,#8f1018)!important}

/* V216: restore coral countdown accents on the neutral night surface. */
html:root:not(.light-theme) body .page-wrapper .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival][data-festival="double-ninth"]{background:linear-gradient(110deg,#25252bd9,#202128e6)!important;border-color:#d9be7b38!important;}
html:root:not(.light-theme) body .page-wrapper .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival][data-festival="double-ninth"] :is(.hc-message strong,.hc-lead-days,.hc-box,#hc-days,#hc-hours,#hc-minutes,#hc-seconds){color:#ff5962!important;-webkit-text-fill-color:#ff5962!important;}
html:root:not(.light-theme) body .page-wrapper .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival][data-festival="double-ninth"] .hc-box{background:linear-gradient(180deg,#37322c8a,#282729b3)!important;border-color:#e5c88730!important;}
html:root:not(.light-theme) body .page-wrapper .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival][data-festival="double-ninth"] :is(.hc-box small,.hc-lead-unit,#hc-motto,.hc-detail){color:#e6e1d8!important;-webkit-text-fill-color:#e6e1d8!important;}

html:root:not(.light-theme) body .page-wrapper .kuyu20-hero-frame .holiday-countdown-real[data-kuyu20-festival][data-festival="double-ninth"] #kuyu20FestivalDetails{background:linear-gradient(115deg,#e1b66d,#efca87)!important;color:#352a19!important;border-color:#f7dfa5a6!important;box-shadow:0 3px 12px #d3ad6220,inset 0 1px #fff5!important;}

/* V218: original V79 glass material restored for every dark festival card.
   Preserve timer content and layout; material comes from V178's archived V79. */
html:root:not(.light-theme) body #kuyu20FestivalCard[data-kuyu20-festival]{
  isolation:isolate;

  background-color:rgba(19,21,30,.58)!important;
  background-image:radial-gradient(ellipse 22% 40% at 94% 96%,rgba(218,139,83,.19),transparent 100%),radial-gradient(ellipse 18% 32% at 5% 86%,rgba(165,105,84,.07),transparent 100%),linear-gradient(112deg,rgba(28,30,39,.58),rgba(22,24,33,.55) 58%,rgba(27,25,32,.6))!important;
  border-color:rgba(218,207,215,.2)!important;
  backdrop-filter:blur(24px) saturate(1.22)!important;-webkit-backdrop-filter:blur(24px) saturate(1.22)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.12),0 13px 32px rgba(0,0,0,.24),0 0 25px rgba(235,151,94,.12)!important;

  border:1px solid rgba(218,207,215,.2)!important;
}
html:root:not(.light-theme) body #kuyu20FestivalCard[data-kuyu20-festival]::before,
html:root:not(.light-theme) body #kuyu20FestivalCard[data-kuyu20-festival]::after{
  content:none!important;display:none!important;
}
@media(max-width:767px){
  html:root:not(.light-theme) body #kuyu20FestivalCard[data-kuyu20-festival]{
    box-sizing:border-box!important;width:calc(100% - 18px)!important;
    margin:3px 9px 9px!important;border-radius:20px!important;
  }
  html:root:not(.light-theme) body .kuyu20-hero-frame:has(#kuyu20FestivalCard){
    border-color:transparent!important;background:transparent!important;box-shadow:none!important;
  }
}

/* V219: one mobile frame for artwork and countdown; preserve V79 material. */
@media(max-width:767px){
  html:root body .kuyu20-hero-frame:has(#kuyu20FestivalCard){
    overflow:hidden!important;border-radius:22px!important;
    border:1px solid rgba(193,201,218,.15)!important;
  }
  html:root body .kuyu20-hero-frame:has(#kuyu20FestivalCard)>.hero-visual{
    border-radius:0!important;
  }
  html:root body .kuyu20-hero-frame:has(#kuyu20FestivalCard)>.hero-visual::after{
    content:''!important;display:block!important;position:absolute!important;
    inset:auto 0 0!important;height:38px!important;
    background:linear-gradient(transparent,#171923)!important;
    pointer-events:none!important;
  }
  html:root.light-theme body .kuyu20-hero-frame:has(#kuyu20FestivalCard)>.hero-visual::after{
    background:linear-gradient(transparent,#fffaf5)!important;
  }
  html:root body .kuyu20-hero-frame:has(#kuyu20FestivalCard)>.festival-section{
    padding:0!important;margin:0!important;border-radius:0!important;
  }
  html:root:not(.light-theme) body #kuyu20FestivalCard[data-kuyu20-festival],
  html:root.light-theme body #kuyu20FestivalCard[data-kuyu20-festival]{
    width:100%!important;margin:0!important;border:0!important;border-radius:0!important;
    box-shadow:none!important;
  }
}

/* V222: keep long desktop festival dates within their own grid column. */
@media(min-width:1101px){
  html:root body #kuyu20FestivalCard #kuyu20FestivalDates{
    min-width:0!important;width:100%!important;max-width:100%!important;
    box-sizing:border-box!important;white-space:normal!important;overflow:hidden!important;
    padding-right:10px!important;
  }
  html:root body #kuyu20FestivalCard #kuyu20FestivalDates>span{
    min-width:0!important;max-width:100%!important;display:flex!important;flex-wrap:nowrap!important;
  }
  html:root body #kuyu20FestivalCard #kuyu20FestivalDates #hc-date,
  html:root body #kuyu20FestivalCard #kuyu20FestivalDates #hc-lunar{
    min-width:0!important;max-width:100%!important;flex:1 1 auto!important;
    white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
    line-height:1.4!important;
  }
  html:root body #kuyu20FestivalCard #kuyu20FestivalDates .kuyu20-date-caption{
    flex:0 0 auto!important;white-space:nowrap!important;
  }
}

/* V223: hidden is authoritative; desktop date/name/lunar have separate rows. */
html:root body #kuyu20FestivalCard #kuyu20FestivalDates>span[hidden]{display:none!important;}
@media(min-width:1101px){
  html:root body #kuyu20FestivalCard[data-kuyu20-festival]{height:auto!important;min-height:88px!important;max-height:none!important;}
  html:root body #kuyu20FestivalCard #kuyu20FestivalDates{display:grid!important;gap:4px!important;overflow:visible!important;align-content:center!important;}
  html:root body #kuyu20FestivalCard #kuyu20FestivalDates>span:not([hidden]){display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;gap:8px!important;align-items:baseline!important;}
  html:root body #kuyu20FestivalCard #kuyu20FestivalDates #kuyu20FestivalNameValue{min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:13px;font-weight:600;line-height:1.4;}
}

/* V226: details action follows the festival, independently of dark coral numbers. */
html:root body #kuyu20FestivalCard #kuyu20FestivalDetails{
  background:linear-gradient(115deg,color-mix(in srgb,var(--kuyu20-light-festival-accent,#f4c46f) 92%,#fff),var(--kuyu20-light-festival-accent,#f4c46f))!important;
  color:var(--kuyu20-festival-action-ink,#182638)!important;
  -webkit-text-fill-color:var(--kuyu20-festival-action-ink,#182638)!important;
  border-color:color-mix(in srgb,var(--kuyu20-light-festival-accent,#f4c46f) 75%,#fff)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.22),0 3px 10px color-mix(in srgb,var(--kuyu20-light-festival-accent,#f4c46f) 12%,transparent)!important;
}
html:root body #kuyu20FestivalCard #kuyu20FestivalDetails :is(span,i){
  color:inherit!important;-webkit-text-fill-color:inherit!important;
}
html:root body #kuyu20FestivalCard #kuyu20FestivalDetails:hover{filter:brightness(1.04);}

/* Winter solstice action in dark mode: harmonize with the coral countdown. */
html:root:not(.light-theme) body #kuyu20FestivalCard[data-festival="winter-solstice"] #kuyu20FestivalDetails{background:linear-gradient(115deg,#bd4351,#a93443)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#da737c!important;box-shadow:inset 0 1px rgba(255,255,255,.18),0 3px 10px rgba(175,52,67,.18)!important;}
