/* ==========================================================================
   Pizzata di Classe - Cascina California Milano
   Mobile-First & High-Impact Interactive Design System
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --color-primary: #e63946;
  --color-primary-dark: #b51726;
  --color-primary-light: #ff6b6b;
  --color-secondary: #f4a261;
  --color-secondary-dark: #e76f51;

  --color-gold: #f59e0b;
  --color-silver: #94a3b8;
  --color-bronze: #d97706;

  --color-yes: #10b981;
  --color-yes-dim: rgba(16, 185, 129, 0.15);
  --color-yes-border: #34d399;

  --color-maybe: #f59e0b;
  --color-maybe-dim: rgba(245, 158, 11, 0.15);
  --color-maybe-border: #fbbf24;

  --color-no: #ef4444;
  --color-no-dim: rgba(239, 68, 68, 0.15);
  --color-no-border: #f87171;

  --color-bg: #0f1115;
  --color-surface: #181b22;
  --color-surface-elevated: #20242e;
  --color-surface-hover: #262b37;
  --color-surface-border: #2e3442;

  --color-text: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-text-dim: #6b7280;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);

  --focus-ring: 3px solid #ff6b6b;
}

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

html {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 4.5rem;
}

/* Fullscreen Confetti Canvas */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Header & Hero
   ========================================================================== */

.hero-header {
  position: relative;
  min-height: clamp(440px, 55dvh, 620px);
  display: flex;
  align-items: flex-end;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 3.5vw, 2.5rem);
  overflow: hidden;
}

.hero-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: brightness(0.7) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 17, 21, 0.35) 0%,
    rgba(15, 17, 21, 0.8) 60%,
    var(--color-bg) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: rgba(230, 57, 70, 0.92);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 1.1rem + 3.5vw, 3.2rem);
  line-height: 1.18;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.hero-venue {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.25rem);
  color: var(--color-secondary);
  margin-bottom: 0.65rem;
}

.venue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-secondary);
  text-decoration: none;
  border-bottom: 1px dashed var(--color-secondary);
  transition: opacity 0.2s;
}

.venue-link:hover {
  opacity: 0.85;
}

.venue-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  stroke: var(--color-secondary);
}

.hero-desc {
  font-size: clamp(0.92rem, 0.88rem + 0.25vw, 1.05rem);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.hero-desc strong {
  color: #ffffff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 48px;
}

.btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: var(--color-surface-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

.btn-large {
  width: 100%;
  padding: 1.1rem 2rem;
  font-size: 1.15rem;
}

.btn-micro {
  padding: 0.35rem 0.65rem;
  background: var(--color-surface-hover);
  color: var(--color-text);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-micro:hover {
  background: #2f3647;
  color: #fff;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.main-container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(0.85rem, 3vw, 2rem) 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem);
  font-weight: 700;
  color: #ffffff;
}

.section-sub {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* ==========================================================================
   STEP 1: Roster Member Selection (Perentorio e d'impatto)
   ========================================================================== */

.roster-step-banner {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(244, 162, 97, 0.08));
  border: 1px solid rgba(230, 57, 70, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.roster-badge-alert {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-primary-light);
  background: rgba(230, 57, 70, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.roster-headline {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.65rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.roster-sub {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Griglia Compagni di Classe */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.member-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  background: var(--color-bg);
  border: 1.5px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  min-height: 56px;
}

.member-card:hover {
  border-color: #4b556b;
  background: #151821;
  transform: translateY(-2px);
}

.member-card:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.member-card.selected {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.18), rgba(244, 162, 97, 0.12));
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
  transform: scale(1.02);
}

.member-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #374151, #1f2937);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.member-card.selected .member-avatar {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary-dark));
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.5);
}

.member-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.member-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-status {
  font-size: 0.72rem;
  font-weight: 600;
}

.status-voted {
  color: var(--color-yes);
}

.status-pending {
  color: var(--color-text-dim);
}

/* Voter greeting card */
.voter-greeting-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #1d222e;
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.5rem;
}

.greeting-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.greeting-info {
  flex: 1;
}

.greeting-pre {
  display: block;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.greeting-name {
  font-size: 1.05rem;
  color: #ffffff;
  margin-right: 0.5rem;
}

.greeting-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(244, 162, 97, 0.2);
  color: var(--color-secondary);
  border: 1px solid rgba(244, 162, 97, 0.35);
}

.btn-change-member {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.btn-change-member:hover {
  color: #fff;
  border-color: #fff;
}

/* ==========================================================================
   Podium / Best Date Banner
   ========================================================================== */

.podium-card {
  background: linear-gradient(135deg, #281d0f 0%, #1a150e 100%);
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.22);
}

.podium-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1 1 250px;
}

.podium-badge {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  background: var(--color-gold);
  color: #1a1005;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  flex-shrink: 0;
}

.podium-info h2 {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 700;
}

.podium-info p {
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

.podium-stats {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  color: #fcd34d;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ==========================================================================
   Date Filtering & Weekend Groups
   ========================================================================== */

.dates-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.dates-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.dates-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-surface-border);
}

.month-tabs {
  display: inline-flex;
  background: var(--color-bg);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-surface-border);
  gap: 3px;
}

.tab-btn {
  padding: 0.4rem 0.85rem;
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  background: var(--color-surface-hover);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.quick-bulk-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.weekend-groups-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.weekend-group-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  transition: border-color 0.15s;
}

.weekend-group-card:hover {
  border-color: #3e4659;
}

.weekend-group-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.weekend-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.weekend-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.weekend-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(244, 162, 97, 0.18);
  color: var(--color-secondary);
}

.weekend-batch-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.weekend-batch-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: var(--color-yes);
}

.weekend-days-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==========================================================================
   Date Row & Segmented Voting
   ========================================================================== */

.date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: var(--color-bg);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background-color 0.15s;
}

.date-row:hover {
  background: #13161c;
}

.date-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 160px;
}

.date-calendar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #1e222d;
  border-radius: var(--radius-xs);
  border: 1px solid #303747;
  flex-shrink: 0;
}

.date-day-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.date-month-txt {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.date-day-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
}

.date-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.vote-choices {
  display: inline-flex;
  background: #14171f;
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid #282e3c;
  gap: 3px;
  flex-shrink: 0;
}

.vote-choice-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  user-select: none;
  color: var(--color-text-muted);
  transition: all 0.15s ease;
  min-height: 42px;
}

.vote-choice-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vote-choice-label:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.vote-choice-label:has(input:focus-visible) {
  outline: var(--focus-ring);
  outline-offset: 1px;
}

.vote-choice-label:has(input[value="yes"]:checked) {
  background: var(--color-yes);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45);
}

.vote-choice-label:has(input[value="maybe"]:checked) {
  background: var(--color-maybe);
  color: #1a1005;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.45);
}

.vote-choice-label:has(input[value="no"]:checked) {
  background: var(--color-no);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
}

/* ==========================================================================
   DOPOCENA: Scelta e Proposta Posti
   ========================================================================= */

.after-dinner-box {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin-bottom: 2rem;
}

.after-dinner-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.after-dinner-icon {
  font-size: 1.8rem;
}

.after-dinner-header h3 {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
}

.after-dinner-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.after-dinner-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.after-dinner-choice-card {
  position: relative;
  display: block;
  background: var(--color-bg);
  border: 1.5px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.after-dinner-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.choice-emoji {
  font-size: 1.4rem;
}

.choice-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.choice-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.after-dinner-choice-card:has(input:checked) {
  border-color: var(--color-secondary);
  background: linear-gradient(135deg, rgba(244, 162, 97, 0.15), rgba(230, 57, 70, 0.1));
}

.after-dinner-places-sub {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.places-header h4 {
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.places-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.place-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg);
  border: 1px solid var(--color-surface-border);
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s;
}

.place-item.voted-by-me {
  border-color: var(--color-secondary);
  background: rgba(244, 162, 97, 0.12);
}

.place-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
}

.place-votes-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-secondary);
  background: rgba(244, 162, 97, 0.18);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

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

.place-input {
  flex: 1;
  padding: 0.65rem 0.95rem;
  background: var(--color-bg);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.88rem;
}

.btn-place-add {
  white-space: nowrap;
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   MINI-GIOCO: RUOTA DELL'AMARO 🥃
   ========================================================================== */

.wheel-section {
  text-align: center;
  background: linear-gradient(180deg, #181b22 0%, #13161c 100%);
  border: 1px solid #3b4255;
  overflow: hidden;
}

.wheel-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.2);
  color: var(--color-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.wheel-header h2 {
  font-size: 1.6rem;
  color: #fff;
  font-weight: 800;
}

.wheel-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0.35rem auto 1.5rem;
}

.wheel-stage {
  position: relative;
  display: inline-block;
  margin: 0 auto 1.5rem;
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  color: var(--color-primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  z-index: 10;
  line-height: 1;
}

.wheel-canvas {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 0 6px #242938;
}

.btn-spin {
  padding: 0.95rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

.wheel-result-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(230, 57, 70, 0.2));
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: popIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wheel-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.btn-rematch {
  background: rgba(230, 57, 70, 0.2);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

.btn-rematch:hover {
  background: var(--color-primary);
}

/* Registro Pubblico delle Sfide Estratte */
.public-challenges-card {
  background: #141720;
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin-top: 1.5rem;
  text-align: left;
}

.challenges-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.challenges-header h4 {
  font-size: 0.98rem;
  color: #fff;
}

.challenges-feed {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.challenge-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
}

.challenge-log-text {
  color: #e5e7eb;
}

.challenge-log-time {
  font-size: 0.72rem;
  color: var(--color-text-dim);
  white-space: nowrap;
}

/* Dichiarazione Ufficiale di Indipendenza */
.legal-independence-card {
  background: #101217;
  border: 1px dashed #3a4254;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin-top: 1.5rem;
  text-align: left;
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.legal-seal {
  font-size: 1.8rem;
}

.legal-header h3 {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
}

.legal-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.legal-body strong {
  color: #fff;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.result-trophy {
  font-size: 2.4rem;
}

.result-pretag {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-gold);
  margin-bottom: 0.4rem;
}

.challenge-sentence {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.challenge-actor {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.challenge-action {
  color: #e5e7eb;
  font-weight: 500;
}

.challenge-target {
  color: var(--color-primary-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-micro-spin {
  margin-top: 0.35rem;
}

/* ==========================================================================
   Riepilogo Dopocena Card
   ========================================================================== */

.after-dinner-summary-card {
  background: #141720;
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.summary-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.summary-card-header h4 {
  font-size: 0.95rem;
  color: #ffffff;
}

.top-place-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-secondary);
  background: rgba(244, 162, 97, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.after-dinner-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
}

/* Feedback banner */
.feedback-banner {
  margin-top: 1rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
}

.feedback-banner.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--color-yes);
  color: #6ee7b7;
}

.feedback-banner.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--color-no);
  color: #fca5a5;
}

/* ==========================================================================
   Appello della Classe (Rollcall) Card
   ========================================================================== */

.rollcall-card {
  background: #141822;
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
}

.rollcall-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.rollcall-header h3 {
  font-size: 0.98rem;
  color: #ffffff;
}

.rollcall-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rollcall-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.rollcall-pill.voted {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.rollcall-pill.missing {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Dual-View Results Mode (Ranking vs Matrix)
   ========================================================================== */

.results-header-flex {
  justify-content: space-between;
  flex-wrap: wrap;
}

.view-mode-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.65rem 0.95rem;
  background: var(--color-bg);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
}

.view-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.view-toggle-group {
  display: inline-flex;
  background: var(--color-surface);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-surface-border);
  gap: 3px;
}

.view-toggle-btn {
  padding: 0.35rem 0.8rem;
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.view-toggle-btn.active {
  background: var(--color-surface-hover);
  color: #fff;
}

/* Ranking Cards */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.rank-card {
  background: var(--color-bg);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  transition: border-color 0.15s, transform 0.15s;
}

.rank-card.rank-1 {
  border-color: var(--color-gold);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, var(--color-bg) 100%);
}

.rank-card.rank-2 {
  border-color: var(--color-silver);
}

.rank-card.rank-3 {
  border-color: var(--color-bronze);
}

.rank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.rank-position-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.rank-badge-1 {
  background: var(--color-gold);
  color: #1a1005;
}

.rank-badge-2 {
  background: var(--color-silver);
  color: #0f172a;
}

.rank-badge-3 {
  background: var(--color-bronze);
  color: #fff;
}

.rank-badge-normal {
  background: #20242f;
  color: var(--color-text-dim);
}

.rank-date-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.rank-counts-summary {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-yes);
}

.rank-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #202430;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.rank-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.rank-card.rank-1 .rank-progress-fill {
  background: linear-gradient(90deg, var(--color-gold), #fcd34d);
}

.rank-attendees-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.attendee-pill {
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.attendee-pill-yes {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.attendee-pill-maybe {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.attendee-pill-no {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
  opacity: 0.7;
}

/* Matrix Table */
.matrix-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  margin-bottom: 1.5rem;
}

.doodle-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
  text-align: center;
}

.doodle-table th, 
.doodle-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--color-surface-border);
  border-right: 1px solid var(--color-surface-border);
  white-space: nowrap;
}

.doodle-table thead {
  position: sticky;
  top: 0;
  z-index: 3;
}

.doodle-table th {
  background: #1c202a;
  color: #ffffff;
  font-weight: 700;
}

.col-name {
  text-align: left;
  min-width: 150px;
  max-width: 200px;
}

.sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #181c26 !important;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.4);
}

.date-th-cell {
  min-width: 90px;
}

.date-th-title {
  font-size: 0.82rem;
  font-weight: 700;
}

.date-th-sub {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: normal;
}

.summary-row th {
  background: #252b39 !important;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
}

.summary-cell-winning {
  background: rgba(245, 158, 11, 0.25) !important;
  color: #fcd34d !important;
  border-bottom: 2px solid var(--color-gold) !important;
}

.cell-yes {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  font-weight: 700;
}

.cell-maybe {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.cell-no {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

/* ==========================================================================
   Sticky Mobile Action Bar
   ========================================================================== */

.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(24, 27, 34, 0.95);
  border-top: 1px solid var(--color-surface-border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
}

.sticky-bar-info {
  display: flex;
  flex-direction: column;
}

.sticky-bar-badge {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.sticky-bar-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.btn-sticky {
  padding: 0.65rem 1.4rem;
  min-height: 42px;
  font-size: 0.92rem;
}

/* Footer & Dialog */
.app-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--color-text-dim);
  font-size: 0.85rem;
  margin-top: auto;
  border-top: 1px solid #1f232d;
}

.footer-links {
  margin-top: 0.75rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.link-btn:hover {
  color: #fff;
}

.admin-dialog {
  margin: auto;
  padding: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.admin-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.dialog-content {
  padding: 1.4rem;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.close-x {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ==========================================================================
   Mobile Responsive Rules
   ========================================================================== */

@media (max-width: 640px) {
  .hero-header {
    min-height: 490px;
  }

  .members-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .member-card {
    padding: 0.6rem 0.7rem;
    gap: 0.5rem;
  }

  .member-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .member-name {
    font-size: 0.82rem;
  }
  
  .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .month-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
  }

  .quick-bulk-actions {
    justify-content: space-between;
  }

  .date-row {
    flex-direction: column;
    align-items: stretch;
  }

  .vote-choices {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .vote-choice-label {
    min-height: 44px;
  }

  .after-dinner-choices {
    grid-template-columns: 1fr;
  }

  .results-header-flex {
    flex-direction: column;
    gap: 0.9rem;
  }
  
  .btn-whatsapp {
    width: 100%;
  }

  .rank-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .wheel-canvas {
    width: 270px;
    height: 270px;
  }
}

@media (min-width: 641px) {
  .sticky-mobile-bar {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   Full Monthly Calendar, Wheel Lock, Spotlight & Celebration Dialog
   ========================================================================== */

/* Cinematic Spotlight Overlay */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.92) 80%);
  backdrop-filter: blur(5px);
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.spotlight-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.wheel-section.spotlight-focused {
  position: relative;
  z-index: 9999;
  box-shadow: 0 0 80px rgba(230, 57, 70, 0.45);
}

/* Full Monthly Calendar Overview */
.full-calendar-section {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.calendars-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.month-calendar-box {
  background: #14171e;
  border: 1px solid #232834;
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.month-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid #232834;
  padding-bottom: 0.6rem;
}

.month-cal-header h3 {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
}

.month-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(244, 162, 97, 0.15);
  color: var(--color-secondary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.cal-day-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-dim);
  text-transform: uppercase;
  padding-bottom: 4px;
}

.cal-day-cell {
  position: relative;
  min-height: 52px;
  border-radius: var(--radius-xs);
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: #1a1e28;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.cal-day-cell.empty {
  background: transparent;
  pointer-events: none;
}

.cal-day-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.cal-day-cell.candidate-day {
  background: #232c3f;
  border: 1px solid #3b82f6;
  cursor: pointer;
}

.cal-day-cell.candidate-day:hover {
  background: #2c3750;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cal-day-cell.candidate-day .cal-day-num {
  color: #93c5fd;
  font-weight: 800;
}

.cal-day-cell.winning-day {
  background: rgba(245, 158, 11, 0.18);
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.cal-day-cell.winning-day .cal-day-num {
  color: #fcd34d;
}

.cal-day-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  line-height: 1.2;
}

.cal-day-badge.badge-top {
  background: var(--color-gold);
  color: #1a1300;
  font-weight: 800;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #232834;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-candidate {
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
}

.dot-winning {
  background: var(--color-gold);
  box-shadow: 0 0 8px var(--color-gold);
}

.dot-muted {
  background: #374151;
}

/* Wheel Lock State */
.wheel-lock-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(230, 57, 70, 0.12);
  border: 1.5px dashed var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  text-align: left;
}

.wheel-lock-banner.unlocked {
  display: none !important;
}

.lock-icon {
  font-size: 2rem;
  line-height: 1;
}

.lock-content h4 {
  font-size: 0.95rem;
  color: #ff8585;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.lock-content p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Celebration Modal Dialog (Modern Web Guidance compliant) */
dialog.celebration-dialog {
  margin: auto;
  padding: 0;
  background: linear-gradient(145deg, #1e222d, #14171f);
  border: 1.5px solid #ff6b6b;
  border-radius: var(--radius-lg);
  color: var(--color-text);
  max-width: 460px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(230, 57, 70, 0.3);
}

dialog.celebration-dialog:modal {
  overscroll-behavior: contain;
}

dialog.celebration-dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(8px);
}

.celebration-modal-content {
  padding: 2.2rem 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.celebration-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  animation: bounceCelebration 1.2s infinite ease-in-out;
}

@keyframes bounceCelebration {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.1) translateY(-6px); }
}

.celebration-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e63946, #f4a261);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.celebration-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.celebration-msg {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.celebration-stats-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.celebration-actions {
  width: 100%;
}

/* ==========================================================================
   Phase 1 vs Phase 2 Status & Stand-by Banners
   ========================================================================== */

.phase-status-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(30, 58, 138, 0.25));
  border: 1.5px solid rgba(96, 165, 250, 0.4);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.phase-status-banner.phase-2 {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 78, 59, 0.25));
  border-color: rgba(52, 211, 153, 0.45);
}

.phase-badge-pill {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #93c5fd;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.phase-status-banner.phase-2 .phase-badge-pill {
  color: #6ee7b7;
}

.phase-desc {
  font-size: 0.9rem;
  color: #f1f5f9;
  line-height: 1.5;
}

.wheel-standby-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px dashed var(--color-gold);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.3rem;
  margin: 1.25rem 0;
  text-align: left;
}

.wheel-standby-banner.hidden {
  display: none !important;
}

.standby-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.wheel-standby-banner h4 {
  font-size: 1.05rem;
  color: #fbbf24;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.wheel-standby-banner p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
