@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #180301;
  --bg-2: #260600;
  --red: #e60000;
  --red-dark: #9b0000;
  --gold: #ffb000;
  --text: #ffffff;
  --muted: #d9c7c2;
  --panel: rgba(18, 4, 2, 0.88);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at center, rgba(130, 20, 0, 0.35), transparent 35%),
    linear-gradient(180deg, #120100, #2b0800);
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 58px;
  background: linear-gradient(90deg, rgba(20, 0, 0, 0.92), rgba(60, 0, 0, 0.75));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-nav {
  max-width: none;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding-left: clamp(70px, 8vw, 160px);
  padding-right: 20px;
}

.top-nav a {
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.top-nav a:hover {
  color: var(--gold);
}

.hero-section {
  position: relative;
  min-height: 520px;
  padding: 90px 20px 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 0, 0, 0.10), transparent 38%),
    linear-gradient(180deg, #220200, #120000);
}

.hero-bg {
  position: absolute;
  inset: 58px 0 0 0;
  z-index: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.28;
}

/* faixa lateral esquerda */
.hero-section::before {
  content: "";
  position: absolute;
  top: 58px;
  left: -96px;
  bottom: 0;
  width: 190px;
  background: var(--red);
  z-index: 1;
  clip-path: polygon(
    0 0,
    100% 0,
    62% 100%,
    0 100%
  );
}

/* faixa lateral direita */
.hero-section::after {
  content: "";
  position: absolute;
  top: 58px;
  right: -76px;
  bottom: 0;
  width: 230px;
  background: var(--red);
  z-index: 1;
  clip-path: polygon(
    38% 0,
    100% 0,
    100% 100%,
    0 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  min-height: 390px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.hero-character {
  width: min(410px, 72vw);
  max-height: 460px;
  object-fit: contain;
  transform: translateY(16px);
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.55));
}

.hero-tag,
.hero-name h1 {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 900;
  margin: 0;
}

.hero-tag-left {
  justify-self: end;
}

.hero-name {
  justify-self: start;
}

.hero-name p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.social-rail {
  position: fixed;
  left: 120px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  gap: 6px;
}

.social-rail a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.social-rail a:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.82);
}

.social-rail img {
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.section-ribbon {
  position: relative;
  background: var(--red);
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
  z-index: 10;
  overflow: visible;
}

.section-ribbon h2 {
  position: relative;
  z-index: 3;
  margin: 0;
  font-size: clamp(30px, 3.2vw, 48px);
  text-transform: uppercase;
  font-weight: 900;
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.45),
    0 0 8px rgba(0, 0, 0, 0.35);
}

/* Só a aba inferior do Museu */
.museum-section .section-ribbon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: min(1020px, 54vw);
  height: 28px;
  background: var(--red);
  clip-path: polygon(
    0 0,
    100% 0,
    86% 100%,
    14% 100%
  );
  z-index: 1;
}
.museum-section,
.products-section {
  padding-bottom: 70px;
}

.products-panel {
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px 24px 46px;
  background:
    radial-gradient(circle at center, rgba(130, 40, 0, 0.16), transparent 44%),
    rgba(18, 4, 2, 0.48);
  border-radius: 0 0 26px 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.035);
  border-right: 1px solid rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.affiliate-disclaimer {
  max-width: 820px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.932);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.products-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-column h3 {
  margin: 0 0 14px;
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 900;
}

.product-card {
  min-height: 260px;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 34px rgba(0, 0, 0, 0.26);
}

.product-card.is-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 145px;
  display: block;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 13px;
  padding: 10px;
}

.product-info {
  padding: 14px 4px 0;
}

.product-title {
  margin: 0;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.25;
}

.product-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.product-button {
  position: relative;
  isolation: isolate;
  width: fit-content;
  min-width: 132px;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px 13px;
  border-radius: 7px;

  background:
    linear-gradient(
      180deg,
      #ffb000 0%,
      #ff9a00 calc(100% - 4px),
      #ffffff calc(100% - 4px),
      #ffffff 100%
    );

  color: #111;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(255, 150, 0, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.product-button::before {
  content: "";
  position: absolute;
  inset: 0 0 4px 0;
  z-index: -1;
  background: linear-gradient(90deg, #ffd84a, #ffea6a, #fff3a0);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
}

.product-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 190, 0, 0.28);
}

.product-button:hover::before {
  transform: translateX(0);
}

.museum-panel {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 24px 38px;
  border-radius: 0 0 26px 26px;
  overflow: hidden;

  background:
    radial-gradient(circle at 50% 45%, rgba(150, 35, 0, 0.18), transparent 45%),
    linear-gradient(
      180deg,
      rgba(22, 3, 1, 0.68),
      rgba(12, 2, 1, 0.46)
    );

  border-left: 1px solid rgba(255, 255, 255, 0.035);
  border-right: 1px solid rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 0 42px rgba(255, 0, 0, 0.035),
    0 20px 55px rgba(0, 0, 0, 0.22);
}

.museum-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.museum-heading h3 {
  margin: 0;
  font-size: clamp(24px, 4vw, 42px);
}

.text-button,
.filter-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.text-button {
  color: #fff;
  background: transparent;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.museum-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-button {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 800;
  white-space: nowrap;
}

.filter-button.is-active {
  background: var(--gold);
  color: #1b0800;
  border-color: var(--gold);
}

.museum-grid {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 24px 4px 22px;
  max-width: 100%;
}

.museum-card[data-tier="ELITE"] {
  --tier-color: #ff7a18;
  --tier-glow: rgba(255, 122, 24, 0.75);
}

.museum-card[data-tier="PATRONO"] {
  --tier-color: #ffc02a;
  --tier-glow: rgba(255, 192, 42, 0.75);
}

.museum-card[data-tier="PLATINUM"] {
  --tier-color: #7ff6ff;
  --tier-glow: rgba(127, 246, 255, 0.75);
}

.museum-card[data-tier="IMORTAL"] {
  --tier-color: #ff2d3d;
  --tier-glow: rgba(255, 45, 61, 0.75);
}

.museum-card[data-tier="MITICO"] {
  --tier-color: #16dfff;
  --tier-glow: rgba(22, 223, 255, 0.75);
}

.museum-card[data-tier="MONARCA"] {
  --tier-color: #b96cff;
  --tier-glow: rgba(185, 108, 255, 0.75);
}

.museum-card {
  flex: 0 0 auto;
  width: clamp(158px, 13vw, 205px);
  position: relative;
  scroll-snap-align: start;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.52));
}

.museum-card.is-center-slot {
  transform: translateY(-6px) scale(1.035);
  filter:
    drop-shadow(0 16px 24px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 14px rgba(255, 190, 0, 0.36));
}

.museum-card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 336 / 577;
  background: #000;
  overflow: hidden;
}

.museum-avatar-area {
  position: absolute;
  inset: 24px 7px 70px 7px;
  z-index: 2;
  background: #000;
  overflow: hidden;
}

.museum-avatar {
  position: absolute;
  left: 50%;
  top: 39%;
  width: 132%;
  height: 132%;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  display: block;
  transform: translate(-50%, -44%);
  transform-origin: center center;
}

.museum-frame {
  position: absolute;
  inset: 0;
  z-index: 25;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.museum-bottom-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  z-index: 10;
  pointer-events: none;
}

.museum-base {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.museum-badge {
  position: absolute;
  left: 7.5%;
  top: 16%;
  z-index: 30;
  width: 21%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.7));
}

.museum-card-text {
  position: absolute;
  left: 24%;
  right: 6%;
  top: 2%;
  bottom: 8%;
  z-index: 31;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: none;
}

.museum-tier-name,
.museum-username {
  margin: 0;
  width: 100%;
  text-align: center;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.95),
    0 0 5px rgba(0, 0, 0, 0.85);
}

.museum-tier-name {
  color: var(--tier-color);
  font-size: clamp(18px, 1.55vw, 25px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.95),
    0 0 2px var(--tier-glow);
}

.museum-username {
  margin-top: 3px;
  color: #ffffff;
  font-size: clamp(12px, 1vw, 17px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.museum-time-outside {
  margin: 8px 0 0;
  text-align: center;
  font-size: clamp(12px, 1vw, 17px);
  font-weight: 950;
  color: #ffffff;
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.95),
    0 0 8px rgba(0, 0, 0, 0.9);
}

.museum-status {
  width: 100%;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.join-button {
  position: relative;
  isolation: isolate;
  width: fit-content;
  min-width: 168px;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px 24px 15px;
  border-radius: 7px;

  background:
    linear-gradient(
      180deg,
      #ffb000 0%,
      #ffa800 calc(100% - 5px),
      #ffffff calc(100% - 5px),
      #ffffff 100%
    );

  color: #111;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-decoration: none;

  border: 0;
  box-shadow: 0 8px 18px rgba(255, 150, 0, 0.22);

  overflow: hidden;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.join-button::before {
  content: "";
  position: absolute;
  inset: 0 0 5px 0;
  z-index: -1;

  background: linear-gradient(
    90deg,
    #ffd84a,
    #ffea6a,
    #fff3a0
  );

  transform: translateX(-105%);
  transition: transform 0.28s ease;
}

.join-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 190, 0, 0.3);
}

.join-button:hover::before {
  transform: translateX(0);
}

.join-button:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(255, 150, 0, 0.18);
}

.how-dialog {
  border: 0;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text);
  max-width: min(560px, calc(100vw - 32px));
}

.how-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.dialog-card {
  position: relative;
  padding: 26px;
  background: #110300;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.dialog-card h2 {
  margin-top: 0;
}

.dialog-card li {
  margin-bottom: 8px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}


@media (max-width: 760px) {
  .site-header {
    height: 54px;
  }

  .top-nav {
    justify-content: center;
    gap: 24px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .top-nav a {
    font-size: 14px;
  }

  .hero-section {
    min-height: 650px;
    padding: 72px 16px 38px;
  }

  .hero-bg {
    inset: 54px 0 0 0;
    background-size: 15px 15px;
    opacity: 0.24;
  }

  .hero-section::before {
    top: 54px;
    bottom: 76px;
    left: -38px;
    width: 68px;
    clip-path: none;
    transform: skewX(-8deg);
    transform-origin: top left;
    opacity: 0.96;
  }

  .hero-section::after {
    top: 54px;
    bottom: 0px;
    right: -120px;
    width: 68px;
    clip-path: none;
    transform: skewX(-8deg);
    transform-origin: top right;
    opacity: 0.96;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
    gap: 8px;
    padding-top: 10px;
  }

  .hero-character {
    order: -1;
    width: min(350px, 92vw);
    max-height: 420px;
    transform: translateY(10px);
    margin: 0 auto;
  }

  .hero-tag-left {
    justify-self: center;
    font-size: 26px;
    margin-top: 6px;
  }

  .hero-name {
    justify-self: center;
  }

  .hero-name h1 {
    font-size: 30px;
  }

  .hero-name p {
    max-width: 300px;
    margin: 6px auto 0;
    font-size: 14px;
    line-height: 1.25;
  }

  .section-ribbon {
    height: 76px;
  }

  .section-ribbon h2 {
    font-size: 32px;
  }

  .museum-section .section-ribbon::after {
    width: min(250px, 64vw);
    height: 22px;
    bottom: -11px;
  }

  .museum-panel {
    padding: 30px 16px 34px;
  }

  .museum-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .museum-heading h3 {
    font-size: 28px;
    line-height: 1.05;
  }

  .text-button {
    align-self: flex-start;
  }

  .museum-grid {
    justify-content: flex-start;
    gap: 14px;
    padding: 18px 2px 20px;
  }

  .museum-card {
    width: 162px;
  }

  .social-rail {
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    padding: 6px;
    border-radius: 16px;
  }

  .social-rail a {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .social-rail img {
    width: 32px;
    height: 32px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}