/* ============ JOMBASTIC — neon synthwave theme ============ */

:root {
  --bg: #0a0116;
  --bg-card: #0d0420;
  --text: #f2ecfa;
  --text-dim: #b9a9d6;
  --gold: #ffb52e;
  --orange: #ff8a1e;
  --pink: #ff2ea6;
  --magenta: #e93cf2;
  --purple: #9b4dff;
  --cyan: #2ee6ff;
  --green: #53fc18;
  --font-display: 'Archivo Black', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

/* ============ CORNER NEON ARCS (fixed, always on screen) ============ */

body::before,
body::after {
  content: '';
  position: fixed;
  z-index: 0;
  top: -78vmax;
  width: 120vmax;
  height: 120vmax;
  border-radius: 50%;
  pointer-events: none;
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 3.5px));
  mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 3.5px));
  animation: arc-pulse 4.5s ease-in-out infinite alternate;
}

body::before {
  left: -74vmax;
  background: conic-gradient(from 0deg,
    transparent 98deg, rgba(255, 46, 110, 0.95) 135deg, transparent 172deg);
  filter: drop-shadow(0 0 12px rgba(255, 46, 110, 0.8));
}

body::after {
  right: -74vmax;
  background: conic-gradient(from 0deg,
    transparent 188deg, rgba(46, 170, 255, 0.95) 225deg, transparent 262deg);
  filter: drop-shadow(0 0 12px rgba(46, 170, 255, 0.8));
  animation-delay: 2.2s;
}

@keyframes arc-pulse {
  from { opacity: 0.35; }
  to   { opacity: 1; }
}

/* soft neon glow hugging the screen edges, on top of everything */
.edge-glow {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  background:
    radial-gradient(48vw 34vh at 0% 0%, rgba(255, 46, 110, 0.26), transparent 68%),
    radial-gradient(48vw 34vh at 100% 0%, rgba(46, 170, 255, 0.24), transparent 68%),
    radial-gradient(48vw 34vh at 0% 100%, rgba(155, 77, 255, 0.24), transparent 68%),
    radial-gradient(48vw 34vh at 100% 100%, rgba(233, 60, 242, 0.24), transparent 68%);
  box-shadow:
    inset 28px 0 76px -34px rgba(255, 46, 110, 0.62),
    inset -28px 0 76px -34px rgba(46, 170, 255, 0.62),
    inset 0 28px 76px -34px rgba(155, 77, 255, 0.55),
    inset 0 -28px 76px -34px rgba(233, 60, 242, 0.55);
  animation: edge-breathe 3.2s ease-in-out infinite alternate;
}

@keyframes edge-breathe {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

/* keep page content above the arcs */
.hero-inner,
.giveaways,
.leaderboards,
.info-grid,
.footer {
  position: relative;
  z-index: 1;
}

/* ============ NAV ============ */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 1, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(155, 77, 255, 0.18);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  position: relative;
  z-index: 5;
  width: 86px;
  height: 86px;
  margin: -8px 0 -30px 3.2rem;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 138, 30, 0.55));
}

.brand-logo.lg { width: 64px; height: 64px; margin: 0; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.soon-tag {
  display: inline-block;
  background: rgba(155, 77, 255, 0.25);
  border: 1px solid rgba(155, 77, 255, 0.5);
  color: #cfa9ff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-signin {
  padding: 0.6rem 1.6rem;
  color: var(--text);
  font-size: 0.9rem;
  border: 1.5px solid var(--magenta);
  border-radius: 10px;
  box-shadow: 0 0 14px rgba(233, 60, 242, 0.35), inset 0 0 10px rgba(233, 60, 242, 0.12);
}

.btn-signin:hover {
  background: rgba(233, 60, 242, 0.15);
  box-shadow: 0 0 24px rgba(233, 60, 242, 0.6), inset 0 0 14px rgba(233, 60, 242, 0.2);
  transform: translateY(-1px);
}

/* mobile hamburger */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  padding: 4.5rem 0 2.5rem;
  text-align: center;
  overflow: hidden;
}

.meteors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../assets/bg-city.webp') center top / cover no-repeat;
  filter: saturate(1.25) brightness(1.12);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,1,22,0.18) 0%, rgba(10,1,22,0.08) 45%, var(--bg) 100%);
}

.hero-inner { position: relative; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8.5vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.5rem;
  animation: title-glow 4s ease-in-out infinite alternate;
}

.hero-title span {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  /* layer 1: moving shine sweep, layer 2: word color gradient */
  background-size: 300% 100%, 100% 100%;
  background-position: 120% 0, 0 0;
  background-repeat: no-repeat;
  animation:
    word-in 0.9s cubic-bezier(0.2, 1.2, 0.35, 1) both,
    title-shine 4.5s ease-in-out infinite;
}

.hero-title .w1 {
  background-image:
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.85) 50%, transparent 58%),
    linear-gradient(180deg, #ffd66e, #ff8a1e);
  animation-delay: 0.1s, 1.2s;
}

.hero-title .w2 {
  background-image:
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.85) 50%, transparent 58%),
    linear-gradient(180deg, #ff7bd1, #ff2e8b);
  animation-delay: 0.32s, 1.5s;
}

.hero-title .w3 {
  background-image:
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.85) 50%, transparent 58%),
    linear-gradient(180deg, #d98cff, #9b4dff);
  animation-delay: 0.54s, 1.8s;
}

@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes title-shine {
  0%       { background-position: 120% 0, 0 0; }
  28%, 100% { background-position: -180% 0, 0 0; }
}

@keyframes title-glow {
  from { filter: drop-shadow(0 6px 26px rgba(233, 60, 242, 0.3)); }
  to   { filter: drop-shadow(0 6px 42px rgba(233, 60, 242, 0.6)); }
}

.hero-sub {
  margin-top: 1.6rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text);
  font-weight: 500;
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-sub .accent {
  color: var(--gold);
  font-weight: 800;
}

.section-divider {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.section-divider h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 181, 46, 0.5);
}

.section-divider .spark {
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold);
  font-size: 1.1rem;
}

/* ============ GIVEAWAY CARDS ============ */

.giveaways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0 0;
}

.giveaway-card,
.leaderboard-banner {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.giveaway-card img,
.leaderboard-banner img {
  width: 100%;
  height: auto;
}

.giveaway-card:hover,
.leaderboard-banner:hover {
  transform: translateY(-6px) scale(1.012);
}

.glow-gold:hover   { filter: drop-shadow(0 10px 34px rgba(255, 181, 46, 0.45)); }
.glow-green:hover  { filter: drop-shadow(0 10px 34px rgba(83, 252, 24, 0.4)); }
.glow-purple:hover { filter: drop-shadow(0 10px 34px rgba(155, 77, 255, 0.45)); }

/* ============ FEATURED CLASH CARD (frame + floating skin) ============ */

.featured-clash {
  position: relative;
  container-type: inline-size;
  --rarity: #eb4b4b;
}

.fc-frame {
  width: 100%;
  height: auto;
}

.fc-skin {
  position: absolute;
  left: 50%;
  top: 49.5%;
  width: 49%;
  max-height: 46%;
  object-fit: contain;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55));
  animation: skin-bob 3.4s ease-in-out infinite;
}

/* rarity glow behind the skin — a pure-color layer that only fades in/out,
   so no color blending or hue shifts are possible */
.fc-skin-glow {
  position: absolute;
  left: 50%;
  top: 49.5%;
  width: 52%;
  height: 38%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--rarity), transparent 72%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.featured-clash:hover .fc-skin-glow { opacity: 0.55; }

/* whole-card hover glow: soft light BEHIND the card in the pure rarity color
   (fades in via opacity only, so it can never blend through other hues) */
.featured-clash::after {
  content: '';
  position: absolute;
  inset: 7% 4%;
  border-radius: 30px;
  z-index: -1;
  box-shadow: 0 0 60px 14px color-mix(in srgb, var(--rarity) 45%, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.featured-clash:hover::after { opacity: 1; }

.featured-clash:hover {
  transform: translateY(-6px) scale(1.012);
}

@keyframes skin-bob {
  0%, 100% { transform: translate(-50%, -46%); }
  50%      { transform: translate(-50%, -56%); }
}

.fc-time,
.fc-winner {
  position: absolute;
  bottom: 6.2%;
  height: 6%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 2.7cqw;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
}

.fc-time {
  left: 17.3%;
  width: 16%;
  color: #ffd66e;
  text-shadow: 0 0 10px rgba(255, 181, 46, 0.6);
}

.fc-winner {
  left: 72%;
  width: 16%;
  color: #ff7bec;
  text-shadow: 0 0 10px rgba(233, 60, 242, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .fc-skin { animation: none; }
}

/* ============ LEADERBOARD BANNER ============ */

.leaderboards {
  padding: 1rem 0 0;
}

/* the banner PNG has large transparent padding — trim it visually */
.leaderboard-banner { overflow: hidden; }

.leaderboard-banner img {
  margin: -12% 0 -11%;
}

/* ============ INFO GRID ============ */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.15fr;
  gap: 1.6rem;
  padding: 2.4rem 0 3.5rem;
}

.card {
  position: relative;
  background: linear-gradient(160deg, rgba(20, 8, 40, 0.9), rgba(10, 1, 22, 0.95));
  border-radius: 20px;
  padding: 1.6rem 1.6rem 1.8rem;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-community { --c1: #2ee6ff; --c2: #e93cf2; box-shadow: 0 0 26px rgba(46, 230, 255, 0.12); }
.card-updates   { --c1: #ff2ea6; --c2: #9b4dff; box-shadow: 0 0 26px rgba(255, 46, 166, 0.12); }
.card-winners   { --c1: #ff2e5e; --c2: #ffb52e; box-shadow: 0 0 26px rgba(255, 181, 46, 0.12); }

.card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.card-head h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-head .ico { width: 26px; height: 26px; }

.card-head.cyan .ico { color: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); }
.card-head.pink .ico { color: var(--pink); filter: drop-shadow(0 0 8px var(--pink)); }
.card-head.gold .ico { color: var(--gold); filter: drop-shadow(0 0 8px var(--gold)); }

.card-text {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
}

/* community */
.card-community { min-height: 230px; }

.btn-discord {
  position: relative;
  z-index: 1;
  padding: 0.65rem 1.3rem;
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 16px rgba(46, 230, 255, 0.3), inset 0 0 10px rgba(46, 230, 255, 0.1);
}

.btn-discord .ico { width: 20px; height: 20px; }

.btn-discord:hover {
  background: rgba(46, 230, 255, 0.12);
  box-shadow: 0 0 26px rgba(46, 230, 255, 0.55);
  transform: translateY(-1px);
}

.community-art {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 55%;
  height: 75%;
  background: url('../assets/bg-city.webp') 78% 45% / 260% no-repeat;
  border-radius: 14px;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse at 75% 70%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 70%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* updates */
.updates-list {
  list-style: none;
}

.updates-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 46, 166, 0.14);
}

.updates-list li:last-child { border-bottom: none; }

.updates-list .dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
}

.upd-text {
  font-size: 0.93rem;
  font-weight: 500;
}

.upd-date {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* winners */
.winners-list {
  list-style: none;
}

.winners-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
}

.avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px rgba(255, 181, 46, 0.4);
}

.av1 { background: radial-gradient(circle at 35% 30%, #ffd66e, #b3541e); }
.av2 { background: radial-gradient(circle at 35% 30%, #ff7bd1, #7a1fa8); }
.av3 { background: radial-gradient(circle at 35% 30%, #7bdcff, #1e4bb3); }

.win-name {
  font-size: 0.93rem;
  font-weight: 600;
}

.win-prize {
  margin-left: auto;
  color: var(--gold);
  font-size: 0.87rem;
  font-weight: 700;
  text-align: right;
  text-shadow: 0 0 10px rgba(255, 181, 46, 0.35);
}

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid rgba(155, 77, 255, 0.18);
  background: linear-gradient(180deg, rgba(13, 4, 32, 0.6), rgba(10, 1, 22, 1));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.4rem 0 1.6rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 320px;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 1.1rem;
}

.footer-social a {
  color: var(--text-dim);
  transition: color 0.2s, filter 0.2s, transform 0.2s;
}

.footer-social a:hover {
  color: var(--text);
  filter: drop-shadow(0 0 8px var(--magenta));
  transform: translateY(-2px);
}

.footer-social svg { width: 22px; height: 22px; }

.footer-bottom {
  text-align: center;
  padding: 0 0 1.6rem;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.footer-bottom .sep { margin: 0 0.5rem; opacity: 0.5; }

/* ============ REVEAL ANIMATION ============ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title,
  .hero-title span,
  .edge-glow,
  body::before,
  body::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ UTILITIES ============ */

.hidden { display: none !important; }

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
}

.nav-user {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 181, 46, 0.4);
  white-space: nowrap;
}

.btn-logout { cursor: pointer; background: none; font-family: var(--font-body); font-size: 0.9rem; }

/* ============ PAGE HEAD ============ */

.page-main {
  position: relative;
  z-index: 1;
  min-height: 60vh;
  padding-bottom: 3.5rem;
}

.page-head {
  text-align: center;
  padding: 3rem 0 2rem;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  background-image: linear-gradient(90deg, #ffd66e, #ff2ea6 45%, #9b4dff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 22px rgba(233, 60, 242, 0.35));
}

.page-head p {
  margin-top: 0.8rem;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ============ BUTTONS ============ */

.btn-primary {
  justify-content: center;
  padding: 0.7rem 1.6rem;
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 4px 18px rgba(255, 46, 166, 0.4);
  font-family: var(--font-body);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(255, 46, 166, 0.6);
}

.btn-primary:disabled { opacity: 0.6; cursor: default; }

.btn-block { width: 100%; }

.btn-entered {
  justify-content: center;
  padding: 0.7rem 1.6rem;
  color: var(--green);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(83, 252, 24, 0.08);
  border: 1.5px solid rgba(83, 252, 24, 0.6);
  box-shadow: 0 0 14px rgba(83, 252, 24, 0.25);
  cursor: default;
  font-family: var(--font-body);
}

/* ============ FORMS ============ */

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.field small {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-dim);
  font-size: 0.76rem;
  opacity: 0.8;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(10, 1, 22, 0.7);
  border: 1.5px solid rgba(155, 77, 255, 0.35);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea { resize: vertical; }

.field select { appearance: none; cursor: pointer; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 14px rgba(255, 46, 166, 0.35);
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(185, 169, 214, 0.45); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-msg {
  min-height: 1.2rem;
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-msg.error { color: #ff5c7a; }
.form-msg.success { color: var(--green); }

/* ============ AUTH PAGE ============ */

.auth-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 3.5rem 0 4.5rem;
  min-height: calc(100vh - 220px);
}

.auth-card {
  position: relative;
  width: min(430px, 100%);
  background: linear-gradient(160deg, rgba(20, 8, 40, 0.92), rgba(10, 1, 22, 0.96));
  border-radius: 20px;
  padding: 2rem 1.9rem;
  text-align: center;
  box-shadow: 0 0 34px rgba(233, 60, 242, 0.18);
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(140deg, var(--gold), var(--pink), var(--purple));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.auth-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 14px rgba(255, 138, 30, 0.55));
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.auth-tab {
  padding: 0.6rem;
  background: none;
  border: 1.5px solid rgba(155, 77, 255, 0.35);
  border-radius: 10px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  color: var(--text);
  border-color: var(--pink);
  background: rgba(255, 46, 166, 0.12);
  box-shadow: 0 0 14px rgba(255, 46, 166, 0.3);
}

.auth-form { text-align: left; }

/* ============ GIVEAWAY CARDS ============ */

.ga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 1.6rem;
  padding-bottom: 1.5rem;
}

.ga-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: linear-gradient(160deg, rgba(20, 8, 40, 0.9), rgba(10, 1, 22, 0.95));
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.4);
}

.ga-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.theme-gold   { --c1: #ffb52e; --c2: #ff2ea6; --glow: 255, 181, 46; }
.theme-pink   { --c1: #ff2ea6; --c2: #9b4dff; --glow: 255, 46, 166; }
.theme-purple { --c1: #9b4dff; --c2: #2ee6ff; --glow: 155, 77, 255; }
.theme-green  { --c1: #53fc18; --c2: #2ee6ff; --glow: 83, 252, 24; }
.theme-cyan   { --c1: #2ee6ff; --c2: #e93cf2; --glow: 46, 230, 255; }

.ga-card { box-shadow: 0 0 26px rgba(var(--glow), 0.14); }

.ga-badge {
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  border: 1.5px solid rgba(var(--glow), 0.7);
  border-radius: 9px;
  color: rgb(var(--glow));
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(var(--glow), 0.5);
}

.ga-title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.25;
}

.ga-prize {
  font-family: var(--font-display);
  font-size: 1.35rem;
  background-image: linear-gradient(90deg, var(--c1), var(--c2));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(var(--glow), 0.35));
}

.ga-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ga-code {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.ga-code-chip {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.15rem 0.6rem;
  background: rgba(255, 181, 46, 0.12);
  border: 1px solid rgba(255, 181, 46, 0.55);
  border-radius: 7px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ga-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(var(--glow), 0.2);
}

.ga-meta-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ga-countdown {
  font-weight: 900;
  font-size: 1.05rem;
  color: rgb(var(--glow));
  text-shadow: 0 0 12px rgba(var(--glow), 0.5);
  font-variant-numeric: tabular-nums;
}

.ga-entries { text-align: right; }

.ga-entries-num {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--magenta);
  text-shadow: 0 0 12px rgba(233, 60, 242, 0.5);
}

.ga-winner {
  padding: 0.65rem 1rem;
  text-align: center;
  background: rgba(255, 181, 46, 0.1);
  border: 1.5px solid rgba(255, 181, 46, 0.55);
  border-radius: 12px;
  color: var(--gold);
  font-size: 0.95rem;
}

.ga-winner.pending {
  background: rgba(155, 77, 255, 0.1);
  border-color: rgba(155, 77, 255, 0.5);
  color: #cfa9ff;
}

.ga-ended { opacity: 0.72; }

.ga-empty {
  text-align: center;
  padding: 2.5rem 0 3rem;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.ga-empty .spark { color: var(--gold); text-shadow: 0 0 12px var(--gold); }

.ga-grid-ended { margin-top: 1.6rem; }

/* ============ ADMIN ============ */

.admin-stats {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
  padding: 0.9rem 1.4rem;
  background: rgba(20, 8, 40, 0.8);
  border: 1.5px solid rgba(155, 77, 255, 0.35);
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(155, 77, 255, 0.12);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(255, 181, 46, 0.45);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.6rem;
  align-items: start;
}

.admin-card { overflow: visible; }

.admin-card { --c1: #ffb52e; --c2: #ff2ea6; }
.admin-card:last-child { --c1: #ff2ea6; --c2: #9b4dff; }

.manage-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.manage-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  background: rgba(10, 1, 22, 0.6);
  border: 1px solid rgba(var(--glow, 155, 77, 255), 0.35);
  border-radius: 14px;
}

.manage-info { flex: 1; min-width: 200px; }

.manage-title { font-size: 0.98rem; }

.manage-sub {
  margin-top: 0.25rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.sep-dot { opacity: 0.5; }

.manage-winner {
  margin-top: 0.35rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
}

.pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pill-active { background: rgba(83, 252, 24, 0.12); color: var(--green); border: 1px solid rgba(83, 252, 24, 0.5); }
.pill-ended  { background: rgba(185, 169, 214, 0.1); color: var(--text-dim); border: 1px solid rgba(185, 169, 214, 0.35); }
.pill-drawn  { background: rgba(255, 181, 46, 0.12); color: var(--gold); border: 1px solid rgba(255, 181, 46, 0.5); }

.manage-actions { display: flex; gap: 0.55rem; }

.btn-mini {
  padding: 0.45rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-draw {
  color: var(--gold);
  background: rgba(255, 181, 46, 0.1);
  border: 1.5px solid rgba(255, 181, 46, 0.6);
}

.btn-draw:hover:not(:disabled) { background: rgba(255, 181, 46, 0.22); }
.btn-draw:disabled { opacity: 0.45; cursor: default; }

.btn-delete {
  color: #ff5c7a;
  background: rgba(255, 92, 122, 0.08);
  border: 1.5px solid rgba(255, 92, 122, 0.55);
}

.btn-delete:hover { background: rgba(255, 92, 122, 0.2); }

/* featured card editor */
.admin-featured {
  margin-bottom: 1.6rem;
  --c1: #ffb52e;
  --c2: #9b4dff;
}

.featured-editor {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.featured-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem 0.8rem;
  background: rgba(10, 1, 22, 0.6);
  border: 1px solid rgba(255, 181, 46, 0.3);
  border-radius: 14px;
}

.featured-preview img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}

.featured-preview-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field input[type='file'] {
  padding: 0.5rem;
  cursor: pointer;
}

.field input[type='file']::file-selector-button {
  margin-right: 0.8rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 181, 46, 0.12);
  border: 1.5px solid rgba(255, 181, 46, 0.6);
  border-radius: 8px;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  .featured-editor { grid-template-columns: 1fr; }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1000px) {
  .info-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { flex-direction: column; }
  .footer-social { justify-content: center; }
  .admin-grid { grid-template-columns: 1fr; }
}

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

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 1, 22, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1.5px solid rgba(233, 60, 242, 0.35);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
    padding: 0.4rem 0 0.6rem;
  }

  .nav-links.open { display: flex; }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(155, 77, 255, 0.12);
  }

  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem 0;
    border-bottom: none;
    font-size: 1.02rem;
  }

  .btn-signin { margin-left: auto; padding: 0.5rem 1.1rem; font-size: 0.8rem; }
  .nav { gap: 1rem; }
  .nav-toggle { margin-left: 0; order: 3; }
  .nav-auth { margin-left: auto; }
  .field-row { grid-template-columns: 1fr; }
}

/* ============ MOBILE POLISH ============ */

@media (max-width: 600px) {
  .container { width: 94vw; }

  /* header */
  .nav { gap: 0.8rem; padding: 0.55rem 0; }

  .brand-logo {
    width: 68px;
    height: 68px;
    margin: -6px 0 -22px 0.4rem;
  }

  .btn-signin { padding: 0.5rem 1.05rem; font-size: 0.8rem; }
  .nav-user { font-size: 0.82rem; }

  /* hero */
  .hero { padding: 2.6rem 0 1.8rem; }
  .hero-title { gap: 0 0.9rem; }

  .hero-sub {
    margin-top: 1.1rem;
    font-size: 0.98rem;
    padding: 0 0.6rem;
  }

  .section-divider { margin-top: 2rem; gap: 0.6rem; }

  .section-divider h2 {
    letter-spacing: 0.2em;
    font-size: 0.92rem;
  }

  /* sections */
  .giveaways { gap: 1.1rem; padding-top: 0.9rem; }
  .leaderboards { padding-top: 0.5rem; }
  .info-grid { gap: 1.1rem; padding: 1.6rem 0 2.4rem; }
  .card { padding: 1.25rem 1.15rem 1.4rem; }
  .card-community { min-height: 0; }

  /* updates rows — keep the date on one line */
  .updates-list li { gap: 0.6rem; padding: 0.75rem 0; }
  .upd-text { flex: 1; font-size: 0.9rem; }
  .upd-date { white-space: nowrap; font-size: 0.78rem; }

  /* winners rows */
  .winners-list li { gap: 0.6rem; }
  .win-name { font-size: 0.88rem; }

  .win-prize {
    font-size: 0.78rem;
    line-height: 1.35;
    max-width: 45%;
  }

  /* giveaways page */
  .page-head { padding: 2.1rem 0 1.3rem; }
  .page-head p { font-size: 0.95rem; padding: 0 0.6rem; }
  .page-main { padding-bottom: 2.4rem; }
  .ga-grid { gap: 1.1rem; }
  .ga-card { padding: 1.25rem 1.15rem 1.35rem; }
  .ga-prize { font-size: 1.2rem; }

  /* auth */
  .auth-wrap { padding: 1.8rem 0 3rem; }
  .auth-card { padding: 1.7rem 1.35rem; }

  /* admin */
  .admin-stats { gap: 0.7rem; margin-bottom: 1.4rem; }
  .stat-chip { min-width: 96px; padding: 0.65rem 0.9rem; flex: 1; }
  .stat-num { font-size: 1.3rem; }
  .admin-card { padding: 1.25rem 1.1rem 1.4rem; }
  .manage-item { padding: 0.8rem 0.85rem; }
  .manage-actions { width: 100%; }
  .manage-actions .btn-mini { flex: 1; justify-content: center; }

  /* footer */
  .footer-inner { gap: 1.4rem; padding: 1.9rem 0 1.2rem; }
  .footer-links { gap: 1.1rem 1.5rem; }
  .footer-social { gap: 1.6rem; }
  .footer-social svg { width: 26px; height: 26px; }
  .footer-bottom { padding: 0 1rem 1.4rem; }

  /* calmer edge glow on phones */
  .edge-glow {
    box-shadow:
      inset 16px 0 46px -24px rgba(255, 46, 110, 0.5),
      inset -16px 0 46px -24px rgba(46, 170, 255, 0.5),
      inset 0 16px 46px -24px rgba(155, 77, 255, 0.45),
      inset 0 -16px 46px -24px rgba(233, 60, 242, 0.45);
  }
}
