:root {
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
  color: #f7f3ff;
  background: #110d1b;
  --bg: #110d1b;
  --panel: #1e172d;
  --line: #382b4e;
  --muted: #bab0ca;
  --accent: #c798ff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: min(1200px, calc(100% - 3rem)); margin-inline: auto; }
main { flex: 1; }
p, h1, h2, h3 { margin: 0; }
p { line-height: 1.62; color: var(--muted); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.75rem, 7vw, 5.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #e2c7ff; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid #ddaeff; outline-offset: 4px; }
.skip-link { position: absolute; top: .7rem; left: .7rem; padding: .65rem; z-index: 3; transform: translateY(-150%); background: #241a35; }
.skip-link:focus { transform: none; }
.header { border-bottom: 1px solid #302540; background: #15101f; }
.header-inner { display: flex; min-height: 75px; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: #f8f2ff; font: italic 900 1.25rem "Segoe UI Black", system-ui, sans-serif; white-space: nowrap; letter-spacing: -.055em; }
.brand b { color: #bb84f9; }
.brand img { filter: drop-shadow(0 0 10px #9048e94f); }
.main-nav { display: flex; gap: clamp(.7rem, 2.5vw, 2rem); align-items: center; }
.main-nav a { color: #c0b6d0; font-size: .94rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: #fff; }
.main-nav a[aria-current] { text-decoration: underline 2px #ae71ff; text-underline-offset: .55rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .62rem; border: 1px solid #5c427d; border-radius: .72rem; min-height: 44px; padding: .6rem .95rem; color: #f8f4ff; font-weight: 650; text-align: center; white-space: nowrap; }
.button:hover { color: white; }
.button span { font-size: 1.1rem; }
.primary { background: linear-gradient(155deg,#9a53f2,#682cc1 65%,#5722a9); border-color: #ac71fa; box-shadow: inset 0 1px 8px #c58eff53, 0 4px 14px #45237642; }
.primary:hover { background: linear-gradient(155deg,#ac70fc,#7938d2 65%,#6226b9); }
.quiet { background: #231a34d9; }
.quiet:hover { background: #31224b; border-color: #885cc2; }
.page { padding-block: 1.5rem 4.5rem; }
.hero { min-height: clamp(390px, 43vw, 535px); position: relative; display: flex; align-items: center; padding: clamp(1.4rem, 6vw, 5rem); background: linear-gradient(90deg, #181127f6 0%, #211738c7 37%, #24173c21 95%), url("/assets/twilight.svg") 56% center / cover; overflow: hidden; border: 1px solid #65438b; border-radius: 1.3rem; box-shadow: 0 24px 65px #08061170; }
.hero-content { position: relative; max-width: 34rem; }
.eyebrow { color: #d8aeff; display: flex; align-items: center; gap: .5rem; font-size: .73rem; font-weight: 720; letter-spacing: .15em; }
.dot { display: inline-block; width: .47rem; height: .47rem; flex: 0 0 auto; background: #c27bff; border-radius: 50%; }
.hero h1 { margin: .65rem 0 .6rem; color: #c388ff; font-family: "Segoe UI Black", "Arial Black", sans-serif; font-weight: 950; font-style: italic; font-size: clamp(2.7rem, 9vw, 7.2rem); letter-spacing: -.075em; text-shadow: 0 4px 22px #1a112e; }
.hero h1 span { color: #faf5ff; }
.hero p { font-size: clamp(1rem, 2vw, 1.28rem); max-width: 29rem; color: #e0d6ed; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.hero-caption { display: flex; align-items: center; gap: .5rem; position: absolute; bottom: 1rem; right: 1rem; color: #e0c9ff; border: 1px solid #745399; border-radius: .65rem; padding: .45rem .65rem; background: #20152dbd; font-size: .67rem; letter-spacing: .12em; }
.home-section { margin-block: 3.8rem 2rem; }
.section-heading { margin-bottom: 1.15rem; }
.section-heading h2 { margin-top: .38rem; }
.engines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.panel { background: linear-gradient(140deg,#211a31,#1a1427); border: 1px solid var(--line); border-radius: 1rem; }
.engine { padding: clamp(1rem, 3vw, 1.8rem); }
.engine-top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.engine-icon { display: grid; place-items: center; width: 55px; height: 55px; flex-shrink: 0; border-radius: .85rem; background: #2b2041; border: 1px solid #48355f; }
.pill { display: inline-flex; padding: .33rem .64rem; border: 1px solid #503767; border-radius: 999px; background: #281c3c; color: #dcc7f1; font-size: .72rem; letter-spacing: .07em; white-space: nowrap; }
.engine p, .account-banner p { margin: .65rem 0 .85rem; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 650; }
.text-link:hover { text-decoration: underline; }
.account-banner { display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; padding: clamp(1rem, 3vw, 1.8rem); background: radial-gradient(ellipse at right,#312052,#1c152b 70%); }
.account-banner h2 { margin-top: .38rem; }
.account-banner p { margin-bottom: 0; }
.subpage { max-width: 940px; margin: 0 auto; }
.subheading { padding: clamp(1.4rem, 4vw, 3.5rem) 0 1.7rem; }
.subheading h1 { margin: .48rem 0 .6rem; }
.subheading p { font-size: 1.08rem; }
.download-panel { display: flex; align-items: center; gap: 1rem; padding: 1.3rem; }
.download-details { min-width: 0; flex: 1; }
.download-details h2 { font-size: 1.65rem; overflow-wrap: anywhere; }
.download-details p { margin-top: .38rem; }
.hash { overflow-wrap: anywhere; margin-top: .65rem; font-size: .82rem; }
.subpage .section-heading { margin-top: 2rem; }
.steps { padding: 1rem 1.1rem 1rem 2.7rem; }
ol li { margin: .55rem 0; line-height: 1.52; color: #e0d7ed; }
.article { padding: clamp(1.05rem, 3vw, 1.8rem); margin-bottom: .8rem; scroll-margin-top: 1rem; }
.article h2 { margin: .5rem 0 .75rem; }
.article p { margin-bottom: .8rem; white-space: pre-line; }
.guide-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.guide-nav a:hover { border-color: var(--accent); }
code { background: #2b2040; color: #e6cdfb; padding: .14rem .25rem; border-radius: .2rem; overflow-wrap: anywhere; }
.auth-page { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.8fr); gap: clamp(1rem, 5vw, 4.5rem); align-items: center; min-height: min(640px, 73vh); padding-block: 2.5rem; }
.auth-aside { padding: clamp(1.1rem, 5vw, 4rem); border-radius: 1rem; border: 1px solid #543c72; background: linear-gradient(115deg,#1b142de8,#2d2056a8),url("/assets/twilight.svg") 65% center / cover; }
.auth-aside h1 { margin: .55rem 0 .8rem; font-size: clamp(2.15rem, 5.3vw, 4.1rem); }
.auth-panel, .profile-panel { padding: clamp(1rem, 3vw, 1.75rem); }
form label { display: block; font-weight: 620; margin-top: .8rem; margin-bottom: .35rem; }
form small { display: block; color: var(--muted); margin-top: .2rem; font-size: .82rem; font-weight: 400; }
form input, form select { width: 100%; border: 1px solid #534267; border-radius: .58rem; background: #151020; color: #f7f3ff; padding: .65rem .74rem; }
form input[type=file] { font-size: .87rem; }
form input::file-selector-button { background: #36244c; border: 1px solid #654a82; border-radius: .36rem; color: #f7f3ff; padding: .26rem .46rem; margin-right: .45rem; }
.form-message { min-height: 1.55rem; margin: .4rem 0; font-size: .88rem; overflow-wrap: anywhere; color: #c6f1d4; }
.form-message.error { color: #ffbdca; }
.full { width: 100%; }
.form-footer { margin-top: .85rem; font-size: .91rem; }
.profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 1rem; }
.profile-panel h2 { font-size: 1.65rem; margin-bottom: .5rem; }
.profile-panel p { font-size: .92rem; }
.skin-preview { display: grid; place-items: center; min-height: 160px; margin: .8rem 0; border-radius: .68rem; border: 1px solid #48335e; background: conic-gradient(#261b37 25%,#211630 0 50%,#261b37 0 75%,#211630 0) 0 0 / 20px 20px; color: var(--muted); }
.skin-preview canvas { width: 64px; height: 128px; image-rendering: pixelated; filter: drop-shadow(0 3px 7px #120d20); }
.logout-panel { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.logout-panel .form-message:empty { display: none; }
.muted { color: var(--muted); }
.footer { border-top: 1px solid #302540; background: #15101f; }
.footer-inner { padding-block: 1rem; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .7rem 1.5rem; }
.footer-inner p, .footer-inner > a:last-child { font-size: .81rem; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 1.5rem); }
  .header-inner { flex-wrap: wrap; padding-block: .65rem; gap: .55rem; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; padding-block: .25rem .6rem; justify-content: space-between; gap: .7rem; }
  .main-nav a { font-size: .85rem; }
  .header-account { min-height: 36px; padding: .3rem .58rem; }
  .hero { background-position: 61% center; }
  .hero-caption { display: none; }
  .auth-page, .engines, .profile-grid { grid-template-columns: 1fr; }
  .account-banner, .download-panel { flex-wrap: wrap; }
}
@media (max-width: 375px) {
  .main-nav { justify-content: flex-start; }
  .hero .button { width: 100%; }
  .hero { min-height: 420px; }
}
