
.today.kalcard { background: #16244f; color: #fff7ec; --icon-line: #fff7ec; --icon-halo: transparent; }
.today.kalcard .today__text .small { color: #cfd9f5; }
.today.kalcard .today__text b { font-size: 18px; line-height: 1.2; }
.kalwon { text-align: left; }

.kal__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kal__top h1 { margin: 0; font-size: 26px; line-height: 1.15; }
.kal__count { flex: none; font-weight: 800; font-size: 14px; color: var(--teal-dark); background: var(--teal-soft); border-radius: 999px; padding: 5px 12px; }
.kal__say { display: flex; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 8px 14px; }
.kal__say > svg { flex: none; }
.kal__say > span { display: grid; gap: 1px; min-width: 0; }
.kal__say b { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.2; }
.kal__pic { position: relative; width: 100%; max-width: 460px; margin: 0 auto; aspect-ratio: 2 / 3; border-radius: 18px; overflow: hidden;
  border: 3px solid var(--edge); background: #16244f; container-type: inline-size; }
.kal__scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.kal__scene .capy, .kal__scene .capy * { animation: none !important; }
.kal__doors { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }

.kal-door { position: relative; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; perspective: 320px; font: inherit; color: inherit;
  -webkit-tap-highlight-color: transparent; }
.kal-door__flap { position: absolute; inset: 2px; display: grid; place-items: center; align-content: center; border: 2px solid #3b2618; border-radius: 11px;
  font-family: var(--display); font-weight: 600; font-size: clamp(21px, 7.2cqw, 30px); line-height: 1; transform-origin: left center; backface-visibility: hidden;
  transition: transform .65s cubic-bezier(.3, .1, .3, 1), opacity .2s .45s; }
.kal-door__flap::before { content: ""; position: absolute; left: 7%; right: 7%; top: 0; height: 7px; background: #fff; border-radius: 6px 6px 14px 14px / 6px 6px 8px 8px; }
.kal-door__flap::after { content: ""; position: absolute; left: 22%; top: 5px; width: 9px; height: 6px; background: #fff; border-radius: 0 0 6px 6px; }
.kal-door--c0 .kal-door__flap { background: #ff8a1f; color: #3b2618; }
.kal-door--c1 .kal-door__flap { background: #14a098; color: #fff; }
.kal-door--c2 .kal-door__flap { background: #fff1dc; color: #3b2618; }
.kal-door--c3 .kal-door__flap { background: #5a3a26; color: #fff1dc; }
.kal-door--gold .kal-door__flap { background: #ffc531; color: #3b2618; }
.kal-door__tag { font-family: inherit; font-weight: 800; font-size: 10.5px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; margin-top: 3px; }
.kal-door__badge, .kal-door__late { position: absolute; display: none; place-items: center; border-radius: 50%; background: #fff7ec; border: 2px solid #3b2618;
  --icon-line: #3b2618; --icon-halo: transparent; }
.kal-door__badge { right: 5px; bottom: 5px; width: 27px; height: 27px; }
.kal-door__late { right: -1px; top: -1px; width: 22px; height: 22px; z-index: 1; }
.kal-door.is-closed .kal-door__flap { filter: saturate(.8) brightness(.93); }
.kal-door.is-late .kal-door__flap { border-style: dashed; }
.kal-door.is-late .kal-door__late { display: grid; }
.kal-door.is-today { z-index: 2; }
.kal-door.is-today .kal-door__flap { box-shadow: 0 0 0 3px #ffc531, 0 0 16px 7px rgba(255, 197, 49, .8); animation: kalWobble 2.6s ease-in-out infinite; }
.kal-door.is-open .kal-door__flap { transform: rotateY(-108deg); opacity: 0; pointer-events: none; animation: none; }
.kal-door.is-open::after { content: ""; position: absolute; inset: 2px; border-radius: 11px; border: 2px solid rgba(255, 255, 255, .28); pointer-events: none; }
.kal-door.is-open .kal-door__badge { display: grid; }
.kal-door:focus-visible { outline: 3px solid #ffc531; outline-offset: -3px; z-index: 3; }
@keyframes kalWobble { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-4deg); } 84% { transform: rotate(4deg); } 92% { transform: rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) {
  .kal-door__flap { transition: opacity .2s; }
  .kal-door.is-today .kal-door__flap { animation: none; }
}

.kal-sheet { display: grid; gap: 8px; justify-items: center; text-align: center; }
.kal-sheet h2 { margin: 0; }
.kal-sheet p { margin: 0 0 6px; }
.kal-sheet__icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--teal-soft); border: 2px solid var(--edge); }

.kal-overlay { background: radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--teal) 26%, var(--bg)) 0, var(--bg) 62%); }
.kal-open { display: grid; justify-items: center; gap: 4px; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-dark); }
.kal-gift { display: flex; align-items: center; gap: 12px; text-align: left; }
.kal-gift > span { display: grid; gap: 2px; }
.kal-gift b { font-family: var(--display); font-weight: 600; font-size: 19px; }
