:root {
  --bg-1: #12031f;
  --bg-2: #2e0838;
  --bg-3: #5a0d32;
  --gold: #ffc94a;
  --gold-2: #ff9f1c;
  --pink: #ff3d7f;
  --magenta: #c2185b;
  --orange: #ff6b1a;
  --teal: #19d3c5;
  --green: #2ee59d;
  --text: #fff6ea;
  --muted: #d9c3d6;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 220, 160, 0.25);
  --radius: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-display: 'Yatra One', 'Poppins', serif;
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 61, 127, 0.35), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(255, 159, 28, 0.25), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(25, 211, 197, 0.18), transparent 60%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  background-attachment: fixed;
  overflow-x: hidden;
}

button, input { font-family: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* ---------- Decorative background ---------- */

.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.mandala {
  position: absolute;
  width: 900px;
  height: 900px;
  opacity: 0.12;
  animation: spin 90s linear infinite;
}
.mandala.m1 { top: -380px; right: -320px; }
.mandala.m2 { bottom: -420px; left: -360px; animation-direction: reverse; animation-duration: 120s; }

@keyframes spin { to { transform: rotate(360deg); } }

.sparkle {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--gold) 40%, transparent 70%);
  animation: rise linear infinite;
  opacity: 0;
}

@keyframes rise {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--drift, 40px), -110vh) scale(1.1); opacity: 0; }
}

/* Toran (hanging festive flags) */
.toran {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  display: flex;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}
.toran::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 14px, var(--orange) 14px 28px);
}
.toran span {
  width: 34px;
  height: 40px;
  margin-top: 8px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  animation: swing 3s ease-in-out infinite;
}
.toran span:nth-child(5n + 1) { background: var(--pink); }
.toran span:nth-child(5n + 2) { background: var(--gold); animation-delay: -0.6s; }
.toran span:nth-child(5n + 3) { background: var(--green); animation-delay: -1.2s; }
.toran span:nth-child(5n + 4) { background: var(--orange); animation-delay: -1.8s; }
.toran span:nth-child(5n + 5) { background: var(--teal); animation-delay: -2.4s; }

@keyframes swing {
  0%, 100% { transform: rotate(6deg); }
  50% { transform: rotate(-6deg); }
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 20px 140px;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  margin-bottom: 36px;
  animation: fadeUp 0.9s ease both;
}

.hero .gujarati {
  font-family: 'Mukta Vaani', var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero .gujarati::before,
.hero .gujarati::after {
  content: '';
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero .gujarati::after { transform: scaleX(-1); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1.1;
  margin: 12px 0 10px;
  background: linear-gradient(90deg, var(--gold), #fff3c4, var(--pink), var(--gold-2), var(--gold));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
  text-shadow: 0 0 40px rgba(255, 201, 74, 0.25);
}

@keyframes shimmer { to { background-position: 300% 0; } }

.hero p { color: var(--muted); font-size: 1.05rem; }

.dandiya {
  position: relative;
  width: 120px;
  height: 80px;
  margin: 0 auto 6px;
}
.dandiya .stick {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 78px;
  margin-left: -5px;
  border-radius: 6px;
  transform-origin: bottom center;
  background: repeating-linear-gradient(180deg, var(--gold) 0 10px, var(--pink) 10px 20px, var(--teal) 20px 30px);
  box-shadow: 0 0 14px rgba(255, 201, 74, 0.6);
}
.dandiya .stick::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--gold));
}
.dandiya .left { animation: clashLeft 1.2s ease-in-out infinite; }
.dandiya .right { animation: clashRight 1.2s ease-in-out infinite; }
.dandiya .spark {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--gold) 35%, transparent 70%);
  opacity: 0;
  animation: clashSpark 1.2s ease-in-out infinite;
}

@keyframes clashLeft {
  0%, 100% { transform: rotate(-40deg); }
  45%, 55% { transform: rotate(-12deg); }
}
@keyframes clashRight {
  0%, 100% { transform: rotate(40deg); }
  45%, 55% { transform: rotate(12deg); }
}
@keyframes clashSpark {
  0%, 40%, 70%, 100% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Diyas */
.diyas {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 18px;
}
.diya {
  position: relative;
  width: 44px;
  height: 22px;
  background: linear-gradient(180deg, var(--orange), #a33a00);
  border-radius: 0 0 40px 40px;
}
.diya::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -22px;
  width: 12px;
  height: 22px;
  margin-left: -6px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #fff 0%, #ffe066 35%, var(--orange) 70%, transparent 72%);
  filter: drop-shadow(0 0 10px #ffb300);
  animation: flicker 0.18s ease-in-out infinite alternate;
}
.diya:nth-child(2)::before { animation-delay: 0.07s; }
.diya:nth-child(3)::before { animation-delay: 0.13s; }

@keyframes flicker {
  from { transform: scaleY(1) rotate(-2deg); opacity: 0.92; }
  to { transform: scaleY(1.12) rotate(2deg); opacity: 1; }
}

/* ---------- Glass card ---------- */

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.form-card {
  max-width: 460px;
  margin: 0 auto;
  animation: fadeUp 0.8s 0.15s ease both;
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--angle, 0deg), var(--gold), var(--pink), var(--teal), var(--gold));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderSpin 6s linear infinite;
  pointer-events: none;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes borderSpin { to { --angle: 360deg; } }

.form-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.8rem;
  margin-bottom: 6px;
  color: var(--gold);
}
.form-card .sub { color: var(--muted); margin-bottom: 24px; font-size: 0.95rem; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 201, 74, 0.18);
}
.input-wrap .prefix {
  padding: 0 4px 0 16px;
  color: var(--gold);
  font-weight: 600;
}
.input-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 1rem;
  padding: 15px 16px;
}
.input-wrap input::placeholder { color: rgba(255, 255, 255, 0.35); }

.error-text {
  min-height: 22px;
  color: #ff8fa3;
  font-size: 0.88rem;
  margin: -4px 0 10px;
}

/* ---------- Buttons ---------- */

.btn {
  --c1: var(--gold-2);
  --c2: var(--pink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 30px rgba(255, 61, 127, 0.35);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: sheen 3.2s ease-in-out infinite;
}
@keyframes sheen {
  0%, 60% { left: -120%; }
  100% { left: 160%; }
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255, 61, 127, 0.5); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }
.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.btn.ghost::after { display: none; }
.btn.danger { --c1: #ff4d6d; --c2: #c9184a; box-shadow: 0 10px 30px rgba(201, 24, 74, 0.35); }
.btn.success { --c1: #2ee59d; --c2: #0fb88a; box-shadow: 0 10px 30px rgba(15, 184, 138, 0.35); }
.btn.small { padding: 9px 14px; font-size: 0.85rem; border-radius: 10px; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ---------- Participants grid (voter) ---------- */

.greeting {
  text-align: center;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}
.greeting h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: var(--gold);
}
.greeting p { color: var(--muted); margin-top: 4px; }
.greeting .change-link {
  background: none;
  border: 0;
  color: var(--teal);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
  margin-top: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.p-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--glass);
  border: 2px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  padding: 0;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  animation: cardIn 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
  transition: transform 0.35s, border-color 0.3s, box-shadow 0.35s;
}
@keyframes cardIn { to { opacity: 1; transform: translateY(0) scale(1); } }

.p-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 201, 74, 0.4); }
.p-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.p-card .photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.p-card .photo img,
.p-card .photo .avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.p-card:hover .photo img,
.p-card:hover .photo .avatar { transform: scale(1.08); }
.p-card .photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(18, 3, 31, 0.9));
}

.p-card .info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  z-index: 1;
}
.p-card .info .num {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}
.p-card .info h3 { font-size: 1.15rem; font-weight: 600; margin-top: 2px; }

.p-card .check {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.p-card .check svg { width: 20px; height: 20px; opacity: 0; transform: scale(0.3); transition: all 0.3s; }

.p-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 201, 74, 0.25), 0 0 40px rgba(255, 201, 74, 0.45);
  transform: translateY(-8px) scale(1.02);
}
.p-card.selected .check {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-color: #fff;
  transform: scale(1.15);
}
.p-card.selected .check svg { opacity: 1; transform: scale(1); }

.avatar {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Sticky vote bar */
.vote-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  width: min(560px, calc(100% - 28px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 20px;
  border-radius: 20px;
  background: rgba(30, 6, 40, 0.85);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translate(-50%, 160%);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.vote-bar.show { transform: translate(-50%, 0); }
.vote-bar .label { flex: 1; min-width: 0; }
.vote-bar .label small { color: var(--muted); font-size: 0.78rem; }
.vote-bar .label strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--gold);
}

/* ---------- Modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 0, 14, 0.7);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease both;
}
.modal {
  width: min(420px, 100%);
  text-align: center;
  animation: popIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
.modal .modal-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(255, 201, 74, 0.15), 0 0 40px rgba(255, 201, 74, 0.4);
}
.modal .modal-photo img,
.modal .modal-photo .avatar { width: 100%; height: 100%; object-fit: cover; font-size: 2.6rem; }
.modal h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--gold); }
.modal p { color: var(--muted); margin: 8px 0 22px; }
.modal .actions { display: flex; gap: 12px; }
.modal .actions .btn { flex: 1; }

/* ---------- Success ---------- */

.success {
  max-width: 520px;
  margin: 20px auto 0;
  text-align: center;
  animation: popIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
.success .tick {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}
.success .tick circle {
  stroke: var(--green);
  stroke-width: 4;
  fill: rgba(46, 229, 157, 0.12);
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw 0.8s ease forwards;
}
.success .tick path {
  stroke: var(--green);
  stroke-width: 6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: draw 0.5s 0.7s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.success h2 { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; color: var(--gold); }
.success p { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }
.success .voted-for {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 201, 74, 0.2), rgba(255, 61, 127, 0.2));
  border: 1px solid var(--glass-border);
  font-weight: 600;
  color: var(--gold);
}

#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}

/* ---------- Notice / closed ---------- */

.notice {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.6s ease both;
}
.notice .icon { font-size: 3rem; margin-bottom: 10px; }
.notice h2 { font-family: var(--font-display); font-weight: 400; color: var(--gold); font-size: 1.8rem; }
.notice p { color: var(--muted); margin-top: 8px; }

/* ---------- Competition list ---------- */

.comp-list-head { text-align: center; margin-bottom: 24px; animation: fadeUp 0.6s ease both; }
.comp-list-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--gold); }
.comp-list-head p { color: var(--muted); margin-top: 4px; }

.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.comp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: cardIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.comp-card:hover { transform: translateY(-6px); border-color: rgba(255, 201, 74, 0.6); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4); }
.comp-card::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent, var(--pink)), transparent 70%);
  opacity: 0.35;
}
.comp-card.announced { --accent: var(--gold); border-color: rgba(255, 201, 74, 0.45); }
.comp-card.closed { --accent: #8d99ae; }
.comp-card h3 { font-size: 1.25rem; font-weight: 600; position: relative; }
.comp-card .meta { color: var(--muted); font-size: 0.88rem; }
.comp-card .cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--gold);
}

.status-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(46, 229, 157, 0.12);
  border: 1px solid rgba(46, 229, 157, 0.4);
}
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.4s ease-in-out infinite; }
.status-pill.closed { color: #ff8fa3; background: rgba(255, 77, 109, 0.12); border-color: rgba(255, 77, 109, 0.4); }
.status-pill.announced { color: var(--gold); background: rgba(255, 201, 74, 0.14); border-color: rgba(255, 201, 74, 0.5); }
@keyframes blink { 50% { opacity: 0.3; } }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}
.back-link:hover { background: rgba(255, 255, 255, 0.12); }

.comp-title-tag {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ---------- Categories (Best Dance / Best Dress ...) ---------- */

.cat-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  animation: fadeUp 0.5s ease both;
}
.cat-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.cat-tab .emoji { font-size: 1.6rem; line-height: 1; }
.cat-tab .txt strong { display: block; font-size: 0.95rem; }
.cat-tab .txt small { display: block; color: var(--muted); font-size: 0.75rem; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-tab:hover { transform: translateY(-2px); }
.cat-tab.active {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 159, 28, 0.25), rgba(255, 61, 127, 0.25));
  box-shadow: 0 0 26px rgba(255, 201, 74, 0.3);
  transform: scale(1.04);
}
.cat-tab.chosen .txt small { color: var(--green); }
.cat-tab.locked { opacity: 0.6; border-style: dashed; }
.cat-tab.locked .txt small { color: var(--gold); }

.cat-prompt {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--gold);
  margin-bottom: 20px;
}
.cat-prompt.swap { animation: popIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }

.comp-card .tags { display: flex; flex-wrap: wrap; gap: 6px; position: relative; }
.comp-card .tags span {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.confirm-list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; text-align: left; }
.confirm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 201, 74, 0.25);
}
.confirm-row .thumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.confirm-row .thumb img, .confirm-row .thumb .avatar { width: 100%; height: 100%; object-fit: cover; font-size: 1.2rem; }
.confirm-row small { display: block; color: var(--muted); font-size: 0.78rem; }
.confirm-row strong { display: block; }
.confirm-row.skipped { border-style: dashed; opacity: 0.7; }

.voted-list { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.voted-list .voted-for { margin-top: 0; }

.results-cats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

/* ---------- Results announcement ---------- */

.results-view { animation: fadeUp 0.6s ease both; }
.winner-spotlight {
  position: relative;
  text-align: center;
  padding: 30px 20px 10px;
  margin-bottom: 20px;
}
.winner-spotlight .announce-label {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--muted);
  animation: fadeUp 0.6s 0.2s ease both;
}
.winner-photo-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 26px auto 18px;
}
.winner-photo-wrap .rays {
  position: absolute;
  inset: -70px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 201, 74, 0.35) 0deg 8deg, transparent 8deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%);
  mask: radial-gradient(circle, #000 30%, transparent 70%);
  animation: spin 18s linear infinite;
}
.winner-photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--gold);
  box-shadow: 0 0 0 10px rgba(255, 201, 74, 0.15), 0 0 60px rgba(255, 201, 74, 0.6);
  animation: popIn 0.8s 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}
.winner-photo img, .winner-photo .avatar { width: 100%; height: 100%; object-fit: cover; font-size: 4rem; }
.winner-photo-wrap .crown {
  position: absolute;
  top: -46px;
  left: 50%;
  margin-left: -26px;
  font-size: 3.2rem;
  z-index: 2;
}
.winner-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.15;
  background: linear-gradient(90deg, var(--gold), #fff3c4, var(--pink), var(--gold));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}
.winner-name-wrap { animation: popIn 0.7s 0.7s ease both; }
.winner-votes { color: var(--muted); margin-top: 6px; animation: fadeUp 0.6s 0.9s ease both; }
.results-total { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 18px; }
.results-card { margin-top: 24px; }

/* ---------- Toast ---------- */

.toast-wrap {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100% - 28px));
}
.toast {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(30, 6, 40, 0.95);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  animation: toastIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
.toast.error { border-color: rgba(255, 77, 109, 0.6); }
.toast.success { border-color: rgba(46, 229, 157, 0.6); }
.toast.out { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn { from { opacity: 0; transform: translateY(-20px) scale(0.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-20px); } }

/* ---------- Footer ---------- */

.footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  margin-top: 60px;
}
.footer a { color: rgba(255, 255, 255, 0.55); }

/* ---------- Shared animations ---------- */

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.8); } }

@media (max-width: 600px) {
  .page { padding: 70px 14px 130px; }
  .card { padding: 24px 20px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .p-card .info { padding: 12px; }
  .p-card .info h3 { font-size: 0.98rem; }
  .p-card .check { width: 32px; height: 32px; top: 10px; right: 10px; }
  .avatar { font-size: 2.4rem; }
  .toran span { width: 26px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
