/* ================= INCEPUT: FONTURI ȘI RESURSE EXTERNE ================= */

@font-face {
  font-family: 'DeterminationSans';
  font-weight: normal;
  font-style: normal;
  src: url('DeterminationMonoWebRegular-Z5oq.ttf') format('truetype');
}

/* ================= FINAL: FONTURI ȘI RESURSE EXTERNE ================= */

/* ================= INCEPUT: STILURI GLOBALE ================= */

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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 130px;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  font-family: 'DeterminationSans', sans-serif;
  background-color: #ffffff;
}

body.no-scroll {
  overflow: hidden;
}

main {
  padding-top: 90px;
}

img {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

a {
  color: inherit;
}

@media (max-width: 1100px) {
  main{
    padding-top: 80px;
  }
}
@media (max-width: 768px) {

  main {
    padding-top: 65px;
  }
}

@media (max-width: 620px) {

  main {
    padding-top: 60px;
  }

  section[id] {
    scroll-margin-top: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================= FINAL: STILURI GLOBALE ================= */

/* ================= INCEPUT: HEADER, NAVIGAȚIE ȘI CĂUTARE ================= */

header {
  background-color: transparent;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  justify-items: center;
  gap: 18px;
  width: 100%;
  padding: 0.9rem 1.4rem;
  background: linear-gradient(135deg, black, #f31a05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  border-radius: 0 0 18px 18px;
  transform: none;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.logo img {
  max-height: 78px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
}

.nav-links li {
  margin-left: 0;
}

.nav-links .dd {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  color: #ffdd57;
  transform: translateY(-1px);
}

.nav-links .nav-primary-link {
  padding: 10px 16px;
  border-radius: 8px;
  background: #ffdd57;
  color: #000000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 22px rgba(255, 221, 87, 0.26);
}

.nav-primary-link{
  margin-bottom: 20px;
}

.nav-links .nav-primary-link:hover {
  color: #000000;
  background: #ffffff;
  transform: translateY(-2px);
}

.nav-links .nav-secondary-link {
  padding: 10px 14px;
  border: 1px solid rgba(255, 221, 87, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links .nav-secondary-link:hover {
  background: rgba(255, 221, 87, 0.18);
  color: #ffdd57;
}

.menu-arrow {
  font-size: 0.75rem;
}

.dd-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 1400;
  visibility: hidden;
  min-width: 220px;
  padding: 8px;
  list-style: none;
  border: 1px solid rgba(255, 221, 87, 0.28);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dd:hover > .dd-menu, .dd:focus-within > .dd-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dd-menu a {
  display: block;
  width: 100%;
  padding: 10px 12px;
  white-space: nowrap;
  border-radius: 8px;
  color: #ffffff;
}

.dd-menu a:hover {
  background: rgba(255, 221, 87, 0.12);
  color: #ffdd57;
}

.nav-search {
  position: relative;
  flex: 0 0 240px;
  width: min(240px, 100%);
}

.nav-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  font-weight: bold;
  border: 2px solid #ffc107;
  border-radius: 14px;
  outline: none;
  background: #ffc107;
  color: #111;
  box-shadow: 0 0 0 3px rgba(255, 221, 87, 0.14),
    0 8px 18px rgba(0, 0, 0, 0.18);
  transition: 0.3s ease;
}

.nav-search input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 4px rgba(243, 26, 5, 0.14),
    0 10px 20px rgba(0, 0, 0, 0.2);
}

.nav-search input::placeholder {
  font-weight: bold;
  color: #5a5a5a;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1300;
  display: none;
  overflow: hidden;
  width: 100%;
  background: #08131f;
  border: 2px solid rgba(255, 221, 87, 0.35);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.search-results.show {
  display: block;
}

.search-item {
  padding: 12px 14px;
  color: #ffffff;
  transition: background 0.25s ease, color 0.25s ease;
  cursor: pointer;
}

.search-item:hover {
  background: rgba(255, 221, 87, 0.12);
  color: #ffdd57;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  visibility: visible;
  opacity: 1;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 auto;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.burger div {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.burger-wrap{
  width: auto;
}

.music-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.music-header span {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: #ffdd57;
}

.gallery-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  text-align: left;
}

@media (max-width: 1100px) {

  .navbar {
    gap: 14px;
    padding: 0.9rem 1rem;
  }

  .logo img {
    max-height: 70px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.94rem;
  }

  .nav-search {
    flex-basis: 200px;
    width: 200px;
  }
}

@media (max-width: 768px) {

  .navbar {
    gap: 12px;
    padding: 0.8rem 1rem;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(90deg, #168ae6 0%, #061423 30%, #061423 100%);
  }

  .logo img {
    max-height: 54px;
  }

  .burger {
    position: relative;
    z-index: 1301;
    display: flex !important;
    margin-left: calc(100% - 60px);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 1250;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: nowrap;
    overflow-y: auto;
    width: min(82vw, 310px);
    height: 100vh;
    margin-top: 30px;
    padding: 110px 22px 24px;
    background: #061423;
    border-radius: 20px 0 0 20px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.35);
    transition: right 0.35s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 6px 0;
    font-size: 1rem;
    color: #ffe100;
  }

  .nav-links a:hover {
    color: #00eeff;
  }

  .dd-menu {
    position: static;
    display: none;
    visibility: visible;
    min-width: 0;
    width: 100%;
    padding: 2px 0 2px 12px;
    border: 0;
    border-left: 2px solid rgba(255, 221, 87, 0.28);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
  }

  .dd:hover > .dd-menu, .dd:focus-within > .dd-menu {
    transform: none;
  }

  .dd.open > .dd-menu {
    display: block;
  }

  .dd-menu a {
    padding: 8px 0;
    white-space: normal;
    color: #d9f7ff;
  }

  .nav-search {
    position: fixed;
    top: 78px;
    right: -100%;
    left: auto;
    z-index: 1260;
    flex: none;
    width: min(70vw, 250px);
    opacity: 0;
    transform: none;
    transition: right 0.35s ease, opacity 0.25s ease;
    pointer-events: none;
  }

  body.no-scroll .nav-search {
    right: 20px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-search input {
    height: 44px;
    border-radius: 12px;
    background: #ffc107;
    border: 2px solid #ffc107;
    color: #111;
  }

  .search-results {
    width: 100%;
    border-radius: 12px;
  }
}

@media (max-width: 720px) {

  .gallery-header {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 1180px) {

  .navbar {
    align-items: center;
  }

  .nav-links {
    gap: 10px;
  }
}

/* ================= FINAL: HEADER, NAVIGAȚIE ȘI CĂUTARE ================= */

/* ================= INCEPUT: COMPONENTE COMUNE ================= */

.site-bg-parallax {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("Gallery/Toriel\ and\ firsk.png") no-repeat center / cover;
  will-change: transform;
  pointer-events: none;
}

.site-bg-parallax::after {
  position: absolute;
  inset: 0;
  content: "";
  background-color: rgba(0, 0, 0, 0.35);
}

.hero-btn, .platform-card a, .community-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.hero-btn.primary, .btn-primary, .platform-card a, .community-card a {
  background: #ffdd57;
  color: #000;
}

.hero-btn:hover, .platform-card a:hover, .community-card a:hover {
  background: #ffc107;
  transform: translateY(-2px);
}

.hero-facts span, .mechanic-card span, .trophy-card span, .secret-main span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffdd57;
}

.ut-info-section {
  position: relative;
  z-index: 1;
  width: min(1180px, 95%);
  margin: 38px auto;
  padding: clamp(34px, 5vw, 64px) clamp(18px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: radial-gradient(circle at top, rgba(255, 221, 87, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(25, 7, 7, 0.96));
  box-shadow: 0 0 30px rgba(243, 26, 5, 0.16);
  color: #ffffff;
}

.ut-section-title {
  max-width: 920px;
  margin: 0 auto 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
}

.ut-section-lead {
  max-width: 820px;
  margin: 0 auto 34px;
  font-size: 1rem;
  line-height: 1.75;
  text-align: center;
  color: #e4e4e4;
}

.mechanic-grid, .route-grid, .platform-grid, .trophy-grid, .community-grid, .secret-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.mechanic-card, .route-card, .platform-card, .trophy-card, .community-card, .secret-list article {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.mechanic-card:hover, .route-card:hover, .platform-card:hover, .trophy-card:hover, .community-card:hover, .secret-list article:hover {
  border-color: rgba(255, 221, 87, 0.28);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-5px);
}

.mechanic-card h3, .route-card h3, .platform-card h3, .trophy-card h3, .community-card h3, .secret-list h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  color: #ffdd57;
}

.mechanic-card p, .route-card p, .platform-card p, .trophy-card p, .community-card p, .secret-list p, .secret-main p {
  line-height: 1.7;
  color: #eeeeee;
}

.platform-card, .community-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-card a, .community-card a {
  width: fit-content;
  margin-top: auto;
}

.trophy-card.platinum {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 221, 87, 0.07)),
    rgba(255, 255, 255, 0.045);
}

.mechanic-open, .route-btn, .secret-toggle, .trophy-unlock {
  min-height: 40px;
  margin-top: 14px;
  padding: 9px 14px;
  font-weight: bold;
  border: 0;
  border-radius: 8px;
  background: #ffdd57;
  color: #000000;
  transition: transform 0.22s ease, background 0.22s ease;
  cursor: pointer;
}

.mechanic-open:hover, .route-btn:hover, .secret-toggle:hover, .trophy-unlock:hover {
  background: #ffc107;
  transform: translateY(-2px);
}

#route-meter-fill {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffdd57, #f31a05);
  transition: width 0.45s ease, background 0.35s ease;
}

#route-console-text {
  line-height: 1.7;
  color: #f4f4f4;
}

.platform-switcher, .community-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.platform-filter, .community-tab {
  min-height: 42px;
  padding: 9px 16px;
  font-weight: bold;
  border: 1px solid rgba(255, 221, 87, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  cursor: pointer;
}

.platform-filter.active, .community-tab.active {
  background: #ffdd57;
  color: #000000;
}

.platform-card.active, .community-card.active {
  border-color: #ffdd57;
  background: rgba(255, 221, 87, 0.1);
}

.trophy-progress {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 221, 87, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.trophy-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

#trophy-count {
  font-weight: bold;
  color: #ffdd57;
}

.trophy-bar {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

#trophy-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffdd57, #77dd77);
  transition: width 0.45s ease;
}

.trophy-card.unlocked {
  border-color: #77dd77;
  background: rgba(119, 221, 119, 0.12);
}

.trophy-card.unlocked .trophy-unlock {
  background: #77dd77;
}

#achievement-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffdd57, #77dd77);
  transition: width 0.35s ease;
}

.story-line {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.85;
  opacity: 0;
  color: #ffe9a8;
  transform: translateY(6px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.story-line.visible {
  opacity: 1;
  transform: translateY(0);
}

#video {
  position: relative;
  z-index: 1;
  width: 1200px;
  padding: 20px 20px 40px 20px;
  justify-self: center;
  text-align: center;
  background: #000000;
  border-radius: 20px;
  color: white;
}
.video-title-1{
  font-size: 2rem;
  margin-bottom: 20px;
}
.soundtrack-title{
  font-size: 2rem;
  margin: 20px 0 20px 0;
}

.ut-info-section::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 20%), rgba(255, 221, 87, 0.14), transparent 26rem),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.03) 42%, transparent 60%);
  opacity: 0.72;
  animation: sectionAura 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.ut-info-section > * {
  position: relative;
  z-index: 1;
}

.mechanic-card::before, .route-card::before, .platform-card::before, .trophy-card::before, .community-card::before, .secret-list article::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent, rgba(255, 221, 87, 0.12), transparent);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.mechanic-card:hover::before, .route-card:hover::before, .platform-card:hover::before, .trophy-card:hover::before, .community-card:hover::before, .secret-list article:hover::before {
  transform: translateX(120%);
}

.mechanic-card, .route-card, .platform-card, .trophy-card, .community-card, .secret-list article {
  position: relative;
  overflow: hidden;
}

.mechanic-card.active::after, .route-card.active::after, .platform-card.active::after, .community-card.active::after, .trophy-card.unlocked::after {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  content: "";
  border-radius: 999px 999px 0 0;
  background: #ffdd57;
  box-shadow: 0 0 16px rgba(255, 221, 87, 0.8);
}

.platform-filter:hover, .community-tab:hover, .event-filter:hover {
  box-shadow: 0 14px 26px rgba(255, 221, 87, 0.16);
  transform: translateY(-3px);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 5px;
  font-size: 0.9rem;
  background: #222;
  border-radius: 8px;
}

.cart-item button {
  margin-left: 8px;
  padding: 4px 6px;
  font-size: 0.8rem;
}

.event-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(8, 8, 8, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.event-card:hover {
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 221, 87, 0.24);
  transform: translateY(-6px);
}

.event-topbar {
  height: 6px;
  background: linear-gradient(90deg, #f31a05, #ffdd57);
}

.event-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 20px 20px;
}

.event-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 999px;
  background: rgba(243, 26, 5, 0.16);
  border: 1px solid rgba(243, 26, 5, 0.35);
  color: #ffd0cb;
}

.event-date {
  font-size: 0.92rem;
  color: #ffdd57;
}

.event-card h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.25;
  color: #ffffff;
}

.event-location {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #9fd8ff;
}

.event-description {
  margin-bottom: 16px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #dddddd;
}

.event-extra {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.event-pill {
  padding: 6px 10px;
  font-size: 0.84rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.event-countdown {
  margin-top: auto;
  margin-bottom: 16px;
  padding: 12px;
  font-size: 0.92rem;
  line-height: 1.6;
  border-radius: 12px;
  background: rgba(255, 221, 87, 0.06);
  border: 1px solid rgba(255, 221, 87, 0.14);
  color: #ffefb0;
}

.event-btn {
  padding: 12px 16px;
  font-family: 'DeterminationSans', sans-serif;
  font-size: 0.95rem;
  background: #ffdd57;
  color: #000;
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.event-btn:hover {
  background: #ffc107;
  transform: scale(1.03);
}

.event-details {
  display: none;
  margin-top: 14px;
  padding: 14px;
  line-height: 1.7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid #f31a05;
  color: #f2f2f2;
}

.event-details.active {
  display: block;
  animation: fadeSlide 0.35s ease;
}

.event-empty {
  grid-column: 1 / -1;
  padding: 30px 20px;
  text-align: center;
  color: #d7d7d7;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 18px;
}

.answers-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
}

.correct-answer {
  background: #28a745 !important;
  animation: correctAnimation 0.5s ease-in-out;
}

.wrong-answer {
  background: #420007 !important;
  animation: wrongAnimation 0.5s ease-in-out;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#backToTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1300;
  display: none;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  font-weight: bold;
  border: 0;
  border-radius: 50%;
  background: #ffdd57;
  color: #000;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

#backToTop.show {
  display: grid;
  place-items: center;
}

#backToTop:hover {
  background: #ffc107;
  transform: translateY(-3px);
}

@keyframes sectionAura {

  from {
    opacity: 0.45;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 0.9;
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes equalizerFlow {

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

  to {
    background-position: 180% 50%;
  }
}

@keyframes fadeSlide {

  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes correctAnimation {

  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

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

@keyframes wrongAnimation {

  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.9);
  }

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

@media (max-width: 768px) {

  .site-bg-parallax {
    background-attachment: scroll;
  }
}

@media (max-width: 900px) {

  .hero-section, .secret-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {

  .hero-actions, .hero-btn, .platform-card a, .community-card a {
    width: 100%;
  }
}

@media (max-width: 768px) {

  .story-line {
    line-height: 1.7;
    font-size: 0.98rem;
  }
}

@media (max-width: 1250px) {

  .ut-info-section {
    width: min(96%, 1040px);
  }

  #video{
    width: min(96%, 1040px);
  }
}

@media (max-width: 860px) {

  .mechanic-stage, .achievement-lab, .contact-container, .shop-layout {
    grid-template-columns: 1fr;
  }

  .mechanic-grid, .achievement-board, .route-grid, .platform-grid, .trophy-grid, .community-grid, .secret-list, .events-grid, .ut-blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 620px) {

  .ut-info-section, #despre, #caractere, #galerie, #video, #shop, #events, #blog, #contact, #feedback {
    width: min(96%, 100%);
    margin-inline: auto;
    border-radius: 8px;
  }

  .mechanic-grid, .achievement-board, .route-grid, .platform-grid, .trophy-grid, .community-grid, .secret-list, .events-grid, .ut-blog-grid, .gallery-container, .shop-products {
    grid-template-columns: 1fr;
  }

  .platform-switcher, .community-tabs, .events-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-filter, .achievement-filter, .achievement-toggle, .community-tab, .event-filter, .hero-btn, .mechanic-open, .route-btn, .secret-toggle, .trophy-unlock {
    width: 100%;
  }

  .trophy-progress-top {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 768px) {

  .event-card-content {
    padding: 18px 16px 16px;
  }

  .event-card h3 {
    font-size: 1.2rem;
  }

  .event-description, .event-details {
    font-size: 0.92rem;
  }

  .event-btn {
    width: 100%;
  }
}

/* ================= FINAL: COMPONENTE COMUNE ================= */

/* ================= INCEPUT: SECȚIUNEA EVERYTHING ABOUT UNDERTALE (#home) ================= */

.ut-section-kicker {
  text-align: center;
}

#home {
  position: relative;
}

.hero-section {
  display: grid;
  box-sizing: content-box;
  grid-template-columns: minmax(0, 760px) minmax(290px, 420px);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: clamp(640px, calc(100vh - 110px), 920px);
  padding: clamp(70px, 7vw, 112px) max(18px, calc((100vw - 1480px) / 2 + 34px));
  padding-top: 5%;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.68) 50%, rgba(0, 0, 0, 0.35) 100%),
    url("Gallery/Story.png") center / cover no-repeat;
}

.hero-section::after {
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  content: "";
  background: linear-gradient(0deg, #000, rgba(0, 0, 0, 0));
  pointer-events: none;
}

.hero-copy, .hero-panel {
  position: relative;
  z-index: 1;
}

.hero-kicker, .ut-section-kicker {
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffdd57;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.hero-copy p {
  max-width: 720px;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.7;
  color: #f5f5f5;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hero-panel {
  justify-self: end;
  width: min(100%, 420px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 221, 87, 0.22);
  border-radius: 8px;
  background: radial-gradient(circle at top, rgba(255, 221, 87, 0.14), transparent 42%),
    rgba(0, 0, 0, 0.76);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45);
}

.hero-panel img {
  width: min(100%, 360px);
  margin: 0 auto 24px;
  image-rendering: pixelated;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-facts div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-facts strong {
  font-size: 1rem;
  color: #ffffff;
}

.music-widget {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 1350;
}

.music-fab {
  min-width: 72px;
  min-height: 72px;
  font-weight: bold;
  border: 2px solid #ffdd57;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #f31a05, #000 58%, #050505 100%);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  animation: musicPulse 2.4s ease-in-out infinite;
  cursor: pointer;
}

.music-panel {
  position: absolute;
  right: 0;
  bottom: 86px;
  width: min(310px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid rgba(255, 221, 87, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.94);
  color: #ffffff;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.52);
  animation: panelPop 0.26s ease;
}

.music-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f31a05;
  color: #ffffff;
  cursor: pointer;
}

.music-track-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.music-track {
  min-height: 38px;
  border: 1px solid rgba(255, 221, 87, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
}

.music-track.active {
  background: #ffdd57;
  color: #000000;
}

.music-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.music-btn {
  min-height: 42px;
  font-weight: bold;
  border: 0;
  border-radius: 8px;
  background: #ffdd57;
  color: #000000;
  cursor: pointer;
}

.music-volume {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: #e7e7e7;
}

@keyframes musicPulse {

  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  }

  50% {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 24px 50px rgba(243, 26, 5, 0.36);
  }
}

@keyframes panelPop {

  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 1600px) {

  .hero-section {
    grid-template-columns: minmax(0, 820px) minmax(340px, 440px);
    gap: 72px;
    background-position: center 42%;
  }
}

@media (max-width: 900px) {

  .hero-section {
    min-height: auto;
  }

  .hero-panel {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 685px){

  .hero-section{
    grid-template-columns: minmax(0, 760px);
    padding-bottom: 0;
  }

  .hero-copy{
    padding: 20px;
  }

  .hero-panel{
    display:none;
  }

  .hero-btn{
    max-width: 400px;
  }

}

@media (max-width: 560px) {

  .hero-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {

  .music-widget {
    right: 14px;
    bottom: 76px;
  }
}

@media (max-width: 620px) {

  .hero-section {
    padding: 54px 16px 70px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 14vw, 3.4rem);
  }

  .music-panel {
    right: -8px;
    width: calc(100vw - 28px);
  }
}

/* ================= FINAL: SECȚIUNEA EVERYTHING ABOUT UNDERTALE (#home) ================= */

/* ================= INCEPUT: SECȚIUNEA ABOUT UNDERTALE (#despre) ================= */

#despre {
  position: relative;
  z-index: 1;
  padding: 160px 20px 30px;
  margin-top: -20px;
  font-weight: bold;
  font-size: 26px;
  background: #000;
  color: #ffffff;
  box-shadow: 0 10px 6px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100vw !important;
}

@media (max-width: 768px){

  #despre{
    padding: 0 35px 30px 35px !important;
  }

}

#despre h2 {
  padding: 40px 0 60px;
  font-size: 4rem;
  text-align: center;
}

#despre p {
  margin-bottom: 20px;
  line-height: 1.7;
}

@media (max-width: 768px) {

  #despre {
    padding: 100px 16px 24px;
    font-size: 18px;
  }

  #despre h2 {
    padding: 20px 0 30px;
    font-size: 2.3rem;
  }
}

/* ================= FINAL: SECȚIUNEA ABOUT UNDERTALE (#despre) ================= */

/* ================= INCEPUT: SECȚIUNEA GAMEPLAY THAT REMEMBERS YOUR CHOICES (#gameplay) ================= */

.mechanic-stage {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 24px;
}

.soul-box {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border: 3px solid #ffffff;
  border-radius: 8px;
  background: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),

    #050505;
  background-size: 24px 24px;
}

.soul-heart {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  background: #f31a05;
  box-shadow: 0 0 18px rgba(243, 26, 5, 0.85);
  transform: translate(-50%, -50%) rotate(45deg);
  animation: heartAct 2.2s ease-in-out infinite;
}

.soul-heart::before {
  position: absolute;
  left: -11px;
  top: 0;
  width: 22px;
  height: 22px;
  content: "";
  border-radius: 50%;
  background: inherit;
}

.soul-heart::after {
  position: absolute;
  left: 0;
  top: -11px;
  width: 22px;
  height: 22px;
  content: "";
  border-radius: 50%;
  background: inherit;
}

.soul-orbit {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.8;
  animation: soulBullet 3.2s linear infinite;
}

.soul-orbit.one {
  left: 12%;
  top: 18%;
}

.soul-orbit.two {
  left: 72%;
  top: 68%;
  animation-delay: -1s;
}

.soul-orbit.three {
  left: 38%;
  top: 78%;
  animation-delay: -2s;
}

.soul-heart.heart-spare {
  background: #77dd77;
  animation-name: heartSpare;
}

.soul-heart.heart-soul {
  background: #3fb4ff;
  animation-name: heartDodge;
}

.soul-heart.heart-save {
  background: #ffdd57;
  animation-name: heartSave;
}

.mechanic-panel {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 221, 87, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 24px rgba(255, 221, 87, 0.04);
}

.mechanic-panel.is-changing {
  animation: panelPop 0.34s ease;
}

.mechanic-panel span {
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffdd57;
}

.mechanic-panel h3 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  color: #ffffff;
}

.mechanic-card.active {
  border-color: #ffdd57;
  background: rgba(255, 221, 87, 0.1);
}

@keyframes heartAct {

  0%, 100% {
    left: 28%;
    top: 58%;
  }

  50% {
    left: 66%;
    top: 38%;
  }
}

@keyframes heartSpare {

  0%, 100% {
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
  }

  50% {
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%) rotate(45deg) scale(1.22);
  }
}

@keyframes heartDodge {

  0% {
    left: 18%;
    top: 22%;
  }

  35% {
    left: 78%;
    top: 28%;
  }

  70% {
    left: 42%;
    top: 78%;
  }

  100% {
    left: 18%;
    top: 22%;
  }
}

@keyframes heartSave {

  0%, 100% {
    left: 50%;
    top: 50%;
    filter: brightness(1);
  }

  50% {
    left: 50%;
    top: 50%;
    filter: brightness(1.6);
  }
}

@keyframes soulBullet {

  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(55px, -36px);
  }

  100% {
    transform: translate(0, 0);
  }
}

@media (max-width: 760px) {

  .mechanic-stage {
    grid-template-columns: 1fr;
  }
}

/* ================= FINAL: SECȚIUNEA GAMEPLAY THAT REMEMBERS YOUR CHOICES (#gameplay) ================= */

/* ================= INCEPUT: SECȚIUNEA MAIN ROUTES AND ENDINGS (#routes) ================= */

.route-card ul {
  margin-top: 14px;
  padding-left: 18px;
  line-height: 1.7;
  color: #f2f2f2;
}

.route-card.pacifist {
  border-color: rgba(119, 221, 119, 0.26);
}

.route-card.genocide {
  border-color: rgba(243, 26, 5, 0.35);
}

.route-card.neutral {
  border-color: rgba(255, 221, 87, 0.26);
}

.route-card.hard {
  border-color: rgba(159, 216, 255, 0.28);
}

.route-console {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 221, 87, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.route-console.is-changing {
  animation: routeGlow 0.45s ease;
}

.route-meter {
  overflow: hidden;
  height: 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.route-card.active {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  transform: translateY(-6px);
}

@keyframes routeGlow {

  0% {
    box-shadow: 0 0 0 rgba(255, 221, 87, 0);
  }

  50% {
    box-shadow: 0 0 28px rgba(255, 221, 87, 0.18);
  }

  100% {
    box-shadow: 0 0 0 rgba(255, 221, 87, 0);
  }
}

/* ================= FINAL: SECȚIUNEA MAIN ROUTES AND ENDINGS (#routes) ================= */

/* ================= INCEPUT: SECȚIUNEA PLATFORMS AND OFFICIAL PLACES (#platforms) ================= */

.platform-stage {
  max-width: 780px;
  margin: 0 auto 24px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 221, 87, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.platform-stage.is-changing {
  animation: panelPop 0.34s ease;
}

.platform-stage span {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffdd57;
}

.platform-stage strong {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #ffffff;
}

/* ================= FINAL: SECȚIUNEA PLATFORMS AND OFFICIAL PLACES (#platforms) ================= */

/* ================= INCEPUT: SECȚIUNEA UNDERTALE (#parallax) ================= */

.parallax-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30vh;
  margin-top: -20px;
  margin-bottom: -20px;
  text-align: center;
  background: none;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
}

.parallax-section::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
}

.parallax-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.parallax-title {
  margin-bottom: 10px;
  font-size: 2.5rem;
  font-weight: bold;
}

.parallax-subtitle {
  font-size: 1.2rem;
}

@media (max-width: 768px) {

  .parallax-section {
    height: auto;
    padding: 60px 20px;
    background-attachment: scroll;
    background-size: contain;
  }

  .parallax-title {
    font-size: 1.8rem;
  }

  .parallax-subtitle {
    font-size: 1rem;
  }
}

/* ================= FINAL: SECȚIUNEA UNDERTALE (#parallax) ================= */

/* ================= INCEPUT: SECȚIUNEA UNDERTALE CHARACTERS (#caractere) ================= */

#caractere {
  position: relative;
  z-index: 1;
  width: min(1200px, 95%);
  padding: 70px 20px;
  margin: 30px auto;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(34, 0, 0, 0.95));
  border-radius: 22px;
  box-shadow: 0 0 25px rgba(243, 26, 5, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.ut-gallery-title {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
}

.ut-gallery-subtitle {
  margin-bottom: 40px;
  text-align: center;
  font-size: 1.1rem;
  color: #ffb3aa;
}

.ut-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
}

.ut-card {
  perspective: 1000px;
}

.ut-card-inner {
  position: relative;
  width: 100%;
  height: 320px;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.ut-card:hover .ut-card-inner {
  transform: rotateY(180deg);
}

.ut-card-front, .ut-card-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  backface-visibility: hidden;
}

.ut-card-front {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: radial-gradient(circle at top, rgba(243, 26, 5, 0.20), transparent 45%),
    linear-gradient(180deg, #111, #000);
  border: 2px solid #f31a05;
}

.ut-card-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
  transition: transform 0.35s ease;
}

.ut-card:hover .ut-card-front img {
  transform: scale(1.05);
}

.ut-card-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  background: linear-gradient(180deg, #f31a05, #7d0700);
  color: white;
  border: 2px solid #fff;
  transform: rotateY(180deg);
}

.ut-card-back h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  color: #fff;
}

.ut-card-back p {
  font-size: 1rem;
  line-height: 1.5;
  color: #fff5f3;
}

@media (max-width: 768px) {

  #caractere {
    padding: 50px 15px;
  }

  .ut-card-inner {
    height: 280px;
  }

  .ut-card-back h3 {
    font-size: 1.25rem;
  }

  .ut-card-back p {
    font-size: 0.92rem;
  }
}

/* ================= FINAL: SECȚIUNEA UNDERTALE CHARACTERS (#caractere) ================= */

/* ================= INCEPUT: SECȚIUNEA THE STORY OF UNDERTALE (#poveste) ================= */

#poveste {
  position: relative;
  z-index: 1;
  padding: 90px 20px;
}

.story-section {
  overflow: hidden;
  width: min(1100px, 94%);
  margin: 40px auto;
  background: radial-gradient(circle at top, rgba(255, 215, 0, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(25, 8, 8, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 0 30px rgba(243, 26, 5, 0.14);
}

.story-wrapper {
  padding: clamp(30px, 5vw, 60px);
  text-align: center;
}

.story-kicker {
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.95rem;
  color: #ffdd57;
}

.story-main-title {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  text-transform: uppercase;
  color: #ffffff;
}

.story-subtitle {
  margin-bottom: 28px;
  font-size: 1rem;
  color: #d8d8d8;
}

.story-crawl-stage {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 221, 87, 0.16);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.92), rgba(18, 18, 18, 0.96));
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.03),
    0 8px 24px rgba(0, 0, 0, 0.22);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}

.story-crawl-stage:hover {
  border-color: rgba(255, 221, 87, 0.28);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.28);
}

.story-crawl-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(2px 2px at 10% 20%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(2px 2px at 35% 70%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(2px 2px at 60% 35%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(2px 2px at 80% 15%, rgba(255, 255, 255, 0.65), transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 75%, rgba(255, 255, 255, 0.4), transparent 60%);
  opacity: 0.25;
  pointer-events: none;
}

.story-crawl-text {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 0 6px rgba(255, 221, 87, 0.08);
  color: #ffdd57;
}

.story-step-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 14px;
  font-size: 0.88rem;
  letter-spacing: 2px;
  border: 1px solid rgba(255, 221, 87, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.story-step-title {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.3vw, 2.8rem);
  text-transform: uppercase;
  line-height: 1.15;
  color: #ffdd57;
}

.story-step-body {
  max-width: 720px;
  margin: 0 auto;
}

.story-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.story-btn {
  padding: 12px 22px;
  font-family: 'DeterminationSans', sans-serif;
  font-size: 1rem;
  background: #ffdd57;
  color: #000;
  border: none;
  border-radius: 8px;
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
  cursor: pointer;
}

.story-btn:hover {
  background: #ffc107;
  transform: scale(1.05);
}

.story-btn:disabled {
  opacity: 0.45;
  transform: none;
  cursor: not-allowed;
}

.story-progress {
  min-width: 70px;
  font-size: 1rem;
  color: #ffffff;
}

.story-hint {
  margin-top: 14px;
  font-size: 0.92rem;
  color: #bbbbbb;
}

@media (max-width: 768px) {

  #poveste {
    padding: 60px 14px;
  }

  .story-wrapper {
    padding: 24px 16px 30px;
  }

  .story-crawl-stage {
    padding: 22px 14px;
  }

  .story-step-title {
    font-size: 1.5rem;
  }

  .story-controls {
    gap: 12px;
  }
}

@media (max-width: 520px) {

  .story-btn {
    width: 100%;
    max-width: 220px;
  }

  .story-progress {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 620px) {

  .story-controls {
    flex-direction: column;
  }
}

/* ================= FINAL: SECȚIUNEA THE STORY OF UNDERTALE (#poveste) ================= */

/* ================= INCEPUT: SECȚIUNEA SECRETS AND MYSTERIES (#secrets) ================= */

.secret-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: stretch;
}

.secret-main {
  min-height: 100%;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(255, 221, 87, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(243, 26, 5, 0.18), rgba(0, 0, 0, 0.2)),
    url("Characters/W.D. Gaster.png") center bottom / contain no-repeat,
    #070707;
}

.secret-main h3 {
  max-width: 360px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: #ffffff;
}

.secret-main p {
  max-width: 420px;
  padding-bottom: min(24vw, 190px);
}

.secret-hidden {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-left: 4px solid #ffdd57;
  background: rgba(255, 221, 87, 0.08);
}

.secret-item.open .secret-hidden {
  display: block;
  animation: panelPop 0.28s ease;
}

/* ================= FINAL: SECȚIUNEA SECRETS AND MYSTERIES (#secrets) ================= */

/* ================= INCEPUT: SECȚIUNEA GALLERY (#galerie) ================= */

#galerie {
  z-index: 1;
  position: relative;
  overflow: hidden;
  width: min(96%, 1320px);
  margin: 34px auto;
  padding: clamp(20px, 4vw, 38px);
  text-align: center;
  background: radial-gradient(circle at top left, rgba(255, 221, 87, 0.08), transparent 32rem),
    #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
}

.gallery-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-120%);
  animation: gallerySweep 8s ease-in-out infinite;
  pointer-events: none;
}

.gallery-kicker {
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffdd57;
}

#galerie h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  text-transform: uppercase;
  color: #ffffff;
}

.gallery-toggle, .gallery-reopen {
  min-height: 44px;
  padding: 11px 18px;
  font-weight: bold;
  border: 1px solid rgba(255, 221, 87, 0.55);
  border-radius: 8px;
  background: #ffdd57;
  color: #000000;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.gallery-toggle:hover, .gallery-reopen:hover {
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(255, 221, 87, 0.18);
  transform: translateY(-2px);
}

.gallery-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  max-height: 1800px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.55s ease, opacity 0.35s ease, transform 0.35s ease;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(14px, 2vw, 24px);
  padding: 0;
}

.gallery-item {
  width: 100%;
  height: clamp(190px, 18vw, 270px);
  object-fit: contain;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  background: #050505;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.42);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover, .gallery-item:focus-visible {
  border-color: #ffdd57;
  box-shadow: 0 20px 34px rgba(255, 221, 87, 0.16);
  outline: none;
  transform: translateY(-5px) scale(1.03);
}

.gallery-collapsed .gallery-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.gallery-closed-message {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  margin: 12px auto 0;
  padding: 22px;
  border: 1px dashed rgba(255, 221, 87, 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
}

.gallery-closed-message[hidden] {
  display: none;
}

.gallery-closed-message p {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.modal {
  position: fixed;
  z-index: 1400;
  top: 0;
  left: 0;
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.94);
}

.modal.active {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.close-modal:hover, .close-modal:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #00eeff;
  outline: none;
  transform: rotate(90deg);
}

@keyframes gallerySweep {

  0%, 62% {
    transform: translateX(-120%);
  }

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

@media (max-width: 720px) {

  .gallery-toggle {
    width: 100%;
  }
}

/* ================= FINAL: SECȚIUNEA GALLERY (#galerie) ================= */

/* ================= INCEPUT: SECȚIUNEA UNDERTALE (#parallax2) ================= */

.parallax-section2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30vh;
  margin-top: -20px;
  margin-bottom: -20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
}

.parallax-section2::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
}

.parallax-content2 {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.parallax-title2 {
  margin-bottom: 10px;
  font-size: 2.5rem;
  font-weight: bold;
}

.parallax-subtitle2 {
  font-size: 1.2rem;
}

@media (max-width: 768px) {

  .parallax-section2 {
    height: auto;
    padding: 60px 20px;
    background-attachment: scroll;
    background-size: contain;
  }

  .parallax-title2 {
    font-size: 1.8rem;
  }

  .parallax-subtitle2 {
    font-size: 1rem;
  }
}

/* ================= FINAL: SECȚIUNEA UNDERTALE (#parallax2) ================= */

/* ================= INCEPUT: SECȚIUNEA CREEPYPASTA (#creepypasta) ================= */

.video-title {
  margin-bottom: 30px;
  font-size: 3rem;
  color: white;
}

.video-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(325px, 1fr));
  gap: 25px;
  justify-content: center;
}

.video-link-card {
  position: relative;
  overflow: hidden;
  height: 150px;
  padding: 26px 22px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: radial-gradient(circle at 18% 16%, rgba(255, 221, 87, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(35, 0, 0, 0.95), rgba(0, 0, 0, 0.98));
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.video-link-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.14) 48%, transparent 56%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.video-link-card:hover {
  border-color: rgba(255, 221, 87, 0.48);
  box-shadow: 0 28px 58px rgba(243, 26, 5, 0.22);
  transform: translateY(-8px) scale(1.015);
}

.video-link-card:hover::before {
  transform: translateX(120%);
}

.video-link-card span {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffdd57;
}

.video-link-card h3 {
  margin-bottom: 15px;
  font-size: 1.45rem;
  color: #ffffff;
}

.video-link-card p {
  margin-bottom: 18px;
  line-height: 1.65;
  color: #e7e7e7;
}

.video-link-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 10px 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  background: #ffdd57;
  color: #000000;
  transition: transform 0.22s ease, background 0.22s ease;
}

.video-link-card a:hover {
  background: #ffc107;
  transform: translateY(-2px);
}

.soundtrack-card {
  background: radial-gradient(circle at 78% 18%, rgba(63, 180, 255, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(4, 17, 32, 0.96), rgba(0, 0, 0, 0.98));
}

@media (max-width: 745px){
  .video-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .video-link-card {
    height: auto;
    padding: 18px 14px 18px 14px;
  }
  .video-link-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }
  .video-link-card a{
    padding: 7px 9px 7px 9px;
    font-size: 0.8rem;
  }
}

/* ================= FINAL: SECȚIUNEA CREEPYPASTA (#creepypasta) ================= */

/* ================= INCEPUT: SECȚIUNEA TROPHIES AND ACHIEVEMENTS (#trofee) ================= */

.achievement-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.55fr);
  gap: 18px;
  margin-bottom: 22px;
}

.achievement-console {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255, 221, 87, 0.22);
  border-radius: 8px;
  background: radial-gradient(circle at top right, rgba(255, 221, 87, 0.14), transparent 18rem),
    rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.achievement-label {
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffdd57;
}

.achievement-console h3 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
  color: #ffffff;
}

.achievement-console p {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.achievement-meter {
  overflow: hidden;
  height: 14px;
  margin: 18px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.achievement-filters {
  display: grid;
  gap: 10px;
  align-content: start;
}

.achievement-filter {
  min-height: 44px;
  padding: 10px 14px;
  font-weight: bold;
  border: 1px solid rgba(255, 221, 87, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  cursor: pointer;
}

.achievement-filter:hover, .achievement-filter.active {
  background: #ffdd57;
  color: #000000;
  transform: translateY(-2px);
}

.achievement-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.achievement-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.34);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
  cursor: pointer;
}

.achievement-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent, rgba(255, 221, 87, 0.13), transparent);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.achievement-card:hover, .achievement-card:focus-visible {
  border-color: rgba(255, 221, 87, 0.68);
  box-shadow: 0 18px 34px rgba(255, 221, 87, 0.12);
  outline: none;
  transform: translateY(-5px);
}

.achievement-card:hover::before, .achievement-card:focus-visible::before {
  transform: translateX(120%);
}

.achievement-card.active {
  border-color: #ffdd57;
  box-shadow: 0 0 0 1px rgba(255, 221, 87, 0.22), 0 18px 34px rgba(0, 0, 0, 0.28);
}

.achievement-card.completed {
  border-color: #77dd77;
  background: linear-gradient(145deg, rgba(119, 221, 119, 0.16), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.42);
}

.achievement-card.completed::after {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  content: "";
  border-radius: 999px 999px 0 0;
  background: #77dd77;
  box-shadow: 0 0 16px rgba(119, 221, 119, 0.75);
}

.achievement-card.is-hidden {
  display: none;
}

.achievement-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffdd57;
}

.achievement-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #ffffff;
}

.achievement-card p {
  margin-bottom: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.achievement-toggle {
  min-height: 40px;
  margin-top: auto;
  padding: 9px 14px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: #ffdd57;
  color: #000000;
  transition: transform 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.achievement-toggle:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.achievement-card.completed .achievement-toggle {
  background: #77dd77;
}

/* ================= FINAL: SECȚIUNEA TROPHIES AND ACHIEVEMENTS (#trofee) ================= */

/* ================= INCEPUT: SECȚIUNEA UNDERTALE SHOP (#shop) ================= */

#shop {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  padding: 40px 20px;
  margin: 30px auto;
  background: radial-gradient(circle at top, rgba(255, 221, 87, 0.08), transparent 30%), linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(24, 8, 8, 0.96));
  border-radius: 20px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.shop-title {
  margin-bottom: 10px;
  font-size: 2.5rem;
  text-align: center;
}

.shop-description {
  margin-bottom: 30px;
  text-align: center;
  font-size: 1.1rem;
  color: #b0c4de;
}

.shop-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.shop-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  text-align: center;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 2px solid #ffffff;
}

.product-name {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.product-desc {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #d3d3d3;
}

.product-price {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffdd57;
}

.shop-btn {
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: bold;
  font-family: 'DeterminationSans', sans-serif;
  background: #ffdd57;
  color: black;
  border: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.shop-btn:hover {
  background: #ffc107;
  transform: scale(1.05);
}

.shop-cart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.cart-title {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.cart-items {
  overflow-y: auto;
  max-height: 260px;
  padding: 0;
  margin: 0 0 10px 0;
  list-style: none;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  border-top: 1px solid #444;
}

.clear-cart-btn {
  margin-top: 10px;
  background: #f31a05;
  color: #fff;
}

.clear-cart-btn:hover {
  background: #b60f00;
}

.checkout-btn {
  margin-top: 5px;
  background: #28a745;
  color: #fff;
}

.checkout-btn:hover {
  background: #1c7c33;
}

.cart-message {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #ffdd57;
}

@media (max-width: 900px) {

  .shop-layout {
    grid-template-columns: 1fr;
  }
}

/* ================= FINAL: SECȚIUNEA UNDERTALE SHOP (#shop) ================= */

/* ================= INCEPUT: SECȚIUNEA COMMUNITY AND OFFICIAL LINKS (#community) ================= */

.community-spotlight {
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 22px;
  text-align: center;
  border: 1px solid rgba(255, 221, 87, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.community-spotlight.is-changing {
  animation: panelPop 0.34s ease;
}

.community-spotlight h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
  color: #ffdd57;
}

/* ================= FINAL: SECȚIUNEA COMMUNITY AND OFFICIAL LINKS (#community) ================= */

/* ================= INCEPUT: SECȚIUNEA UPCOMING UNDERTALE EVENTS (#events) ================= */

#events {
  position: relative;
  z-index: 1;
  padding: 90px 20px;
}

.events-wrapper {
  width: min(1180px, 95%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 55px);
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(255, 221, 87, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(34, 0, 0, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 28px rgba(243, 26, 5, 0.14);
}

.events-kicker {
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.9rem;
  color: #ffdd57;
}

.events-title {
  margin-bottom: 12px;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.6rem);
  text-transform: uppercase;
  color: #ffffff;
}

.events-subtitle {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: #d8d8d8;
}

.events-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.event-filter {
  padding: 10px 18px;
  font-family: 'DeterminationSans', sans-serif;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.event-filter:hover, .event-filter.active {
  background: #ffdd57;
  color: #000;
  border-color: #ffdd57;
  transform: translateY(-2px);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {

  #events {
    padding: 60px 14px;
  }

  .events-wrapper {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .events-title {
    font-size: 1.8rem;
  }

  .events-subtitle {
    font-size: 0.95rem;
  }
}

/* ================= FINAL: SECȚIUNEA UPCOMING UNDERTALE EVENTS (#events) ================= */

/* ================= INCEPUT: SECȚIUNEA UNDERTALE QUIZ (#quiz) ================= */

#quiz {
  position: relative;
  justify-self: center;
  z-index: 1;
  width: 600px;
  padding: 30px;
  margin: 20px 14px;
  text-align: center;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.quiz-title {
  margin-bottom: 15px;
  font-size: 2rem;
  text-transform: uppercase;
  color: white;
}

.quiz-description {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #b0c4de;
}

.quiz-question {
  padding: 20px;
  margin-bottom: 15px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.quiz-answer {
  display: block;
  width: 100%;
  max-width: 350px;
  padding: 15px;
  font-size: 1.1rem;
  text-align: center;
  background: #f31a05;
  color: white;
  border: none;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.quiz-answer:hover {
  background: #b60f00;
  transform: scale(1.05);
}

.quiz-complete {
  margin-top: 20px;
  font-size: 1.5rem;
  color: white;
}

.quiz-timer {
  position: absolute;
  top: -30px;
  right: -30px;
  z-index: 10;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  font-size: 2rem;
  font-weight: bold;
  background: #000;
  color: white;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  animation: pulse 1s infinite alternate ease-in-out;
}

#quiz-container p {
  text-transform: uppercase;
  font-family: 'DeterminationSans', sans-serif;
  color: rgb(255, 255, 255) !important;
}

@keyframes pulse {

  from {
    transform: scale(1);
    box-shadow: 0 6px 12px rgba(255, 51, 51, 0.5);
  }

  to {
    transform: scale(1.3);
    box-shadow: 0 12px 18px rgba(255, 51, 51, 0.7);
  }
}

@media (max-width: 768px) {

  #quiz {
    padding: 72px 16px 24px;
  }

  .quiz-timer {
    top: 12px;
    right: 12px;
    width: 54px;
    height: 54px;
    font-size: 1.2rem;
  }
}

@media (max-width: 620px){
  #quiz{
    width: max-content;
    padding: 55px 16px 24px;
    margin-left: 15px;
    margin-right: 15px;
  }
}

/* ================= FINAL: SECȚIUNEA UNDERTALE QUIZ (#quiz) ================= */

/* ================= INCEPUT: SECȚIUNEA UNDERTALE BLOG (#blog) ================= */

#blog {
  position: relative;
  z-index: 1;
  padding: 90px 20px;
}

.ut-blog-wrapper {
  width: min(1180px, 95%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 55px);
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(255, 221, 87, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(24, 8, 8, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 28px rgba(243, 26, 5, 0.14);
}

.ut-blog-kicker {
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.92rem;
  color: #ffdd57;
}

.ut-blog-title {
  margin-bottom: 12px;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.6rem);
  text-transform: uppercase;
  color: #ffffff;
}

.ut-blog-subtitle {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: #d8d8d8;
}

.ut-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.ut-blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.98), rgba(8, 8, 8, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ut-blog-card:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 221, 87, 0.22);
  transform: translateY(-6px);
}

.ut-blog-topbar {
  height: 6px;
  background: linear-gradient(90deg, #f31a05, #ffdd57);
}

.ut-blog-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 20px 20px;
}

.ut-blog-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ut-blog-category {
  display: inline-block;
  padding: 7px 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 999px;
  background: rgba(243, 26, 5, 0.14);
  border: 1px solid rgba(243, 26, 5, 0.3);
  color: #ffd5d0;
}

.ut-blog-date {
  font-size: 0.9rem;
  color: #ffdd57;
}

.ut-blog-card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
  line-height: 1.25;
  color: #ffffff;
}

.ut-blog-card p {
  margin-bottom: 18px;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #dddddd;
}

.ut-blog-btn {
  margin-top: auto;
  padding: 12px 16px;
  font-family: 'DeterminationSans', sans-serif;
  font-size: 0.95rem;
  background: #ffdd57;
  color: #000;
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.ut-blog-btn:hover {
  background: #ffc107;
  transform: scale(1.03);
}

.ut-blog-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
}

.ut-blog-modal.active {
  display: flex;
}

.ut-blog-modal-box {
  position: relative;
  overflow-y: auto;
  width: min(900px, 100%);
  max-height: 90vh;
  padding: 30px 24px 24px;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(255, 221, 87, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(20, 6, 6, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.ut-blog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  font-size: 1rem;
  border: none;
  border-radius: 50%;
  background: #f31a05;
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
}

.ut-blog-close:hover {
  background: #b60f00;
  transform: scale(1.08);
}

.ut-blog-modal-article h3 {
  margin-bottom: 12px;
  padding-right: 45px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #ffffff;
}

.ut-blog-modal-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ut-blog-modal-meta span {
  padding: 7px 12px;
  font-size: 0.88rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffdd57;
}

.ut-blog-modal-article p {
  margin-bottom: 16px;
  line-height: 1.85;
  font-size: 1rem;
  color: #f0f0f0;
}

@media (max-width: 768px) {

  #blog {
    padding: 60px 14px;
  }

  .ut-blog-wrapper {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .ut-blog-title {
    font-size: 1.8rem;
  }

  .ut-blog-subtitle {
    font-size: 0.95rem;
  }

  .ut-blog-card-content {
    padding: 18px 16px 16px;
  }

  .ut-blog-card h3 {
    font-size: 1.2rem;
  }

  .ut-blog-card p {
    font-size: 0.92rem;
  }

  .ut-blog-btn {
    width: 100%;
  }

  .ut-blog-modal-box {
    padding: 22px 16px 18px;
    border-radius: 16px;
  }

  .ut-blog-modal-article h3 {
    font-size: 1.45rem;
  }

  .ut-blog-modal-article p {
    font-size: 0.94rem;
  }
}

/* ================= FINAL: SECȚIUNEA UNDERTALE BLOG (#blog) ================= */

/* ================= INCEPUT: SECȚIUNEA CONTACT US (#contact) ================= */

.contact-btn {
  padding: 12px;
  margin-top: 20px;
  font-size: 1.1rem;
  background: white;
  color: black;
  border: none;
  border-radius: 5px;
  transition: transform 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.contact-success {
  display: none;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: bold;
  color: #b7ffb7;
}

.contact-btn:hover {
  background: white;
  transform: scale(1.05);
}

#contact {
  position: relative;
  overflow: hidden;
  width: min(96%, 1240px);
  margin: 48px auto;
  padding: clamp(28px, 5vw, 54px);
  background: radial-gradient(circle at top, rgba(255, 221, 87, 0.08), transparent 30%), linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(24, 8, 8, 0.96));
  color: white;
  border: 1px solid rgba(255, 221, 87, 0.22);
  border-radius: 12px;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.56);
}

.contact-main-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: translateX(-110%);
  animation: gallerySweep 9s ease-in-out infinite;
  pointer-events: none;
}

.contact-kicker {
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffdd57;
}

.contact-title {
  margin-bottom: 0.5rem;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
}

.contact-container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(16px, 3vw, 32px);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.contact-description {
  margin-bottom: 1rem;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
}

.contact-form {
  display: grid;
  gap: clamp(10px, 2vw, 16px);
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: clamp(0.95rem, 1.2vw, 1.05rem);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  border-radius: 8px;
  border: none;
  outline: none;
}

.contact2-btn {
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  background: #ffdd57;
  color: black;
  border: none;
  border-radius: 5px;
  transition: all 0.5s ease-out;
  cursor: pointer;
}

.contact2-btn:hover {
  background: #ffc107;
  transform: scale(1.05);
}

.contact-details h3 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: #ffdd57;
}

.contact-details ul {
  padding: 0;
  margin: 0.5rem 0 0;
  list-style: none;
}

.contact-details ul li {
  margin: 5px 0;
}

.contact-details a {
  text-decoration: none;
  color: #ffdd57;
  transition: color 0.5s ease;
}

.contact-details a:hover {
  color: #fff;
}

.contact-details p, .contact-details li, .contact-details a {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
}

@media (max-width: 900px) {

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-details {
    margin-top: 8px;
  }
}

@media (max-width: 420px) {

  #contact {
    border-radius: 10px;
  }
}

/* ================= FINAL: SECȚIUNEA CONTACT US (#contact) ================= */

/* ================= INCEPUT: SECȚIUNEA LEAVE US FEEDBACK (#feedback) ================= */

#feedback {
  padding: 80px 20px;
  margin: 0 20%;
  text-align: center;
  background: linear-gradient(325deg, black, #f31a05);
  color: white;
  border-radius: 20px;
}

#feedback .container {
  max-width: 700px;
  margin: auto;
  animation: fadeIn 1s ease-in;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideUp 0.8s ease-in-out;
}

.start-rating {
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
  justify-content: center;
}

.start-rating input {
  display: none;
}

.start-rating label {
  font-size: 48px;
  color: #444;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.start-rating label:hover, .start-rating label:hover~label {
  color: gold;
  transform: scale(1.2);
}

.start-rating input:checked~label {
  color: #555;
}

.start-rating input:checked+label, .start-rating input:checked+label~label {
  color: gold;
}

.feedback-form textarea {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border-radius: 10px;
  background: #222;
  color: #ffffff;
  border: 1px solid #333;
  outline: none;
  transition: background 0.3s;
  resize: vertical;
}

.feedback-form textarea::placeholder {
  color: white;
}

.feedback-form textarea:focus {
  background: #333;
}

.feedback-form button {
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  background: #ffdd57;
  color: black;
  border: none;
  border-radius: 5px;
  transition: all 0.5s ease-out;
  cursor: pointer;
}

.feedback-form button:hover {
  background: #ffc107;
  transform: scale(1.05);
}

.thanks-message {
  display: none;
  margin-top: 20px;
  font-size: 18px;
  color: #77dd77;
  animation: popIn 0.6s ease forwards;
}

@keyframes fadeIn {

  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {

  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {

  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 860px) {

  #feedback {
    width: min(95%, 760px);
    margin-inline: auto;
  }
}

@media (max-width: 620px) {

  .start-rating {
    gap: 4px;
  }
}

@media (max-width: 900px) {

  #feedback {
    width: min(95%, 900px);
    margin: 0 auto;
  }
}

@media (max-width: 600px) {

  .start-rating label {
    font-size: 36px;
  }

  .feedback-form textarea {
    padding: 10px;
    font-size: 14px;
  }

  .feedback-form button {
    padding: 10px 20px;
    font-size: 16px;
  }
}

/* ================= FINAL: SECȚIUNEA LEAVE US FEEDBACK (#feedback) ================= */

/* ================= INCEPUT: FOOTER ================= */

footer {
  width: fit-content;
  padding: 12px 25px;
  margin: 30px auto 10px auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.25);
  color: #000;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

footer:hover {
  background: rgba(255, 255, 255, 0.355);
}

.footer-text {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links a {
  margin: 0 10px;
  text-decoration: none;
  color: white;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #88000e;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

/* ================= FINAL: FOOTER ================= */
