/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700;900&family=ZCOOL+QingKe+HuangYou&family=Long+Cang&display=swap');

:root {
  --primary-red: #D90F0F;
  --dark-red: #8B0000;
  --gold: #F2C868;
  --light-yellow: #FFFACD;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans SC', 'ZCOOL QingKe HuangYou', sans-serif;
  background-color: var(--primary-red);
  background-image: radial-gradient(circle, var(--primary-red) 0%, var(--dark-red) 100%);
  color: var(--gold);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background Pattern (Optional subtle texture) */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="%239c0b0b" fill-opacity="0.4"><path d="M50 50h10v10H50zM10 10h10v10H10z"/></g></svg>');
  z-index: 0;
  pointer-events: none;
}

/* Lantern Decorations - 中式传统春节红灯笼（短粗饱满） */
.lantern-container {
  position: absolute;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 8%;
  z-index: 10;
  pointer-events: none;
}

.lantern {
  position: relative;
  width: 140px;
  animation: swing 4s infinite ease-in-out;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
  transform-origin: top center;
}

/* 挂绳 */
.lantern-rope {
  width: 8px;
  height: 45px;
  background: linear-gradient(to bottom, #8B4513, #654321);
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: inset -2px 0 3px rgba(0, 0, 0, 0.5);
}

/* 灯笼顶部 - 金色盖子 */
.lantern-top {
  width: 90px;
  height: 30px;
  background: radial-gradient(ellipse at center, #FFD700 0%, #F4D03F 40%, #DAA520 70%, #B8860B 100%);
  margin: 0 auto;
  border-radius: 50%;
  position: relative;
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.5),
    inset 0 3px 6px rgba(255, 255, 255, 0.4),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3);
}

.lantern-top::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 18px;
  background: linear-gradient(to bottom, #FFD700, #F4D03F, #DAA520);
  border-radius: 50%;
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.lantern-top::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 75px;
  height: 12px;
  background: radial-gradient(ellipse, rgba(184, 134, 11, 0.8) 0%, transparent 70%);
  border-radius: 50%;
}

/* 灯笼主体 - 短粗饱满的圆形 */
.lantern-body {
  width: 130px;
  height: 110px;
  background:
    /* 竖向骨架 */
    linear-gradient(90deg,
      transparent 0%,
      transparent 11%,
      rgba(139, 0, 0, 0.4) 11.5%,
      rgba(80, 0, 0, 0.5) 12%,
      rgba(139, 0, 0, 0.4) 12.5%,
      transparent 13%,
      transparent 23%,
      rgba(139, 0, 0, 0.4) 23.5%,
      rgba(80, 0, 0, 0.5) 24%,
      rgba(139, 0, 0, 0.4) 24.5%,
      transparent 25%,
      transparent 35%,
      rgba(139, 0, 0, 0.4) 35.5%,
      rgba(80, 0, 0, 0.5) 36%,
      rgba(139, 0, 0, 0.4) 36.5%,
      transparent 37%,
      transparent 47%,
      rgba(139, 0, 0, 0.4) 47.5%,
      rgba(80, 0, 0, 0.5) 48%,
      rgba(139, 0, 0, 0.4) 48.5%,
      transparent 49%,
      transparent 59%,
      rgba(139, 0, 0, 0.4) 59.5%,
      rgba(80, 0, 0, 0.5) 60%,
      rgba(139, 0, 0, 0.4) 60.5%,
      transparent 61%,
      transparent 71%,
      rgba(139, 0, 0, 0.4) 71.5%,
      rgba(80, 0, 0, 0.5) 72%,
      rgba(139, 0, 0, 0.4) 72.5%,
      transparent 73%,
      transparent 83%,
      rgba(139, 0, 0, 0.4) 83.5%,
      rgba(80, 0, 0, 0.5) 84%,
      rgba(139, 0, 0, 0.4) 84.5%,
      transparent 85%,
      transparent 95%,
      rgba(139, 0, 0, 0.4) 95.5%,
      rgba(80, 0, 0, 0.5) 96%,
      rgba(139, 0, 0, 0.4) 96.5%,
      transparent 97%
    ),
    /* 红色底色 */
    radial-gradient(ellipse at center,
      #FF1A1A 0%,
      #FF0000 20%,
      #E60000 50%,
      #CC0000 80%,
      #B30000 100%
    );
  margin: 0 auto;
  border-radius: 50%;
  position: relative;
  box-shadow:
    inset -20px 0 30px rgba(0, 0, 0, 0.5),
    inset 20px 0 30px rgba(255, 80, 80, 0.4),
    0 0 50px rgba(255, 0, 0, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.4);
  overflow: visible;
}

/* 灯笼装饰 - 金色边框和横纹 */
.lantern-decoration {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  height: calc(100% - 36px);
  border-top: 4px solid rgba(218, 165, 32, 0.7);
  border-bottom: 4px solid rgba(218, 165, 32, 0.7);
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    inset 0 4px 8px rgba(218, 165, 32, 0.3),
    inset 0 -4px 8px rgba(218, 165, 32, 0.3);
}

.lantern-decoration::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(218, 165, 32, 0.3) 15%,
    rgba(218, 165, 32, 0.8) 50%,
    rgba(218, 165, 32, 0.3) 85%,
    transparent 100%);
  box-shadow:
    0 0 12px rgba(218, 165, 32, 0.6),
    0 1px 0 rgba(255, 215, 0, 0.4);
}

.lantern-decoration::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 30%,
    rgba(255, 100, 100, 0.3) 0%,
    transparent 50%);
}

/* 灯笼上的福/春字 */
.lantern-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 52px;
  font-family: 'ZCOOL QingKe HuangYou', 'Long Cang', cursive;
  font-weight: 900;
  color: #FFD700;
  text-shadow:
    0 0 20px rgba(255, 215, 0, 1),
    0 0 35px rgba(255, 215, 0, 0.8),
    4px 4px 8px rgba(0, 0, 0, 0.9),
    -2px -2px 0 #B8860B,
    2px -2px 0 #B8860B,
    -2px 2px 0 #B8860B,
    2px 2px 0 #B8860B;
  z-index: 2;
  animation: glow 2.5s ease-in-out infinite alternate;
  letter-spacing: 3px;
}

@keyframes glow {
  0% {
    text-shadow:
      0 0 20px rgba(255, 215, 0, 1),
      0 0 35px rgba(255, 215, 0, 0.8),
      4px 4px 8px rgba(0, 0, 0, 0.9),
      -2px -2px 0 #B8860B,
      2px -2px 0 #B8860B,
      -2px 2px 0 #B8860B,
      2px 2px 0 #B8860B;
  }
  100% {
    text-shadow:
      0 0 30px rgba(255, 215, 0, 1),
      0 0 50px rgba(255, 215, 0, 1),
      4px 4px 8px rgba(0, 0, 0, 0.9),
      -2px -2px 0 #DAA520,
      2px -2px 0 #DAA520,
      -2px 2px 0 #DAA520,
      2px 2px 0 #DAA520;
  }
}

/* 灯笼底部 - 金色盖子 */
.lantern-bottom {
  width: 90px;
  height: 30px;
  background: radial-gradient(ellipse at center, #FFD700 0%, #F4D03F 40%, #DAA520 70%, #B8860B 100%);
  margin: 0 auto;
  border-radius: 50%;
  position: relative;
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.5),
    inset 0 3px 6px rgba(255, 255, 255, 0.4),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3);
}

.lantern-bottom::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 75px;
  height: 12px;
  background: radial-gradient(ellipse, rgba(184, 134, 11, 0.8) 0%, transparent 70%);
  border-radius: 50%;
}

.lantern-bottom::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 18px;
  background: linear-gradient(to bottom, #DAA520, #C5A028, #B8860B);
  border-radius: 50%;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.5),
    inset 0 -2px 4px rgba(255, 255, 255, 0.2);
}

/* 流苏 - 更精致 */
.lantern-tassel {
  width: 50px;
  margin: 8px auto 0;
  position: relative;
}

.tassel-top {
  width: 50px;
  height: 35px;
  background: linear-gradient(to bottom,
    #FFD700 0%,
    #F4D03F 25%,
    #DAA520 60%,
    #C5A028 100%);
  border-radius: 50%;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.5),
    inset 0 3px 6px rgba(255, 255, 255, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3);
  position: relative;
}

.tassel-top::before {
  content: "";
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 35%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    rgba(184, 134, 11, 0.4) 3px,
    rgba(184, 134, 11, 0.4) 5px
  );
  border-radius: 50%;
}

.tassel-middle {
  width: 8px;
  height: 40px;
  background: linear-gradient(to bottom,
    #DAA520 0%,
    #C5A028 50%,
    #B8860B 100%);
  margin: 0 auto;
  box-shadow:
    3px 0 4px rgba(0, 0, 0, 0.4),
    inset -2px 0 3px rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.tassel-bottom {
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-top: 35px solid #B8860B;
  margin: 0 auto;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.5));
  position: relative;
}

.tassel-bottom::before {
  content: "";
  position: absolute;
  top: -35px;
  left: -25px;
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-top: 35px solid #C5A028;
  opacity: 0.8;
}

@keyframes swing {
  0%, 100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
}

/* Main Container */
.container {
  z-index: 1;
  width: 90%;
  max-width: 800px;
  text-align: center;
  margin-top: 20px;
  padding-bottom: 50px;
}

/* Header */
header {
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 20px;
  position: relative;
}

header::after {
  content: "福";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10rem;
  opacity: 0.1;
  font-family: 'ZCOOL QingKe HuangYou', 'Long Cang', cursive;
  z-index: -1;
  font-weight: 900;
}

h1 {
  font-size: 3rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
  font-weight: 900;
  font-family: 'ZCOOL QingKe HuangYou', 'Noto Sans SC', sans-serif;
}

.sub-title {
  font-size: 1.5rem;
  color: var(--light-yellow);
}

/* Date Info Section */
.date-info {
  background: rgba(139, 0, 0, 0.4);
  border: 2px solid var(--gold);
  border-radius: 15px;
  padding: 15px;
  margin: 20px 0;
  box-shadow: 0 0 20px rgba(242, 200, 104, 0.2);
}

.current-date {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.lunar-date {
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
}

/* Countdown Section */
.countdown-section {
  margin: 30px 0;
  position: relative;
}

.countdown-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.decoration-icon {
  width: 40px;
  height: 40px;
  /* Use a simpler representation like a stylized character or svg if image not available */
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-red);
  font-weight: bold;
}

.countdown-display {
  background: linear-gradient(135deg, #b71c1c, #880e4f);
  border: 4px solid var(--gold);
  border-radius: 50px;
  padding: 20px 40px;
  display: inline-block;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Festivals Grid */
.festivals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

.festival-item {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 5px;
  font-size: 1.2rem;
  color: var(--light-yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.festival-days {
  font-size: 2rem;
  font-weight: bold;
  color: #FFF;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  /* Floating effect */
  margin-bottom: 5px;
}

.festival-item div:last-child {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.days-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}

#days {
  font-size: 5rem;
  font-weight: bold;
  line-height: 1;
  color: #FFF;
  text-shadow: 0 0 10px var(--gold);
}

.unit {
  font-size: 2rem;
}

.time-wrapper {
  margin-top: 10px;
  font-size: 1.5rem;
  color: var(--light-yellow);
  background: rgba(0, 0, 0, 0.2);
  padding: 5px 20px;
  border-radius: 20px;
  font-weight: 700;
}

/* Video Section */
.video-container {
  margin: 40px auto;
  /* Center horizontally */
  position: relative;
  width: 100%;
  max-width: 800px;
  /* Limit max width for large screens */
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  border: 5px solid var(--gold);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  color: #fff;
  font-family: sans-serif;
  z-index: -1;
}

/* Footer & Motto */
.footer-motto {
  margin-top: 20px;
}

.big-motto {
  font-size: 3.5rem;
  background: linear-gradient(to bottom, #FFE082, #F2C868);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0px rgba(0, 0, 0, 0.5));
  font-family: 'ZCOOL QingKe HuangYou', 'Noto Sans SC', sans-serif;
  font-weight: 900;
}

.zodiac-year {
  font-size: 1.2rem;
  margin-top: 10px;
  opacity: 0.8;
}

/* ========== 春节特效 ========== */

/* 飘落的红包 */
.red-envelope {
  position: fixed;
  width: 40px;
  height: 50px;
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  border: 2px solid var(--gold);
  border-radius: 5px;
  pointer-events: none;
  z-index: 5;
  animation: fall linear infinite;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.red-envelope::before {
  content: "福";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.red-envelope::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15px;
  background: var(--gold);
  border-radius: 3px 3px 0 0;
}

@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0.6;
  }
}

/* 飘落的福字 */
.floating-fu {
  position: fixed;
  font-family: 'ZCOOL QingKe HuangYou', 'Long Cang', cursive;
  font-size: 60px;
  font-weight: 900;
  color: var(--gold);
  pointer-events: none;
  z-index: 4;
  animation: float-fall linear infinite;
  text-shadow: 0 0 10px rgba(242, 200, 104, 0.8),
               0 2px 5px rgba(0, 0, 0, 0.5);
  opacity: 0.8;
}

@keyframes float-fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(100vh) rotate(180deg);
    opacity: 0.3;
  }
}

/* 烟花容器 */
.firework {
  position: fixed;
  pointer-events: none;
  z-index: 3;
}

.firework-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: firework-explode 2s ease-out forwards;
  box-shadow: 0 0 6px currentColor;
}

/* 大烟花火花 */
.firework-spark.large {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 12px currentColor, 0 0 24px currentColor;
}

/* 鼠标跟随小烟花 */
.firework-spark.small {
  width: 5px;
  height: 5px;
  animation: firework-explode 1s ease-out forwards;
}

@keyframes firework-explode {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0.5);
    opacity: 0;
  }
}

/* 金色粒子 */
.golden-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 6;
  animation: sparkle linear infinite;
  box-shadow: 0 0 10px var(--gold);
}

@keyframes sparkle {
  0% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
    transform: translateY(-50vh) scale(1);
  }
  100% {
    transform: translateY(-100vh) scale(0);
    opacity: 0;
  }
}

/* 中国结装饰 */
.chinese-knot {
  position: fixed;
  width: 50px;
  height: 60px;
  pointer-events: none;
  z-index: 4;
  animation: swing-knot 4s ease-in-out infinite;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.4));
}

@keyframes swing-knot {
  0%, 100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(8deg);
  }
}

/* ========== 新年留言板 ========== */
.message-board {
  margin: 40px auto 20px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.6), rgba(217, 15, 15, 0.4));
  border: 3px solid var(--gold);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 600px;
}

.message-title {
  font-size: 2rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  font-family: 'ZCOOL QingKe HuangYou', 'Noto Sans SC', sans-serif;
  font-weight: 900;
}

.message-input-container {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.message-input {
  flex: 1;
  padding: 12px 20px;
  font-size: 1.1rem;
  border: 2px solid var(--gold);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark-red);
  font-family: 'Noto Sans SC', sans-serif;
  outline: none;
  transition: all 0.3s;
  font-weight: 500;
}

.message-input:focus {
  border-color: var(--light-yellow);
  box-shadow: 0 0 15px rgba(242, 200, 104, 0.5);
  background: #fff;
}

.message-input::placeholder {
  color: #999;
}

.send-btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--dark-red);
  background: linear-gradient(135deg, var(--gold), var(--light-yellow));
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'ZCOOL QingKe HuangYou', 'Noto Sans SC', sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, var(--light-yellow), var(--gold));
}

.send-btn:active {
  transform: translateY(0);
}

.message-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--light-yellow);
  opacity: 0.8;
}

/* ========== 弹幕效果 ========== */
.danmaku-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.danmaku-item {
  position: absolute;
  white-space: nowrap;
  font-size: 1.3rem;
  font-family: 'ZCOOL QingKe HuangYou', 'Noto Sans SC', sans-serif;
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.6),
    2px 2px 4px rgba(0, 0, 0, 0.9);
  animation: danmaku-move linear;
  padding: 8px 15px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 100, 100, 0.7), rgba(255, 150, 50, 0.7));
  border: 2px solid rgba(255, 215, 0, 0.6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.danmaku-item::before {
  content: "💝 ";
}

@keyframes danmaku-move {
  0% {
    left: 100%;
  }
  100% {
    left: -100%;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    width: 95%;
    margin-top: 10px;
  }

  h1 {
    font-size: 2rem;
  }

  .current-date,
  .lunar-date {
    font-size: 1.1rem;
  }

  .countdown-display {
    padding: 15px 20px;
  }

  #days {
    font-size: 3.5rem;
  }

  .unit {
    font-size: 1.2rem;
  }

  .time-wrapper {
    font-size: 1.1rem;
  }

  .festivals-grid {
    grid-template-columns: 1fr 1fr;
    /* Keep 2 columns even on mobile for compactness, or 1fr for list */
    gap: 10px;
  }

  .festival-item {
    font-size: 1rem;
  }

  .festival-days {
    font-size: 1.2rem;
  }

  .big-motto {
    font-size: 2rem;
  }

  .lantern {
    width: 110px;
  }

  .lantern-rope {
    height: 35px;
    width: 6px;
  }

  .lantern-top {
    width: 70px;
    height: 24px;
  }

  .lantern-top::before {
    width: 40px;
    height: 14px;
    top: -12px;
  }

  .lantern-body {
    width: 100px;
    height: 85px;
  }

  .lantern-text {
    font-size: 40px;
  }

  .lantern-bottom {
    width: 70px;
    height: 24px;
  }

  .lantern-bottom::after {
    width: 40px;
    height: 14px;
    bottom: -12px;
  }

  .tassel-top {
    width: 38px;
    height: 28px;
  }

  .tassel-middle {
    width: 6px;
    height: 30px;
  }

  .tassel-bottom {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 28px solid #B8860B;
  }

  .tassel-bottom::before {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 28px solid #C5A028;
    top: -28px;
    left: -20px;
  }

  /* Make countdown title stack on very small screens */
  .countdown-title {
    flex-wrap: wrap;
    font-size: 1.4rem;
  }

  .message-board {
    padding: 20px 15px;
    margin: 30px auto 15px;
  }

  .message-title {
    font-size: 1.5rem;
  }

  .message-input-container {
    flex-direction: column;
  }

  .message-input,
  .send-btn {
    font-size: 1rem;
  }

  .danmaku-item {
    font-size: 1rem;
    padding: 6px 12px;
  }
}