@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #12060d;
  --ink: #fff3fb;
  --muted: #d8a8bf;
  --card: rgba(42, 12, 30, 0.82);
  --line: rgba(255, 112, 168, 0.28);
  --brand: #ff2f8f;
  --brand-strong: #ff0f5f;
  --accent: #ff82bf;
  --accent-2: #ff9a63;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 78, 148, 0.3), transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(255, 152, 96, 0.24), transparent 34%),
    radial-gradient(circle at 78% 86%, rgba(255, 63, 127, 0.24), transparent 42%),
    linear-gradient(150deg, #10040c, #1f0914 42%, #12060d);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 33, 128, 0.18), transparent 44%),
    radial-gradient(circle at 50% 80%, rgba(255, 120, 60, 0.12), transparent 50%);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.75), transparent 88%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.1;
  background-image: url("assets/branding/hero-desktop.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.2) contrast(1.04);
}

.hidden {
  display: none !important;
}

body.discreet-mode {
  --brand: #4a6575;
  --brand-strong: #2f4d5d;
  background: #10191f;
}

body.regular-mode .hook {
  color: #d6f7ef;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34), 0 0 28px rgba(255, 47, 143, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(7px);
  animation: rise-in 420ms ease both;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(20, 6, 14, 0.78);
  color: var(--ink);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #ff3f98, #ff1465);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 140ms ease, box-shadow 180ms ease, filter 180ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 31, 117, 0.42);
  filter: saturate(1.05);
}

.secondary,
.ghost {
  background: rgba(27, 9, 20, 0.74);
  color: var(--ink);
  border: 1px solid var(--line);
}

.muted {
  color: var(--muted);
}

.auth-screen {
  padding: 20px 14px 26px;
}

.site-banner {
  margin: 10px 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(120deg, rgba(255, 57, 144, 0.34), rgba(255, 98, 150, 0.24), rgba(255, 151, 92, 0.22));
  background-size: 200% 200%;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32), 0 0 30px rgba(255, 47, 143, 0.2);
  animation: banner-shift 6s ease-in-out infinite;
}

.site-banner h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: clamp(1.6rem, 4.3vw, 2.2rem);
}

.site-banner p {
  margin: 4px 0 0;
  color: #ffe5f2;
  font-weight: 600;
}

.app-banner {
  margin: 12px 12px 4px;
}

.brand h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: clamp(2rem, 7vw, 2.9rem);
  text-shadow: 0 0 18px rgba(255, 42, 140, 0.45), 0 0 38px rgba(255, 42, 140, 0.25);
}

.brand p {
  margin: 4px 0 14px;
  color: var(--muted);
}

.hook {
  color: #ffd4e9;
  font-weight: 700;
  font-size: 1.05rem;
}

.alert-line {
  margin: 0;
  color: #ffc48c;
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-grid {
  display: grid;
  gap: 12px;
}

.auth-grid form {
  display: grid;
  gap: 10px;
}

.social-auth-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 320px;
}

.mode-switch .active {
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(255, 106, 61, 0.25), rgba(25, 200, 255, 0.2));
}

.interest-fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 7px;
}

.interest-fieldset label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.checkbox-line {
  display: flex;
  gap: 8px;
}

.app-screen {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.app-header {
  padding: 14px 14px 8px;
}

.app-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.app-header p {
  margin: 4px 0 0;
}

.live-music-controls {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(27, 9, 20, 0.72);
  display: grid;
  gap: 8px;
}

.live-music-controls p {
  margin: 0;
}

.live-music-meta {
  display: flex;
  align-items: center;
}

.live-music-badge {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.live-music-badge.live {
  background: rgba(71, 230, 161, 0.18);
  border-color: rgba(71, 230, 161, 0.5);
  color: #9fffd4;
}

.live-music-badge.database {
  background: rgba(255, 184, 87, 0.18);
  border-color: rgba(255, 184, 87, 0.5);
  color: #ffe0ac;
}

.view-stack {
  padding: 0 12px 84px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.swipe-card {
  position: relative;
  min-height: 60vh;
  border-radius: 18px;
  overflow: hidden;
  background: #170812;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.34), 0 0 30px rgba(255, 47, 143, 0.12);
  touch-action: pan-y;
  user-select: none;
}

.hero-photo {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  cursor: pointer;
  transform-origin: center center;
  backface-visibility: hidden;
}

.hero-photo.wheel-spin {
  animation: profile-wheel-spin 1.35s cubic-bezier(0.16, 0.9, 0.24, 1) forwards;
}

@keyframes profile-wheel-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(var(--spin-deg, 1260deg));
  }
}

.overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  color: #fff;
  background: linear-gradient(0deg, rgba(18, 5, 12, 0.9), rgba(18, 5, 12, 0.14));
}

.overlay h3 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.overlay p {
  margin: 0 0 4px;
}

.match-why {
  color: #ffb8d9;
  font-size: 0.92rem;
}

.swipe-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.swipe-actions button:last-child {
  animation: pulse-cta 1.6s ease-in-out infinite;
}

.safety-actions {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-bar {
  margin-bottom: 10px;
  display: grid;
  gap: 8px;
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#signed-in-as {
  margin-top: 10px;
}

#match-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

#match-list li {
  background: rgba(27, 9, 20, 0.82);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.message-list {
  min-height: 54vh;
  max-height: 54vh;
  overflow-y: auto;
  background: rgba(27, 9, 20, 0.82);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.message {
  max-width: 84%;
  border-radius: 10px;
  padding: 8px 10px;
  word-break: break-word;
}

.mine {
  justify-self: end;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
}

.theirs {
  justify-self: start;
  background: rgba(58, 23, 40, 0.86);
}

.message-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.album-form {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.live-profile-list,
.album-list,
.daily-game-leaderboard,
.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.live-profile-list li,
.album-list li,
.daily-game-leaderboard li,
.admin-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: rgba(27, 9, 20, 0.82);
}

.live-profile-list li,
.album-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.live-room-controls {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.album-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.album-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(27, 9, 20, 0.82);
}

.plan-card.featured {
  border-color: var(--brand);
}

.plan-card.active-tier {
  background: linear-gradient(135deg, rgba(255, 47, 143, 0.28), rgba(255, 136, 84, 0.2));
  border-color: var(--brand);
}

.plan-features {
  margin: 0 0 8px;
  padding-left: 18px;
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.price {
  margin: 3px 0 8px;
  font-weight: 700;
}

.price span {
  font-weight: 500;
  color: var(--muted);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(19, 7, 14, 0.95);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 8px;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.bottom-nav button {
  background: rgba(31, 10, 22, 0.84);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px;
}

.bottom-nav button.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  border-color: var(--brand);
}

.game-input-wrap {
  margin: 8px 0;
  display: grid;
  gap: 8px;
}

.contest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.contest-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.strip-trivia-stage {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.strip-trivia-seat-map {
  position: relative;
  height: 300px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at center, rgba(255, 106, 61, 0.2) 0, rgba(25, 200, 255, 0.14) 48%, transparent 70%),
    linear-gradient(180deg, #0a1c29, #07111a);
  overflow: hidden;
}

.strip-trivia-seat-map::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  height: 48%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 2px solid rgba(255, 106, 61, 0.5);
  background: radial-gradient(circle at center, rgba(255, 106, 61, 0.16), rgba(25, 200, 255, 0.08));
}

.strip-seat {
  position: absolute;
  width: 92px;
  height: 112px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 27, 39, 0.86);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.strip-seat img {
  width: 100%;
  height: 76px;
  object-fit: cover;
}

.strip-seat .seat-name {
  font-size: 0.72rem;
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-seat.host-seat {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(255, 106, 61, 0.45);
}

.strip-seat.empty-seat {
  background: rgba(255, 255, 255, 0.03);
}

.strip-trivia-chat-list {
  min-height: 180px;
  max-height: 220px;
}

.admin-grid {
  display: grid;
  gap: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 16, 0.72);
  z-index: 20;
  padding: 12px;
  display: grid;
  place-items: center;
}

.modal-card {
  width: min(700px, 100%);
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 14px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.match-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--accent-2));
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  z-index: 30;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.screen-shield {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 10, 16, 0.9);
  color: #fff;
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  z-index: 90;
}

.screen-guard-active .app-screen {
  filter: blur(16px) brightness(0.6);
}

.watermark-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  color: rgba(164, 230, 255, 0.12);
  font-size: clamp(12px, 1.4vw, 16px);
  display: grid;
  place-items: center;
  transform: rotate(-20deg);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.explicit-thumb {
  filter: blur(12px) brightness(0.8);
}

.explicit-thumb.revealed {
  filter: none;
}

@keyframes pulse-cta {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 94, 40, 0.45);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 94, 40, 0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 94, 40, 0);
    transform: scale(1);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes banner-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (min-width: 880px) {
  .auth-grid {
    grid-template-columns: 1fr 1fr;
  }

  .social-auth-row {
    grid-template-columns: 1fr 1fr;
  }

  .view-stack {
    width: min(920px, 100%);
    margin: 0 auto;
  }

  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
