:root {
  --kirin-red: #e10600;
  --gold: #e8b423;
  --gold-deep: #c9920e;
  --gold-light: #f6d56a;
  --amber: #f2c94c;
  --cream: #fff8eb;
  --foam: #fffdf8;
  --ink: #1a1510;
  --ink-soft: #4a4036;
  --sky: #b9d8ef;
  --sky-deep: #7eb4d9;
  --beige: #f3e6cf;
  --max: 430px;
  --font-display: "Zen Old Mincho", "Noto Serif TC", serif;
  --font-body: "Noto Sans TC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, #fff4c4 0%, transparent 55%),
    radial-gradient(ellipse 80% 40% at 100% 20%, rgba(126, 180, 217, 0.35) 0%, transparent 50%),
    linear-gradient(180deg, #f7ecd0 0%, var(--cream) 28%, #fff 62%, var(--beige) 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.sparkle-field {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 220, 100, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 78% 12%, rgba(255, 240, 160, 0.8), transparent),
    radial-gradient(1px 1px at 88% 40%, rgba(232, 180, 35, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 22% 55%, rgba(255, 230, 120, 0.55), transparent),
    radial-gradient(1px 1px at 65% 70%, rgba(232, 180, 35, 0.45), transparent);
  animation: twinkle 4.5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

.hero,
.main,
.footer {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin-inline: auto;
}

/* —— Hero —— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 72vh;
  overflow: hidden;
}

.hero-kv {
  width: 100%;
  height: 72vh;
  object-fit: cover;
  object-position: 50% 18%;
  animation: heroRise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-glow {
  position: absolute;
  inset: auto 10% 18% 10%;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(255, 220, 80, 0.55), transparent 70%);
  filter: blur(18px);
  z-index: 1;
  animation: glowPulse 3.2s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.25rem 1.75rem;
  background: linear-gradient(
    180deg,
    rgba(255, 248, 230, 0.15) 0%,
    rgba(255, 248, 230, 0) 28%,
    rgba(26, 21, 16, 0.05) 55%,
    rgba(26, 21, 16, 0.55) 100%
  );
}

.brand-mark {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(1.6rem, 7vw, 2.1rem);
  letter-spacing: 0.28em;
  color: var(--kirin-red);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  animation: fadeDown 0.8s 0.15s both;
}

.brand-title {
  margin: 0.15rem 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 13vw, 3.6rem);
  letter-spacing: 0.12em;
  color: var(--ink);
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 24px rgba(0, 0, 0, 0.12);
  animation: fadeDown 0.85s 0.28s both;
}

.ribbon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(88%, 320px);
  padding: 0.55rem 1.75rem;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  border-radius: 999px;
  box-shadow:
    0 6px 0 rgba(160, 110, 10, 0.35),
    0 12px 28px rgba(180, 120, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  animation: ribbonIn 0.9s 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background: var(--gold-deep);
  transform: translateY(-50%) rotate(45deg);
  z-index: -1;
}

.ribbon::before {
  left: -6px;
}

.ribbon::after {
  right: -6px;
}

.ribbon-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 5vw, 1.45rem);
  letter-spacing: 0.18em;
  color: #5a3a00;
}

.hero-sub {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #fff8e8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  animation: fadeDown 0.8s 0.55s both;
}

@keyframes heroRise {
  from {
    transform: scale(1.06);
    opacity: 0.6;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes glowPulse {
  from {
    opacity: 0.55;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ribbonIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* —— Main —— */
.main {
  padding: 1.5rem 1.1rem 2.5rem;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--ink);
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.55rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.phase-panel {
  margin-bottom: 2.25rem;
}

.phase-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(201, 146, 14, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.phase-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 0.5rem;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.phase-tab-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.phase-tab-date {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.phase-tab.is-active {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #4a3000;
  box-shadow: 0 4px 14px rgba(201, 146, 14, 0.35);
  transform: translateY(-1px);
}

.phase-tab:focus-visible {
  outline: 2px solid var(--kirin-red);
  outline-offset: 2px;
}

.announce-meta {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.announce-meta strong {
  color: var(--kirin-red);
  font-weight: 700;
}

.search-wrap {
  margin-bottom: 1.15rem;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(201, 146, 14, 0.4);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.92);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
  color: #9a8b78;
}

.search-input:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(232, 180, 35, 0.25);
}

.prize-section {
  margin-bottom: 1.35rem;
  padding: 1rem 0.9rem 1.05rem;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(255, 248, 235, 0.88));
  border-top: 2px solid rgba(232, 180, 35, 0.55);
  border-bottom: 2px solid rgba(232, 180, 35, 0.25);
  animation: sectionIn 0.45s ease both;
}

@keyframes sectionIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prize-section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.seal {
  flex: 0 0 auto;
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: #5a3a00;
  background:
    radial-gradient(circle at 35% 30%, #fff1b0, transparent 45%),
    linear-gradient(160deg, var(--gold-light), var(--gold) 50%, var(--gold-deep));
  box-shadow:
    0 0 0 2px #f8e7a0,
    0 0 0 4px var(--gold-deep),
    0 6px 16px rgba(180, 120, 0, 0.28);
}

.prize-section-head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.prize-section-head p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.winner-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.winner-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px dashed rgba(201, 146, 14, 0.28);
  font-size: 0.92rem;
  animation: rowIn 0.35s ease both;
}

.winner-list li:last-child {
  border-bottom: 0;
}

.winner-list li.is-hit {
  background: rgba(232, 180, 35, 0.18);
  border-radius: 8px;
  border-bottom-color: transparent;
}

.winner-name {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.winner-phone {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.winner-empty,
.coming-soon {
  margin: 0.4rem 0 0;
  padding: 1.4rem 1rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.45);
  border: 1px dashed rgba(201, 146, 14, 0.4);
  border-radius: 12px;
}

.coming-soon strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: 0.1em;
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.more-btn {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem;
  border: 1.5px solid rgba(201, 146, 14, 0.55);
  border-radius: 999px;
  background: transparent;
  color: #7a5600;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.more-btn:hover,
.more-btn:focus-visible {
  background: rgba(232, 180, 35, 0.2);
  outline: none;
}

/* —— Prize guide —— */
.prize-guide {
  margin-bottom: 2.25rem;
}

.prize-block {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(201, 146, 14, 0.22);
}

.prize-block:last-child {
  border-bottom: 0;
}

.prize-copy h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 700;
}

.prize-copy p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.prize-meta {
  margin-top: 0.35rem !important;
  font-size: 0.78rem !important;
  color: #8a6a20 !important;
}

/* —— Schedule —— */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.schedule-col {
  padding: 0.95rem 0.75rem;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold) 2.4rem, rgba(255, 253, 248, 0.95) 2.4rem);
  border: 1px solid rgba(201, 146, 14, 0.35);
  border-radius: 14px;
}

.schedule-col h3 {
  margin: 0 0 0.85rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: #4a3000;
}

.schedule-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.schedule-col li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(201, 146, 14, 0.18);
  font-size: 0.78rem;
}

.schedule-col li:last-child {
  border-bottom: 0;
}

.schedule-col li span {
  color: var(--ink-soft);
}

.schedule-col li strong {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

/* —— Footer —— */
.footer {
  padding: 1.75rem 1.25rem 2.5rem;
  background:
    linear-gradient(180deg, transparent, rgba(243, 230, 207, 0.9)),
    var(--beige);
  text-align: center;
}

.footer-tagline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.social {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.social a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
}

.social a:hover {
  color: var(--kirin-red);
}

.footer-note {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.footer-copy {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #8a7a66;
}

@media (min-width: 480px) {
  .hero {
    border-radius: 0 0 28px 28px;
    overflow: hidden;
  }
}
