:root {
  --gistop-season-orange: #ff922e;
  --gistop-season-gold: #ffc857;
  --gistop-season-purple: #a84ed6;
  --gistop-season-pink: #e83f91;
  --gistop-season-mint: #61d7c6;
}

.gistop-season-message,
.gistop-season-stage,
.gistop-season-toggle {
  box-sizing: border-box;
}

.gistop-season-message {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(1180px, calc(100% - 28px));
  min-height: 48px;
  margin: 14px auto 0;
  padding: 10px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 162, 53, 0.48);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(75, 26, 90, 0.93), rgba(30, 12, 42, 0.96) 48%, rgba(102, 42, 25, 0.92));
  box-shadow: 0 12px 34px rgba(12, 5, 18, 0.32), inset 0 1px rgba(255, 255, 255, 0.08);
  color: #fff8e8;
  text-align: center;
}

.gistop-season-message::before,
.gistop-season-message::after {
  content: "✦";
  color: var(--gistop-season-gold);
  font-size: 1.15rem;
  animation: gistopSeasonSparkle 2.4s ease-in-out infinite;
}

.gistop-season-message strong {
  color: #fff;
  letter-spacing: 0.02em;
}

.gistop-season-message span {
  color: rgba(255, 244, 225, 0.8);
  font-size: 0.9rem;
}

.gistop-season-stage {
  position: fixed;
  inset: 0;
  z-index: 25;
  overflow: hidden;
  pointer-events: none;
}

.gistop-season-stage[hidden],
.gistop-season-message[hidden] {
  display: none !important;
}

.gistop-season-garland {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  height: 42px;
  padding: 0 2vw;
  border-top: 2px solid rgba(255, 200, 87, 0.72);
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.34));
}

.gistop-season-flag {
  position: relative;
  width: clamp(31px, 4vw, 52px);
  height: clamp(23px, 3vw, 37px);
  margin-top: 1px;
  transform-origin: 50% 0;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 74% 100%, 50% 80%, 26% 100%, 0 78%);
  background: var(--flag-color, var(--gistop-season-orange));
  opacity: 0.95;
  animation: gistopSeasonFlagWave 4.2s ease-in-out infinite;
  animation-delay: var(--flag-delay, 0s);
}

.gistop-season-flag::before {
  content: "";
  position: absolute;
  inset: 7px 9px 10px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
}

.gistop-season-petal {
  position: absolute;
  top: -26px;
  left: var(--petal-x, 50%);
  width: var(--petal-size, 10px);
  height: calc(var(--petal-size, 10px) * 0.62);
  border-radius: 90% 10% 90% 10%;
  background: linear-gradient(135deg, #ffd05d, #ff7b1a 60%, #e84c17);
  box-shadow: 0 0 8px rgba(255, 143, 30, 0.35);
  opacity: 0;
  animation: gistopSeasonPetalFall var(--petal-duration, 10s) linear infinite;
  animation-delay: var(--petal-delay, 0s);
}

.gistop-season-art {
  position: absolute;
  pointer-events: auto;
  opacity: 0.95;
}

.gistop-season-art[hidden] {
  display: none !important;
}

.gistop-season-art img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  filter: drop-shadow(0 11px 20px rgba(0, 0, 0, 0.46));
}

.gistop-season-art--bicycles {
  left: clamp(2px, 1vw, 16px);
  bottom: 66px;
  width: clamp(230px, 30vw, 430px);
  animation: gistopSeasonArtLeft 6.2s ease-in-out infinite;
}

.gistop-season-art--couple {
  right: clamp(2px, 1vw, 16px);
  bottom: 72px;
  width: clamp(215px, 26vw, 370px);
  animation: gistopSeasonArtRight 6.8s ease-in-out infinite;
}

.gistop-season-art-close {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid rgba(255, 207, 98, 0.92);
  border-radius: 50%;
  background: rgba(31, 12, 42, 0.96);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
  color: #fff8e8;
  font: 900 22px/1 system-ui, sans-serif;
  cursor: pointer;
}

.gistop-season-art-close:hover,
.gistop-season-art-close:focus-visible {
  background: #7b2c8f;
  border-color: #fff1b9;
  outline: 3px solid rgba(255, 200, 87, 0.32);
}

.gistop-season-toggle {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 72;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 174, 62, 0.62);
  border-radius: 999px;
  background: rgba(29, 13, 39, 0.92);
  box-shadow: 0 11px 30px rgba(0, 0, 0, 0.36);
  color: #fff8e8;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.gistop-season-toggle:hover,
.gistop-season-toggle:focus-visible {
  border-color: #ffd063;
  background: rgba(73, 28, 78, 0.96);
  outline: none;
  transform: translateY(-1px);
}

.gistop-season-toggle-icon {
  color: var(--gistop-season-orange);
  font-size: 1rem;
}

html.gistop-season-active .site-header {
  border-bottom-color: rgba(255, 144, 40, 0.42);
  box-shadow: 0 8px 34px rgba(83, 25, 96, 0.22);
}

@keyframes gistopSeasonFlagWave {
  0%, 100% { transform: perspective(120px) rotateY(-4deg) rotateZ(-1deg); }
  50% { transform: perspective(120px) rotateY(12deg) rotateZ(1deg); }
}

@keyframes gistopSeasonPetalFall {
  0% { opacity: 0; transform: translate3d(0, -8vh, 0) rotate(0deg); }
  8% { opacity: 0.88; }
  78% { opacity: 0.78; }
  100% { opacity: 0; transform: translate3d(var(--petal-drift, 45px), 108vh, 0) rotate(660deg); }
}

@keyframes gistopSeasonArtLeft {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-0.7deg); }
  50% { transform: translate3d(5px, -10px, 0) rotate(0.8deg); }
}

@keyframes gistopSeasonArtRight {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0.8deg); }
  50% { transform: translate3d(-6px, -11px, 0) rotate(-0.8deg); }
}

@keyframes gistopSeasonSparkle {
  0%, 100% { opacity: 0.5; transform: scale(0.78) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(22deg); }
}

@media (max-width: 760px) {
  .gistop-season-message {
    gap: 7px;
    width: calc(100% - 18px);
    min-height: 42px;
    margin-top: 9px;
    padding: 8px 11px;
  }

  .gistop-season-message span { display: none; }
  .gistop-season-garland { height: 27px; }
  .gistop-season-flag:nth-child(even) { display: none; }
  .gistop-season-art--bicycles { left: 2px; bottom: 54px; width: min(47vw, 185px); }
  .gistop-season-art--couple { right: 2px; bottom: 58px; width: min(45vw, 174px); }
  .gistop-season-art-close { top: -6px; right: -4px; width: 30px; height: 30px; font-size: 19px; }
  .gistop-season-petal:nth-of-type(n + 9) { display: none; }
  .gistop-season-toggle { left: 10px; bottom: 10px; min-height: 36px; padding: 7px 10px; }
  .gistop-season-toggle-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gistop-season-flag,
  .gistop-season-art,
  .gistop-season-message::before,
  .gistop-season-message::after { animation: none !important; }
  .gistop-season-petal { display: none !important; }
}

@media print {
  .gistop-season-message,
  .gistop-season-stage,
  .gistop-season-toggle { display: none !important; }
}
