:root {
  --bg0: #07040f;
  --bg1: #0c061a;
  --panel: rgba(16, 8, 28, 0.72);
  --panel2: rgba(12, 6, 20, 0.72);
  --stroke: rgba(208, 173, 255, 0.18);
  --stroke2: rgba(255, 215, 120, 0.16);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --muted2: rgba(255, 255, 255, 0.55);
  --violet: #6a27ff;
  --violet2: #9b4dff;
  --gold: #d4af37;
  --gold2: #ffd27a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow2: 0 10px 24px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Rajdhani, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #05020a;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(10, 0, 20, 0.75);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  color: var(--gold2);
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: url('/assets/byc-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.bg__smoke {
  position: absolute;
  inset: -30vmax;
  background:
    radial-gradient(40vmax 30vmax at 20% 30%, rgba(155, 77, 255, 0.26), transparent 60%),
    radial-gradient(35vmax 30vmax at 75% 35%, rgba(106, 39, 255, 0.22), transparent 60%),
    radial-gradient(45vmax 30vmax at 40% 75%, rgba(186, 92, 255, 0.17), transparent 60%),
    radial-gradient(40vmax 30vmax at 90% 80%, rgba(90, 30, 255, 0.12), transparent 65%);
  filter: blur(32px) saturate(120%);
  opacity: 0.35;
  transform: translate3d(0, 0, 0);
  animation: drift 18s ease-in-out infinite alternate;
}

.bg__smoke--b {
  opacity: 0.55;
  filter: blur(46px) saturate(140%);
  animation-duration: 26s;
  animation-direction: alternate-reverse;
}

.bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 900px at 50% 20%, rgba(10, 0, 20, 0.35), rgba(0, 0, 0, 0.88) 70%);
}

.bg__grain {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.16;
}

@keyframes drift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, 1.5%, 0) scale(1.03);
  }
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(6, 3, 12, 0.82), rgba(6, 3, 12, 0.52));
  border-bottom: 1px solid rgba(208, 173, 255, 0.14);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: radial-gradient(60px 40px at 30% 30%, rgba(255, 210, 122, 0.18), transparent 60%),
    radial-gradient(60px 60px at 65% 70%, rgba(155, 77, 255, 0.22), transparent 60%),
    rgba(18, 10, 30, 0.8);
  border: 1px solid rgba(255, 210, 122, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(106, 39, 255, 0.15) inset;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.brand__logo--fallback::after {
  content: 'BYC';
  font-family: Orbitron, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 210, 122, 0.92);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.25), 0 0 28px rgba(155, 77, 255, 0.35);
}

.brand__title {
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand__subtitle {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.header__badge {
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(208, 173, 255, 0.18);
  background: linear-gradient(180deg, rgba(15, 8, 26, 0.7), rgba(8, 4, 14, 0.5));
}

.hero {
  margin: 28px 0 18px;
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(208, 173, 255, 0.16);
  background: linear-gradient(135deg, rgba(18, 8, 34, 0.72), rgba(10, 5, 18, 0.55));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(500px 260px at 15% 30%, rgba(155, 77, 255, 0.35), transparent 60%),
    radial-gradient(460px 260px at 85% 10%, rgba(212, 175, 55, 0.18), transparent 60%),
    radial-gradient(520px 300px at 70% 90%, rgba(106, 39, 255, 0.26), transparent 62%);
  filter: blur(26px);
  opacity: 0.75;
}

.hero__content {
  position: relative;
  padding: 26px 24px 24px;
}

.hero__title {
  margin: 0;
  font-family: Orbitron, system-ui, sans-serif;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: 0.02em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.gold {
  color: var(--gold2);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.22), 0 0 26px rgba(155, 77, 255, 0.25);
}

.hero__lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(208, 173, 255, 0.16);
  background: rgba(6, 3, 12, 0.35);
}

.panel {
  margin: 18px 0 26px;
  border-radius: 22px;
  border: 1px solid rgba(208, 173, 255, 0.16);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel__header {
  padding: 18px 20px 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(208, 173, 255, 0.12);
}

.panel__title {
  margin: 0;
  font-family: Orbitron, system-ui, sans-serif;
  letter-spacing: 0.04em;
  font-size: 16px;
}

.panel__hint {
  color: var(--muted2);
  font-size: 13px;
}

.form {
  padding: 18px 20px 20px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid--2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 820px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .header__badge {
    display: none;
  }
}

.field {
  display: grid;
  gap: 7px;
}

.field__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.field__help {
  font-size: 12px;
  color: var(--muted2);
}

.input,
.textarea {
  width: 100%;
  border-radius: 14px;
  padding: 12px 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(10, 5, 20, 0.65);
  border: 1px solid rgba(208, 173, 255, 0.18);
  outline: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.textarea {
  resize: vertical;
  min-height: 90px;
}

.input:focus,
.textarea:focus {
  border-color: rgba(255, 210, 122, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 210, 122, 0.12) inset, 0 0 0 3px rgba(106, 39, 255, 0.18);
}

.preview {
  min-height: 44px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(208, 173, 255, 0.2);
  background: rgba(6, 3, 12, 0.35);
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
}

.divider {
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(90deg, transparent, rgba(208, 173, 255, 0.18), transparent);
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Games section header: keep title and button nicely aligned */
.games-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.games-header::before {
  content: '';
}

.games-header .sectionTitle {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.games-header .add-game-btn {
  grid-column: 3;
  justify-self: end;
  align-self: center;
}

.row--between {
  justify-content: space-between;
}

.row--wrap {
  flex-wrap: wrap;
}

.sectionTitle {
  margin: 0;
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.card {
  border-radius: 18px;
  border: 1px solid rgba(208, 173, 255, 0.14);
  background: rgba(10, 5, 18, 0.55);
  box-shadow: var(--shadow2);
}

.games {
  display: grid;
  gap: 14px;
}

.game {
  padding: 16px;
}

.game__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.game__title {
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 210, 122, 0.92);
}

.iconBtn {
  appearance: none;
  border: 1px solid rgba(255, 210, 122, 0.18);
  background: rgba(15, 7, 24, 0.4);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.iconBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 210, 122, 0.32);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  position: relative;
  display: inline-flex;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip__body {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(208, 173, 255, 0.16);
  background: rgba(6, 3, 12, 0.35);
  color: rgba(255, 255, 255, 0.82);
  user-select: none;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.chip__icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(106, 39, 255, 0.18);
  border: 1px solid rgba(106, 39, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 12px;
}

.chip input:checked + .chip__body {
  border-color: rgba(255, 210, 122, 0.3);
  background: rgba(212, 175, 55, 0.07);
  box-shadow: 0 0 0 3px rgba(106, 39, 255, 0.18);
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 16px;
  padding: 12px 14px;
  font-family: Orbitron, system-ui, sans-serif;
}

.btn--ghost {
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(208, 173, 255, 0.18);
  background: rgba(6, 3, 12, 0.3);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.btn--ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 210, 122, 0.25);
}

.btn--primary {
  position: relative;
  color: rgba(10, 5, 18, 0.95);
  background:
    radial-gradient(120px 80px at 20% 20%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(255, 210, 122, 0.95), rgba(212, 175, 55, 0.88), rgba(155, 77, 255, 0.55));
  box-shadow: 0 18px 55px rgba(155, 77, 255, 0.22), 0 10px 30px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.btn--primary:hover {
  filter: saturate(108%);
}

.btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn__shine {
  position: absolute;
  inset: -40px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-70%);
  transition: transform 0.6s ease;
}

.btn--primary:hover .btn__shine {
  transform: translateX(70%);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.actions__meta {
  color: var(--muted);
  font-size: 14px;
}

.footer {
  padding: 18px 0 42px;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.footer__line {
  font-family: Orbitron, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.footer__sub {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
