﻿:root {
  --bg: #0f1219;
  --panel: #1a2130;
  --panel-2: #202a3e;
  --text: #f5f7ff;
  --muted: #c6ccdf;
  --accent: #f7d25f;
  --accent-deep: #d39a26;
  --lime: #c7f142;
  --cyan: #86d8ff;
  --pink: #ea9cff;
  --ring: rgba(247, 210, 95, 0.38);
}

* {
  box-sizing: border-box;
}

/* Custom scrollbar for all pages/containers */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 210, 95, 0.72) rgba(26, 33, 48, 0.7);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(26, 33, 48, 0.7);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(247, 210, 95, 0.95), rgba(134, 216, 255, 0.85));
  border-radius: 999px;
  border: 2px solid rgba(26, 33, 48, 0.8);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 227, 132, 1), rgba(157, 226, 255, 1));
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 12% -8%, rgba(234, 156, 255, 0.18), transparent 45%),
    radial-gradient(circle at 82% -4%, rgba(134, 216, 255, 0.2), transparent 38%),
    radial-gradient(circle at 52% 118%, rgba(199, 241, 66, 0.14), transparent 50%),
    linear-gradient(160deg, #0e131e, #0f1623 46%, #101a29 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: -40%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(247, 210, 95, 0.08) 0%, transparent 46%),
    radial-gradient(circle, rgba(134, 216, 255, 0.06) 0%, transparent 42%);
  animation: atmosphere 18s linear infinite;
  z-index: -2;
}

.bg-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background:
    radial-gradient(circle at 50% 30%, rgba(247, 210, 95, 0.2), transparent 48%),
    linear-gradient(160deg, #0a0f1b, #101a2a);
  display: grid;
  place-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-core {
  display: grid;
  place-items: center;
  gap: 0.6rem;
}

.loader-core img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(247, 210, 95, 0.35));
  animation: bob 1.8s ease-in-out infinite;
}

.loader-core p {
  margin: 0;
  color: #f7eec6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.topbar {
  width: min(1100px, 92%);
  margin: 1.2rem auto;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(247, 210, 95, 0.25);
  border-radius: 14px;
  background: rgba(16, 22, 34, 0.74);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease, transform 180ms ease;
}

nav a:hover {
  color: var(--cyan);
  transform: translateY(-1px);
}

.hero {
  width: min(1100px, 92%);
  margin: 3.5rem auto 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-art {
  display: grid;
  place-items: center;
}

.floaty {
  animation: floaty 5.4s ease-in-out infinite;
}

.pfp-frame {
  width: min(360px, 92%);
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  border: 1px solid rgba(247, 210, 95, 0.28);
  background:
    radial-gradient(circle at 20% 20%, rgba(247, 210, 95, 0.18), transparent 50%),
    radial-gradient(circle at 78% 80%, rgba(134, 216, 255, 0.15), transparent 50%),
    linear-gradient(150deg, #1a2130, #101624);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(247, 210, 95, 0.08) inset;
  padding: 0.9rem;
}

.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 30px;
  border: 1px solid rgba(247, 210, 95, 0.35);
  animation: pulse 2.4s ease-out infinite;
}

.pfp-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  display: block;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #1f1a0e;
  background: linear-gradient(130deg, var(--accent), #ffe8a1);
}

h1 {
  margin: 1rem 0 0.5rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-row {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 0.72rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.btn-primary {
  background: linear-gradient(140deg, var(--accent), #ffe59b);
  color: #1e1a12;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(247, 210, 95, 0.26);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(134, 216, 255, 0.4);
  background: rgba(134, 216, 255, 0.08);
}

.btn-ghost:hover {
  border-color: rgba(134, 216, 255, 0.72);
}

.cards,
.stats {
  width: min(1100px, 92%);
  margin: 1.4rem auto;
  display: grid;
  gap: 0.9rem;
}

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

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 3rem;
}

.card,
.stat,
.command-card,
.split-card {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 220ms ease;
}

.card,
.stat {
  border-radius: 14px;
  border: 1px solid rgba(247, 210, 95, 0.2);
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  padding: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.card:hover,
.stat:hover,
.command-card:hover,
.split-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.card-gold {
  border-color: rgba(247, 210, 95, 0.45);
}

.card-lime {
  border-color: rgba(199, 241, 66, 0.5);
}

.card-cyan {
  border-color: rgba(134, 216, 255, 0.55);
}

.card-pink {
  border-color: rgba(234, 156, 255, 0.48);
}

.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.stat strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1.6rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  width: min(1100px, 92%);
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
  transition: 500ms ease;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  color: var(--cyan);
}

.split {
  width: min(1100px, 92%);
  margin: 1rem auto 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.split-card {
  border-radius: 14px;
  border: 1px solid rgba(247, 210, 95, 0.2);
  background: linear-gradient(145deg, #171f2f, #1f2940);
  padding: 1rem;
}

.split-card h3 {
  margin: 0 0 0.45rem;
}

.split-card p {
  margin: 0;
  color: var(--muted);
}

.cta-banner {
  width: min(1100px, 92%);
  margin: 0 auto 2rem;
  border-radius: 16px;
  border: 1px solid rgba(247, 210, 95, 0.26);
  background:
    radial-gradient(circle at 20% 20%, rgba(247, 210, 95, 0.16), transparent 40%),
    radial-gradient(circle at 88% 72%, rgba(134, 216, 255, 0.14), transparent 38%),
    linear-gradient(150deg, #161f31, #111a2a);
  padding: 1.2rem;
}

.cta-banner h2 {
  margin: 0 0 0.35rem;
}

.cta-banner p {
  margin: 0;
  color: var(--muted);
}

.page-head {
  width: min(1100px, 92%);
  margin: 2.8rem auto 1.4rem;
}

.search-wrap {
  margin-top: 1rem;
}

.search-wrap input {
  width: min(620px, 100%);
  border-radius: 10px;
  border: 1px solid rgba(134, 216, 255, 0.45);
  background: rgba(134, 216, 255, 0.08);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  font: inherit;
}

.search-wrap input:focus {
  outline: 2px solid var(--ring);
  border-color: rgba(247, 210, 95, 0.5);
}

.command-grid {
  width: min(1100px, 92%);
  margin: 0 auto 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.command-card {
  border-radius: 14px;
  border: 1px solid rgba(247, 210, 95, 0.18);
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  padding: 1rem;
}

.command-card h2 {
  margin: 0 0 0.3rem;
}

.command-card p {
  margin: 0 0 0.55rem;
  color: var(--muted);
}

.command-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.command-card li {
  margin-bottom: 0.35rem;
}

.command-card code {
  background: rgba(134, 216, 255, 0.1);
  border: 1px solid rgba(134, 216, 255, 0.25);
  padding: 0.05rem 0.3rem;
  border-radius: 6px;
  color: #d8f1ff;
}

.embed-layout {
  width: min(1100px, 92%);
  margin: 0 auto 1.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.embed-editor,
.embed-preview-wrap {
  border-radius: 14px;
  border: 1px solid rgba(247, 210, 95, 0.2);
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  padding: 1rem;
}

.embed-editor {
  color-scheme: dark;
}

.embed-editor h3,
.embed-preview-wrap h3 {
  margin-top: 0;
}

.embed-editor label,
.json-label {
  display: block;
  margin: 0.65rem 0 0.25rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.embed-editor input,
.embed-editor select,
.embed-editor textarea,
.json-output {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(134, 216, 255, 0.32);
  background: rgba(134, 216, 255, 0.08);
  color: var(--text);
  padding: 0.65rem 0.8rem;
  font: inherit;
}

.embed-editor textarea,
.json-output {
  resize: vertical;
}

.embed-editor input:focus,
.embed-editor select:focus,
.embed-editor textarea:focus {
  outline: 2px solid var(--ring);
  border-color: rgba(247, 210, 95, 0.5);
}

.embed-editor select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color-scheme: dark;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.embed-editor select option {
  background-color: #1b2435;
  color: #f5f7ff;
}

.embed-editor select option:disabled {
  color: #8d95aa;
}

.embed-editor input[type="color"] {
  width: 100%;
  max-width: 68px;
  min-height: 42px;
  padding: 0.2rem;
  border-radius: 10px;
  border: 1px solid rgba(134, 216, 255, 0.32);
  background: rgba(134, 216, 255, 0.08);
  cursor: pointer;
}

.embed-editor input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.embed-editor input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 7px;
}

.embed-editor input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 7px;
}

.embed-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.6rem;
  align-items: center;
}

.embed-row .btn {
  width: 100%;
}

.embed-row:has(.btn) {
  grid-template-columns: 1fr 1fr;
  margin-top: 0.8rem;
}

.builder-head {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.builder-head label {
  margin: 0;
}

.btn-mini {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
}

.dynamic-list {
  display: grid;
  gap: 0.5rem;
}

.builder-item {
  border: 1px solid rgba(134, 216, 255, 0.25);
  background: rgba(134, 216, 255, 0.05);
  border-radius: 10px;
  padding: 0.55rem;
  display: grid;
  gap: 0.45rem;
}

.builder-item-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.builder-item-row.compact {
  grid-template-columns: 160px 1fr auto;
}

.builder-item-row.two {
  grid-template-columns: 1fr 1fr;
}

.builder-item .btn-remove {
  background: #b64254;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font: inherit;
  cursor: pointer;
}

.builder-item .btn-remove:hover {
  filter: brightness(1.07);
}

.muted {
  color: var(--muted);
  font-size: 0.74rem;
}

.discord-preview {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.65rem;
  background: #2b2d31;
  border-radius: 10px;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.discord-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.discord-meta strong {
  font-size: 0.9rem;
}

.discord-meta span {
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  background: #5865f2;
  border-radius: 5px;
  padding: 0.1rem 0.3rem;
}

.discord-meta small {
  color: #a3a6ad;
  font-size: 0.72rem;
}

.discord-embed {
  position: relative;
  background: #1f2124;
  border-radius: 4px;
  border-left: 4px solid var(--embed-color, #fff3c3);
  padding: 0.6rem 0.7rem;
}

.discord-embed-author {
  color: #d7d8da;
  font-size: 0.76rem;
  margin-bottom: 0.35rem;
}

.discord-embed-title {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.discord-embed-desc {
  color: #dbdee1;
  font-size: 0.88rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

.discord-embed-fields {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.discord-embed-field {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 0.35rem 0.4rem;
}

.discord-embed-field.inline-false {
  grid-column: 1 / -1;
}

.discord-embed-field strong {
  display: block;
  color: #f2f3f5;
  font-size: 0.78rem;
}

.discord-embed-field span {
  color: #c9ccd1;
  font-size: 0.76rem;
}

.discord-embed-thumb {
  position: absolute;
  right: 0.6rem;
  top: 0.6rem;
  width: 66px;
  height: 66px;
  border-radius: 8px;
  object-fit: cover;
  display: none;
}

.discord-embed-image {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 0.6rem;
  display: none;
}

.discord-embed-footer {
  color: #a3a6ad;
  font-size: 0.72rem;
  margin-top: 0.6rem;
}

.discord-buttons {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.discord-btn {
  background: #4f545c;
  color: #fff;
  border-radius: 4px;
  border: 0;
  font-size: 0.78rem;
  padding: 0.32rem 0.62rem;
  line-height: 1.2;
}

.discord-btn.style-primary {
  background: #5865f2;
}

.discord-btn.style-secondary {
  background: #4f545c;
}

.discord-btn.style-success {
  background: #3ba55d;
}

.discord-btn.style-danger {
  background: #ed4245;
}

.discord-btn.style-link {
  background: #4f545c;
}

.json-output {
  margin-top: 0.3rem;
  min-height: 165px;
}

@keyframes atmosphere {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(4%, -3%, 0) rotate(8deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse {
  0% { opacity: 0.8; transform: scale(0.99); }
  70% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.05); }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .pfp-frame {
    width: min(280px, 75%);
  }

  .cards,
  .stats,
  .split,
  .command-grid,
  .embed-layout {
    grid-template-columns: 1fr;
  }

  .builder-item-row,
  .builder-item-row.compact,
  .builder-item-row.two {
    grid-template-columns: 1fr;
  }

  .discord-embed-fields {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }
}
