:root {
  --bg: #12091f;
  --panel: rgba(19, 14, 37, 0.9);
  --panel-soft: rgba(28, 20, 51, 0.82);
  --text: #f8f6ff;
  --muted: #c9c0df;
  --line: #7c6da8;
  --line-strong: #9f8fce;
  --cyan: #5fe4ff;
  --lime: #d7ff63;
  --yellow: #ffd45c;
  --shadow: 0 0 0 2px rgba(10, 8, 18, 0.9), 0 16px 36px rgba(0, 0, 0, 0.4);
  --radius: 0;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background:
    linear-gradient(180deg, rgba(7, 4, 15, 0.28), rgba(7, 4, 15, 0.78)),
    linear-gradient(90deg, rgba(255, 95, 162, 0.06), transparent 30%, rgba(95, 228, 255, 0.06) 70%, transparent),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 6, 18, 0.3), rgba(10, 6, 18, 0.62)),
    url("../img/bg_uppsala.png") center center / cover no-repeat;
  opacity: 0.42;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 3px, 3px 100%;
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--lime);
  color: #140d0b;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-shell {
  width: min(calc(100% - 1rem), var(--max-width));
  margin: 0 auto;
  padding: 0.75rem 0 1.5rem;
}

.site-shell-flow {
  display: grid;
  gap: 0.75rem;
}

.page-grid {
  display: grid;
  gap: 0.75rem;
}

.topbar,
.hero,
.site-footer,
.summary-strip,
.page-grid {
  position: relative;
  z-index: 1;
}

.topbar {
  padding: 0.9rem 1rem;
}

.topbar-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-mark {
  width: clamp(152px, 48vw, 248px);
  image-rendering: auto;
  filter: drop-shadow(0 0 12px rgba(255, 95, 162, 0.22));
}

.topnav {
  display: grid;
  gap: 0.2rem;
}

.topnav[hidden] {
  display: none !important;
}

.topnav a,
.footer-links a,
.footer-link-button,
.text-link {
  font-family: "Silkscreen", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 0.7rem;
  color: rgba(248, 246, 255, 0.9);
}

.topnav-shell {
  grid-column: 1 / -1;
  padding-top: 0.5rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  border: 2px solid var(--line-strong);
  background: rgba(255, 95, 162, 0.08);
  color: var(--text);
  font-family: "Silkscreen", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.topnav a:hover,
.topnav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible,
.footer-link-button:hover,
.footer-link-button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--cyan);
}

.hero {
  display: grid;
  gap: 0.75rem;
}

.hero-minimal {
  width: 100%;
  padding: 1.3rem 1rem;
  justify-self: stretch;
}

.frame {
  position: relative;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-soft), var(--panel));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.frame::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 95, 162, 0.09), transparent 24%, transparent 76%, rgba(95, 228, 255, 0.09)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%);
}

.frame::after {
  inset: 8px;
  border: 1px solid rgba(201, 192, 223, 0.14);
}

.panel,
.consent-banner {
  padding: 1rem;
}

.eyebrow,
.section-tag,
.inline-code {
  font-family: "Silkscreen", sans-serif;
}

.eyebrow,
.section-tag {
  margin: 0 0 0.8rem;
  color: var(--lime);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
strong {
  margin: 0;
  font-family: "Silkscreen", sans-serif;
  font-weight: 700;
  line-height: 1.18;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(1.7rem, 8.5vw, 3.8rem);
  text-shadow: 2px 2px 0 rgba(255, 95, 162, 0.2);
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.05rem, 5.2vw, 1.7rem);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  color: var(--cyan);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.lede {
  color: var(--text);
  max-width: 38rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--line-strong);
  font-family: "Silkscreen", sans-serif;
  font-size: 0.77rem;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-1px, -1px);
}

.button-primary {
  background: linear-gradient(180deg, #5fe4ff, #34b4d5);
  color: #130d1e;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.button-secondary {
  background: rgba(255, 95, 162, 0.08);
  color: var(--text);
}

.button-disabled,
.button[aria-disabled="true"] {
  opacity: 0.72;
  cursor: default;
}

.button-disabled:hover,
.button-disabled:focus-visible,
.button[aria-disabled="true"]:hover,
.button[aria-disabled="true"]:focus-visible {
  transform: none;
}

.summary-strip {
  display: grid;
  gap: 0.75rem;
}

.summary-item {
  min-height: 100%;
  padding: 1.3rem 1rem;
}

.summary-item > p:not(.section-tag) {
  color: var(--text);
}

.summary-item > p:last-of-type {
  margin-bottom: 0;
}

.summary-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.summary-note {
  margin-bottom: 0;
  color: rgba(201, 192, 223, 0.82);
  font-size: 0.85rem;
}

.launch-note {
  display: inline-block;
  margin-bottom: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(255, 212, 92, 0.45);
  background: rgba(255, 212, 92, 0.08);
  color: var(--yellow);
  font-family: "Silkscreen", sans-serif;
  font-size: clamp(0.78rem, 2.4vw, 0.95rem);
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
}

.inline-code {
  color: var(--yellow);
  font-size: 0.92em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(248, 246, 255, 0.9);
}

.site-footer {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 0.5rem;
}

.site-footer-shell {
  grid-template-columns: 1fr;
}

.site-footer strong {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: rgba(248, 246, 255, 0.86);
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.88rem;
  color: rgba(201, 192, 223, 0.74);
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(248, 246, 255, 0.9);
  text-align: left;
  cursor: pointer;
}

.footer-link-button-muted {
  opacity: 0.62;
  cursor: default;
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
  color: var(--cyan);
}

.footer-link-button-muted:hover,
.footer-link-button-muted:focus-visible {
  color: rgba(248, 246, 255, 0.9);
}

.legal-panel {
  width: 100%;
  padding: 1.2rem 1rem;
}

.legal-panel-wide {
  justify-self: stretch;
}

.lobby-layout {
  display: grid;
  gap: 0.75rem;
}

.lobby-panel {
  width: 100%;
}

.lobby-panel > :last-child {
  margin-bottom: 0;
}

.panel-intro {
  max-width: 42rem;
}

.form-stack,
.toggle-group,
.meta-list,
.account-grid,
.action-row {
  display: grid;
  gap: 0.75rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-label {
  color: var(--text);
  font-family: "Silkscreen", sans-serif;
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field-input,
.field-select {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.8rem 0.9rem;
  border: 2px solid rgba(159, 143, 206, 0.78);
  background: rgba(14, 10, 27, 0.86);
  color: var(--text);
  font: inherit;
}

.field-input::placeholder {
  color: rgba(201, 192, 223, 0.58);
}

.field-input:focus,
.field-select:focus {
  border-color: var(--cyan);
  outline: none;
}

.field-select {
  appearance: none;
}

.field-note {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: rgba(201, 192, 223, 0.86);
}

.toggle-row,
.meta-item {
  padding: 0.9rem;
  border: 1px solid rgba(159, 143, 206, 0.36);
  background: rgba(17, 13, 32, 0.74);
}

.toggle-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
}

.toggle-row input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  accent-color: var(--cyan);
}

.toggle-title,
.meta-value {
  color: var(--text);
}

.toggle-title {
  display: block;
  font-weight: 600;
}

.toggle-copy,
.meta-copy {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  color: rgba(201, 192, 223, 0.86);
}

.meta-list {
  margin: 0;
}

.meta-label {
  display: inline-block;
  margin-bottom: 0.18rem;
  color: var(--lime);
  font-family: "Silkscreen", sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meta-value {
  display: block;
  line-height: 1.55;
}

.status-line {
  margin-bottom: 0;
  color: var(--text);
}

.status-line strong {
  font-size: 0.78rem;
}

.status-line-muted {
  color: rgba(201, 192, 223, 0.82);
}

.button-stack {
  display: grid;
  gap: 0.75rem;
}

.button-stack .button {
  width: 100%;
}

.button-note {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: rgba(201, 192, 223, 0.82);
}

.lobby-account {
  display: grid;
  gap: 1rem;
}

.account-divider {
  height: 1px;
  border: 0;
  background: rgba(159, 143, 206, 0.28);
}

.account-callout {
  margin-bottom: 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(95, 228, 255, 0.28);
  background: rgba(95, 228, 255, 0.08);
  color: var(--text);
}

.consent-banner {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 30;
}

.consent-banner[hidden] {
  display: none;
}

.consent-copy p:last-child {
  margin-bottom: 0;
}

.consent-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.consent-actions-simple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

@media (min-width: 700px) {
  .site-shell {
    width: min(calc(100% - 2rem), var(--max-width));
    padding-top: 1rem;
  }

  .site-shell-flow,
  .page-grid {
    gap: 1rem;
  }

  .topbar-shell {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .menu-toggle {
    display: none;
  }

  .topnav-shell {
    grid-column: auto;
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0;
  }

  .hero-minimal {
    padding: 1.7rem;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-item {
    padding: 1.5rem 1.7rem;
  }

  .lobby-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .action-row,
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lobby-account {
    grid-column: 1 / -1;
  }

  .site-footer-shell {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .consent-banner {
    left: 50%;
    right: auto;
    width: min(38rem, calc(100% - 2rem));
    transform: translateX(-50%);
  }

  .legal-panel {
    padding: 1.5rem;
  }

  .site-footer {
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .hero-minimal,
  .legal-panel,
  .site-footer {
    padding: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
