:root {
  color-scheme: dark;
  --bg: #101319;
  --panel: #171b23;
  --panel-light: #1c222c;
  --line: rgba(187,48,58,.2);
  --muted: #c4c4c4;
  --text: #f1f0ed;
  --orange: #d12a32;
  --orange-light: #ff626a;
  --green: #e4424b;
  --font-display: 'Barlow Condensed', Impact, sans-serif;
  --font-body: 'DM Sans', Arial, sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; }
button { font: inherit; color: inherit; }
a { font: inherit; color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 4px; }

.announcement { height: 40px; display: flex; align-items: center; justify-content: center; gap: 13px; background: #1c1114; color: #f06c73; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.announcement a { color: #f5dfe0; letter-spacing: .04em; }
.announcement a span { color: var(--orange); font-size: 13px; }
.announcement__spark { color: var(--orange); }
.announcement__divider { color: #ab434b; }

.site-header { height: 84px; padding: 0 max(5.2vw, calc((100vw - 1400px)/2)); display: flex; align-items: center; justify-content: space-between; position: sticky; z-index: 20; top: 0; background: rgba(16,19,25,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.site-header:not(.wiki-header) { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
.site-header:not(.wiki-header) > .brand { justify-self: start; }
.site-header:not(.wiki-header) > .main-nav { justify-self: center; }
.site-header:not(.wiki-header) > .header-actions { justify-self: end; transform: translateX(8px); }

.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand__logo { width: 64px; height: 48px; flex: 0 0 auto; object-fit: contain; object-position: center; }
.brand--footer { gap: 6px; }
.brand--footer .brand__logo { width: 46px; height: 32px; }
.brand__name { display: flex; flex-direction: column; gap: 0; color: #f6f3eb; font-family: var(--font-display); font-size: 19px; line-height: .82; font-weight: 800; letter-spacing: .08em; }
.brand__name b { display: inline; color: var(--orange); }
.brand__name small { margin-top: 6px; color: #e0747a; font-family: var(--font-body); font-size: 6px; letter-spacing: .2em; }

.main-nav { height: 100%; display: flex; align-items: center; gap: clamp(17px, 3vw, 44px); }
.main-nav__link { color: #e1dcdd; font-size: 14px; font-weight: 700; transition: color .2s; }
.main-nav__link:hover, .main-nav__link.is-active { color: white; }
.main-nav__link.is-active::after { content: ''; height: 2px; display: block; position: relative; top: 27px; background: var(--orange); }
.nav-caret { padding-left: 3px; color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.discord-button, .language-button { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #693039; background: #191d25; font-size: 13px; font-weight: 700; }
.discord-button { padding: 0 12px; color: #ffe5e6; }
.discord-glyph { color: #ff6972; width: 24px; height: 24px; object-fit: contain; mix-blend-mode: normal; vertical-align: middle; }
.language-button { padding: 0 10px; color: #d8d8df; cursor: pointer; }
.language-button span { color: #ff7078; }

.server-address { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 5px 12px; border: 1px solid #78313a; background: linear-gradient(120deg,#30171b,#181114); cursor: pointer; text-align: left; }
.server-address__dot, .status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px rgba(209,42,50,.55); }
.status-dot--pending { background: var(--orange); box-shadow: 0 0 10px rgba(172, 172, 172, .4); }
.server-address__copy { display: flex; flex-direction: column; gap: 3px; }
.server-address__copy strong { color: var(--orange-light); font-family: var(--font-display); font-size: 12px; letter-spacing: .07em; }
.server-address__copy small { color: #f1e7e8; font-size: 10px; }
.server-address__arrow { color: #ff7078; }

.menu-toggle { display: none; }
.section-kicker { color: #ed747a; font-size: 9px; font-weight: 800; letter-spacing: .2em; }

.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 0; cursor: pointer; font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: .04em; transition: transform .2s, filter .2s; }
.button:hover { transform: translateY(-2px); filter: brightness(1.12); }
.button--primary { border: 1px solid #fa4b56; background: linear-gradient(120deg,#d92b36,#8f111b); color: #fff; box-shadow: 0 5px 0 #4c0c12; }
.button--primary:hover { background: linear-gradient(120deg,#eb3742,#a71621); }
.button--outline { border: 1px solid rgba(188,54,64,.58); background: rgba(255,255,255,.035); color: #f0eee9; }
.button--outline .discord-glyph { width: 19px; height: 19px; object-fit: contain; }
.play-icon { color: var(--orange); font-size: 11px; }

/* ==========================================================
   ESTRUCTURA PARA LA NUEVA IMAGEN (REEMPLAZO DEL ARTE ARREGLADO)
   ========================================================== */
.hero-art-container {
  position: absolute;
  right: 8%;
  bottom: 0;
  width: min(500px, 42vw);
  height: 85%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.hero-art-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65));
}

/* ========================================================== */

.section-wrap { width: min(1360px, 90%); margin-inline: auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.section-heading h2 { margin: 8px 0 0; font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: .015em; line-height: 1; }
.section-heading h2 span { color: #e64b54; }

.text-link { padding-bottom: 5px; color: #ff777e; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .1em; border-bottom: 1px solid #683039; }
.text-link span { margin-left: 12px; color: var(--orange); }
.button--small { min-height: 34px; padding: 0 11px; box-shadow: 0 3px 0 #484848; font-size: 11px; }

.catalog-heading { display: flex; align-items: end; justify-content: space-between; margin: 28px 0 13px; }
.catalog-heading h3 { margin: 5px 0 0; font-family: var(--font-display); font-size: 24px; }
.catalog-heading .section-kicker { font-size: 7px; }

.cosmetic-mask { width: 63px; height: 63px; display: grid; place-items: center; border: 5px solid #d15b63; border-radius: 47% 47% 43% 43%; background: #402025; color: #fff; font-size: 27px; box-shadow: 0 0 28px #d65a5a55; }
.pack-cube { width: 66px; height: 66px; display: grid; place-items: center; background: linear-gradient(145deg,#c7434b,#63232a); color: #ffe1e2; font-size: 40px; box-shadow: 8px 8px 0 #3d171d,-6px 7px 0 #512027; transform: rotate(5deg); }

/* ANIMACIONES Y TRANSICIONES */
.has-motion [data-motion="reveal"] { opacity: 0; transform: translateY(18px); transition: opacity .65s ease,transform .65s cubic-bezier(.2,.75,.25,1); }
.has-motion [data-motion="reveal"].is-in-view { opacity: 1; transform: translateY(0); }
.has-motion main > section[data-motion="reveal"], .has-motion main section section[data-motion="reveal"] { transform: translateY(26px) scale(.99); transition-duration: .8s; }
.has-motion main > section[data-motion="reveal"].is-in-view, .has-motion main section section[data-motion="reveal"].is-in-view { transform: translateY(0) scale(1); }
.has-motion .product-card:nth-child(3n + 2), .has-motion .mode-card:nth-child(3n + 2) { transition-delay: .08s; }
.has-motion .product-card:nth-child(3n), .has-motion .mode-card:nth-child(3n) { transition-delay: .15s; }

.product-card, .mode-card, .wiki-platform-grid section { transition: transform .24s ease,border-color .24s ease,box-shadow .24s ease; }
.product-card:hover, .mode-card:hover { transform: translateY(-5px); border-color: #8e3640; box-shadow: 0 16px 34px #0005; }

.page-transition { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 42%,#34171d 0,#171116 43%,#0d0e12 100%); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .42s ease,visibility .42s; }
.page-transition::before { position: absolute; inset: 0; background: repeating-linear-gradient(135deg,transparent 0 46px,#ee49500b 47px 48px,transparent 49px 92px); content: ''; }
.page-transition.is-visible { opacity: 1; visibility: visible; }
.page-transition.is-leaving { pointer-events: all; }
.page-transition.is-hiding { opacity: 0; }
.page-transition__content { display: grid; justify-items: center; gap: 18px; position: relative; padding: 28px; animation: transition-arrive .65s cubic-bezier(.2,.75,.25,1) both; }
.page-transition__content img { width: min(310px,72vw); max-height: 190px; object-fit: contain; mix-blend-mode: screen; filter: drop-shadow(0 0 26px #e5334050); animation: transition-pulse 1.8s ease-in-out infinite alternate; }
.page-transition__label { color: #f08a90; font-size: 10px; font-weight: 800; letter-spacing: .24em; text-align: center; }
.page-transition__loader { width: 110px; height: 3px; overflow: hidden; position: relative; border-radius: 4px; background: #54252c; }
.page-transition__loader::after { width: 42%; height: 100%; position: absolute; border-radius: inherit; background: #ef4651; box-shadow: 0 0 12px #ef465188; content: ''; animation: transition-progress 1.2s ease-in-out infinite; }

body.page-transitioning { overflow: hidden; }
body * { font-weight: 400 !important; }
.status-dot, .server-address__dot { animation: status-glow 2.8s ease-in-out infinite; }
.button, .discord-button, .language-button, .server-address, .category-chip, .cart-button, .sidebar-menu button { transition: transform .2s ease,filter .2s ease,border-color .2s ease,background-color .2s ease; }
.button:active, .discord-button:active, .server-address:active { transform: translateY(1px) scale(.985); }
.hero__glow--one { animation: ambient-breathe 7s ease-in-out infinite alternate; }
.hero__glow--two { animation: ambient-breathe 9s ease-in-out -3s infinite alternate-reverse; }
.hero-art__stars { animation: star-shimmer 4s ease-in-out infinite alternate; }
.toast.is-visible { animation: toast-pop .26s cubic-bezier(.16,1,.3,1) both; }

@keyframes status-glow { 0%,100% { box-shadow: 0 0 5px #d12a3260; } 50% { box-shadow: 0 0 13px #ed465580; } }
@keyframes ambient-breathe { from { opacity: .07; transform: scale(.94); } to { opacity: .2; transform: scale(1.08); } }
@keyframes star-shimmer { from { opacity: .45; } to { opacity: 1; } }
@keyframes toast-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes transition-arrive { from { opacity: 0; transform: translateY(13px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes transition-pulse { from { transform: scale(.97); filter: drop-shadow(0 0 16px #e5334030); } to { transform: scale(1.03); filter: drop-shadow(0 0 30px #e5334070); } }
@keyframes transition-progress { 0% { left: -45%; } 100% { left: 110%; } }

/* MEDIA QUERIES (ADAPTACIÓN MÓVIL Y RESPONSIVA) */
@media (max-width: 1050px) {
  .site-header { padding-inline: 4%; }
  .main-nav { gap: 18px; }
  .header-actions { gap: 6px; }
  .discord-button { padding-inline: 8px; }
  .discord-button > span:last-child { display: none; }
  .section-wrap { width: 90%; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .announcement { height: 30px; gap: 7px; font-size: 7px; }
  .site-header { height: 65px; padding-inline: 5%; }
  .site-header:not(.wiki-header) { display: flex; }
  .site-header:not(.wiki-header) > .header-actions { transform: none; }
  .brand__logo { width: 52px; height: 38px; }
  .brand__name { font-size: 16px; }
  .brand__name small { font-size: 5px; }
  .menu-toggle { width: 34px; height: 34px; display: flex; flex-direction: column; justify-content: center; gap: 5px; order: 3; padding: 7px; border: 1px solid #3c3e44; background: #191c22; cursor: pointer; }
  .menu-toggle span { height: 1px; background: #d5d5d5; }
  .main-nav { height: auto; display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 5% 13px; border-bottom: 1px solid #393b41; background: #15181e; }
  .main-nav.is-open { display: flex; }
  .main-nav__link { padding: 13px 7px; border-bottom: 1px solid #2b2d33; }
  .main-nav__link.is-active::after { display: none; }
  .header-actions { margin-left: auto; margin-right: 10px; }
  .discord-button, .language-button { display: none; }
  .server-address { min-height: 34px; padding: 3px 7px; }
  .server-address__copy strong { font-size: 10px; }
  .server-address__copy small { font-size: 7px; }

  /* Reposicionamiento responsivo de la imagen para pantallas pequeñas */
  .hero-art-container {
    position: relative;
    right: auto;
    width: 100%;
    height: 280px;
    margin-top: 20px;
  }

  .section-wrap { width: 90%; }
  .section-heading { align-items: start; gap: 12px; }
  .section-heading h2 { max-width: 440px; font-size: 30px; line-height: .97; }
  .section-heading .text-link { flex: 0 0 auto; margin-top: 15px; font-size: 9px; }
}

@media (max-width: 430px) {
  .announcement { letter-spacing: .08em; }
  .announcement__spark { display: none; }
  .brand { gap: 6px; }
  .brand__logo { width: 46px; height: 34px; }
  .brand__name { font-size: 14px; }
  .header-actions { margin-right: 7px; }
  .server-address__arrow { display: none; }
  .server-address__dot { width: 6px; height: 6px; }
  .button { min-height: 42px; gap: 9px; padding: 0 11px; font-size: 12px; }
  .section-heading { flex-direction: column; gap: 10px; }
  .section-heading .text-link { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .has-motion [data-motion="reveal"] { opacity: 1; transform: none; }
  .page-transition { display: none; }
}
