:root {
  color-scheme: dark;
  --bg: #120b0a;
  --bg-2: #20100c;
  --cream: #fff5e3;
  --cream-soft: #ead8bd;
  --rust: #c85b3f;
  --rust-bright: #f1794d;
  --cobalt: #2476b8;
  --cobalt-soft: #6eb7df;
  --ink: #090706;
  --line: rgba(255, 245, 227, 0.22);
  --shadow: 0 1.2rem 3rem rgba(4, 2, 1, 0.46);
  --bubble-size: 4.05rem;
  --social-width: 5.85rem;
  --social-height: 6.45rem;
  --social-top-min: 6.4rem;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg);
}

body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  margin: 0;
  overflow: hidden;
  position: fixed;
  inset: 0;
  overscroll-behavior: none;
  touch-action: manipulation;
  font-family: "Avenir Next", "Nunito Sans", ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(140deg, rgba(14, 8, 7, 0.94), rgba(30, 12, 9, 0.96) 48%, rgba(7, 13, 18, 0.96)),
    var(--bg);
  color: var(--cream);
}

button,
a {
  font: inherit;
}

.experience {
  position: relative;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.stage {
  position: relative;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 245, 227, 0.07) 1px, transparent 1px) 0 0 / 4.5rem 4.5rem,
    linear-gradient(0deg, rgba(255, 245, 227, 0.045) 1px, transparent 1px) 0 0 / 4.5rem 4.5rem,
    radial-gradient(ellipse at 22% 78%, rgba(200, 91, 63, 0.28), transparent 52%),
    radial-gradient(ellipse at 86% 25%, rgba(36, 118, 184, 0.24), transparent 48%),
    linear-gradient(160deg, var(--bg), var(--bg-2) 58%, #07111a);
}

.backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 245, 227, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 245, 227, 0.045) 1px, transparent 1px);
  background-size: 12rem 12rem;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.light-ribbon,
.spark {
  position: absolute;
  pointer-events: none;
}

.light-ribbon {
  width: 26rem;
  height: 0.15rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(247, 121, 77, 0.76), rgba(110, 183, 223, 0.62), transparent);
  filter: drop-shadow(0 0 0.75rem rgba(247, 121, 77, 0.26));
  opacity: 0.55;
}

.ribbon-a {
  top: 18%;
  right: -7rem;
  transform: rotate(-22deg);
}

.ribbon-b {
  left: -9rem;
  bottom: 25%;
  transform: rotate(18deg);
}

.spark {
  width: 3.8rem;
  height: 0.18rem;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 0 1rem rgba(255, 245, 227, 0.5);
  opacity: 0;
  transform: rotate(var(--spark-angle));
  animation: sparkFlash 5.6s ease-in-out infinite;
}

.spark-a {
  --spark-angle: 32deg;
  top: 19%;
  left: 12%;
  animation-delay: 1.4s;
}

.spark-b {
  --spark-angle: -18deg;
  top: 32%;
  right: 13%;
  animation-delay: 2.6s;
}

.spark-c {
  --spark-angle: 12deg;
  bottom: 28%;
  right: 7%;
  animation-delay: 3.8s;
}

.spark-d {
  --spark-angle: -35deg;
  bottom: 17%;
  left: 32%;
  animation-delay: 4.6s;
}

.identity {
  position: absolute;
  top: 1.25rem;
  left: 1.2rem;
  z-index: 6;
  max-width: min(21rem, calc(100vw - 2.4rem));
  text-shadow: 0 0.3rem 1.2rem rgba(0, 0, 0, 0.42);
}

.identity h1 {
  margin: 0;
  color: var(--cream);
  font-size: 3.45rem;
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 900;
}

.identity p {
  max-width: 14rem;
  margin: 0.6rem 0 0;
  color: var(--cream-soft);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
}

.mascot {
  position: absolute;
  left: -5.85rem;
  bottom: -0.72rem;
  z-index: 3;
  width: 24.4rem;
  margin: 0;
  filter: drop-shadow(0 1.3rem 2.8rem rgba(0, 0, 0, 0.55));
  transform-origin: 50% 64%;
  pointer-events: none;
}

.mascot img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 76%;
  animation: mascotIdle 5.4s ease-in-out infinite;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.mascot::after {
  position: absolute;
  right: 18%;
  bottom: 14%;
  left: 16%;
  height: 1.1rem;
  content: "";
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.34);
  filter: blur(1rem);
  animation: mascotShadow 5.4s ease-in-out infinite;
}

.mascot.has-rig-loop img {
  image-rendering: auto;
}

.social-orbit {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.social-orbit::before {
  position: absolute;
  top: 10.5rem;
  right: 1rem;
  width: min(42vw, 10.5rem);
  height: calc(100svh - 13rem);
  content: "";
  border: 1px solid rgba(110, 183, 223, 0.18);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  opacity: 0.76;
  transform: rotate(4deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 1rem rgba(36, 118, 184, 0.13));
  pointer-events: none;
}

.social-link {
  --tilt: 0deg;
  position: absolute;
  top: clamp(var(--social-top-min), var(--y), calc(100svh - var(--social-height) - 0.85rem));
  left: clamp(0.85rem, var(--x), calc(100vw - var(--social-width) - 0.85rem));
  display: grid;
  width: var(--social-width);
  height: var(--social-height);
  place-items: center;
  gap: 0.42rem;
  color: var(--cream);
  text-align: center;
  text-decoration: none;
  opacity: 1;
  transform: rotate(var(--tilt));
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.social-link:hover,
.social-link:focus-visible {
  outline: none;
}

.social-link:hover .bubble,
.social-link:focus-visible .bubble {
  transform: translateY(-0.25rem) scale(1.06);
  border-color: color-mix(in srgb, var(--accent) 82%, var(--cream));
  box-shadow:
    0 1rem 2.2rem rgba(0, 0, 0, 0.35),
    0 0 0 0.22rem rgba(255, 245, 227, 0.11),
    0 0 1.5rem color-mix(in srgb, var(--accent) 50%, transparent);
}

.social-link:focus-visible .bubble {
  outline: 0.16rem solid var(--cream);
  outline-offset: 0.18rem;
}

.social-link.is-popped .bubble {
  animation: tapPop 0.42s ease;
}

.bubble {
  display: grid;
  width: var(--bubble-size);
  height: var(--bubble-size);
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, rgba(255, 245, 227, 0.42));
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 245, 227, 0.18), transparent 44%),
    color-mix(in srgb, var(--accent) 36%, rgba(14, 8, 7, 0.92));
  box-shadow:
    0 0.9rem 2rem rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.bubble svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.bubble .svg-glyph {
  fill: currentColor;
  stroke: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11.8px;
  font-weight: 900;
}

.social-name,
.social-handle {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.social-name {
  color: var(--cream);
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
}

.social-handle {
  margin-top: 0.12rem;
  color: rgba(255, 245, 227, 0.72);
  font-size: 0.68rem;
  line-height: 1.05;
  font-weight: 700;
}

.con-attendance {
  position: absolute;
  top: clamp(11.25rem, 24svh, 13.25rem);
  left: clamp(1.05rem, 5.5vw, 1.35rem);
  z-index: 4;
  width: min(15.25rem, 62vw);
  padding: 0.86rem;
  border: 1px solid rgba(255, 245, 227, 0.22);
  border-radius: 0.5rem;
  background:
    linear-gradient(145deg, rgba(110, 183, 223, 0.18), transparent 50%),
    linear-gradient(330deg, rgba(247, 121, 77, 0.16), transparent 54%),
    rgba(8, 14, 20, 0.88);
  box-shadow:
    0 1rem 2.2rem rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  text-shadow: 0 0.08rem 0.18rem rgba(0, 0, 0, 0.38);
  pointer-events: none;
  backdrop-filter: none;
}

.con-kicker,
.con-intro {
  margin: 0;
}

.con-kicker {
  color: rgba(255, 245, 227, 0.78);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.con-intro {
  margin-top: 0.42rem;
  color: var(--cream);
  font-size: 0.95rem;
  line-height: 1.12;
  font-weight: 850;
}

.convention-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.48rem;
  width: 100%;
  padding: 0;
  margin: 0.72rem 0 0;
  list-style: none;
}

.convention-list li {
  display: flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.36rem;
  padding: 0.48rem 0.64rem;
  border: 1px solid rgba(255, 245, 227, 0.2);
  border-radius: 0.42rem;
  background:
    linear-gradient(145deg, rgba(255, 245, 227, 0.13), transparent 48%),
    rgba(255, 245, 227, 0.075);
  box-shadow:
    0 0.75rem 1.5rem rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.055);
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 900;
}

.flag {
  font-size: 1.18rem;
  line-height: 1;
}

.admin-body {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.admin-shell {
  display: grid;
  width: min(100%, 31rem);
  place-items: center;
}

.admin-panel {
  width: 100%;
  padding: clamp(1rem, 5vw, 1.45rem);
  border: 1px solid rgba(255, 245, 227, 0.24);
  border-radius: 0.5rem;
  background:
    linear-gradient(145deg, rgba(36, 118, 184, 0.22), transparent 54%),
    linear-gradient(330deg, rgba(247, 121, 77, 0.2), transparent 58%),
    rgba(8, 14, 20, 0.9);
  box-shadow: var(--shadow);
}

.admin-kicker,
.admin-copy,
.admin-status {
  margin: 0;
}

.admin-kicker {
  color: rgba(255, 245, 227, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-panel h1 {
  margin: 0.35rem 0 0;
  color: var(--cream);
  font-size: clamp(2.2rem, 12vw, 3.6rem);
  line-height: 0.94;
  font-weight: 900;
}

.admin-copy {
  margin-top: 0.72rem;
  color: var(--cream-soft);
  font-weight: 700;
  line-height: 1.35;
}

.admin-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.admin-field {
  display: grid;
  gap: 0.38rem;
  color: var(--cream);
  font-size: 0.84rem;
  font-weight: 850;
}

.admin-field input {
  width: 100%;
  min-height: 3.05rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(255, 245, 227, 0.25);
  border-radius: 0.42rem;
  outline: none;
  background: rgba(9, 7, 6, 0.46);
  color: var(--cream);
  font: inherit;
}

.admin-field input:focus {
  border-color: rgba(110, 183, 223, 0.72);
  box-shadow: 0 0 0 0.18rem rgba(110, 183, 223, 0.14);
}

.admin-remember {
  display: flex;
  align-items: center;
  gap: 0.56rem;
  color: rgba(255, 245, 227, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-remember input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--rust-bright);
}

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

.admin-save,
.admin-test {
  min-height: 2.85rem;
  border-radius: 0.44rem;
  font-weight: 900;
  text-decoration: none;
}

.admin-save {
  border: 0;
  background: linear-gradient(135deg, var(--rust-bright), var(--rust));
  color: var(--ink);
  cursor: pointer;
}

.admin-test {
  display: inline-grid;
  place-items: center;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 245, 227, 0.24);
  color: var(--cream);
  background: rgba(255, 245, 227, 0.08);
}

.admin-save:focus-visible,
.admin-test:focus-visible {
  outline: 0.16rem solid var(--cream);
  outline-offset: 0.18rem;
}

.admin-status {
  min-height: 1.25rem;
  color: rgba(255, 245, 227, 0.72);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.admin-status[data-state="success"] {
  color: #9ee7bd;
}

.admin-status[data-state="error"] {
  color: #ffb09a;
}

.admin-status[data-state="busy"] {
  color: var(--cobalt-soft);
}

@keyframes mascotIdle {
  0%,
  100% {
    transform: translate3d(-0.08rem, 0, 0) rotate(-1.2deg) scale(1);
  }
  24% {
    transform: translate3d(0.2rem, -0.08rem, 0) rotate(1.15deg) scale(1.01);
  }
  52% {
    transform: translate3d(-0.14rem, 0.04rem, 0) rotate(-0.55deg) scale(0.998);
  }
  76% {
    transform: translate3d(0.12rem, -0.05rem, 0) rotate(0.72deg) scale(1.005);
  }
}

@keyframes mascotShadow {
  0%,
  100% {
    opacity: 0.86;
    transform: scaleX(1);
  }
  42% {
    opacity: 0.58;
    transform: scaleX(0.83);
  }
  76% {
    opacity: 0.74;
    transform: scaleX(0.92);
  }
}

@keyframes tapPop {
  0%,
  100% {
    transform: scale(1);
  }
  48% {
    transform: scale(0.9);
  }
  74% {
    transform: scale(1.13);
  }
}

@keyframes sparkFlash {
  0%,
  72%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--spark-angle)) scaleX(0.2);
  }
  78% {
    opacity: 0.85;
    transform: translate3d(0.4rem, -0.2rem, 0) rotate(var(--spark-angle)) scaleX(1);
  }
  86% {
    opacity: 0;
    transform: translate3d(1rem, -0.45rem, 0) rotate(var(--spark-angle)) scaleX(0.35);
  }
}

@media (min-width: 48rem) {
  :root {
    --bubble-size: 4.9rem;
    --social-width: 8rem;
    --social-height: 7.75rem;
    --social-top-min: 4.7rem;
  }

  .identity {
    top: 2.2rem;
    left: 4rem;
    max-width: 29rem;
  }

  .identity h1 {
    font-size: 5.7rem;
  }

  .identity p {
    max-width: 20rem;
    font-size: 1.2rem;
  }

  .mascot {
    left: 4.35rem;
    bottom: -4rem;
    width: min(40rem, 48vw);
  }

  .con-attendance {
    top: clamp(9.8rem, 18svh, 11.2rem);
    left: 4rem;
    width: 26rem;
    padding: 1.12rem;
  }

  .con-kicker {
    font-size: 0.78rem;
  }

  .con-intro {
    font-size: 1.18rem;
  }

  .convention-list {
    gap: 0.68rem;
  }

  .convention-list li {
    min-height: 3.1rem;
    padding: 0.62rem 0.78rem;
    font-size: 1.02rem;
  }

  .flag {
    font-size: 1.34rem;
  }

  .social-name {
    font-size: 0.86rem;
  }

  .social-handle {
    font-size: 0.74rem;
  }

}

@media (max-width: 23.5rem) {
  :root {
    --bubble-size: 3.85rem;
    --social-width: 5.65rem;
    --social-height: 6.45rem;
  }

  .identity h1 {
    font-size: 3rem;
  }

  .identity p {
    font-size: 0.92rem;
  }

  .mascot {
    left: -6.85rem;
    bottom: -0.7rem;
    width: 23.3rem;
  }

  .con-attendance {
    top: 11.2rem;
    width: min(14.25rem, 62vw);
    padding: 0.74rem;
  }

  .con-kicker {
    font-size: 0.64rem;
  }

  .con-intro {
    font-size: 0.82rem;
  }

  .convention-list {
    gap: 0.36rem;
  }

  .convention-list li {
    min-height: 2.3rem;
    padding: 0.4rem 0.45rem;
    font-size: 0.76rem;
  }

  .flag {
    font-size: 1.06rem;
  }

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

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