* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  overflow-y: scroll;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(ellipse at 15% 8%, rgba(60, 90, 150, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(40, 70, 130, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(30, 50, 100, 0.45) 0%, transparent 60%),
    linear-gradient(180deg, #050b1c 0%, #0a1730 30%, #0f2544 55%, #142a4a 75%, #0a1730 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: 'Nunito', system-ui, sans-serif;
  color: #e8eef8;
  overflow-x: hidden;
}

.as-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.as-star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  animation-name: as-twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: opacity, transform;
  box-shadow: 0 0 4px rgba(200, 220, 255, 0.8);
}

@keyframes as-twinkle {

  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.7);
  }

  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

.as-moon {
  position: fixed;
  top: 60px;
  right: 70px;
  width: 90px;
  height: 90px;
  z-index: 0;
  pointer-events: none;
  animation: as-moon-glow 6s ease-in-out infinite;
  will-change: filter;
}

.as-moon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* Brilhinhos em volta da lua */
.as-moon-sparkle {
  position: absolute;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px rgba(255, 236, 179, 0.95),
    0 0 18px rgba(255, 202, 40, 0.75),
    0 0 28px rgba(255, 202, 40, 0.40);
  animation: as-moon-sparkle-twinkle 2.4s ease-in-out infinite;
  transform-origin: center;
  will-change: opacity, transform;
}

.as-moon-sparkle--lg {
  font-size: 20px;
}

.as-moon-sparkle--sm {
  font-size: 10px;
}

@keyframes as-moon-sparkle-twinkle {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(0deg);
  }

  40% {
    opacity: 1;
    transform: scale(1.15) rotate(20deg);
  }

  70% {
    opacity: 0.6;
    transform: scale(0.9) rotate(-10deg);
  }
}

@keyframes as-moon-glow {

  0%,
  100% {
    filter:
      drop-shadow(0 0 18px rgba(255, 236, 179, 0.55)) drop-shadow(0 0 45px rgba(255, 224, 130, 0.35)) drop-shadow(0 0 90px rgba(255, 202, 40, 0.20));
  }

  50% {
    filter:
      drop-shadow(0 0 26px rgba(255, 236, 179, 0.85)) drop-shadow(0 0 60px rgba(255, 224, 130, 0.55)) drop-shadow(0 0 120px rgba(255, 202, 40, 0.35));
  }
}

@media (max-width: 600px) {
  .as-moon {
    width: 60px;
    height: 60px;
    top: 30px;
    right: 30px;
  }
}

.as-snowfall {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.as-snowfall-flake {
  position: absolute;
  top: -12vh;
  animation-name: as-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
  pointer-events: none;
}

.as-snowflake {
  display: inline-block;
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(200, 225, 255, 0.95),
    0 0 14px rgba(140, 180, 255, 0.55);
  animation-name: as-sway;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  user-select: none;
  line-height: 1;
  will-change: transform;
}

.as-snowflake--back {
  opacity: 0.55;
  filter: blur(1.2px);
}

.as-snowflake--mid {
  opacity: 0.88;
}

.as-snowflake--front {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(180, 215, 255, 0.9));
}

@keyframes as-fall {
  0% {
    transform: translate3d(0, -12vh, 0);
  }

  100% {
    transform: translate3d(3vw, 118vh, 0);
  }
}

@keyframes as-sway {
  0% {
    transform: translateX(calc(var(--sway, 20px) * -1)) rotate(-18deg);
  }

  100% {
    transform: translateX(var(--sway, 20px)) rotate(18deg);
  }
}

@keyframes as-draw-glow {

  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(255, 213, 79, 0.9),
      0 0 0 6px rgba(255, 213, 79, 0.15),
      0 0 28px rgba(67, 160, 71, 0.55),
      0 10px 38px rgba(27, 94, 32, 0.7),
      inset 0 2px 0 rgba(255, 255, 255, 0.18),
      inset 0 -4px 14px rgba(0, 0, 0, 0.4);
  }

  50% {
    box-shadow:
      0 0 0 2px rgba(255, 224, 130, 1),
      0 0 0 8px rgba(255, 213, 79, 0.25),
      0 0 48px rgba(102, 187, 106, 0.9),
      0 10px 42px rgba(27, 94, 32, 0.8),
      inset 0 2px 0 rgba(255, 255, 255, 0.22),
      inset 0 -4px 14px rgba(0, 0, 0, 0.4);
  }
}

@keyframes as-draw-shine {
  0% {
    left: -80%;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  60% {
    left: 130%;
    opacity: 0;
  }

  100% {
    left: 130%;
    opacity: 0;
  }
}

@keyframes as-draw-icon-bounce {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-4px) rotate(-10deg);
  }
}

.as-draw-icon {
  display: inline-block;
  font-size: 1.3rem;
  animation: as-draw-icon-bounce 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255, 213, 79, 0.7));
}

.as-draw-icon:last-child {
  animation-delay: 0.4s;
}

/* ============================================================
   TELA DE REVELAÇÃO — cartão de Natal aconchegante
   ============================================================ */
.as-reveal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 200, 87, 0.10) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(30, 70, 50, 0.35) 0%, transparent 60%),
    linear-gradient(180deg, rgba(4, 10, 22, 0.97) 0%, rgba(8, 22, 40, 0.98) 50%, rgba(4, 10, 22, 0.99) 100%);
  animation: as-reveal-fade-in 0.7s ease-out;
}

@keyframes as-reveal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Cartão central */
.as-reveal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 200, 87, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(12, 40, 30, 0.92) 0%, rgba(8, 24, 38, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.10),
    0 0 0 6px rgba(8, 22, 40, 0.6),
    0 30px 80px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 236, 179, 0.10);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  animation: as-reveal-card-in 0.9s cubic-bezier(.2, .8, .3, 1) both;
}

@keyframes as-reveal-card-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Fio de estrelinhas no topo */
.as-reveal-garland {
  display: flex;
  gap: 14px;
  color: #ffd54f;
  font-size: 1.1rem;
  line-height: 1;
  margin-bottom: 18px;
  opacity: 0.85;
  text-shadow:
    0 0 6px rgba(255, 213, 79, 0.85),
    0 0 14px rgba(255, 202, 40, 0.55);
}

.as-reveal-garland span {
  display: inline-block;
  animation: as-reveal-glow-soft 3.2s ease-in-out infinite;
}

.as-reveal-garland span:nth-child(2) {
  animation-delay: 0.4s;
}

.as-reveal-garland span:nth-child(3) {
  animation-delay: 0.8s;
}

.as-reveal-garland span:nth-child(4) {
  animation-delay: 1.2s;
}

.as-reveal-garland span:nth-child(5) {
  animation-delay: 1.6s;
}

@keyframes as-reveal-glow-soft {

  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.94);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

/* Saudação */
.as-reveal-greeting {
  font-family: 'Mountains of Christmas', cursive;
  color: #a5d6a7;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin: 0;
  text-shadow: 0 0 14px rgba(165, 214, 167, 0.4);
  animation: as-reveal-fade-up 0.7s ease-out 0.15s both;
}

/* "Você tirou" */
.as-reveal-title {
  font-family: 'Mountains of Christmas', cursive;
  color: #e8c46a;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  letter-spacing: 2px;
  margin: 4px 0 6px;
  text-shadow: 0 0 16px rgba(232, 196, 106, 0.45);
  animation: as-reveal-fade-up 0.7s ease-out 0.25s both;
}

/* Nome revelado — dourado quente, sem pulso */
.as-reveal-name {
  font-family: 'Mountains of Christmas', cursive;
  font-weight: 700;
  color: #f4d67a;
  font-size: clamp(3rem, 12vw, 6.5rem);
  line-height: 1.05;
  margin: 4px 0;
  padding: 4px 12px;
  letter-spacing: 1px;
  word-break: break-word;
  text-shadow:
    0 0 24px rgba(255, 213, 79, 0.55),
    0 0 55px rgba(255, 202, 40, 0.25),
    0 3px 6px rgba(0, 0, 0, 0.55);
  animation:
    as-reveal-name-in 1s cubic-bezier(.2, .8, .3, 1) 0.4s both,
    as-reveal-name-shimmer 5s ease-in-out 1.4s infinite;
}

@keyframes as-reveal-name-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes as-reveal-name-shimmer {

  0%,
  100% {
    text-shadow:
      0 0 24px rgba(255, 213, 79, 0.55),
      0 0 55px rgba(255, 202, 40, 0.25),
      0 3px 6px rgba(0, 0, 0, 0.55);
  }

  50% {
    text-shadow:
      0 0 32px rgba(255, 226, 130, 0.75),
      0 0 70px rgba(255, 202, 40, 0.40),
      0 3px 6px rgba(0, 0, 0, 0.55);
  }
}

/* Divisor com flocos */
.as-reveal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 60%;
  max-width: 320px;
  margin: 14px 0 6px;
  color: #90caf9;
  font-size: 0.85rem;
  opacity: 0.7;
  animation: as-reveal-fade-up 0.7s ease-out 0.6s both;
}

.as-reveal-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(165, 214, 167, 0.5), transparent);
}

/* Subtítulo */
.as-reveal-subtitle {
  font-family: 'Mountains of Christmas', cursive;
  color: #a5d6a7;
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  letter-spacing: 1px;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 0 12px rgba(165, 214, 167, 0.35);
  animation: as-reveal-fade-up 0.7s ease-out 0.7s both;
}

/* Dica */
.as-reveal-hint {
  color: #a8bdd6;
  font-size: clamp(0.85rem, 1.9vw, 1rem);
  margin: 16px 0 4px;
  animation: as-reveal-fade-up 0.7s ease-out 0.85s both;
}

.as-reveal-close-btn {
  margin-top: 22px;
  animation: as-reveal-fade-up 0.7s ease-out 1s both;
}

@keyframes as-reveal-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .as-reveal {
    padding: 16px;
  }

  .as-reveal-card {
    border-radius: 18px;
    padding: 32px 22px;
  }
}

/* Lista de links do resultado */
.as-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.as-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(129, 199, 132, 0.3);
  border-radius: 10px;
  flex-wrap: wrap;
}

.as-link-item .as-link-name {
  font-weight: 700;
  color: #a5d6a7;
}

/* ============================================================
       TELA DE LOGIN
   ============================================================ */
.as-login {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.as-login-flash {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(198, 40, 40, 0.10) 0%, rgba(198, 40, 40, 0.60) 100%);
  animation: as-login-flash .8s ease-out forwards;
}

@keyframes as-login-flash {
  0% {
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.as-login-card {
  position: relative;
  z-index: 41;
  width: 100%;
  max-width: 432px;
  padding: 34px 30px 26px;
  border-radius: 22px;
  border: 1px solid rgba(165, 214, 167, 0.28);
  background: linear-gradient(180deg, rgba(15, 30, 55, 0.88) 0%, rgba(9, 20, 42, 0.94) 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color .3s ease, box-shadow .3s ease;
  will-change: transform;
}

.as-login-card.is-error {
  border-color: rgba(239, 83, 80, 0.9);
  box-shadow:
    0 0 0 1px rgba(239, 83, 80, 0.45),
    0 0 55px rgba(239, 83, 80, 0.45),
    0 24px 70px rgba(0, 0, 0, 0.6);
}

.as-login-error,
.as-login-notice {
  animation: as-login-msg-in .35s ease-out both;
}

@keyframes as-login-msg-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .as-login-card {
    padding: 26px 20px 20px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .as-snowfall-flake,
  .as-snowflake,
  .as-star,
  .as-moon,
  .as-draw-icon,
  .as-reveal-garland span,
  .as-reveal-name,
  .as-reveal-title,
  .as-reveal-greeting,
  .as-reveal-subtitle,
  .as-reveal-hint,
  .as-reveal-divider,
  .as-reveal-close-btn,
  .as-login-flash,
  .as-login-error,
  .as-login-notice {
    animation: none !important;
  }

  .as-snowfall,
  .as-login-flash {
    display: none;
  }

  .as-moon-sparkle {
    animation: none !important;
    opacity: 0.9;
    transform: none !important;
  }
}

.as-giver-cell {
  padding: 0 14px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(46, 125, 50, 0.28), rgba(46, 125, 50, 0.14));
  border: 1px solid rgba(129, 199, 132, 0.4);
  border-radius: 10px;
  color: #a5d6a7;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.as-receiver-cell {
  padding: 0 14px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(198, 40, 40, 0.18);
  border: 1.5px solid rgba(239, 83, 80, 0.55);
  border-radius: 10px;
  color: #ff8a80;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: grab;
  user-select: none;
  transition: all .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.as-receiver-cell:hover {
  border-color: #ef5350;
  box-shadow: 0 2px 10px rgba(239, 83, 80, 0.35);
  background: rgba(198, 40, 40, 0.28);
}

.as-receiver-cell:active {
  cursor: grabbing;
}

.as-receiver-cell.sortable-ghost {
  opacity: 0.35;
  background: rgba(198, 40, 40, 0.35);
  border-style: dashed;
}

.as-receiver-cell.sortable-chosen {
  box-shadow: 0 10px 28px rgba(239, 83, 80, 0.5);
  transform: scale(1.02);
}

.as-arrow-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  color: #ff8a80;
  font-size: 1.2rem;
  font-weight: 700;
}

.as-footer-deco {
  text-align: center;
  margin-top: 40px;
  padding: 20px 0 40px;
  font-size: 1.9rem;
  letter-spacing: 14px;
  filter: drop-shadow(0 0 10px rgba(180, 215, 255, 0.4));
}

@media (max-width: 600px) {
  .as-footer-deco {
    font-size: 1.3rem;
    letter-spacing: 6px;
  }
}

.as-participants-section {
  border-radius: 20px !important;
}

.as-years-section {
  border-radius: 20px !important;
}

.as-draw-section {
  border-radius: 20px !important;
}

.as-header-icon {
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.as-years-title {
  user-select: none;
}

/* ============================================================
   BOTÃO DE LOGOUT (flutuante, canto superior esquerdo)
   ============================================================ */
.as-logout-wrap {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 10;
}

.as-logout-btn {
  border-radius: 10px !important;
  background: rgba(15, 30, 55, 0.72) !important;
  color: #ff8a80 !important;
  border: 1px solid rgba(239, 83, 80, 0.45) !important;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  padding: 6px 14px !important;
  text-transform: none !important;
  letter-spacing: 0.3px;
  transition: all 0.25s ease !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.as-logout-btn:hover {
  background: rgba(198, 40, 40, 0.22) !important;
  border-color: #ef5350 !important;
  color: #ffcdd2 !important;
  box-shadow:
    0 0 20px rgba(239, 83, 80, 0.5),
    0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.as-logout-btn:active {
  transform: translateY(0);
}

.as-logout-btn .MuiButton-startIcon {
  margin-right: 6px;
}

@media (max-width: 600px) {
  .as-logout-wrap {
    top: 12px;
    left: 12px;
  }

  .as-logout-btn {
    padding: 5px 10px !important;
    font-size: 0.78rem !important;
  }
}

/* ============================================================
   BOTÃO SORTEAR
   ============================================================ */
.as-draw-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* Globinho do sorteio, ao lado esquerdo do botão */
.as-draw-ball {
  width: clamp(48px, 9vw, 78px);
  height: auto;
  flex: 0 0 auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 0 10px rgba(255, 213, 79, 0.55)) drop-shadow(0 0 22px rgba(102, 187, 106, 0.35));
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.4);
  transform-origin: 50% 50%;
}

.as-draw-row:hover .as-draw-ball {
  transform: scale(1.08) rotate(-6deg);
}

.as-draw-ball.is-spinning {
  animation: as-ball-spin 1.4s linear infinite;
}

@keyframes as-ball-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.as-draw-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.as-draw-btn-label {
  flex: 0 1 auto;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .as-draw-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .as-draw-ball {
    width: 56px;
  }
}


/* ============================================================
   PAPAI NOEL VOADOR MÁGICO (vai e volta no fundo)
   ============================================================ */
.as-santa-fly {
  position: fixed;
  left: 0;
  z-index: 1;
  pointer-events: none;
  animation: as-santa-fly-across var(--fly-duration, 22s) linear forwards;
  will-change: transform;
}

.as-santa-flip {
  position: relative;
  width: var(--santa-size, 280px);
  aspect-ratio: 3 / 1;
  transform-origin: center;
  animation: as-santa-flip var(--fly-duration, 22s) linear forwards;
  will-change: transform;
}

.as-santa-flip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  animation: as-santa-bob 1.8s ease-in-out infinite;
  filter: blur(0.8px);
}

.as-santa-sparkle {
  position: absolute;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px rgba(255, 236, 179, 0.95),
    0 0 18px rgba(255, 202, 40, 0.75),
    0 0 28px rgba(255, 202, 40, 0.40);
  animation: as-moon-sparkle-twinkle 2.4s ease-in-out infinite;
  transform-origin: center;
  will-change: opacity, transform;
}

.as-santa-sparkle--lg {
  font-size: 20px;
}

.as-santa-sparkle--sm {
  font-size: 10px;
}


@keyframes as-santa-fly-across {

  /* 0%-50%: voa da direita p/ esquerda (Noel espelhado) -> sinais dos ângulos invertidos
     50%-100%: voa da esquerda p/ direita (orientação original) */
  0% {
    transform: translate3d(110vw, 0, 0) rotate(0deg);
  }

  6.25% {
    transform: translate3d(90vw, -18vh, 0) rotate(13deg);
  }

  12.5% {
    transform: translate3d(70vw, -32vh, 0) rotate(14deg);
  }

  18.75% {
    transform: translate3d(50vw, -40vh, 0) rotate(7deg);
  }

  25% {
    transform: translate3d(30vw, -42vh, 0) rotate(0deg);
  }

  31.25% {
    transform: translate3d(10vw, -40vh, 0) rotate(-7deg);
  }

  37.5% {
    transform: translate3d(-10vw, -32vh, 0) rotate(-14deg);
  }

  43.75% {
    transform: translate3d(-30vw, -18vh, 0) rotate(-16deg);
  }

  50% {
    transform: translate3d(-50vw, 0, 0) rotate(0deg);
  }

  56.25% {
    transform: translate3d(-30vw, -18vh, 0) rotate(-13deg);
  }

  62.5% {
    transform: translate3d(-10vw, -32vh, 0) rotate(-14deg);
  }

  68.75% {
    transform: translate3d(10vw, -40vh, 0) rotate(-7deg);
  }

  75% {
    transform: translate3d(30vw, -42vh, 0) rotate(0deg);
  }

  81.25% {
    transform: translate3d(50vw, -40vh, 0) rotate(7deg);
  }

  87.5% {
    transform: translate3d(70vw, -32vh, 0) rotate(14deg);
  }

  93.75% {
    transform: translate3d(90vw, -18vh, 0) rotate(16deg);
  }

  100% {
    transform: translate3d(110vw, 0, 0) rotate(0deg);
  }
}


@keyframes as-santa-flip {

  0%,
  45% {
    transform: scaleX(-1);
  }

  50% {
    transform: scaleX(0.05);
  }

  55%,
  100% {
    transform: scaleX(1);
  }
}

@keyframes as-santa-bob {

  0%,
  100% {
    transform: translateY(-4px) rotate(-1deg);
  }

  50% {
    transform: translateY(4px) rotate(1deg);
  }
}



@media (max-width: 600px) {
  .as-santa-flip {
    width: calc(var(--santa-size, 280px) * 0.70);
  }

  .as-santa-flip::after {
    width: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .as-santa-fly,
  .as-santa-flip,
  .as-santa-flip img,
  .as-santa-flip::after {
    animation: none !important;
  }

  .as-santa-fly {
    display: none;
  }
}

/* ============================================================
   SCROLLBAR NATALINA
   ============================================================ */

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #1e3a5f rgba(5, 11, 28, 0.95);
}

/* Chrome / Edge / Safari */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(5, 11, 28, 0.95) 0%, rgba(10, 23, 48, 0.95) 100%);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.7);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background:
    linear-gradient(180deg, #2c5178 0%, #1e3a5f 45%, #16293f 100%);
  border: 2px solid rgba(5, 11, 28, 0.95);
  background-clip: padding-box;
  box-shadow:
    inset 0 0 6px rgba(140, 180, 255, 0.15),
    0 0 8px rgba(30, 58, 95, 0.6);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, #4a7ba8 0%, #2c5178 45%, #1e3a5f 100%);
  box-shadow:
    inset 0 0 8px rgba(180, 215, 255, 0.3),
    0 0 14px rgba(74, 123, 168, 0.7),
    0 0 22px rgba(30, 58, 95, 0.5);
}

::-webkit-scrollbar-thumb:active {
  background:
    linear-gradient(180deg, #6b9dc9 0%, #2c5178 50%, #1e3a5f 100%);
}

/* Cantinho entre barras (horizontal + vertical) */
::-webkit-scrollbar-corner {
  background: rgba(5, 11, 28, 0.95);
}

/* Esconde os botõezinhos de seta */
::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}

/* ============================================================
   INPUTS NUMÉRICOS
   ============================================================ */

/* Remove as setinhas de TODOS os inputs number do site */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  /* Firefox antigo */
  appearance: textfield;
  /* Firefox novo + padrão */
}

/* Estilo unificado dos inputs de ano (histórico + sorteio) */
.as-year-name-input .MuiOutlinedInput-root,
.as-next-year-input .MuiOutlinedInput-root {
  border-radius: 12px;
  background-color: rgba(5, 11, 28, 0.55);
}

/* Borda padrão */
.as-year-name-input .MuiOutlinedInput-notchedOutline,
.as-next-year-input .MuiOutlinedInput-notchedOutline {
  border-color: rgba(165, 214, 167, 0.35);
  border-width: 1.5px;
}

/* Borda no hover */
.as-year-name-input .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline,
.as-next-year-input .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: rgba(165, 214, 167, 0.6);
}

/* Borda quando focado */
.as-year-name-input .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline,
.as-next-year-input .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #66bb6a;
  border-width: 1.5px;
  box-shadow: 0 0 0 4px rgba(102, 187, 106, 0.14);
}

/* Cor do texto digitado */
.as-year-name-input .MuiOutlinedInput-input,
.as-next-year-input .MuiOutlinedInput-input {
  color: #e8eef8;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Label "Ano" em verde natalino */
.as-year-name-input .MuiInputLabel-root,
.as-next-year-input .MuiInputLabel-root {
  color: #a5d6a7;
  font-weight: 700;
}

.as-year-name-input .MuiInputLabel-root.Mui-focused,
.as-next-year-input .MuiInputLabel-root.Mui-focused {
  color: #81c784;
}

/* Seleção de texto dentro do input (fica verde em vez do azul padrão) */
.as-year-name-input input::selection,
.as-next-year-input input::selection {
  background: rgba(102, 187, 106, 0.45);
  color: #ffffff;
}