@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-900.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto-900.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-900.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg-left: #16276f;
  --bg-center: #09091b;
  --bg-right: #40104f;
  --panel: #0a0c1c;
  --text: #f8f9ff;
  --muted: rgba(241, 243, 255, 0.84);
  --subtle: rgba(241, 243, 255, 0.56);
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --cta-pink: #e86ce0;
  --cta-blue: #5bb5ff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 14% 56%, rgba(26, 76, 200, 0.45), transparent 34%),
    radial-gradient(circle at 82% 50%, rgba(122, 28, 165, 0.46), transparent 35%),
    radial-gradient(circle at 50% 46%, rgba(0, 0, 0, 0.5), transparent 22%),
    linear-gradient(90deg, #0b1b5f 0%, #09091b 50%, #360b42 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.04), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.28), transparent 55%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.bg,
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-left {
  background: radial-gradient(circle at 18% 50%, rgba(24, 70, 196, 0.35), transparent 40%);
}

.bg-right {
  background: radial-gradient(circle at 82% 50%, rgba(120, 22, 164, 0.35), transparent 40%);
}

.bg-grid {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black 52%, transparent 92%);
}

.page {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 64px));
  margin: 0 auto;
  min-height: 100vh;
  padding: 8px 0 110px;
}

.site-container {
  width: min(1280px, calc(100vw - 64px));
  margin: 0 auto;
}

.footer .site-container,
.topbar .site-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.brand-logo {
  width: min(320px, 86vw);
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 26px rgba(101, 170, 255, 0.24));
}

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 28px 0 22px;
}

.hero-copy {
  margin-top: clamp(18px, 5vh, 54px);
}

.hero-title {
  margin: 0;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(3.4rem, 8vw, 82px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -3px;
  overflow: visible;
}

.hero-title-primary {
  color: #ffffff;
}

.hero-title-secondary {
  margin-top: 0.08em;
  padding-bottom: 0.14em;
  line-height: 1.02;
  background: linear-gradient(180deg, #8bd0ff 0%, #51a7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  margin: 20px 0 0;
  font-size: 32px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: rgba(255, 255, 255, 1);
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.55),
    0 0 28px rgba(255, 255, 255, 0.22),
    0 0 42px rgba(120, 205, 255, 0.14);
}

.swap-stage {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  gap: 34px;
  width: min(720px, 100%);
  margin-top: 70px;
}

.swap-card {
  position: relative;
  width: 100%;
  height: 246px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #101326;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 18px 36px rgba(0, 0, 0, 0.3),
    0 0 28px rgba(182, 110, 245, 0.16);
  overflow: hidden;
}

.swap-card-left {
  transform: rotate(-4.6deg) translateY(6px);
  width: 186px;
  height: 248px;
  justify-self: start;
  border-radius: 18px;
  border: 3px solid rgba(255, 242, 252, 0.82);
  background: #15122d;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.2) inset,
    0 0 0 4px rgba(255, 205, 243, 0.22),
    0 18px 34px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(255, 160, 230, 0.32),
    0 0 48px rgba(180, 98, 255, 0.16);
}

.swap-card-right {
  transform: rotate(4.6deg) translateY(6px);
  width: 186px;
  height: 248px;
  justify-self: end;
  border-radius: 18px;
  border: 3px solid rgba(255, 242, 252, 0.82);
  background: #15122d;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.2) inset,
    0 0 0 4px rgba(255, 205, 243, 0.22),
    0 18px 34px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(255, 160, 230, 0.32),
    0 0 48px rgba(180, 98, 255, 0.16);
}

.swap-card-image {
  position: absolute;
  inset: 0;
}

.swap-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.18) contrast(1.05) brightness(1.02);
  transform: scale(1.1);
}

.swap-card-left .swap-card-photo {
  transform: scale(1.12) translateY(2px);
  filter: blur(3.2px) saturate(1.22) contrast(1.04) brightness(1.04);
}

.swap-card-right .swap-card-photo {
  transform: scale(1.12) translateY(2px);
  filter: blur(3.2px) saturate(1.22) contrast(1.04) brightness(1.04);
}

.swap-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.22)),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.16), transparent 42%);
}

.swap-card-left .swap-card-overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 210, 240, 0.08), rgba(0, 0, 0, 0.28)),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 50% 72%, rgba(255, 138, 205, 0.12), transparent 45%);
}

.swap-card-right .swap-card-overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 210, 240, 0.08), rgba(0, 0, 0, 0.28)),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 50% 72%, rgba(255, 138, 205, 0.12), transparent 45%);
}

.lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  color: white;
  text-shadow: 0 0 15px rgba(255,255,255,.8);
}

.arrows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.arrow {
    position: relative;
    width: 85px;
    height: 16px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  transform: translateY(-50%);
  border-radius: 0;
}

.arrow-left {
    background: linear-gradient(90deg, #6ef0ff, #65b8ff);
}

.arrow-left::after {
  left: -8px;
  border-right: 22px solid #6ef0ff;
}

.arrow-right {
    background: linear-gradient(90deg, #d48dff, #8d6bff);
}

.arrow-right::after {
  right: -8px;
  border-left: 22px solid #8d6bff;
}

.cta-row {
  margin-top: 70px;
}

.shortcode-launch-row {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.shortcode-launch-button {
  width: min(640px, 100%);
  padding: 18px 28px;
  white-space: normal;
  line-height: 1.22;
  text-align: center;
}

.shortcode-modal {
  width: min(540px, calc(100vw - 18px));
}

.shortcode-form {
  display: grid;
  gap: 12px;
}

.shortcode-label {
  font-weight: 700;
  color: var(--muted);
}

.shortcode-row {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  gap: 12px;
}

.shortcode-row input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #090b17;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.22em;
  font-size: 1.05rem;
  font-weight: 800;
}

.shortcode-button {
  min-height: 48px;
  padding-inline: 20px;
  white-space: nowrap;
  width: 100%;
  margin-top: 4px;
}

.cta-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  border-radius: 999px;
  font-weight: 800;
  font-family: "Nunito", "Roboto", "Segoe UI", sans-serif;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.cta-button,
.primary-button {
  min-height: 72px;
  padding: 0 60px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff6fc3 0%, #c85dff 45%, #2edcff 100%);
  box-shadow:
    0 8px 16px rgba(97, 86, 255, 0.22),
    0 0 10px rgba(255, 110, 205, 0.16),
    0 0 18px rgba(46, 220, 255, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.55);
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-button {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 10px rgba(97, 86, 255, 0.24),
    0 0 10px rgba(255, 110, 205, 0.18),
    0 0 16px rgba(46, 220, 255, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.cta-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 38%);
  pointer-events: none;
}

.cta-button::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 28%);
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
}

.cta-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.cta-button:disabled,
.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.42;
  color: rgba(255, 255, 255, 0.7);
  filter: grayscale(0.18) saturate(0.62);
}

.primary-button:disabled {
  background: linear-gradient(135deg, rgba(160, 164, 184, 0.42) 0%, rgba(122, 129, 160, 0.42) 100%);
}

.cta-button:disabled {
  background: linear-gradient(135deg, rgba(160, 164, 184, 0.34) 0%, rgba(122, 129, 160, 0.34) 100%);
}

.secondary-button:disabled {
  background: rgba(17, 21, 40, 0.72);
  border-color: rgba(255, 255, 255, 0.06);
}

.hero-note {
  margin: 16px 0 0;
  color: var(--subtle);
}

.hero-note:empty {
  display: none;
}

.home-page #landingPanel > .hero-note:first-of-type {
  display: none;
}

.create-form {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.created-card.hidden,
.room-panel.hidden {
  display: none;
}

.created-card {
  margin-top: 20px;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.code-grid > div {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 20px;
  background: #101326;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.created-preview {
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
}

.created-preview img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}

.room-panel {
  margin-top: 18px;
}

.link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.link-row input,
.room-meta code,
.code-grid code {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #090b17;
  color: var(--text);
}

.room-meta code {
  padding-left: 14px;
  box-sizing: border-box;
}

.secondary-button {
  padding: 0 18px;
  color: var(--text);
  background: #111528;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.room-panel {
  margin-top: 36px;
  padding: 28px;
  border-radius: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.room-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 52px;
  text-align: center;
}

#roomTitle {
  color: #ffffff;
  width: 100%;
  margin: 0;
  text-align: center;
}

.room-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111528;
  color: var(--subtle);
  font-size: 0.8rem;
  font-weight: 800;
}

.room-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.room-meta.room-meta-centered {
  grid-template-columns: 1fr;
  justify-items: center;
}

.room-meta.room-meta-centered > div {
  width: min(100%, 620px);
}

.room-meta > div {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 20px;
  background: #101326;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-label,
.section-label {
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
}

.room-code-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.room-code-row code {
  flex: 1 1 240px;
}

.room-code-row .secondary-button {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.88;
}

.share-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.share-actions .secondary-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.88;
  justify-content: flex-start;
}

.share-actions-note {
  margin: 0;
  color: rgba(232, 236, 247, 0.78);
  font-size: 0.92rem;
  line-height: 1.4;
}

.share-actions-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111528;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.share-icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
  background: #171d38;
}

.share-icon-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.share-icon-button-whatsapp {
  color: #25d366;
}

.url1-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.url1-main,
.url1-side {
  display: grid;
  gap: 12px;
}

.url1-main {
  margin-block: 22px 28px;
}

.url1-main-hint {
  margin: 0;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  opacity: 1;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  text-shadow: none;
}

#slotOneHint {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  opacity: 1;
}

.url1-side-hint {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
}

.url1-head {
  justify-content: center;
  text-align: center;
}

.url1-image,
.url1-image-fallback,
.url1-side-image {
  width: 100%;
  min-height: 340px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #101326;
  isolation: isolate;
}

.url1-image {
  object-fit: cover;
  padding: 0;
  background: #ffffff;
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
  display: block;
}

#slotOneImage {
  width: min(180px, 100%);
  min-height: 0;
  max-height: 180px;
  aspect-ratio: 1 / 1;
  justify-self: center;
}

.url1-image-fallback,
.url1-side-image {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 22px;
  text-align: center;
}

#slotTwoPlaceholder::after {
  content: '';
  width: min(100%, 320px);
  height: 180px;
  margin-top: 8px;
  border-radius: 24px;
  border: 1px dashed rgba(145, 180, 255, 0.32);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.10), transparent 35%),
    linear-gradient(180deg, rgba(16, 19, 38, 0.95), rgba(9, 12, 24, 0.95));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.url1-image-fallback strong,
.url1-side-image strong {
  font-size: 20px;
  font-weight: 800;
}

.url1-image-fallback span,
.url1-side-image span {
  color: var(--muted);
}

.url1-side-image .upload-hint {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 400;
  text-align: center;
}

.url1-caption {
  margin: 0;
  color: var(--muted);
  text-align: left;
  margin-top: 6px;
}

.slot-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 0;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  color: var(--muted);
}

.slot-timer strong {
  color: #ffffff;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.url1-refresh {
  display: flex;
  justify-content: center;
  margin: 44px 0 28px;
}

.join-action {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 18px;
}

.join-action .primary-button {
  min-width: min(420px, 100%);
}

.url1-image-fallback .join-action {
  width: 100%;
  margin-top: 28px;
}

.url1-image-fallback .join-action .primary-button {
  min-width: min(300px, 100%);
  width: min(300px, 100%);
  white-space: nowrap;
}

.join-message {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.25;
  font-weight: 700;
  text-align: left;
  letter-spacing: -0.02em;
  width: 100%;
}

#roomPanel p.join-message {
  color: #ffffff !important;
  opacity: 1;
  text-align: center;
}

.join-message:empty {
  display: none;
}

.url1-main .join-message {
  align-self: end;
}

.dropzone {
  display: grid;
  place-items: center;
  min-height: 170px;
  border-radius: 28px;
  border: 1.5px dashed rgba(145, 180, 255, 0.35);
  background: #101326;
  position: relative;
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-copy {
  display: grid;
  gap: 8px;
  text-align: center;
}

.dropzone-copy strong {
  font-size: 1.08rem;
}

.dropzone-copy span,
.form-note {
  color: var(--subtle);
}

.error-banner {
  margin-top: 16px;
  padding: 18px;
  border-radius: 24px;
}

.error-banner {
  background: #24111a;
  border: 1px solid rgba(255, 120, 143, 0.22);
  color: #ffd6de;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: rgba(8, 10, 24, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.footer a {
  color: rgba(220, 225, 242, 0.74);
}

.footer a:hover {
  color: #ffffff;
}

.hidden {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 4, 14, 0.62);
  backdrop-filter: blur(18px);
  z-index: 60;
}

.upload-modal {
  width: min(492px, calc(100vw - 18px));
  border-radius: 22px;
  background: #070719;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
}

.upload-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 18px 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.upload-modal-header h2 {
  margin: 0;
  font-size: 1.58rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #ffffff;
  font-weight: 900;
  font-family: "Nunito", "Roboto", "Segoe UI", sans-serif;
}

.modal-close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: rgba(248, 249, 255, 0.9);
  display: grid;
  place-items: center;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.upload-modal-body {
  padding: 18px 24px 22px;
}

.upload-modal-help {
  margin: 0 0 18px;
  color: rgba(232, 236, 247, 0.72);
  line-height: 1.55;
  font-size: 0.95rem;
}

.upload-form {
  display: grid;
  gap: 16px;
}

.file-picker {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px 14px 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(115, 128, 191, 0.36);
  background: #101326;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.file-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(130, 142, 201, 0.58);
  background: #31355c;
  color: #ffffff;
  cursor: pointer;
  font-weight: 500;
  font-family: "Nunito", "Roboto", "Segoe UI", sans-serif;
}

.file-picker-filename {
  color: rgba(233, 236, 247, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(236, 238, 247, 0.92);
  line-height: 1.45;
  font-size: 0.96rem;
  cursor: pointer;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #2f78ff;
  flex: 0 0 auto;
}

.checkbox-row.is-disabled {
  opacity: 0.45;
  filter: grayscale(0.2);
}

.checkbox-row.is-disabled input {
  cursor: not-allowed;
}

.email-field {
  display: grid;
  gap: 10px;
}

.email-field.is-disabled {
  opacity: 0.45;
  filter: grayscale(0.2);
}

.email-field label {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.2;
}

.email-input {
  width: 100%;
  min-height: 36px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #f8f8fa;
  color: #2a2d35;
  font-size: 0.95rem;
  outline: none;
}

.email-input::placeholder {
  color: rgba(60, 64, 74, 0.7);
}

.email-input:focus {
  border-color: rgba(78, 195, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(78, 195, 255, 0.12);
}

.email-field.is-disabled .email-input:disabled {
  background: #cfd5df;
  color: #7b8190;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.progress-row {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.progress-label {
  display: flex;
  align-items: center;
  color: #39a6ff;
  font-weight: 800;
  font-size: 0.95rem;
}

.progress-track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: #161b3a;
  border: 1px solid rgba(124, 132, 188, 0.26);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5ee2ff 0%, #4ea9ff 100%);
  box-shadow: 0 0 14px rgba(83, 184, 255, 0.3);
  transition: width 0.18s ease;
}

.upload-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.upload-modal-footer .secondary-button,
.upload-modal-footer .primary-button {
  min-height: 46px;
  padding: 0 18px;
  font-size: 1rem;
}

.upload-modal-footer .secondary-button {
  background: #101326;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.upload-modal-footer .primary-button {
  min-width: 128px;
  box-shadow:
    0 6px 14px rgba(97, 86, 255, 0.16),
    0 0 10px rgba(255, 110, 205, 0.12),
    0 0 14px rgba(46, 220, 255, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.shortcode-modal-footer {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .page {
    width: min(100vw - 48px, 1040px);
    padding-bottom: 120px;
  }

  .site-container {
    width: min(100vw - 48px, 1040px);
  }

  .topbar {
    min-height: 84px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 0 0 22px 22px;
  }

  .brand-logo {
    width: min(300px, 82vw);
  }

  .swap-stage {
    grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
    gap: 12px;
    width: min(100%, 520px);
  }

  .swap-card-left,
  .swap-card-right {
    transform: none;
    height: 192px;
  }

  .swap-card-left {
    width: 100%;
    height: 192px;
  }

  .swap-card-right {
    width: 100%;
    height: 192px;
  }

  .arrows {
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  .arrow {
    width: 58px;
    height: 10px;
  }

  .arrow::after {
    border-top-width: 11px;
    border-bottom-width: 11px;
  }

  .arrow-left::after {
    border-right-width: 18px;
  }

  .arrow-right::after {
    border-left-width: 18px;
  }

  .url1-layout,
  .room-meta {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .page {
    width: min(100vw - 32px, 1040px);
  }

  .site-container {
    width: min(100vw - 32px, 1040px);
  }
}

@media (max-width: 640px) {
  .footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 28px;
  }

  .page {
    width: min(100vw - 20px, 1040px);
  }

  .hero-copy {
    margin-top: 30px;
  }

  .hero-title {
    font-size: clamp(2.7rem, 14vw, 58px);
    letter-spacing: -2px;
  }

  .hero-title-secondary {
    margin-top: 0.04em;
  }

  .hero-tagline {
    margin-top: 28px;
    font-size: 32px;
  }

  .swap-stage {
    margin-top: 42px;
    gap: 10px;
  }

  .swap-card-left,
  .swap-card-right {
    height: 168px;
  }

  .arrow {
    width: 44px;
    height: 9px;
  }

  .arrow::after {
    border-top-width: 10px;
    border-bottom-width: 10px;
  }

  .arrow-left::after {
    border-right-width: 16px;
    left: -7px;
  }

  .arrow-right::after {
    border-left-width: 16px;
    right: -7px;
  }

  .cta-row {
    margin-top: 52px;
  }

  .shortcode-launch-button {
    width: 100%;
  }

  .url1-image-fallback .join-action .primary-button {
    width: min(260px, 100%);
    min-width: min(260px, 100%);
    white-space: normal;
    line-height: 1.15;
  }

  .join-message {
    font-size: 1.02rem;
    line-height: 1.35;
    margin-bottom: 14px;
  }

  .room-panel {
    padding: 20px;
  }

  .upload-modal-header h2 {
    font-size: 1.55rem;
  }

  .upload-modal-body {
    padding: 16px 18px 20px;
  }

  .file-picker {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .file-picker-button {
    min-width: 100%;
  }

  .upload-modal-footer {
    flex-direction: column-reverse;
  }

  .upload-modal-footer .secondary-button,
  .upload-modal-footer .primary-button {
    width: 100%;
  }
}

.legal-page .page {
  padding-bottom: 110px;
}

.legal-shell {
  width: min(1280px, calc(100vw - 48px));
}

.legal-card {
  margin-top: 36px;
  padding: 30px;
  border-radius: 30px;
  background: #0a0c1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

.legal-card h2 {
  margin: 24px 0 10px;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.legal-card p,
.legal-card li {
  color: var(--subtle);
  line-height: 1.75;
}

.legal-card ul {
  margin: 0;
  padding-left: 18px;
}
