:root {
  --bg: #020617;
  --bg-alt: rgba(7, 15, 41, 0.375);
  --panel: rgba(15, 24, 58, 0.41);
  --panel-strong: rgba(31, 48, 92, 0.46);
  --border-glow-edge: rgba(88, 130, 205, 0.2);
  --border-glow-mid: rgba(139, 236, 255, 0.78);
  --border-glow-aura: rgba(98, 208, 255, 0.22);
  --accent: #68f6ff;
  --accent-strong: #3dd8ff;
  --accent-soft: rgba(104, 246, 255, 0.24);
  --text-primary: #f0f4ff;
  --text-secondary: #a9bff8;
  --muted: #6e7aa5;
  --success: #5cf2ba;
  --warning: #ffd56f;
  --danger: #ff7aa2;
  --border: rgba(96, 127, 197, 0.28);
  --shadow: 0 22px 60px rgba(3, 7, 31, 0.65);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --transition: 180ms ease;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg);
  min-height: 100vh;
  position: relative;
  letter-spacing: 0.01em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition), box-shadow var(--transition);
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main.portal {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 30px 32px 140px;
  position: relative;
  z-index: 1;
}

main.portal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 13, 30, 0.4) 0%, rgba(7, 13, 30, 0.05) 100%);
  filter: blur(60px);
  opacity: 0.35;
  z-index: -1;
}

section + section {
  margin-top: 20px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: stretch;
  justify-content: space-between;
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(19, 31, 78, 0.475) 0%, rgba(10, 18, 46, 0.44) 60%, rgba(5, 9, 26, 0.46) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: -40% -5% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(108, 230, 255, 0.225) 0%, transparent 70%);
  opacity: 0.45;
  filter: blur(0.5px);
  transform: rotate(18deg);
}

.hero__content {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.hero__kicker {
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero__kicker::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.hero h1 {
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
  font-size: clamp(1.95rem, 3.2vw, 2.8rem);
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.04em;
}

.hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  padding: 12px 26px;
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: rgba(7, 16, 44, 0.275);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.button--compact {
  padding: 9px 16px;
  font-size: 0.74rem;
}

.button--primary {
  background: linear-gradient(135deg, rgba(56, 230, 255, 0.475), rgba(34, 166, 255, 0.45));
  color: #001225;
  box-shadow: 0 14px 30px rgba(44, 198, 255, 0.35);
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(44, 198, 255, 0.46);
}

.button--ghost {
  border: 1px solid var(--accent-soft);
  color: var(--text-primary);
  background: rgba(7, 16, 44, 0.2);
}

.button--ghost:hover {
  color: var(--accent-strong);
  border-color: rgba(61, 216, 255, 0.45);
  transform: translateY(-2px);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 22, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 200;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 210;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__dialog {
  width: min(480px, 100%);
  background:
    linear-gradient(162deg, rgba(16, 28, 62, 0.45), rgba(9, 15, 36, 0.45)),
    radial-gradient(circle at top right, rgba(64, 174, 242, 0.05), transparent 58%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(109, 190, 243, 0.34);
  box-shadow:
    0 18px 42px rgba(2, 8, 28, 0.54),
    0 0 0 1px rgba(92, 196, 255, 0.08) inset,
    0 1px 0 rgba(172, 223, 255, 0.2) inset;
  backdrop-filter: blur(10px);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(24px);
  transition: transform 220ms ease;
}

.modal.is-open .modal__dialog {
  transform: translateY(0);
}

.modal__close {
  align-self: flex-end;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.modal__title {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2rem);
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
  letter-spacing: 0.06em;
}

.modal__subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.form-control {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(104, 246, 255, 0.3);
  background: rgba(6, 12, 40, 0.44);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Space Grotesk', 'Segoe UI', Tahoma, sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: rgba(104, 246, 255, 0.46);
  box-shadow: 0 0 0 3px rgba(104, 246, 255, 0.18);
}

.form-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-error {
  min-height: 24px;
  color: var(--danger);
  font-size: 0.9rem;
}

.form-error:empty {
  display: none;
}

.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal__actions .button {
  flex: 0 0 auto;
}

.hero__status {
  flex: 0 1 280px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

.status-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  box-shadow: inset 0 0 0 1px rgba(120, 155, 219, 0.08);
  width: 100%;
  min-width: 0;
}

.status-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.status-card__value {
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  letter-spacing: 0.08em;
  line-height: 1.2;
  display: block;
  max-width: 100%;
}

.status-card__value--name {
  overflow-wrap: anywhere;
  font-size: clamp(1.02rem, 2vw, 1.3rem);
  letter-spacing: 0.04em;
}

.status-card__actions {
  margin-top: 6px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-card__actions .button,
.status-card__actions a.button {
  flex: 1 1 115px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
}

.section-header__kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--muted);
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
  letter-spacing: 0.06em;
}

.section-header p {
  margin: 0;
  color: var(--text-secondary);
}

.account-links {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.account-links__item {
  background: var(--panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.account-links__item:hover {
  transform: translateY(-6px);
  border-color: rgba(104, 246, 255, 0.4);
  box-shadow: 0 18px 36px rgba(12, 24, 56, 0.45);
}

.account-links__target {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-primary);
}

.account-links__label {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.account-links__meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.account-links__description {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.game-grid {
  margin-top: 12px;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.launch-bay #launch-bay-card {
  margin-top: 12px;
  width: 100%;
  max-width: none;
}

.launch-bay-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.launch-news {
  min-height: 100%;
}

.launch-bay-selector {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.launch-bay-selector__button {
  min-width: 190px;
}

.launch-bay-selector__button.is-active {
  border-color: rgba(104, 246, 255, 0.48);
  color: var(--accent-strong);
  background: rgba(20, 37, 84, 0.36);
}

.game-card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(23, 36, 82, 0.46) 0%, rgba(15, 24, 58, 0.375) 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.game-card::after {
  content: '';
  position: absolute;
  inset: auto -30% -60% auto;
  width: 260px;
  height: 220px;
  background: radial-gradient(circle, rgba(56, 182, 255, 0.16) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.game-card:hover {
  border-color: rgba(104, 246, 255, 0.4);
  box-shadow: 0 28px 46px rgba(10, 20, 50, 0.48);
}

.game-card:hover::after {
  opacity: 0.9;
  transform: translateY(-10px);
}

.game-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.game-card__status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 16, 42, 0.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.game-card__status.is-online {
  color: var(--success);
  border-color: rgba(92, 242, 186, 0.35);
  background: rgba(62, 201, 160, 0.06);
}

.game-card__status.is-maintenance {
  color: var(--warning);
  border-color: rgba(255, 213, 111, 0.35);
  background: rgba(255, 213, 111, 0.06);
}

.game-card__status.is-offline {
  color: var(--danger);
  border-color: rgba(255, 122, 162, 0.35);
  background: rgba(255, 122, 162, 0.06);
}

.game-card__genre {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.game-card__title {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
}

.game-card__summary {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.game-card__event {
  margin: 0;
  font-size: 0.85rem;
  color: var(--accent-strong);
  letter-spacing: 0.03em;
}

.game-card__event strong {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.game-card__event.is-hidden {
  display: none;
}

.game-card__action {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(104, 246, 255, 0.07);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  border: 1px solid rgba(104, 246, 255, 0.24);
}

.game-card__action:hover {
  background: rgba(61, 216, 255, 0.11);
  transform: translateY(-2px);
}

.news-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.news-card {
  padding: 26px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(13, 20, 49, 0.39);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.news-card::after {
  content: '';
  position: absolute;
  inset: auto auto -40% -40%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, transparent 72%);
  opacity: 0;
  transition: opacity var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 20px 38px rgba(10, 20, 50, 0.4);
}

.news-card:hover::after {
  opacity: 0.75;
}

.news-card__date {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.news-card__tag {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.news-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
}

.news-card__summary {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.news-card__link {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: auto;
}

.news-card__link--button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.news-card__link--button:hover {
  color: var(--accent-strong);
}

.news-dispatch-modal .modal__dialog {
  width: min(760px, 100%);
}

.news-dispatch__tag {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.news-dispatch__date {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.news-dispatch__summary {
  margin: 0;
  color: var(--text-secondary);
  display: grid;
  gap: 8px;
}

.news-dispatch__summary > :first-child {
  margin-top: 0;
}

.news-dispatch__summary > :last-child {
  margin-bottom: 0;
}

.news-dispatch__summary ul,
.news-dispatch__summary ol {
  margin: 0 0 0 1.2rem;
  padding: 0;
}

.news-dispatch__summary a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-dispatch__summary a:hover {
  color: #c4f7ff;
}

.support-strip {
  margin-top: 34px;
  border-radius: var(--radius-md);
  padding: 30px 32px;
  background: linear-gradient(160deg, rgba(23, 36, 82, 0.45) 0%, rgba(15, 24, 58, 0.38) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 24px 44px rgba(10, 20, 50, 0.4);
}

.support-strip__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.support-strip__content h2 {
  flex: 1 1 240px;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
}

.support-strip__content p {
  flex: 2 1 320px;
  margin: 0;
  color: var(--text-secondary);
}

.support-strip__actions {
  flex: 1 1 220px;
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.support-strip__actions .button {
  flex: 1 1 160px;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 22px 28px 34px;
}

.site-footer__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(104, 246, 255, 0.2);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer__version {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.site-footer__nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer__link {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.policy-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.policy-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.policy-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(13, 20, 49, 0.39);
}

.policy-card h3 {
  margin: 0 0 10px;
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.policy-card p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.policy-card p:last-child {
  margin-bottom: 0;
}

.policy-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.policy-list li + li {
  margin-top: 8px;
}

.policy-note {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(15, 24, 58, 0.39);
  border: 1px solid rgba(104, 246, 255, 0.24);
  color: var(--text-secondary);
}

.portal--profile .command-center--panel {
  margin-top: 22px;
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(104, 246, 255, 0.24);
  background: linear-gradient(150deg, rgba(14, 24, 62, 0.38), rgba(8, 14, 36, 0.33));
  box-shadow: 0 20px 42px rgba(3, 10, 32, 0.35);
}

.portal--profile .section-header--panel {
  max-width: 860px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(104, 246, 255, 0.2);
  background: rgba(10, 18, 45, 0.26);
}

.portal--profile .alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 18, 45, 0.34);
  color: var(--text-primary);
}

.portal--profile .alert__list {
  margin: 0;
  padding-left: 20px;
}

.portal--profile .alert--success {
  border-color: rgba(92, 242, 186, 0.35);
  background: rgba(31, 96, 81, 0.175);
}

.portal--profile .alert--warning {
  border-color: rgba(255, 213, 111, 0.35);
  background: rgba(132, 98, 35, 0.15);
}

.portal--profile .alert--error {
  border-color: rgba(255, 122, 162, 0.38);
  background: rgba(120, 38, 69, 0.17);
}

.portal--profile .profile-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal--profile .profile-form__fieldset {
  margin: 0;
  border: 1px solid rgba(104, 246, 255, 0.28);
  border-radius: var(--radius-md);
  padding: 20px;
  background: rgba(11, 19, 48, 0.33);
}

.portal--profile .profile-form__legend {
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
  font-size: 1.18rem;
  letter-spacing: 0.05em;
  padding: 0 10px;
  color: var(--text-primary);
}

.portal--profile .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.portal--profile .form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal--profile .form-field__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.portal--profile .form-field__input {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(104, 246, 255, 0.28);
  background: rgba(8, 15, 40, 0.36);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Space Grotesk', 'Segoe UI', Tahoma, sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.portal--profile .form-field__input:focus {
  outline: none;
  border-color: rgba(104, 246, 255, 0.5);
  background: rgba(8, 15, 40, 0.46);
  box-shadow: 0 0 0 3px rgba(104, 246, 255, 0.18);
}

.portal--profile .form-field__hint {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(104, 246, 255, 0.24);
  background: rgba(8, 15, 40, 0.275);
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.portal--profile .profile-form__actions {
  margin-top: 2px;
}

.portal--profile .profile-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-top: 20px;
}

.portal--profile .profile-table th,
.portal--profile .profile-table td {
  padding: 11px 14px;
  background: rgba(10, 18, 45, 0.35);
  border-top: 1px solid rgba(104, 246, 255, 0.18);
  border-bottom: 1px solid rgba(104, 246, 255, 0.18);
}

.portal--profile .profile-table th {
  width: 260px;
  text-align: left;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  border-left: 1px solid rgba(104, 246, 255, 0.18);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.portal--profile .profile-table td {
  color: var(--text-secondary);
  border-right: 1px solid rgba(104, 246, 255, 0.18);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  overflow-wrap: anywhere;
}

.portal--profile .profile-table__empty {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(104, 246, 255, 0.22);
  background: rgba(10, 18, 45, 0.29);
  color: var(--text-secondary);
}

.portal--login {
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: center;
  padding-top: 44px;
}

.login-shell {
  width: min(580px, 100%);
  margin: 0 auto;
}

.login-shell__panel {
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(104, 246, 255, 0.3);
  background: linear-gradient(155deg, rgba(22, 33, 74, 0.42), rgba(10, 18, 46, 0.39));
  box-shadow: var(--shadow);
}

.login-shell__panel h1 {
  margin: 6px 0 0;
}

.login-shell__subtitle {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(104, 246, 255, 0.18);
  background: rgba(10, 18, 45, 0.24);
  color: var(--text-secondary);
}

.login-shell__alert {
  margin: 14px 0 0;
}

.login-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form .form-field__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.login-form__input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(104, 246, 255, 0.28);
  background: rgba(8, 15, 40, 0.36);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Space Grotesk', 'Segoe UI', Tahoma, sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.login-form__input:focus {
  outline: none;
  border-color: rgba(104, 246, 255, 0.5);
  background: rgba(8, 15, 40, 0.46);
  box-shadow: 0 0 0 3px rgba(104, 246, 255, 0.18);
}

.login-form__actions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1100px) {
  .hero__status {
    flex-basis: 250px;
  }

  .support-strip__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 840px) {
  main.portal {
    padding: 80px 24px 120px;
  }

  .hero {
    padding: 42px 32px;
  }

  .launch-bay-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .hero {
    padding: 36px 28px;
  }

  .support-strip {
    padding: 28px 24px;
  }

  .support-strip__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .support-strip__actions {
    width: 100%;
  }

  .portal--profile .command-center--panel {
    padding: 22px;
  }

  .portal--profile .profile-table th,
  .portal--profile .profile-table td {
    display: block;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .portal--login {
    min-height: calc(100vh - 150px);
    padding-top: 30px;
  }

  .login-shell__panel {
    padding: 24px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  main.portal {
    padding: 64px 20px 100px;
  }

  .hero {
    gap: 28px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  section + section {
    margin-top: 64px;
  }
}

/* Home portal redesign */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(86, 212, 255, 0.9) rgba(6, 19, 43, 0.5);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(5, 14, 34, 0.6), rgba(4, 11, 30, 0.72));
  box-shadow: inset 0 0 0 1px rgba(82, 147, 208, 0.26);
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(118, 230, 255, 0.95), rgba(58, 172, 255, 0.9));
  border: 2px solid rgba(4, 14, 36, 0.88);
  box-shadow: 0 0 10px rgba(82, 199, 255, 0.35);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(146, 241, 255, 1), rgba(83, 196, 255, 0.95));
}

*::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

main.portal.portal--home {
  --portal-sticky-top: 10px;
  --portal-sticky-gap: 12px;
  --portal-header-height: 78px;
  --portal-shell-width: min(88vw, 1540px);
  --portal-shell-left: max(6vw, calc((100vw - 1540px) / 2));
  --portal-grid-gap: 14px;
  --portal-sidebar-width: clamp(300px, 20vw, 330px);
  --portal-launch-height: 248px;
  --portal-secondary-sticky-top: calc(
    var(--portal-sticky-top) + var(--portal-header-height) + var(--portal-sticky-gap)
  );
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--portal-sticky-top) 0 68px;
}

main.portal.portal--home::before {
  display: none;
}

.portal-root {
  position: relative;
  min-height: 100vh;
}

.portal-bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url('/images/portalbackground3.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(0.8px) saturate(0.94) brightness(0.9);
  transform: scale(1.02);
}

.portal-dim-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 46%, rgba(7, 14, 31, 0.085) 0%, rgba(7, 14, 31, 0.12) 42%, rgba(5, 10, 23, 0.15) 100%),
    linear-gradient(180deg, rgba(4, 8, 20, 0.1) 0%, rgba(4, 8, 20, 0.125) 100%);
}

.portal-starfield {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.82;
}

.portal-starfield canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.portal-ui-layer {
  position: relative;
  z-index: 3;
}

.portal-ui-layer::before {
  display: none;
}

.portal-shell {
  width: var(--portal-shell-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: calc(var(--portal-secondary-sticky-top) + var(--portal-launch-height) + var(--portal-sticky-gap));
}

.portal-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--portal-sidebar-width);
  gap: var(--portal-grid-gap);
  align-items: start;
}

.portal-home-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portal-shell > .news-feed {
  width: min(50%, 760px);
  margin-right: auto;
  border-radius: 16px;
  padding: 18px 22px;
  background: none;
}

.portal-home-main > .news-feed {
  width: 100%;
  margin-right: 0;
}

.portal-home-main > .featured-game,
.portal-home-main > #news-feed {
  position: relative;
  z-index: 10;
}

.portal-panel {
  background:
    linear-gradient(165deg, rgba(14, 25, 56, 0.42), rgba(7, 12, 30, 0.41)),
    radial-gradient(circle at top right, rgba(56, 164, 228, 0.06), transparent 65%);
  border: 1px solid rgba(104, 179, 239, 0.3);
  box-shadow:
    0 14px 34px rgba(3, 9, 28, 0.44),
    0 0 0 1px rgba(131, 208, 255, 0.08) inset,
    0 1px 0 rgba(192, 230, 255, 0.16) inset;
  backdrop-filter: blur(8px);
}

.portal-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 14px;
  position: fixed;
  left: var(--portal-shell-left);
  width: var(--portal-shell-width);
  top: var(--portal-sticky-top);
  z-index: 90;
}

.portal-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  height: 28px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 14, 35, 0.5), rgba(6, 14, 35, 0));
}

.portal-header__brand {
  justify-self: start;
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  letter-spacing: 0.06em;
}

.portal-header__title {
  justify-self: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
  color: #87ecff;
  font-size: clamp(0.95rem, 1.9vw, 1.7rem);
}

.portal-header__auth {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-header__captain {
  color: var(--text-secondary);
  font-size: 0.96rem;
  letter-spacing: 0.04em;
}

.featured-game {
  position: relative;
  min-height: clamp(180px, 18vw, 236px);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
}

.portal-shell > .launch-bay + .portal-home-grid {
  margin-top: 0;
}

.launch-bay {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-shell > .launch-bay {
  position: fixed;
  left: var(--portal-shell-left);
  width: calc(var(--portal-shell-width) - var(--portal-sidebar-width) - var(--portal-grid-gap));
  top: var(--portal-secondary-sticky-top);
  z-index: 88;
  padding: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
}

.portal-shell > .launch-bay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  height: 28px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 14, 35, 0.45), rgba(6, 14, 35, 0));
}

.portal-access {
  border-radius: 16px;
  padding: 16px 18px;
  position: fixed;
  top: var(--portal-secondary-sticky-top);
  right: var(--portal-shell-left);
  width: var(--portal-sidebar-width);
  max-height: none;
  overflow: visible;
  z-index: 89;
  background:
    linear-gradient(165deg, rgba(14, 25, 56, 0.9), rgba(7, 12, 30, 0.88)),
    radial-gradient(circle at top right, rgba(56, 164, 228, 0.1), transparent 65%);
}

.portal-access::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -26px;
  height: 26px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 14, 35, 0.45), rgba(6, 14, 35, 0));
}

.portal-access .section-header {
  gap: 8px;
  max-width: 100%;
}

.portal-access .section-header h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
}

.portal-access .section-header p {
  font-size: 0.95rem;
}

.portal-access__login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.portal-access__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.portal-access__actions .button,
.portal-access__logout .button {
  width: 100%;
  justify-content: center;
}

.portal-access__logout {
  margin-top: 10px;
}

.featured-game__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
}

.featured-game__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 24, 0.47) 0%, rgba(5, 10, 24, 0.37) 44%, rgba(6, 11, 28, 0.24) 74%, rgba(6, 11, 28, 0.14) 100%),
    linear-gradient(180deg, rgba(6, 11, 27, 0.21) 0%, rgba(6, 12, 30, 0.42) 100%);
}

.featured-game__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: min(620px, 90%);
  padding: clamp(16px, 2.6vw, 28px);
}

.featured-game__label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: #9defff;
}

.featured-game__title {
  margin: 0;
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 4vw, 3.15rem);
  letter-spacing: 0.03em;
  line-height: 1;
}

.featured-game__summary {
  margin: 0;
  color: #c6d9ff;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  max-width: 55ch;
}

.featured-game__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header--row {
  max-width: 100%;
}

.section-header--row h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
}

.game-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.game-carousel__viewport {
  overflow: hidden;
  padding-top: 18px;
  margin-top: -18px;
}

.game-carousel__track {
  --visible-cards: 3;
  display: flex;
  gap: 18px;
  transition: transform 320ms ease;
}

.game-carousel__nav {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 14px;
  font-size: 0;
  position: relative;
  border: 1px solid rgba(126, 194, 243, 0.32);
  background: linear-gradient(155deg, rgba(8, 19, 45, 0.44), rgba(8, 16, 36, 0.38));
  box-shadow: 0 10px 22px rgba(6, 14, 36, 0.34), inset 0 1px 0 rgba(194, 231, 255, 0.1);
}

.game-carousel__nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(172, 241, 255, 0.96);
  border-right: 2px solid rgba(172, 241, 255, 0.96);
  transform-origin: center;
  filter: drop-shadow(0 0 6px rgba(101, 222, 255, 0.4));
}

.game-carousel__nav--prev::before {
  transform: translate(-36%, -50%) rotate(-135deg);
}

.game-carousel__nav--next::before {
  transform: translate(-64%, -50%) rotate(45deg);
}

.game-carousel__nav::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, rgba(124, 233, 255, 0), rgba(124, 233, 255, 0.9), rgba(124, 233, 255, 0));
  transform: translate(-50%, -50%);
  opacity: 0.8;
}

.game-carousel__nav--prev::after {
  transform: translate(-44%, -50%);
}

.game-carousel__nav--next::after {
  transform: translate(-56%, -50%);
}

.game-carousel__nav:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.game-carousel__nav:disabled::before,
.game-carousel__nav:disabled::after {
  opacity: 0.45;
  filter: none;
}

.portal-panel,
.status-card,
.support-strip,
.policy-card,
.modal__dialog,
.portal--profile .command-center--panel,
.portal--profile .profile-form__fieldset,
.portal--profile .alert,
.login-shell__panel,
.game-details-modal__thumb,
.game-details-modal__news-row {
  position: relative;
  isolation: isolate;
}

/* Keep fixed desktop chrome pinned; do not let the shared panel rule reset them. */
.portal-header,
.portal-access {
  position: fixed;
}

.portal-panel::before,
.status-card::before,
.support-strip::before,
.policy-card::before,
.modal__dialog::before,
.portal--profile .command-center--panel::before,
.portal--profile .profile-form__fieldset::before,
.portal--profile .alert::before,
.login-shell__panel::before,
.game-details-modal__thumb::before,
.game-details-modal__news-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--border-glow-edge) 0%,
    var(--border-glow-mid) 50%,
    var(--border-glow-edge) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  opacity: 0.82;
  filter: drop-shadow(0 0 8px var(--border-glow-aura));
  animation: border-glow-sweep 5.6s ease-in-out infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* Keep the news feed floating with no panel chrome behind it. */
#news-feed,
#news-feed.portal-panel,
.portal-home-main > #news-feed {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  outline: 0 !important;
}

#news-feed::before,
#news-feed::after,
#news-feed.portal-panel::before,
#news-feed.portal-panel::after {
  content: none !important;
  display: none !important;
}

@keyframes border-glow-sweep {
  0% {
    background-position: 0% 50%;
    opacity: 0.6;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.92;
  }
  100% {
    background-position: 200% 50%;
    opacity: 0.6;
  }
}

.game-tile {
  flex: 0 0 calc((100% - (var(--visible-cards) - 1) * 18px) / var(--visible-cards));
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.game-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(4, 12, 35, 0.58);
  border-color: rgba(126, 227, 255, 0.72);
}

.game-tile__media {
  position: relative;
  min-height: 156px;
}

.game-tile__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 220ms ease;
}

.game-tile:hover .game-tile__image {
  transform: scale(1.04);
}

.game-tile__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 10, 25, 0.16) 0%, rgba(6, 12, 31, 0.44) 76%, rgba(5, 10, 28, 0.485) 100%);
}

.game-tile__body {
  position: relative;
  z-index: 1;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 11px 15px;
  background: linear-gradient(180deg, rgba(6, 11, 29, 0.46), rgba(5, 9, 24, 0.49));
}

.game-tile__title {
  margin: 0;
  font-size: 1.28rem;
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
  letter-spacing: 0.04em;
}

.game-tile__actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.game-tile__actions .button {
  min-width: 0;
  flex: 1 1 0;
  padding: 8px 10px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.game-details-modal .modal__dialog--wide {
  width: min(1040px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-details-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-details-modal__subtitle {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.73rem;
  color: #9ecaff;
}

.game-details-modal__badge {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(126, 242, 255, 0.42);
  color: #8bf0ff;
  background: rgba(24, 54, 88, 0.22);
}

.game-details-modal__video {
  border-radius: 14px;
  border: 1px solid rgba(112, 163, 233, 0.35);
  overflow: hidden;
  background: rgba(6, 13, 30, 0.35);
}

.game-details-modal__trailer {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.game-details-modal__video-placeholder {
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #d8e6ff;
  background-image:
    linear-gradient(180deg, rgba(6, 14, 33, 0.2) 0%, rgba(6, 13, 33, 0.85) 100%);
}

.game-details-modal__video-placeholder p {
  margin: 0;
}

.game-details-modal__gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.game-details-modal__thumb {
  border: 1px solid rgba(106, 151, 219, 0.45);
  border-radius: 10px;
  background: rgba(7, 17, 42, 0.32);
  padding: 3px;
  cursor: pointer;
}

.game-details-modal__thumb.is-selected {
  border-color: rgba(120, 238, 255, 0.78);
}

.game-details-modal__thumb img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}

.game-details-modal__description {
  margin: 0;
  color: #c2d6ff;
}

.game-details-modal__latest-news {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.game-details-modal__latest-news h3 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
}

.game-details-modal__news-row {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(107, 146, 212, 0.38);
  background: rgba(8, 15, 38, 0.3);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#game-details-latest-news {
  max-height: clamp(220px, 34vh, 360px);
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-details-modal__news-date {
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fa8d8;
}

.game-details-modal__news-title {
  margin: 0;
  font-size: 1rem;
  color: #d7e9ff;
}

.game-details-modal__news-summary {
  margin: 0;
  color: #b3c8ee;
  font-size: 0.93rem;
  display: grid;
  gap: 6px;
  word-break: break-word;
}

.game-details-modal__news-summary > :first-child {
  margin-top: 0;
}

.game-details-modal__news-summary > :last-child {
  margin-bottom: 0;
}

.game-details-modal__news-summary ul,
.game-details-modal__news-summary ol {
  margin: 0 0 0 1.1rem;
  padding: 0;
}

.game-details-modal__news-summary a {
  color: #8feeff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.game-details-modal__news-summary a:hover {
  color: #c2f7ff;
}

.game-details-modal__news-empty {
  margin: 0;
  color: #a7bddf;
}

.news-feed-list {
  border-top: 1px solid rgba(102, 153, 232, 0.28);
}

#news-feed .news-feed-list {
  border-top: 0;
}

.news-feed-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(102, 153, 232, 0.24);
  background: none;
}

.news-feed-row__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.news-feed-row__date {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94aedc;
}

.news-feed-row__tag {
  margin: 0;
  font-size: 1.02rem;
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7ceeff;
}

.news-feed-row__summary {
  margin: 0;
  color: #b3c8ee;
  font-size: 1rem;
  line-height: 1.45;
}

.news-feed-row__summary > :first-child {
  margin-top: 0;
}

.news-feed-row__summary > :last-child {
  margin-bottom: 0;
}

.news-feed-row__summary p,
.news-feed-row__summary ul,
.news-feed-row__summary ol {
  margin: 0;
}

.news-feed-row__summary p + p,
.news-feed-row__summary p + ul,
.news-feed-row__summary p + ol,
.news-feed-row__summary ul + p,
.news-feed-row__summary ol + p,
.news-feed-row__summary ul + ol,
.news-feed-row__summary ol + ul {
  margin-top: 0.42rem;
}

.news-feed-row__summary ul,
.news-feed-row__summary ol {
  padding-left: 1.1rem;
}

.news-feed-row__summary li + li {
  margin-top: 0.22rem;
}

.news-feed-row__summary a {
  color: #8feeff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-feed-row__summary a:hover {
  color: #c2f7ff;
}

.news-feed-row__actions {
  flex: 0 0 auto;
  align-self: center;
}

.news-feed-row .news-card__link--button {
  font-size: 0.74rem;
  letter-spacing: 0.17em;
}

main.portal.portal--home .support-strip {
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid rgba(104, 146, 214, 0.32);
  background: rgba(10, 20, 48, 0.36);
  box-shadow: 0 14px 30px rgba(3, 8, 25, 0.45);
}

.site-footer {
  padding: 10px 28px 26px;
}

.site-footer__inner {
  width: min(1320px, 100%);
  border-top: 1px solid rgba(103, 162, 236, 0.3);
}

main.portal.portal--home .site-footer--in-scroll {
  width: 100%;
  padding: 10px 0 20px;
}

main.portal.portal--home .site-footer--in-scroll .site-footer__inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

@media (max-width: 1120px) {
  .portal-ui-layer::before {
    display: none;
  }

  .portal-shell {
    padding-top: 0;
  }

  .portal-header {
    grid-template-columns: 1fr;
    justify-items: start;
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
  }

  .portal-header__title {
    justify-self: start;
  }

  .portal-header__auth {
    justify-self: start;
    flex-wrap: wrap;
  }

  .portal-home-grid {
    grid-template-columns: 1fr;
  }

  .portal-shell > .launch-bay {
    position: static;
    top: auto;
    padding: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
  }

  .portal-access {
    position: static;
    top: auto;
    right: auto;
    width: auto;
    max-height: none;
    overflow: visible;
  }

  .portal-header::after,
  .portal-shell > .launch-bay::after,
  .portal-access::after {
    display: none;
  }

  .game-details-modal__gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  main.portal.portal--home {
    padding: 14px 0 46px;
  }

  .portal-shell {
    width: min(94vw, 1480px);
  }

  .portal-shell > .news-feed {
    width: 100%;
  }

  .portal-access {
    padding: 14px 16px;
  }

  .featured-game__summary {
    max-width: 100%;
  }

  .game-carousel {
    grid-template-columns: 1fr;
  }

  .game-carousel__nav {
    display: none;
  }

  .news-feed-row {
    flex-direction: column;
    gap: 10px;
  }

  .news-feed-row__actions {
    align-self: flex-start;
  }

  .game-details-modal__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-details-modal__trailer,
  .game-details-modal__video-placeholder {
    min-height: 210px;
  }

  .game-details-modal .modal__dialog--wide {
    max-height: 94vh;
    overflow-y: auto;
  }

  #game-details-latest-news {
    max-height: clamp(180px, 30vh, 260px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.portal-deck {
  position: relative;
  width: min(85vw, 1480px);
  margin: 0 auto;
}

.portal-deck__body {
  margin-top: var(--portal-sticky-gap);
}

.portal-scroll-region {
  width: min(85vw, 1480px);
  margin: 0 auto;
}

.portal-content-layout {
  display: block;
}

.portal-scroll-inner {
  min-width: 0;
}

@media (min-width: 1121px) {
  main.portal.portal--home {
    --portal-deck-height: 312px;
    padding-top: var(--portal-sticky-top);
    padding-bottom: 0;
    height: 100vh;
    overflow: hidden;
  }

  .portal-deck {
    position: fixed;
    top: var(--portal-sticky-top);
    left: var(--portal-shell-left);
    z-index: 170;
    pointer-events: none;
  }

  .portal-deck::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -12px;
    right: -12px;
    height: calc(var(--portal-header-height) + 12px);
    border-radius: 18px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(180deg, rgba(5, 12, 31, 0.94), rgba(5, 12, 31, 0.86));
    box-shadow: 0 14px 26px rgba(3, 9, 28, 0.38);
    backdrop-filter: none;
  }

  .portal-deck > * {
    position: relative;
    z-index: 2;
    pointer-events: auto;
  }

  .portal-deck .portal-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    transform: none !important;
    z-index: 3;
  }

  .portal-deck .launch-bay {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    z-index: 2;
    padding: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
  }

  .portal-deck .launch-bay::after,
  .portal-deck .portal-header::after {
    display: none;
  }

  .portal-scroll-region {
    position: fixed;
    top: calc(var(--portal-sticky-top) + var(--portal-deck-height) + 34px - 18px);
    left: var(--portal-shell-left);
    width: calc(var(--portal-shell-width) - var(--portal-sidebar-width) - var(--portal-grid-gap));
    right: auto;
    bottom: 0;
    padding-top: 18px;
    padding-right: 10px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    z-index: 20;
    border-top: 0;
    box-shadow: none;
  }

  .portal-scroll-inner {
    padding-right: 0;
  }

  .portal-content-layout > .portal-access {
    position: fixed !important;
    top: calc(var(--portal-sticky-top) + var(--portal-deck-height) + 34px) !important;
    right: var(--portal-shell-left) !important;
    width: var(--portal-sidebar-width) !important;
    max-height: none !important;
    overflow: visible !important;
    z-index: 150;
  }

  .portal-content-layout > .portal-access::after {
    display: none;
  }
}

@media (max-width: 1120px) {
  .portal-deck {
    width: min(94vw, 1480px);
  }

  .portal-deck__body {
    margin-top: 18px;
  }

  .portal-scroll-region {
    width: min(94vw, 1480px);
    padding-top: 18px;
  }

  .portal-content-layout {
    display: block;
  }

  .portal-content-layout > .portal-access {
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .portal-scroll-inner {
    padding-right: 0;
  }
}
