/* Optional visual treatment adapted from the approved local design previews. */
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -30%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 36% 32% at 23% 28%, rgb(112 55 204 / 19%), transparent 72%),
    radial-gradient(ellipse 33% 30% at 79% 24%, rgb(0 210 235 / 14%), transparent 72%),
    radial-gradient(ellipse 33% 32% at 57% 84%, rgb(236 74 177 / 10%), transparent 72%);
  animation: advent-ambient-light 22s ease-in-out infinite alternate;
}

.av-main, .av-game-hud { position: relative; }

.av-section__head > .av-title,
.av-day-dialog__title {
  background: linear-gradient(95deg, #eaf2ff, var(--av-cyan), #e9bcff, var(--av-magenta), var(--av-gold), #eaf2ff);
  background-size: 320% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: advent-title-flow 13s linear infinite;
}

.av-day--today {
  border: 2px solid transparent;
  background:
    linear-gradient(140deg, #24203c, #11172d 75%) padding-box,
    conic-gradient(from var(--advent-edge-angle), #ffe38a, #00eaff, #9e6cff, #ffce58, #ffe38a) border-box;
  box-shadow: 0 0 20px rgb(255 216 96 / 22%), inset 0 0 22px rgb(255 216 96 / 7%);
  animation: advent-edge-turn 9s linear infinite, av-day-aura 5s ease-in-out infinite;
}

.av-game-hud {
  border: 1px solid transparent;
  background:
    linear-gradient(115deg, #19192d, #111526 43%, #1a1728) padding-box,
    conic-gradient(from var(--advent-edge-angle), rgb(255 210 74 / 58%), rgb(0 240 255 / 30%), rgb(255 43 214 / 28%), rgb(255 210 74 / 58%)) border-box;
  animation: advent-edge-turn 18s linear infinite;
}

.av-achievement-card:hover,
.av-feed-item--message:hover,
.av-card.task-row:hover {
  transform: translateY(-3px);
  border-color: rgb(255 210 74 / 55%);
  box-shadow: 0 13px 28px rgb(0 0 0 / 23%), 0 0 22px rgb(255 210 74 / 14%);
}

.av-feed-item--message, .av-card.task-row {
  transition: transform .28s var(--av-ease), border-color .28s, box-shadow .28s;
}

.av-tabs__link {
  position: relative;
  transition: color .25s, transform .25s, text-shadow .25s;
}
.av-tabs__link::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 0;
  left: 8%;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--av-cyan), var(--av-magenta), var(--av-gold), var(--av-cyan));
  background-size: 300% 100%;
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .25s, transform .25s;
}
.av-tabs__link:hover::after,
.av-tabs__link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
  animation: advent-title-flow 8s linear infinite;
}
.av-tabs__link:hover { transform: translateY(-2px); }
.av-tabs__link .av-nav-icon { transition: transform .28s, filter .28s; }
.av-tabs__link:hover .av-nav-icon,
.av-tabs__link.is-active .av-nav-icon {
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 0 6px rgb(0 240 255 / 48%));
}
.av-tabs__link--feed:hover .av-nav-icon,
.av-tabs__link--feed.is-active .av-nav-icon {
  filter: drop-shadow(0 0 8px rgb(255 214 108 / 75%));
}

.av-section__head { position: relative; }
.av-section__head::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgb(0 240 255 / 36%), rgb(255 210 74 / 12%), transparent);
}

@property --advent-edge-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes advent-ambient-light {
  from { transform: translate(-4%, -3%) rotate(-4deg); }
  to { transform: translate(5%, 4%) rotate(6deg); }
}
@keyframes advent-title-flow { to { background-position: 100% 0; } }
@keyframes advent-edge-turn { to { --advent-edge-angle: 360deg; } }

@media (max-width: 700px) {
  body::after { opacity: .72; animation-duration: 26s; }
  .av-tabs__link:hover { transform: none; }
  .av-section__head::after { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  body::after, .av-section__head > .av-title, .av-day-dialog__title,
  .av-day--today, .av-game-hud, .av-tabs__link::after { animation: none; }
}
