/* MU3 NEXT GEN / AAA R1 — visual layer. Core PHP, shop and admin stay untouched. */
:root {
  --max: 1320px;
  --aaa-ink: #080a10;
  --aaa-surface: #121720;
  --aaa-line: rgba(180, 191, 214, .16);
  --aaa-ruby: #fb4055;
  --aaa-blue: #118bff;
  --aaa-muted: #a5afc2;
}
html { scroll-padding-top: 88px; }
body {
  width: 100%;
  overflow-x: hidden;
  color: #f4f5fa;
  background-color: #080b12;
  background-image:
    radial-gradient(ellipse at 10% 8%, rgba(105, 24, 47, .12), transparent 38%),
    linear-gradient(180deg, rgba(5, 7, 11, .76), rgba(5, 8, 12, .88)),
    url('../img/sfondo-sito.jpg');
  background-position: center top, center, center top;
  background-size: auto, auto, cover;
  background-attachment: fixed;
  font-size: 14px;
}
::selection { color: white; background: #b82543; }
:focus-visible { outline: 2px solid #61b6ff; outline-offset: 3px; }
.shell { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.sr-only {
  position: absolute!important; width: 1px!important; height: 1px!important;
  padding: 0!important; margin: -1px!important; overflow: hidden!important;
  clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important;
}
.top-rule {
  height: 3px;
  background: linear-gradient(90deg, transparent, #50131e 15%, #e83950 48%, #5c1629 80%, transparent);
  box-shadow: 0 0 20px rgba(249, 63, 84, .36);
}
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; width: 0; height: 2px; z-index: 100;
  background: linear-gradient(90deg, #ff5b67, #7dc8ff);
  box-shadow: 0 0 14px #ff526e;
  pointer-events: none;
}
.site-header {
  background: rgba(7, 9, 16, .94);
  border-bottom: 1px solid rgba(179, 186, 205, .15);
  box-shadow: 0 12px 45px #03040855;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.nav-row {
  height: 78px;
  min-height: 78px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: clamp(16px, 2.5vw, 44px);
}
.site-header .brand {
  margin: 0; gap: 12px; color: #f6f7fc;
  font-size: clamp(19px, 1.55vw, 24px);
  font-weight: 900; letter-spacing: .8px;
  text-shadow: 0 0 24px rgba(255, 255, 255, .06);
}
.site-header .mu3-helmet-mark {
  width: 44px; height: 44px; border-radius: 9px;
  box-shadow: 0 0 0 1px #4b2830, 0 6px 22px rgba(230, 24, 59, .18);
  filter: drop-shadow(0 0 12px rgba(224, 32, 60, .3));
}
.main-nav {
  min-width: 0; display: flex; align-items: center; justify-content: center;
  flex-wrap: nowrap; gap: clamp(13px, 2.05vw, 36px); margin: 0;
}
.main-nav a, .nav-shop, .nav-cart {
  position: relative; flex: 0 0 auto; color: #a6adbf;
  font: 800 12px/1.4 'Plus Jakarta Sans', sans-serif;
  letter-spacing: .85px; text-transform: uppercase; white-space: nowrap;
  transition: color .25s, text-shadow .25s;
}
.main-nav a::after, .nav-shop::after {
  content: ''; position: absolute; height: 2px; left: 0; right: 0; bottom: -11px;
  background: linear-gradient(90deg, transparent, #ff4158, transparent);
  transform: scaleX(0); transform-origin: center;
  transition: transform .28s ease;
}
.main-nav a:hover, .main-nav a.selected, .nav-shop:hover,
.nav-shop.selected, .nav-cart:hover, .nav-cart.selected {
  color: #fff; text-shadow: 0 0 15px rgba(255, 89, 109, .45);
}
.main-nav a:hover::after, .main-nav a.selected::after,
.nav-shop:hover::after, .nav-shop.selected::after { transform: scaleX(1); }
.main-nav a.selected { border-bottom: 0; padding: 0; }
.main-nav .mobile-nav-extra { display: none; }
.nav-user { gap: 10px; margin: 0; flex-wrap: nowrap; align-items: center; }
.nav-cart { display: inline-flex; align-items: center; gap: 7px; }
.nav-cart b {
  display: inline-grid; place-items: center; min-width: 19px; width: 19px; height: 19px;
  border-radius: 50%; background: #972638; color: #fff; font-size: 10px;
  box-shadow: 0 0 15px rgba(228, 41, 71, .2);
}
.nav-user .btn { padding: 9px 13px; font-size: 12px; letter-spacing: .25px; border-radius: 4px; }
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn:hover { transform: translateY(-2px); }
.btn-fire { box-shadow: 0 5px 18px rgba(202, 30, 52, .28); }
.btn-fire:hover { box-shadow: 0 8px 24px rgba(255, 58, 91, .4); }
.nav-user .btn-fire { background: linear-gradient(135deg, #ff4459, #ad1e35); }
.mu3-language-picker {
  background: rgba(16, 20, 30, .9); border-color: #3a3b4a;
  box-shadow: inset 0 1px #ffffff0e;
}
.mu3-language-picker a.active { background: linear-gradient(135deg, #fa465b, #b51f37); }
.mobile-toggle { border: 1px solid #3a3e4e; border-radius: 5px; padding: 9px; }
.mobile-toggle span { display: block; width: 21px; height: 2px; margin: 4px 0; background: #fff; }

/* Hero: screenshot reference geometry, with a cinematic premium finish. */
.hero {
  min-height: 450px;
  background:
    radial-gradient(ellipse at 69% 57%, rgba(148, 21, 45, .11), transparent 43%),
    linear-gradient(115deg, rgba(8, 10, 16, .93), rgba(8, 11, 18, .78));
  border-bottom: 1px solid rgba(175, 183, 211, .15);
}
.hero::after {
  opacity: .17;
  background: repeating-linear-gradient(120deg, transparent 0, transparent 145px, rgba(255,255,255,.05) 147px);
}
.hero-glow {
  width: 510px; height: 400px; right: 14%; top: 4%;
  background: radial-gradient(ellipse, rgba(168, 15, 37, .27), transparent 66%);
  filter: blur(55px);
}
.hero-inner {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  min-height: 450px;
  align-items: center;
  gap: clamp(28px, 5vw, 86px);
  padding-block: 40px 44px;
}
.hero-copy { padding: 14px 0; }
.hero .eyebrow { font-size: 12px; letter-spacing: 2.8px; color: #ff667c; }
.hero h1 {
  max-width: 505px; margin: 23px 0 20px;
  font-size: clamp(53px, 5.35vw, 86px); line-height: .91; letter-spacing: .2px;
  font-weight: 900; text-shadow: 0 8px 30px #000b;
}
.hero h1 span { color: #fb485f; text-shadow: 0 0 35px #b7193433; }
.hero p { max-width: 520px; margin: 0; font-size: 15px; line-height: 1.9; color: #abb8c9; }
.hero-tags { margin-top: 28px; gap: 20px; font-size: 10px; letter-spacing: 1.5px; opacity: .7; }
.hero-media { position: relative; min-width: 0; padding-top: 35px; }
.hero-language { position: absolute; right: 0; top: 0; }
.hero-emblem { display: flex; width: 100%; max-width: none; }
.video-frame {
  position: relative; padding: 4px; border: 1px solid rgba(255, 62, 86, .8);
  border-radius: 8px; background: #070910;
  box-shadow: 0 0 0 1px rgba(85, 14, 28, .5), 0 0 45px rgba(178, 22, 48, .2), 0 24px 50px #0009;
}
.hero-video-player { width: 100%; max-width: none; aspect-ratio: 16/9; border: 0; border-radius: 5px; box-shadow: none; }
.trailer-poster { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 5px; background: #06060a; }
.trailer-poster img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: contrast(1.08) saturate(.92); }
.trailer-poster::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(0deg,#05060cbd,transparent); pointer-events:none; }
.trailer-status { position: absolute; z-index: 1; bottom: 15px; left: 20px; font-size: 10px; font-weight: 900; letter-spacing: 2px; color: #e6e8f1; text-shadow: 0 0 18px #000; }

/* The reference screenshot's main two-column composition. */
.section { padding-top: 46px; padding-bottom: 48px; }
.adventure-section { padding-top: 38px; padding-bottom: 22px; }
.landing-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(24px, 4vw, 58px); align-items: end; }
.heading-row { margin-bottom: 22px; }
.section .eyebrow { font-size: 12px; letter-spacing: 2px; }
.section h2 { font-size: clamp(27px, 3.1vw, 42px); font-weight: 900; letter-spacing: .2px; }
.section h2 em { color: #fb485f; }
.feature-card {
  min-height: 268px; border-radius: 6px;
  border: 1px solid rgba(191, 191, 211, .25);
  box-shadow: inset 0 1px #ffffff16, 0 18px 38px #0005;
  transition: transform .28s, border-color .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255, 91, 113, .68); box-shadow: 0 20px 44px #0009, 0 0 20px #9b233a22; }
.feature-card::before { background: linear-gradient(0deg, #080b15 .5%, #0c111acc 36%, #07091418 95%); }
.feature-content { padding: 23px 26px; }
.feature-content .tag { font-size: 10px; letter-spacing: 1.3px; }
.feature-content h3 { font-size: 26px; line-height: 1.08; margin: 8px 0; }
.feature-content p { font-size: 13px; }
.feature-content a { font-size: 12px; }
.feature-content a:hover { color: #fff; text-shadow: 0 0 12px #ff5e75; }
.account-panel {
  position: relative; min-width: 0; margin-top: 33px;
  padding: 20px 24px 18px; color: #f4f7ff;
  border: 1px solid rgba(185, 58, 82, .48); border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(25, 21, 31, .97), rgba(11, 12, 20, .98)),
    #101019;
  box-shadow: inset 0 1px rgba(255, 139, 157, .11), 0 0 0 4px rgba(7, 8, 15, .45), 0 25px 55px #0008, 0 0 45px #d8324a12;
}
.account-panel::before {
  content: ''; position: absolute; pointer-events: none;
  inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(130deg, rgba(255,102,125,.38), transparent 40%, rgba(229,51,78,.26));
  -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 19px; border-bottom: 1px solid #452d37; }
.account-tabs a {
  padding: 7px 3px 13px; text-align: center;
  font: 900 12px/1 'Rajdhani', sans-serif; letter-spacing: .8px;
  color: #b0a5b0; border-bottom: 2px solid transparent;
  transition: color .25s, text-shadow .25s;
}
.account-tabs a.active, .account-tabs a:hover {
  color: #fff; border-bottom-color: #fb4055; text-shadow: 0 0 12px rgba(251, 64, 85, .5);
}
.account-form { display: grid; gap: 9px; }
.account-form input:not([type=checkbox]) {
  display: block; width: 100%; min-width: 0;
  border: 1px solid #4b3943; border-radius: 5px; outline: 0;
  background: linear-gradient(180deg, #2b2530, #1a1b25);
  color: #f8fbff; padding: 11px 13px;
  box-shadow: inset 0 1px 2px #0007, 0 1px #ffffff09;
  font: 500 13px 'Plus Jakarta Sans', sans-serif;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.account-form input::placeholder { color: #b6aab5; }
.account-form input:not([type=checkbox]):focus {
  border-color: #ff6277; box-shadow: 0 0 0 3px #fb40552b, inset 0 1px 2px #0007;
}
.account-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.account-form-row > div { min-width: 0; }
.account-terms { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 2px; color: #b4c0cf; font-size: 11px; line-height: 1.55; cursor: pointer; }
.account-terms input { flex: 0 0 auto; margin: 1px 0; accent-color: #fb4055; }
.account-terms a { color: #ff788a; }
.account-terms a:hover { text-decoration: underline; }
.account-form .captcha { display: flex; justify-content: center; min-height: 75px; }
.account-notice { color: #f5c7aa!important; padding: 8px 10px; font-size: 11px!important; background: #4a301f66; border-left: 2px solid #ffaa6c; }
.btn-primary-glow {
  width: 100%; padding: 12px 20px; margin-top: 3px;
  border: 1px solid #ff6277; border-radius: 5px; clip-path: none;
  background: linear-gradient(180deg, #ff6477 0%, #eb354f 42%, #a91636 100%);
  box-shadow: inset 0 1px 0 #ffc5ce66, inset 0 -2px 7px #760923, 0 0 18px #d8324a55;
  color: #fff; text-shadow: 0 1px 2px #600c23;
  font-size: 13px; letter-spacing: .7px;
}
.btn-primary-glow:hover { background: linear-gradient(180deg, #ff8595, #ed3953 72%, #ab1839); box-shadow: 0 0 26px #f3466188, inset 0 1px #fff6; }
.btn-primary-glow:disabled { filter: grayscale(.65); opacity: .58; transform: none; }
.btn-primary-glow span { font-size: 18px; margin-left: 10px; font-weight: 400; }
.account-bottom { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 13px; color: #b38d9b; font-size: 9px; letter-spacing: 1.2px; }
.online-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #41d2a0; box-shadow: 0 0 9px #41d2a0; }
.account-panel-heading { display: flex; align-items: center; justify-content: space-between; color: #ff7185; font-size: 11px; font-weight: 900; letter-spacing: 1.6px; }
.account-signedin { text-align: center; padding: 24px 0 14px; }
.account-sigil { color: #ff7589; font-size: 32px; text-shadow: 0 0 24px #d8324a88; }
.account-signedin h3 { font-size: 28px; margin: 6px 0; }
.account-signedin p { color: #9aaabb; }
.login-form { gap: 13px; padding: 18px 0 8px; }

/* News and community match screenshot order. */
.news-section { padding-top: 28px; padding-bottom: 30px; }
.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card {
  min-height: 174px; border: 1px solid rgba(180, 185, 206, .17);
  border-radius: 5px; padding: 24px;
  background: linear-gradient(145deg, rgba(27,31,44,.92), rgba(15,18,28,.97));
  box-shadow: inset 0 1px #ffffff0c, 0 12px 32px #0003;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.news-card:hover { border-color: #a5364c; transform: translateY(-4px); box-shadow: 0 20px 40px #0006, 0 0 25px #8a20332a; }
.news-kicker { color: #ff6c7e; font-size: 10px; letter-spacing: 1.1px; }
.news-card h3 { font-size: 23px; margin-top: 13px; line-height: 1.08; }
.news-card p { color: #a6b0c1; font-size: 12px; }
.text-link:hover { color: #fff; text-shadow: 0 0 10px #ff465c; }
.discord-section { padding-bottom: 26px; }
.discord-banner {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 104px; padding: 22px 32px;
  display: grid; grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center; gap: 24px; border-radius: 9px;
  border: 1px solid rgba(57, 117, 180, .4);
  background: #081525 url('../img/discord-citadel.jpg') center 43% / cover no-repeat;
  box-shadow: inset 0 0 0 1px #ffffff08, 0 16px 40px #0009;
}
.discord-banner::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 12, 31, .95), rgba(6, 14, 29, .78) 40%, rgba(5, 17, 35, .68));
}
.discord-icon {
  width: 61px; height: 61px; border-radius: 14px; display: grid; place-items: center;
  color: white; background: linear-gradient(150deg, #7e8dff, #4e55ed);
  box-shadow: 0 0 19px #5d63f6bb, inset 0 1px #ffffff66;
}
.discord-copy { min-width: 0; }
.discord-copy small { display: block; color: #8bb0d8; font-size: 9px; letter-spacing: 2px; font-weight: 900; }
.discord-copy h2 { margin: 3px 0; color: #fff; font: 900 26px/1 'Rajdhani',sans-serif; letter-spacing: .6px; }
.discord-copy p { margin: 0; color: #c1cfdf; font-size: 12px; }
.discord-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  padding: 12px 25px; border: 1px solid #3d9dff; border-radius: 30px;
  background: linear-gradient(90deg, rgba(11, 52, 92, .82), rgba(9, 60, 113, .72));
  color: #fff; font: 900 12px 'Rajdhani',sans-serif; letter-spacing: .7px; white-space: nowrap;
  box-shadow: inset 0 1px #ffffff2b;
  transition: background .25s, box-shadow .25s, transform .25s;
}
.discord-action:hover { transform: translateY(-2px); background: #11549b; box-shadow: 0 0 22px #2b93ff66; }
.discord-action span { font-size: 17px; }

/* Shared premium detailing, including remaining PHP pages and character guide. */
.shine-hover { position: relative; isolation: isolate; }
.shine-hover::after {
  content: ''; position: absolute; z-index: 3; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 32%, rgba(255,255,255,.085) 48%, transparent 62%);
  transform: translateX(-130%); transition: transform .75s cubic-bezier(.2,.7,.2,1);
}
.shine-hover:hover::after { transform: translateX(130%); }
.page-banner { border-bottom-color: #442b3a; }
.page-banner h1 em { text-shadow: 0 0 22px #db344a3b; }
.panel, .product-card, .character-main, .character-sidebar-inner {
  box-shadow: inset 0 1px #ffffff0b, 0 18px 36px #0003;
}
.product-card { transition: transform .25s, border-color .25s; }
.product-card:hover { transform: translateY(-4px); border-color: #a52a43; }
.character-guide .character-list-link:hover { background: #31202a; box-shadow: inset 3px 0 #ff5269; }
.site-footer { background: rgba(6, 8, 14, .96); border-top-color: #29303e; }
.footer-row { padding: 36px 0; }
.footer-links a { transition: color .2s, text-shadow .2s; }
.footer-links a:hover { text-shadow: 0 0 14px #ff4b63; }
.js-motion .reveal-on-scroll:not(.in-view) {
  opacity: 0; transform: translateY(23px);
}
.js-motion .reveal-on-scroll {
  transition: opacity .68s ease, transform .68s cubic-bezier(.17,.67,.24,1);
}

@media (max-width: 1220px) {
  .nav-row { gap: 18px; }
  .main-nav { gap: 15px; }
  .site-header .brand { font-size: 19px; }
  .nav-user { gap: 8px; }
  .nav-user .btn { font-size: 11px; padding: 8px 10px; }
  .hero h1 { font-size: clamp(49px, 5.7vw, 74px); }
}
@media (max-width: 1050px) {
  .nav-row { display: flex; gap: 13px; height: 74px; min-height: 74px; }
  .mobile-toggle { display: block; order: 4; margin: 0 0 0 3px; background: #111722; }
  .nav-user { order: 3; margin-left: auto; }
  .main-nav {
    display: none; position: absolute; top: 75px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 11px 32px 22px;
    background: #0a0d17f7; border-bottom: 1px solid #6d2c40;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 22px 40px #000a;
  }
  .main-nav.open { display: flex; animation: menu-drop .24s ease-out; }
  .main-nav a, .main-nav .mobile-nav-extra {
    display: block; width: 100%; padding: 14px 9px;
    border-bottom: 1px solid #ffffff0f; font-size: 13px;
  }
  .main-nav a::after { bottom: 0; }
  .hero-inner { min-height: 430px; gap: 28px; }
  .hero { min-height: 430px; }
  .hero h1 { font-size: clamp(46px, 6vw, 64px); }
  .landing-grid { gap: 24px; }
}
@keyframes menu-drop { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  body { background-attachment: scroll; }
  .shell { width: min(var(--max), calc(100% - 34px)); }
  .nav-row { min-height: 67px; height: 67px; }
  .main-nav { top: 68px; }
  .nav-shop, .nav-cart { display: none; }
  .site-header .brand { font-size: 18px; gap: 8px; }
  .site-header .mu3-helmet-mark { width: 37px; height: 37px; }
  .hero-inner, .landing-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 45px 26px; gap: 23px; }
  .hero-copy { padding: 0; }
  .hero h1 { max-width: 680px; font-size: clamp(46px, 8.4vw, 69px); }
  .hero p { max-width: 580px; }
  .hero-tags { margin-top: 19px; }
  .hero-media { padding-top: 32px; }
  .hero-emblem { display: block; }
  .landing-grid { gap: 16px; }
  .account-panel { margin-top: 0; }
  .adventure-section { padding-top: 35px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discord-banner { grid-template-columns: 52px minmax(0,1fr); padding: 20px; gap: 17px; }
  .discord-icon { width: 50px; height: 50px; }
  .discord-action { grid-column: 2; justify-self: start; }
}
@media (max-width: 540px) {
  .nav-user .btn { padding: 8px 10px; }
  .nav-user .btn-outline { display: none; }
  .hero h1 { font-size: clamp(44px, 11.3vw, 57px); letter-spacing: -.5px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: 1.8px; }
  .hero-tags { gap: 8px; font-size: 9px; }
  .section h2 { font-size: 32px; }
  .account-panel { padding: 17px 15px; }
  .account-form-row { grid-template-columns: 1fr; }
  .feature-card { min-height: 258px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { min-height: 150px; }
  .heading-row { align-items: start; }
  .discord-banner { grid-template-columns: 46px minmax(0,1fr); gap: 14px; padding: 17px; }
  .discord-icon { width: 44px; height: 44px; border-radius: 12px; }
  .discord-icon svg { width: 29px; }
  .discord-copy h2 { font-size: 21px; }
  .discord-copy p { font-size: 11px; }
  .discord-action { grid-column: 1 / -1; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shine-hover::after, .js-motion .reveal-on-scroll { transition: none!important; transform: none!important; opacity: 1!important; }
  .main-nav.open { animation: none; }
}
