:root {
  --cream: #fff4ea;
  --card: #fffdf8;
  --ink: #4a3b38;
  --muted: #8a716c;
  --peach: #ffb4a2;
  --berry: #ff8fab;
  --mint: #b8f2e6;
  --grape: #d4c1ec;
  --butter: #ffe08a;
  --line: rgba(74, 59, 56, 0.08);
  --shadow: 0 16px 40px rgba(255, 140, 120, 0.18);
  --radius: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Nunito", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.7;
  animation: float 12s ease-in-out infinite;
}
.b1 { width: 280px; height: 280px; background: #ffd6c9; top: -80px; left: -60px; }
.b2 { width: 220px; height: 220px; background: var(--mint); top: 20%; right: -70px; animation-delay: -3s; }
.b3 { width: 160px; height: 160px; background: var(--grape); bottom: 10%; left: 8%; animation-delay: -6s; }
.b4 { width: 120px; height: 120px; background: var(--butter); bottom: -30px; right: 18%; animation-delay: -8s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(18px) scale(1.05); }
}

.hero, .toolbar, .chip-note, .chips, .status, .fresh, .feed, footer {
  position: relative;
  z-index: 1;
}

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 8px;
  display: flex;
  gap: 22px;
  align-items: center;
}

.mascot {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.globe {
  position: relative;
  width: 108px;
  height: 108px;
  display: block;
  background: radial-gradient(circle at 35% 30%, #ffe1d4, var(--peach) 55%, #f48c7a);
  border-radius: 50%;
  box-shadow: var(--shadow), inset -10px -12px 0 rgba(255, 255, 255, 0.18);
  animation: bob 3.4s ease-in-out infinite;
}
.globe:after {
  content: "";
  position: absolute;
  inset: 18% 12% auto 12%;
  height: 38%;
  border: 3px solid rgba(74, 59, 56, 0.12);
  border-radius: 50%;
}
.hat {
  position: absolute;
  top: -14px;
  left: 28px;
  width: 52px;
  height: 22px;
  background: #fffdf8;
  border-radius: 8px 8px 4px 4px;
  box-shadow: 0 6px 0 #ffd166;
  transform: rotate(-8deg);
}
.hat:before {
  content: "";
  position: absolute;
  top: -10px;
  left: 14px;
  width: 22px;
  height: 12px;
  background: #ffd166;
  border-radius: 6px 6px 0 0;
}
.face { position: absolute; inset: 0; }
.eye {
  position: absolute;
  top: 42px;
  width: 9px;
  height: 12px;
  background: #3b2d2b;
  border-radius: 50%;
  animation: blink 5.5s infinite;
}
.eye.left { left: 32px; }
.eye.right { right: 32px; }
.blush {
  position: absolute;
  top: 56px;
  width: 14px;
  height: 8px;
  background: #ff8fab;
  border-radius: 50%;
  opacity: 0.75;
}
.blush.left { left: 22px; }
.blush.right { right: 22px; }
.mouth {
  position: absolute;
  left: 50%;
  top: 64px;
  width: 18px;
  height: 10px;
  margin-left: -9px;
  border: 3px solid #3b2d2b;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
.mascot.pop .globe { animation: pop 0.45s ease; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
}
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12) rotate(-6deg); }
  100% { transform: scale(1); }
}

.brand h1 {
  font-family: "ZCOOL KuaiLe", "Nunito", sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1;
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--berry);
  font-weight: 800;
  font-size: 13px;
}
.tag {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 28em;
  line-height: 1.55;
}

.toolbar {
  max-width: 1080px;
  margin: 18px auto 0;
  padding: 0 20px;
  display: grid;
  gap: 14px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border-radius: 999px;
  padding: 4px 18px;
  box-shadow: var(--shadow);
}
.search-ico { color: var(--berry); font-size: 22px; }
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
  color: var(--ink);
}

.regions, .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.regions button, .chips button {
  border: 0;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(74, 59, 56, 0.06);
  transition: transform 0.15s ease, background 0.15s ease;
}
.chips button { background: var(--card); font-weight: 700; }
.regions button:hover, .chips button:hover { transform: translateY(-2px); }
.regions button.on, .chips button.on {
  background: var(--ink);
  color: #fff8f2;
}

.regions button.bgm {
  background: #ffe08a;
  margin-left: auto;
}
.regions button.bgm.on {
  background: var(--ink);
  color: #fff8f2;
}

.chips {
  max-width: 1080px;
  margin: 8px auto 0;
  padding: 0 20px 8px;
}

.chip-note {
  max-width: 1080px;
  margin: 12px auto 0;
  padding: 0 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.chips button {
  padding: 7px 12px;
  font-size: 13px;
}

.chips.closed > button:not(.chip-toggle) {
  display: none;
}

.chips .chip-toggle {
  background: var(--butter);
}

.country-block {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.country-head {
  margin: 12px 4px 0;
  font-size: 16px;
  font-weight: 800;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.status {
  max-width: 1080px;
  margin: 16px auto 0;
  padding: 0 22px;
  color: var(--muted);
  font-size: 14px;
  min-height: 1.2em;
}

.fresh {
  position: sticky;
  top: 12px;
  z-index: 8;
  display: none;
  margin: 10px auto 0;
  border: 0;
  background: var(--ink);
  color: #fff8f2;
  font: inherit;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.fresh[hidden] { display: none !important; }
.fresh:not([hidden]) {
  display: flex;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}
.fresh:hover { transform: translateY(-1px); }

.fresh-block .country-head {
  color: var(--berry);
}

.feed {
  max-width: 1080px;
  margin: 8px auto 40px;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-height: 168px;
  transition: transform 0.18s ease;
  border: 3px solid transparent;
  animation: plop 0.5s cubic-bezier(.34, 1.56, .64, 1) both;
}
.card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  border-color: var(--peach);
}
@keyframes plop {
  0% { transform: scale(0.86) translateY(14px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.card.quiet { animation: none; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pill {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffe8de;
}
.pill.pack { background: var(--mint); }
.pill.time {
  background: var(--butter);
  font-weight: 700;
}
.card h2 {
  font-size: 17px;
  line-height: 1.45;
  margin: 0;
  font-weight: 800;
  flex: 1;
}
.orig {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}
.go {
  color: var(--berry);
  font-weight: 800;
  font-size: 13px;
}

.empty, .loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 12px;
  color: var(--muted);
}
.mochi {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(#ffe8de, var(--peach));
  box-shadow: var(--shadow);
  animation: bob 1.2s ease-in-out infinite;
}
.dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background: var(--berry);
  border-radius: 50%;
  animation: bounce 0.9s infinite;
}
.dots span:nth-child(2) { animation-delay: 0.12s; }
.dots span:nth-child(3) { animation-delay: 0.24s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 8px 16px 40px;
  font-size: 13px;
}
footer .credit {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
}
footer a {
  color: var(--berry);
}

@media (max-width: 640px) {
  .hero { flex-direction: column; text-align: center; }
  .tag { margin-left: auto; margin-right: auto; }
  .globe { width: 92px; height: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .globe, .mochi, .dots span, .card { animation: none; }
}
