:root {
  --bg: #050913;
  --bg-2: #0c1220;
  --panel: rgba(10, 16, 29, 0.82);
  --panel-strong: rgba(7, 12, 22, 0.94);
  --line: rgba(71, 178, 255, 0.16);
  --line-strong: rgba(71, 178, 255, 0.34);
  --text: #f4f8ff;
  --muted: #90a4c3;
  --cyan: #2de2ff;
  --blue: #2d7dff;
  --pink: #7a5cff;
  --green: #7df7c7;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  --radius: 28px;
  --radius-sm: 20px;
  --shell: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", sans-serif;
  background:
    linear-gradient(130deg, rgba(45, 226, 255, 0.08) 0%, transparent 30%),
    linear-gradient(230deg, rgba(122, 92, 255, 0.09) 0%, transparent 34%),
    linear-gradient(180deg, #02050c 0%, #07101d 44%, #050913 100%);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 24px 24px;
}

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin: 0 auto;
}

.glass-panel {
  background: linear-gradient(180deg, rgba(14, 26, 47, 0.88), rgba(10, 20, 36, 0.76));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.ripple {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
}

.site-header,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  isolation: isolate;
  padding: 12px 0 0;
}

.site-header .shell {
  width: min(calc(100% - 32px), 1440px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(100% + 14px);
  background: linear-gradient(180deg, rgba(6, 13, 24, 0.96), rgba(6, 13, 24, 0.72), transparent);
  pointer-events: none;
  z-index: -1;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(12, 24, 43, 0.94), rgba(10, 20, 36, 0.9));
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
}

.brand,
.desktop-nav,
.header-actions,
.lang-switch,
.hero-actions,
.hero-metrics,
.hud-row,
.footer-row,
.footer-links,
.support-actions {
  display: flex;
  gap: 14px;
}

.brand {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding-left: 0;
  font-family: "Inter Tight", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-text {
  white-space: nowrap;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.brand::before {
  display: none;
}

.desktop-nav {
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.header-actions {
  align-items: center;
  flex: 0 0 auto;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  position: relative;
  overflow: hidden;
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.header-github,
.header-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(14, 26, 47, 0.96), rgba(10, 20, 36, 0.92));
  border: 1px solid rgba(132, 196, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(0, 0, 0, 0.18);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.header-github:hover,
.header-discord:hover {
  transform: translateY(-1px);
  border-color: rgba(127, 231, 255, 0.26);
  background: linear-gradient(180deg, rgba(16, 31, 56, 0.98), rgba(10, 20, 36, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 34px rgba(0, 0, 0, 0.24);
}

.header-github-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--cyan);
}

.header-discord {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.94), rgba(122, 92, 255, 0.88));
  border-color: rgba(180, 188, 255, 0.38);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 16px 34px rgba(88, 101, 242, 0.22);
}

.header-discord:hover {
  background: linear-gradient(135deg, rgba(99, 112, 255, 0.98), rgba(137, 106, 255, 0.94));
  border-color: rgba(216, 220, 255, 0.62);
}

.header-discord-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.mobile-github-link {
  color: var(--cyan);
  font-weight: 800;
}

.mobile-discord-link {
  color: #dbe0ff;
  font-weight: 800;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.lang-switch {
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-user-avatar {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(127, 231, 255, 0.08);
  border: 1px solid rgba(127, 231, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-user-avatar img,
.auth-user-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.auth-user-avatar img {
  object-fit: cover;
}

.auth-user-avatar svg {
  width: 24px;
  height: 24px;
}

.auth-user-avatar[hidden],
.auth-button[hidden] {
  display: none !important;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.auth-button:hover {
  transform: translateY(-1px);
  border-color: rgba(127, 231, 255, 0.26);
  background: linear-gradient(180deg, rgba(16, 31, 56, 0.98), rgba(10, 20, 36, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 28px rgba(0, 0, 0, 0.2);
}

.auth-logout {
  color: var(--cyan);
}

.lang-btn,
.menu-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.lang-btn {
  min-width: 44px;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
}

.lang-btn.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(127, 231, 255, 0.18), rgba(120, 168, 255, 0.18));
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(132, 196, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.18);
  transition:
    transform 180ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.menu-button span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  margin: 0;
  background: var(--text);
  border-radius: 999px;
  transform-origin: center center;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    width 240ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms ease;
}

.menu-button span:first-child {
  transform: translate(-50%, calc(-50% - 4px));
}

.menu-button span:last-child {
  transform: translate(-50%, calc(-50% + 4px));
}

.menu-button:hover {
  transform: translateY(-1px);
  background: rgba(127, 231, 255, 0.08);
  border-color: rgba(127, 231, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 28px rgba(0, 0, 0, 0.22);
}

.menu-button:active {
  transform: none;
}

.menu-button.is-open {
  background: linear-gradient(135deg, rgba(127, 231, 255, 0.14), rgba(120, 168, 255, 0.08));
  border-color: rgba(127, 231, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(127, 231, 255, 0.08),
    0 18px 32px rgba(8, 17, 31, 0.34);
}

.menu-button.is-open span:first-child {
  width: 20px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-button.is-open span:last-child {
  width: 20px;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  padding: 14px 16px 18px;
  border-radius: 24px;
  position: relative;
  z-index: 1201;
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav:not([hidden]) {
  animation: mobile-nav-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: top center;
}

.hero-section {
  padding: 34px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 28px;
  align-items: center;
}

.hero-copy {
  animation: float-soft 8s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
.brand-text {
  font-family: "Inter Tight", sans-serif;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  max-width: 10.5ch;
  font-size: clamp(2.1rem, 4vw, 4.15rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.hero-text,
.section-copy,
.feature-panel p,
.info-card p,
.release-note,
.release-summary,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  margin-top: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: none;
}

.button:active {
  transform: none;
}

.button.primary {
  color: #07101d;
  background: linear-gradient(135deg, var(--cyan), #b4f5ff 42%, var(--blue));
  box-shadow: 0 18px 36px rgba(120, 168, 255, 0.24);
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.hero-metrics {
  flex-wrap: wrap;
  margin-top: 28px;
}

.metric-card {
  min-width: 148px;
  padding: 16px 18px;
  border-radius: 22px;
}

.metric-card span,
.hud-item span,
.release-meta-chip span,
.panel-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
}

.stage-shell {
  padding: 16px;
  border-radius: 34px;
}

.stage-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stage-screen {
  position: relative;
  min-height: 560px;
  margin-top: 14px;
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(45, 226, 255, 0.1) 0%, transparent 34%),
    linear-gradient(220deg, rgba(122, 92, 255, 0.12) 0%, transparent 38%),
    linear-gradient(180deg, rgba(8, 14, 26, 0.9), rgba(3, 7, 14, 0.98));
  border: 1px solid rgba(132, 196, 255, 0.14);
  isolation: isolate;
}

.stage-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(127, 231, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 231, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 85%);
  opacity: 0.4;
  z-index: 0;
  animation: pulse-grid 10s linear infinite;
}

.screen-orb {
  display: none;
}

.orb-a {
  top: -44px;
  right: -20px;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(127, 231, 255, 0.22), transparent 70%);
  animation: float-orb-a 9s ease-in-out infinite;
}

.orb-b {
  left: -56px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(120, 168, 255, 0.18), transparent 70%);
  animation: float-orb-b 12s ease-in-out infinite;
}

.screen-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 500px;
}

.screen-chip {
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
}

.screen-content h2 {
  max-width: 12ch;
  margin-top: auto;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.screen-content p {
  max-width: 38ch;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.68;
}

.screen-side-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.side-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 24, 42, 0.92), rgba(5, 10, 19, 0.78));
  border: 1px solid rgba(132, 196, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.side-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.side-card strong {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.hud-row {
  flex-wrap: wrap;
  margin-top: 24px;
}

.hud-item {
  min-width: 108px;
  padding: 14px 16px;
  border-radius: 20px;
  animation: float-soft 10s ease-in-out infinite;
}

.hud-item strong {
  display: block;
  margin-top: 6px;
}


.section {
  padding: 52px 0;
}

.section-head {
  max-width: 760px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.feature-panel,
.info-card,
.credit-card,
.release-highlight,
.release-card,
.support-banner {
  border-radius: var(--radius);
}

.feature-panel,
.info-card,
.credit-card,
.release-highlight,
.support-banner {
  padding: 26px;
}

.feature-large {
  min-height: 100%;
}

.panel-kicker,
.panel-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(127, 231, 255, 0.08);
  color: var(--cyan);
}

.feature-panel h3,
.info-card h3,
.credit-card h3 {
  margin-top: 18px;
  margin-bottom: 12px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.info-card {
  min-height: 100%;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.feature-panel,
.credit-card,
.release-card,
.release-highlight,
.support-banner {
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.info-card:hover,
.feature-panel:hover,
.credit-card:hover,
.release-card:hover,
.release-highlight:hover,
.support-banner:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.38);
}

.info-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(127, 231, 255, 0.2), rgba(120, 168, 255, 0.1));
  position: relative;
  overflow: hidden;
}

.info-icon::before,
.info-icon::after {
  content: "";
  position: absolute;
}

.icon-library::before {
  inset: 13px;
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.icon-setup::before {
  inset: 13px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
}

.icon-video::before {
  inset: 15px 14px 15px 20px;
  background: rgba(255, 255, 255, 0.82);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.icon-performance::before {
  left: 14px;
  bottom: 14px;
  width: 7px;
  height: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    11px -7px 0 0 rgba(255, 255, 255, 0.78),
    22px -14px 0 0 rgba(255, 255, 255, 0.62);
}

.icon-performance::after {
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.26);
  border-radius: 999px;
}

.credits-panel {
  padding: 28px;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.credit-card {
  min-height: 100%;
}

.credit-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.credit-link:hover {
  color: #b4f5ff;
}

.release-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}

.release-highlight {
  min-height: 320px;
}

.release-list {
  display: grid;
  gap: 16px;
  align-content: start;
}

.release-top,
.release-actions,
.release-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.release-summary {
  margin-top: 14px;
}

.release-summary-rich {
  white-space: pre-line;
}

.release-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.release-meta-chip,
.release-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
}

.release-badge {
  color: var(--cyan);
  background: rgba(127, 231, 255, 0.1);
}

.release-meta-chip {
  background: rgba(255, 255, 255, 0.05);
}

.release-meta-chip strong {
  font-size: 0.95rem;
}

.release-actions {
  margin-top: 24px;
}

.release-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.release-card:hover,
.release-card:focus-visible,
.release-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(127, 231, 255, 0.3);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
  background: linear-gradient(180deg, rgba(18, 35, 63, 0.76), rgba(10, 21, 37, 0.86));
}

.release-card:focus-visible {
  outline: 2px solid rgba(127, 231, 255, 0.35);
  outline-offset: 2px;
}

.release-card-head h3,
.release-highlight h3 {
  margin-top: 10px;
}

.release-highlight h3 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.release-card-head strong {
  font-size: 1.35rem;
  line-height: 1;
}

.release-card .release-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.release-card-empty {
  min-height: 180px;
  cursor: default;
  place-items: center;
  display: grid;
}

.release-card-empty:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.03);
}

.release-load-more {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  color: var(--cyan);
  background: rgba(127, 231, 255, 0.08);
  border: 1px solid rgba(127, 231, 255, 0.18);
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.release-load-more:hover {
  color: var(--text);
  border-color: rgba(127, 231, 255, 0.34);
  background: rgba(127, 231, 255, 0.12);
}

.release-list-more {
  width: 100%;
}

.release-notes-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(132, 196, 255, 0.1);
}

.release-notes-title {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.release-note-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.release-note-list li + li {
  margin-top: 8px;
}

.release-note {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.support-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.button.discord {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.96), rgba(122, 92, 255, 0.88));
  border-color: rgba(180, 188, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 38px rgba(88, 101, 242, 0.24);
}

.button.discord:hover {
  border-color: rgba(210, 216, 255, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 24px 46px rgba(88, 101, 242, 0.3);
}

.support-page {
  min-height: 100vh;
  padding: 24px 0 40px;
}

.support-shell {
  display: grid;
  gap: 18px;
}

.support-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 28px;
}

.support-card {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
}

.support-copy {
  max-width: 70ch;
}

.support-link-card {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.support-link-card code {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
  word-break: break-all;
}

.support-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.support-page-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.support-note {
  padding: 22px;
  border-radius: 24px;
}

.release-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.release-modal[hidden] {
  display: none;
}

.release-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 14, 0.74);
  backdrop-filter: blur(12px);
}

.release-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(88vh, 920px);
  padding: 24px;
  border-radius: 30px;
  overflow: auto;
}

.release-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.release-modal-close {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 1.6rem;
  line-height: 1;
}

.release-modal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
}

.release-modal-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.modal-release-item {
  padding: 16px 18px;
  border-radius: 22px;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.modal-release-item:hover,
.modal-release-item.is-active {
  transform: translateY(-2px);
  border-color: rgba(127, 231, 255, 0.32);
  background: linear-gradient(180deg, rgba(18, 35, 63, 0.78), rgba(10, 21, 37, 0.9));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.modal-release-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-release-top strong {
  font-size: 1.2rem;
}

.modal-release-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(127, 231, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
}

.modal-release-item p {
  margin-top: 8px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}

.modal-release-date {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
}

.release-modal-detail {
  min-height: 100%;
  padding: 24px;
  border-radius: 28px;
}

.release-modal-empty {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  color: var(--muted);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 14, 0.78);
  backdrop-filter: blur(12px);
}

.auth-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 24px;
  border-radius: 28px;
}

.auth-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.auth-modal-head h2 {
  font-size: 2rem;
}

.auth-modal-head p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-google {
  width: 100%;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-form label[hidden] {
  display: none !important;
}

.auth-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(127, 231, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(127, 231, 255, 0.08);
}

.auth-error {
  min-height: 22px;
  color: #ff9f7d;
  font-size: 0.92rem;
}

.auth-toggle {
  justify-self: start;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(127, 231, 255, 0.08);
  border: 1px solid rgba(127, 231, 255, 0.16);
  font-weight: 800;
}

.site-footer {
  padding: 0 0 36px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.footer-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(127, 231, 255, 0.2);
}

.footer-title {
  display: block;
  font-family: "Inter Tight", sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-company {
  margin-top: 4px;
  color: var(--cyan);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.footer-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(127, 231, 255, 0.55);
}

.footer-meta-caption {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  flex-wrap: wrap;
}

.ripple-ink {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0) 72%);
  animation: ripple 420ms ease-out;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  will-change: transform, opacity;
}

.button.primary .ripple-ink {
  background: radial-gradient(circle, rgba(7, 16, 29, 0.18) 0%, rgba(7, 16, 29, 0.08) 45%, rgba(7, 16, 29, 0) 72%);
  opacity: 0.5;
}

.button > *,
.lang-btn > *,
.menu-button > * {
  position: relative;
  z-index: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.2);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes float-orb-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-10px, 12px, 0);
  }
}

@keyframes float-orb-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -10px, 0);
  }
}

@keyframes pulse-grid {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(18px);
  }
}

@keyframes mobile-nav-in {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .release-layout,
  .about-grid,
  .feature-cards,
  .credits-grid {
    grid-template-columns: 1fr;
  }

  .release-modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1240px) {
  .header-bar {
    gap: 10px;
    padding-inline: 14px;
  }

  .brand {
    gap: 9px;
    letter-spacing: 0.05em;
  }

  .desktop-nav,
  .header-actions {
    gap: 10px;
  }

  .desktop-nav a {
    font-size: 0.96rem;
  }

  .header-github,
  .header-discord {
    gap: 8px;
    padding-inline: 13px;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: relative;
    padding-top: 8px;
  }

  .site-header::before {
    height: 100%;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .mobile-nav:not([hidden]) {
    display: flex;
  }

  .header-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    grid-template-areas:
      "brand burger"
      "lang lang"
      "auth auth";
    align-items: center;
    border-radius: 26px;
    padding: 12px;
    gap: 10px 12px;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
    gap: 8px;
    padding-left: 0;
  }

  .brand-text {
    font-size: 1.28rem;
    letter-spacing: 0.04em;
  }

  .header-actions {
    display: contents;
  }

  .lang-switch {
    grid-area: lang;
    min-width: 0;
    justify-content: stretch;
    gap: 4px;
    padding: 5px;
  }

  .auth-actions {
    grid-area: auth;
    justify-content: stretch;
  }

  .auth-user-avatar {
    width: 40px;
    height: 40px;
  }

  .auth-button {
    flex: 1;
    min-height: 40px;
  }

  .header-github,
  .header-discord {
    display: none;
  }

  .lang-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 9px 10px;
  }

  .menu-button {
    grid-area: burger;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    justify-self: end;
  }

  .mobile-nav {
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 22px;
  }

  .mobile-nav a {
    display: block;
    padding: 8px 4px;
    font-size: 1.02rem;
  }

  .support-banner,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .support-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .support-topbar .lang-switch {
    width: 100%;
  }

  .support-page-notes {
    grid-template-columns: 1fr;
  }

  .footer-meta-row {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(calc(100% - 20px), var(--shell));
  }

  .header-bar {
    grid-template-columns: minmax(0, 1fr) 46px;
    border-radius: 22px;
    padding: 10px;
    gap: 10px;
  }

  .brand-text {
    font-size: 1.12rem;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .brand::before {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .lang-switch {
    padding: 4px;
  }

  .lang-btn {
    min-height: 40px;
    font-size: 0.98rem;
  }

  .menu-button {
    width: 46px;
    height: 46px;
  }

  .mobile-nav {
    border-radius: 20px;
  }

  .stage-screen {
    min-height: 480px;
    padding: 20px;
  }

  .screen-side-panel {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .release-actions .button,
  .support-actions .button {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
  }

  .feature-panel,
  .info-card,
  .credit-card,
  .release-highlight,
  .support-banner,
  .support-note {
    padding: 20px;
  }

  .support-page-actions .button {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
  }

  .release-modal {
    padding: 12px;
  }

  .release-modal-dialog,
  .release-modal-detail {
    padding: 18px;
    border-radius: 24px;
  }

  .release-modal-head {
    align-items: center;
  }

  .release-modal-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* EmuCoreV PSVita skin */
.hero-section {
  padding-top: 28px;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
}

.stage-shell {
  position: relative;
  min-height: 520px;
  padding: 34px 86px 30px;
  border-radius: 86px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 16%),
    linear-gradient(180deg, rgba(18, 24, 34, 0.98), rgba(3, 6, 11, 0.98));
  border-color: rgba(88, 137, 190, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -18px 32px rgba(0, 0, 0, 0.28),
    0 34px 90px rgba(0, 0, 0, 0.44);
}

.stage-shell::before,
.stage-shell::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 52px;
  height: 186px;
  transform: translateY(-50%);
  opacity: 0.95;
  pointer-events: none;
}

.stage-shell::before {
  left: 22px;
  background:
    radial-gradient(circle at 26px 28px, #0d1422 0 15px, #5e789e 16px 18px, transparent 19px),
    linear-gradient(#d8e9ff 0 0) 24px 82px / 6px 56px no-repeat,
    linear-gradient(#d8e9ff 0 0) 0 107px / 54px 6px no-repeat;
}

.stage-shell::after {
  right: 22px;
  background:
    radial-gradient(circle at 26px 26px, #d8e9ff 0 7px, transparent 8px),
    radial-gradient(circle at 26px 70px, #2de2ff 0 7px, transparent 8px),
    radial-gradient(circle at 8px 48px, #d8e9ff 0 7px, transparent 8px),
    radial-gradient(circle at 44px 48px, #7a5cff 0 7px, transparent 8px),
    radial-gradient(circle at 26px 148px, #0d1422 0 15px, #5e789e 16px 18px, transparent 19px);
}

.stage-topline {
  min-height: 20px;
  align-items: center;
  color: rgba(216, 233, 255, 0.56);
}

.stage-screen {
  min-height: 420px;
  margin-top: 18px;
  border-radius: 26px;
  border-color: rgba(45, 226, 255, 0.26);
  background:
    linear-gradient(125deg, rgba(45, 226, 255, 0.16), transparent 32%),
    linear-gradient(225deg, rgba(122, 92, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(2, 7, 15, 0.98), rgba(5, 12, 24, 0.98));
  box-shadow:
    inset 0 0 0 8px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 44px rgba(0, 0, 0, 0.32);
}

.stage-screen::before {
  background:
    linear-gradient(rgba(45, 226, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 226, 255, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.34;
}

.screen-content {
  min-height: 362px;
}

.screen-chip {
  color: #06101d;
  background: linear-gradient(135deg, #2de2ff, #b8f5ff);
  box-shadow: 0 12px 30px rgba(45, 226, 255, 0.16);
}

.screen-content h2 {
  max-width: 15ch;
}

.hud-item {
  border-radius: 14px;
  animation: none;
}

.side-card {
  border-radius: 14px;
  background: rgba(7, 15, 28, 0.86);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .stage-shell {
    min-height: 0;
    padding: 24px 22px 24px;
    border-radius: 34px;
  }

  .stage-shell::before,
  .stage-shell::after {
    display: none;
  }

  .stage-screen {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .stage-screen {
    min-height: 460px;
    padding: 22px;
  }

  .screen-content {
    min-height: 410px;
  }
}

/* PSVita visual refresh */
:root {
  --bg: #03060b;
  --bg-2: #0b111a;
  --panel: rgba(12, 17, 27, 0.84);
  --panel-strong: rgba(6, 10, 17, 0.95);
  --line: rgba(116, 148, 194, 0.22);
  --line-strong: rgba(45, 226, 255, 0.38);
  --text: #f5f8ff;
  --muted: #9aa8bd;
  --cyan: #2de2ff;
  --blue: #4d9eff;
  --pink: #6d72ff;
  --green: #68f0bc;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 18px;
  --radius-sm: 12px;
}

body {
  font-family: "Inter", sans-serif;
  background:
    linear-gradient(115deg, rgba(45, 226, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #03060b 0%, #07101c 48%, #03060b 100%);
}

.page-noise {
  opacity: 0.2;
  background-image:
    linear-gradient(115deg, transparent 0 46%, rgba(45, 226, 255, 0.035) 47% 48%, transparent 49% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 36%);
  background-size: 120px 120px, 100% 100%;
}

.glass-panel,
.games-panel,
.feature-panel,
.info-card,
.credit-card,
.release-highlight,
.release-card,
.support-banner,
.support-note {
  background:
    linear-gradient(180deg, rgba(16, 22, 34, 0.9), rgba(7, 11, 18, 0.82));
  border-color: var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 22px 58px rgba(0, 0, 0, 0.34);
}

.header-bar {
  padding: 10px 14px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(18, 26, 40, 0.9), rgba(7, 11, 18, 0.88));
  border-color: rgba(116, 148, 194, 0.24);
}

.brand,
h1,
h2,
.brand-text,
.footer-title {
  font-family: "Inter Tight", sans-serif;
  letter-spacing: 0;
}

.brand {
  text-transform: none;
  font-weight: 800;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(45, 226, 255, 0.08);
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  font-size: 0.94rem;
  font-weight: 650;
}

.header-github,
.header-discord,
.auth-button,
.lang-btn {
  border-radius: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.header-github,
.auth-button {
  background: rgba(255, 255, 255, 0.035);
}

.header-discord {
  background: #5865f2;
}

.hero-section {
  padding: 56px 0 42px;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  gap: 56px;
}

.hero-copy {
  animation: none;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

h1 {
  max-width: 11.2ch;
  font-size: 4.55rem;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  letter-spacing: 0;
  line-height: 1.02;
}

.hero-text {
  max-width: 52ch;
  color: #a7b5ca;
  font-size: 1rem;
}

.button {
  min-height: 50px;
  border-radius: 14px;
  letter-spacing: 0;
  font-weight: 750;
}

.button.primary {
  color: #03060b;
  background: linear-gradient(135deg, #2de2ff, #d9fbff 52%, #4d9eff);
  box-shadow: 0 18px 38px rgba(45, 226, 255, 0.18);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.035);
}

.metric-card {
  min-width: 132px;
  padding: 14px 16px;
  border-radius: 14px;
}

.metric-card span,
.hud-item span,
.release-meta-chip span,
.panel-kicker,
.side-kicker {
  letter-spacing: 0;
  text-transform: none;
}

.stage-shell {
  min-height: 480px;
  padding: 26px 86px 28px;
  border-radius: 72px;
}

.stage-screen {
  min-height: 382px;
  padding: 26px;
  border-radius: 20px;
}

.screen-content {
  min-height: 326px;
}

.screen-content h2 {
  max-width: 14ch;
  font-family: "Inter Tight", sans-serif;
  font-size: 3.1rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.screen-chip {
  border-radius: 12px;
  font-weight: 750;
}

.hud-item,
.side-card {
  border-radius: 12px;
}

.feature-panel,
.info-card,
.credit-card,
.release-card,
.release-highlight {
  border-radius: 16px;
}

.feature-panel:hover,
.info-card:hover,
.credit-card:hover,
.release-card:hover,
.release-highlight:hover {
  transform: translateY(-2px);
}

.feature-icon,
.support-icon {
  border-radius: 14px;
}

.games-panel {
  border-radius: 18px;
}

.games-search input,
.comment-device-grid select,
.auth-form input,
.comment-form textarea,
.sort-chips,
.sort-chip,
.game-card {
  border-radius: 12px;
}

.sort-chips {
  background: rgba(255, 255, 255, 0.028);
}

.sort-chip:hover,
.sort-chip.active {
  border-color: rgba(45, 226, 255, 0.34);
  background: rgba(45, 226, 255, 0.1);
}

.game-card:hover {
  transform: translateY(-3px);
}

@media (max-width: 1180px) {
  h1 {
    font-size: 3.7rem;
  }

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

@media (max-width: 620px) {
  h1 {
    font-size: 2.8rem;
  }

  .hero-section {
    padding-top: 34px;
  }

  .stage-shell {
    border-radius: 24px;
    padding: 18px;
  }

  .stage-screen {
    min-height: 430px;
  }
}

/* PSVita OLED shell refresh */
body {
  background:
    linear-gradient(120deg, rgba(45, 226, 255, 0.075), transparent 28%),
    linear-gradient(235deg, rgba(109, 114, 255, 0.06), transparent 32%),
    radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.055), transparent 34%),
    linear-gradient(180deg, #020407 0%, #07101a 50%, #020407 100%);
}

.page-noise {
  opacity: 0.16;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 36px 36px;
}

.site-header {
  padding-top: 10px;
}

.site-header .shell {
  width: min(calc(100% - 24px), 1360px);
}

.header-bar {
  border-radius: 18px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(17, 23, 34, 0.92), rgba(6, 10, 16, 0.9));
  border-color: rgba(140, 170, 210, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 50px rgba(0, 0, 0, 0.28);
}

.brand {
  gap: 11px;
  font-size: 1.05rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.desktop-nav {
  gap: 4px;
}

.desktop-nav a {
  padding: 10px 12px;
  border-radius: 10px;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.footer-links a:hover {
  color: #ffffff;
  background: rgba(45, 226, 255, 0.07);
}

.header-github,
.header-discord,
.lang-btn,
.auth-button {
  min-height: 42px;
  border-radius: 10px;
}

.hero-section {
  padding: 42px 0 38px;
}

.hero-grid {
  grid-template-columns: minmax(320px, 0.84fr) minmax(560px, 1.16fr);
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy {
  padding-top: 12px;
}

.eyebrow {
  padding: 0;
  background: transparent;
  border: 0;
  color: #7fe7ff;
  font-weight: 760;
}

h1 {
  max-width: 10.6ch;
  margin-top: 16px;
  font-size: clamp(3.35rem, 6.1vw, 5.9rem);
  line-height: 0.88;
  font-weight: 850;
}

.hero-text {
  max-width: 48ch;
  color: #a2afc2;
  font-size: 1.03rem;
}

.hero-actions {
  gap: 10px;
}

.button {
  min-height: 46px;
  border-radius: 10px;
  padding: 0 18px;
}

.button.primary {
  background: linear-gradient(135deg, #7fe7ff, #ffffff 50%, #4d9eff);
}

.metric-card {
  min-width: 128px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.stage-shell {
  min-height: 510px;
  padding: 30px 96px 30px;
  border-radius: 92px;
  background:
    linear-gradient(180deg, #18202c 0%, #070b12 40%, #020306 100%);
  border-color: rgba(164, 190, 225, 0.26);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    inset 0 -22px 40px rgba(0, 0, 0, 0.58),
    0 38px 110px rgba(0, 0, 0, 0.52);
}

.stage-shell::before,
.stage-shell::after {
  top: 52%;
  width: 64px;
  height: 238px;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.3));
}

.stage-shell::before {
  left: 20px;
  background:
    radial-gradient(circle at 32px 34px, #0a0f18 0 18px, #a7bad7 19px 21px, transparent 22px),
    linear-gradient(#d9e7f8 0 0) 29px 94px / 7px 66px no-repeat,
    linear-gradient(#d9e7f8 0 0) 0 123px / 64px 7px no-repeat,
    radial-gradient(circle at 32px 212px, #090e16 0 16px, #5f7596 17px 19px, transparent 20px);
}

.stage-shell::after {
  right: 20px;
  background:
    radial-gradient(circle at 32px 26px, #e5f3ff 0 7px, transparent 8px),
    radial-gradient(circle at 32px 70px, #2de2ff 0 7px, transparent 8px),
    radial-gradient(circle at 12px 48px, #e5f3ff 0 7px, transparent 8px),
    radial-gradient(circle at 52px 48px, #6d72ff 0 7px, transparent 8px),
    radial-gradient(circle at 32px 208px, #090e16 0 16px, #5f7596 17px 19px, transparent 20px);
}

.stage-topline {
  position: relative;
  z-index: 2;
  padding: 0 8px;
  color: rgba(232, 242, 255, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.stage-screen {
  min-height: 388px;
  margin-top: 14px;
  padding: 24px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(45, 226, 255, 0.13), transparent 30%),
    linear-gradient(225deg, rgba(109, 114, 255, 0.12), transparent 40%),
    linear-gradient(180deg, #030915, #02050b);
  border-color: rgba(127, 231, 255, 0.28);
  box-shadow:
    inset 0 0 0 10px rgba(0, 0, 0, 0.36),
    inset 0 0 40px rgba(45, 226, 255, 0.055),
    0 18px 46px rgba(0, 0, 0, 0.38);
}

.stage-screen::before {
  background:
    linear-gradient(rgba(127, 231, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 231, 255, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.26;
}

.screen-content {
  min-height: 340px;
}

.screen-chip {
  border-radius: 9px;
  padding: 8px 11px;
}

.screen-content h2 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
}

.hud-row {
  gap: 8px;
}

.hud-item,
.side-card,
.feature-panel,
.info-card,
.credit-card,
.release-card,
.release-highlight,
.support-banner,
.support-note {
  border-radius: 10px;
}

.side-card,
.hud-item {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(127, 231, 255, 0.15);
}

.feature-panel,
.info-card,
.credit-card,
.release-card,
.release-highlight,
.support-banner,
.support-note {
  background:
    linear-gradient(180deg, rgba(14, 19, 29, 0.86), rgba(5, 8, 13, 0.82));
}

.panel-number {
  color: rgba(127, 231, 255, 0.36);
  font-family: "Inter Tight", sans-serif;
  font-size: 3.4rem;
  line-height: 0.86;
}

.feature-icon,
.support-icon {
  border-radius: 10px;
  background: rgba(45, 226, 255, 0.08);
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .stage-shell {
    max-width: 780px;
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .header-bar {
    border-radius: 14px;
  }

  .stage-shell {
    min-height: 0;
    padding: 18px;
    border-radius: 28px;
  }

  .stage-shell::before,
  .stage-shell::after {
    display: none;
  }

  .stage-screen {
    min-height: 440px;
    border-radius: 16px;
  }
}

/* Hero fit polish for long RU/UA headings */
.hero-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(42px, 5.4vw, 86px);
}

.hero-copy,
.hero-stage {
  min-width: 0;
}

h1 {
  max-width: 9.3ch;
  font-size: clamp(3rem, 4.85vw, 4.9rem);
  line-height: 0.94;
  overflow-wrap: break-word;
  hyphens: auto;
}

html[lang="ru"] h1,
html[lang="uk"] h1 {
  max-width: 11.8ch;
  font-size: clamp(2.85rem, 4.25vw, 4.35rem);
  line-height: 0.98;
}

.hero-text {
  max-width: 46ch;
}

.stage-shell {
  min-height: 0;
  max-width: 670px;
  padding: 26px 84px;
}

.stage-shell::before,
.stage-shell::after {
  height: 210px;
}

.stage-screen {
  min-height: 356px;
  padding: 22px 24px;
}

.screen-content {
  min-height: 306px;
}

.screen-content h2 {
  max-width: 13.2ch;
  font-size: clamp(2rem, 3.05vw, 3rem);
  line-height: 1;
  overflow-wrap: break-word;
  hyphens: auto;
}

html[lang="ru"] .screen-content h2,
html[lang="uk"] .screen-content h2 {
  max-width: 15ch;
  font-size: clamp(1.8rem, 2.55vw, 2.45rem);
  line-height: 1.04;
}

.screen-content p {
  max-width: 34ch;
  margin-top: 12px;
  line-height: 1.55;
}

.hud-row {
  margin-top: 18px;
}

.hud-item {
  min-width: 92px;
  padding: 11px 14px;
}

.screen-side-panel {
  gap: 10px;
  margin-top: 14px;
}

.side-card {
  padding: 12px 13px;
}

@media (min-width: 1181px) and (max-width: 1380px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1fr);
    gap: 44px;
  }

  h1 {
    font-size: clamp(3rem, 4.45vw, 4.25rem);
  }

  html[lang="ru"] h1,
  html[lang="uk"] h1 {
    font-size: clamp(2.75rem, 4vw, 3.95rem);
  }

  .stage-shell {
    max-width: 620px;
    padding-inline: 76px;
  }

  .screen-content h2 {
    font-size: clamp(1.85rem, 2.75vw, 2.55rem);
  }

  html[lang="ru"] .screen-content h2,
  html[lang="uk"] .screen-content h2 {
    font-size: clamp(1.7rem, 2.35vw, 2.22rem);
  }
}

@media (max-width: 1180px) {
  h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 8vw, 4.6rem);
  }

  html[lang="ru"] h1,
  html[lang="uk"] h1 {
    max-width: 13ch;
    font-size: clamp(2.7rem, 7.2vw, 4.1rem);
  }
}

@media (max-width: 700px) {
  h1 {
    max-width: 10.6ch;
    font-size: clamp(2.5rem, 13vw, 3.45rem);
  }

  html[lang="ru"] h1,
  html[lang="uk"] h1 {
    max-width: 12ch;
    font-size: clamp(2.25rem, 11.5vw, 3rem);
  }

  .stage-shell {
    max-width: none;
    padding: 18px;
  }

  .screen-content h2 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  html[lang="ru"] .screen-content h2,
  html[lang="uk"] .screen-content h2 {
    font-size: clamp(1.65rem, 8vw, 2.22rem);
  }
}

/* Final mobile guard: keep the desktop Vita composition from leaking into phones. */
@media (max-width: 700px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .shell,
  .site-header .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .hero-section {
    padding: 30px 0 24px;
    overflow: hidden;
  }

  main,
  .site-header,
  .section,
  .site-footer {
    max-width: 100%;
    overflow-x: clip;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: 100%;
    max-width: 100%;
  }

  .hero-copy,
  .hero-stage {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .eyebrow {
    max-width: 15rem;
    font-size: 0.92rem;
    line-height: 1.25;
  }

  h1,
  html[lang="ru"] h1,
  html[lang="uk"] h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 14vw, 3.4rem);
    line-height: 0.98;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
  }

  .hero-text {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .metric-card {
    min-width: 0;
    width: 100%;
  }

  .stage-shell {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding: 14px;
    border-radius: 24px;
  }

  .stage-topline {
    gap: 8px;
    padding: 0 4px;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }

  .stage-screen {
    width: 100%;
    min-height: 0;
    padding: 18px;
    border-radius: 14px;
    box-shadow:
      inset 0 0 0 5px rgba(0, 0, 0, 0.36),
      inset 0 0 28px rgba(45, 226, 255, 0.055),
      0 14px 34px rgba(0, 0, 0, 0.34);
  }

  .screen-content {
    min-height: 0;
  }

  .screen-chip {
    max-width: 100%;
    white-space: normal;
  }

  .screen-content h2,
  html[lang="ru"] .screen-content h2,
  html[lang="uk"] .screen-content h2 {
    max-width: 100%;
    font-size: clamp(1.8rem, 9vw, 2.55rem);
    line-height: 1.04;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
  }

  .screen-content p {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .hud-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .hud-item {
    min-width: 0;
    width: 100%;
    padding: 10px;
  }

  .hud-item strong {
    font-size: 0.95rem;
  }

  .screen-side-panel {
    display: none;
  }
}
