/* BrainrotDrop — standalone stylesheet */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b0614;
  --bg2: #140a24;
  --card: #1b1030;
  --card2: #241540;
  --line: #34225c;
  --text: #f4efff;
  --muted: #b3a4d6;
  --accent: #a855f7;
  --accent2: #ec4899;
  --good: #4ade80;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(1200px 600px at 50% -10%, #2a1150 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: "Rubik", Arial, sans-serif;
  min-height: 100vh;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, .logo {
  font-family: "Bungee", "Rubik", Arial, sans-serif;
  letter-spacing: 0.5px;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 6, 20, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 22px;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

.live-pill b {
  color: var(--good);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Ticker */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
  padding: 8px 0;
}

.ticker-track {
  display: inline-flex;
  gap: 32px;
  white-space: nowrap;
  animation: tick 30s linear infinite;
  font-size: 13px;
  color: var(--muted);
}

.ticker-track b {
  color: var(--text);
}

@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Hero */
.hero {
  text-align: center;
  padding: 56px 0 28px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
}

/* How to */
.howto {
  margin: 24px 0 40px;
}

.howto h2, .vault h2 {
  font-size: 22px;
  margin-bottom: 16px;
  text-align: center;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 500;
  font-size: 15px;
}

.step-n {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

#search {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

#search:focus {
  border-color: var(--accent);
}

#search::placeholder {
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.chip:hover {
  color: var(--text);
}

.chip.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  color: #fff;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  padding-bottom: 60px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.25);
}

.card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 10px;
}

.card .cname {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 999px;
  padding: 3px 10px;
  color: #fff;
}

.r-godly { background: #dc2626; }
.r-secret { background: #7c3aed; }
.r-mythic { background: #db2777; }
.r-cursed { background: #111827; border: 1px solid #6d28d9; }
.r-legendary { background: #d97706; }
.r-epic { background: #2563eb; }
.r-rare { background: #059669; }
.r-common { background: #4b5563; }

.card .cpower {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 2, 12, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.mtitle {
  font-size: 20px;
  color: #fff;
  margin-bottom: 16px;
  text-align: center;
}

.mnote {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  margin-bottom: 16px;
}

.mnote.small {
  font-size: 12px;
  margin-top: 12px;
  margin-bottom: 0;
}

.mnote b {
  color: #fff;
}

.mitem {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
}

.mitem img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.mname {
  font-weight: 900;
  font-size: 17px;
  color: #fff;
  margin-bottom: 6px;
}

.mpower {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 900;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s, filter 0.12s;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.btn-verify {
  background: linear-gradient(135deg, #16a34a, #4ade80);
}

#username {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  margin-bottom: 14px;
}

#username:focus {
  border-color: var(--accent);
}

#username::placeholder {
  color: var(--muted);
}

.merror {
  color: #f87171;
  font-size: 13px;
  margin: -8px 0 12px;
  text-align: center;
}

.confirm-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.confirm-box > div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
}

.confirm-box span {
  color: var(--muted);
}

.confirm-box b {
  color: #fff;
}

.confirm-box .free {
  color: var(--good);
}

.progress {
  height: 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.4s ease;
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .hero {
    padding: 40px 0 20px;
  }
}
