/* app:src/styles.css */
:root {
  --fir-900: #07150f;
  --fir-800: #0c2620;
  --fir-700: #12382d;
  --red: #c8343f;
  --red-dark: #9e2430;
  --gold: #e8c46c;
  --gold-light: #f6e2a6;
  --paper: #fbf3e2;
  --ink: #2a1e16;
  --muted: #6e5f52;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  font-family:
    "Nunito",
    system-ui,
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(
      120% 80% at 50% -10%,
      #1a4a3a 0%,
      var(--fir-800) 45%,
      var(--fir-900) 100%) fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.lights {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  justify-content: space-around;
  padding: 0 6px;
  padding-top: env(safe-area-inset-top);
}
.lights::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(env(safe-area-inset-top) + 2px);
  height: 2px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #2a4a3f 20%,
      #2a4a3f 80%,
      transparent);
}
.lights i {
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 55% 55%;
  margin-top: 4px;
  background: var(--gold);
  box-shadow: 0 0 10px 2px rgba(232, 196, 108, 0.7);
  animation: twinkle 1.9s ease-in-out infinite;
}
.lights i:nth-child(3n) {
  background: var(--red);
  box-shadow: 0 0 10px 2px rgba(200, 52, 63, 0.7);
}
.lights i:nth-child(4n) {
  background: #7fd1a8;
  box-shadow: 0 0 10px 2px rgba(127, 209, 168, 0.7);
}
@keyframes twinkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}
.page {
  position: relative;
  z-index: 2;
  max-width: 460px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
  background: rgba(251, 243, 226, 0.12);
  border: 1px solid rgba(246, 226, 166, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.tabs button {
  border: 0;
  background: none;
  color: var(--gold-light);
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}
.tabs button.on {
  background: var(--paper);
  color: var(--red);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.hint {
  margin: -4px 0 0;
  text-align: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}
.hero {
  text-align: center;
  color: var(--paper);
  padding: 18px 0 4px;
}
.hero h1 {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.8rem, 13vw, 4.2rem);
  line-height: 0.95;
  margin: 6px 0 10px;
  color: var(--gold-light);
  text-shadow: 0 6px 30px rgba(232, 196, 108, 0.35);
  animation: rise 0.8s cubic-bezier(0.2, 0.9, 0.2, 1.2) both;
}
.hero h1 span {
  display: block;
  font-size: 0.55em;
  color: var(--paper);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
}
.names {
  margin: 0;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.hero .kicker {
  color: var(--gold);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  animation: rise 0.55s cubic-bezier(0.2, 0.9, 0.2, 1.1) both;
}
.card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--radius) - 8px);
  border: 1px dashed rgba(200, 52, 63, 0.35);
  pointer-events: none;
}
.card h2 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.7rem;
  margin: 0 0 12px;
  line-height: 1.1;
}
.card .back {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 0;
  margin-bottom: 10px;
  cursor: pointer;
}
.status {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
}
.roster {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.roster li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f1e6cf;
  color: var(--muted);
  font-weight: 700;
}
.roster li.in {
  background: #e6f2ea;
  color: #1f5a3e;
}
.roster .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ded0b4;
  color: #fff;
  font-size: 0.85rem;
}
.roster li.in .dot {
  background: #2f7d5a;
}
.cta {
  display: block;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  background:
    linear-gradient(
      180deg,
      var(--red) 0%,
      var(--red-dark) 100%);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(158, 36, 48, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s;
}
.cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.35),
      transparent);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine {
  0%, 60% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}
.cta:active {
  transform: scale(0.97);
}
.cta:disabled {
  opacity: 0.7;
  cursor: wait;
}
.link {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  margin-top: 14px;
  cursor: pointer;
  text-decoration: underline;
  padding: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.rules ol {
  padding-left: 1.3em;
  margin: 0 0 12px;
  display: grid;
  gap: 10px;
  line-height: 1.45;
}
.rules li::marker {
  color: var(--red);
  font-weight: 800;
}
.fine {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 10px 0 0;
}
.fine b {
  color: var(--ink);
}
.faq {
  margin: 0 0 16px;
  display: grid;
  gap: 4px;
}
.faq dt {
  font-weight: 800;
  margin-top: 10px;
}
.faq dt:first-child {
  margin-top: 0;
}
.faq dd {
  margin: 0;
  line-height: 1.45;
  color: #4a3d33;
}
.fine.looked {
  margin: -6px 0 14px;
  text-align: center;
}
.who {
  display: grid;
  gap: 10px;
}
.name-btn {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  border: 2px solid #ead9b8;
  background: #fff8ea;
  font: inherit;
  color: var(--ink);
  transition: transform 0.15s, border-color 0.15s;
}
.name-btn.in {
  border-color: #2f7d5a;
  background: #eef7f0;
}
.name-btn:active {
  transform: scale(0.98);
}
.name-btn .big {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.name-btn .small {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}
.form {
  display: grid;
  gap: 14px;
}
.form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  font-size: 0.9rem;
}
.form input,
.form textarea {
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #ead9b8;
  background: #fff;
  color: var(--ink);
  width: 100%;
  resize: vertical;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(200, 52, 63, 0.15);
}
.alert {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fde4e4;
  color: #8a1d26;
  font-weight: 700;
  font-size: 0.9rem;
}
.reveal {
  text-align: center;
}
.gift {
  position: relative;
  width: 180px;
  height: 190px;
  margin: 10px auto 6px;
  display: block;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  animation: float 3s ease-in-out infinite;
}
.gift:disabled {
  cursor: default;
}
.gift .glow {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(
      circle,
      rgba(232, 196, 108, 0.55),
      rgba(232, 196, 108, 0) 65%);
  animation: pulse 2.2s ease-in-out infinite;
  pointer-events: none;
}
.gift .box {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 10px;
  height: 110px;
  border-radius: 8px;
  background:
    linear-gradient(
      180deg,
      #d13b47,
      var(--red-dark));
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(246, 226, 166, 0.5) 2px,
      transparent 3px),
    radial-gradient(
      circle at 70% 60%,
      rgba(246, 226, 166, 0.5) 2px,
      transparent 3px),
    radial-gradient(
      circle at 40% 85%,
      rgba(246, 226, 166, 0.5) 2px,
      transparent 3px),
    linear-gradient(
      180deg,
      #d13b47,
      var(--red-dark));
  box-shadow: inset 0 -12px 20px rgba(0, 0, 0, 0.25), 0 14px 30px rgba(0, 0, 0, 0.35);
}
.gift .ribbon {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 26px;
  transform: translateX(-50%);
  background:
    linear-gradient(
      90deg,
      #d4ad55,
      var(--gold-light),
      #d4ad55);
}
.gift .lid {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 112px;
  height: 34px;
  border-radius: 8px;
  background:
    linear-gradient(
      180deg,
      #dd4753,
      #b42a36);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  transform-origin: 20% 100%;
  transition: transform 0.7s cubic-bezier(0.3, 1.4, 0.4, 1), opacity 0.6s;
}
.gift .lid::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 26px;
  transform: translateX(-50%);
  background:
    linear-gradient(
      90deg,
      #d4ad55,
      var(--gold-light),
      #d4ad55);
}
.gift .bow {
  position: absolute;
  left: 50%;
  top: -26px;
  width: 70px;
  height: 34px;
  transform: translateX(-50%);
  background:
    radial-gradient(
      ellipse at 25% 50%,
      var(--gold-light) 0 38%,
      transparent 40%),
    radial-gradient(
      ellipse at 75% 50%,
      var(--gold-light) 0 38%,
      transparent 40%);
}
.gift .bow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #d4ad55;
}
.gift.shake {
  animation: shake 0.9s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
.gift.open {
  animation: none;
}
.gift.open .lid {
  transform: translateY(-120px) rotate(-28deg);
  opacity: 0;
}
.gift.open .glow {
  animation: burst 1s ease-out forwards;
}
.gift.open .box {
  animation: squash 0.5s ease-out;
}
.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sparkles i {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0;
  box-shadow: 0 0 8px 2px rgba(246, 226, 166, 0.8);
}
.gift.open .sparkles i {
  animation: spark 1.1s ease-out forwards;
  animation-delay: calc(var(--i) * 0.04s);
  transform: rotate(calc(var(--i) * 30deg));
}
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
@keyframes shake {
  10%, 90% {
    transform: translate3d(-2px, 0, 0) rotate(-2deg);
  }
  20%, 80% {
    transform: translate3d(4px, 0, 0) rotate(2deg);
  }
  30%, 50%, 70% {
    transform: translate3d(-7px, 0, 0) rotate(-4deg);
  }
  40%, 60% {
    transform: translate3d(7px, 0, 0) rotate(4deg);
  }
}
@keyframes burst {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}
@keyframes squash {
  0% {
    transform: scaleY(1);
  }
  30% {
    transform: scaleY(0.85) scaleX(1.08);
  }
  100% {
    transform: none;
  }
}
@keyframes spark {
  0% {
    opacity: 1;
    transform: rotate(calc(var(--i) * 30deg)) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: rotate(calc(var(--i) * 30deg)) translateY(-110px) scale(0.2);
  }
}
.result {
  animation: rise 0.7s 0.2s cubic-bezier(0.2, 0.9, 0.2, 1.1) both;
  margin-top: 4px;
}
.result .lead {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
}
.result .target {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3rem, 16vw, 4.6rem);
  line-height: 1;
  margin: 4px 0 16px;
  color: var(--red);
}
.result dl {
  text-align: left;
  margin: 0;
  display: grid;
  gap: 4px;
  background: #fff8ea;
  border-radius: 14px;
  padding: 14px 16px;
}
.result dt {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.result dt:first-child {
  margin-top: 0;
}
.result dd {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}
.waiting {
  margin: 0;
  background: #fff8ea;
  border-radius: 14px;
  padding: 14px 16px;
  line-height: 1.45;
  font-weight: 600;
  text-align: left;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
/*# sourceMappingURL=main.css.map */
