/* NEW ANGEL - Files Server.
   Built from the game client's own art (assets/ui, cut by HHID\tools\export_ui.py):
   the Pegasus MU kit - dark forged steel, blue stone, ice-blue light, silver titles.
   No gold chrome, same rule as the in-game windows. */

@font-face { font-family: "Cinzel"; font-weight: 400 900; font-style: normal; font-display: swap;
  src: url("../fonts/Cinzel-latin.woff2") format("woff2"); }
@font-face { font-family: "Heebo"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url("../fonts/Heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

:root {
  /* PgMuKit.h palette */
  --title: #e8eef8;
  --text: #d0d6e0;
  --value: #ffffff;
  --label: #92a2ba;
  --dim: #707886;
  --blue: #6eb0ff;
  --ice: #96daff;
  --exc: #60e888;
  --bad: #ff6252;
  --warn: #ffac40;

  --ink: #03060b;
  --deep: #060c16;
  --navy: #0a1424;
  --line: rgba(150, 190, 235, 0.12);
  --line-2: rgba(150, 190, 235, 0.22);
  --ice-a: rgba(150, 218, 255, 0.45);

  --f-ui: Tahoma, Verdana, "Segoe UI", Arial, sans-serif;
  --f-title: "Cinzel", "Trajan Pro", Georgia, serif;
  --wrap: 1200px;

  --ui: url("../ui/");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  cursor: url("../ui/cursor.png") 3 2, auto;
}
a, button, summary, label, select, .btn, [data-copy], [data-trailer], .shot, .plan-pick, input[type="checkbox"], input[type="radio"] {
  cursor: url("../ui/cursor-hand.png") 8 3, pointer;
}
input, textarea { cursor: text; }

body {
  margin: 0;
  color: var(--text);
  font: 400 14px/1.6 var(--f-ui);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(40, 90, 160, 0.18), transparent 60%),
    linear-gradient(180deg, #050a12 0%, var(--ink) 100%);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* The whole page lives inside one world: the scenery is intentionally quiet behind
   content, then each major chapter switches to a distinct piece of key art. */
body.public { background: #03070d; }
.world-atmosphere { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, rgba(2, 7, 14, 0.86), rgba(3, 11, 21, 0.74)), url("../art/sky-citadel-v2.jpg") center top / cover no-repeat; }
.world-atmosphere::before { content: ""; position: absolute; inset: -12%; opacity: 0.46; background: radial-gradient(circle at 18% 28%, rgba(150, 218, 255, 0.62) 0 1px, transparent 2px), radial-gradient(circle at 72% 18%, rgba(150, 218, 255, 0.5) 0 1px, transparent 2px), radial-gradient(circle at 84% 62%, rgba(110, 176, 255, 0.5) 0 1px, transparent 2px), radial-gradient(circle at 38% 74%, rgba(150, 218, 255, 0.35) 0 1px, transparent 2px); background-size: 220px 190px, 340px 290px, 300px 250px, 410px 360px; animation: starDrift 32s linear infinite; }
.world-atmosphere::after { content: ""; position: absolute; inset: auto -12% -18%; height: 48%; opacity: 0.25; background: radial-gradient(ellipse at 50% 100%, rgba(132, 192, 255, 0.27), transparent 62%); filter: blur(20px); animation: mistBreathe 9s ease-in-out infinite alternate; }
.world-stars, .world-mist { position: absolute; pointer-events: none; }
.world-stars { inset: 0; opacity: 0.22; background: linear-gradient(115deg, transparent 15%, rgba(140, 205, 255, 0.1) 45%, transparent 75%); animation: lightSweep 14s ease-in-out infinite; }
.world-mist { left: -15%; bottom: 0; width: 130%; height: 26vh; opacity: 0.18; background: radial-gradient(ellipse at 30% 100%, #94cfff 0, transparent 42%), radial-gradient(ellipse at 68% 100%, #74b6ff 0, transparent 46%); filter: blur(42px); animation: mistDrift 20s ease-in-out infinite alternate; }
body.public > :not(.world-atmosphere):not(.scroll-progress):not(.skip) { position: relative; z-index: 1; }
@keyframes starDrift { from { transform: translate3d(-1%, -1%, 0); } to { transform: translate3d(3%, 2%, 0); } }
@keyframes mistBreathe { from { transform: translateY(5%) scaleX(0.94); } to { transform: translateY(-3%) scaleX(1.08); } }
@keyframes mistDrift { from { transform: translateX(-4%) scaleX(0.96); } to { transform: translateX(4%) scaleX(1.06); } }
@keyframes lightSweep { 0%, 40% { transform: translateX(-35%) skewX(-18deg); opacity: 0; } 58% { opacity: 0.45; } 80%, 100% { transform: translateX(35%) skewX(-18deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .world-atmosphere::before, .world-atmosphere::after, .world-stars, .world-mist, .hero-crest::before { animation: none; }
  .section::before { background-attachment: scroll; }
}
[dir="rtl"], [lang="he"] { font-family: "Heebo", var(--f-ui); }
img, video { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--ice); text-shadow: 0 0 8px rgba(150, 218, 255, 0.5); }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; color: var(--title); }
p { margin: 0 0 1em; }
b, strong { color: var(--value); }
code, pre { font-family: Consolas, "Courier New", monospace; }
code { font-size: 0.92em; color: var(--ice); background: rgba(3, 8, 16, 0.8); border: 1px solid var(--line-2); padding: 1px 6px; }
::selection { background: rgba(110, 176, 255, 0.4); color: #fff; }
:focus-visible { outline: 1px solid var(--ice); outline-offset: 2px; }

.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.wrap-narrow { --wrap: 860px; }
.center { text-align: center; }
.muted { color: var(--dim); }
.small, small { font-size: 12px; }
.mt { margin-top: 26px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* silver with the slow band of light the in-game titles carry (PG_TFX_SHEEN) */
.silver {
  background: linear-gradient(100deg, #aebccf 0%, #e8eef8 30%, #ffffff 45%, #e8eef8 55%, #aebccf 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s linear infinite;
}
.icy {
  background: linear-gradient(180deg, #e9f7ff 0%, #96daff 45%, #4f9ae8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -130% 0; } }

/* ================================================================ the window (MkPanel)
   top band 54 (corner knots + title plate), body (stone + 10px bevel), foot 48 */

.win, .box, .plan, .auth-card, .step, .lic-hero {
  position: relative;
  border-style: solid;
  border-width: 0 10px;
  border-color: transparent;
  border-image: url("../ui/panel-body.png") 0 10 stretch;
  background: url("../ui/stone.png") repeat;
  background-clip: padding-box;
  padding: 64px 18px 34px;
  margin-bottom: 24px;
  min-width: 0;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
}
.win::before, .box::before, .plan::before, .auth-card::before, .step::before, .lic-hero::before,
.win::after, .box::after, .plan::after, .auth-card::after, .step::after, .lic-hero::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  border-style: solid;
  border-color: transparent;
  pointer-events: none;
  z-index: 0;
}
.win::before, .box::before, .plan::before, .auth-card::before, .step::before, .lic-hero::before {
  top: 0; height: 54px;
  border-width: 0 74px;
  border-image: url("../ui/panel-top.png") 0 74 fill stretch;
}
.win::after, .box::after, .plan::after, .auth-card::after, .step::after, .lic-hero::after {
  bottom: 0; height: 48px;
  border-width: 0 48px;
  border-image: url("../ui/panel-foot.png") 0 48 fill stretch;
}
.win > *, .box > *, .plan > *, .auth-card > *, .step > *, .lic-hero > * { position: relative; z-index: 1; }

/* the title, centred on the plate (plate ends 66 in, its middle line 32 down) */
.win-title, .box-head h3, .auth-card h1, .plan h3, .step h3 {
  position: absolute !important;
  top: 21px; left: 56px; right: 56px;
  height: 22px;
  margin: 0;
  text-align: center;
  font: 700 13px/22px var(--f-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(100deg, #aebccf 0%, #e8eef8 30%, #ffffff 45%, #e8eef8 55%, #aebccf 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s linear infinite;
  filter: drop-shadow(0 1px 1px #000);
}
/* the head row is not a positioning box, so its h3 lands on the window's plate */
.box > .box-head { position: static; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin: -4px 0 12px; min-height: 0; }
.box > .box-head > :not(h3) { position: relative; z-index: 1; }
.win-title, .box-head h3, .auth-card h1, .plan h3, .step h3 { z-index: 2 !important; }
.box-head:not(:has(> :not(h3))) { margin: 0; }
.box-head .small, .box-head small { color: var(--label); }
.box-head .badge { margin-right: auto; }

/* the glow MkGlow puts round a selected / important thing */
.glow-on { filter: drop-shadow(0 0 1px rgba(150, 218, 255, 0.9)) drop-shadow(0 0 14px rgba(110, 176, 255, 0.45)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }

/* MkInset: recessed stone */
.inset {
  border-style: solid; border-width: 10px; border-color: transparent;
  border-image: url("../ui/inset.png") 10 fill stretch;
  padding: 6px 8px;
}
/* MkField: value strip with a thin blue rim */
.field-strip {
  border-style: solid; border-width: 6px; border-color: transparent;
  border-image: url("../ui/field.png") 6 fill stretch;
}

/* the ornate item frame (MkFrame): rails 9-slice + four centre ornaments */
.mkframe {
  position: relative;
  display: block;
  padding: 19px 21px 18px 21px;   /* where the steel ends: the opening */
  background: #000;
  background-clip: content-box;
}
.mkframe::before, .mkframe::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.mkframe::before {
  z-index: 1;
  border-style: solid; border-color: transparent;
  border-width: 27px 31px 27px 30px;
  border-image: url("../ui/frame-rails.png") 27 31 27 30 stretch;
}
.mkframe::after {
  z-index: 2;
  background:
    url("../ui/frame-orn-top.png") top center no-repeat,
    url("../ui/frame-orn-bottom.png") bottom center no-repeat,
    url("../ui/frame-orn-left.png") left center no-repeat,
    url("../ui/frame-orn-right.png") right center no-repeat;
}
.mkframe > video, .mkframe > img { width: 100%; height: 100%; object-fit: cover; }

/* menu slot (F5 game menu tile) */
.slot { display: inline-grid; place-items: center; width: 64px; height: 64px; flex: none; background: url("../ui/menu-slot.png") center / 100% 100% no-repeat; }
.slot img { width: 46px; height: 46px; filter: drop-shadow(0 2px 3px #000); }

/* MkDivider: the little winged crest between two hairlines. The still picture is the fallback;
   crest-divider.js puts a canvas on top where the wings can move (class .live). */
.divider { --dh: 88px; --ln: 1; position: relative; display: block; width: min(680px, 92%); height: var(--dh); margin: 0 auto;
  background: url("../ui/angel-crest-v2.webp") center / auto calc(var(--dh) - 6px) no-repeat; }
.divider::before, .divider::after { content: ""; position: absolute; top: 50%; height: 1px; width: calc(50% - 98px); pointer-events: none; transform: scaleX(var(--ln, 1)); }
.divider::before { left: 0; transform-origin: 100% 50%; background: linear-gradient(90deg, transparent, rgba(150, 218, 255, 0.72)); }
.divider::after { right: 0; transform-origin: 0 50%; background: linear-gradient(90deg, rgba(150, 218, 255, 0.72), transparent); }
.divider.live { background-image: none; }
@media (max-width: 640px) { .divider { --dh: 68px; } .divider::before, .divider::after { width: calc(50% - 78px); } }
.divider canvas { position: absolute; left: 50%; top: 3px; width: calc((var(--dh) - 6px) * 2); height: calc(var(--dh) - 6px); transform: translateX(-50%); pointer-events: none; }

/* ================================================================ buttons (MkButton) */

.btn {
  --bh: 44px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--bh);
  padding: 0 14px;
  border-style: solid; border-color: transparent;
  border-width: 13px 19px;
  border-image: url("../ui/btn.png") 18 26 fill stretch;
  background: none;
  color: var(--title);
  font: 700 13px/1 var(--f-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px #000, 0 0 10px rgba(110, 176, 255, 0.35);
  white-space: nowrap;
  text-decoration: none;
  transition: filter 0.15s, transform 0.08s;
}
.btn:hover {
  color: #fff;
  border-image-source: url("../ui/btn-hot.png");
  filter: drop-shadow(0 0 10px rgba(110, 176, 255, 0.45));
  text-shadow: 0 1px 2px #000, 0 0 12px rgba(150, 218, 255, 0.8);
}
.btn:active { transform: translateY(1px); filter: brightness(0.9); }
.btn-gold {
  border-image-source: url("../ui/btn-hot.png");
  color: #fff;
  text-shadow: 0 1px 2px #000, 0 0 14px rgba(150, 218, 255, 0.9);
  filter: drop-shadow(0 0 12px rgba(110, 176, 255, 0.45));
}
.btn-gold:hover {
  border-image-source: url("../ui/btn-hot.png");
  color: #fff;
  filter: drop-shadow(0 0 20px rgba(150, 218, 255, 0.75));
}
.btn-ghost, .btn-danger { border-image-source: url("../ui/btn-off.png"); color: var(--text); text-shadow: 0 1px 2px #000; }
.btn-ghost:hover { border-image-source: url("../ui/btn.png"); }
.btn-danger { color: #ff9a8e; }
.btn-danger:hover { border-image-source: url("../ui/btn-off.png"); color: #fff; filter: drop-shadow(0 0 10px rgba(255, 98, 82, 0.55)); }
.btn[disabled], .btn[aria-disabled="true"] { border-image-source: url("../ui/btn-off.png"); color: var(--dim); text-shadow: none; filter: none; pointer-events: none; }
.btn-lg { --bh: 52px; border-width: 15px 22px; font-size: 14px; padding: 0 22px; }
.btn-sm { --bh: 36px; border-width: 11px 16px; font-size: 11.5px; padding: 0 8px; }
.btn-xs { --bh: 28px; border-width: 8px 12px; font-size: 10.5px; padding: 0 4px; letter-spacing: 0.05em; }
.btn-block { width: 100%; }
.btn img { width: 18px; height: 18px; }
.btn .ic-play { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }

/* small copy button: the slim blue button */
.copy {
  display: inline-flex; align-items: center; height: 24px; padding: 0 12px;
  border: 0; background: url("../ui/btn-slim.png") center / 100% 100% no-repeat;
  color: var(--title); font: 700 10.5px/1 var(--f-ui); letter-spacing: 0.08em; text-transform: uppercase;
}
.copy:hover { background-image: url("../ui/btn-slim-hot.png"); color: #fff; }
.copy.done, .btn.done { color: var(--exc); }

/* ================================================================ text colours that mean something */

.t-ice { color: var(--ice); }
.t-blue { color: var(--blue); }
.t-exc { color: var(--exc); }
.t-bad { color: var(--bad); }

.badge {
  display: inline-block; padding: 1px 8px; font: 700 10.5px/18px var(--f-ui); letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid currentColor; background: rgba(2, 6, 12, 0.85); vertical-align: middle; white-space: nowrap;
}
.badge.ok { color: var(--exc); border-color: rgba(96, 232, 136, 0.45); }
.badge.warn { color: var(--warn); border-color: rgba(255, 172, 64, 0.45); }
.badge.bad { color: var(--bad); border-color: rgba(255, 98, 82, 0.45); }
.badge.mute { color: var(--label); border-color: var(--line-2); }
.badge.gold { color: var(--ice); border-color: var(--ice-a); }

.alert {
  position: relative; margin-bottom: 14px; padding: 10px 14px 10px 40px;
  border-style: solid; border-width: 6px; border-color: transparent;
  border-image: url("../ui/field.png") 6 fill stretch;
  background: rgba(3, 8, 16, 0.92); background-clip: padding-box;
  color: var(--text); font-size: 13.5px;
}
.alert::before { content: ""; position: absolute; left: 10px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; background: url("../ui/pip-on.png") center / contain no-repeat; }
.alert.ok { color: #d8ffe4; } .alert.ok::before { filter: hue-rotate(-90deg) saturate(1.4); }
.alert.error { color: #ffd9d4; } .alert.error::before { filter: hue-rotate(150deg) saturate(2); }
.alert.warn { color: #ffe6c4; } .alert.warn::before { filter: hue-rotate(185deg) saturate(1.6); }
.alert a { font-weight: 700; }

/* ================================================================ logo */

.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--title); }
.logo:hover { color: var(--title); text-shadow: none; }
.logo::before { content: ""; width: 64px; height: 42px; flex: none; background: url("../ui/angel-crest-v2.webp") center / contain no-repeat; filter: drop-shadow(0 0 8px rgba(110, 176, 255, 0.38)); }
.logo-wing { display: none; width: 46px; height: 18px; background: url("../ui/wing-l.png") center / contain no-repeat; flex: none; opacity: 0.95; }
.logo-wing.r { background-image: url("../ui/wing-r.png"); }
.logo-text { display: inline-flex; flex-direction: column; align-items: flex-start; font: 900 19px/1 var(--f-title); letter-spacing: 0.1em; padding: 0; }
.logo-text b { font-weight: 900; }
.logo-text small { font: 700 8px/1 var(--f-ui); letter-spacing: 0.32em; color: var(--label); margin-top: 4px; }
.logo-big .logo-text { font-size: 38px; }
.logo-big .logo-wing { width: 120px; height: 44px; }
.logo-mark { display: none; }

/* ================================================================ public top bar */

.announce { background: linear-gradient(90deg, #06101e, #0f2440, #06101e); color: var(--ice); text-align: center; padding: 7px 16px; font-weight: 700; font-size: 12.5px; border-bottom: 1px solid var(--line-2); }
.topnav { position: sticky; top: 0; z-index: 120; transition: background 0.25s; }
.topnav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 44px; background: url("../ui/line-orn.png") center / auto 100% no-repeat; opacity: 0; transition: opacity 0.25s; pointer-events: none; }
body.home .topnav { position: fixed !important; top: 0; left: 0; right: 0; display: block !important; visibility: visible !important; opacity: 1 !important; z-index: 9999 !important; transform: none !important; background: linear-gradient(180deg, rgba(3, 8, 15, 0.98), rgba(4, 12, 23, 0.93)); box-shadow: 0 1px 0 rgba(150, 218, 255, 0.32), 0 12px 30px rgba(0, 0, 0, 0.5); backdrop-filter: blur(12px); }
body.home .announce + .topnav { top: 34px !important; }
.topnav.solid, body:not(.home) .topnav { background: linear-gradient(180deg, rgba(10, 18, 32, 0.97), rgba(4, 8, 14, 0.97)); box-shadow: 0 1px 0 var(--line-2), 0 10px 30px rgba(0, 0, 0, 0.5); }
.topnav.solid::after, body:not(.home) .topnav::after { opacity: 1; }
body.home .topnav::after { opacity: 0.72; }
.topnav-in { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.navlinks { display: flex; align-items: center; gap: 22px; }
.navlinks a:not(.btn) { color: var(--label); font: 700 12px/1 var(--f-ui); letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 0; position: relative; }
.navlinks a:not(.btn):hover { color: var(--ice); }
.navlinks .nav-licenses { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px !important; color: var(--title) !important; border: 1px solid rgba(150, 218, 255, 0.42); background: rgba(38, 89, 145, 0.2); box-shadow: inset 0 0 14px rgba(110, 176, 255, 0.1); }
.navlinks .nav-licenses:hover { color: #fff !important; border-color: var(--ice); background: rgba(49, 115, 185, 0.34); text-shadow: 0 0 10px rgba(150, 218, 255, 0.9); }
.navlinks .nav-licenses::before { display: none; }
.navlinks a:not(.btn)::before { content: ""; position: absolute; left: 50%; bottom: -6px; width: 11px; height: 11px; margin-left: -5.5px; background: url("../ui/pip-on.png") center / contain no-repeat; opacity: 0; transform: scale(0.4); transition: opacity 0.15s, transform 0.15s; }
.navlinks a:not(.btn):hover::before { opacity: 1; transform: none; }
.navsep { width: 1px; height: 26px; background: linear-gradient(180deg, transparent, var(--line-2), transparent); }
.navtoggle { display: none; width: 40px; height: 40px; border: 0; background: url("../ui/btn-off.png") center / 100% 100%; padding: 10px 9px; }
.navtoggle span { display: block; height: 2px; background: var(--ice); margin: 4px 0; transition: transform 0.2s, opacity 0.2s; }

.flash-stack { padding-top: 18px; }
body.home .flash-stack { position: fixed; top: 82px; left: 0; right: 0; z-index: 60; }

/* ================================================================ hero */

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: 110px 0 100px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero-scrim { position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(3, 8, 16, 0.45) 0%, rgba(3, 8, 16, 0.78) 58%, rgba(3, 6, 11, 0.96) 100%),
    linear-gradient(180deg, rgba(3, 6, 11, 0.75) 0%, transparent 22%, transparent 70%, var(--ink) 100%); }
.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-crest { position: relative; display: flex; align-items: center; justify-content: center; width: min(760px, 100%); min-height: clamp(178px, 19vw, 258px); padding-top: clamp(72px, 8.5vw, 120px); animation: arrive 1.1s cubic-bezier(.2,.8,.2,1) both; }
.hero-crest::before { content: ""; position: absolute; z-index: 0; top: -4px; left: 50%; width: clamp(520px, 64vw, 860px); height: clamp(180px, 21vw, 280px); margin: 0; background: url("../ui/angel-crest-v2.webp") center / contain no-repeat; transform: translateX(-50%); opacity: 0.62; filter: drop-shadow(0 0 20px rgba(110, 176, 255, 0.48)); animation: crestFloat 5.5s ease-in-out infinite; }
.hero-crest .logo-wing { display: none; }
.hero-title { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 0.2em; margin: 0 4px; padding: 0 0.16em 0.12em; font: 900 clamp(38px, 6vw, 88px)/0.92 var(--f-title); letter-spacing: 0.105em; white-space: nowrap; perspective: 900px; transform: perspective(900px) rotateX(5deg); }
.hero-title span { display: inline-block; -webkit-text-stroke: 0.7px rgba(224, 243, 255, 0.74); paint-order: stroke fill; }
.hero-title .silver { background-image: linear-gradient(180deg, #fff 0%, #e4edf8 18%, #8195af 42%, #f6fbff 54%, #8599b4 69%, #e6f1ff 82%, #748aa6 100%); background-size: 100% 180%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-shadow: 0 1px 0 #dae7f5, 0 2px 0 #9aabc0, 0 3px 0 #60758e, 0 4px 0 #344b66, 0 5px 0 #172d47, 0 7px 0 #0a1728, 0 9px 13px rgba(0, 0, 0, 0.95), 0 0 30px rgba(185, 224, 255, 0.42); }
.hero-title .icy { background-image: linear-gradient(180deg, #fff 0%, #d9f4ff 20%, #88d4ff 39%, #effbff 52%, #5dace8 67%, #d9f5ff 82%, #438bd0 100%); background-size: 100% 180%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-shadow: 0 1px 0 #c5f0ff, 0 2px 0 #75bce9, 0 3px 0 #3a80b6, 0 4px 0 #20547f, 0 5px 0 #102f4e, 0 7px 0 #081b30, 0 9px 13px rgba(0, 0, 0, 0.95), 0 0 32px rgba(104, 194, 255, 0.58); }
@keyframes crestFloat { 0%, 100% { transform: translate(-50%, 0); filter: drop-shadow(0 0 16px rgba(110, 176, 255, 0.35)); } 50% { transform: translate(-50%, -7px) scale(1.02); filter: drop-shadow(0 0 27px rgba(150, 218, 255, 0.7)); } }
@keyframes arrive { from { opacity: 0; transform: scale(1.18); filter: blur(14px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* MkPlate: steel name plate with the diamond socket */
.plate {
  position: relative; display: inline-flex; align-items: center; height: 40px;
  border-style: solid; border-color: transparent; border-width: 0 19px 0 53px;
  border-image: url("../ui/plate.png") 0 24 0 66 fill stretch;
  padding: 0 14px 0 8px;
  font: 700 12.5px/1 var(--f-ui); letter-spacing: 0.32em; text-transform: uppercase; color: var(--title);
}
.plate-sock { position: absolute; left: -42px; top: 10px; width: 28px; height: 19px; display: grid; place-items: center; font: 700 11px/1 var(--f-ui); letter-spacing: 0; color: var(--ice); text-shadow: 0 0 6px rgba(150, 218, 255, 0.8); }
.hero .plate { margin-top: 18px; animation: rise 0.8s 0.6s both; }
.hero-tag { margin: 18px 0 0; font: 700 clamp(15px, 2vw, 22px)/1.2 var(--f-ui); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ice); text-shadow: 0 0 16px rgba(110, 176, 255, 0.6), 0 2px 6px #000; animation: rise 0.8s 0.75s both; }
.hero-he { font: 600 clamp(16px, 1.8vw, 21px)/1.4 "Heebo", var(--f-ui); color: var(--title); margin: 10px 0 0; text-shadow: 0 2px 12px #000; animation: rise 0.8s 0.85s both; }
.hero-lead { max-width: 600px; color: var(--text); font-size: clamp(14px, 1.4vw, 16px); margin: 14px auto 0; text-shadow: 0 2px 8px #000; animation: rise 0.8s 0.95s both; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; animation: rise 0.8s 1.1s both; }
.hero-proof { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; list-style: none; margin: 22px 0 0; padding: 0; color: var(--label); font-size: 12px; animation: rise 0.8s 1.25s both; }
.hero-proof li { display: flex; align-items: center; gap: 7px; }
.hero-proof li::before { content: ""; width: 10px; height: 10px; background: url("../ui/pip-on.png") center / contain no-repeat; filter: drop-shadow(0 0 5px rgba(150, 218, 255, 0.8)); }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; width: 36px; height: 36px; margin-left: -18px; background: url("../ui/arrow-dn.png") center / contain no-repeat; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.7; } 50% { transform: translateY(6px); opacity: 1; } }

/* the HUD dock under the hero */
.highlights { position: relative; margin-top: -60px; z-index: 2; }
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 66px 20px 38px; margin: 0; }
.hl { display: flex; align-items: center; gap: 12px; padding: 4px 12px; border-left: 1px solid var(--line); }
.hl:first-child { border-left: 0; }
.hl b { display: block; font: 900 22px/1.1 var(--f-title); letter-spacing: 0.04em; }
.hl span { color: var(--label); font-size: 12px; }

/* A concise conversion bridge between the spectacle and the deep feature tour. */
.quick-path { position: relative; z-index: 1; padding: 48px 0; background: linear-gradient(90deg, rgba(6, 16, 30, 0.92), rgba(12, 31, 55, 0.82), rgba(6, 16, 30, 0.92)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.quick-path-in { display: grid; grid-template-columns: minmax(240px, 0.85fr) minmax(400px, 1.45fr) auto; align-items: center; gap: 30px; }
.quick-copy .kicker { margin-bottom: 6px; }
.quick-copy h2 { font: 800 clamp(21px, 2.6vw, 31px)/1.12 var(--f-title); margin: 0 0 10px; }
.quick-copy p:last-child { margin: 0; color: var(--text); font-size: 13.5px; }
.quick-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-points > div { min-width: 0; padding-left: 14px; border-left: 1px solid var(--line-2); }
.quick-points span { display: block; margin-bottom: 3px; color: var(--ice); font: 700 10px/1 var(--f-ui); letter-spacing: 0.18em; }
.quick-points b, .quick-points small { display: block; }
.quick-points b { color: var(--title); font-size: 13px; }
.quick-points small { margin-top: 4px; color: var(--label); font-size: 11.5px; line-height: 1.35; }
.quick-cta { align-self: center; }

/* ================================================================ sections */

.section { position: relative; padding: clamp(60px, 8vw, 110px) 0; isolation: isolate; }
.section::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.94; background: linear-gradient(180deg, rgba(3, 8, 15, 0.74), rgba(5, 14, 27, 0.68), rgba(3, 8, 15, 0.78)), url("../art/sky-citadel-v2.jpg") center / cover fixed; }
.section:nth-of-type(even)::before { background-image: linear-gradient(180deg, rgba(3, 8, 15, 0.79), rgba(7, 18, 31, 0.63), rgba(3, 8, 15, 0.82)), url("../art/rune-gate-v2.jpg"); background-position: center, 68% center; }
.section-dark::before { opacity: 1; background-image: linear-gradient(180deg, rgba(2, 7, 14, 0.86), rgba(6, 18, 34, 0.76), rgba(2, 7, 14, 0.9)), url("../art/rune-gate-v2.jpg"); }
#features::before { background-image: linear-gradient(180deg, rgba(3, 8, 15, 0.7), rgba(5, 15, 28, 0.62), rgba(3, 8, 15, 0.84)), url("../art/sky-citadel-v2.jpg"); background-position: center, 55% center; }
#pricing::before { background-image: linear-gradient(180deg, rgba(2, 7, 14, 0.78), rgba(5, 17, 31, 0.66), rgba(2, 7, 14, 0.86)), url("../art/rune-gate-v2.jpg"); background-position: center, 72% center; }
#contact::before { background-image: linear-gradient(180deg, rgba(2, 7, 14, 0.8), rgba(4, 15, 27, 0.68), rgba(2, 7, 14, 0.86)), url("../art/sky-citadel-v2.jpg"); background-position: center, 38% center; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 34px; }
.kicker { font: 700 11.5px/1 var(--f-ui); letter-spacing: 0.42em; color: var(--ice); text-transform: uppercase; margin-bottom: 14px; text-shadow: 0 0 10px rgba(110, 176, 255, 0.5); }
.section-head h2 { font: 800 clamp(26px, 3.8vw, 44px)/1.15 var(--f-title); letter-spacing: 0.04em; margin: 0; }
.section-head h2 .t-hi { color: var(--ice); -webkit-text-fill-color: var(--ice); }
.section-head .divider { margin-top: 10px; }
.section-head .lead { color: var(--text); margin: 6px auto 0; font-size: 15px; max-width: 640px; }

/* features: each one a game window */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 26px 22px; }
.feat { padding: 64px 22px 38px; margin: 0; }
.feat .mkframe { aspect-ratio: 16 / 9; margin: 0 -2px 18px; }
.feat-body { display: flex; gap: 14px; align-items: flex-start; }
.feat-body p { margin: 4px 0 0; color: var(--text); font-size: 13.5px; }
.feat:hover { filter: drop-shadow(0 0 1px rgba(150, 218, 255, 0.8)) drop-shadow(0 0 16px rgba(110, 176, 255, 0.35)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }

.more-head { text-align: center; margin: 56px 0 18px; }
.more-head h3 { font: 800 clamp(22px, 2.6vw, 30px)/1 var(--f-title); letter-spacing: 0.06em; }
.more-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px 18px; }
.more { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.more .mkframe { width: 100%; aspect-ratio: 4 / 5; }
.more span { font: 700 12px/1 var(--f-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--title); text-align: center; }
.systems-list { max-width: 860px; margin: 42px auto 0; }
.systems-list > summary { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 18px; color: var(--ice); border: 1px solid var(--line-2); background: rgba(7, 19, 35, 0.55); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; text-align: center; }
.systems-list > summary span { color: var(--label); font-size: 10px; letter-spacing: 0.06em; }
.systems-list > summary:hover, .systems-list[open] > summary { color: #fff; border-color: var(--ice-a); background: rgba(14, 37, 65, 0.72); }
.systems-list[open] > summary { margin-bottom: 22px; }

.proof-band { position: relative; overflow: hidden; padding: 68px 0; background: linear-gradient(120deg, #07101c, #0d2744 48%, #07111f); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.proof-band::before { content: ""; position: absolute; inset: 0; opacity: 0.32; background: radial-gradient(circle at 14% 50%, rgba(110, 176, 255, 0.23), transparent 26%), radial-gradient(circle at 86% 50%, rgba(150, 218, 255, 0.12), transparent 28%); pointer-events: none; }
.proof-band-in { position: relative; display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 52px; align-items: center; }
.proof-band-head h2 { margin: 0; font: 800 clamp(25px, 3.2vw, 39px)/1.12 var(--f-title); letter-spacing: 0.04em; }
.proof-band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proof-band-grid article { min-width: 0; padding-left: 15px; border-left: 1px solid rgba(150, 218, 255, 0.26); }
.proof-band-grid span, .proof-band-grid b { display: block; }
.proof-band-grid span { color: var(--ice); font: 700 10px/1 var(--f-ui); letter-spacing: 0.2em; }
.proof-band-grid b { margin-top: 8px; color: var(--title); font: 700 15px/1.25 var(--f-ui); }
.proof-band-grid p { margin: 7px 0 0; color: var(--text); font-size: 12.5px; line-height: 1.5; }

/* "and more": an item tooltip - the options in MU blue */
.tooltip-box { max-width: 520px; margin: 34px auto 0; padding: 16px 22px 18px; background: rgba(0, 0, 0, 0.86); border: 1px solid rgba(120, 140, 170, 0.35); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); text-align: center; font: 700 13px/1.75 var(--f-ui); }
.tooltip-box .tt-name { color: var(--exc); font-size: 15px; margin-bottom: 2px; text-shadow: 0 0 8px rgba(96, 232, 136, 0.35); }
.tooltip-box .tt-white { color: #fff; margin-bottom: 8px; }
.tooltip-box ul { list-style: none; padding: 0; margin: 0; color: var(--blue); }

/* trailer */
.trailer { position: relative; max-width: 1020px; margin: 0 auto; }
.trailer .mkframe { aspect-ratio: 16 / 9; }
.trailer .play-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 24px; padding: 6px; }
.shot { display: block; aspect-ratio: 16 / 9; transition: filter 0.2s; }
.shot:hover { filter: drop-shadow(0 0 14px rgba(110, 176, 255, 0.5)) brightness(1.08); }
.shot:nth-child(1), .shot:nth-child(8) { grid-column: span 2; grid-row: span 2; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { margin: 0; text-align: center; padding-top: 70px; }
.step .slot { margin: 0 auto 12px; }
.step p { color: var(--text); margin: 0; font-size: 13.5px; }
.step-n { position: absolute !important; top: 15px; left: 18px; z-index: 2 !important; width: 26px; height: 26px; display: grid; place-items: center; font: 700 12px/1 var(--f-ui); color: var(--ice); background: url("../ui/pip-on.png") center / contain no-repeat; text-shadow: 0 0 4px #000, 0 0 2px #000; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 30px 22px; align-items: stretch; max-width: 1060px; margin: 0 auto; }
.price-assurance { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 960px; margin: 0 auto 32px; border: 1px solid var(--line-2); background: rgba(5, 13, 25, 0.58); }
.price-assurance > div { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 13px 16px; border-left: 1px solid var(--line); }
.price-assurance > div:first-child { border-left: 0; }
.price-assurance img { width: 31px; height: 31px; object-fit: contain; filter: drop-shadow(0 2px 4px #000); }
.price-assurance b, .price-assurance small { display: block; }
.price-assurance b { color: var(--title); font-size: 12px; }
.price-assurance small { color: var(--label); font-size: 11px; line-height: 1.35; }
.chaos-discovery { max-width: 860px; margin: 0 auto 30px; }
.chaos-discovery > summary { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; color: var(--ice); border: 1px solid var(--line-2); background: rgba(7, 19, 35, 0.74); font-weight: 700; font-size: 12px; letter-spacing: 0.03em; cursor: pointer; text-align: center; }
.chaos-discovery > summary:hover { background: rgba(15, 39, 68, 0.78); color: #fff; }
.chaos-discovery[open] > summary { margin-bottom: 18px; border-color: var(--ice-a); }
.plan-assurance { margin: -6px 0 14px; color: var(--label); text-align: center; font-size: 10.5px; letter-spacing: 0.04em; }
.plan { display: flex; flex-direction: column; margin: 0; padding: 66px 18px 34px; }
.plan-price { font: 900 46px/1 var(--f-title); color: var(--value); margin: 12px 0 2px; text-align: center; text-shadow: 0 0 18px rgba(110, 176, 255, 0.35); }
.plan-period { color: var(--label); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; margin: 0 0 8px; }
.plan-blurb { color: var(--text); text-align: center; font-size: 13px; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.plan li {
  display: flex; align-items: center; gap: 10px; padding: 3px 8px; font-size: 12.5px; color: var(--text);
  border-style: solid; border-width: 6px; border-color: transparent; border-image: url("../ui/field.png") 6 fill stretch;
}
.plan li::before { content: ""; width: 13px; height: 13px; flex: none; background: url("../ui/pip-on.png") center / contain no-repeat; }
.plan-hot { filter: drop-shadow(0 0 1px rgba(150, 218, 255, 0.9)) drop-shadow(0 0 18px rgba(110, 176, 255, 0.45)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
.plan-hot .plan-price { color: var(--ice); }
.plan-ribbon {
  position: absolute !important; top: -26px; left: 50%; transform: translateX(-50%); z-index: 3 !important;
  height: 30px; padding: 0 24px; display: grid; place-items: center; white-space: nowrap;
  background: url("../ui/bar-btn-hot.png") center / 100% 100% no-repeat;
  font: 700 10.5px/1 var(--f-ui); letter-spacing: 0.24em; text-transform: uppercase; color: #fff; text-shadow: 0 0 8px rgba(150, 218, 255, 0.9);
}

/* faq */
.faq details { margin-bottom: 10px; border-style: solid; border-width: 10px; border-color: transparent; border-image: url("../ui/inset.png") 10 fill stretch; }
.faq details[open] { filter: drop-shadow(0 0 1px rgba(150, 218, 255, 0.8)) drop-shadow(0 0 10px rgba(110, 176, 255, 0.3)); }
.faq summary { list-style: none; padding: 6px 44px 6px 8px; font: 700 14px/1.4 var(--f-ui); color: var(--title); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 26px; height: 26px; margin-top: -13px; background: url("../ui/arrow-dn.png") center / contain no-repeat; }
.faq details[open] summary::after { background-image: url("../ui/arrow-up.png"); }
.faq summary:hover { color: var(--ice); }
.faq details p { padding: 4px 8px 8px; margin: 0; color: var(--text); }

/* contact */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 380px)); justify-content: center; gap: 22px; margin-bottom: 34px; }
.contact-card { display: flex; align-items: center; gap: 16px; color: var(--title); margin: 0; padding: 66px 22px 36px; }
.contact-card:hover { color: var(--title); text-shadow: none; filter: drop-shadow(0 0 16px rgba(110, 176, 255, 0.4)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
.contact-card .slot img { width: 34px; height: 34px; }
.contact-card small { display: block; color: var(--label); font: 700 11px/1 var(--f-ui); letter-spacing: 0.3em; margin-bottom: 6px; }
.contact-card b { display: block; font: 700 24px/1.15 var(--f-ui); color: var(--value); }

/* footer */
.footer { position: relative; margin-top: 30px; padding: 54px 0 24px; background: linear-gradient(180deg, rgba(5, 10, 18, 0.9), #020407); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 44px; background: url("../ui/line-orn.png") center / auto 100% no-repeat; }
.footer-in { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.footer-brand p { color: var(--dim); max-width: 340px; margin-top: 14px; font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-cols h4 { font: 700 11px/1 var(--f-ui); letter-spacing: 0.26em; color: var(--ice); text-transform: uppercase; margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--label); font-size: 13px; padding: 3px 0; }
.footer-cols a:hover { color: var(--ice); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }

/* modal & lightbox */
.modal, .lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(1, 3, 6, 0.9); padding: 24px; animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-box { position: relative; width: min(1100px, 100%); }
.modal-video .modal-slot { aspect-ratio: 16 / 9; background: #000; }
.modal-video video { width: 100%; height: 100%; }
.modal-x, .lb-x { position: absolute; top: -44px; right: 0; width: 34px; height: 34px; border: 0; background: url("../ui/close.png") center / contain no-repeat; font-size: 0; }
.modal-x:hover, .lb-x:hover { background-image: url("../ui/close-hot.png"); }
.lightbox img { max-width: min(1500px, 92vw); max-height: 86vh; box-shadow: 0 0 0 1px var(--line-2), 0 20px 60px #000; }
.lb-x { top: 20px; right: 20px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 54px; border: 0; background: url("../ui/arrow-l.png") center / contain no-repeat; font-size: 0; }
.lb-next { background-image: url("../ui/arrow-r.png"); }
.lb-prev { left: 22px; } .lb-next { right: 22px; }
.lb-prev:hover, .lb-next:hover { filter: drop-shadow(0 0 8px rgba(150, 218, 255, 0.8)); }

/* ================================================================ forms */

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font: 700 11.5px/1.3 var(--f-ui); color: var(--label); letter-spacing: 0.08em; text-transform: uppercase; }
.field small { color: var(--dim); font-size: 11.5px; }
input, select, textarea {
  width: 100%;
  padding: 6px 8px;
  border-style: solid; border-width: 6px; border-color: transparent;
  border-image: url("../ui/field.png") 6 fill stretch;
  background: #02060c; background-clip: padding-box;
  color: var(--value); font: 400 14px/1.4 var(--f-ui);
  border-radius: 0;
}
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 1px rgba(150, 218, 255, 0.7), 0 0 14px rgba(110, 176, 255, 0.35); }
select { appearance: none; -webkit-appearance: none; padding-right: 32px; background: #02060c url("../ui/arrow-dn.png") right 4px center / 22px 22px no-repeat; background-clip: padding-box; }
textarea { resize: vertical; }
input[type="file"] { padding: 4px; font-size: 12.5px; }
input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; margin: 0; padding: 0; border: 0;
  background: url("../ui/check.png") center / contain no-repeat;
}
input[type="checkbox"]:checked { background-image: url("../ui/check-on.png"); filter: drop-shadow(0 0 5px rgba(150, 218, 255, 0.7)); }
input[type="radio"] { width: 18px; height: 18px; background-image: url("../ui/pip-off.png"); }
input[type="radio"]:checked { background-image: url("../ui/pip-on.png"); filter: drop-shadow(0 0 5px rgba(150, 218, 255, 0.8)); }
.field-hot input { box-shadow: 0 0 0 1px rgba(150, 218, 255, 0.45), 0 0 12px rgba(110, 176, 255, 0.25); }
.check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 8px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.seg label { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); background: rgba(2, 6, 12, 0.7); }
.row-btns, .btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-row { margin: 10px 0; }
.inline-form { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.inline-form input[type="date"] { width: auto; }

/* auth */
.auth-wrap { min-height: calc(100vh - 380px); display: grid; place-items: center; padding: 70px 16px; }
.auth-card { width: min(450px, 100%); padding: 74px 26px 40px; margin: 0; }
.auth-wide { width: min(660px, 100%); }
.auth-card .kicker { text-align: center; }
.auth-links { text-align: center; margin: 16px 0 0; color: var(--dim); font-size: 13px; }

.page-text .prose { color: var(--text); }
.prose h2 { font: 700 18px/1.3 var(--f-ui); color: var(--title); margin-top: 1.6em; letter-spacing: 0.04em; }

/* ================================================================ panels (account + admin) */

.panel-body { background: var(--ink); }
.panel-top { position: sticky; top: 0; z-index: 40; height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; background: linear-gradient(180deg, #0b1424, #04080f); box-shadow: 0 1px 0 var(--line-2), 0 8px 24px rgba(0, 0, 0, 0.5); }
.panel-top .logo-text { font-size: 18px; }
.panel-top .logo-wing { width: 38px; height: 15px; }
.panel-user { display: flex; align-items: center; gap: 10px; }
.who { display: inline-flex; align-items: center; gap: 8px; color: var(--title); font-weight: 700; font-size: 13px; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; background: url("../ui/slot-blue.png") center / contain no-repeat; color: var(--ice); font-weight: 700; font-size: 13px; }
.panel-shell { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 62px); }
.panel-side { padding: 18px 12px; background: linear-gradient(90deg, rgba(8, 16, 30, 0.9), rgba(4, 8, 14, 0.6)); box-shadow: inset -1px 0 0 var(--line); }
.panel-side nav { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 4px; }
.panel-side a {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px;
  border-style: solid; border-color: transparent; border-width: 12px 16px;
  border-image: url("../ui/btn-off.png") 18 26 fill stretch;
  color: var(--text); font: 700 12px/1 var(--f-ui); letter-spacing: 0.06em; text-transform: uppercase;
}
.panel-side a:hover { border-image-source: url("../ui/btn.png"); color: #fff; text-shadow: 0 0 8px rgba(150, 218, 255, 0.72); }
.panel-side a.on { border-image-source: url("../ui/btn-hot.png"); color: #fff; filter: drop-shadow(0 0 8px rgba(110, 176, 255, 0.45)); }
.panel-side a .mi { width: 26px; height: 26px; margin: -6px 0; flex: none; filter: drop-shadow(0 1px 2px #000); }
.panel-side a em { margin-left: auto; font-style: normal; font-size: 11px; color: #fff; background: rgba(255, 98, 82, 0.85); padding: 2px 7px; }
.panel-side .side-site { margin-top: 14px; }
.panel-main { padding: 26px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.panel-h1 { font: 800 26px/1.2 var(--f-title); letter-spacing: 0.05em; margin: 0 0 4px; }
.panel-main > .divider { --dh: 40px; margin: 0 0 18px; width: 360px; background-position: left center; }
.panel-main > .divider::before { display: none; }
.panel-main > .divider::after { left: 84px; right: 0; width: auto; transform-origin: 0 50%; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.cols-wide { grid-template-columns: 1.5fr 1fr; }
.cols > .box { margin-bottom: 0; }
.cols + .box, .cols + .cols, .box + .cols { margin-top: 24px; }

.tbl-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font: 700 10.5px/1 var(--f-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); padding: 10px 10px; white-space: nowrap; background: rgba(2, 6, 12, 0.6); border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.tbl tbody tr:hover td { background: rgba(110, 176, 255, 0.07); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.dim td { opacity: 0.5; }
.tbl td.actions { white-space: nowrap; }
.tbl code { white-space: nowrap; }

/* MkPair rows */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0 0 14px; }
.kv dt { color: var(--label); font-size: 12.5px; padding: 4px 0; }
.kv dd { margin: 0; color: var(--value); padding: 4px 0; border-bottom: 1px solid var(--line); }
.kv dd.big { font: 800 24px/1.1 var(--f-title); color: var(--ice); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { display: block; border-style: solid; border-width: 10px; border-color: transparent; border-image: url("../ui/inset.png") 10 fill stretch; padding: 8px 10px 10px; color: var(--text); transition: filter 0.15s; }
.stat:hover { color: var(--text); text-shadow: none; filter: drop-shadow(0 0 10px rgba(110, 176, 255, 0.45)); }
.stat small { display: block; color: var(--label); font: 700 10.5px/1.2 var(--f-ui); letter-spacing: 0.1em; text-transform: uppercase; }
.stat b { display: block; font: 800 24px/1.2 var(--f-title); color: var(--ice); margin-top: 6px; text-shadow: 0 0 12px rgba(110, 176, 255, 0.35); }

/* licence card */
.lic-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; padding: 66px 22px 38px; }
.lic-main h2 { font: 800 26px/1.2 var(--f-title); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lic-exp { color: var(--title); font-size: 15px; }
.lic-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.lic-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.lic-facts > div { position: relative; border-style: solid; border-width: 10px; border-color: transparent; border-image: url("../ui/inset.png") 10 fill stretch; padding: 6px 8px 8px; }
.lic-facts small { display: block; color: var(--label); font: 700 10.5px/1.2 var(--f-ui); letter-spacing: 0.1em; text-transform: uppercase; }
.lic-facts b { display: block; font-size: 16px; margin-top: 6px; word-break: break-word; color: var(--value); }
.lic-facts .copy { position: absolute; top: 0; right: 0; }
.lic-active { filter: drop-shadow(0 0 1px rgba(96, 232, 136, 0.6)) drop-shadow(0 0 14px rgba(96, 232, 136, 0.18)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }

/* MkBar: rimmed track + blue energy fill */
.bar { position: relative; height: 20px; max-width: 440px; border-style: solid; border-width: 6px 8px; border-color: transparent; border-image: url("../ui/track.png") 8 10 fill stretch; }
.bar span { display: block; height: 100%; background: url("../ui/fill.png") left center / auto 100% repeat-x; box-shadow: 0 0 10px rgba(110, 176, 255, 0.6); }

.code { margin: 0 0 10px; padding: 10px 12px; background: #010307; border: 1px solid var(--line-2); box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8); color: var(--ice); font-size: 13.5px; line-height: 1.6; overflow-x: auto; white-space: pre; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.filters input { width: auto; flex: 1 1 260px; }
.filters select { width: auto; min-width: 170px; }
.form-inline-box { margin: 10px 0 18px; padding: 14px; border-style: solid; border-width: 10px; border-color: transparent; border-image: url("../ui/inset.png") 10 fill stretch; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { display: inline-flex; align-items: center; height: 34px; padding: 0 6px; border-style: solid; border-color: transparent; border-width: 10px 14px; border-image: url("../ui/btn-off.png") 18 26 fill stretch; color: var(--text); font: 700 11px/1 var(--f-ui); letter-spacing: 0.08em; text-transform: uppercase; }
.tabs a:hover { border-image-source: url("../ui/btn.png"); color: #fff; }
.tabs a.on { border-image-source: url("../ui/btn-hot.png"); color: #fff; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pager a, .pager span { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 8px; font-weight: 700; font-size: 12px; background: url("../ui/btn-off.png") center / 100% 100% no-repeat; color: var(--text); }
.pager a:hover { background-image: url("../ui/btn.png"); color: #fff; }
.pager .cur { background-image: url("../ui/btn-hot.png"); color: #fff; }
.pager .gap { background: none; }

/* buy page */
.plans-panel { max-width: none; margin-bottom: 22px; }
.plan-pick { transition: filter 0.15s; }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick .plan-check { display: grid; place-items: center; height: 36px; font-size: 0; background: url("../ui/btn-off.png") center / 100% 100% no-repeat; }
.plan-pick .plan-check::before { content: "Choose"; font: 700 11.5px/1 var(--f-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.plan-pick:hover { filter: drop-shadow(0 0 12px rgba(110, 176, 255, 0.35)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
.plan-pick:has(input:checked), .plan-pick.picked { filter: drop-shadow(0 0 1px rgba(150, 218, 255, 1)) drop-shadow(0 0 18px rgba(110, 176, 255, 0.55)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
.plan-pick:has(input:checked) .plan-check, .plan-pick.picked .plan-check { background-image: url("../ui/btn-hot.png"); }
.plan-pick:has(input:checked) .plan-check::before, .plan-pick.picked .plan-check::before { content: "Selected"; color: #fff; }
.buy-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 6px 14px; border-style: solid; border-width: 10px; border-color: transparent; border-image: url("../ui/inset.png") 10 fill stretch; }

.paypal-slot { min-height: 50px; max-width: 420px; }
.paypal-msg { color: var(--bad); font-size: 13px; }
.contact-mini { display: flex; flex-wrap: wrap; gap: 10px; }

.dl-list { display: flex; flex-direction: column; gap: 10px; }
.dl { display: flex; align-items: center; gap: 14px; border-style: solid; border-width: 10px; border-color: transparent; border-image: url("../ui/inset.png") 10 fill stretch; padding: 4px 8px; }
.dl-body { flex: 1; min-width: 0; }
.dl-body h3 { font: 700 15px/1.3 var(--f-ui); margin: 0 0 2px; }
.dl-body p { margin: 0 0 2px; font-size: 13px; }

.thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.msg { border-style: solid; border-width: 10px; border-color: transparent; border-image: url("../ui/inset.png") 10 fill stretch; padding: 4px 8px 6px; max-width: 860px; }
.msg-staff { margin-left: auto; filter: drop-shadow(0 0 8px rgba(110, 176, 255, 0.3)); }
.msg-staff .msg-head b { color: var(--ice); }
.msg-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.msg-head small { color: var(--dim); }
.msg-body { color: var(--text); word-wrap: break-word; }

.howto { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.howto li { counter-increment: s; position: relative; padding: 2px 0 22px 56px; }
.howto li::before { content: counter(s); position: absolute; left: 6px; top: 0; width: 34px; height: 34px; display: grid; place-items: center; font: 700 14px/1 var(--f-ui); color: var(--ice); background: url("../ui/slot-blue.png") center / contain no-repeat; text-shadow: 0 0 6px rgba(150, 218, 255, 0.8); }
.howto li::after { content: ""; position: absolute; left: 22px; top: 40px; bottom: 4px; width: 1px; background: linear-gradient(180deg, var(--ice-a), transparent); }
.howto li:last-child::after { display: none; }
.howto h3 { font: 700 15px/1.3 var(--f-ui); margin: 6px 0 6px; letter-spacing: 0.04em; }
.howto p { color: var(--text); }

.cust-head h2 { font: 800 26px/1.2 var(--f-title); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.danger-zone { filter: drop-shadow(0 0 10px rgba(255, 98, 82, 0.25)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
.plan-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.plan-edit { margin: 0; }
.plan-new { opacity: 0.85; }
.settings .box { scroll-margin-top: 80px; }
.settings .check { margin: 6px 0 12px; }
.save-bar { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(180deg, transparent, var(--ink) 40%); display: flex; justify-content: flex-end; z-index: 5; }

/* installer */
.bare-body { min-height: 100vh; }
.bare-main { width: min(780px, calc(100% - 32px)); margin: 0 auto; padding: 46px 0 80px; }
.bare-main > .logo { display: flex; justify-content: center; margin-bottom: 26px; }
.install h3 { font: 700 13px/1 var(--f-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice); margin: 22px 0 12px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.checklist li.ok b { color: var(--exc); }
.checklist li.bad b { color: var(--bad); }
.checklist small { display: block; color: var(--warn); margin-left: 22px; }

/* ================================================================ responsive */

@media (max-width: 1100px) {
  .more-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr; }
  .hl-grid { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .hl:nth-child(3) { border-left: 0; }
}
@media (max-width: 960px) {
  .quick-path-in { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .quick-points { max-width: 680px; margin: 0 auto; }
  .quick-cta { justify-self: center; }
  .proof-band-in { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .proof-band-grid { max-width: 700px; margin: 0 auto; text-align: left; }
  .navtoggle { display: block; }
  .navlinks { position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px; background: linear-gradient(180deg, #0a1424, #04080f); box-shadow: 0 1px 0 var(--line-2), 0 20px 40px #000; transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform 0.25s, opacity 0.25s; }
  .navlinks.open { transform: none; opacity: 1; pointer-events: auto; }
  .navlinks a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .navlinks a:not(.btn)::before { display: none; }
  .navlinks .btn { margin-top: 12px; }
  .navsep { display: none; }
  .navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .panel-shell { grid-template-columns: 1fr; }
  .panel-side { padding: 8px; overflow-x: auto; box-shadow: inset 0 -1px 0 var(--line); }
  .panel-side nav { position: static; flex-direction: row; gap: 4px; }
  .panel-side a { white-space: nowrap; height: 42px; }
  .panel-side .side-site { margin: 0; }
  .cols, .cols-wide, .lic-hero { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-crest { min-height: 170px; padding-top: 70px; }
  .hero-crest::before { width: 126vw; height: 198px; top: 0; }
  .hero-title { font-size: clamp(31px, 10vw, 48px); letter-spacing: 0.055em; gap: 0.14em; }
  .hero-proof { gap: 9px 13px; font-size: 11px; }
  .quick-path { padding: 38px 0; }
  .quick-points { grid-template-columns: 1fr; text-align: left; gap: 12px; }
  .price-assurance { grid-template-columns: 1fr; }
  .price-assurance > div { border-left: 0; border-top: 1px solid var(--line); }
  .price-assurance > div:first-child { border-top: 0; }
  .systems-list { margin-top: 32px; }
  .systems-list > summary { align-items: flex-start; flex-direction: column; gap: 3px; padding: 10px 16px; }
  .proof-band { padding: 48px 0; }
  .proof-band-grid { grid-template-columns: 1fr; gap: 18px; }
  .proof-band-grid article { padding-left: 13px; }
  .topnav-in { height: 62px; }
  .navlinks { top: 62px; z-index: 10000; }
  .logo-text { font-size: 17px; }
  .logo-wing { width: 30px; }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .shot:nth-child(1), .shot:nth-child(8) { grid-column: span 2; grid-row: span 1; }
  .hl-grid { grid-template-columns: 1fr; }
  .hl { border-left: 0; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .panel-top { padding: 0 10px; }
  .panel-top .logo-text small, .who { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 20px; }
  .lic-facts { grid-template-columns: 1fr; }
  .plate { letter-spacing: 0.16em; font-size: 11px; }
  .hero-tag { letter-spacing: 0.16em; }
  .win-title, .box-head h3, .auth-card h1, .plan h3, .step h3 { left: 50px; right: 50px; font-size: 12px; letter-spacing: 0.1em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ================================================================ motion
   Everything here is decoration; prefers-reduced-motion (below) turns it off. */

/* windows power up as they scroll in (JS adds .rv, then .in) */
.rv { opacity: 0; transform: translateY(34px) scale(0.985); }
.rv.in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.win.rv.in, .plan.rv.in, .step.rv.in, .box.rv.in { animation: awake 1.4s ease-out backwards; animation-delay: var(--d, 0s); }
@keyframes awake {
  0% { filter: drop-shadow(0 0 0 rgba(110, 176, 255, 0)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
  35% { filter: drop-shadow(0 0 2px rgba(150, 218, 255, 1)) drop-shadow(0 0 26px rgba(110, 176, 255, 0.7)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
  100% { filter: drop-shadow(0 0 0 rgba(110, 176, 255, 0)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
}
.plan-hot.rv.in { animation: awake 1.4s ease-out backwards, breathe 3.2s ease-in-out 1.4s infinite; }

/* MkGlow breathing: 0.25 + 0.55 * pulse */
@keyframes breathe {
  0%, 100% { filter: drop-shadow(0 0 1px rgba(150, 218, 255, 0.5)) drop-shadow(0 0 8px rgba(110, 176, 255, 0.2)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
  50% { filter: drop-shadow(0 0 1px rgba(150, 218, 255, 1)) drop-shadow(0 0 22px rgba(110, 176, 255, 0.6)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
}
.plan-hot { animation: breathe 3.2s ease-in-out infinite; }
.lic-active { animation: breatheGreen 3.6s ease-in-out infinite; }
@keyframes breatheGreen {
  0%, 100% { filter: drop-shadow(0 0 1px rgba(96, 232, 136, 0.35)) drop-shadow(0 0 8px rgba(96, 232, 136, 0.1)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
  50% { filter: drop-shadow(0 0 1px rgba(96, 232, 136, 0.8)) drop-shadow(0 0 18px rgba(96, 232, 136, 0.3)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
}

/* light sweeps across a button on hover */
.btn::after { content: ""; position: absolute; inset: -13px -19px; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(200, 236, 255, 0.45) 50%, transparent 65%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0; mix-blend-mode: screen; }
.btn:hover::after { opacity: 1; animation: sweep 0.75s ease-out; }
@keyframes sweep { from { background-position: 130% 0; } to { background-position: -40% 0; } }
.btn-lg::after { inset: -15px -22px; }
.btn-sm::after { inset: -11px -16px; }
.btn-xs::after { inset: -8px -12px; }

/* hero: slow push on the video, wings breathing, plate socket glowing */
.hero-video { animation: kb 26s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1.14) translateX(-1.5%); } }
.hero-crest .logo-wing { animation: wingL 4.5s ease-in-out infinite; transform-origin: right center; }
.hero-crest .logo-wing.r { animation-name: wingR; transform-origin: left center; }
@keyframes wingL { 0%, 100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-4px); } }
@keyframes wingR { 0%, 100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-4px); } }
.hero-title { animation: titleGlow 4s ease-in-out 1.2s infinite; }
@keyframes titleGlow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(110, 176, 255, 0.3)) drop-shadow(0 8px 24px #000); }
  50% { filter: drop-shadow(0 0 34px rgba(110, 176, 255, 0.65)) drop-shadow(0 8px 24px #000); }
}
.plate-sock { animation: sockPulse 2.2s ease-in-out infinite; }
@keyframes sockPulse { 0%, 100% { text-shadow: 0 0 4px rgba(150, 218, 255, 0.5); } 50% { text-shadow: 0 0 12px rgba(150, 218, 255, 1), 0 0 20px rgba(110, 176, 255, 0.8); } }
.hero-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }

/* game menu icons bob when their window is hovered */
.feat:hover .slot img, .step:hover .slot img, .hl:hover .slot img, .contact-card:hover .slot img { animation: bob2 0.9s ease-in-out infinite; }
@keyframes bob2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.slot { position: relative; }
.slot::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 2px; height: 10px; background: radial-gradient(ellipse, rgba(110, 176, 255, 0.55), transparent 70%); animation: slotGlow 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes slotGlow { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* the energy bar fills on load and its light runs */
.bar span { animation: barIn 1.4s cubic-bezier(.2,.8,.2,1) both, energy 2.4s linear 1.4s infinite; }
@keyframes barIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes energy { from { background-position: 0 center; } to { background-position: 368px center; } }

/* the tooltip's name breathes like an excellent item */
.tooltip-box .tt-name { animation: excGlow 2.4s ease-in-out infinite; }
@keyframes excGlow { 0%, 100% { text-shadow: 0 0 6px rgba(96, 232, 136, 0.25); } 50% { text-shadow: 0 0 14px rgba(96, 232, 136, 0.8); } }

/* the click effect: an ice sparkle where the mouse lands, like in game */
.click-fx { position: fixed; z-index: 999; width: 90px; height: 90px; margin: -45px 0 0 -45px; pointer-events: none;
  background: url("../ui/sparkle.png") center / contain no-repeat; mix-blend-mode: screen; animation: clickFx 0.55s ease-out forwards; }
@keyframes clickFx { from { opacity: 1; transform: scale(0.2) rotate(0deg); } to { opacity: 0; transform: scale(1.3) rotate(60deg); } }

/* loading screen, first visit of a session: the MU loading bar */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, #0c1a30, #020408 70%); transition: opacity 0.5s ease, visibility 0.5s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-in { display: flex; flex-direction: column; align-items: center; gap: 22px; width: min(520px, 86vw); }
.loader .logo-big .logo-text { font-size: clamp(30px, 6vw, 46px); }
.loader-bar { width: 100%; height: 22px; border-style: solid; border-width: 6px 8px; border-color: transparent; border-image: url("../ui/track.png") 8 10 fill stretch; }
.loader-bar span { display: block; height: 100%; width: 0; background: url("../ui/fill.png") left center / auto 100% repeat-x; box-shadow: 0 0 12px rgba(110, 176, 255, 0.8); transition: width 0.2s linear; }
.loader-tip { font: 700 11px/1 var(--f-ui); letter-spacing: 0.3em; color: var(--label); text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; }
  .loader, .click-fx, .hero-fx { display: none !important; }
}

/* ================================================================ painted art from the client */

/* dungeons */
.emblem { position: relative; width: 230px; height: 150px; margin: -20px auto 6px; }
.emblem-base { position: absolute; left: 50%; bottom: 0; width: 230px; transform: translateX(-50%); opacity: 0.9; filter: brightness(0.75) saturate(0.6); }
.emblem-crest { position: absolute; left: 50%; bottom: 46px; width: 110px; transform: translateX(-50%); filter: drop-shadow(0 0 18px rgba(110, 176, 255, 0.55)); animation: emblemFloat 4.5s ease-in-out infinite; z-index: 1; }
@keyframes emblemFloat { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }
.dungeons { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 28px; }
.dungeon { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; }
.dungeon .mkframe { width: 100%; aspect-ratio: 1068 / 544; overflow: hidden; }
.dungeon .mkframe img { transition: transform 6s ease, filter 0.4s; }
.dungeon:hover .mkframe img { transform: scale(1.08); filter: brightness(1.12) saturate(1.1); }
.dungeon:hover .mkframe { filter: drop-shadow(0 0 16px rgba(110, 176, 255, 0.45)); }
.dungeon .plate { margin-top: -22px; z-index: 3; min-width: 200px; justify-content: center; }

/* the boss band */
.boss-band { position: relative; overflow: hidden; padding: clamp(90px, 12vw, 170px) 0; text-align: center; isolation: isolate; }
.boss-bg { position: absolute; inset: -40px 0; z-index: -2; background: center / cover no-repeat; filter: brightness(1.25) saturate(1.15) contrast(1.05); transform: translateY(var(--par, 0px)) scale(1.08); will-change: transform; }
.boss-band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(3, 7, 14, 0.55) 0%, rgba(3, 7, 14, 0.1) 38%, rgba(3, 7, 14, 0.55) 80%), linear-gradient(180deg, var(--ink) 0%, transparent 16%, transparent 84%, var(--ink) 100%); }
.boss-in h2 { font: 800 clamp(28px, 4.4vw, 52px)/1.12 var(--f-title); letter-spacing: 0.04em; margin: 0 0 14px; filter: drop-shadow(0 4px 18px #000); }
.boss-in p { max-width: 620px; margin: 0 auto; color: var(--title); font-size: 15.5px; text-shadow: 0 2px 10px #000; }
.boss-in .hero-cta { animation: none; }

/* dark corridors behind some sections */
#how, #faq { overflow: hidden; }
#how::before, #faq::before { content: ""; position: absolute; top: 0; bottom: 0; width: min(46vw, 640px); z-index: -1; opacity: 0.4; pointer-events: none; background: center / cover no-repeat; }
#how::before { left: 0; background-image: url("../art/corridor-1.jpg"); -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); }
#faq::before { right: 0; background-image: url("../art/corridor-2.jpg"); transform: scaleX(-1); -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); }
#how, #faq { isolation: isolate; }

/* the treasure box's glowing frame turns round a slot on hover */
.slot::before { content: ""; position: absolute; inset: -14px; z-index: 2; pointer-events: none; opacity: 0;
  background: url("../ui/glowframe.png") 0 0 / 1656px 92px no-repeat; mix-blend-mode: screen; transition: opacity 0.2s; }
.feat:hover .slot::before, .step:hover .slot::before, .hl:hover .slot::before, .contact-card:hover .slot::before, .slot:hover::before { opacity: 1; animation: glowframe 1.1s steps(18) infinite; }
@keyframes glowframe { from { background-position: 0 0; } to { background-position: -1656px 0; } }

/* login / register: the boss scene behind the window */
body.auth main { position: relative; isolation: isolate; }
body.auth main::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../art/boss.jpg") center 30% / cover no-repeat; opacity: 0.9; filter: brightness(1.2) saturate(1.1); }
body.auth main::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgba(3, 7, 14, 0.55), rgba(3, 7, 14, 0.15) 45%, rgba(3, 7, 14, 0.7) 85%), linear-gradient(180deg, var(--ink), transparent 15%, transparent 85%, var(--ink)); }

/* panel banner: a painting in a frame with the welcome on it */
.banner { position: relative; margin: 0 0 24px; }
.banner .mkframe { height: 170px; overflow: hidden; }
.banner .mkframe img { object-position: center 40%; filter: brightness(0.75); }
.banner-text { position: absolute; left: 50px; top: 50%; transform: translateY(-50%); z-index: 3; }
.banner-text .kicker { margin-bottom: 8px; }
.banner-text h2 { font: 800 clamp(22px, 2.6vw, 32px)/1.15 var(--f-title); margin: 0 0 10px; letter-spacing: 0.04em; filter: drop-shadow(0 3px 10px #000); }
.banner-text .plate { height: 36px; }
.banner-side { position: absolute; right: 50px; top: 50%; transform: translateY(-50%); z-index: 3; display: flex; gap: 10px; }

@media (max-width: 960px) {
  .dungeons { grid-template-columns: 1fr; }
  #how::before, #faq::before { width: 100%; opacity: 0.18; }
  .banner-side { display: none; }
}
@media (max-width: 640px) {
  .banner .mkframe { height: 150px; }
  .banner-text { left: 32px; right: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .boss-bg { transform: scale(1.08) !important; }
}

.banner-shade { position: absolute; inset: 19px 21px 18px 21px; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 7, 14, 0.85) 0%, rgba(3, 7, 14, 0.45) 45%, rgba(3, 7, 14, 0.1) 70%, rgba(3, 7, 14, 0.5) 100%); }

@media (max-width: 640px) {
  .hero-crest .logo-wing { width: 34px; height: 14px; }
  .hero-title { font-size: clamp(34px, 11vw, 46px); }
  .hero .plate { letter-spacing: 0.12em; }
  .emblem { transform: scale(0.8); }
}

/* contact: Kanturu's blue cave behind the cards */
#contact { overflow: hidden; isolation: isolate; }
#contact::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.45;
  background: url("../art/dungeon-kanturu.jpg") center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 55%, #000 25%, transparent 75%); }

/* the panel sidebar ends on the demon crest, faint */
.panel-side { position: relative; }
.panel-side::after { content: ""; position: absolute; left: 50%; bottom: 30px; width: 150px; height: 150px; margin-left: -75px; pointer-events: none;
  background: url("../ui/crest.png") center / contain no-repeat; opacity: 0.12; filter: grayscale(0.3); }
@media (max-width: 960px) { .panel-side::after { display: none; } }

/* only a window's first heading sits on its plate; later ones are MkHeading:
   bold title + rule inside the body */
.box > .box-head ~ .box-head { justify-content: space-between; margin-top: 22px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.box > .box-head ~ .box-head h3 {
  position: static !important; height: auto; left: auto; right: auto; top: auto;
  text-align: left; font-size: 12.5px; line-height: 1.3; overflow: visible;
  animation: none; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--title); filter: none;
}
.box > .box-head ~ .box-head h3::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 8px; vertical-align: -2px; background: url("../ui/pip-on.png") center / contain no-repeat; }

/* ================================================================ studio polish */

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10000;
  padding: 8px 14px; background: #041018; color: #fff; border: 1px solid var(--ice-a);
}
.skip:focus { top: 12px; }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10001; height: 3px;
  background: rgba(150, 218, 255, 0.08); pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #3a7ec8, var(--ice));
  box-shadow: 0 0 12px var(--ice);
  transform-origin: left;
}
body.home .announce ~ .scroll-progress { top: 0; }

.film-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/></svg>");
}

html { scrollbar-color: #4a8ec8 #050a12; scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #050a12; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #6eb0ff, #1d4a78); border: 2px solid #050a12; }
::-webkit-scrollbar-thumb:hover { background: var(--ice); }

#main [id], .section[id], .highlights[id] { scroll-margin-top: 88px; }

.navlinks a.spy-on:not(.btn) { color: var(--ice); }
.navlinks a.spy-on:not(.btn)::before { opacity: 1; transform: none; }
.navlinks .nav-licenses.spy-on { border-color: var(--ice); box-shadow: 0 0 16px rgba(110, 176, 255, 0.25); }

.hero-rays {
  position: absolute; inset: -10%; z-index: -1; pointer-events: none;
  background:
    conic-gradient(from 210deg at 50% 42%, transparent 0 8%, rgba(150, 218, 255, 0.07) 10%, transparent 14%, transparent 48%, rgba(110, 176, 255, 0.06) 50%, transparent 54%);
  animation: raySpin 48s linear infinite;
  mix-blend-mode: screen;
}
@keyframes raySpin { to { transform: rotate(360deg); } }

.hero-proof li {
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line-2);
  background: rgba(4, 12, 22, 0.55);
  backdrop-filter: blur(8px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}

.feat .mkframe { overflow: hidden; }
.feat .mkframe video { transition: transform 1.1s ease; }
.feat:hover .mkframe video { transform: scale(1.07); }
.feat-n {
  position: absolute; right: 28px; bottom: 26px; z-index: 4;
  font: 800 22px/1 var(--f-title); letter-spacing: 0.12em; color: rgba(232, 238, 248, 0.88);
  text-shadow: 0 2px 12px #000, 0 0 14px rgba(110, 176, 255, 0.55);
  pointer-events: none;
}

.dungeon-veil {
  position: absolute; inset: 19px 21px 18px 21px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 46%, rgba(2, 6, 12, 0.72) 100%);
}

.plan-hot { transform: translateY(-10px); }
.plans { padding-top: 18px; }

.footer-cta {
  position: relative; margin: -30px 0 40px; padding: 42px 0 8px;
  background: linear-gradient(90deg, transparent, rgba(14, 40, 72, 0.45), transparent);
  border-bottom: 1px solid var(--line);
}
.footer-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-cta h2 { margin: 0; font: 800 clamp(22px, 3vw, 34px)/1.15 var(--f-title); }
.footer-cta .hero-cta { margin-top: 0; animation: none; }
body.home .footer-cta { display: none; }

.auth-stage {
  display: grid; grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1fr);
  gap: 36px; align-items: center; width: min(980px, 100%);
}
.auth-stage-wide { width: min(1120px, 100%); grid-template-columns: minmax(240px, 0.75fr) minmax(420px, 1.2fr); }
.auth-side { text-align: left; padding: 12px 8px 12px 4px; }
.auth-side h2 { font: 800 clamp(26px, 3.4vw, 40px)/1.12 var(--f-title); margin: 0 0 14px; }
.auth-side p { color: var(--text); max-width: 360px; text-shadow: 0 2px 10px #000; }
.auth-proof { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.auth-proof li { display: flex; align-items: center; gap: 10px; color: var(--title); font: 700 13px/1.2 var(--f-ui); letter-spacing: 0.04em; }
.auth-proof li::before { content: ""; width: 11px; height: 11px; background: url("../ui/pip-on.png") center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(150, 218, 255, 0.8)); }
.auth-wrap { min-height: calc(100vh - 280px); padding: 90px 16px 70px; }
.lost-page { min-height: 70vh; display: grid; place-items: center; }

.panel-body {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(40, 90, 160, 0.16), transparent 42%),
    linear-gradient(180deg, #07111d, var(--ink) 40%);
}
.panel-main { position: relative; }
.panel-top { backdrop-filter: blur(12px); }

@media (max-width: 960px) {
  .auth-stage, .auth-stage-wide { grid-template-columns: 1fr; width: min(660px, 100%); }
  .auth-side { text-align: center; }
  .auth-side p { margin-left: auto; margin-right: auto; }
  .auth-proof { align-items: center; }
  .footer-cta-in { justify-content: center; text-align: center; }
  .plan-hot { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rays, .rune-track, .film-grain { animation: none !important; }
}
