:root {
  --ink: #2d2140; --paper: #fffdf8; --brown: #5b3416; --gold: #f4b942;
  --us: #2e5fb8; --us-bg: #e8f0ff; --cn: #c62828; --cn-bg: #ffecea; --world: #2e8b57; --world-bg: #e7f7ee; --shop: #8e44ad; --shop-bg: #f5eafc;
  --shadow: 0 6px 0 rgba(45, 33, 64, .12), 0 12px 28px rgba(45, 33, 64, .14);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Fredoka', 'Trebuchet MS', sans-serif; color: var(--ink); min-height: 100vh;
  background: linear-gradient(160deg, #ffe3b3 0%, #ffc6c6 35%, #c9d8ff 70%, #c8f0dc 100%) fixed;
}
a { color: inherit; text-decoration: none; }
.sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.sky span { position: absolute; top: -60px; opacity: .35; animation: drift linear infinite; }
@keyframes drift { 0% { transform: translateY(-60px) rotate(0); } 100% { transform: translateY(110vh) rotate(300deg); } }
header, main, footer { position: relative; z-index: 1; }

.top { text-align: center; padding: 28px 16px 6px; }
.logo { font-size: 84px; line-height: 1; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.top h1 { font-size: clamp(42px, 8vw, 72px); margin: 6px 0 0; color: #fff; -webkit-text-stroke: 2px var(--ink); text-shadow: 0 4px 0 var(--ink), 0 10px 20px rgba(45, 33, 64, .3); letter-spacing: 1px; }
.top h1 span { color: var(--gold); }
.sub { font-size: 19px; font-weight: 600; margin: 8px 0 0; opacity: .8; }

main { max-width: 1180px; margin: 0 auto; padding: 10px 16px 30px; }

.next-card { display: flex; align-items: center; gap: 22px; background: var(--paper); border-radius: 28px; padding: 18px 26px; box-shadow: var(--shadow); margin: 18px 0; border: 5px solid #fff; transition: transform .12s; }
.next-card:hover { transform: translateY(-3px) scale(1.01); }
.nc-emoji { font-size: 96px; line-height: 1; }
.nc-body { flex: 1; min-width: 0; }
.nc-label { font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 14px; opacity: .6; }
.nc-name { font-size: 32px; font-weight: 700; line-height: 1.15; }
.nc-date { font-weight: 600; opacity: .75; margin-top: 2px; }
.nc-blurb { margin-top: 6px; font-size: 18px; }
.nc-play { background: #4caf50; color: #fff; font-weight: 700; font-size: 26px; padding: 14px 26px; border-radius: 20px; box-shadow: 0 5px 0 #2e7d32; white-space: nowrap; }

.controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 10px 0; }
.year { display: flex; align-items: center; gap: 10px; background: var(--paper); padding: 6px 10px; border-radius: 999px; box-shadow: var(--shadow); font-size: 26px; }
.year button { border: none; background: #efe7ff; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; font-family: inherit; }
.year button:hover { background: #ded0ff; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 3px solid #fff; background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.month { background: rgba(255, 253, 248, .72); border-radius: 26px; padding: 12px 18px 16px; margin: 16px 0; box-shadow: 0 4px 16px rgba(45, 33, 64, .08); }
.month.now { outline: 4px solid var(--gold); }
.month h2 { margin: 4px 4px 10px; font-size: 28px; }
.month h2 small { font-size: 18px; opacity: .5; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }

.hcard { position: relative; display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border-radius: 22px; padding: 14px; border: 4px solid #fff; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; min-height: 140px; }
.hcard:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 10px 0 rgba(45, 33, 64, .12), 0 18px 30px rgba(45, 33, 64, .18); }
.hcard.past { opacity: .72; }
.hcard.today { outline: 5px solid var(--gold); }
.hc-date { display: flex; flex-direction: column; align-items: center; min-width: 52px; border-radius: 14px; padding: 4px 6px; color: #fff; }
.hc-date b { font-size: 30px; line-height: 1; }
.hc-date small { font-size: 13px; font-weight: 600; opacity: .9; }
.hc-emoji { font-size: 50px; line-height: 1; }
.hc-body { flex: 1; min-width: 0; }
.hc-name { font-weight: 700; font-size: 20px; line-height: 1.15; }
.hc-kind { font-size: 13px; font-weight: 600; margin: 2px 0 4px; }
.hc-blurb { font-size: 15px; line-height: 1.35; opacity: .85; }
.hc-cn { font-size: 13px; margin-top: 6px; background: var(--cn-bg); color: var(--cn); display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.hc-prog { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hc-prog span { font-size: 13px; background: #fff4cc; border-radius: 999px; padding: 2px 9px; font-weight: 600; }
.hc-badge, .hc-stamp { position: absolute; top: -10px; right: -8px; background: var(--gold); color: var(--brown); font-weight: 800; padding: 4px 10px; border-radius: 999px; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); font-size: 14px; transform: rotate(8deg); }

.k-us .hc-date { background: var(--us); } .k-us .hc-kind { color: var(--us); } .hcard.k-us { background: linear-gradient(180deg, #fff, var(--us-bg)); }
.k-cn .hc-date { background: var(--cn); } .k-cn .hc-kind { color: var(--cn); } .hcard.k-cn { background: linear-gradient(180deg, #fff, var(--cn-bg)); }
.k-world .hc-date { background: var(--world); } .k-world .hc-kind { color: var(--world); } .hcard.k-world { background: linear-gradient(180deg, #fff, var(--world-bg)); }
.k-shop .hc-date { background: var(--shop); } .k-shop .hc-kind { color: var(--shop); } .hcard.k-shop { background: linear-gradient(180deg, #fff, var(--shop-bg)); }
.chip.k-us.on { background: var(--us); border-color: var(--us); } .chip.k-cn.on { background: var(--cn); border-color: var(--cn); }
.chip.k-world.on { background: var(--world); border-color: var(--world); } .chip.k-shop.on { background: var(--shop); border-color: var(--shop); }

.note { text-align: center; font-weight: 600; opacity: .75; }
.help { background: rgba(255, 253, 248, .85); border-radius: 26px; padding: 8px 24px 14px; margin-top: 24px; box-shadow: var(--shadow); }
.help li { margin: 6px 0; font-size: 17px; line-height: 1.4; }
footer { text-align: center; padding: 10px 0 30px; font-weight: 600; opacity: .7; }

@media (max-width: 640px) {
  .next-card { flex-direction: column; text-align: center; }
  .nc-emoji { font-size: 72px; } .nc-name { font-size: 26px; }
  .cards { grid-template-columns: 1fr; }
  .controls { justify-content: center; }
}
