:root {
  --bg: #06140d;
  --bg-deep: #020705;
  --leaf: #123d24;
  --leaf-hi: #42d86d;
  --mint: #b9ffd0;
  --glow: #7bff91;
  --text: #f7fff7;
  --muted: #b6c9b8;
  --panel: rgba(2, 15, 9, 0.78);
  --line: rgba(185, 255, 208, 0.2);
  --danger: #a6313a;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
  --script: "Great Vibes", cursive;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color: var(--text);
  background: var(--bg-deep);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(123, 255, 145, 0.24), transparent 17rem),
    radial-gradient(circle at 50% 8%, rgba(185, 255, 208, 0.16), transparent 28rem),
    linear-gradient(180deg, #071b10 0%, #020604 56%, #041009 100%);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.app {
  position: relative;
  z-index: 1;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(28rem, calc(100% - 2rem));
  display: flex;
  justify-content: center;
  margin: 0 auto 1.2rem;
  padding: 0 0 1.2rem;
  font-size: 0.86rem;
}

.admin-access {
  position: relative;
  width: 100%;
  min-height: 3.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  color: var(--mint);
  background:
    linear-gradient(135deg, rgba(185, 255, 208, 0.13), rgba(123, 255, 145, 0.04)),
    rgba(2, 15, 9, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), inset 0 0 24px rgba(123, 255, 145, 0.08);
  font-weight: 900;
  text-decoration: none;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.admin-access::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(185, 255, 208, 0.16), transparent);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.admin-access:hover {
  border-color: rgba(185, 255, 208, 0.42);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42), 0 0 28px rgba(123, 255, 145, 0.18);
  transform: translateY(-2px);
}

.admin-access:hover::before {
  transform: translateX(120%);
}

.admin-access span {
  position: relative;
  width: 0.72rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 16px rgba(123, 255, 145, 0.78);
}

.admin-access strong {
  position: relative;
  z-index: 1;
}

.hero,
.details {
  position: relative;
  width: 100%;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  place-items: center;
  gap: 1rem;
  overflow: hidden;
}

.intro-copy {
  width: min(100%, 32rem);
  text-align: center;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.7);
}

.top-line {
  display: block;
  width: 8.2rem;
  height: 2px;
  margin: 0 auto 0.6rem;
  background: linear-gradient(90deg, transparent, #fff, transparent);
}

.date-pill {
  margin: 0;
  font-size: clamp(1.4rem, 5.4vw, 2.2rem);
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 25rem;
  margin: 0.7rem auto 0;
  color: rgba(247, 255, 247, 0.84);
  font-size: clamp(1rem, 3.6vw, 1.25rem);
  font-weight: 900;
  text-transform: uppercase;
}

.leaf {
  position: absolute;
  width: clamp(7rem, 22vw, 14rem);
  aspect-ratio: 1 / 1.35;
  border-radius: 12% 78% 18% 76%;
  background:
    linear-gradient(52deg, transparent 48%, rgba(185, 255, 208, 0.34) 49%, transparent 51%),
    radial-gradient(circle at 35% 28%, rgba(100, 255, 128, 0.45), transparent 18%),
    linear-gradient(135deg, #03100a 0%, #0b2f1a 48%, #2e8a44 100%);
  box-shadow: inset 18px -24px 40px rgba(0, 0, 0, 0.38), 0 18px 36px rgba(0, 0, 0, 0.4);
  opacity: 0.95;
  filter: saturate(1.16);
}

.leaf::before,
.leaf::after {
  content: "";
  position: absolute;
  inset: 18% 24%;
  border-left: 1px solid rgba(185, 255, 208, 0.24);
  transform: rotate(24deg);
}

.leaf::after {
  inset: 36% 48% 10% 14%;
  transform: rotate(-48deg);
}

.leaf-a { top: -3rem; left: -2rem; transform: rotate(132deg); }
.leaf-b { top: -2rem; right: -2.4rem; transform: rotate(222deg); }
.leaf-c { top: 25%; left: -4rem; transform: rotate(84deg); }
.leaf-d { top: 31%; right: -4.2rem; transform: rotate(258deg); }
.leaf-e { bottom: -2.7rem; left: -1.5rem; transform: rotate(35deg); }
.leaf-f { bottom: -2rem; right: -1.8rem; transform: rotate(310deg); }

.envelope-stage {
  position: relative;
  width: min(88vw, 31rem);
  min-height: clamp(29rem, 72vw, 39rem);
  display: grid;
  place-items: end center;
  perspective: 1200px;
}

.envelope {
  position: relative;
  z-index: 4;
  width: min(100%, 30rem);
  aspect-ratio: 1.58 / 1;
  cursor: pointer;
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.58));
  transition: transform 600ms ease;
}

.envelope:hover {
  transform: translateY(-0.45rem);
}

.envelope-back,
.envelope-front,
.envelope-flap {
  position: absolute;
  inset: 0;
  border-radius: 0.55rem;
}

.envelope-back {
  background: linear-gradient(145deg, #12351f, #030906 70%);
  border: 1px solid rgba(185, 255, 208, 0.2);
}

.envelope-front {
  z-index: 3;
  clip-path: polygon(0 28%, 50% 74%, 100% 28%, 100% 100%, 0 100%);
  background: linear-gradient(155deg, rgba(5, 27, 14, 0.98), rgba(0, 5, 3, 0.98));
  box-shadow: inset 0 0 54px rgba(123, 255, 145, 0.08);
}

.envelope-flap {
  z-index: 5;
  clip-path: polygon(0 0, 100% 0, 50% 65%);
  transform-origin: top center;
  transform: translateZ(46px) rotateX(0);
  background: linear-gradient(180deg, #1b4a2b, #030806 84%);
  transition: transform 1200ms cubic-bezier(0.18, 0.9, 0.26, 1);
}

.seal {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 45%;
  width: clamp(4.8rem, 15vw, 6.6rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06140d;
  background: radial-gradient(circle, #e8ffdd 0 42%, #7bff91 60%, #1c6d34 100%);
  box-shadow: 0 0 26px rgba(123, 255, 145, 0.84), 0 0 0 0.45rem rgba(123, 255, 145, 0.15);
  transform: translate(-50%, -50%);
  transition: opacity 420ms ease, transform 520ms ease, filter 520ms ease;
}

.seal span {
  font-size: 2.7rem;
  font-weight: 900;
}

.flyer-card {
  position: absolute;
  z-index: 2;
  bottom: 16%;
  width: min(94%, 31rem);
  height: min(88vh, 43rem);
  min-height: 36rem;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(185, 255, 208, 0.42);
  border-radius: 1rem;
  background: #041009;
  box-shadow: var(--shadow), 0 0 54px rgba(123, 255, 145, 0.24);
  opacity: 0;
  transform: translateY(34%) rotateX(24deg) rotateZ(-2deg) scale(0.92);
  transition: opacity 700ms ease 520ms, transform 1350ms cubic-bezier(0.18, 0.9, 0.24, 1) 380ms;
}

.poster-preview {
  position: relative;
  min-height: 30rem;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 58%, rgba(185, 255, 208, 0.92) 0 26%, rgba(123, 255, 145, 0.45) 27% 38%, transparent 39%),
    radial-gradient(circle at 50% 58%, rgba(123, 255, 145, 0.5), transparent 43%),
    linear-gradient(180deg, #0a2214, #020604);
}

.poster-preview::after {
  content: "";
  position: absolute;
  inset: 0.8rem;
  z-index: 1;
  border: 1px solid rgba(232, 255, 221, 0.22);
  border-radius: 0.72rem;
  pointer-events: none;
  box-shadow: inset 0 0 42px rgba(123, 255, 145, 0.08);
}

.poster-preview::before {
  content: "";
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(14, 82, 36, 0.9) 0 9%, transparent 10%),
    radial-gradient(ellipse at 88% 18%, rgba(14, 82, 36, 0.9) 0 10%, transparent 11%),
    radial-gradient(ellipse at 8% 76%, rgba(14, 82, 36, 0.9) 0 10%, transparent 11%),
    radial-gradient(ellipse at 90% 76%, rgba(14, 82, 36, 0.9) 0 11%, transparent 12%);
  filter: blur(1px);
}

.ticket-top {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.poster-date,
.ticket-label {
  font-weight: 900;
}

.ticket-label {
  max-width: 8.5rem;
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(185, 255, 208, 0.22);
  border-radius: 999px;
  color: var(--mint);
  background: rgba(0, 8, 5, 0.34);
  font-size: 0.68rem;
  text-align: center;
  text-transform: uppercase;
}

.neon-ring {
  position: relative;
  z-index: 2;
  width: min(17rem, 76vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
}

.neon-ring strong {
  color: rgba(247, 255, 247, 0.9);
  font-size: clamp(7rem, 32vw, 12rem);
  line-height: 0.8;
  font-weight: 900;
}

.neon-ring em {
  position: absolute;
  color: #030806;
  font-family: var(--script);
  font-size: clamp(4.8rem, 20vw, 8rem);
  font-style: normal;
  line-height: 1;
}

.poster-preview p {
  position: absolute;
  z-index: 2;
  bottom: 1.2rem;
  max-width: 18rem;
  color: #07120b;
  font-weight: 900;
  text-align: center;
}

.poster-details {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(4, 16, 9, 0.78), rgba(1, 7, 4, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(123, 255, 145, 0.16), transparent 18rem);
  border-top: 1px solid rgba(185, 255, 208, 0.2);
  text-align: center;
}

.poster-kicker {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.poster-details strong {
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1;
}

.ticket-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.ticket-meta span {
  display: grid;
  gap: 0.16rem;
  padding: 0.72rem;
  border: 1px solid rgba(185, 255, 208, 0.16);
  border-radius: 0.6rem;
  background: rgba(123, 255, 145, 0.07);
}

.ticket-meta b {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1;
}

.ticket-meta small,
.ticket-location {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.ticket-location {
  max-width: 23rem;
  margin: 0 auto;
}

.hero.opened .seal {
  opacity: 0;
  filter: blur(5px);
  transform: translate(-50%, -50%) scale(1.9) rotate(22deg);
}

.hero.opened .envelope-flap {
  transform: translateZ(36px) rotateX(178deg);
}

.hero.opened .envelope {
  transform: translateY(8.8rem) scale(0.93);
}

.hero.opened .flyer-card {
  z-index: 7;
  opacity: 1;
  transform: translateY(-45%) rotateX(0deg) rotateZ(1deg) scale(1);
}

.hero.leaving .flyer-card {
  opacity: 0;
  transform: translateY(-88%) rotateX(0deg) rotateZ(0deg) scale(1.08);
  transition: opacity 520ms ease, transform 760ms cubic-bezier(0.2, 0.84, 0.24, 1);
}

.hero.leaving .leaf {
  opacity: 0.38;
  transition: opacity 520ms ease;
}

.hero.opened #openButton {
  opacity: 0;
  pointer-events: none;
}

.btn {
  min-height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-glow {
  color: #031006;
  background: linear-gradient(135deg, #e4ffe8, #7bff91 48%, #24a84e);
  box-shadow: 0 0 24px rgba(123, 255, 145, 0.46);
}

.btn-dark {
  width: 100%;
  background: #041009;
  border: 1px solid var(--line);
}

.btn-danger {
  width: 100%;
  background: var(--danger);
}

.admin-page {
  min-height: 100vh;
}

.admin-shell {
  width: min(72rem, 100%);
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 1.2rem;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 25rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-page .section-title h1 {
  max-width: none;
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 0.95;
  text-transform: none;
}

.admin-link {
  color: var(--mint);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.details {
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(1, 6, 4, 0.84) 7rem);
}

.section-title {
  width: min(100%, 46rem);
  margin: 0 auto;
  text-align: center;
}

.section-title p,
.panel > p,
.admin-login p,
.admin-head p {
  margin-bottom: 0.45rem;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-title h2,
.panel h2,
.admin-head h2 {
  font-size: clamp(1.8rem, 5vw, 3.7rem);
  line-height: 0.95;
}

.event-grid,
.countdown,
.panel-grid {
  width: min(72rem, 100%);
  margin: 0 auto;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.event-grid article,
.panel,
.countdown div {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--panel);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.event-grid article {
  min-height: 7rem;
  display: grid;
  align-content: space-between;
  padding: 1rem;
}

.event-grid span,
label,
.countdown span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-grid strong {
  font-size: clamp(1rem, 1.9vw, 1.45rem);
  line-height: 1.12;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.countdown div {
  min-height: 6.2rem;
  display: grid;
  place-items: center;
  padding: 0.9rem;
}

.countdown strong {
  color: var(--mint);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 0.85;
  text-shadow: 0 0 20px rgba(123, 255, 145, 0.45);
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 36rem);
  justify-content: center;
  gap: 1rem;
}

.panel,
.admin-login,
.admin-list {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1rem, 3vw, 1.3rem);
}

label {
  margin-top: 0.2rem;
}

input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(185, 255, 208, 0.22);
  border-radius: 0.45rem;
  padding: 0 0.9rem;
  color: var(--text);
  background: rgba(0, 8, 5, 0.72);
  outline: none;
}

input:focus {
  border-color: var(--glow);
  box-shadow: 0 0 0 3px rgba(123, 255, 145, 0.14);
}

.message {
  min-height: 1.25rem;
  color: var(--mint);
  font-size: 0.9rem;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.stats span {
  padding: 0.85rem;
  border-radius: 0.45rem;
  background: rgba(123, 255, 145, 0.08);
}

.responses {
  max-height: 17rem;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.responses li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(185, 255, 208, 0.13);
}

.responses span {
  color: var(--muted);
  font-size: 0.85rem;
}

.is-hidden {
  display: none;
}

@media (max-width: 900px) {
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-grid article:nth-child(4),
  .event-grid article:nth-child(5) {
    grid-column: span 2;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero,
  .details {
    padding: 0.85rem;
  }

  .hero {
    min-height: 100svh;
    grid-template-rows: auto minmax(24rem, 1fr) auto;
    gap: 0.75rem;
    overflow: hidden;
  }

  .intro-copy {
    padding-top: 0.2rem;
  }

  .top-line {
    width: 6.2rem;
    margin-bottom: 0.45rem;
  }

  .date-pill {
    font-size: 1.55rem;
  }

  h1 {
    max-width: 18rem;
    margin-top: 0.45rem;
    font-size: 0.92rem;
  }

  .envelope-stage {
    width: min(100%, 23rem);
    min-height: min(62svh, 30rem);
  }

  .flyer-card {
    width: min(96%, 21.5rem);
    height: min(76svh, 34rem);
    min-height: 29rem;
    border-radius: 0.85rem;
  }

  .poster-preview {
    min-height: 20rem;
    padding: 1rem;
  }

  .ticket-top {
    top: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .ticket-label {
    max-width: 7rem;
    padding-inline: 0.5rem;
    font-size: 0.6rem;
  }

  .neon-ring {
    width: min(14.5rem, 78vw);
  }

  .neon-ring strong {
    font-size: 7.8rem;
  }

  .neon-ring em {
    font-size: 5.4rem;
  }

  .poster-preview p {
    bottom: 1rem;
    max-width: 15rem;
    font-size: 0.88rem;
  }

  .poster-details {
    gap: 0.62rem;
    padding: 0.82rem;
  }

  .poster-details strong {
    font-size: 1.35rem;
  }

  .poster-kicker,
  .ticket-meta small {
    font-size: 0.68rem;
  }

  .ticket-meta {
    gap: 0.45rem;
  }

  .ticket-meta span {
    padding: 0.58rem 0.45rem;
  }

  .ticket-meta b {
    font-size: 0.84rem;
  }

  .ticket-location {
    font-size: 0.76rem;
  }

  .hero.opened .envelope {
    transform: translateY(7.2rem) scale(0.84);
  }

  .hero.opened .flyer-card {
    transform: translateY(-18%) rotateX(0deg) rotateZ(0.5deg) scale(1);
  }

  .leaf {
    width: 8.5rem;
    opacity: 0.72;
  }

  .leaf-c,
  .leaf-d {
    top: 34%;
  }

  .event-grid,
  .countdown {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }

  .event-grid article:nth-child(4),
  .event-grid article:nth-child(5) {
    grid-column: auto;
  }

  .details {
    gap: 1rem;
  }

  .section-title h2,
  .panel h2,
  .admin-head h2 {
    font-size: 2rem;
  }

  .event-grid article {
    min-height: 5.6rem;
  }

  .countdown div {
    min-height: 5rem;
  }

  .countdown strong {
    font-size: 2.35rem;
  }

  .panel,
  .admin-login,
  .admin-list {
    padding: 1rem;
  }

  .site-footer {
    width: calc(100% - 1.7rem);
    padding-bottom: 1rem;
  }
}

@media (max-width: 380px) {
  .envelope-stage {
    width: min(100%, 20.5rem);
    min-height: min(60svh, 28rem);
  }

  .flyer-card {
    width: min(97%, 20rem);
    height: min(74svh, 31.5rem);
    min-height: 27.5rem;
  }

  .hero.opened .flyer-card {
    transform: translateY(-14%) rotateX(0deg) rotateZ(0.5deg) scale(1);
  }

  .poster-preview {
    min-height: 18rem;
  }

  .neon-ring {
    width: 12.5rem;
  }

  .neon-ring strong {
    font-size: 6.8rem;
  }

  .neon-ring em {
    font-size: 4.7rem;
  }

  .btn {
    min-height: 2.85rem;
    padding: 0.75rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
