:root {
  --nav-h: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cinzel', serif;
  background: url('https://mir-s3-cdn-cf.behance.net/project_modules/1400/6c5b83172650551.6482b548c7660.png') no-repeat center center;
  background-position-y: -25%;
  background-size: 120%;
  background-attachment: fixed;
  color: #C2C2C2;
  padding-top: var(--nav-h);
  min-height: 100vh;
}

header[role="banner"] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: black;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 5000;
  flex-wrap: nowrap;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo {
  height: 55px;
  width: auto;
}

.nav-link {
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  text-align: center;
  white-space: nowrap;
  padding: 0 0.4rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  text-decoration: underline;
}

.nav-games-dropdown {
  position: relative;
  display: inline-block;
}

.nav-games-trigger {
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  text-align: center;
  white-space: nowrap;
  padding: 0 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-games-trigger:hover {
  text-decoration: underline;
}

.nav-games-menu {
  position: absolute;
  top: 100%;
  left: -10px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  margin-top: 5px;
}

.nav-games-dropdown:hover .nav-games-menu {
  opacity: 1;
  visibility: visible;
}

.nav-games-item {
  display: block;
  padding: 10px 15px;
  color: #C2C2C2;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid #333;
}

.nav-games-item:last-child {
  border-bottom: none;
}

.nav-games-item:hover {
  background: #2a2a2a;
  color: #d4af37;
}

.nav-notifications-btn,
.nav-profile-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-notifications-btn:hover,
.nav-profile-btn:hover {
  color: #d4af37;
}

.nav-notifications-icon,
.nav-profile-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.notifications-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #d4af37;
  color: #000;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 50%;
  min-width: 20px;
  text-align: center;
}

.mobile-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 30px;
}

.mobile-hamburger span {
  width: 25px;
  height: 3px;
  background: #FFFFFF;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  left: -100%;
  top: 70px;
  width: 100%;
  height: calc(100vh - 70px);
  background: #000;
  transition: left 0.3s ease;
  z-index: 4999;
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-content {
  padding: 20px;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mobile-menu-logo {
  height: 40px;
  width: auto;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu-link {
  display: block;
  padding: 15px;
  color: #C2C2C2;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid #333;
  transition: all 0.3s ease;
}

.mobile-menu-link:hover {
  background: #1a1a1a;
  color: #d4af37;
}

.mobile-games-section {
  border-bottom: 1px solid #333;
}

.mobile-games-trigger {
  width: 100%;
  padding: 15px;
  background: none;
  border: none;
  color: #C2C2C2;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Cinzel', serif;
  transition: all 0.3s ease;
}

.mobile-games-trigger:hover {
  background: #1a1a1a;
  color: #d4af37;
}

.mobile-games-chevron {
  transition: transform 0.3s ease;
}

.mobile-games-menu {
  display: none;
  background: #1a1a1a;
}

.mobile-games-menu.active {
  display: block;
}

.mobile-games-item {
  display: block;
  padding: 12px 40px;
  color: #C2C2C2;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid #333;
}

.mobile-games-item:last-child {
  border-bottom: none;
}

.mobile-games-item:hover {
  background: #2a2a2a;
  color: #d4af37;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: rgba(0, 0, 0, 0.5);
  z-index: 4998;
}

.mobile-menu-overlay.active {
  display: block;
}

.desktop-only {
  display: inline-block;
}

@media (max-width: 768px) {
  .mobile-hamburger {
    display: flex;
  }

  .desktop-only {
    display: none;
  }

  .nav-center {
    position: static;
    transform: none;
    order: -1;
  }

  .nav-left {
    margin-right: auto;
  }
}

.quiz-container {
  width: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 20, 20, 0.85) 50%, rgba(0, 0, 0, 0.85) 100%);
  min-height: calc(100vh - var(--nav-h));
  padding-bottom: 60px;
}

.quiz-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
}

.glass-card {
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 50px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: auto;
  padding: 40px 0;
}

.hero-content {
  max-width: 700px;
  margin-bottom: 30px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #FFFFFF;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #C2C2C2;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.6;
}

.primary-btn {
  background: #d4af37;
  color: #000;
  border: none;
  padding: 15px 50px;
  font-size: 1.1rem;
  font-family: 'Cinzel', serif;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.primary-btn:hover {
  background: #e0c158;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}

.secondary-btn {
  background: transparent;
  color: #d4af37;
  border: 2px solid #d4af37;
  padding: 12px 30px;
  font-size: 1rem;
  font-family: 'Cinzel', serif;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background: #d4af37;
  color: #000;
}

.hidden {
  display: none !important;
}

.teaser-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.teaser-title {
  font-size: 1.8rem;
  color: #FFFFFF;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 400;
  letter-spacing: 1px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.teaser-card {
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.teaser-card:hover {
  border-color: #d4af37;
  background: rgba(26, 26, 26, 0.95);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.teaser-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.teaser-name {
  font-size: 1.1rem;
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: 1px;
}

.teaser-emoji {
  font-size: 1.5rem;
}

.teaser-traits {
  font-size: 0.95rem;
  color: #d4af37;
  margin-bottom: 15px;
  font-weight: 500;
}

.teaser-examples {
  font-size: 0.9rem;
  color: #999;
  line-height: 1.6;
}

.quiz-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 40px 0;
}

.quiz-wrapper {
  width: 100%;
}

.quiz-progress {
  margin-bottom: 40px;
}

#progressText {
  display: block;
  font-size: 1rem;
  color: #d4af37;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(100, 100, 100, 0.3);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #e0c158);
  width: 10%;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.quiz-content {
  margin-bottom: 40px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-text {
  font-size: 2rem;
  color: #FFFFFF;
  margin-bottom: 35px;
  text-align: center;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.3;
}

.answers-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.answer-card {
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid rgba(100, 100, 100, 0.3);
  padding: 20px;
  cursor: pointer;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 1rem;
  color: #C2C2C2;
  font-family: 'Cinzel', serif;
  font-weight: 500;
}

.answer-card:hover {
  border-color: #d4af37;
  background: rgba(26, 26, 26, 0.95);
  color: #FFFFFF;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.answer-card.selected {
  background: rgba(212, 175, 55, 0.15);
  color: #d4af37;
  border-color: #d4af37;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.quiz-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.spacer {
  flex: 1;
}

.results-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 40px 0;
}

.results-wrapper {
  width: 100%;
}

.personality-headline {
  text-align: center;
  margin-bottom: 30px;
}

.personality-title {
  font-size: 2.2rem;
  color: #FFFFFF;
  font-weight: 400;
  letter-spacing: 2px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 50px;
}

.profile-tag {
  background: transparent;
  border: 2px solid #d4af37;
  color: #d4af37;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  letter-spacing: 1px;
}

.recommendations-title {
  font-size: 1.8rem;
  color: #FFFFFF;
  margin-top: 50px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 400;
  letter-spacing: 1px;
}

.fragrances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.fragrance-card {
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #C2C2C2;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.fragrance-card:hover {
  border-color: #d4af37;
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.2);
}

.fragrance-card:hover .fragrance-name {
  color: #d4af37;
}

.fragrance-card-image {
  width: 100%;
  height: 180px;
  background: rgba(42, 42, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fragrance-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.fragrance-card:hover .fragrance-card-image img {
  transform: scale(1.05);
}

.fragrance-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.fragrance-brand {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fragrance-name {
  font-size: 1rem;
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.fragrance-rating {
  font-size: 0.95rem;
  color: #d4af37;
  margin-bottom: 15px;
}

.fragrance-btn {
  background: transparent;
  border: 2px solid #d4af37;
  color: #d4af37;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: auto;
  transition: all 0.3s ease;
}

.fragrance-btn:hover {
  background: #d4af37;
  color: #000;
}

.share-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  text-align: center;
}

.share-title {
  font-size: 1.6rem;
  color: #FFFFFF;
  margin-bottom: 25px;
  font-weight: 400;
  letter-spacing: 1px;
}

.share-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.share-buttons .primary-btn,
.share-buttons .secondary-btn {
  min-width: 200px;
}

.share-feedback {
  font-size: 0.95rem;
  color: #d4af37;
  margin-top: 15px;
  min-height: 20px;
}

.friend-share-section {
  margin-top: 50px;
  padding: 30px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  text-align: center;
}

.friend-share-title {
  font-size: 1.3rem;
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 1px;
}

#retakeBtn {
  display: block;
  margin: 40px auto 0;
}

@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }

  .quiz-shell {
    padding: 20px 15px;
  }

  .glass-card {
    padding: 30px 20px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .teaser-grid {
    grid-template-columns: 1fr;
  }

  .question-text {
    font-size: 1.5rem;
  }

  .answers-grid {
    grid-template-columns: 1fr;
  }

  .answer-card {
    padding: 15px;
    font-size: 0.95rem;
  }

  .personality-title {
    font-size: 1.6rem;
  }

  .recommendations-title {
    font-size: 1.3rem;
  }

  .fragrances-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }

  .fragrance-card-image {
    height: 140px;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-buttons .primary-btn,
  .share-buttons .secondary-btn {
    min-width: auto;
  }
}
