:root {
  color-scheme: dark;
  --ink: #f7f4ff;
  --muted: #b7c1d5;
  --quiet: #8593aa;
  --deep: #070a15;
  --surface: #10182a;
  --surface-soft: #151f35;
  --line: rgba(174, 190, 222, .23);
  --violet: #c8a7ff;
  --blue: #8fd3f5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--deep); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--deep); font-family: var(--sans); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, p { overflow-wrap: break-word; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 5; top: 12px; left: 12px; padding: 10px 14px; color: var(--deep); background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.support-page { width: min(1220px, calc(100% - 44px)); margin: 0 auto; padding: clamp(48px, 7vw, 88px) 0 90px; }
.support-intro { max-width: 890px; margin-bottom: clamp(46px, 7vw, 86px); }
.eyebrow { margin: 0 0 11px; color: var(--violet); font-size: .73rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.support-intro h1 { margin: 0; font: 600 clamp(3.2rem, 8vw, 7.5rem)/.9 var(--serif); letter-spacing: -.055em; }
.support-intro > p:last-child { max-width: 700px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; }

.support-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr); gap: clamp(38px, 6vw, 72px); align-items: start; }
.form-section { padding: clamp(30px, 4vw, 48px); border: 1px solid var(--line); background: linear-gradient(145deg, rgba(21, 31, 53, .72), rgba(9, 17, 31, .88)); box-shadow: 0 24px 64px rgba(0, 0, 0, .2); }
.form-heading { margin-bottom: 34px; }
.form-heading h2 { margin: 0; font: 740 clamp(2rem, 4vw, 3.35rem)/1.04 var(--sans); letter-spacing: -.04em; }
.form-heading > p:last-child { margin: 14px 0 0; color: var(--muted); line-height: 1.6; }
.contact-section { border: 1px solid var(--line); background: linear-gradient(160deg, rgba(18, 31, 49, .82), rgba(8, 16, 29, .92)); box-shadow: 0 24px 64px rgba(0, 0, 0, .18); }
.contact-section > .eyebrow { margin: 0; padding: 22px clamp(24px, 3vw, 34px); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(143, 211, 245, .08), rgba(200, 167, 255, .05)); }
.contact-section dl { margin: 0; padding: 0 clamp(24px, 3vw, 34px); }
.contact-section dl div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-section dl div:last-child { border-bottom: 0; }
.contact-section dt { color: var(--quiet); font-size: .73rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-section dd { margin: 9px 0 0; color: var(--muted); line-height: 1.65; }
.contact-section a { color: var(--ink); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact-section a:hover, .contact-section a:focus-visible { color: var(--blue); }
form { display: grid; gap: 22px; }
.form-row.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: grid; gap: 8px; }
label > span { color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 3px; outline: none; color: var(--ink); background: #080e1d; }
input, select { min-height: 52px; padding: 0 14px; }
textarea { min-height: 190px; padding: 14px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(143, 211, 245, .12); }
select { color-scheme: dark; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.turnstile-field { min-width: 0; display: grid; gap: 9px; }
.turnstile-field > span { color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.turnstile-field .cf-turnstile { width: min(100%, 300px); min-width: 0; overflow: hidden; }

.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 10px; }
.submit-row button { min-height: 50px; padding: 0 23px; border: 1px solid var(--violet); border-radius: 3px; color: #0c0715; background: var(--violet); font-weight: 850; cursor: pointer; }
.submit-row button:hover { background: #ddc8ff; }
.form-privacy { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--quiet); font-size: .76rem; line-height: 1.5; }
.status { margin: 0 0 25px; padding: 16px 18px; border-left: 3px solid; line-height: 1.55; }
.status.success { border-color: #80d8a5; background: rgba(46, 125, 82, .2); }
.status.error { border-color: #f39a9a; background: rgba(145, 52, 63, .22); }

@media (min-width: 621px) and (max-width: 900px) {
  .support-page { width: min(100% - 56px, 1220px); }
  .support-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .form-row.two-column { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .support-page { width: min(100% - 30px, 1220px); padding: 38px 0 64px; }
  .support-layout { grid-template-columns: 1fr; }
  .form-section { padding: 28px 0; }
  .form-row.two-column { grid-template-columns: 1fr; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .submit-row button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Inside the uorealms.com site shell: let the shell's starry background show through (like the Games page). */
html.shell-embedded,
html.shell-embedded body { background: transparent; }

/* Breadcrumbs, same as the game pages (Jason, 30 Sep 2026: breadcrumbs on every page). */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; color: #a6bacb; font-size: .82rem; }
.breadcrumbs a { color: #c5d3df; text-decoration: none; }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

/* Space glass inside the site (approved 30 Sep 2026): the page opens up to the site's stars and every panel is the same dark glass. Only inside the site shell. */
html.shell-embedded {
  --sg-glass: linear-gradient(160deg, rgba(14, 20, 40, .78), rgba(6, 10, 22, .74));
  --sg-line: rgba(255, 236, 190, .12);
  --sg-radius: 22px;
  --sg-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
}
html.shell-embedded .form-section,
html.shell-embedded .contact-section { background: var(--sg-glass); border-color: var(--sg-line); border-radius: var(--sg-radius); box-shadow: var(--sg-shadow); overflow: hidden; }
html.shell-embedded .contact-section > .eyebrow { background: rgba(255, 255, 255, .03); }

/* Phones (Jason, 30 Sep 2026): the form had no side padding and touched its edges; proper padding, rounded glass
   panels and a phone-sized heading. Desktop is unchanged. */
@media (max-width: 620px) {
  .support-page { width: calc(100% - 24px); padding: 20px 0 48px; }
  .form-section { padding: 24px 18px; border-radius: 18px; }
  .contact-section { border-radius: 18px; }
  .form-heading h2 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
}
