:root {
  --bg: #120318;
  --panel: #1d0a2b;
  --orange: #ff7518;
  --orange-bright: #ff9a3c;
  --purple: #8a2be2;
  --text: #f3e9ff;
  --muted: #b39ccf;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #2a0e3d 0%, var(--bg) 70%);
  color: var(--text);
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 480px;
  padding: 2rem 1.25rem 3rem;
}

h1 {
  text-align: center;
  font-size: 1.8rem;
  margin: 0 0 0.25rem;
  text-shadow: 0 0 12px var(--orange);
}

.subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.status {
  text-align: center;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: #3a0e52;
  color: var(--orange-bright);
  font-size: 0.9rem;
}

.costume-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.costume-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--panel);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.15s ease;
}

.costume-item:active {
  transform: scale(0.98);
}

.costume-item.voted {
  border-color: var(--orange);
  box-shadow: 0 0 14px rgba(255, 117, 24, 0.45);
}

.costume-name {
  font-weight: 600;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.costume-votes {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--orange-bright);
  white-space: nowrap;
}

.costume-votes .bar {
  height: 6px;
  width: 60px;
  background: #3a2550;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.costume-votes .bar > span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--purple), var(--orange));
  border-radius: 4px;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 1rem 0;
}

.add-form {
  display: flex;
  gap: 0.5rem;
}

.add-form input {
  flex: 1;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #44295e;
  background: #0d0113;
  color: var(--text);
  font-size: 1rem;
}

.add-form input:focus {
  outline: 2px solid var(--orange);
}

.add-form button {
  padding: 0.75rem 1.1rem;
  border: none;
  border-radius: 10px;
  background: var(--orange);
  color: #1a0b2e;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.add-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.section-title {
  margin: 2.5rem 0 1rem;
  font-size: 1.3rem;
  text-align: center;
  text-shadow: 0 0 10px var(--purple);
}

.photo-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.photo-track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.photo-slide {
  position: relative;
  flex: 0 0 85%;
  scroll-snap-align: center;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid #3a2550;
}

.photo-slide img {
  display: block;
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  background: #000;
}

.photo-download {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(18, 3, 24, 0.75);
  color: var(--text);
  border: 1px solid var(--orange);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(2px);
}

.slider-nav {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--orange);
  background: var(--panel);
  color: var(--orange-bright);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
