/* ==========================================================================
   enix-chrome.css — EnixServer site chrome inside WHMCS (enixnova)
   Header island, mobile drawer, top notice bar, floating theme toggle,
   language switch, nav dropdowns, footer — copied from enixserver.com
   (style.css + layout.css) and SCOPED to the chrome roots so nothing leaks
   into WHMCS content. Also: .master-breadcrumb.
   Bootstrap 4 / Twenty-One collisions (.btn, .nav-link, a:hover underline,
   ul margins, .dropdown-item, utilities with !important) are neutralised here.
   ========================================================================== */

/* ------------------------------------------------------------ chrome base */
.site-header, .mobile-drawer, .top-notice-bar, .site-footer,
.floating-theme-toggle, .skip-link, .master-breadcrumb {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
.site-header, .mobile-drawer, .top-notice-bar, .site-footer {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  text-align: left;
}
:where(.site-header, .mobile-drawer, .top-notice-bar, .site-footer) :where(p, ul, ol, h1, h2, h3, h4, figure) {
  margin: 0; padding: 0;
}
:where(.site-header, .mobile-drawer, .top-notice-bar, .site-footer, .skip-link) a,
:where(.site-header, .mobile-drawer, .top-notice-bar, .site-footer, .skip-link) a:hover,
:where(.site-header, .mobile-drawer, .top-notice-bar, .site-footer, .skip-link) a:focus {
  color: inherit;
  text-decoration: none;
}
:where(.site-header, .mobile-drawer, .site-footer, .floating-theme-toggle) svg { vertical-align: baseline; }
:where(.site-header, .mobile-drawer, .floating-theme-toggle) button { font-family: inherit; font-size: inherit; line-height: normal; }
.site-header .wrap, .top-notice-bar .wrap, .site-footer .wrap {
  max-width: 1280px; margin: 0 auto; padding: 0 24px; width: auto;
}
.site-header :focus-visible, .mobile-drawer :focus-visible, .site-footer :focus-visible,
.floating-theme-toggle:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
.site-header button:focus:not(:focus-visible), .mobile-drawer button:focus:not(:focus-visible),
.floating-theme-toggle:focus:not(:focus-visible) { outline: 0; }

/* Twenty-One sets html, body { height: 100% }: the body box then ends after one
   screen and the sticky header (containing block = body) would scroll away. */
body.enix-body { height: auto; min-height: 100%; }

/* ------------------------------------------------------------- skip link */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 2000; padding: 10px 16px;
  background: var(--primary); color: #fff; border-radius: var(--radius-sm); font-weight: 700;
}
a.skip-link:hover, a.skip-link:focus { color: #fff; }
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------ notice bar */
.top-notice-bar {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.top-notice-bar:empty { display: none; }
.top-notice-bar .top-notice-content {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono);
}
.top-notice-bar .notice-pill {
  background: rgba(59, 130, 246, 0.12);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}
html[data-theme="light"] .top-notice-bar .notice-pill { color: #1d4ed8; }
.top-notice-bar strong { font-weight: 700; }
/* always one line: below 1100px the right side (platforms / UTC) goes, then the text ellipses */
@media (max-width: 1100px) {
  .top-notice-bar .top-notice-content { flex-wrap: nowrap; }
  .top-notice-bar .top-notice-content > div:last-child { display: none; }
  .top-notice-bar .top-notice-content > div:first-child {
    min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
}
@media (max-width: 600px) {
  .top-notice-bar { font-size: 11px; }
  .top-notice-bar .notice-pill { padding: 1px 7px; margin-right: 2px; }
}

/* ---------------------------------------------------------------- header
   Same --p spring as the site (enix.js sets --p, .is-island, .is-sheen). */
.site-header {
  --p: 0;
  --island: min(1160px, calc(100% - 32px));
  --gap: 12px;
  --bar: 70px;
  --pill: 29px;
  position: sticky; position: -webkit-sticky; top: 0; left: auto; right: auto; z-index: 1000;
  display: block;
  max-width: none; width: 100%; margin: 0;
  padding: calc(var(--p) * var(--gap)) 0 0;
  background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: none; transform: none; will-change: auto; transition: none;
  pointer-events: none;
}
.site-header .nav-shell {
  pointer-events: auto;
  position: relative;
  margin: 0 auto;
  max-width: calc(100% - (100% - var(--island)) * var(--p));
  border-radius: calc(var(--p) * var(--pill));
  isolation: isolate;
}
.site-header .nav-shell::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 55%),
    color-mix(in srgb, var(--card) 78%, transparent);
  opacity: min(1, calc(var(--p) * 1.5));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 22px 48px -20px rgba(0, 0, 0, .75);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
.site-header .nav-shell::after {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
  opacity: calc(1 - var(--p) * 1.4);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.site-header .nav-glow {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  padding: 1px; overflow: hidden;
  background: color-mix(in srgb, var(--border-strong) 80%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: calc((var(--p) - .3) * 1.45);
}
/* owner: no glows - the island keeps a plain 1px border, no moving colour line */
.site-header .nav-glow::before { content: none; display: none; }
.site-header .nav-sheen { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.site-header .nav-sheen::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 26%;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, .13) 48%, rgba(255, 255, 255, .2) 52%, transparent 85%);
  opacity: 0; transform: translateX(-110%) skewX(-20deg);
}
/* enix.js removes .is-sheen on animationend named "navSheen" — keep that name */
.site-header.is-sheen .nav-sheen::before { animation: navSheen 1.25s cubic-bezier(.3, .6, .2, 1) forwards; }
@keyframes navSheen {
  0%   { opacity: 0; transform: translateX(-110%) skewX(-20deg); }
  15%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(420%) skewX(-20deg); }
}
html[data-theme="light"] .site-header .nav-shell::before {
  background-color: color-mix(in srgb, var(--card) 88%, transparent);
  box-shadow: 0 16px 34px -14px rgba(15, 23, 42, calc(var(--p) * .28));
}
html[data-theme="light"] .site-header .nav-shell::after { background: color-mix(in srgb, var(--bg) 88%, transparent); }
html[data-theme="light"] .site-header .nav-glow { background: color-mix(in srgb, var(--border-strong) 90%, transparent); }
html[data-theme="light"] .site-header .nav-sheen::before { background: linear-gradient(100deg, transparent 15%, color-mix(in srgb, var(--primary) 10%, transparent) 50%, transparent 85%); }

.site-header .nav {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap;
  height: calc(var(--bar) - var(--p) * var(--gap));
  padding-left: calc(24px - var(--p) * 6px); padding-right: calc(24px - var(--p) * 6px);
  margin: 0 auto;
  list-style: none;
  transition: none;
}

/* brand */
.site-header .brand {
  display: flex; align-items: center; gap: calc(10px - var(--p) * 1px);
  font-family: var(--font-head); font-weight: 800; letter-spacing: -0.015em;
  font-size: 22px; line-height: 1.6; color: var(--text);
}
.site-header .brand-symbol {
  width: 34px; height: 34px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
  transform: scale(calc(1 - var(--p) * 0.1));
  transition: transform 0.25s;
}
.site-header .brand:hover .brand-symbol { transform: rotate(8deg) scale(1.02); }
.site-header .brand-symbol i, .site-header .brand-symbol svg { width: 18px; height: 18px; }
.site-header .brand-text { color: var(--text); white-space: nowrap; }
.site-header .brand-tld {
  color: var(--primary);
  display: inline-block; vertical-align: bottom; overflow: hidden; white-space: nowrap;
  max-width: calc(var(--tld-w, 2.1em) * (1 - var(--p)));
  opacity: calc(1 - var(--p) * 2.2);
  transform: translateX(calc(var(--p) * -8px));
}

/* menu */
.site-header .nav-menu { display: flex; align-items: center; gap: calc(6px - var(--p) * 3px); height: 100%; margin: 0; padding: 0; }
.site-header .nav-item { position: relative; height: 100%; display: flex; align-items: center; margin: 0; }
.site-header .nav-link {
  font-size: 14px; font-weight: 600; line-height: 1.6;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px calc(14px - var(--p) * 3px);
  border-radius: calc(8px + var(--p) * 10px);
  display: flex; align-items: center; gap: 5px;
  background: transparent;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.site-header .nav-link:hover, .site-header .nav-link:focus,
.site-header .nav-item:hover > .nav-link, .site-header .nav-item:focus-within > .nav-link {
  color: var(--text); background: var(--card-hover); text-decoration: none;
}
.site-header .nav-chev { width: 14px; height: 14px; transition: transform .25s ease; }
.site-header .nav-item:hover .nav-chev, .site-header .nav-item:focus-within .nav-chev { transform: rotate(180deg); }

/* dropdowns (with the invisible hover bridge) */
.site-header .nav-dropdown {
  position: absolute;
  top: calc(100% + var(--p) * 10px);
  left: 0;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: calc(14px + var(--p) * 4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  min-width: 240px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
}
.site-header .nav-dropdown::before {
  content: ''; position: absolute; left: 0; right: 0; background: transparent;
  top: calc(-16px - var(--p) * 10px); height: calc(16px + var(--p) * 10px);
}
.site-header .nav-item:hover .nav-dropdown,
.site-header .nav-item:focus-within .nav-dropdown { display: flex; animation: enixMenuFade 0.18s ease forwards; }
@keyframes enixMenuFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
html[data-theme="light"] .site-header .nav-dropdown { box-shadow: 0 14px 34px rgba(15, 23, 42, .10); }
.site-header .dropdown-link {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13.5px; font-weight: 600; line-height: 1.6;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  white-space: nowrap;
  transition: all 0.15s;
}
.site-header .dropdown-link:hover, .site-header .dropdown-link:focus {
  background: var(--card-hover); color: var(--text); transform: translateX(3px);
}
.site-header .dropdown-left { display: flex; align-items: center; gap: 8px; }
.site-header .dropdown-left i, .site-header .dropdown-left svg { width: 16px; height: 16px; flex-shrink: 0; }
.site-header .dropdown-link small { font-size: 11px; font-weight: 400; font-family: var(--font-mono); color: var(--text-dim); }

/* icon colours (site) */
.site-header .ic-blue { color: #60a5fa; } .site-header .ic-orange { color: #fb923c; } .site-header .ic-purple { color: #60a5fa; }
.site-header .ic-green { color: #34d399; } .site-header .ic-amber { color: #fa954f; }
html[data-theme="light"] .site-header .ic-blue { color: #2563eb; }
html[data-theme="light"] .site-header .ic-orange { color: #ea580c; }
html[data-theme="light"] .site-header .ic-purple { color: #2563eb; }
html[data-theme="light"] .site-header .ic-green { color: #059669; }
html[data-theme="light"] .site-header .ic-amber { color: #d97706; }

/* right side */
.site-header .nav-actions { display: flex; align-items: center; align-self: stretch; gap: 10px; margin: 0; }

/* buttons (site .btn / .btn-primary, beating Bootstrap's) */
.site-header .btn, .mobile-drawer .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px; line-height: 1.6;
  padding: 11px 22px;
  border-radius: 40px;
  border: 1px solid transparent;
  cursor: pointer;
  vertical-align: middle; text-align: center; text-decoration: none;
  white-space: nowrap; overflow: visible; user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header .btn:hover, .mobile-drawer .btn:hover { transform: translateY(-2px); text-decoration: none; }
.site-header .btn:active, .mobile-drawer .btn:active { transform: translateY(0); }
.site-header .btn.btn-primary, .mobile-drawer .btn.btn-primary,
.site-header .btn.btn-primary:focus, .mobile-drawer .btn.btn-primary:focus,
.site-header .btn.btn-primary:not(:disabled):not(.disabled):active,
.mobile-drawer .btn.btn-primary:not(:disabled):not(.disabled):active {
  background: var(--primary); border-color: transparent; color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.site-header .btn.btn-primary:hover, .mobile-drawer .btn.btn-primary:hover,
.site-header .btn.btn-primary:not(:disabled):not(.disabled):active:focus,
.mobile-drawer .btn.btn-primary:not(:disabled):not(.disabled):active:focus {
  background: var(--primary-hover); border-color: transparent; color: #fff;
  box-shadow: 0 6px 22px var(--primary-glow);
}
.site-header .nav-cta {
  padding: calc(11px - var(--p) * 2px) calc(22px - var(--p) * 4px);
  font-size: calc(14px - var(--p) * .5px);
  transition: background-color .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(.16, 1, .3, 1);
}

/* burger */
.site-header .burger-btn {
  display: none;
  width: 38px; height: 38px; padding: 0;
  border-radius: calc(8px + var(--p) * 11px);
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  align-items: center; justify-content: center;
  cursor: pointer;
}

/* WHMCS: cart icon button (same family as the language button) */
.site-header .nav-icon-btn {
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  border-radius: calc(8px + var(--p) * 11px);
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header .nav-icon-btn:hover, .site-header .nav-icon-btn:focus { border-color: var(--border-strong); background: var(--card-hover); color: var(--text); }
.site-header .nav-icon-btn svg { width: 17px; height: 17px; }
.site-header .enix-cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--primary); color: #fff;
  border: 2px solid var(--bg);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; line-height: 1;
  box-sizing: content-box;
}
.site-header .enix-cart-count.is-empty, .site-header .enix-cart-count:empty { display: none; }

/* WHMCS: logged-in account button + dropdown (right-aligned) */
.site-header .enix-account { height: 100%; }
.site-header .enix-account .nav-cta { gap: 8px; max-width: 260px; }
.site-header .enix-account .nav-cta svg { width: 16px; height: 16px; flex-shrink: 0; }
.site-header .enix-account .nav-cta .nav-chev { width: 14px; height: 14px; }
.site-header .enix-account-name {
  display: block; min-width: 0; max-width: 160px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.site-header .enix-account .nav-dropdown { left: auto; right: 0; min-width: 220px; }
.site-header .nav-link, .site-header .nav-actions > * { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 1240px) {
  /* logged in, the right side is wider than the site's CTA: tighten so it never overflows */
  .site-header .enix-account-name { max-width: 84px; }
  .enix-logged-in .site-header .nav-link { padding-left: calc(10px - var(--p) * 2px); padding-right: calc(10px - var(--p) * 2px); }
  .enix-logged-in .site-header .nav-menu { gap: 2px; }
}

/* ---------------------------------------------------------- language switch */
.site-header .lang-switch, .mobile-drawer .lang-switch { position: relative; }
.site-header .lang-btn, .mobile-drawer .lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; margin: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer; font-family: var(--font-mono);
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header .lang-btn { border-radius: calc(8px + var(--p) * 11px); }
.site-header .lang-btn:hover, .site-header .lang-switch.open .lang-btn { border-color: var(--border-strong); background: var(--card-hover); }
.site-header .lang-btn svg { width: 15px; height: 15px; }
.site-header .lang-btn .lang-chev { width: 13px; height: 13px; transition: transform .2s ease; }
.site-header .lang-switch.open .lang-chev { transform: rotate(180deg); }
.site-header .lang-menu, .mobile-drawer .lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px;
  background: var(--card); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column; gap: 2px; overflow: visible;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1100;
}
.site-header .lang-menu { top: calc(100% + 8px + var(--p) * 12px); border-radius: calc(12px + var(--p) * 4px); }
html[data-theme="light"] .site-header .lang-menu { box-shadow: 0 14px 34px rgba(15, 23, 42, .10); }
.site-header .lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.site-header .lang-opt, .mobile-drawer .lang-opt {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  background: none; text-align: left;
  color: var(--text-muted); font-size: 13.5px; font-weight: 600; line-height: 1.6;
}
.site-header .lang-opt:hover, .mobile-drawer .lang-opt:hover { background: var(--card-hover); color: var(--text); }
.site-header .lang-opt.is-active, .mobile-drawer .lang-opt.is-active { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.site-header .lang-code, .mobile-drawer .lang-code { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; width: 22px; }

/* ----------------------------------------------------------- mobile drawer */
.mobile-drawer {
  position: fixed; top: 0; right: -100%;
  width: 300px; max-width: 100%; height: 100vh;
  background: var(--card);
  border-left: 1px solid var(--border-strong);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 1002;
  display: flex; flex-direction: column;
  padding: 24px;
  /* closed = visibility:hidden so its links can't be reached with Tab; it flips
     after the slide-out ends, and immediately when opening */
  visibility: hidden;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
  overflow-y: auto;
}
.mobile-drawer.open {
  right: 0; visibility: visible;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}
html[data-theme="light"] .mobile-drawer { box-shadow: 0 14px 34px rgba(15, 23, 42, .10); }
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 1001; /* above the sticky header (1000, later in the DOM) so the bar is dimmed too */
  display: none;
}
.drawer-overlay.open { display: block; }
html[data-theme="light"] .drawer-overlay { background: rgba(15, 23, 42, .35); }
.mobile-drawer .drawer-close {
  align-self: flex-end;
  background: none; border: none; padding: 0;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 20px;
}
.mobile-drawer .drawer-nav-group {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.mobile-drawer .drawer-nav-title {
  font-size: 11px; font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.mobile-drawer .drawer-link {
  font-size: 14.5px; font-weight: 600;
  color: var(--text);
  padding: 6px 0;
  display: flex; justify-content: space-between;
}
.mobile-drawer .drawer-link:hover { color: var(--text); }
.mobile-drawer .drawer-actions { display: flex; flex-direction: column; gap: 12px; border: none; }
.mobile-drawer .drawer-actions .lang-menu {
  position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
  flex-direction: row; background: none; border: 0; padding: 0; min-width: 0;
}
.mobile-drawer .drawer-actions .lang-btn { display: none; }
.mobile-drawer .drawer-actions .lang-opt { flex: 1; justify-content: center; border: 1px solid var(--border); }
.mobile-drawer .drawer-actions .lang-name { display: none; }

/* ---------------------------------------------------------- theme toggle */
.floating-theme-toggle {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 48px; height: 48px; padding: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-theme-toggle:hover { transform: scale(1.1) rotate(12deg); }
html[data-theme="light"] .floating-theme-toggle { box-shadow: 0 14px 34px rgba(15, 23, 42, .10); }
.floating-theme-toggle .theme-icon-light { display: none; }
html[data-theme="light"] .floating-theme-toggle .theme-icon-dark { display: none; }
html[data-theme="light"] .floating-theme-toggle .theme-icon-light { display: block; }
/* header copy of the toggle (added by enix.js); used below 992px instead of the floating one */
.site-header .enix-theme-btn { display: none; }
.site-header .enix-theme-btn .theme-icon-light { display: none; }
html[data-theme="light"] .site-header .enix-theme-btn .theme-icon-dark { display: none; }
html[data-theme="light"] .site-header .enix-theme-btn .theme-icon-light { display: block; }
@media (max-width: 991.98px) {
  .floating-theme-toggle { display: none; }
  .site-header .enix-theme-btn { display: inline-flex; }
}

/* ------------------------------------------------------- header breakpoints */
@media (max-width: 1080px) {
  .site-header .nav-menu { display: none; }
  .site-header .burger-btn { display: flex; }
}
@media (max-width: 1024px) {
  .site-header .nav-actions .lang-switch { display: none; }
}
@media (max-width: 640px) {
  .site-header { --island: calc(100% - 16px); --gap: 8px; --bar: 62px; --pill: 27px; }
  .site-header .nav { padding-left: calc(14px - var(--p) * 2px); padding-right: calc(14px - var(--p) * 4px); }
  .site-header .nav-actions .nav-cta, .site-header .nav-actions .enix-account { display: none; }
}

/* ------------------------------------------------------------------ footer
   Dotted background with a soft blue glow, a banded CTA card (pitch + game
   thumbnails, trust strip underneath), brand column with live status + Trustpilot,
   icon headings and payment badges. Flat: 1px borders, no heavy shadows. */
.site-footer {
  --ft-tp: #00b67a;            /* Trustpilot green */
  --ft-ok: #22c55e;            /* status dot */
  --ft-tp-empty: rgba(255, 255, 255, .16);
  position: relative; overflow: hidden; display: block; margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 700px 420px at 6% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
    radial-gradient(ellipse 600px 380px at 96% 100%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 70%),
    radial-gradient(color-mix(in srgb, var(--text-dim) 26%, transparent) 1px, transparent 1.2px);
  background-size: auto, auto, 22px 22px;
  border-top: 0; padding: 64px 0 30px;
  font-size: 13.5px; line-height: 1.6; color: var(--text-muted);
}
html[data-theme="light"] .site-footer {
  --ft-ok: #16a34a;
  --ft-tp-empty: #dcdce6;
  background-image:
    radial-gradient(ellipse 700px 420px at 6% 0%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 70%),
    radial-gradient(ellipse 600px 380px at 96% 100%, color-mix(in srgb, var(--primary) 6%, transparent), transparent 70%),
    radial-gradient(rgba(15, 23, 42, .10) 1px, transparent 1.2px);
}
.site-footer::before { /* thin top border: blue fading out to the right */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 35%, transparent) 40%, var(--border) 75%, transparent);
}
.site-footer::after { content: none; display: none; }
.site-footer .wrap { position: relative; z-index: 1; }

/* ---- CTA card */
.site-footer .footer-cta {
  position: relative; overflow: hidden; isolation: isolate; margin-bottom: 56px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--primary) 20%, var(--card)) 0%, color-mix(in srgb, var(--primary) 6%, var(--card)) 48%, var(--card) 100%);
}
html[data-theme="light"] .site-footer .footer-cta {
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 11%, #fff) 0%, color-mix(in srgb, var(--primary) 3%, #fff) 50%, #fff 100%);
}
.site-footer .footer-cta::before { /* the dot grid again, brighter inside the card, fading to the right */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--primary) 40%, transparent) 1px, transparent 1.3px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(100deg, #000 0%, transparent 55%);
  opacity: .55;
}
.site-footer .footer-cta-orb {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(40px);
  background: color-mix(in srgb, var(--primary) 45%, transparent);
  animation: ftOrb 14s ease-in-out infinite alternate;
}
.site-footer .footer-cta-orb--a { width: 260px; height: 260px; right: 8%; top: -150px; opacity: .22; }
.site-footer .footer-cta-orb--b { width: 200px; height: 200px; right: 34%; bottom: -150px; opacity: .14; animation-duration: 18s; animation-direction: alternate-reverse; }
html[data-theme="light"] .site-footer .footer-cta-orb { background: color-mix(in srgb, var(--primary) 18%, transparent); }
@keyframes ftOrb { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 24px, 0) scale(1.15); } }
/* footer orbs / status pulse always animate (site policy) */

.site-footer .footer-cta-top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px;
  padding: 30px 32px 26px;
}
.site-footer .footer-cta-copy { min-width: 0; flex: 1 1 320px; }
.site-footer .footer-cta-title {
  margin: 0 0 6px; font-family: var(--font-head); font-size: 28px; line-height: 1.15;
  font-weight: 800; letter-spacing: -.01em; color: var(--text);
}
.site-footer .footer-cta-sub { margin: 0; font-size: 15px; color: var(--text-muted); }
.site-footer .footer-cta-side { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-footer .footer-games { display: flex; align-items: center; padding-left: 12px; }
.site-footer .footer-games img, .site-footer .footer-games-more {
  width: 44px; height: 44px; margin-left: -12px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--card);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}
.site-footer .footer-games img:hover { transform: translateY(-4px); }
.site-footer .footer-games-more {
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--card));
}
html[data-theme="light"] .site-footer .footer-games img, html[data-theme="light"] .site-footer .footer-games-more {
  border-color: #fff;
}
.site-footer .footer-cta-btn { padding: 12px 22px; font-size: 14px; box-shadow: none; }
.site-footer .footer-cta-btn:hover { box-shadow: none; }
.site-footer .footer-cta-btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.site-footer .footer-cta-btn:hover svg { transform: translateX(3px); }

/* trust strip: the lower band of the card */
.site-footer .footer-trust {
  list-style: none; margin: 0; padding: 14px 32px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 24px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 35%, transparent);
}
html[data-theme="light"] .site-footer .footer-trust { background: color-mix(in srgb, var(--primary) 3%, #fff); }
.site-footer .footer-trust li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.site-footer .footer-trust-ic {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
html[data-theme="light"] .site-footer .footer-trust-ic { background: color-mix(in srgb, var(--primary) 9%, #fff); }
.site-footer .footer-trust-ic svg { width: 15px; height: 15px; }

/* ---- columns */
.site-footer .footer-main-grid {
  display: grid; grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px 48px; margin-bottom: 44px;
}
.site-footer .footer-brand-col { display: flex; flex-direction: column; gap: 16px; max-width: 340px; }
.site-footer .footer-logo { display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.site-footer .footer-logo-icon {
  width: 34px; height: 34px; border-radius: 10px; color: #fff;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center; transition: transform .25s ease;
}
.site-footer .footer-logo:hover .footer-logo-icon { transform: rotate(8deg); }
.site-footer .footer-logo-icon i, .site-footer .footer-logo-icon svg { width: 17px; height: 17px; }
.site-footer .footer-logo-text { font-family: var(--font-head); font-size: 21px; font-weight: 800; color: var(--text); letter-spacing: 0; }
.site-footer .footer-logo-tld { color: var(--primary); }
.site-footer .footer-tagline { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }
.site-footer .footer-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .footer-status, .site-footer .footer-tp {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px;
  border: 1px solid var(--border); border-radius: 999px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.site-footer .footer-status:hover, .site-footer .footer-tp:hover { border-color: var(--border-strong); transform: translateY(-1px); color: var(--text); }
.site-footer .footer-status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ft-ok); flex-shrink: 0; }
.site-footer .footer-status-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ft-ok);
  animation: ftPulse 2s ease-out infinite;
}
@keyframes ftPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
.site-footer .footer-tp-brand { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.site-footer .footer-tp-brand svg { width: 15px; height: 15px; color: var(--ft-tp); }
.site-footer .footer-tp-stars { display: inline-flex; gap: 2px; }
.site-footer .footer-tp-s {
  width: 14px; height: 14px; background: var(--ft-tp); position: relative;
}
.site-footer .footer-tp-s::before { /* white star cut into each square */
  content: ""; position: absolute; inset: 2px; background: #fff;
  clip-path: polygon(50% 4%, 61% 37%, 96% 37%, 68% 58%, 79% 92%, 50% 71%, 21% 92%, 32% 58%, 4% 37%, 39% 37%);
}
.site-footer .footer-tp-s--part { background: linear-gradient(90deg, var(--ft-tp) 30%, var(--ft-tp-empty) 30%); }
.site-footer .footer-tp-score { font-weight: 800; color: var(--text); }

.site-footer .footer-nav-col { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
.site-footer .footer-heading {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text);
}
.site-footer .footer-heading svg {
  width: 26px; height: 26px; padding: 5px; border-radius: 8px; flex-shrink: 0;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 13%, transparent);
}
.site-footer .footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; padding: 0; margin: 0; }
.site-footer .footer-links li { display: block; margin: 0; padding: 0; }
.site-footer .footer-links a, .site-footer .footer-link-btn {
  position: relative; display: inline-block; color: var(--text-muted); font-size: 13.5px; font-weight: 500;
  text-decoration: none; transition: color .2s ease, transform .2s ease;
}
.site-footer .footer-links a::after, .site-footer .footer-link-btn::after { /* small blue underline that slides in */
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1.5px; border-radius: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-footer .footer-links a:hover, .site-footer .footer-links a:focus-visible,
.site-footer .footer-link-btn:hover, .site-footer .footer-link-btn:focus-visible { color: var(--text); transform: translateX(2px); text-decoration: none; }
.site-footer .footer-links a:hover::after, .site-footer .footer-links a:focus-visible::after,
.site-footer .footer-link-btn:hover::after, .site-footer .footer-link-btn:focus-visible::after { transform: scaleX(1); }
.site-footer .footer-link-btn {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font-family: inherit; line-height: inherit; text-align: left;
  -webkit-appearance: none; appearance: none; outline-offset: 2px;
}

/* ---- bottom line + payment badges */
.site-footer .footer-bottom-line {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; width: 100%;
  border-top: 1px solid var(--border); padding-top: 22px;
}
.site-footer .footer-copy { font-size: 12.5px; color: var(--text-dim); }
.site-footer .footer-sep { margin: 0 6px; }
.site-footer .footer-pay { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--text-muted); }
.site-footer .footer-pay-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 12.5px; color: var(--text-dim); }
.site-footer .footer-pay-label svg { width: 13px; height: 13px; color: var(--ft-ok); }
.site-footer .footer-pay-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 28px; border-radius: 7px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--card) 85%, transparent); color: var(--text-muted);
  transition: color .2s ease, border-color .2s ease;
}
.site-footer .footer-pay-badge:hover { color: var(--text); border-color: var(--border-strong); }
.site-footer .footer-pay-badge svg { width: 17px; height: 17px; }
.site-footer .footer-pay-badge svg[viewBox="0 0 32 20"] { width: 30px; height: 19px; }
.site-footer .footer-pay-visa { font-family: var(--font-body); font-size: 13px; font-weight: 800; font-style: italic; letter-spacing: .04em; }

@media (max-width: 1080px) {
  .site-footer .footer-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-footer .footer-main-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer .footer-brand-col { grid-column: 1 / -1; max-width: 560px; }
}
@media (max-width: 640px) {
  .site-footer { padding: 44px 0 24px; }
  .site-footer .footer-cta { margin-bottom: 40px; border-radius: 16px; }
  .site-footer .footer-cta-top { padding: 22px 18px 20px; }
  .site-footer .footer-cta-copy { flex-basis: 100%; }
  .site-footer .footer-cta-title { font-size: 23px; }
  .site-footer .footer-cta-side { width: 100%; justify-content: space-between; gap: 14px; }
  .site-footer .footer-games img, .site-footer .footer-games-more { width: 36px; height: 36px; margin-left: -10px; }
  .site-footer .footer-trust { padding: 14px 18px; gap: 12px 14px; }
  .site-footer .footer-trust li { font-size: 12.5px; gap: 8px; }
  .site-footer .footer-trust-ic { width: 28px; height: 28px; }
  .site-footer .footer-main-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; margin-bottom: 32px; }
  .site-footer .footer-bottom-line { flex-direction: column; align-items: flex-start; text-align: left; }
  .site-footer .footer-sep { display: none; }
}
@media (max-width: 400px) {
  .site-footer .footer-games { display: none; }
  .site-footer .footer-cta-btn { width: 100%; justify-content: center; }
}
/* footer CTA button: the site's .btn / .btn-primary, beating Bootstrap's */
.site-footer .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; line-height: 1.6; border-radius: 40px; border: 1px solid transparent;
  white-space: nowrap; text-decoration: none; transition: background-color .22s ease, transform .22s cubic-bezier(.16, 1, .3, 1);
}
.site-footer .btn.btn-primary, .site-footer .btn.btn-primary:focus { background: var(--primary); border-color: var(--primary); color: #fff; }
.site-footer .btn.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; transform: translateY(-2px); text-decoration: none; }
.site-footer .footer-link-btn:focus { outline: none; box-shadow: none; }
.site-footer .footer-link-btn:focus-visible { outline: 2px solid var(--primary); }
/* "All games" at the end of the Game Servers menu */
.site-header .dropdown-sep { display: block; height: 1px; margin: 4px 8px; background: var(--border); }
.mobile-drawer .drawer-link-more { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 12px; }

/* ------------------------------------------------------------ breadcrumb */
.master-breadcrumb { background: transparent; border: 0; }
.master-breadcrumb .breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center;
  margin: 0; padding: 16px 0 0;
  background: transparent; border-radius: 0;
  font-size: 12.5px; font-weight: 500; line-height: 1.5; color: var(--text-dim);
  list-style: none;
}
.master-breadcrumb .breadcrumb-item { display: flex; align-items: center; color: var(--text-dim); }
.master-breadcrumb .breadcrumb-item.active { color: var(--text-muted); }
.master-breadcrumb .breadcrumb-item a { color: var(--text-dim); text-decoration: none; transition: color .2s ease; }
.master-breadcrumb .breadcrumb-item a:hover, .master-breadcrumb .breadcrumb-item a:focus { color: var(--text); text-decoration: none; }
.master-breadcrumb .breadcrumb-item + .breadcrumb-item { padding-left: 8px; }
.master-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/"; float: none; padding-right: 8px; color: var(--border-strong);
}

/* ---------------------------------------------------- account menu (profile dropdown on the right) */
.site-header .enix-account .nav-dropdown { min-width: 236px; max-height: calc(100vh - 110px); overflow-y: auto; }
.site-header .enix-account .dropdown-sep { display: block; height: 1px; margin: 6px 10px; background: var(--border); }
.site-header .enix-account-alerts {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9999px;
  background: #fff; color: var(--primary); font-size: 11px; font-weight: 800; line-height: 1;
}
.mobile-drawer .drawer-link + .btn, .mobile-drawer .drawer-actions .btn { margin-top: 4px; }

/* ES monogram in the logo tiles (wider than the old square icon) */
.site-header .brand-symbol svg.enix-es-mark, .mobile-drawer .brand-symbol svg.enix-es-mark { width: 22px; height: 19px; }
.site-footer .footer-logo-icon svg.enix-es-mark { width: 20px; height: 17px; }
