/* Public site (_Layout.cshtml). Colours and fonts follow the game's UI style guide (Other5 Docs/UIStyleGuide.html):
   neon pink > magenta > blue for accents only, dark glass panels, Orbitron titles, Exo 2 body. */

:root {
    --pink: #ff2fb4;
    --magenta: #c13bff;
    --blue: #2fd2ff;
    --neon: linear-gradient(90deg, var(--pink), var(--magenta) 50%, var(--blue));
    --bg: #0b0a14;
    --bg2: #120f22;
    --panel: rgba(255, 255, 255, .045);
    --line: rgba(255, 255, 255, .1);
    --text: #f3f1fa;
    --muted: #b2adc8;
    --radius: 14px;
    --wide: 1180px;
    --title: "Orbitron", "Segoe UI", sans-serif;
    --body: "Exo 2", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: #8fe9ff; }

h1, h2, h3 { font-family: var(--title); font-weight: 700; line-height: 1.2; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.glow { background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: #000; padding: 8px 12px; }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.5em; border-radius: 999px; border: 1px solid transparent;
    font: 700 .85rem/1 var(--title); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
    cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-main { background: var(--neon); color: #fff; box-shadow: 0 6px 28px rgba(193, 59, 255, .35); }
.btn-main:hover { color: #fff; box-shadow: 0 8px 34px rgba(255, 47, 180, .45); }
.btn-line { border-color: rgba(255, 255, 255, .35); color: var(--text); background: rgba(255, 255, 255, .04); }
.btn-line:hover { color: #fff; border-color: var(--blue); }
.btn-big { font-size: 1rem; padding: 1em 2em; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btns, .btns.center { justify-content: center; }

/* ---------- header ---------- */

.top {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 10, 20, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.35rem var(--body); letter-spacing: .02em; }
.brand:hover { color: #fff; }
.brand img { width: 38px; height: 38px; clip-path: polygon(50% 4%, 93% 27%, 93% 73%, 50% 96%, 7% 73%, 7% 27%); }
.nav { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.on { color: #fff; background: rgba(255, 255, 255, .06); }
.nav .btn { margin-left: 6px; padding: .7em 1.2em; color: #fff; }
.nav .btn-line { color: var(--text); }
.nav .me img { width: 28px; height: 28px; border-radius: 50%; }
.nav .me { display: flex; align-items: center; gap: 8px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 8px 10px; cursor: pointer; }
.burger svg { width: 22px; height: 22px; display: block; }

@media (max-width: 960px) {
    .burger { display: block; }
    .nav {
        display: none; position: absolute; left: 0; right: 0; top: 68px;
        flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px;
        background: rgba(11, 10, 20, .97); border-bottom: 1px solid var(--line);
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px; font-size: 1.05rem; }
    .nav .btn { margin: 8px 0 0; }
}

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; min-height: min(86vh, 760px); display: flex; align-items: center; padding: 90px 0 70px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; }
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11, 10, 20, .95) 0%, rgba(11, 10, 20, .6) 45%, rgba(11, 10, 20, .05) 100%),
                linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-text { max-width: 640px; }
.hero h1 { margin-bottom: .35em; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: #e4e0f2; margin-bottom: 1.6em; }
.hero .small { margin-top: 1.2em; font-size: .95rem; color: var(--muted); }
.tag { display: inline-block; margin-bottom: 1.2em; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(47, 210, 255, .45); color: var(--blue); font: 700 .72rem var(--title); letter-spacing: .12em; text-transform: uppercase; background: rgba(47, 210, 255, .08); }

/* small page header for inner pages */
.pagehead { padding: 70px 0 30px; text-align: center; background: radial-gradient(ellipse at top, rgba(193, 59, 255, .22), transparent 65%); }
.pagehead .lead { color: var(--muted); font-size: 1.15rem; max-width: 680px; margin: 0 auto; }

/* ---------- sections ---------- */

.sect { padding: 80px 0; }
.sect.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sect-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sect-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { display: block; margin-bottom: .8em; color: var(--pink); font: 700 .75rem var(--title); letter-spacing: .16em; text-transform: uppercase; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-top: .2em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s; }
a.card:hover { border-color: rgba(47, 210, 255, .6); }
.card img { border-radius: 10px; margin-bottom: 16px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

.icon {
    width: 50px; height: 50px; border-radius: 12px; margin-bottom: 16px;
    display: grid; place-items: center; background: linear-gradient(135deg, rgba(255, 47, 180, .2), rgba(47, 210, 255, .2));
    border: 1px solid rgba(255, 255, 255, .12);
}
.icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* numbered steps */
.step { position: relative; }
.step .num {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 14px;
    background: var(--neon); color: #fff; font: 800 1rem var(--title);
}

/* screenshot + text rows */
.row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.row + .row { margin-top: 90px; }
.row.flip > :first-child { order: 2; }
.row h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.row p { color: var(--muted); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
@media (max-width: 860px) {
    .row { grid-template-columns: 1fr; gap: 26px; }
    .row.flip > :first-child { order: 0; }
    .row + .row { margin-top: 64px; }
}

.shot { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(193, 59, 255, .15); background: #000; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot.fit img { aspect-ratio: auto; height: auto; display: block; }
.shot.fit figcaption { position: static; border-radius: 0; padding: 8px 14px; background: var(--panel); }
.shot figcaption, .shot .cap { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .65); font-size: .82rem; color: #e8e4f5; }

/* A screenshot Matt still has to capture. Clearly marked so it's never mistaken for finished art. */
.shot.todo { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 20px; text-align: center; background: repeating-linear-gradient(45deg, #15122a, #15122a 14px, #1b1734 14px, #1b1734 28px); border: 2px dashed rgba(255, 47, 180, .55); box-shadow: none; }
.shot.todo strong { display: block; font: 700 .8rem var(--title); letter-spacing: .12em; text-transform: uppercase; color: var(--pink); margin-bottom: 6px; }
.shot.todo span { color: var(--muted); font-size: .95rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery .shot img { aspect-ratio: 16 / 10; }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
.gallery .wide img { aspect-ratio: auto; height: 100%; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .wide { grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } .gallery .wide { grid-column: auto; } }

/* the Register > Sign in > Dashboard > Launcher funnel */
.funnel { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: f; max-width: 980px; }
.funnel li { counter-increment: f; position: relative; padding: 22px 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.funnel li::before { content: counter(f); display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 10px; border-radius: 50%; background: var(--neon); font: 800 .9rem var(--title); color: #fff; }
.funnel li:not(:last-child)::after { content: "\203A"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--magenta); font-size: 1.8rem; line-height: 1; z-index: 1; }
.funnel b { display: block; font-family: var(--title); font-size: .92rem; margin-bottom: 4px; }
.funnel span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
    .funnel { grid-template-columns: 1fr 1fr; }
    .funnel li:nth-child(2)::after { display: none; }
}
@media (max-width: 420px) { .funnel li { padding: 18px 10px 16px; } .funnel li::after { display: none; } }

/* call-to-action band */
.cta { position: relative; overflow: hidden; border-radius: 22px; padding: 56px 28px; text-align: center; background: radial-gradient(ellipse at 20% 0%, rgba(255, 47, 180, .35), transparent 60%), radial-gradient(ellipse at 80% 100%, rgba(47, 210, 255, .3), transparent 60%), #17122c; border: 1px solid rgba(255, 255, 255, .12); }
.cta h2 { margin-bottom: .4em; }
.cta p { color: #ddd8ee; font-size: 1.12rem; max-width: 620px; margin: 0 auto 1.6em; }
.cta .funnel { margin-bottom: 30px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 16px 30px 16px 0; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* plain text pages (Pages/Show, About, CubeEscape, Contact) */
.prose { max-width: 820px; margin: 0 auto; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.4em; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 3em; }
.prose .ql-indent-2 { padding-left: 6em; }
.prose ol, .prose ul:not(.ticks) { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose code { padding: 1px 6px; border-radius: 4px; background: rgba(47, 210, 255, .1); font-size: .92em; }
.prose iframe.ql-video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 1.5em 0; }
/* legal pages (Home/TOS, EULA, Privacy): clause numbers are part of the text, sub-clauses indent */
.legal h2 { font-size: 1.15rem; }
.legal p { margin: 0 0 .7em; }
.legal .l2 { padding-left: 2em; }
.legal .l3 { padding-left: 4em; }
.legal .meta { color: var(--muted); }
.callout { margin: 0 0 2em; padding: 14px 18px; border-radius: 10px; background: rgba(255, 47, 180, .08); border: 1px solid rgba(255, 47, 180, .35); }
.callout p:last-child { margin-bottom: 0; }
.legal-old { max-width: 820px; margin: 20px auto; padding: 14px 18px; border-radius: 10px; background: rgba(47, 210, 255, .08); border: 1px solid rgba(47, 210, 255, .3); }
.draft { background: #fff3cd; color: #664d03; padding: .6em 1em; border-radius: 6px; text-align: center; }
.note { padding: 14px 18px; border-radius: 10px; background: rgba(47, 210, 255, .08); border: 1px solid rgba(47, 210, 255, .3); }
.note.ok { background: rgba(60, 220, 140, .1); border-color: rgba(60, 220, 140, .4); }
.note.bad { background: rgba(255, 70, 90, .1); border-color: rgba(255, 70, 90, .4); }

/* forms */
.form label { display: block; font-weight: 600; margin: 14px 0 6px; }
.form input, .form textarea, .form select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 210, 255, .2); }
.form select option { color: #111; }
.form select option:disabled { color: #8a8f98; }
.form select optgroup { color: #111; font-style: normal; }
.form .hint { margin: 6px 0 0; font-size: .9em; color: var(--muted, #9aa3ad); }
.form .btn { margin-top: 20px; }

/* ---------- footer ---------- */

.foot { margin-top: 0; padding: 56px 0 30px; background: #07060e; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot h4 { font: 700 .78rem var(--title); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.foot .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: span 2; } }

/* Orbitron's 5 reads as an S, so the name is set in the body font wherever it sits in a title-font line */
.o5 { font-family: var(--body); font-weight: 800; }

/* Legal pages: the EULA and terms are pdf2htmlEX documents that scroll inside their own full-window #page-container;
   start it below the header. The privacy policy is a Google Docs export, shown as a white sheet. */
#page-container { top: 68px !important; }
.legal-doc { margin: 30px auto; background: #fff; color: #000; border-radius: 8px; }

/* ---------- sign in / create account (Account/Login) ---------- */

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 68px); }
.auth-art { position: relative; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 48px; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 10, 20, .95), rgba(11, 10, 20, .2) 60%), linear-gradient(90deg, transparent 70%, var(--bg)); }
.auth-art > div { position: relative; max-width: 460px; }
.auth-art h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.auth-art p { color: #ddd8ee; }
.auth-box { width: 100%; max-width: 480px; margin: 0 auto; padding: 56px 24px; align-self: center; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; margin-bottom: 26px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.auth-tabs button { border: 0; border-radius: 999px; padding: 12px 10px; background: none; color: var(--muted); font: 700 .8rem var(--title); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--neon); color: #fff; box-shadow: 0 4px 20px rgba(193, 59, 255, .4); }
.auth .form .btn { width: 100%; }
.auth .form .btn + .btn { margin-top: 12px; }
.auth-small { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: .95rem; }
.auth-small + .auth-small { margin-top: 6px; }
.form .terms { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(255, 47, 180, .45); background: rgba(255, 47, 180, .07); font-weight: 400; line-height: 1.5; cursor: pointer; }
.form .terms input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; padding: 0; accent-color: var(--magenta); }
@media (max-width: 860px) {
    .auth { grid-template-columns: 1fr; min-height: 0; }
    .auth-art { min-height: 200px; padding: 24px 16px; }
    .auth-art p { display: none; }
    .auth-box { padding: 30px 16px 56px; }
}
.auth-title { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.auth-box .kicker { margin-bottom: .6em; }
.auth-wide { width: 100%; margin-top: 12px; }
.field-error { display: block; margin-top: 6px; color: #ff8fa3; font-size: .9rem; }
.form .note.bad:empty, .form .validation-summary-valid { display: none; }
.form .note.bad ul { margin: 0; padding-left: 18px; }
.auth-funnel { grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
.auth-funnel li { padding: 16px 8px 14px; }
.auth-funnel li:nth-child(2)::after { display: block; }

/* Creator docs: "Plugins used" strip (Views/Creators/_PluginsUsed) and the plugin reference (/Creators/Plugins) */
.plugins-used { margin: 0 0 2em; }
.plugins-used p { margin: .5em 0 0; font-size: .95rem; color: var(--muted); }
.plug-chips, .prose ul.plug-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: .5em 0 0; }
.plug-chips li { margin: 0; }
.plug-chips span { color: var(--muted); font-size: .88rem; }
.plug { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid; }
.plug.dl { color: var(--pink); border-color: rgba(255, 47, 180, .5); background: rgba(255, 47, 180, .08); }
.plug.built { color: var(--blue); border-color: rgba(47, 210, 255, .45); background: rgba(47, 210, 255, .08); }
.plugmap { margin: 0 0 2.5em; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.plugmap-scroll { overflow-x: auto; }
.plugmap svg { display: block; width: 100%; min-width: 620px; height: auto; }
.plugmap .legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: .88rem; color: var(--muted); }
.plugin-ref { scroll-margin-top: 90px; padding-top: .2em; }
.plugin-ref h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plugin-ref h3 .tag { margin: 0; }
.plugin-ref .deps { font-size: .95rem; color: var(--muted); }
.plugin-table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
.plugin-table th, .plugin-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.plugin-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.plugin-ref code { overflow-wrap: anywhere; }
@media (max-width: 600px) {
    .plugin-table th, .plugin-table td { display: block; }
    .plugin-table th { border-bottom: 0; padding-bottom: 0; }
}
