body {
  font-family: 'Kanit', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  background-image: url('fondo4 (10).jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 10px;
  overflow-y: auto;
  box-sizing: border-box;
}

/* .quick-nav hidden vía CSS */
.quick-nav { display: none !important; }

.nav-item {
  text-decoration: none;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 140, 0, 0.3);
  text-transform: uppercase;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
  min-width: 80px;
}

.nav-item:hover, .nav-item.active {
  background: #ff8c00;
  color: #000;
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
  border-color: #ffcc00;
}

/* Main container to keep everything centered and sized well on mobile */
#app-wrapper {
  height: 100% !important;
  width: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: relative;
  z-index: 10;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

#generator-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 15px 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(255, 140, 0, 0.1);
  border-right: 1px solid rgba(255, 140, 0, 0.1);
}

/* VIP initial overlay */
#vip-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

#vip-modal {
  background: #111;
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 320px;
  width: 90%;
  text-align: center;
  color: #f5f5f5;
  border: 1px solid #ffcc00;
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.9);
}

#vip-modal h2 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

#vip-modal p {
  margin: 0 0 16px 0;
  font-size: 0.95rem;
}

.vip-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#vip-accept-button,
#vip-cancel-button {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
}

#vip-accept-button {
  background-color: #e67e22;
  color: #fff;
}

#vip-cancel-button {
  background-color: #444;
  color: #f5f5f5;
}

/* VIP section */
#vip-section {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  background: rgba(0, 0, 0, 0.9);
}

#vip-section-content {
  background: #141414;
  border-radius: 16px;
  padding: 18px 22px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  color: #f5f5f5;
  border: 1px solid #e67e22;
}

#vip-section-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
}

#vip-section-content p {
  margin: 0 0 14px 0;
  font-size: 0.9rem;
}

#vip-close-button {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background-color: #e67e22;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Background Selector Styles */
#background-selector {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px 12px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  border: 1px solid rgba(255, 140, 0, 0.4);
  box-shadow: 0 0 18px rgba(255, 140, 0, 0.35);
  backdrop-filter: blur(4px);
}

/* Collapsed panel behavior removed — the background-selector panel remains visible by default */

#upload-button {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background-color: #6c5ce7;
  color: white;
  cursor: pointer;
  margin-bottom: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Change ID logo button styled similar to upload controls */
#change-logo-button {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background-color: #6c5ce7;
  color: white;
  cursor: pointer;
  margin-bottom: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#background-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 180px;
  max-height: 120px;
  overflow-y: auto;
  padding-top: 4px;
}

#toggle-backgrounds {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background-color: #6c5ce7;
  color: white;
  cursor: pointer;
  margin-bottom: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.thumbnail {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  cursor: pointer;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

/* Animated Header Styles */
/* Main responsive title */
.main-title {
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
  font-family: 'Teko', sans-serif;
  color: #ff8c00;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  margin: 0;
  padding: 6px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
  border: 1px solid rgba(255, 140, 0, 0.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 0 14px rgba(255, 140, 0, 0.06) inset;
  font-size: 24px;
  letter-spacing: 0.06em;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  text-align: center;
}

/* Subtle sheen effect */
.main-title::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -30%;
  width: 60%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0.06), rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  transform: rotate(25deg);
  animation: title-shine 3.5s linear infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.9;
}

@keyframes title-shine {
  0% { transform: translateX(-140%) rotate(25deg); opacity: 0; }
  50% { transform: translateX(120%) rotate(25deg); opacity: 0.8; }
  100% { transform: translateX(260%) rotate(25deg); opacity: 0; }
}

/* Make title scale on larger screens, but remain compact */
@media (min-width: 900px) {
  .main-title {
    font-size: 28px;
    padding: 8px 16px;
  }
}

/* Mobile: keep it compact and legible */
@media (max-width: 768px) {
  .main-title {
    font-size: 17px;
    padding: 7px 10px;
    letter-spacing: 0.04em;
  }
}

@keyframes shine {
  0% {
    transform: translateX(-200%);
  }

  50% {
    transform: translateX(200%);
  }

  100% {
    transform: translateX(200%);
  }
}

h1::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.7), transparent);
  z-index: 1;
  mix-blend-mode: overlay;
}

#character-selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
  box-sizing: border-box;
  flex: 1;
  min-height: 0;
}

#character-list {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  overflow-y: auto;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
  flex: 1;
  min-height: 0;
}

#character-list::-webkit-scrollbar {
  width: 12px;
}

#character-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

#character-list::-webkit-scrollbar-thumb {
  width: 20px;
  background: linear-gradient(to bottom, #ff8c00, #ff8c00);
  border-radius: 6px;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

#character-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #ffd54a, #ff8c00);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

.character-card {
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex: 0 0 calc(33.33% - 14px);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 140, 0, 0.2);
  outline: none;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.character-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 1;
  transition: opacity 0.3s;
}

.character-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 140, 0, 0.2);
  border-color: rgba(255, 140, 0, 0.6);
}

.character-card.selected {
  border: 2px solid #ff8c00;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.5), inset 0 0 10px rgba(255, 140, 0, 0.3);
  transform: scale(0.95);
}

.character-card.selected::before {
  content: '✓';
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff8c00;
  color: #000;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

@keyframes border-glow {
  0% {
    border: 2px solid #ff8c00;
    box-shadow: 0 0 20px #ff8c00;
  }

  50% {
    border: 2px solid #ffd54a;
    box-shadow: 0 0 40px #ffd54a;
  }

  100% {
    border: 2px solid #ff8c00;
    box-shadow: 0 0 20px #ff8c00;
  }
}

@keyframes selected-glow {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}
#select-all-button::after {
  content: "TODO";
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: #ff8c00;
  font-weight: 900;
  white-space: nowrap;
}

#select-all-button::before {
  content: "\2713";
  font-weight: 900;
  font-size: 24px;
  color: #ff8c00;
}
@keyframes card-move {
  0% {
    transform: translateX(0) translateY(0);
  }

  25% {
    transform: translateX(5px) translateY(5px);
  }

  50% {
    transform: translateX(0) translateY(-5px);
  }

  75% {
    transform: translateX(-5px) translateY(5px);
  }

  100% {
    transform: translateX(0) translateY(0);
  }
}

/* Color Adjustment */
#color-adjustment {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 10;
}

#color-adjust-button {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background-color: #6c5ce7;
  color: white;
  cursor: pointer;
  margin-bottom: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#selection-color-button {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background-color: #2ecc71;
  color: white;
  cursor: pointer;
  margin-bottom: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#selection-color-palette {
  display: none;
  margin-top: 5px;
}

#title-input-color-button {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background-color: #3498db;
  color: white;
  cursor: pointer;
  margin-bottom: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#title-input-color-palette {
  display: none;
  margin-top: 5px;
}

#button-color-button {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background-color: #9b59b6;
  color: white;
  cursor: pointer;
  margin-bottom: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#button-color-palette {
  display: none;
  margin-top: 5px;
}

/* Toggle panel button styled to match panel controls */
#toggle-panel-button {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ff8c00;
  cursor: pointer;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  white-space: nowrap;
}

/* ID INPUT: styling handled by .vip-input-premium in style.css */
#id-input-container {
  display: none; /* Replaced by vip-input-group in HTML */
}

#id-input-container::before {
  content: none;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 25px #3fb2ff;
  }

  50% {
    box-shadow: 0 0 60px #3fb2ff;
  }

  100% {
    box-shadow: 0 0 25px #3fb2ff;
  }
}

/* PROFILE LOGO: reduced size and lighter shadow for a cleaner compact layout */
#profile-picture {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-image: url('/unnamed.webp');
  background-size: cover;
  margin-right: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* ID INPUT: slightly reduced padding, smaller font and tightened margins so the control looks balanced */
#id-input {
  /* Inherits from .vip-input-premium */
}

/* SELECT-ALL BUTTON: smaller, flatter and clearer icon so it doesn't dominate the input row */
#select-all-button:active {
  transform: scale(0.9);
  background: #ff8c00;
}

#select-all-button:active::before {
  color: #000;
}

#select-all-button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid #ff8c00;
  background: linear-gradient(180deg, #ffb347 0%, #ff8c00 100%);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
  flex-shrink: 0;
  position: relative;
}

#generate-button {
  margin-top: 20px;
  padding: 15px 30px;
  border: none;
  border-radius: 15px;
  background: linear-gradient(180deg, #ffb347 0%, #ff8c00 100%);
  color: #000;
  font-size: 1.2em;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: auto;
  min-width: 200px;
  max-width: 100%;
  box-sizing: border-box;
  text-transform: uppercase;
}

#generate-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

#generated-outfits {
  width: 80%;
  max-width: 900px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  margin-bottom: 20px;
}

/* Region selection overlay */
#region-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 16px;
  box-sizing: border-box;
}

.region-panel {
  width: 92%;
  max-width: 380px;
  background: linear-gradient(180deg, #071019 0%, #071219 100%);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,215,0,0.06);
  color: #e9f8f5;
  text-align: center;
}

.region-panel h3 {
  margin: 0 0 10px 0;
  font-size: 1rem;
  color: #ffd54a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.region-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.region-button {
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  min-width: 94px;
  background: rgba(255,255,255,0.04);
  color: #e9f8f5;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0,0,0,0.6);
}

.region-button.primary {
  background: linear-gradient(180deg, #ff8c00 0%, #e67e22 100%);
  color: #111;
}

.region-button.secondary {
  background: linear-gradient(180deg, #e67e22 0%, #cf6b1b 100%);
  color: #111;
}

/* Region selection - improved, ordered layout */
.region-panel {
  width: 92%;
  max-width: 420px;
  background: linear-gradient(180deg, #071019 0%, #071219 100%);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,215,0,0.06);
  color: #e9f8f5;
  text-align: center;
}

.region-panel h3 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: #ffd54a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Use a tidy two-column grid for region choices for a more ordered look */
.region-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 10px;
  justify-items: center;
  margin-top: 10px;
  align-items: center;
}

/* Make each button uniform and touch-friendly */
.region-button {
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  min-width: 140px;
  width: 100%;
  max-width: 220px;
  background: rgba(255,255,255,0.04);
  color: #e9f8f5;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.55);
  transition: transform 0.12s ease, box-shadow 0.12s ease, outline 0.12s ease;
}

/* Primary / accent styling preserved */
.region-button.primary {
  background: linear-gradient(180deg, #ff8c00 0%, #e67e22 100%);
  color: #111;
}

/* Special US button: consistent with other buttons but slightly highlighted */
.region-button[data-region="US"] {
  background: linear-gradient(180deg, #ffd54a 0%, #ffb84d 100%);
  color: #111;
  font-weight: 900;
}

/* Focus/selected visual */
.region-button:focus,
.region-button.selected-region {
  outline: 3px solid rgba(255, 215, 0, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.6);
}

/* Continue button container to make it full width under grid */
#region-continue-button {
  margin-top: 12px;
  display: none;
  min-width: 160px;
  width: 100%;
  max-width: 320px;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 900;
  background: linear-gradient(180deg, #e67e22 0%, #cf6b1b 100%);
  color: #111;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.55);
}

/* Cancel link kept subtle and centered */
.region-cancel {
  margin-top: 12px;
  display: block;
  color: #ff8c00;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}

/* New Success Overlay */
#new-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  z-index: 4000;
  backdrop-filter: blur(5px);
}

.new-success-card {
  background: linear-gradient(145deg, #1a1c23 0%, #0d0f12 100%);
  border: 1px solid #ff8c00;
  border-radius: 16px;
  padding: 30px 24px;
  max-width: 320px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(255, 140, 0, 0.2);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.new-success-icon-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 140, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid #ff8c00;
}

.new-success-icon {
  width: 32px;
  height: 32px;
  fill: #ff8c00;
}

.new-success-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: 0.05em;
}

.new-success-desc {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0 0 24px;
  line-height: 1.4;
}

#new-success-close {
  background: linear-gradient(90deg, #ff8c00, #e67e22);
  color: #000;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
}

#new-success-close:active {
  transform: scale(0.95);
}

/* existing verification overlay */
#verification-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.95) 40%, rgba(0, 0, 0, 1) 100%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  overflow: hidden;
}

.verification-content {
  padding: 24px 20px 26px;
  border-radius: 18px;
  background: #0a0a0a;
  border: 2px solid #ff8c00;
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.2);
  color: #fff;
  font-family: 'Kanit', sans-serif;
  text-align: center;
  width: 90%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
}

.console {
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
    height: 150px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #00ff00;
    text-align: left;
    margin: 15px 0;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
}

.console::-webkit-scrollbar { width: 4px; }
.console::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }

.verification-title {
  margin: 0 0 6px 0;
  font-size: 1.4rem;
  font-weight: 900;
  color: #ff8c00;
  text-transform: uppercase;
}

.verification-subtitle {
  margin: 0 0 10px 0;
  font-size: 0.85rem;
  opacity: 0.8;
  text-transform: none;
}

.verification-bar {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 18px;
}

.verification-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 140, 0, 0.28);
  pointer-events: none;
}

.verification-bar-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  background: linear-gradient(90deg, #ff8c00 0%, #e67e22 100%);
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.65);
  width: 0%;
  transition: width 0.35s ease-out;
}

@keyframes verifyProgress {
  0% {
    transform: scaleX(0.15);
    opacity: 0.4;
  }

  40% {
    transform: scaleX(0.65);
    opacity: 0.9;
  }

  80% {
    transform: scaleX(1);
    opacity: 1;
  }

  100% {
    transform: scaleX(0.85);
    opacity: 0.8;
  }
}

@keyframes verifyScan {
  0% {
    transform: translateX(-40%);
  }

  100% {
    transform: translateX(40%);
  }
}

@keyframes verifyPanelFloat {
  0% {
    transform: translateY(0);
    box-shadow:
      0 0 16px rgba(255, 140, 0, 0.25),
      0 18px 40px rgba(0, 0, 0, 0.95);
  }

  100% {
    transform: translateY(-4px);
    box-shadow:
      0 0 26px rgba(255, 140, 0, 0.4),
      0 22px 52px rgba(0, 0, 0, 0.98);
  }
}

#continue-button {
  margin-top: 4px;
  padding: 11px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 0, 0.6);
  background: radial-gradient(circle at 20% 0%, rgba(255, 140, 0, 0.24) 0%, #05090d 55%, #020406 100%);
  color: #fff4e5;
  font-family: 'Kanit', sans-serif;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow:
    0 0 10px rgba(255, 140, 0, 0.6),
    0 8px 18px rgba(0, 0, 0, 0.9);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* sweeping light on hover */
#verify-step-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 40%, transparent 80%);
  transform: translateX(-130%);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.35s ease-out;
  pointer-events: none;
}

#verify-step-button:hover::before {
  opacity: 1;
  transform: translateX(130%);
}

#verify-step-button:hover {
  background: radial-gradient(circle at 20% 0%, rgba(255, 140, 0, 0.32) 0%, #050b11 60%, #020406 100%);
  box-shadow:
    0 0 16px rgba(255, 140, 0, 0.9),
    0 10px 22px rgba(0, 0, 0, 1);
}

#verify-step-button:active,
#verify-step-button.pressed {
  transform: scale(0.95);
  box-shadow:
    0 0 8px rgba(255, 140, 0, 0.75),
    0 6px 14px rgba(0, 0, 0, 1);
}

/* existing notification container */
#notification-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 1000;
  text-align: center;
  display: none;
  width: 70%;
  max-width: 600px;
  border: none;
  box-shadow: 0 0 15px #ff8c00;
}

#notification-container h2 {
  font-size: 2.6em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd700;
  font-family: 'Teko', sans-serif;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(255, 215, 0, 0.7),
    0 0 20px rgba(255, 140, 0, 0.9);
  margin-bottom: 18px;
}

/* Notification (formal message card) */
#notification-container {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  pointer-events: none;
}

.notification-card {
  pointer-events: auto;
  width: 92%;
  max-width: 560px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 12px 36px rgba(2,8,15,0.7), 0 2px 10px rgba(0,0,0,0.6);
  color: #e9f8f5;
  text-align: left;
  box-sizing: border-box;
  border: 1px solid rgba(255, 215, 0, 0.12);
  backdrop-filter: blur(6px) saturate(120%);
  overflow: hidden;
  display: none;
}

/* Top row: icon + titles */
.notification-top {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  margin-bottom: 12px;
}

.notification-icon {
  display: none;
}

/* Titles block */
.notification-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notification-title {
  margin: 0;
  font-size: 1.05rem;
  color: #111;
  background: linear-gradient(90deg, #ffd54a, #ffb84d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.notification-sub {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.86);
  opacity: 0.95;
}

/* Body with info grid */
.notification-body {
  padding-bottom: 8px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.info-item {
  background: rgba(0,0,0,0.35);
  padding: 8px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.03);
}

.info-label {
  font-size: 0.72rem;
  color: #bfeee4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-value {
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
}

/* Selected-list area */
.selected-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.selected-list-title {
  font-size: 0.85rem;
  color: #dffaf3;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* Actions */
.notification-actions {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.btn-primary {
  background: linear-gradient(180deg, #ffb84d 0%, #e67e22 100%);
  color: #111;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(230,126,34,0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 6px 12px rgba(230,126,34,0.10);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .notification-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .notification-title {
    font-size: 0.95rem;
  }
}

.notification-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.notification-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  padding: 0;
  border-radius: 0;
  background: none;
  -webkit-background-clip: border-box;
          background-clip: border-box;
  color: #fdfdfd;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* Small accent bar to the left of the success title for a more professional look */
.notification-title::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd54a, #e67e22);
  box-shadow: 0 0 6px rgba(230, 126, 34, 0.6);
}

.notification-sub {
  margin: 0;
  font-size: 0.9rem;
  color: #ff8c00;
  opacity: 0.95;
}

.notification-message {
  margin-top: 6px;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
}

.message-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px;
  border-bottom: 1px dashed rgba(255,255,255,0.03);
  gap: 10px;
}

.message-row:last-child {
  border-bottom: none;
}

.message-label {
  color: #ff8c00;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.message-value {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
}

.selected-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

/* Actions */
.notification-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.btn-primary {
  background-color: #e67e22;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(230,126,34,0.18);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Mobile sizing */
@media (max-width: 768px) {
  .notification-card {
    padding: 14px;
  }

  .notification-title {
    font-size: 1rem;
  }

  .message-value {
    font-size: 0.95rem;
  }
}

#notification-container .notification-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

#notification-container .notification-label {
  font-weight: bold;
  margin-right: 10px;
}

#ok-button {
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  background-color: #e67e22;
  color: #fff;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#ok-button:hover {
  background-color: #d35400;
}

.selected-characters-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 5px;
  overflow-y: auto;
  max-height: 200px;
}

.selected-character-card {
  width: 60px;
  height: 70px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
  background-color: transparent;
  border: none;
}

#selected-characters-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.character-number {
  display: none;
}

/* Map the selection cards to real EMOTE images */
.character-card:nth-child(1) { background-image: url('EMOTE (1).jpg'); }
.character-card:nth-child(2) { background-image: url('EMOTE (2).jpg'); }
.character-card:nth-child(3) { background-image: url('EMOTE (3).jpg'); }
.character-card:nth-child(4) { background-image: url('EMOTE (4).jpg'); }
.character-card:nth-child(5) { background-image: url('EMOTE (5).jpg'); }
.character-card:nth-child(6) { background-image: url('EMOTE (6).jpg'); }
.character-card:nth-child(7) { background-image: url('EMOTE (7).jpg'); }
.character-card:nth-child(8) { background-image: url('EMOTE (8).jpg'); }
.character-card:nth-child(9) { background-image: url('EMOTE (9).jpg'); }
.character-card:nth-child(10) { background-image: url('EMOTE (10).jpg'); }
.character-card:nth-child(11) { background-image: url('EMOTE (11).jpg'); }
.character-card:nth-child(12) { background-image: url('EMOTE (12).jpg'); }
.character-card:nth-child(13) { background-image: url('EMOTE (13).jpg'); }
.character-card:nth-child(14) { background-image: url('EMOTE (14).jpg'); }
.character-card:nth-child(15) { background-image: url('EMOTE (15).jpg'); }
.character-card:nth-child(16) { background-image: url('EMOTE (16).jpg'); }
.character-card:nth-child(17) { background-image: url('EMOTE (17).jpg'); }
.character-card:nth-child(18) { background-image: url('EMOTE (18).jpg'); }
.character-card:nth-child(19) { background-image: url('EMOTE (19).jpg'); }
.character-card:nth-child(20) { background-image: url('EMOTE (20).jpg'); }
.character-card:nth-child(21) { background-image: url('EMOTE (21).jpg'); }
.character-card:nth-child(22) { background-image: url('EMOTE (22).jpg'); }
.character-card:nth-child(23) { background-image: url('EMOTE (23).jpg'); }
.character-card:nth-child(24) { background-image: url('EMOTE (24).jpg'); }
.character-card:nth-child(25) { background-image: url('EMOTE (25).jpg'); }
.character-card:nth-child(26) { background-image: url('EMOTE (26).jpg'); }
.character-card:nth-child(27) { background-image: url('EMOTE (27).jpg'); }
.character-card:nth-child(28) { background-image: url('EMOTE (1).jpg'); }
.character-card:nth-child(29) { background-image: url('EMOTE (2).jpg'); }
.character-card:nth-child(30) { background-image: url('EMOTE (3).jpg'); }

/* Card main image: fill the card cleanly */
.character-card .card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* clicks go to the card container */
  border-radius: inherit;
}

/* Keep the glowing logo animation on the corner emblem */
.character-card img[alt="Logo"] {
  animation: logo-glow 3s linear infinite, logo-pulse 1s ease-in-out infinite alternate;
  pointer-events: auto;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px !important;
  height: 18px !important;
  object-fit: contain;
  border-radius: 4px;
  transform-origin: center;
  transition: transform 0.18s ease, filter 0.18s ease;
}

/* Slightly smaller watermark on very small screens for better fit */
@media (max-width: 360px) {
  .character-card img[alt="Logo"] {
    width: 14px !important;
    height: 14px !important;
    top: 5px;
    right: 5px;
  }
}

@keyframes logo-glow {
  0% {
    filter: drop-shadow(0 0 5px #f39c12);
  }

  50% {
    filter: drop-shadow(0 0 15px #e67e22);
  }

  100% {
    filter: drop-shadow(0 0 5px #f39c12);
  }
}

@keyframes logo-pulse {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.2);
  }
}

/* Adblock overlay */
#adblock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.adblock-message {
  max-width: 90%;
  width: 340px;
  padding: 20px 18px;
  border-radius: 14px;
  background: #111;
  border: 1px solid #ffcc00;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
  text-align: center;
  color: #fff4c2;
  font-family: 'Kanit', sans-serif;
}

.adblock-message h2 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffcc00;
}

.adblock-message p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* --- SECCIÓN DE PUBLICIDAD OPTIMIZADA --- */
.ad-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Contenedores específicos con soporte para escalado móvil */
.ad-468-60 {
  width: 468px;
  height: 60px;
}

.ad-300-250 {
  width: 300px;
  height: 250px;
}

.ad-160-300 {
  width: 160px;
  height: 300px;
}

@media (max-width: 500px) {
  .ad-box.ad-468-60 {
    transform: scale(0.75);
    margin: -10px 0;
  }

  .ad-box.ad-300-250 {
    transform: scale(0.9);
    margin: -10px 0;
  }
}

@media (max-width: 380px) {
  .ad-box.ad-468-60 {
    transform: scale(0.6);
    margin: -15px 0;
  }

  .ad-box.ad-300-250 {
    transform: scale(0.8);
    margin: -25px 0;
  }
}
/* --- FIN PUBLICIDAD --- */

/* Mobile adjustments */
@media (max-width: 768px) {
  body {
    padding-top: 8px;
  }

  /* compact panel */
  #background-selector {
    top: 8px;
    left: 8px;
    transform: scale(0.88);
    transform-origin: top left;
  }

  /* Ensure title is compact and doesn't push cards down */
  .main-title {
    font-size: 18px;
    padding: 6px 10px;
    margin-bottom: 6px;
  }

  /* Tighter ID row for small screens */
  #id-input-container {
    padding: 8px 10px;
    margin-bottom: 8px;
    width: 100%;
  }

  #profile-picture {
    width: 40px;
    height: 40px;
    margin-right: 8px;
  }

  #id-input {
    font-size: 0.95rem;
    margin-left: 8px;
    margin-right: 6px;
  }

  #select-all-button {
    width: 44px;
    height: 44px;
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.45);
  }

  /* Make the list use the available vertical space while keeping Generate visible */
  #character-list {
    padding-left: 6px;
    padding-right: 6px;
    gap: 6px;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
  }

  /* Ensure 3 columns fit reliably on most phones; fallback to 2 if too narrow */
  .character-card {
    flex: 0 0 calc((100% - 12px) / 3);
    width: calc((100% - 12px) / 3);
    border-radius: 12px;
    margin-left: 0;
    margin-right: 0;
    aspect-ratio: 3 / 4;
    box-sizing: border-box;
  }

  /* If viewport is extremely narrow, let cards become two columns for readability */
  @media (max-width: 360px) {
    .character-card {
      flex: 0 0 calc((100% - 8px) / 2);
      width: calc((100% - 8px) / 2);
    }
  }

  /* Fix Generate button to bottom but make it slightly taller and full width so it's always visible */
  #generate-button {
    width: 100%;
    max-width: 500px;
    background: linear-gradient(180deg, #ffb347 0%, #ff8c00 100%);
    color: #000;
    padding: 18px;
    border-radius: 0;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    box-shadow: none;
    transition: 0.3s;
    border: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    margin-top: 0;
  }

  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(10px);
    padding: 0 10px calc(12px + env(safe-area-inset-bottom));
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    border-top: 4px solid #ff8c00;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(255, 140, 0, 0.3);
    box-sizing: border-box;
  }

  #generate-button:active {
    transform: scale(0.98);
  }



  /* Reserve more bottom space so the last rows of cards are not hidden */
  #generator-container {
    padding-bottom: 0;
  }

  #character-list {
    padding-bottom: 120px; /* Ajustado para que el botón no tape los últimos emotes */
  }

  /* Notification sizing tweaks for mobile */
  #notification-container {
    width: 92%;
    padding: 14px;
  }

  #notification-container h2 {
    font-size: 1.6rem;
  }
}