/* ==========================================================================
   BABBO NATALE SEGRETO - MOBILE-FIRST FESTIVE DESIGN SYSTEM (DEDUPLICATED)
   ========================================================================== */

:root {
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-festive: 'Mountains of Christmas', cursive;

  /* Holiday Palette */
  --bg-dark: #080d1a;
  --bg-card: rgba(22, 30, 49, 0.85);
  --bg-card-inner: rgba(15, 23, 42, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(245, 158, 11, 0.35);

  --red-primary: #dc2626;
  --red-hover: #ef4444;
  --red-glow: rgba(220, 38, 38, 0.35);

  --green-primary: #059669;
  --green-hover: #10b981;
  --green-glow: rgba(16, 185, 129, 0.3);

  --gold-primary: #f59e0b;
  --gold-hover: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
}

/* Universal Reset & Anti-Native Form Quirks */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Hard reset for all button tags on WebKit/iOS/Android */
button,
input[type="button"],
input[type="submit"],
.btn,
.segment-btn,
.btn-refresh {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, #1e1b4b 0%, transparent 65%),
    radial-gradient(circle at 10% 30%, rgba(220, 38, 38, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(5, 150, 105, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* App Wrapper */
.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 680px;
  margin: 0 auto;
  padding: 0.75rem 0.85rem max(1.5rem, env(safe-area-inset-bottom));
}

@media (min-width: 640px) {
  .app-wrapper {
    padding: 1.25rem 1.25rem 2.5rem;
  }
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.85rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.logo-emoji {
  font-size: 1.85rem;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-festive);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--gold-hover);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--green-hover);
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 0.85rem;
  position: relative;
}

@media (min-width: 640px) {
  .card {
    padding: 1.5rem;
    margin-bottom: 1.25rem;
  }
}

/* Dynamic View Panels */
.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Banner (Compact & Mobile-Tuned) */
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border-subtle);
  height: 125px;
}

@media (min-width: 640px) {
  .hero-card {
    height: 160px;
    margin-bottom: 1.25rem;
  }
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 13, 26, 0.95) 20%, rgba(8, 13, 26, 0.5) 80%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.85rem 1rem;
  z-index: 2;
}

.festive-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--gold-primary);
  color: var(--gold-hover);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.hero-title {
  font-family: var(--font-festive);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1rem;
}

.form-group.mb-4 {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.9rem;
  font-size: 1.1rem;
  pointer-events: none;
  opacity: 0.8;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 1rem 0 2.65rem;
  background: var(--bg-card-inner);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem; /* 16px to prevent iOS auto-zoom */
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--red-hover);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
  background: rgba(15, 23, 42, 0.95);
}

.form-input.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.form-tip {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Segmented Control for Mobile */
.segmented-control {
  display: flex !important;
  background: rgba(10, 15, 29, 0.85) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  padding: 4px !important;
  margin-bottom: 1.15rem !important;
  gap: 4px !important;
}

.segment-btn {
  flex: 1 1 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  height: 44px !important;
  min-height: 44px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  color: var(--text-muted) !important;
  font-family: var(--font-main) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.segment-btn.active {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.panel-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.panel-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

/* Action Buttons */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 1.25rem !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-main) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  user-select: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: transform 0.15s, opacity 0.15s, background-color 0.15s !important;
}

.btn:active {
  transform: scale(0.98);
}

.btn-block {
  width: 100% !important;
}

.btn-lg {
  height: 50px !important;
  font-size: 1rem !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-primary), #991b1b) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px var(--red-glow) !important;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--green-primary), #065f46) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px var(--green-glow) !important;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-primary), #b45309) !important;
  color: #000 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px var(--gold-glow) !important;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-subtle) !important;
}

.btn-ghost-danger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  background: rgba(239, 68, 68, 0.12) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  padding: 0.35rem 0.7rem !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.btn-ghost-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-secondary) !important;
  height: 42px !important;
  padding: 0 1rem !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  margin-top: 0.85rem !important;
}

/* Fast Join Landing */
.fast-join-card {
  padding: 1.5rem 1.15rem;
  margin: 1.5rem 0;
}

.gift-icon-glow {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.token-pill {
  display: inline-block;
  background: rgba(220, 38, 38, 0.15);
  border: 1.5px dashed var(--red-hover);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  margin: 0.85rem 0;
  font-family: monospace;
}

/* View 3: Room / Lobby */
.room-banner {
  border-color: var(--border-gold);
}

.room-token-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.token-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-hover);
  font-weight: 700;
}

.token-badge {
  font-family: monospace;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.room-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.btn-copy {
  height: 44px !important;
  background: rgba(255, 255, 255, 0.09) !important;
  border: 1px solid var(--border-subtle) !important;
  color: #fff !important;
  font-size: 0.85rem !important;
}

.btn-whatsapp {
  height: 44px !important;
  background: #25d366 !important;
  color: #fff !important;
  font-size: 0.85rem !important;
}

/* Participants Card */
.participants-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.title-with-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.title-with-count h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.counter-badge {
  background: var(--red-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.sync-status-wrapper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sync-pulse {
  width: 7px;
  height: 7px;
  background-color: var(--green-hover);
  border-radius: 50%;
}

.btn-refresh {
  background: transparent !important;
  border: none !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  padding: 0.2rem 0.35rem !important;
  color: var(--text-secondary) !important;
  border-radius: 4px !important;
  transition: transform 0.2s !important;
}

.btn-refresh:active {
  transform: rotate(180deg);
}

.participants-tip {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
}

.participant-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
}

.participant-item.is-me {
  border-color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.09);
}

.participant-avatar {
  font-size: 1.35rem;
  line-height: 1;
}

.participant-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.participant-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.participant-badge-me {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-hover);
  text-transform: uppercase;
}

/* Draw CTA */
.draw-cta-card {
  border-color: var(--border-gold);
}

.draw-cta-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.draw-icon {
  font-size: 1.85rem;
}

.draw-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.draw-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* View 4: Result View */
.result-container {
  padding: 1.5rem 1.15rem;
}

.result-celebration-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--green-hover);
  color: #34d399;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.result-title {
  font-family: var(--font-festive);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.result-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.gift-reveal-card {
  background: rgba(0, 0, 0, 0.25);
  border: 2px dashed var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
}

.gift-box-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gift-box-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
}

@media (min-width: 640px) {
  .gift-box-img {
    width: 200px;
    height: 200px;
  }
}

.gift-ribbon-tag {
  background: linear-gradient(135deg, var(--gold-primary), #d97706);
  color: #000;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
}

.secret-santa-badge {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.recipient-name {
  font-family: var(--font-festive);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-hover);
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
  margin: 0.4rem 0 0.85rem;
  line-height: 1.1;
}

.secret-disclaimer {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fecaca;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  line-height: 1.35;
}

.participants-summary-list {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.participants-summary-list h4 {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.name-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background: #0f172a;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  max-width: 440px;
  width: 100%;
}

.modal-icon-warning {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 0.35rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 0.75rem;
}

.modal-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

.modal-lead {
  margin-bottom: 0.65rem;
}

.modal-warning-box {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
}

.modal-warning-box p {
  color: #fca5a5;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.modal-warning-box ul {
  padding-left: 1.1rem;
  color: #fecaca;
  font-size: 0.8rem;
}

.modal-check-question {
  color: #fff;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.modal-participants-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-height: 90px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.modal-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-gold);
  color: #fff;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 200;
  white-space: nowrap;
}

.toast.toast-error {
  border-color: var(--red-hover);
  color: #fca5a5;
}

.toast.toast-success {
  border-color: var(--green-hover);
  color: #6ee7b7;
}

/* Footer */
.app-footer {
  margin-top: auto;
  padding: 1.5rem 0 0.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

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

/* ==========================================================================
   FESTIVE POEM, RULES & MANUAL PARTICIPANT ADD
   ========================================================================== */

/* Welcome Rules Banner */
.welcome-rules-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-hover);
  margin-top: 0.4rem;
}

/* Poem Card in Room */
.poem-card {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.9));
  margin-bottom: 0.85rem;
}

.poem-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.poem-icon {
  font-size: 1.3rem;
}

.poem-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-hover);
}

.poem-text {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #f1f5f9;
  font-style: italic;
  padding-left: 0.75rem;
  border-left: 2px solid var(--gold-primary);
  margin-bottom: 0.85rem;
}

.highlight-gold {
  color: #fbbf24;
  font-weight: 700;
  font-style: normal;
}

.highlight-red {
  color: #f87171;
  font-weight: 700;
  font-style: normal;
}

.poem-rules-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rule-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  color: #fff;
  font-style: normal;
}

/* Manual Add Participant Section */
.manual-add-section {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle);
}

.btn-toggle-manual {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  color: var(--gold-hover) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 0.3rem 0.5rem !important;
  border-radius: var(--radius-sm) !important;
  transition: opacity 0.2s !important;
}

.btn-toggle-manual:hover {
  opacity: 0.85;
}

.manual-add-form {
  margin-top: 0.6rem;
  animation: fadeIn 0.2s ease;
}

.manual-add-row {
  display: flex;
  gap: 0.4rem;
}

.manual-input {
  height: 42px !important;
  font-size: 0.9rem !important;
  padding: 0 0.85rem !important;
}

.btn-sm {
  height: 42px !important;
  padding: 0 1rem !important;
  font-size: 0.85rem !important;
  flex-shrink: 0;
}

.manual-tip {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}

/* Result View Rules Reminder */
.result-rules-reminder {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  margin-top: 1rem;
  text-align: left;
}

.reminder-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-hover);
  margin-bottom: 0.35rem;
}

.reminder-badges {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #fff;
}

