@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("../fonts/worksans-400.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b100e;
  --forest: #142019;
  --moss: #1e3328;
  --leaf: #3d6b4f;
  --gold: #d4af37;
  --gold-2: #f0d78c;
  --gold-dim: #8a7340;
  --parchment: #e6d9c3;
  --parchment-dim: #cbb89a;
  --fog: #9aab9c;
  --line: rgba(212, 175, 55, 0.28);
  --header-bg: rgba(11, 16, 14, 0.92);
  --menu-bg: rgba(11, 16, 14, 0.96);
  --panel: #142019;
  --panel-2: #121a16;
  --footer: #080c0a;
  --font-display: "Lexend", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --font-ui: "Lexend", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--parchment);
  background: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { -webkit-font-smoothing: antialiased; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header — thin bar, gold underline active, no pills */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--header-bg);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: none;
  gap: 0.75rem;
  padding: 0.4rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--gold-2);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.nav {
  display: flex;
  grid-column: 2;
  justify-self: center;
  align-items: center;
  gap: 1.35rem;
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  color: var(--fog);
  padding: 0.12rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--gold-2);
  border-bottom-color: var(--gold);
}

.nav a.nav-shop {
  color: #1a1408;
  background: #f0d78c;
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  line-height: 1;
  border-bottom-color: transparent;
}

.nav a.nav-shop:hover,
.nav a.nav-shop.is-active {
  color: #1a1408;
  background: #fff1c2;
  border-bottom-color: transparent;
}

.nav-drop {
  position: relative;
}

.nav-drop__btn {
  color: var(--fog);
  padding: 0.12rem 0;
  border-bottom: 1px solid transparent;
  font-family: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}

.nav-drop__btn::after {
  content: "▾";
  margin-left: 0.28rem;
  font-size: 0.65rem;
}

.nav-drop__btn:hover,
.nav-drop.is-active .nav-drop__btn,
.nav-drop.is-open .nav-drop__btn {
  color: var(--gold-2);
  border-bottom-color: var(--gold);
}

.nav-drop__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 9.5rem;
  padding: 0.35rem 0;
  background: var(--menu-bg);
  border: 1px solid var(--line);
  z-index: 50;
}

.nav-drop.is-open .nav-drop__menu,
.nav-drop:hover .nav-drop__menu,
.nav-drop:focus-within .nav-drop__menu {
  display: flex;
  flex-direction: column;
}

.nav-drop__menu a {
  padding: 0.5rem 1rem;
  border-bottom: none;
  text-transform: none;
  letter-spacing: 0.02em;
}

.nav-drop__menu a:hover,
.nav-drop__menu a.is-active {
  border-bottom-color: transparent;
  background: rgba(212, 175, 55, 0.08);
}

.header-actions {
  display: flex;
  grid-column: 3;
  justify-self: end;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-ui);
}

.head-discord,
.head-lang__btn {
  height: 32px;
  border-radius: 6px;
  flex: none;
}

.head-discord {
  width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: #5865f2;
  color: #fff;
}

.head-discord svg { width: 16px; height: 16px; }

.head-discord:hover { filter: brightness(1.1); }

.head-ip,
.head-account {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: auto;
  padding: 0.42rem 0.85rem;
  background: #f3ead8;
  border: none;
  border-bottom: 0;
  border-radius: 999px;
  color: #1a1408;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.04em;
  text-transform: none;
  text-shadow: none;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.head-ip svg { display: none; }

.head-ip:hover,
.head-account:hover {
  filter: none;
  color: #1a1408;
  background: #fff6e4;
  border-bottom-color: transparent;
}

.head-ip:active,
.head-account:active {
  transform: none;
  filter: none;
  box-shadow: none;
}

.head-lang { position: relative; }

.head-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.55rem;
  border-radius: 0;
  background: rgba(8, 12, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--fog);
}

.head-lang__btn .flag { width: 22px; height: 15px; }

.head-lang__btn svg { width: 10px; height: 8px; }

.head-lang__menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 9.75rem;
  margin-top: 0.35rem;
  padding: 0.3rem 0;
  background: var(--menu-bg);
  border: 1px solid var(--line);
  border-radius: 0;
  z-index: 60;
}

.head-lang__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.45rem;
}

.head-lang.is-open .head-lang__menu,
.head-lang:hover .head-lang__menu {
  display: flex;
  flex-direction: column;
}

.head-lang__menu button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.45rem 0.75rem;
  color: var(--parchment);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  text-align: left;
}

.head-lang__menu button:hover,
.head-lang__menu button.is-active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-2);
}

.flag {
  width: 18px;
  height: 12px;
  display: inline-block;
  flex: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  background: #fff center / cover no-repeat;
}

.flag--it,
.flag[data-lang-flag="it"] {
  background-image: linear-gradient(90deg, #009246 0 33.3%, #fff 33.3% 66.6%, #ce2b37 66.6%);
}

.flag--en,
.flag[data-lang-flag="en"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath fill='%23012169' d='M0 0h60v30H0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='m0 0 60 30m0-30L0 30'/%3E%3Cpath stroke='%23C8102E' stroke-width='4' d='m0 0 60 30m0-30L0 30'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/svg%3E");
}

.flag--es,
.flag[data-lang-flag="es"] {
  background-image: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.8rem 1.15rem;
  border: 2px solid #6a4a12;
  border-radius: 0;
  color: #2a1c08;
  background: linear-gradient(180deg, #f0d78c, #c4a04a);
  box-shadow:
    inset 2px 2px 0 rgba(255, 244, 210, 0.75),
    inset -2px -2px 0 rgba(90, 60, 12, 0.55);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}

.btn:hover { filter: brightness(1.06); }

.btn:active {
  transform: translateY(3px);
  filter: brightness(0.92);
  box-shadow:
    inset -1px -1px 0 rgba(255, 244, 210, 0.28),
    inset 3px 3px 0 rgba(90, 60, 12, 0.72);
}

.btn--ghost {
  background: linear-gradient(180deg, #2a2418, #16130e);
  color: var(--gold-2);
  border-color: #8a7340;
  text-shadow: 1px 1px 0 #000;
  box-shadow:
    inset 2px 2px 0 rgba(240, 215, 140, 0.22),
    inset -2px -2px 0 rgba(0, 0, 0, 0.55);
}

.btn--ghost:hover {
  filter: brightness(1.08);
  background: linear-gradient(180deg, #322c1e, #1a1610);
}

.btn--ghost:active {
  transform: translateY(3px);
  filter: brightness(0.9);
  box-shadow:
    inset -1px -1px 0 rgba(240, 215, 140, 0.1),
    inset 3px 3px 0 rgba(0, 0, 0, 0.72);
}

.hero__actions .btn--hero,
.hero__actions .btn--ghost {
  animation: btnGlow 2.8s ease-in-out infinite;
}

.hero__actions .btn--ghost {
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.22), 0 0 40px rgba(212, 175, 55, 0.12);
}

.hero__actions .btn--hero:hover,
.hero__actions .btn--ghost:hover {
  animation: none;
}

.hero__actions .btn--ghost:hover {
  box-shadow: 0 0 26px rgba(212, 175, 55, 0.38), 0 0 50px rgba(212, 175, 55, 0.18);
  background: rgba(212, 175, 55, 0.08);
}

@keyframes btnGlow {
  0%, 100% {
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.2), 0 0 32px rgba(212, 175, 55, 0.1);
  }
  50% {
    box-shadow: 0 0 26px rgba(212, 175, 55, 0.42), 0 0 52px rgba(212, 175, 55, 0.22);
  }
}

.head-left {
  display: flex;
  grid-column: 1;
  justify-self: start;
  align-items: center;
  gap: 0.7rem;
}

.menu-toggle {
  display: none;
  font-size: 1.25rem;
  color: var(--gold-2);
  padding: 0.4rem;
}

.head-account-drop { position: relative; }

.head-account::after {
  content: "▾";
  margin-left: 0.28rem;
  font-size: 0.65rem;
}

.head-account-drop.is-open .head-account,
.head-account.is-active {
  color: #1a1408;
  background: #fff6e4;
  border-bottom-color: transparent;
}

.head-account-drop__menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 11rem;
  margin-top: 0.45rem;
  padding: 0.3rem 0;
  background: var(--menu-bg);
  border: 1px solid var(--line);
  z-index: 60;
}

.head-account-drop__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.5rem;
}

.head-account-drop.is-open .head-account-drop__menu {
  display: flex;
  flex-direction: column;
}

.head-account-drop__menu a,
.head-account-drop__menu button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.5rem 0.85rem;
  background: none;
  border: none;
  color: var(--parchment);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  text-align: left;
  letter-spacing: 0.02em;
}

.head-account-drop__menu a:hover,
.head-account-drop__menu button:hover,
.head-account-drop__menu button.is-active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-2);
}

/* Hero — asymmetric chronicle, not centered Litness stack */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 7.5rem 0 7rem;
  overflow: hidden;
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11, 16, 14, 0.78) 0%, rgba(11, 16, 14, 0.45) 48%, rgba(11, 16, 14, 0.28) 72%, rgba(11, 16, 14, 0.45) 100%),
    linear-gradient(180deg, transparent 42%, rgba(11, 16, 14, 0.55) 68%, var(--forest) 100%),
    url("../assets/hero.jpg") center 45% / cover no-repeat;
  will-change: auto;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: end;
  max-width: 40rem;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  animation: fadeUp 0.8s ease both;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: var(--gold-2);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
  animation: fadeUp 0.9s 0.06s ease both;
}

.hero__title span {
  display: block;
  font-size: 0.28em;
  letter-spacing: 0.35em;
  margin-top: 0.85rem;
  color: var(--parchment);
  font-weight: 500;
  opacity: 0.85;
}

.hero__lead {
  margin: 1.35rem 0 2rem;
  max-width: 28rem;
  font-size: 1.15rem;
  color: var(--parchment-dim);
  animation: fadeUp 0.9s 0.1s ease both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: stretch;
  animation: fadeUp 0.9s 0.18s ease both;
}

.btn--hero {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.95rem 1.45rem;
  text-align: left;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.28), 0 10px 30px rgba(212, 175, 55, 0.22);
}

.btn__main {
  display: block;
  line-height: 1.2;
}

.btn__sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.78;
}

.hero__seal {
  justify-self: end;
  width: min(280px, 70vw);
  border: 1px solid var(--line);
  padding: 0.65rem;
  background: rgba(11, 16, 14, 0.45);
  animation: fadeUp 0.9s 0.15s ease both, sealFloat 5s ease-in-out infinite;
}

.hero__seal img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

@keyframes sealFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

/* Chapters */
.chapter {
  padding: 5rem 0;
  position: relative;
}

.chapter--forest {
  background:
    linear-gradient(180deg, var(--forest) 0%, var(--forest) 100%);
  margin-top: 0;
  padding-top: 5.5rem;
}

.chapter--forest::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8rem;
  background: linear-gradient(180deg, rgba(11, 16, 14, 0.85) 0%, rgba(11, 16, 14, 0.35) 45%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.chapter--forest > * {
  position: relative;
  z-index: 1;
}

.chapter--ink {
  background: var(--ink);
  margin-top: -2rem;
  padding-top: 6rem;
}

.chapter--ink::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7rem;
  background: linear-gradient(180deg, rgba(20, 32, 25, 0.95) 0%, rgba(20, 32, 25, 0.4) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.chapter--ink > * {
  position: relative;
  z-index: 1;
}

.chapter__label {
  margin: 0 0 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.chapter h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: 0.06em;
  color: var(--gold-2);
  line-height: 1.15;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.split__visual {
  position: relative;
}

.split__visual img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.9) contrast(1.05);
}

.split__visual::after {
  content: "";
  position: absolute;
  inset: 0.85rem -0.85rem -0.85rem 0.85rem;
  border: 1px solid rgba(212, 175, 55, 0.18);
  pointer-events: none;
  z-index: -1;
}

.split__copy p {
  margin: 0 0 1rem;
  color: var(--parchment-dim);
  font-size: 1.05rem;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  color: var(--gold-dim);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.pillar {
  padding: 1.35rem 1.2rem;
  border: 1px solid var(--line);
  background: rgba(11, 16, 14, 0.35);
}

.pillar h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--gold-2);
}

.pillar p {
  margin: 0;
  color: var(--fog);
  font-size: 0.98rem;
}

/* Chronicle news — diary cards */
.chronicle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.chronicle__item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  min-height: 100%;
  padding: 1rem 1.05rem 0.95rem;
  background:
    linear-gradient(180deg, rgba(255, 244, 214, 0.4), rgba(176, 122, 58, 0.12)),
    #e4c48a;
  color: #3d2b16;
  border: 3px solid #8d6232;
  box-shadow: inset 0 0 0 4px #f4e0b4;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.chronicle__item:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
}

.chronicle__item time {
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d4c28;
}

.chronicle__item h3 {
  margin: 0;
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: #2a1c10;
}

.chronicle__item p {
  margin: 0;
  color: #4a321c;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-line;
}

.chronicle[data-limit] .chronicle__item p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chronicle__item .tag {
  margin: auto 0 0;
  align-self: flex-start;
  color: #6a4520;
  border-color: rgba(109, 76, 40, 0.45);
}

.tag {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
}

.page-hero {
  padding: 5.6rem 0 2.4rem;
  background:
    linear-gradient(180deg, rgba(11, 16, 14, 0.7), var(--ink)),
    url("../assets/about.jpg") center 60% / cover;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.08em;
  color: var(--gold-2);
}

.page-hero p {
  margin: 0;
  max-width: 34rem;
  color: var(--parchment-dim);
}

.join {
  padding: 4.5rem 0 7.5rem;
  background:
    radial-gradient(ellipse at 80% 80%, rgba(60, 40, 20, 0.35), transparent 55%),
    var(--ink);
}

.join__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(160px, 0.55fr);
  gap: 1.25rem;
  align-items: end;
}

.join-card {
  background:
    linear-gradient(180deg, rgba(255, 244, 214, 0.35), rgba(160, 110, 55, 0.08)),
    #e4c48a;
  color: #3d2b16;
  border: 3px solid #8d6232;
  box-shadow: inset 0 0 0 7px #f4e0b4, 0 14px 0 rgba(0, 0, 0, 0.28);
  padding: 1.5rem 1.45rem 1.35rem;
}

.join-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 2px 2px 0 #6a4520;
}

.join-card > p {
  margin: 0 0 1.15rem;
  color: #4a321c;
  font-size: 0.95rem;
  line-height: 1.45;
}

.join-fields {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.join-label {
  margin: 0 0 0.3rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6d4c28;
}

.join-value {
  margin: 0;
  background: #241910;
  color: #f6f1e8;
  text-align: center;
  padding: 0.48rem 0.7rem;
  text-shadow: 1px 1px 0 #000;
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

.join-address {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 0.4rem;
  align-items: stretch;
}

.join-bedrock {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 0.4rem;
}

.join-mini,
.join-copy {
  background: linear-gradient(180deg, #8d6236, #5c3a22);
  color: #f4f1ea;
  text-shadow: 1px 1px 0 #2a1c10;
  box-shadow:
    inset 2px 2px 0 rgba(255, 228, 186, 0.35),
    inset -2px -2px 0 rgba(42, 26, 14, 0.7);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}

.join-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.join-mini svg { width: 16px; height: 16px; }

.join-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  text-transform: uppercase;
}

.join-mini:hover,
.join-copy:hover { filter: brightness(1.08); }

.join-mini:active,
.join-copy:active {
  transform: translateY(3px);
  filter: brightness(0.9);
  box-shadow:
    inset -1px -1px 0 rgba(255, 228, 186, 0.16),
    inset 3px 3px 0 rgba(42, 26, 14, 0.8);
}

.join-skin {
  width: min(300px, 100%);
  justify-self: center;
  align-self: end;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 0 rgba(0, 0, 0, 0.28));
}

.discord-banner {
  position: relative;
  background: linear-gradient(180deg, #7a56ef 0%, #6844e0 100%);
  color: #f7f4ff;
  overflow: hidden;
}

.discord-banner__edge {
  display: flex;
  justify-content: space-evenly;
  height: 22px;
  pointer-events: none;
}

.discord-banner__edge span {
  width: 48px;
  background: #141414;
  box-shadow: inset 0 -5px 0 #070707;
}

.discord-banner__inner {
  position: relative;
  z-index: 1;
  padding: 1.7rem 0 1.9rem;
}

.discord-banner h2 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(36, 18, 84, 0.45);
}

.discord-banner__status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.discord-banner__status[hidden] { display: none; }

.discord-banner__dot {
  width: 12px;
  height: 12px;
  flex: none;
  background: #3ba55c;
  box-shadow: inset 1px 1px 0 #8dffb4, inset -1px -1px 0 #1d6a38;
}

.discord-banner__inner > p {
  margin: 0 0 1.15rem;
  max-width: 36rem;
  line-height: 1.5;
  color: #f4f0ff;
}

.discord-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.5rem 0.9rem;
  background: #3b2788;
  color: #fff;
  border: 2px solid #1b1144;
  box-shadow: inset 0 0 0 2px #6d58c4;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #1a1038;
  -webkit-font-smoothing: antialiased;
  border-radius: 0;
  transition: transform 0.08s ease, filter 0.08s ease, box-shadow 0.08s ease;
}

.discord-join:hover { filter: brightness(1.08); }

.discord-join:active {
  transform: translateY(3px);
  filter: brightness(0.9);
  box-shadow: inset 0 3px 0 #1b1144;
}

.discord-banner__mark {
  position: absolute;
  right: 6%;
  top: 54%;
  width: min(280px, 32vw);
  height: auto;
  transform: translateY(-50%);
  color: #d7cbff;
  opacity: 0.22;
  pointer-events: none;
}

.chapter--after-discord {
  margin-top: 0;
  padding-top: 4.5rem;
}

.chapter--after-discord::before { display: none; }

.staff-page {
  padding: 8.5rem 0 5rem;
  background: var(--ink);
}

.staff-page h1 {
  margin: 0 0 2.2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 5.4rem);
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  color: #f4f0e6;
}

.staff-board {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 1.1rem 2rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 16, 24, 0.94);
}

.staff-role {
  margin: 2rem 0 1rem;
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.staff-role:first-child { margin-top: 1.15rem; }

.staff-role--owner { color: #f2c14e; }
.staff-role--admin { color: #e3943a; }
.staff-role--mod { color: #6cb6ff; }
.staff-role--helper { color: #7ddec8; }

.staff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.8rem;
}

.staff-person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  transition: transform 0.3s ease;
}

.staff-person img {
  width: 56px;
  height: auto;
  flex: none;
  background: transparent;
}

.staff-person strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: #f7f4ee;
}

.staff-duty {
  display: block;
  margin-top: 0.12rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: #8b93a7;
}

.staff-crown {
  color: #f2c14e;
  font-size: 0.9rem;
}

.staff-join {
  width: min(820px, 100%);
  margin: 1.6rem auto 0;
}

.panel {
  border: 1px solid var(--line);
  background: rgba(20, 32, 25, 0.55);
  padding: 1.5rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--gold-2);
  margin: 1.6rem 0 0.45rem;
}

.prose p {
  margin: 0;
  color: var(--parchment-dim);
}

.prose ul {
  padding-left: 1.15rem;
  color: var(--parchment-dim);
}

.prose li { margin: 0.4rem 0; }

.form {
  display: grid;
  gap: 0.9rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  font-family: var(--font-body);
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(11, 16, 14, 0.65);
  color: var(--parchment);
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
}

.form textarea { min-height: 130px; resize: vertical; }

.pass-field { position: relative; display: block; }

.pass-field input { width: 100%; padding-right: 2.7rem; }

.pass-eye {
  position: absolute;
  top: 50%;
  right: 0.25rem;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
}

.pass-eye svg { width: 18px; height: 18px; }

.pass-eye .eye-off { display: none; }

.pass-eye.is-open .eye-on { display: none; }

.pass-eye.is-open .eye-off { display: block; }

.pass-eye:hover { color: var(--gold-2); }

.pass-code {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.account-grid h2,
.account-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--gold-2);
}

.account-panel { max-width: 28rem; }

.account-switch {
  display: flex;
  gap: 1.4rem;
  margin-bottom: 1.15rem;
}

.account-switch button {
  padding: 0 0 0.25rem;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--parchment-dim);
  cursor: pointer;
}

.account-switch button.is-active {
  color: var(--gold-2);
  border-bottom-color: var(--gold);
}

.account-code {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.16em;
  color: var(--gold-2);
}

.form-note {
  margin: 0;
  color: var(--parchment-dim);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}


.toast {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--moss);
  border: 1px solid var(--line);
  color: var(--gold-2);
  padding: 0.8rem 1.2rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 80;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.site-footer {
  position: relative;
  background: var(--footer);
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 0;
  color: var(--fog);
  font-family: var(--font-ui);
}

.site-footer a {
  color: var(--parchment-dim);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--gold-2);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
  padding-bottom: 2.5rem;
}

.footer__col h3 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment);
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer__col a {
  font-size: 0.9rem;
}

.footer__bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  padding: 1.25rem 0 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: flex-end;
}

.footer__legal {
  max-width: 42rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(154, 171, 156, 0.75);
}

.footer__legal p {
  margin: 0 0 0.35rem;
}

.footer__social {
  display: flex;
  gap: 0.55rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--gold-2);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer__social a:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.45);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}


.apply-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.pillar {
  padding: 1.35rem 1.2rem;
  border: 1px solid var(--line);
  background: rgba(11, 16, 14, 0.35);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.head-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-2);
  cursor: pointer;
}

.head-cart svg {
  width: 1.15rem;
  height: 1.15rem;
}

.head-cart:hover { color: #fff6d0; }

.head-cart__count {
  position: absolute;
  top: -0.2rem;
  right: -0.35rem;
  min-width: 0.95rem;
  height: 0.95rem;
  padding: 0 0.18rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
}

.head-cart__count[hidden] { display: none; }

.store-page .page-hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(11, 16, 14, 0.55), var(--ink)),
    url("../assets/about.jpg") center 40% / cover;
}

.store-wrap {
  padding-top: 2.8rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(61, 107, 79, 0.18), transparent 42%),
    var(--ink);
}

.store-wrap > .container {
  width: min(1320px, calc(100% - 2rem));
}

/* [hidden] deve vincere su display:grid delle griglie store */
.store-cats[hidden],
.store-catalog[hidden],
.vip-mount[hidden],
.vip-faq[hidden],
.pkg-grid[hidden],
.store-table-wrap[hidden],
.store-empty[hidden],
.store-foot[hidden],
.kit-preview[hidden],
.account-panel[hidden],
#account-code[hidden],
#login-form[hidden],
#register-form[hidden] {
  display: none !important;
}

.store-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 0.5rem;
}

.store-pulse {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.store-pulse[hidden] { display: none !important; }

.store-top {
  padding: 1.2rem 1.35rem 1.25rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(212, 175, 55, 0.12), transparent 46%),
    rgba(16, 24, 19, 0.94);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.store-top .chapter__label {
  margin-bottom: 0.75rem;
}

.store-goal {
  padding: 1.15rem 1.35rem 1rem;
  border: 1px solid rgba(240, 215, 140, 0.35);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(212, 175, 55, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(22, 32, 26, 0.96), rgba(11, 16, 14, 0.96));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(212, 175, 55, 0.06);
  font-family: var(--font-ui);
}

.store-goal__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.store-goal__kicker,
.store-goal__live,
.store-goal__eyebrow {
  margin: 0;
  color: var(--gold-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.store-goal__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.store-goal__kicker i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 8px var(--gold);
}

.store-goal__live { color: var(--fog); }

.store-goal__eyebrow {
  margin-bottom: 0.35rem;
  color: var(--fog);
  letter-spacing: 0.14em;
}

.chapter .store-goal__title {
  margin: 0 0 0.55rem;
  color: var(--parchment);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.store-goal__pct {
  margin: 0 0 0.7rem;
  color: var(--gold-2);
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.store-goal__track {
  height: 7px;
  border-radius: 999px;
  background: rgba(230, 217, 195, 0.1);
  overflow: hidden;
}

.store-goal__track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold) 42%, var(--gold-2));
  box-shadow: 0 0 12px rgba(240, 215, 140, 0.45);
}

.store-goal__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  color: var(--fog);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.store-top__who {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 64px;
}

.store-top__who img {
  width: 78px;
  height: auto;
  flex: none;
  background: transparent;
}

.store-top__who strong {
  color: var(--gold-2);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.store-cat {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 1.45rem 1.35rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(212, 175, 55, 0.1), transparent 42%),
    rgba(16, 24, 19, 0.94);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  animation: store-rise 0.7s ease both;
  overflow: hidden;
}

.store-cat:nth-child(2) { animation-delay: 0.08s; }
.store-cat:nth-child(3) { animation-delay: 0.16s; }
.store-cat:nth-child(4) { animation-delay: 0.24s; }
.store-cat:nth-child(5) { animation-delay: 0.32s; }
.store-cat:nth-child(6) { animation-delay: 0.4s; }

.store-cat--halloween {
  background:
    linear-gradient(120deg, rgba(236, 236, 244, 0.16), rgba(72, 72, 88, 0.28) 48%, transparent 72%),
    rgba(14, 14, 20, 0.96);
  border-color: rgba(168, 168, 184, 0.4);
}

.store-cat--halloween .store-cat__count,
.store-cat--halloween .store-cat__cta {
  color: #c9c9d6;
}

.store-cat--halloween .store-cat__copy,
.store-cat--halloween .store-cat__art {
  position: relative;
  z-index: 1;
}

.store-cat--halloween .store-cat__copy h2 {
  background: linear-gradient(90deg, #ececf4, #a6a6b8 42%, #484858 78%, #ececf4);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: halloween-title 7s linear infinite;
}

.store-cat--halloween::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background:
    radial-gradient(ellipse 42% 28% at 18% 70%, rgba(236, 236, 244, 0.16), transparent 70%),
    radial-gradient(ellipse 36% 24% at 78% 30%, rgba(168, 168, 184, 0.14), transparent 72%);
  animation: halloween-fog 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.store-cat--halloween::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(236, 236, 244, 0.2), transparent);
  animation: halloween-sweep 4.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.store-cat--halloween .store-cat__art {
  animation: halloween-flicker 1.6s ease-in-out infinite;
}

.halloween-mist {
  position: absolute;
  width: 34px;
  height: 44px;
  right: 7.5rem;
  bottom: 1.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 80'%3E%3Cpath fill='%23ececf4' d='M8 30c0-14 10-24 24-24s24 10 24 24v42l-8-8-8 8-8-8-8 8-8-8-8 8V30z'/%3E%3Ccircle cx='24' cy='32' r='3.2' fill='%232e2e3c'/%3E%3Ccircle cx='40' cy='32' r='3.2' fill='%232e2e3c'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: halloween-drift 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
}

.halloween-mote {
  position: absolute;
  right: 30%;
  bottom: 22%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ececf4;
  box-shadow: 0 0 8px rgba(236, 236, 244, 0.8);
  animation: halloween-rise 2.8s ease-in infinite;
  pointer-events: none;
  z-index: 2;
}

.halloween-mote--2 {
  right: 46%;
  bottom: 16%;
  animation-delay: 0.9s;
}

.halloween-mote--3 {
  right: 18%;
  bottom: 34%;
  width: 3px;
  height: 3px;
  animation-delay: 1.7s;
}

.store-cat:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.36);
}

.store-cat--halloween:hover {
  border-color: rgba(236, 236, 244, 0.72);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.42), 0 0 32px rgba(168, 168, 184, 0.16);
}

.store-cat--vip .store-cat__copy,
.store-cat--vip .store-cat__art,
.store-cat--crates .store-cat__copy,
.store-cat--crates .store-cat__art,
.store-cat--battlepass .store-cat__copy,
.store-cat--battlepass .store-cat__art,
.store-cat--scie .store-cat__copy,
.store-cat--scie .store-cat__art {
  position: relative;
  z-index: 1;
}

.store-cat--vip .store-cat__copy h2,
.store-cat--crates .store-cat__copy h2,
.store-cat--battlepass .store-cat__copy h2,
.store-cat--scie .store-cat__copy h2 {
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: halloween-title 7s linear infinite;
}

.store-cat--vip .store-cat__copy h2 {
  background-image: linear-gradient(90deg, #fff6d0, #e8c56b 40%, #c4842a 72%, #fff6d0);
}

.store-cat--crates .store-cat__copy h2 {
  background-image: linear-gradient(90deg, #f6e7c1, #d4af37 42%, #8a7340 74%, #f6e7c1);
  animation-duration: 8s;
}

.store-cat--battlepass .store-cat__copy h2 {
  background-image: linear-gradient(90deg, #f0d78c, #d4af37 36%, #7dcea0 70%, #f0d78c);
  animation-duration: 7.4s;
}

.store-cat--scie .store-cat__copy h2 {
  background-image: linear-gradient(90deg, #f9e2af, #cba6f7 34%, #89dceb 66%, #f5c2e7 84%, #f9e2af);
  animation-duration: 6.4s;
}

.store-cat--vip::before,
.store-cat--crates::before,
.store-cat--battlepass::before,
.store-cat--scie::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  animation: halloween-fog 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.store-cat--vip::before {
  background:
    radial-gradient(ellipse 42% 28% at 18% 70%, rgba(249, 226, 175, 0.18), transparent 70%),
    radial-gradient(ellipse 36% 24% at 78% 30%, rgba(227, 155, 43, 0.16), transparent 72%);
}

.store-cat--crates::before {
  background:
    radial-gradient(ellipse 40% 26% at 22% 64%, rgba(212, 175, 55, 0.2), transparent 70%),
    radial-gradient(ellipse 34% 22% at 76% 28%, rgba(138, 115, 64, 0.22), transparent 72%);
  animation-delay: -2.4s;
}

.store-cat--battlepass::before {
  background:
    radial-gradient(ellipse 40% 26% at 16% 68%, rgba(212, 175, 55, 0.16), transparent 70%),
    radial-gradient(ellipse 32% 22% at 80% 32%, rgba(125, 206, 160, 0.16), transparent 72%);
  animation-delay: -4.2s;
}

.store-cat--scie::before {
  background:
    radial-gradient(ellipse 38% 24% at 20% 66%, rgba(203, 166, 247, 0.18), transparent 70%),
    radial-gradient(ellipse 34% 22% at 78% 30%, rgba(137, 220, 235, 0.18), transparent 72%);
  animation-delay: -1.3s;
}

.store-cat--vip::after,
.store-cat--crates::after,
.store-cat--battlepass::after,
.store-cat--scie::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 42%;
  animation: halloween-sweep 5.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.store-cat--vip::after {
  background: linear-gradient(90deg, transparent, rgba(249, 226, 175, 0.24), transparent);
  animation-delay: 0.6s;
}

.store-cat--crates::after {
  background: linear-gradient(90deg, transparent, rgba(240, 215, 140, 0.26), transparent);
  animation-delay: 1.4s;
}

.store-cat--battlepass::after {
  background: linear-gradient(90deg, transparent, rgba(166, 227, 161, 0.22), transparent);
  animation-delay: 2.1s;
}

.store-cat--scie::after {
  background: linear-gradient(90deg, transparent, rgba(137, 220, 235, 0.24), transparent);
  animation-delay: 0.9s;
}

.store-cat--vip .store-cat__art { animation: cat-float 4.4s ease-in-out infinite; }
.store-cat--crates .store-cat__art { animation: cat-bob 2.6s ease-in-out infinite; }
.store-cat--battlepass .store-cat__art { animation: cat-pulse 3.4s ease-in-out infinite; }
.store-cat--scie .store-cat__art { animation: cat-float 5.2s ease-in-out infinite; }

.store-cat--vip:hover {
  border-color: rgba(249, 226, 175, 0.72);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.36), 0 0 28px rgba(227, 155, 43, 0.18);
}

.store-cat--crates:hover {
  border-color: rgba(212, 175, 55, 0.75);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.36), 0 0 28px rgba(212, 175, 55, 0.16);
}

.store-cat--battlepass:hover {
  border-color: rgba(166, 227, 161, 0.6);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.36), 0 0 28px rgba(125, 206, 160, 0.16);
}

.store-cat--scie:hover {
  border-color: rgba(137, 220, 235, 0.6);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.36), 0 0 28px rgba(203, 166, 247, 0.18);
}

.store-cat--comandi .store-cat__copy,
.store-cat--comandi .store-cat__art {
  position: relative;
  z-index: 1;
}

.store-cat--comandi .store-cat__copy h2 {
  background-image: linear-gradient(90deg, #cdd6f4, #89b4fa 40%, #cba6f7 74%, #cdd6f4);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: halloween-title 7.2s linear infinite;
}

.store-cat--comandi::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background:
    radial-gradient(ellipse 40% 26% at 18% 68%, rgba(137, 180, 250, 0.18), transparent 70%),
    radial-gradient(ellipse 32% 22% at 78% 30%, rgba(203, 166, 247, 0.14), transparent 72%);
  animation: halloween-fog 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.store-cat--comandi .store-cat__art { animation: cat-float 4.8s ease-in-out infinite; }

.store-cat--comandi:hover {
  border-color: rgba(137, 180, 250, 0.65);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.36), 0 0 28px rgba(137, 180, 250, 0.16);
}

.store-cat--bundle .store-cat__copy,
.store-cat--bundle .store-cat__art {
  position: relative;
  z-index: 1;
}

.store-cat--bundle .store-cat__copy h2 {
  background-image: linear-gradient(90deg, #fff6d0, #f3b4c4 38%, #f0d78c 72%, #fff6d0);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: halloween-title 7.2s linear infinite;
}

.store-cat--bundle::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background:
    radial-gradient(ellipse 40% 26% at 18% 68%, rgba(243, 180, 196, 0.2), transparent 70%),
    radial-gradient(ellipse 32% 22% at 78% 30%, rgba(240, 215, 140, 0.16), transparent 72%);
  animation: halloween-fog 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.store-cat--bundle .store-cat__art { animation: cat-float 5s ease-in-out infinite; }

.store-cat--bundle:hover {
  border-color: rgba(243, 180, 196, 0.7);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.36), 0 0 28px rgba(243, 180, 196, 0.16);
}

.cat-ornament {
  position: absolute;
  width: 28px;
  height: 28px;
  right: 7.4rem;
  bottom: 1.25rem;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  animation: halloween-drift 4.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35));
}

.store-cat--vip .cat-ornament {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f9e2af' d='M12 2l2.2 6.6H21l-5.4 4 2 6.4L12 15.8 6.4 19l2-6.4L3 8.6h6.8z'/%3E%3C/svg%3E");
}

.store-cat--crates .cat-ornament {
  width: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Ccircle cx='9' cy='12' r='5' fill='none' stroke='%23f0d78c' stroke-width='2'/%3E%3Cpath d='M14 12h14M22 12v4M26 12v3' fill='none' stroke='%23f0d78c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  animation-duration: 3.8s;
  animation-delay: -1.4s;
}

.store-cat--battlepass .cat-ornament {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8' fill='%23d4af37'/%3E%3Cpath d='M8 12.2l2.4 2.4 5.2-5.4' fill='none' stroke='%230b100e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation-duration: 5.2s;
  animation-delay: -2s;
}

.store-cat--scie .cat-ornament {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2389dceb' d='M12 2l1.2 7.2L20 12l-6.8 2.8L12 22l-1.2-7.2L4 12l6.8-2.8z'/%3E%3C/svg%3E");
  animation-name: scie-drift;
  animation-duration: 4.2s;
}

.cat-mote {
  position: absolute;
  right: 30%;
  bottom: 22%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: halloween-rise 3s ease-in infinite;
  pointer-events: none;
  z-index: 2;
}

.cat-mote--2 {
  right: 44%;
  bottom: 16%;
  animation-delay: 1s;
}

.cat-mote--3 {
  right: 18%;
  bottom: 34%;
  width: 3px;
  height: 3px;
  animation-delay: 1.8s;
}

.store-cat--vip .cat-mote {
  background: #f9e2af;
  box-shadow: 0 0 8px rgba(249, 226, 175, 0.85);
}

.store-cat--crates .cat-mote {
  width: 7px;
  height: 7px;
  background: #f0d78c;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
  animation-name: cat-coin;
  animation-duration: 2.8s;
}

.store-cat--crates .cat-mote--3 { width: 5px; height: 5px; }

.store-cat--battlepass .cat-mote {
  background: #a6e3a1;
  box-shadow: 0 0 8px rgba(166, 227, 161, 0.75);
  animation-name: cat-stamp;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 2.4s;
}

.store-cat--scie .cat-mote {
  background: #f9e2af;
  box-shadow: 0 0 8px rgba(249, 226, 175, 0.8);
  animation-name: scie-trail;
  animation-duration: 3.4s;
}

.store-cat--scie .cat-mote--2 {
  background: #cba6f7;
  box-shadow: 0 0 8px rgba(203, 166, 247, 0.8);
}

.store-cat--scie .cat-mote--3 {
  background: #89dceb;
  box-shadow: 0 0 8px rgba(137, 220, 235, 0.8);
}

.store-cat__copy h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  color: var(--parchment);
  letter-spacing: 0.02em;
}

.store-cat__count {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.store-cat__blurb {
  margin: 0 0 1rem;
  color: var(--fog);
  font-size: 0.92rem;
  max-width: 18rem;
}

.store-cat__cta {
  color: var(--gold-2);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.store-cat__art {
  width: 5.5rem;
  height: 5.5rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.store-cat__art svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.store-catalog.is-halloween {
  position: relative;
  isolation: isolate;
}

.store-catalog.is-halloween::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 42%;
  background:
    radial-gradient(ellipse 26% 70% at 0% 0%, rgba(236, 236, 244, 0.12), transparent 72%),
    radial-gradient(ellipse 22% 60% at 100% 8%, rgba(168, 168, 184, 0.12), transparent 70%);
  animation: halloween-fog 11s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.store-catalog.is-halloween::after {
  content: "";
  position: absolute;
  top: 0;
  right: 4%;
  width: 46px;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 80'%3E%3Cpath fill='%23ececf4' d='M8 30c0-14 10-24 24-24s24 10 24 24v42l-8-8-8 8-8-8-8 8-8-8-8 8V30z'/%3E%3Ccircle cx='24' cy='32' r='3.2' fill='%232e2e3c'/%3E%3Ccircle cx='40' cy='32' r='3.2' fill='%232e2e3c'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: halloween-float 5.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35));
}

.store-catalog.is-halloween > * {
  position: relative;
  z-index: 1;
}

.store-catalog.is-halloween .store-catalog__head h2 {
  background: linear-gradient(90deg, #ececf4, #848498 48%, #2e2e3c 80%, #ececf4);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: halloween-title 7s linear infinite;
}

.store-catalog__head {
  margin: 0.4rem 0 1.4rem;
}

.store-catalog__head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.store-catalog__head p {
  margin: 0;
  color: var(--fog);
}

.store-back {
  margin: 0 0 1rem;
  padding: 0.35rem 0;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-back:hover { color: var(--gold-2); }

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pkg-grid:has(.pkg-card--spettro) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 52rem;
}

.pkg-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 1.1rem 1.1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.08), transparent 28%),
    rgba(16, 24, 19, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.pkg-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.36);
}

.pkg-card--spettro,
.pkg-card--spettro-chiavi {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(236, 236, 244, 0.14), rgba(46, 46, 60, 0.2) 34%, transparent 58%),
    rgba(14, 14, 20, 0.94);
  border-color: rgba(132, 132, 152, 0.5);
  animation: halloween-glow 4.8s ease-in-out infinite;
}

.pkg-card--spettro::before,
.pkg-card--spettro-chiavi::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(236, 236, 244, 0.1) 48%, transparent 64%);
  background-size: 220% 100%;
  animation: store-sheen 6.5s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.pkg-card--spettro > *,
.pkg-card--spettro-chiavi > * {
  position: relative;
  z-index: 1;
}

.pkg-card--spettro h3,
.pkg-card--spettro-chiavi h3 {
  background: linear-gradient(90deg, #ececf4, #848498 55%, #2e2e3c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pkg-card--spettro:hover,
.pkg-card--spettro-chiavi:hover {
  border-color: rgba(236, 236, 244, 0.7);
}

.pkg-card .rank-card__perks {
  margin: 0.35rem 0 0.9rem;
}

.pkg-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.pkg-card__art {
  display: block;
  width: 6.4rem;
  height: 6.4rem;
  margin: 0.85rem auto 0.15rem;
  object-fit: contain;
  animation: store-float 4.8s ease-in-out infinite;
}

.pkg-card:nth-child(2) .pkg-card__art { animation-delay: 0.4s; }
.pkg-card:nth-child(3) .pkg-card__art { animation-delay: 0.8s; }

.pkg-card__chat {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.75rem;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  line-height: 1.35;
}

.pkg-card__chat-title {
  font-weight: 700;
}

.pkg-card__chat .is-name,
.pkg-card__chat .is-body {
  color: #ffffff;
}

.pkg-card__chat .is-bar {
  color: #a6adc8;
}

.pkg-card__price {
  margin: 0.85rem 0 0.15rem;
  color: var(--gold-2);
  font-size: 1.45rem;
  font-weight: 700;
}

.pkg-card__meta {
  margin: 0.25rem 0 1rem;
  color: var(--fog);
  font-size: 0.82rem;
}

.pkg-card .rank-card__add {
  margin-top: auto;
}

.store-empty {
  margin: 0.5rem 0 1.5rem;
  color: var(--fog);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.rank-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem 1.1rem 1.1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.08), transparent 28%),
    rgba(16, 24, 19, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  animation: store-rise 0.7s ease both;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.rank-card:nth-child(2) { animation-delay: 0.08s; }
.rank-card:nth-child(3) { animation-delay: 0.16s; }
.rank-card:nth-child(4) { animation-delay: 0.24s; }
.rank-card:nth-child(5) { animation-delay: 0.32s; }
.rank-card:nth-child(6) { animation-delay: 0.4s; }

.rank-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.36);
}

.rank-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-dim);
}

.rank-card--scudiero::before { background: #b7b7b7; }
.rank-card--cavaliere::before { background: var(--gold); }
.rank-card--barone::before { background: #e0b15a; }
.rank-card--principe::before { background: linear-gradient(90deg, #f0d78c, #fff6d2, #d4af37); }
.rank-card--re::before {
  background: linear-gradient(90deg, #ffd166, #e23d3d, #ffd166, #e23d3d);
  background-size: 220% 100%;
  animation: store-sheen 4.5s linear infinite;
}
.rank-card--imperatore::before {
  background: linear-gradient(90deg, #fff6d0, #e39b2b);
}

.rank-card.is-picked {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.75);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.rank-card.is-picked:hover {
  transform: translateY(-14px);
}

.rank-card__tag {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rank-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--parchment);
}

.rank-card__art {
  display: block;
  width: 6.4rem;
  height: 6.4rem;
  margin: 0.85rem auto 0.15rem;
  object-fit: contain;
  animation: store-float 4.8s ease-in-out infinite;
}

.rank-card:nth-child(2) .rank-card__art { animation-delay: 0.4s; }
.rank-card:nth-child(3) .rank-card__art { animation-delay: 0.8s; }
.rank-card:nth-child(4) .rank-card__art { animation-delay: 1.2s; }
.rank-card:nth-child(5) .rank-card__art { animation-delay: 1.6s; }

.rank-card.is-owned {
  opacity: 0.55;
}

.rank-card__price {
  margin: 0.85rem 0 0.15rem;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--gold-2);
}

.rank-card__meta {
  margin: 0 0 1rem;
  color: var(--fog);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.rank-card__perks {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  color: var(--parchment-dim);
  font-size: 0.88rem;
}

.rank-card__perks li {
  padding-left: 0.85rem;
  position: relative;
}

.rank-card__perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--gold);
}

.rank-card__add,
.cart__pay {
  margin-top: auto;
  background: var(--gold);
  color: var(--ink);
  padding: 0.65rem 0.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rank-card__add:hover,
.cart__pay:hover { background: var(--gold-2); }

.rank-card__add:disabled {
  background: #3a3324;
  color: var(--fog);
  cursor: default;
}

.rank-card__actions {
  margin-top: auto;
  display: grid;
  gap: 0.45rem;
}

.rank-card__actions .rank-card__add {
  margin-top: 0;
}

.rank-card__kit {
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: transparent;
  color: var(--gold-2);
  padding: 0.5rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rank-card__kit:hover,
.rank-card__kit.is-open {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  color: #fff6d0;
}

.kit-preview {
  margin: 1.25rem 0 0.4rem;
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.08), transparent 22%),
    rgba(16, 24, 19, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.kit-preview__head h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--parchment);
}

.kit-preview__head p {
  margin: 0 0 1rem;
  color: var(--fog);
  font-size: 0.88rem;
}

.kit-preview__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kit-slot {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.45rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.16);
}

.kit-slot__icon {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.28)),
    #1b2420;
  border: 1px solid rgba(212, 175, 55, 0.22);
}

.kit-slot__icon img {
  width: 1.7rem;
  height: 1.7rem;
  image-rendering: pixelated;
}

.kit-slot.is-glint .kit-slot__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(196, 160, 255, 0.55) 50%, transparent 72%);
  background-size: 220% 100%;
  animation: store-sheen 2.8s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

.kit-slot__name {
  margin: 0;
  color: var(--parchment);
  font-size: 0.86rem;
  line-height: 1.3;
}

.kit-slot__qty {
  margin-left: 0.35rem;
  color: var(--gold-2);
  font-weight: 700;
}

.kit-slot__ench {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  color: #cba6f7;
  font-size: 0.74rem;
  line-height: 1.35;
}

.store-table-wrap {
  margin-top: 2.4rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(11, 16, 14, 0.35);
}

.store-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.92rem;
}

.store-table th,
.store-table td {
  padding: 0.7rem 0.55rem;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
  overflow-wrap: anywhere;
}

.store-table thead th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: rgba(20, 32, 25, 0.8);
}

.store-table tbody th {
  text-align: left;
  color: var(--parchment-dim);
  font-weight: 600;
}

.store-table td { color: var(--parchment); }

.store-table tbody tr {
  animation: store-fade 0.45s ease both;
}

.store-table tbody tr:nth-child(1) { animation-delay: 0.28s; }
.store-table tbody tr:nth-child(2) { animation-delay: 0.34s; }
.store-table tbody tr:nth-child(3) { animation-delay: 0.4s; }
.store-table tbody tr:nth-child(4) { animation-delay: 0.46s; }
.store-table tbody tr:nth-child(5) { animation-delay: 0.52s; }
.store-table tbody tr:nth-child(6) { animation-delay: 0.58s; }
.store-table tbody tr:nth-child(7) { animation-delay: 0.64s; }
.store-table tbody tr:nth-child(8) { animation-delay: 0.7s; }
.store-table tbody tr:nth-child(9) { animation-delay: 0.76s; }

.store-page .page-hero .container {
  animation: store-rise 0.8s ease both;
}

.cart__panel {
  animation: store-drawer 0.35s ease;
}

@keyframes store-rise {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes store-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes store-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@keyframes store-sheen {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}

@keyframes store-drawer {
  from { translate: 28px 0; }
  to { translate: 0 0; }
}

@keyframes halloween-fog {
  from { transform: translate3d(-6%, 0, 0); }
  to { transform: translate3d(7%, -5%, 0); }
}

@keyframes halloween-float {
  0%, 100% { transform: translateY(0); opacity: 0.72; }
  50% { transform: translateY(-12px); opacity: 1; }
}

@keyframes halloween-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-56px, -16px); }
}

@keyframes halloween-sweep {
  0% { transform: translateX(0); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateX(340%); opacity: 0; }
}

@keyframes halloween-rise {
  0% { transform: translateY(10px) scale(0.6); opacity: 0; }
  25% { opacity: 0.9; }
  100% { transform: translateY(-52px) scale(1); opacity: 0; }
}

@keyframes halloween-flicker {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 10px rgba(236, 236, 244, 0.45)); }
  42% { opacity: 0.62; filter: drop-shadow(0 0 2px rgba(236, 236, 244, 0.08)); }
  58% { opacity: 1; filter: drop-shadow(0 0 12px rgba(236, 236, 244, 0.55)); }
  74% { opacity: 0.78; }
}

@keyframes halloween-title {
  from { background-position: 0% 0; }
  to { background-position: 220% 0; }
}

@keyframes halloween-glow {
  0%, 100% { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
  50% { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 22px rgba(168, 168, 184, 0.2); }
}

@keyframes cat-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes cat-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40% { transform: translateY(-5px) rotate(-2deg); }
  70% { transform: translateY(1px) rotate(1.5deg); }
}

@keyframes cat-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

@keyframes cat-coin {
  0% { transform: translateY(8px) rotateY(0deg); opacity: 0; }
  22% { opacity: 1; }
  100% { transform: translateY(-46px) rotateY(540deg); opacity: 0; }
}

@keyframes cat-stamp {
  0%, 100% { transform: scale(0.65); opacity: 0.25; }
  50% { transform: scale(1); opacity: 1; }
}

@keyframes scie-drift {
  0%, 100% { transform: translate(0, 8px); opacity: 0.55; }
  50% { transform: translate(-48px, -18px); opacity: 1; }
}

@keyframes scie-trail {
  0% { transform: translate(16px, 14px) scale(0.5); opacity: 0; }
  22% { opacity: 0.95; }
  100% { transform: translate(-64px, -34px) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rank-card,
  .rank-card__art,
  .rank-card--re::before,
  .store-cat,
  .store-cat--halloween .store-cat__copy h2,
  .store-cat--halloween::before,
  .store-cat--halloween .store-cat__art,
  .halloween-mist,
  .halloween-mote,
  .store-cat--halloween::after,
  .store-cat--vip .store-cat__copy h2,
  .store-cat--crates .store-cat__copy h2,
  .store-cat--battlepass .store-cat__copy h2,
  .store-cat--scie .store-cat__copy h2,
  .store-cat--comandi .store-cat__copy h2,
  .store-cat--bundle .store-cat__copy h2,
  .store-cat--vip::before,
  .store-cat--crates::before,
  .store-cat--battlepass::before,
  .store-cat--scie::before,
  .store-cat--comandi::before,
  .store-cat--bundle::before,
  .store-cat--vip::after,
  .store-cat--crates::after,
  .store-cat--battlepass::after,
  .store-cat--scie::after,
  .store-cat--vip .store-cat__art,
  .store-cat--crates .store-cat__art,
  .store-cat--battlepass .store-cat__art,
  .store-cat--scie .store-cat__art,
  .store-cat--comandi .store-cat__art,
  .store-cat--bundle .store-cat__art,
  .cat-ornament,
  .cat-mote,
  .store-catalog.is-halloween::before,
  .store-catalog.is-halloween::after,
  .store-catalog.is-halloween .store-catalog__head h2,
  .pkg-card--spettro,
  .pkg-card--spettro-chiavi,
  .pkg-card--spettro::before,
  .pkg-card--spettro-chiavi::before,
  .store-table tbody tr,
  .store-page .page-hero .container,
  .cart__panel {
    animation: none;
  }
}

.store-foot,
.store-warn {
  margin: 0.9rem 0 0;
  color: var(--fog);
  font-size: 0.85rem;
}

.store-foot a { color: var(--gold-2); }

.cart[hidden] { display: none; }

.cart__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 60;
}

.cart__panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 61;
  width: min(26.5rem, 100%);
  height: 100%;
  background: #12110f;
  border-left: 1px solid rgba(240, 215, 140, 0.16);
  padding: 1.15rem 1.05rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: auto;
}

.cart__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart__head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  color: var(--gold-2);
  font-size: 1.35rem;
}

.cart__head h2 svg {
  width: 1.15rem;
  height: 1.15rem;
}

.cart__badge {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.cart__badge[hidden] { display: none; }

.cart__head button {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--parchment);
}

.cart__who,
.cart-line,
.cart__sum,
.cart__age {
  border-radius: 16px;
  background: #1c1a17;
  border: 1px solid rgba(240, 215, 140, 0.12);
}

.cart__who {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
}

.cart__who img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  image-rendering: pixelated;
  background: #2a261f;
}

.cart__who img[hidden] { display: none; }

.cart__who:has(img[hidden]) { grid-template-columns: 1fr auto; }

.cart__who p {
  margin: 0;
  color: var(--fog);
  font-size: 0.78rem;
}

.cart__who strong {
  color: var(--parchment);
  font-size: 0.95rem;
}

.cart__who button {
  color: var(--gold-2);
  font-weight: 700;
  font-size: 0.82rem;
}

.cart__who button:hover { color: #fff6d0; }

.cart-line {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}

.cart-line + .cart-line { margin-top: 0.55rem; }

.cart-line__top {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: 0.7rem;
  align-items: center;
}

.cart-line__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #2a261f;
}

.cart-line__icon svg { width: 1.7rem; height: 1.7rem; }

.cart-line strong { display: block; color: var(--parchment); }
.cart-line span { color: var(--fog); font-size: 0.82rem; }

.cart-line__top em {
  font-style: normal;
  color: var(--parchment);
  font-weight: 700;
}

.cart-line__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.cart-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: #12110f;
}

.cart-step button {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #2a261f;
  color: var(--gold-2);
  font-size: 1rem;
}

.cart-step button:disabled { opacity: 0.35; }

.cart-step span {
  min-width: 1.2rem;
  text-align: center;
  color: var(--parchment);
  font-weight: 700;
}

.cart-line__remove {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--fog);
  font-size: 0.82rem;
}

.cart-line__remove svg { width: 0.95rem; height: 0.95rem; }
.cart-line__remove:hover { color: var(--parchment); }

.cart-empty { margin: 0; color: var(--fog); }

.cart__name {
  display: grid;
  gap: 0.35rem;
  color: var(--parchment-dim);
  font-size: 0.85rem;
}

.cart__name[hidden] { display: none; }

.cart__name input {
  border: 1px solid rgba(240, 215, 140, 0.2);
  border-radius: 12px;
  background: #1c1a17;
  color: var(--parchment);
  padding: 0.7rem 0.75rem;
  font: inherit;
}

.cart__sum {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 0.95rem;
}

.cart__sum strong {
  display: block;
  color: var(--parchment);
  font-size: 1rem;
}

.cart__sum p {
  margin: 0.25rem 0 0;
  color: var(--fog);
  font-size: 0.78rem;
  line-height: 1.4;
}

.cart__sum b {
  color: var(--parchment);
  font-size: 1.15rem;
  white-space: nowrap;
}

.cart__note {
  margin: 0;
  min-height: 0;
  color: #f38ba8;
  font-size: 0.85rem;
}

.cart__note:empty { display: none; }

.cart__hint {
  margin: 0;
  color: var(--fog);
  font-size: 0.78rem;
}

.cart .cart__pay {
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.cart .cart__pay svg { width: 1rem; height: 1rem; }

.cart__pay:disabled { opacity: 0.6; cursor: wait; }

.cart__legal {
  margin: 0;
  color: var(--fog);
  font-size: 0.78rem;
  line-height: 1.45;
}

.cart__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0;
}

.cart__links a {
  color: var(--gold-2);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cart__age {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.8rem 0.85rem;
  color: var(--parchment);
  font-size: 0.84rem;
  line-height: 1.4;
}

.cart__age input {
  margin-top: 0.15rem;
  accent-color: var(--gold);
}

.cart__secure {
  margin: 0;
  text-align: center;
  color: #a6e3a1;
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .store-cats { grid-template-columns: 1fr; }
  .store-pulse { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: 1fr 1fr; }
  .rank-grid { grid-template-columns: 1fr 1fr; }
  .rank-card.is-picked { transform: none; }
}

@media (max-width: 560px) {
  .rank-grid,
  .pkg-grid { grid-template-columns: 1fr; }
}

/* Scroll reveals */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-delay, 0) * 80ms);
}

[data-reveal="left"] {
  transform: translateX(-32px);
}

[data-reveal="right"] {
  transform: translateX(32px);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.staff-person.is-in:hover,
.journal-card.is-in:hover,
.rank-podium__card.is-in:hover,
.rank-line.is-in:hover {
  transform: translateY(-4px);
}

.staff-person.is-in:hover,
.rules-card.is-in:hover,
.apply-role.is-in:hover {
  transform: translateY(-4px);
}

.page-hero .container,
.journal__hero .container,
.shop-hero__copy,
.apply-hero .container,
.soft__intro {
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chronicle__item.is-in {
  /* no entrance animation — list loads once */
}

.split__visual img {
  transition: transform 0.7s ease, filter 0.7s ease;
}

.split__visual.is-in img {
  transform: scale(1.02);
}

.ornament::before,
.ornament::after {
  transform: scaleX(0.4);
  transition: transform 0.8s ease;
}

[data-reveal].is-in .ornament::before,
[data-reveal].is-in .ornament::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__actions .btn--hero,
  .hero__actions .btn--ghost {
    animation: none;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    display: flex;
    justify-content: space-between;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    justify-self: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: var(--menu-bg);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid rgba(212, 175, 55, 0.12); }
  .nav a.nav-shop { align-self: flex-start; margin: 0.35rem 0; border-bottom: 0; }
  .nav-drop__btn { padding: 0.75rem 0; text-align: left; }
  .nav-drop__menu {
    position: static;
    transform: none;
    min-width: 0;
    padding: 0 0 0.25rem 0.85rem;
    border: none;
    background: transparent;
  }
  .nav-drop:hover .nav-drop__menu { display: none; }
  .nav-drop.is-open .nav-drop__menu,
  .nav-drop:focus-within .nav-drop__menu { display: flex; }
  .nav-drop__menu a { padding: 0.45rem 0; }
  .head-lang:hover .head-lang__menu { display: none; }
  .head-lang.is-open .head-lang__menu { display: flex; }
  .head-account-drop.is-open .head-account-drop__menu { display: flex; }
  .head-discord,
  .head-lang__btn { height: 34px; }
  .head-discord { width: 34px; }
  .head-discord svg { width: 18px; height: 18px; }
  .header-actions { gap: 0.35rem; }
  .staff-grid { grid-template-columns: 1fr; }
  .brand { font-size: 0; gap: 0; }
  .head-ip,
  .head-account { font-size: 0.68rem; }
  .menu-toggle { display: block; }

  .hero__grid,
  .split,
  .pillars,
  .apply-grid {
    grid-template-columns: 1fr;
  }

  .hero__seal {
    justify-self: start;
    width: min(180px, 50vw);
    order: -1;
  }

  .join__grid { grid-template-columns: 1fr; }
  .join-skin { width: min(220px, 58vw); order: -1; }
  .discord-banner__mark { display: none; }
  .discord-banner__edge span { width: 28px; }

  .chronicle { grid-template-columns: 1fr; }

  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translateY(24px);
  }
}

.rules-page {
  padding-top: 2.2rem;
  padding-bottom: 4.5rem;
}

.rules-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
  width: min(1080px, calc(100% - 2rem));
}

.rules-nav {
  position: sticky;
  top: 5.1rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.55rem 0.55rem;
  border: 1px solid var(--line);
  background: rgba(11, 16, 14, 0.55);
}

.rules-nav__label {
  margin: 0 0 0.35rem;
  padding: 0 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.rules-nav a {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--parchment-dim);
  padding: 0.48rem 0.7rem;
  border-left: 2px solid transparent;
}

.rules-nav a:hover,
.rules-nav a:focus-visible {
  color: var(--gold-2);
  border-left-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.rules-meta {
  margin: 0 0 1rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.rules-card {
  margin: 0 0 0.9rem;
  scroll-margin-top: 5.2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(61, 107, 79, 0.18), rgba(11, 16, 14, 0.15) 7rem),
    rgba(20, 32, 25, 0.78);
  padding: 1.05rem 1.2rem 0.35rem;
}

.rules-card__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.15rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.rules-card__mark {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #3d2b16;
  background: linear-gradient(180deg, #f0d78c, #d4af37);
}

.rules-page .rules-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
  color: var(--gold-2);
}

.rule {
  padding: 0.85rem 0 0.95rem;
}

.rule + .rule {
  border-top: 1px solid rgba(230, 217, 195, 0.08);
}

.rules-page .rule h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--gold);
  -webkit-font-smoothing: antialiased;
}

.rules-page .rule p {
  margin: 0;
  max-width: 68ch;
  color: var(--parchment);
  font-size: 0.98rem;
  line-height: 1.65;
}

@media (max-width: 800px) {
  .rules-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .rules-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .rules-nav__label {
    flex: 1 0 100%;
    margin: 0;
    padding: 0.15rem 0.35rem 0.2rem;
  }

  .rules-nav a {
    border: 1px solid var(--line);
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
  }

  .rules-nav a:hover,
  .rules-nav a:focus-visible {
    border-color: var(--gold);
  }
}

/* Pagine account e suggerimenti: superfici morbide, un solo ingresso */
.soft {
  position: relative;
  padding: 7.4rem 0 5.5rem;
  background:
    radial-gradient(ellipse 72% 46% at 50% 0%, rgba(212, 175, 55, 0.11), transparent 62%),
    radial-gradient(ellipse 42% 32% at 82% 18%, rgba(61, 107, 79, 0.16), transparent 70%),
    var(--ink);
}

.soft__wrap {
  width: min(34rem, calc(100% - 2rem));
}

.soft__intro,
.soft__card {
  animation: softIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.soft__card { animation-delay: 0.08s; }

.soft__kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.soft h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-ui);
  font-weight: 650;
  font-size: clamp(2.15rem, 5vw, 2.85rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #f7f1e4;
  -webkit-font-smoothing: antialiased;
}

.soft__intro p:last-child,
.soft__lead {
  margin: 0;
  max-width: 32rem;
  color: var(--parchment-dim);
  font-size: 1.02rem;
  line-height: 1.6;
}

.soft__intro { margin-bottom: 1.35rem; }

.soft__card {
  border-radius: 28px;
  padding: 1.45rem 1.4rem 1.35rem;
  background: linear-gradient(180deg, rgba(34, 48, 40, 0.78), rgba(14, 20, 17, 0.92));
  border: 1px solid rgba(230, 217, 195, 0.12);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.soft__card + .soft__card { margin-top: 0.85rem; }

.ideas { margin-top: 1.7rem; }

.ideas h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-ui);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #f7f1e4;
  -webkit-font-smoothing: antialiased;
}

.soft__empty {
  margin: 0;
  color: var(--parchment-dim);
}

.idea {
  margin-top: 0.7rem;
  padding: 1.1rem 1.15rem 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(230, 217, 195, 0.1);
  animation: softIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.idea h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #f7f1e4;
  -webkit-font-smoothing: antialiased;
}

.idea p {
  margin: 0;
  color: var(--parchment);
  line-height: 1.55;
  white-space: pre-wrap;
}

.idea__meta {
  margin-top: 0.7rem !important;
  color: var(--fog) !important;
  font-size: 0.82rem;
}

.idea__votes {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.idea__vote {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 4.2rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 217, 195, 0.16);
  background: transparent;
  color: var(--parchment-dim);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 650;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.idea__vote svg { width: 16px; height: 16px; }

.idea__vote--yes.is-on {
  background: #a6e3a1;
  color: #173024;
  border-color: transparent;
}

.idea__vote--no.is-on {
  background: #f38ba8;
  color: #3a1520;
  border-color: transparent;
}

.idea__vote:hover { border-color: rgba(240, 215, 140, 0.45); }

.soft__lead { margin-bottom: 1.15rem; }

.soft .form { gap: 0.95rem; }

.soft .form label {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--parchment-dim);
}

.soft .form input,
.soft .form select,
.soft .form textarea {
  border-radius: 16px;
  border: 1px solid rgba(230, 217, 195, 0.16);
  background: rgba(255, 255, 255, 0.035);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.soft .form textarea { min-height: 9.5rem; }

.soft .form input:focus,
.soft .form select:focus,
.soft .form textarea:focus {
  outline: none;
  border-color: rgba(240, 215, 140, 0.72);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.soft .btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: none;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  background: #f0d78c;
  color: #2a1c08;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.soft .btn:hover {
  filter: none;
  background: #f7e3a8;
  transform: translateY(-1px);
}

.soft .btn:active {
  filter: none;
  transform: translateY(0);
  box-shadow: none;
}

.soft .btn--ghost {
  width: auto;
  background: transparent;
  color: var(--parchment);
  border: 1px solid rgba(230, 217, 195, 0.22);
}

.soft .btn--ghost:hover,
.soft .btn--ghost:active {
  background: rgba(255, 255, 255, 0.05);
  color: #f7f1e4;
  filter: none;
  box-shadow: none;
}

.soft .account-switch {
  gap: 0.3rem;
  margin-bottom: 1.2rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.soft .account-switch button {
  flex: 1;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--parchment-dim);
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

.soft .account-switch button.is-active {
  background: rgba(240, 215, 140, 0.16);
  color: #f7f1e4;
  border: 0;
}

.soft .form-note {
  transition: color 0.25s ease;
}

.soft .form-note.is-ok { color: #a6e3a1; }

.soft .form-note.is-bad { color: #f38ba8; }

.soft .account-panel h2,
.soft__card h2 {
  font-family: var(--font-ui);
  font-weight: 650;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

.soft__card[hidden],
#suggest-form[hidden],
#suggest-gate[hidden],
#account-guest[hidden],
#account-member[hidden] {
  display: none !important;
}

@keyframes softIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .soft__intro,
  .soft__card,
  .idea {
    animation: none;
  }

  .soft .btn,
  .soft .form input,
  .soft .form textarea,
  .soft .account-switch button {
    transition: none;
  }
}

/* VIP: confronto a colonne */
.vip-mount {
  overflow-x: auto;
  padding: 5.2rem 0.2rem 0.4rem;
}

.vip-board {
  display: grid;
  grid-template-columns: 8.6rem repeat(6, minmax(0, 1fr));
  column-gap: 0.4rem;
  align-items: stretch;
}

.vip-corner {
  align-self: end;
  padding: 0 0.4rem 1.1rem 0;
}

.vip-kicker,
.vip-faq__kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.vip-corner h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-ui);
  font-weight: 650;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #f7f1e4;
  -webkit-font-smoothing: antialiased;
}

.vip-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  margin: 0;
  color: var(--parchment-dim);
  font-size: 0.82rem;
}

.vip-yes,
.vip-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vip-yes { color: #a6e3a1; }

.vip-yes svg,
.vip-add svg { width: 16px; height: 16px; }

.vip-no { color: #6c7086; }

.vip-head {
  position: relative;
  margin-top: 3.4rem;
  padding: 3.1rem 0.7rem 0.85rem;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(36, 50, 42, 0.92), rgba(16, 24, 20, 0.96));
  border: 1px solid rgba(230, 217, 195, 0.12);
  border-bottom: 0;
  text-align: center;
}

.vip-head img {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 2.4rem);
  width: 104px;
  height: auto;
  transform: translateX(-50%);
  image-rendering: pixelated;
  pointer-events: none;
}

.vip-head.is-feature {
  z-index: 1;
  border-color: rgba(240, 215, 140, 0.9);
  background: linear-gradient(180deg, rgba(58, 48, 28, 0.55), rgba(16, 24, 20, 0.96));
}

.vip-ribbon {
  margin: 0 0 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.vip-badge {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1c1810;
}

.vip-head--scudiero .vip-badge { background: #b7c0b8; }
.vip-head--cavaliere .vip-badge { background: #d4af37; }
.vip-head--barone .vip-badge { background: #f0d78c; }
.vip-head--principe .vip-badge { background: #e7d3a1; }
.vip-head--re .vip-badge { background: #c4a04a; }
.vip-head--imperatore .vip-badge { background: #cba6f7; }

.vip-price {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 650;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: #f7f1e4;
  -webkit-font-smoothing: antialiased;
}

.vip-term {
  margin: 0.15rem 0 0.7rem;
  color: var(--parchment-dim);
  font-size: 0.78rem;
}

.vip-add,
.vip-kit {
  width: 100%;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 650;
  -webkit-font-smoothing: antialiased;
}

.vip-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.4rem;
  background: #f0d78c;
  color: #2a1c08;
  font-size: 0.78rem;
  line-height: 1.15;
  transition: background 0.2s ease, transform 0.2s ease;
}

.vip-add:hover:not(:disabled) {
  background: #f7e3a8;
  transform: translateY(-1px);
}

.vip-add.is-in {
  background: #a6e3a1;
  color: #173024;
}

.vip-add:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: #6c7086;
  cursor: default;
}

.vip-kit {
  margin-top: 0.4rem;
  padding: 0.35rem 0.4rem;
  background: transparent;
  color: var(--parchment-dim);
  font-size: 0.78rem;
  font-weight: 600;
}

.vip-kit:hover,
.vip-kit.is-open { color: var(--gold-2); }

.vip-group,
.vip-label,
.vip-cell,
.vip-gap {
  min-height: 2.65rem;
}

.vip-group,
.vip-label {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.35rem 0.15rem;
  color: var(--parchment-dim);
  font-size: 0.84rem;
}

.vip-group {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.vip-cell,
.vip-gap {
  display: grid;
  place-items: center;
  padding: 0.35rem 0.4rem;
  background: rgba(20, 32, 25, 0.55);
  border-left: 1px solid rgba(230, 217, 195, 0.08);
  border-right: 1px solid rgba(230, 217, 195, 0.08);
  color: var(--parchment);
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: center;
}

.vip-cell.is-feature,
.vip-gap.is-feature {
  background: rgba(212, 175, 55, 0.07);
  border-left-color: rgba(240, 215, 140, 0.9);
  border-right-color: rgba(240, 215, 140, 0.9);
}

.vip-cell.is-last {
  border-bottom: 1px solid rgba(230, 217, 195, 0.08);
  border-radius: 0 0 18px 18px;
}

.vip-cell.is-feature.is-last {
  border-bottom-color: rgba(240, 215, 140, 0.9);
}

button.vip-pets {
  appearance: none;
  width: 100%;
  font: inherit;
  cursor: pointer;
}

button.vip-pets,
button.vip-pets:hover,
button.vip-pets.is-open {
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.pet-lines {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pet-line {
  padding: 0.7rem 0.8rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.16);
}

.pet-line__name {
  margin: 0;
  color: var(--gold-2);
  font-weight: 650;
}

.pet-line__line {
  margin: 0.2rem 0 0;
  color: var(--fog);
  font-size: 0.86rem;
}

.vip-faq {
  margin-top: 2.4rem;
  padding: 1.6rem 1.4rem 1.3rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(34, 48, 40, 0.72), rgba(14, 20, 17, 0.9));
  border: 1px solid rgba(230, 217, 195, 0.12);
}

.vip-faq h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-ui);
  font-weight: 650;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  color: #f7f1e4;
  -webkit-font-smoothing: antialiased;
}

.vip-faq__grid,
.vip-faq__notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.vip-faq__notes { margin-top: 0.75rem; }

.vip-faq article {
  padding: 1rem 1rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(230, 217, 195, 0.1);
}

.vip-faq h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 650;
  color: #f7f1e4;
  -webkit-font-smoothing: antialiased;
}

.vip-faq p {
  margin: 0;
  color: var(--parchment-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.vip-faq a { color: var(--gold-2); }

.vip-faq__kicker:not(:first-child) { margin-top: 1.3rem; }

@media (max-width: 1100px) {
  .vip-board { min-width: 62rem; }
}

@media (max-width: 800px) {
  .vip-faq__grid,
  .vip-faq__notes { grid-template-columns: 1fr; }
}

/* Home — cinematic chapters */
.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 6.5rem 0 5.5rem;
  overflow: hidden;
}

.stage__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 16, 14, 0.45) 0%, rgba(11, 16, 14, 0.28) 42%, rgba(11, 16, 14, 0.72) 100%),
    url("../assets/hero.jpg") center 42% / cover no-repeat;
  transform: scale(1.04);
  animation: stageDrift 18s ease-in-out infinite alternate;
}

.stage__copy {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 46rem;
}

.stage__kicker {
  margin: 0 0 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-2);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stage h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 9vw, 6.6rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
  color: #f7f1e4;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  animation: fadeUp 0.8s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stage__line {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold-2);
  animation: fadeUp 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stage__lead {
  margin: 1.05rem auto 0;
  max-width: 34rem;
  color: rgba(230, 217, 195, 0.78);
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 450;
  animation: fadeUp 0.8s 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stage__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
  animation: fadeUp 0.8s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stage__go,
.stage__alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.stage__go {
  background: #f0d78c;
  color: #1a1408;
}

.stage__alt {
  background: transparent;
  color: var(--parchment);
  box-shadow: inset 0 0 0 1px rgba(230, 217, 195, 0.35);
}

.stage__go:hover,
.stage__alt:hover { transform: translateY(-2px); }

.stage__alt:hover { background: rgba(255, 255, 255, 0.06); }

.stage__scroll {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  color: var(--parchment-dim);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.stage__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 1.6rem;
  margin: 0.45rem auto 0;
  background: linear-gradient(var(--gold-2), transparent);
  animation: stageDrop 1.6s ease-in-out infinite;
}

@keyframes stageDrift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

@keyframes stageDrop {
  0%, 100% { transform: scaleY(0.65); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.beat,
.paths,
.arrive,
.gate {
  padding: 5.5rem 0;
}

.beat { background: var(--ink); }

.beat__grid,
.arrive__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.beat__num {
  margin: 0 0 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.beat h2,
.paths h2,
.arrive h2,
.home-news h2,
.gate h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #f7f1e4;
  -webkit-font-smoothing: antialiased;
}

.beat h2,
.paths h2,
.arrive h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }

.beat__lead,
.beat__copy > p,
.paths__head > p,
.gate p {
  color: var(--parchment-dim);
  font-size: 1.02rem;
}

.beat__lead { margin: 1.2rem 0 0.8rem; }

.beat__frame {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.beat__frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.beat__frame:hover img { transform: scale(1); }

.paths { background: #101814; }

.paths__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.6rem;
}

.paths__head > p { margin: 0 0 0.35rem; }

.paths__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.paths article {
  min-height: 15rem;
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(240, 215, 140, 0.06), transparent 32%),
    #18241c;
  border: 1px solid rgba(230, 217, 195, 0.08);
}

.paths article:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 215, 140, 0.35);
}

.paths article span {
  display: block;
  margin-bottom: 1.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.paths h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #f7f1e4;
}

.paths article p,
.arrive small {
  margin: 0;
  color: var(--fog);
  font-size: 0.92rem;
  line-height: 1.45;
}

.paths__note {
  margin: 1rem 0 0;
}

.paths__note span {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-2);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arrive {
  height: 280vh;
  padding: 0;
  background: var(--ink);
}

.arrive__pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.arrive__steps {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.arrive__steps button {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  text-align: left;
  color: var(--fog);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}

.arrive__steps button.is-on {
  background: #18241c;
  color: #f7f1e4;
}

.arrive__steps button > span:first-child {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: rgba(230, 217, 195, 0.08);
  color: var(--gold-2);
  font-size: 0.78rem;
}

.arrive__steps strong {
  display: block;
  font-family: var(--font-ui);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.arrive__steps small {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
}

.arrive__steps button.is-on small {
  max-height: 4.5rem;
  margin-top: 0.25rem;
  opacity: 1;
}

.arrive__card {
  padding: 1.4rem 1.35rem 1.25rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(240, 215, 140, 0.08), transparent 28%),
    var(--panel);
  border: 1px solid rgba(240, 215, 140, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.arrive__visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 12px;
  background: #10160f;
  border: 1px solid rgba(240, 215, 140, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.arrive__visual > * {
  width: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.arrive__visual > :not(.is-on) {
  position: absolute;
  inset: 12px;
  width: auto;
  height: auto;
  pointer-events: none;
}

.arrive__visual > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.arrive__visual > img:not(.is-on) {
  width: auto;
  height: auto;
}

.arrive__visual > .is-on {
  position: relative;
  opacity: 1;
}

.arrive__visual .arrive__card {
  margin: 0;
  width: auto;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}

.arrive__visual .arrive__card.is-on {
  pointer-events: auto;
}

.arrive .join-label {
  margin: 0.85rem 0 0.35rem;
  color: var(--gold);
}

.arrive .join-label:first-child { margin-top: 0; }

.arrive__value {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(11, 16, 14, 0.55);
  color: #f7f1e4;
  text-align: center;
  font-family: var(--font-ui);
  letter-spacing: 0.02em;
}

.arrive__ports {
  display: grid;
  grid-template-columns: 1fr 7rem;
  gap: 0.6rem;
}

.arrive__copy {
  width: 100%;
  margin-top: 1rem;
  min-height: 2.8rem;
  border-radius: 999px;
  background: var(--gold-2);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 650;
}

.arrive__copy:hover { filter: brightness(1.05); }

.gate {
  background: #101814;
  border-top: 1px solid rgba(230, 217, 195, 0.06);
}

.gate__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.gate h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.45rem; }
.gate p { margin: 0; max-width: 38rem; }

.gate__status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem !important;
  color: var(--gold-2) !important;
  font-size: 0.85rem !important;
}

.gate__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #a6e3a1;
  animation: livePulse 2.2s ease-out infinite;
}

.home-news {
  padding: 4.5rem 0 5rem;
  background: var(--parchment);
  color: var(--ink);
}

.home-news .beat__num { color: var(--gold-dim); }

.home-news h2 {
  margin-bottom: 1.4rem;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
}

.home-news .chronicle {
  grid-template-columns: 1.35fr 0.85fr;
  gap: 0.8rem;
}

.home-news .chronicle__item:first-child { grid-row: span 2; }

.home-news .chronicle__item {
  border: 0;
  border-radius: 24px;
  background: var(--panel);
  color: var(--parchment);
  box-shadow: none;
  padding: 1.2rem 1.2rem 1.1rem;
}

.home-news .chronicle__item:hover {
  transform: translateY(-3px);
  filter: none;
}

.home-news .chronicle__item time,
.home-news .chronicle__item .tag {
  color: var(--gold-2);
  border-color: rgba(240, 215, 140, 0.35);
}

.home-news .chronicle__item h3 { color: #f7f1e4; }
.home-news .chronicle__item p { color: var(--parchment-dim); }

.home-news__more { margin: 1.2rem 0 0; }

.home-news .stage__alt {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(11, 16, 14, 0.25);
}

@media (max-width: 900px) {
  .arrive { height: auto; padding: 4.5rem 0; }
  .arrive__pin { position: static; display: block; min-height: 0; }

  .beat__grid,
  .arrive__grid,
  .paths__head,
  .paths__grid,
  .home-news .chronicle {
    grid-template-columns: 1fr;
  }

  .home-news .chronicle__item:first-child { grid-row: auto; }

  .beat__frame img { aspect-ratio: 16 / 10; object-position: center 62%; }

  .gate__row { flex-direction: column; align-items: flex-start; }

  .paths article { min-height: 0; }
  .paths article span { margin-bottom: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .stage__bg,
  .stage__scroll::after,
  .paths article { animation: none; }

  .arrive { height: auto; padding: 5.5rem 0; }
  .arrive__pin { position: static; display: block; min-height: 0; }
}

/* Community mega menu */
.nav-mega .nav-drop__menu {
  position: fixed;
  top: 2.875rem;
  left: 0;
  right: 0;
  transform: none;
  width: auto;
  min-width: 0;
  padding: 0;
  background: #0c1210;
  border: 0;
  border-bottom: 1px solid rgba(240, 215, 140, 0.22);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
  z-index: 45;
}

.nav-mega:hover .nav-drop__menu,
.nav-mega:focus-within .nav-drop__menu { display: none; }

.nav-mega.is-open .nav-drop__menu {
  display: block;
  animation: fadeUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-mega.is-open .nav-drop__btn::after { content: "▴"; }

.mega {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: 1.6rem 2rem;
  align-items: stretch;
  padding: 1rem 0 1.1rem;
}

.mega > .mega__card {
  position: relative;
  display: block;
  min-height: 12.5rem;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(240, 215, 140, 0.22);
  text-transform: none;
  letter-spacing: 0;
}

.mega > .mega__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega > .mega__card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 2.4rem 0.95rem 0.85rem;
  background: linear-gradient(transparent, rgba(8, 12, 10, 0.92));
  color: #f7f1e4;
  text-transform: none;
  letter-spacing: 0;
}

.mega > .mega__card small {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0d78c;
}

.mega > .mega__card strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
}

.mega > .mega__card:hover strong { color: #f0d78c; }

.mega__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem 1.5rem;
  align-content: center;
}

.mega p {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0d78c;
}

.mega__cols a {
  display: block;
  padding: 0.48rem 0;
  border: 0;
  border-bottom: 1px solid rgba(230, 217, 195, 0.12);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #f4efe6;
  -webkit-font-smoothing: antialiased;
}

.mega__cols a::before { content: none; }

.mega__cols a:hover,
.mega__cols a.is-active {
  background: transparent;
  color: #f0d78c;
  border-bottom-color: rgba(240, 215, 140, 0.55);
}

/* Classifica */
.ranks {
  padding: 6.2rem 0 4.5rem;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(212, 175, 55, 0.08), transparent 42%),
    var(--ink);
}

.ranks h1 {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 650;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  color: #f7f1e4;
  -webkit-font-smoothing: antialiased;
}

.ranks__lead {
  margin: 0.7rem 0 0;
  max-width: 36rem;
  color: var(--parchment-dim);
}

.ranks__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.6rem 0 1rem;
}

.ranks__tabs button {
  min-height: 2.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  color: var(--parchment-dim);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(230, 217, 195, 0.18);
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.ranks__tabs button.is-on {
  background: var(--gold-2);
  color: var(--ink);
  box-shadow: none;
}

.rank-list { display: grid; gap: 0.55rem; }

.rank-row {
  display: grid;
  grid-template-columns: 3.2rem 3rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid rgba(230, 217, 195, 0.08);
}

.rank-row b {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 650;
}

.rank-row img {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  image-rendering: pixelated;
  background: rgba(0, 0, 0, 0.25);
}

.rank-row strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #f7f1e4;
}

.rank-row small {
  display: block;
  margin-top: 0.12rem;
  color: var(--fog);
  font-size: 0.85rem;
}

.rank-row em {
  font-style: normal;
  font-family: var(--font-ui);
  color: var(--gold-2);
  white-space: nowrap;
}

.ranks__note {
  margin: 1rem 0 0;
  color: var(--fog);
}

.rank-row--guild { grid-template-columns: 3.2rem minmax(0, 1fr) auto; }

@media (max-width: 900px) {
  .nav-mega .nav-drop__menu,
  .nav-mega.is-open .nav-drop__menu {
    position: static;
    padding: 0.15rem 0 0.35rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    animation: none;
  }

  .mega {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.15rem 0 0.2rem;
  }

  .mega > .mega__card { display: none; }

  .mega__cols {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .mega p { color: var(--gold-2); }

  .mega__cols a {
    color: var(--parchment);
    font-size: 1.02rem;
    border-bottom-color: transparent;
  }

  .rank-row {
    grid-template-columns: 2.2rem 2.4rem minmax(0, 1fr);
  }

  .rank-row em { grid-column: 2 / -1; }
  .rank-row--guild { grid-template-columns: 2.2rem minmax(0, 1fr); }
}

.rank-podium {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 0.8rem;
  align-items: end;
  margin: 0.4rem 0 1.15rem;
}

.rank-podium.is-short {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 18rem));
  justify-content: center;
}

.rank-podium__card {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 1.15rem 0.9rem 1rem;
  border-radius: 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(249, 226, 175, 0.08), transparent 42%),
    var(--panel);
  border: 1px solid rgba(230, 217, 195, 0.1);
}

.rank-podium__card--1 {
  padding-top: 1.6rem;
  padding-bottom: 1.3rem;
  border-color: rgba(240, 215, 140, 0.55);
}

.rank-podium__card--2 { border-color: rgba(186, 194, 222, 0.38); }
.rank-podium__card--3 { border-color: rgba(250, 179, 135, 0.42); }

.rank-podium__card b {
  font-family: var(--font-ui);
  font-size: 1.7rem;
  font-weight: 650;
  line-height: 1;
}

.rank-podium__who {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.rank-podium__who img {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 16px;
  image-rendering: pixelated;
  background: rgba(0, 0, 0, 0.28);
}

.rank-podium__card--1 .rank-podium__who img {
  width: 5rem;
  height: 5rem;
}

.rank-podium__who strong,
.rank-line strong {
  display: block;
  font-family: var(--font-ui);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #f7f1e4;
}

.rank-podium__who strong { font-size: 1.15rem; }

.rank-podium__who small,
.rank-line small {
  display: block;
  margin-top: 0.15rem;
  color: var(--fog);
  font-size: 0.82rem;
}

.rank-podium__card em,
.rank-line em {
  font-style: normal;
  font-family: var(--font-ui);
  color: var(--gold-2);
  white-space: nowrap;
}

.rank-board {
  border-radius: 22px;
  background: var(--panel-2);
  border: 1px solid rgba(230, 217, 195, 0.08);
  overflow: hidden;
}

.rank-board__head,
.rank-line {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem 1rem;
}

.rank-board__head {
  color: var(--fog);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rank-line { border-top: 1px solid rgba(230, 217, 195, 0.06); }

.rank-line b {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 650;
  color: #cdd6f4;
}

.rank-line__who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.rank-line__who img {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 10px;
  image-rendering: pixelated;
  background: rgba(0, 0, 0, 0.28);
}

.rank-line__who div,
.rank-podium__who div { min-width: 0; }

.rank-line strong,
.rank-podium__who strong,
.rank-line small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.rank-pages button,
.rank-pages span {
  min-width: 2.3rem;
  height: 2.3rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--parchment);
  background: var(--panel);
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.rank-pages span {
  display: grid;
  place-items: center;
  min-width: 1.6rem;
  padding: 0;
  background: transparent;
  color: var(--fog);
}

.rank-pages button.is-on {
  background: var(--gold-2);
  color: var(--ink);
}

.rank-pages button:disabled { opacity: 0.38; }

@media (max-width: 720px) {
  .rank-podium { grid-template-columns: 1fr; }
  .rank-podium__card--1 { order: -1; }
  .rank-board__head span:last-child,
  .rank-line em { font-size: 0.92rem; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.journal__hero {
  padding: 7.4rem 0 5rem;
  border-radius: 0 0 56px 56px;
  background:
    linear-gradient(90deg, rgba(6, 8, 10, 0.9) 0%, rgba(6, 8, 10, 0.55) 34%, rgba(6, 8, 10, 0.12) 68%, rgba(6, 8, 10, 0.28) 100%),
    linear-gradient(180deg, rgba(6, 8, 10, 0.28) 0%, transparent 24%, transparent 72%, rgba(6, 8, 10, 0.45) 100%),
    url("../assets/hero.jpg") center 46% / cover;
}

.journal__crumb {
  margin: 0 0 1.35rem;
  color: #c9c2b6;
  font-size: 0.84rem;
}

.journal__crumb a { color: #ddd6c8; }
.journal__crumb a:hover { color: #fff; }
.journal__crumb span { margin: 0 0.4rem; color: #9a9388; }

.journal__kicker {
  margin: 0 0 0.55rem;
  color: #e2c56a;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.journal__hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 8.4vw, 6.6rem);
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: #f4efe4;
}

.journal__hero .container > p:last-child {
  max-width: 36rem;
  margin: 1.15rem 0 0;
  color: #e4dccb;
  font-size: 1.05rem;
}

.journal__body { padding: 1.6rem 0 4.5rem; }

.journal__bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}

.journal__filters {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: none;
  padding: 0.28rem;
  border-radius: 999px;
  background: #221f1a;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.journal__filters button {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.48rem 0.85rem;
  color: #f3ead8;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1;
}

.journal__filters button span {
  margin: 0;
  color: rgba(243, 234, 216, 0.62);
  font-weight: 650;
}

.journal__filters button.is-on {
  background: #f0d78c;
  color: #1a1408;
}

.journal__filters button.is-on span { color: #1a1408; }

.journal__search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
  height: 3rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: #221f1a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #9a917f;
}

.journal__search svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.journal__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #f7f1e4;
  padding: 0;
  font: inherit;
  font-size: 0.98rem;
  outline: none;
}

.journal__search input::placeholder { color: #9a917f; }

@media (max-width: 800px) {
  .journal__bar { flex-direction: column; align-items: stretch; }
  .journal__filters { overflow-x: auto; }
  .journal__search { width: 100%; }
}

.journal-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 2.2rem;
}

.journal-feature img,
.journal-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
}

.journal-feature h3,
.journal-card h3 {
  margin: 0.55rem 0 0.4rem;
  font-family: var(--font-display);
  color: #f7f1e4;
  letter-spacing: 0.02em;
}

.journal-feature h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; }

.journal-feature p,
.journal-card p { margin: 0; color: var(--parchment-dim); }

.journal-feature > div > p,
.journal-card > div > p:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
  color: var(--fog);
  font-size: 0.78rem;
}

.journal-badge {
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journal-badge--patch { background: #cba6f7; }
.journal-badge--staff { background: #a6e3a1; }
.journal-badge--store { background: #f0d78c; }

.journal__body h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #f7f1e4;
}

.journal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.journal-card h3 { font-size: 1.15rem; line-height: 1.2; }

.journal-card > div > p:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.journal-empty { margin: 0; color: var(--fog); }

@media (max-width: 900px) {
  .journal-feature,
  .journal__grid { grid-template-columns: 1fr; }
  .journal__hero { border-radius: 0 0 28px 28px; padding: 6.4rem 0 3.4rem; }
  .journal__hero h1 { font-size: clamp(3.1rem, 14vw, 4.4rem); }
}

.head-pref { position: relative; }

.head-pref__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2rem;
  padding: 0 0.55rem 0 0.45rem;
  border-radius: 10px;
  background: rgba(20, 32, 25, 0.72);
  border: 1px solid rgba(230, 217, 195, 0.16);
  color: var(--parchment);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.head-pref__btn .flag { width: 16px; height: 11px; border-radius: 2px; }
.head-pref__btn svg { width: 10px; height: 10px; }

.head-pref__menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 13.5rem;
  padding: 0.4rem;
  border-radius: 16px;
  background: var(--menu-bg);
  border: 1px solid rgba(230, 217, 195, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  z-index: 70;
}

.head-pref.is-open .head-pref__menu { display: flex; flex-direction: column; gap: 0.15rem; }

.head-pref__menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 2.2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  color: var(--parchment);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  text-align: left;
}

.head-pref__menu button svg { width: 1.05rem; height: 1.05rem; flex: none; }

.head-pref__menu button:hover,
.head-pref__menu button.is-active {
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-2);
}

.head-pref__label {
  margin: 0.35rem 0.55rem 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(230, 217, 195, 0.12);
  color: var(--fog);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html[data-theme="light"] {
  --ink: #f3eee4;
  --forest: #fffaf3;
  --moss: #efe4d0;
  --parchment: #241e16;
  --parchment-dim: #5c5348;
  --fog: #6a6156;
  --gold-2: #8a6414;
  --header-bg: rgba(243, 238, 228, 0.94);
  --menu-bg: #fffaf3;
  --panel: #fffaf3;
  --panel-2: #f6f0e4;
  --footer: #efe6d6;
  color-scheme: light;
}

html[data-theme="light"] .head-pref__btn {
  background: rgba(255, 250, 243, 0.88);
  border-color: rgba(36, 30, 22, 0.12);
}

html[data-theme="light"] .site-header {
  background: var(--header-bg);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
}

html[data-theme="light"] .stage__kicker,
html[data-theme="light"] .stage h1,
html[data-theme="light"] .stage__line,
html[data-theme="light"] .journal__hero,
html[data-theme="light"] .journal__hero h1,
html[data-theme="light"] .journal__hero p,
html[data-theme="light"] .btn--ghost {
  color: #f4efe6;
}

html[data-theme="light"] .stage__lead { color: #e6d9c3; }

html[data-theme="light"] .head-cart:hover,
html[data-theme="light"] .head-account:hover { color: #5c4310; }


html[data-theme="light"] .beat h2,
html[data-theme="light"] .arrive h2,
html[data-theme="light"] .ranks h1,
html[data-theme="light"] .rank-line strong,
html[data-theme="light"] .rank-podium__who strong {
  color: #241e16;
}

html[data-theme="light"] .paths,
html[data-theme="light"] .paths__head p,
html[data-theme="light"] .paths article p,
html[data-theme="light"] .gate,
html[data-theme="light"] .gate p {
  color: #e6d9c3;
}

html[data-theme="light"] .paths h2,
html[data-theme="light"] .paths h3,
html[data-theme="light"] .gate h2 {
  color: #f7f1e4;
}

html[data-theme="light"] .home-news {
  background: #fffaf3;
  color: #241e16;
}

html[data-theme="light"] .home-news h2,
html[data-theme="light"] .home-news .chronicle__item h3 {
  color: #241e16;
}

html[data-theme="light"] .home-news .chronicle__item p { color: #5c5348; }

.shop-hero {
  position: relative;
  padding: 6.4rem 0 4.4rem;
  border-radius: 0 0 46px 46px;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(11, 16, 14, 0.9) 0%, rgba(11, 16, 14, 0.62) 42%, rgba(11, 16, 14, 0.18) 100%),
    url("../assets/hero.jpg") center 46% / cover no-repeat;
}

.shop-hero .container { width: min(1320px, calc(100% - 2rem)); }

.shop-hero__crumb {
  margin: 0 0 1.1rem;
  color: rgba(244, 239, 230, 0.72);
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.shop-hero__crumb a:hover { color: #fff6d0; }
.shop-hero__crumb span { margin: 0 0.35rem; }

.shop-hero__kicker {
  margin: 0 0 0.35rem;
  color: #f0d78c;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.shop-hero h1 {
  margin: 0;
  color: #f7f1e4;
  font-family: var(--font-ui);
  font-weight: 650;
  font-size: clamp(3rem, 7vw, 4.8rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.shop-hero__lead {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  color: rgba(244, 239, 230, 0.86);
  font-size: 1.02rem;
}

.shop-buyer {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding: 0.28rem 0.35rem 0.28rem 0.4rem;
  border-radius: 999px;
  background: rgba(11, 16, 14, 0.55);
  border: 1px solid rgba(244, 239, 230, 0.16);
  color: #f4efe6;
}

.shop-buyer img {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  image-rendering: pixelated;
  background: rgba(0, 0, 0, 0.35);
}

.shop-buyer img[hidden],
.shop-buyer__field[hidden] { display: none; }

.shop-buyer span { color: rgba(244, 239, 230, 0.72); font-size: 0.92rem; }
.shop-buyer strong { font-weight: 650; }

.shop-buyer__field input {
  width: 9.5rem;
  padding: 0.15rem 0.2rem;
  border: 0;
  background: transparent;
  color: #f7f1e4;
  font: inherit;
}

.shop-buyer__field input:focus { outline: none; }

.shop-buyer button {
  margin-left: 0.2rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  color: #f0d78c;
  font-family: var(--font-ui);
}

.shop-buyer button:hover { background: rgba(240, 215, 140, 0.12); }

.shop-steps {
  position: relative;
  z-index: 2;
  margin-top: -1.55rem;
  margin-bottom: 2.6rem;
}

.shop-steps ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--fog);
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.shop-steps li span {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(230, 217, 195, 0.16);
  color: var(--parchment);
  font-size: 0.75rem;
  font-weight: 650;
}

.shop-steps li + li::before {
  content: "";
  width: 4.2rem;
  height: 2px;
  margin: 0 0.75rem;
  border-radius: 999px;
  background: rgba(230, 217, 195, 0.22);
}

.shop-steps li.is-done { color: #a6e3a1; }
.shop-steps li.is-done span {
  background: #a6e3a1;
  color: transparent;
  font-size: 0;
}
.shop-steps li.is-done span::before {
  content: "✓";
  color: #142019;
  font-size: 0.78rem;
}
.shop-steps li.is-done + li::before { background: #a6e3a1; }

.shop-steps li.is-on { color: var(--gold-2); }
.shop-steps li.is-on span {
  background: var(--gold-2);
  color: var(--ink);
}

html[data-theme="light"] .shop-hero h1,
html[data-theme="light"] .shop-hero__lead,
html[data-theme="light"] .shop-hero__crumb,
html[data-theme="light"] .shop-hero__crumb a,
html[data-theme="light"] .shop-buyer,
html[data-theme="light"] .shop-buyer strong {
  color: #f4efe6;
}

html[data-theme="light"] .shop-hero__kicker,
html[data-theme="light"] .shop-buyer button { color: #f0d78c; }

@media (max-width: 720px) {
  .shop-hero { border-radius: 0 0 28px 28px; padding-bottom: 3.4rem; }
  .shop-steps li + li::before { width: 1.2rem; margin: 0 0.4rem; }
  .shop-steps li { font-size: 0.82rem; }
}

.sale {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
  width: min(1120px, calc(100% - 2rem));
}

.sale__index {
  position: sticky;
  top: 5.4rem;
  max-height: calc(100vh - 6.4rem);
  overflow: auto;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.sale__index p {
  margin: 0 0 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.sale__index ol { margin: 0; padding: 0; list-style: none; }

.sale__index a {
  display: flex;
  gap: 0.55rem;
  padding: 0.36rem 0.15rem;
  color: var(--parchment-dim);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.3;
}

.sale__index a b {
  flex: 0 0 1.6rem;
  color: var(--gold);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sale__index a:hover { color: var(--gold-2); }

.sale__doc .meta {
  margin: 0 0 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.sale__doc article {
  scroll-margin-top: 5.8rem;
  padding: 1.3rem 0 0.35rem;
  border-top: 1px solid var(--line);
}

.sale__num {
  margin: 0 0 0.2rem;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.sale__doc h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--gold-2);
}

.sale__doc p,
.sale__doc li {
  color: var(--parchment-dim);
  font-size: 1rem;
  line-height: 1.65;
}

.sale__doc p { margin: 0 0 0.8rem; }
.sale__doc ul,
.sale__doc ol { margin: 0 0 0.9rem; padding-left: 1.2rem; }
.sale__doc li { margin: 0.28rem 0; }
.sale__doc a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 860px) {
  .sale { grid-template-columns: 1fr; }
  .sale__index { position: static; max-height: none; }
}

html[data-theme="light"] .page-hero h1 { color: #f0d78c; }
html[data-theme="light"] .page-hero p { color: #e6d9c3; }

.head-online {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  margin: 0;
  padding: 0.42rem 0.95rem 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(16, 12, 24, 0.72);
  color: #f3ead8;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.head-online[hidden] { display: none; }

.head-online__dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.16);
  flex: none;
  animation: livePulse 2.2s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.head-online [data-online-count] {
  color: #fff;
  font-weight: 650;
}

@media (max-width: 720px) {
  .site-header__inner { padding-left: 0.55rem; padding-right: 0.5rem; }
  .head-left { gap: 0.4rem; }
  .header-actions { gap: 0.15rem; }
  .head-pref__btn { padding: 0 0.35rem 0 0.3rem; gap: 0.28rem; }
  .head-online {
    gap: 0.32rem;
    padding: 0.32rem 0.45rem 0.32rem 0.42rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 380px) {
  .head-online [data-online-label] { display: none; }
}

/* Tema chiaro: i pannelli scuri tengono il testo chiaro */
html[data-theme="light"] .store-top,
html[data-theme="light"] .store-goal,
html[data-theme="light"] .store-cat,
html[data-theme="light"] .pkg-card,
html[data-theme="light"] .rank-card,
html[data-theme="light"] .kit-preview,
html[data-theme="light"] .vip-faq,
html[data-theme="light"] .vip-head,
html[data-theme="light"] .vip-cell,
html[data-theme="light"] .vip-gap,
html[data-theme="light"] .soft__card,
html[data-theme="light"] .cart__panel {
  --parchment: #e6d9c3;
  --parchment-dim: #cbb89a;
  --fog: #9aab9c;
  --gold-2: #f0d78c;
  --ink: #0b100e;
  color: #e6d9c3;
}

html[data-theme="light"] .vip-cell,
html[data-theme="light"] .vip-gap {
  background: rgba(16, 24, 19, 0.94);
}

html[data-theme="light"] .vip-cell.is-feature,
html[data-theme="light"] .vip-gap.is-feature {
  background: rgba(42, 36, 22, 0.96);
}

html[data-theme="light"] .shop-steps li span {
  background: rgba(36, 30, 22, 0.08);
  color: #241e16;
}

html[data-theme="light"] .shop-steps li + li::before {
  background: rgba(36, 30, 22, 0.18);
}

html[data-theme="light"] .shop-steps li.is-on span {
  background: #8a6414;
  color: #fffaf3;
}

html[data-theme="light"] .shop-steps li.is-done { color: #2f7d4a; }

html[data-theme="light"] .shop-steps li.is-done span { background: #2f7d4a; }

html[data-theme="light"] .shop-steps li.is-done span::before { color: #fffaf3; }

html[data-theme="light"] .shop-steps li.is-done + li::before { background: #2f7d4a; }

html[data-theme="light"] .soft h1,
html[data-theme="light"] .ideas h2,
html[data-theme="light"] .idea h3,
html[data-theme="light"] .journal-feature h3,
html[data-theme="light"] .journal-card h3,
html[data-theme="light"] .journal__body h2,
html[data-theme="light"] .rank-row strong,
html[data-theme="light"] .vip-corner h3 {
  color: #241e16;
}

html[data-theme="light"] .idea {
  background: #fffaf3;
  border-color: rgba(36, 30, 22, 0.1);
}

html[data-theme="light"] .page-hero {
  background:
    linear-gradient(180deg, rgba(11, 16, 14, 0.78), rgba(11, 16, 14, 0.62)),
    url("../assets/about.jpg") center 60% / cover;
}

.apply-hero {
  padding: 7.4rem 0 4.8rem;
  border-radius: 0 0 56px 56px;
  background:
    linear-gradient(100deg, rgba(8, 12, 10, 0.9) 0%, rgba(8, 12, 10, 0.55) 42%, rgba(8, 12, 10, 0.22) 100%),
    url("../assets/hero.jpg") center 40% / cover no-repeat;
}

.apply-hero__crumb {
  margin: 0 0 1rem;
  color: rgba(244, 239, 230, 0.72);
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.apply-hero__crumb a:hover { color: #fff6d0; }
.apply-hero__crumb span { margin: 0 0.35rem; }

.apply-hero__kicker {
  margin: 0 0 0.4rem;
  color: #e2c56a;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.apply-hero h1 {
  margin: 0;
  color: #f7f1e4;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

.apply-hero__lead {
  margin: 0.9rem 0 0;
  max-width: 28rem;
  color: rgba(244, 239, 230, 0.86);
  font-size: 1.05rem;
}

.apply-roles {
  background: #0c1210;
  padding: 4.8rem 0 5rem;
}

.apply-role {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 3.2rem;
  align-items: center;
  width: min(1080px, calc(100% - 2.4rem));
  margin: 0 auto 4.8rem;
}

.apply-role img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.apply-role__index {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: #e2c56a;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.apply-role__index span {
  display: grid;
  place-items: center;
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.35rem;
  border-radius: 8px;
  background: #f0d78c;
  color: #1a1408;
  letter-spacing: 0;
}

.apply-role h2 {
  margin: 0.55rem 0 0.75rem;
  color: #f7f1e4;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.apply-role p {
  margin: 0;
  color: #cbb89a;
  font-size: 1.02rem;
  line-height: 1.55;
}

.apply-role__back {
  margin-top: 0.85rem;
  color: #e6d9c3;
}

.apply-role__req {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 16px;
  background: #16201b;
  border: 1px solid rgba(240, 215, 140, 0.14);
}

.apply-role__req p {
  margin: 0 0 0.55rem;
  color: #e2c56a;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.apply-role__req ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.apply-role__req li {
  position: relative;
  margin: 0.38rem 0;
  padding-left: 1rem;
  color: #e6d9c3;
  font-size: 0.95rem;
}

.apply-role__req li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #f0d78c;
}

.apply-role__go {
  display: inline-flex;
  margin-top: 1.15rem;
  color: #f0d78c;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.apply-role__go:hover { color: #fff6d0; }

.apply-note {
  width: min(1080px, calc(100% - 2.4rem));
  margin: -2rem auto 2.4rem;
  color: #9aab9c;
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.apply-form {
  width: min(640px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 1.5rem 1.4rem 1.4rem;
  border-radius: 22px;
  background: #16201b;
  border: 1px solid rgba(240, 215, 140, 0.16);
  scroll-margin-top: 5.5rem;
}

.apply-form h2 {
  margin: 0 0 0.4rem;
  color: #f7f1e4;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
}

#apply-status {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: #9aab9c;
}

html[data-theme="light"] .apply-roles,
html[data-theme="light"] .apply-form {
  --parchment: #e6d9c3;
  --parchment-dim: #cbb89a;
  --fog: #9aab9c;
  --gold: #d4af37;
  --gold-2: #f0d78c;
  --ink: #0b100e;
  color: #e6d9c3;
}

@media (max-width: 860px) {
  .apply-hero { border-radius: 0 0 28px 28px; }
  .apply-role { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* Capitoli in stile vetrina: titolo a due toni, lista, fascia oggetti */
.tale,
.jobs,
.rail {
  background: #0e1411;
  color: #f6efe4;
}

.tale { padding: 5.5rem 0 4.5rem; }
.jobs, .rail { padding: 1rem 0 4.5rem; }

.tale__num {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.tale h2,
.jobs h2,
.arrive h2,
.home-news h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #f6efe4;
}

.tale h2 span,
.jobs h2 span,
.arrive h2 span,
.home-news h2 span {
  display: block;
  color: var(--gold-2);
}

.tale__lead {
  margin: 0 0 0.7rem;
  font-weight: 650;
  font-size: 1.05rem;
  color: #f6efe4;
}

.tale__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.tale__list {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.4rem;
}

.tale__list button {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(246, 239, 228, 0.62);
}

.tale__list button span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold-2);
}

.tale__list button.is-on {
  color: #f6efe4;
  background: #1a2420;
  box-shadow: inset 0 -2px 0 var(--gold-2);
}

.tale__art {
  position: relative;
  min-height: 22rem;
  margin: 0;
}

.tale__ghost {
  position: absolute;
  right: 0;
  top: 8%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.2rem, 9vw, 7.4rem);
  letter-spacing: -0.05em;
  line-height: 0.8;
  text-transform: uppercase;
  color: rgba(240, 215, 140, 0.09);
  pointer-events: none;
}

.tale__art img {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  margin-left: auto;
  border-radius: 28px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.jobs__head { max-width: 40rem; margin-bottom: 1.6rem; }

.jobs__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.jobs__grid article {
  min-height: 12rem;
  padding: 1.1rem 1rem 1.15rem;
  border-radius: 22px;
  background: #18241c;
  border: 1px solid rgba(230, 217, 195, 0.08);
}

.jobs__grid article span {
  display: block;
  margin-bottom: 1.4rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-2);
}

.jobs__grid h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.jobs__grid p { margin: 0; color: var(--parchment-dim); }

.rail__track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.15rem 0.15rem 0.2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rail__track::-webkit-scrollbar {
  display: none;
  height: 0;
}

.rail__bar {
  position: relative;
  height: 5px;
  margin: 0.95rem auto 0;
  width: min(100%, 36rem);
  background: #243028;
  border-radius: 999px;
  cursor: pointer;
  touch-action: none;
}

.rail__bar[hidden] { display: none; }

.rail__bar span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 2.4rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #a6843a, #f0d78c 70%, #fff6d0);
}

.rail__track figure {
  flex: 0 0 9.5rem;
  margin: 0;
  scroll-snap-align: start;
  text-align: center;
}

.rail__track img {
  width: 9.5rem;
  height: 11rem;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 30%, rgba(240, 215, 140, 0.16), transparent 62%),
    #18241c;
  border-radius: 22px;
  border: 1px solid rgba(230, 217, 195, 0.08);
}

.rail__track figcaption {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--parchment-dim);
}

.home-news {
  background: #0e1411;
  color: #f6efe4;
}

.home-news h2 { color: #f6efe4; }

.arrive h2 { color: #f6efe4; }

body.home .site-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

body.home .site-header:not(.is-scrolled) .nav a,
body.home .site-header:not(.is-scrolled) .nav-drop__btn,
body.home .site-header:not(.is-scrolled) .brand {
  color: #f6efe4;
}

body.home .site-header:not(.is-scrolled) .nav a.nav-shop {
  background: #f0d78c;
  color: #1a1408;
}

body.home .site-header:not(.is-scrolled) .head-account {
  background: #f3ead8;
  color: #1a1408;
}

@media (max-width: 900px) {
  .tale__grid,
  .jobs__grid { grid-template-columns: 1fr; }
  .tale__ghost { display: none; }
  .tale__art img { margin-left: 0; }
}

html[data-theme="light"] .tale,
html[data-theme="light"] .jobs,
html[data-theme="light"] .rail,
html[data-theme="light"] .home-news,
html[data-theme="light"] .arrive,
html[data-theme="light"] .gate,
html[data-theme="light"] .staff-page {
  background: #f3eee4;
  color: #241e16;
}

html[data-theme="light"] .tale h2,
html[data-theme="light"] .jobs h2,
html[data-theme="light"] .arrive h2,
html[data-theme="light"] .home-news h2,
html[data-theme="light"] .gate h2,
html[data-theme="light"] .gate p,
html[data-theme="light"] .tale__lead,
html[data-theme="light"] .jobs__grid h3,
html[data-theme="light"] .staff-page h1,
html[data-theme="light"] .staff-person strong,
html[data-theme="light"] .home-news .chronicle__item h3 {
  color: #241e16;
}

html[data-theme="light"] .tale h2 span,
html[data-theme="light"] .jobs h2 span,
html[data-theme="light"] .arrive h2 span,
html[data-theme="light"] .home-news h2 span,
html[data-theme="light"] .tale__num,
html[data-theme="light"] .tale__list button span,
html[data-theme="light"] .jobs__grid article span,
html[data-theme="light"] .staff-role--owner { color: #8a6414; }
html[data-theme="light"] .staff-role--admin { color: #b45309; }
html[data-theme="light"] .staff-role--mod { color: #1d4f91; }
html[data-theme="light"] .staff-role--helper { color: #0f766e; }

html[data-theme="light"] .tale p,
html[data-theme="light"] .jobs__grid p,
html[data-theme="light"] .home-news .chronicle__item p,
html[data-theme="light"] .staff-duty,
html[data-theme="light"] .rail__track figcaption {
  color: #5c5348;
}

html[data-theme="light"] .tale__list button {
  color: #6a6156;
}

html[data-theme="light"] .tale__list button.is-on,
html[data-theme="light"] .arrive__steps button.is-on {
  color: #241e16;
  background: #fffaf3;
  box-shadow: inset 0 -2px 0 #8a6414;
}

html[data-theme="light"] .jobs__grid article,
html[data-theme="light"] .home-news .chronicle__item,
html[data-theme="light"] .staff-board,
html[data-theme="light"] .rules-card {
  background: #fffaf3;
  color: #241e16;
  border-color: rgba(36, 30, 22, 0.1);
}

html[data-theme="light"] .rail__track img {
  background:
    radial-gradient(circle at 50% 30%, rgba(138, 100, 20, 0.14), transparent 62%),
    #fffaf3;
  border-color: rgba(36, 30, 22, 0.08);
}

html[data-theme="light"] .rail__bar { background: #e4d8c4; }

html[data-theme="light"] .tale__ghost { color: rgba(138, 100, 20, 0.14); }

html[data-theme="light"] .chapter--forest::before { background: none; }

html[data-theme="light"] .rules-page .rules-card h2,
html[data-theme="light"] .rules-page .rule h3 { color: #8a6414; }

html[data-theme="light"] .rules-page .rule p { color: #5c5348; }

html[data-theme="light"] .rules-nav a { color: #5c5348; }

.market {
  padding: 6.2rem 0 4.5rem;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(212, 175, 55, 0.08), transparent 42%),
    var(--ink);
}

.market h1 {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 650;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  color: #f7f1e4;
}

.market__lead {
  margin: 0.7rem 0 0;
  max-width: 38rem;
  color: var(--fog);
  font-size: 1.05rem;
}

.market__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  color: #a6e3a1;
  font-size: 0.86rem;
}

.market__live i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #a6e3a1;
  box-shadow: 0 0 0 0 rgba(166, 227, 161, 0.7);
  animation: market-pulse 1.8s ease-out infinite;
}

@keyframes market-pulse {
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.market__layout {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: 1.2rem;
  margin-top: 1.6rem;
  align-items: start;
}

.market__search {
  width: 100%;
  margin: 0 0 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(240, 215, 140, 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  color: #f7f1e4;
  font: inherit;
}

.market__search:focus { outline: 2px solid rgba(240, 215, 140, 0.45); }

.market__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 38rem;
  overflow: auto;
  padding-right: 0.35rem;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: #e4c36a rgba(255, 255, 255, 0.06);
}

.market__list::-webkit-scrollbar { width: 10px; }
.market__list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
}
.market__list::-webkit-scrollbar-thumb {
  background: #e4c36a;
  border-radius: 99px;
}

.market__item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  font: inherit;
}

.market__item img {
  width: 2.4rem;
  height: 2.4rem;
  image-rendering: pixelated;
}

.market__item strong {
  display: block;
  color: #f7f1e4;
  font-weight: 650;
}

.market__item small {
  display: block;
  margin-top: 0.12rem;
  color: var(--fog);
  font-size: 0.78rem;
}

.market__item em {
  font-style: normal;
  color: var(--gold-2);
  font-family: var(--font-ui);
  white-space: nowrap;
}

.market__item.is-on,
.market__item:hover {
  border-color: rgba(240, 215, 140, 0.45);
  background: rgba(240, 215, 140, 0.08);
}

.market__chart {
  padding: 1.1rem 1.15rem 1rem;
  border: 1px solid rgba(240, 215, 140, 0.18);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.2);
}

.market__chart h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #f7f1e4;
}

.market__chart p {
  margin: 0.25rem 0 0;
  color: var(--fog);
}

.market__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  margin: 0.9rem 0 0.4rem;
}

.market__stats span {
  display: block;
  color: var(--fog);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market__stats strong {
  display: block;
  margin-top: 0.12rem;
  color: #f7f1e4;
  font-size: 1.15rem;
  font-weight: 650;
}

.market__plot {
  width: 100%;
  height: auto;
  margin-top: 0.4rem;
  overflow: visible;
}

.market__plot text { fill: rgba(244, 239, 230, 0.62); font-size: 12px; font-family: var(--font-ui); }
.market__tip {
  min-height: 1.2rem;
  margin: 0.35rem 0 0;
  color: var(--gold-2);
  font-size: 0.88rem;
}

.market__empty {
  margin: 1rem 0 0;
  color: var(--fog);
}

@media (max-width: 860px) {
  .market__layout { grid-template-columns: 1fr; }
  .market__list { max-height: 18rem; }
}

@media (prefers-reduced-motion: reduce) {
  .market__live i { animation: none; }
}

html[data-theme="light"] .market__list {
  color-scheme: light;
  scrollbar-color: #8a6a32 rgba(90, 68, 32, 0.08);
}
html[data-theme="light"] .market__list::-webkit-scrollbar-track { background: rgba(90, 68, 32, 0.08); }
html[data-theme="light"] .market__list::-webkit-scrollbar-thumb { background: #8a6a32; }
html[data-theme="light"] .market { background: #f3eee4; }
html[data-theme="light"] .market h1,
html[data-theme="light"] .market__chart h2,
html[data-theme="light"] .market__item strong,
html[data-theme="light"] .market__stats strong { color: #241e16; }
html[data-theme="light"] .market__search,
html[data-theme="light"] .market__chart,
html[data-theme="light"] .market__item { background: #fffaf3; color: #241e16; border-color: rgba(36, 30, 22, 0.1); }
html[data-theme="light"] .market__plot text { fill: #5c5348; }

