:root {
  color-scheme: dark;
  --ink: #f5f8fa;
  --muted: #9db0bf;
  --line: rgba(255, 255, 255, 0.11);
  --panel: #102b3d;
  --panel2: #0d2333;
  --accent: #f3b34c;
  --mint: #58d6b6;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  background: #071925;
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% -10%, #164761 0, transparent 34rem),
    linear-gradient(180deg, #081b2b, #06131d 65%);
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
.help-skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  background: #fff;
  color: #000;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
}
.help-skip:focus {
  top: 1rem;
}
.help-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: auto;
}
.help-staging {
  margin: 0 calc(50% - 50vw);
  padding: 0.45rem;
  text-align: center;
  background: #ffd15a;
  color: #2a1900;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.help-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.help-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.help-brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), #e67138);
  color: #14212a;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 12px 30px #0005;
}
.help-brand strong,
.help-brand small {
  display: block;
}
.help-brand small {
  color: var(--muted);
}
nav {
  display: flex;
  gap: 1.4rem;
}
nav a,
footer a {
  color: var(--muted);
  text-decoration: none;
}
nav a:hover,
footer a:hover {
  color: var(--ink);
}
.help-hero {
  text-align: center;
  padding: 5.7rem 1rem 4.6rem;
}
.help-eyebrow {
  color: var(--mint);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.help-hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 0.65rem 0 1rem;
}
.help-hero > p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}
.help-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 680px;
  margin: 2.3rem auto 0;
  padding: 0.85rem 1.1rem;
  background: #fff;
  border-radius: 16px;
  color: #47606f;
  box-shadow: 0 24px 70px #0007;
}
.help-search span {
  font-size: 1.6rem;
}
.help-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #142735;
  background: transparent;
  font-size: 1.04rem;
}
.help-alert {
  margin: 0 auto 1rem;
  max-width: 760px;
  padding: 1rem 1.2rem;
  border-radius: 12px;
}
.help-alert-error {
  background: #5c2230;
  border: 1px solid #dc6e87;
}
.help-alert-ok {
  background: #123e36;
  border: 1px solid #53bf9f;
}
.help-incidents {
  border: 1px solid #9b7330;
  background: #362c1b;
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 2rem;
}
.help-incidents h2 {
  margin-top: 0;
}
.help-incidents article span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.help-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.help-section-heading h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin: 0.2rem 0;
}
.help-section-heading > span {
  color: var(--muted);
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.help-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(19, 48, 66, 0.94), rgba(10, 31, 45, 0.96));
  border-radius: 17px;
  color: var(--ink);
  box-shadow: 0 18px 55px #0002;
}
.help-topic {
  min-height: 175px;
  padding: 1.35rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition:
    0.18s transform,
    0.18s border-color;
}
.help-topic:hover,
.help-topic:focus-visible {
  transform: translateY(-3px);
  border-color: #58d6b688;
  outline: none;
}
.help-topic span,
.help-case span {
  font-size: 0.76rem;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.help-topic strong {
  font-size: 1.1rem;
  margin: 0.65rem 0;
  line-height: 1.35;
}
.help-topic small {
  margin-top: auto;
  color: var(--muted);
}
.help-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: 5rem 0;
  padding: 2rem 2.2rem;
  border-radius: 20px;
  background: linear-gradient(120deg, #173f50, #14372f);
  border: 1px solid #62d1b63b;
}
.help-contact h2 {
  margin: 0.3rem 0;
}
.help-contact p {
  color: var(--muted);
  margin: 0;
}
.help-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 11px;
  padding: 0.78rem 1.1rem;
  background: var(--accent);
  color: #17222a;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.help-button:hover {
  filter: brightness(1.08);
}
.help-portal {
  max-width: 820px;
  margin: 0 auto 5rem;
}
.help-login {
  padding: 1.5rem;
}
.help-login p {
  color: var(--muted);
}
label {
  display: grid;
  gap: 0.4rem;
  color: #c8d5dd;
  font-weight: 650;
  margin: 0.9rem 0;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  background: #071a26;
  color: var(--ink);
  outline: 0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px #58d6b620;
}
.help-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
}
.help-empty {
  padding: 2rem;
  text-align: center;
}
.help-case-list {
  display: grid;
  gap: 0.75rem;
}

.help-case-thread,
.help-thread {
  display: grid;
  gap: 1rem;
}

.help-message {
  max-width: min(78%, 44rem);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(149, 185, 209, 0.24);
  border-radius: 1rem 1rem 1rem 0.25rem;
  background: rgba(12, 38, 57, 0.9);
}

.help-message.is-player {
  justify-self: end;
  border-radius: 1rem 1rem 0.25rem;
  background: rgba(138, 86, 30, 0.35);
}

.help-message p {
  white-space: pre-wrap;
}

.help-text-button {
  width: fit-content;
  border: 0;
  color: var(--help-gold);
  background: transparent;
  cursor: pointer;
}

.help-reply textarea {
  min-height: 8rem;
}

.help-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.help-attachments img {
  width: 100%;
  max-height: 20rem;
  object-fit: contain;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
}
.help-case {
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  text-decoration: none;
}
.help-case small {
  color: var(--muted);
}
.help-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #02090ecf;
  backdrop-filter: blur(8px);
}
.help-modal {
  width: min(660px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0c2231;
  box-shadow: 0 30px 100px #000b;
}
.help-close {
  float: right;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.45rem 0.7rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.help-article h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0.65rem 0 1.3rem;
}
.help-markdown {
  color: #cbd8df;
}
.help-markdown p,
.help-markdown li {
  white-space: pre-line;
}
.help-markdown li {
  margin: 0.35rem 0;
}
footer {
  display: flex;
  gap: 1.3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 800px) {
  .help-shell {
    width: min(100% - 1.2rem, 680px);
  }
  .help-header {
    align-items: flex-start;
    padding: 1rem 0;
    gap: 1rem;
  }
  .help-header nav {
    display: none;
  }
  .help-hero {
    padding: 3.6rem 0.25rem 3rem;
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
  .help-contact {
    align-items: flex-start;
    flex-direction: column;
    margin: 3rem 0;
    padding: 1.35rem;
  }
  .help-contact .help-button {
    width: 100%;
  }
  .help-case {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .help-section-heading {
    align-items: flex-start;
  }
  .help-modal {
    padding: 1.1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
