.team-page {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 8px 0 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.team-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--page-alt));
  clip-path: var(--notch-lg);
  box-shadow: inset 0 0 0 2px var(--line);
  transition: box-shadow 140ms steps(2);
}

.team-card:hover {
  box-shadow: inset 0 0 0 2px var(--mint-deep);
}

.team-card__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 18px 16px;
  background: rgba(5, 6, 12, 0.5);
  text-align: center;
}

.team-card__header::after {
  display: block;
  height: 4px;
  margin: 14px -18px -16px;
  background: var(--dither);
  content: "";
}

.team-card__label {
  color: var(--mint);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.team-card__subtitle {
  color: var(--red);
  font-family: var(--font-pixel);
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 12px;
  padding: 26px 18px 22px;
}

.team-card__member {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 200px;
  text-align: center;
}

.team-card__avatar {
  position: relative;
  width: clamp(96px, 8vw, 118px);
  height: clamp(96px, 8vw, 118px);
  margin-bottom: 14px;
  background-color: var(--surface-raised);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  clip-path: var(--notch-lg);
  box-shadow: inset 0 0 0 3px var(--mint-deep);
  transition: box-shadow 140ms steps(2), filter 140ms steps(2);
  filter: saturate(0.85) contrast(1.05);
}

.team-card__avatar::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  content: "";
}

.team-card__member:hover .team-card__avatar {
  box-shadow: inset 0 0 0 3px var(--red);
  filter: saturate(1.1);
}

.team-card__name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.team-card__role {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.4;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 32px;
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 4px;
  border: 0;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: var(--notch);
  transition: transform 90ms steps(2), background-color 90ms steps(2), color 90ms steps(2), box-shadow 90ms steps(2);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(2px);
}

.button--primary {
  background: var(--red);
  color: var(--void);
  box-shadow: inset 0 -4px 0 var(--red-deep), inset 0 3px 0 rgba(255, 255, 255, 0.25);
}

.button--primary::before {
  content: "▶";
  font-size: 0.66rem;
}

.button--primary:hover {
  background: var(--red-bright);
  color: var(--void);
}

.button--secondary {
  background: rgba(143, 227, 207, 0.06);
  color: var(--mint);
  box-shadow: inset 0 0 0 2px var(--mint-deep), inset 0 -6px 0 rgba(143, 227, 207, 0.08);
}

.button--secondary::after {
  content: "»";
  font-family: var(--font-body);
}

.button--secondary:hover {
  background: var(--mint);
  color: var(--void);
  box-shadow: inset 0 -4px 0 var(--mint-deep);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
  margin-top: 28px;
}

.card-grid--timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 26px;
}

.info-card {
  position: relative;
  display: flex;
  min-height: 174px;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 22px 22px;
  background:
    radial-gradient(circle, var(--line-strong) 0 2px, transparent 2.5px) 10px 10px / 6px 6px no-repeat,
    radial-gradient(circle, var(--line-strong) 0 2px, transparent 2.5px) calc(100% - 10px) 10px / 6px 6px no-repeat,
    radial-gradient(circle, var(--line-strong) 0 2px, transparent 2.5px) 10px calc(100% - 10px) / 6px 6px no-repeat,
    radial-gradient(circle, var(--line-strong) 0 2px, transparent 2.5px) calc(100% - 10px) calc(100% - 10px) / 6px 6px no-repeat,
    linear-gradient(180deg, var(--surface-raised), var(--surface));
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 2px var(--line);
  transition: transform 120ms steps(2), box-shadow 120ms steps(2);
}

.info-card::before {
  position: absolute;
  top: 0;
  left: 22px;
  width: 40px;
  height: 4px;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 59, 78, 0.7);
  content: "";
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 2px var(--mint-deep);
}

.info-card:hover::before {
  background: var(--mint);
  box-shadow: 0 0 10px rgba(143, 227, 207, 0.7);
}

.info-card h3 {
  color: var(--ink);
}

.info-card--current {
  box-shadow: inset 0 0 0 2px var(--mint), inset 0 0 26px rgba(143, 227, 207, 0.15);
}

.info-card--current::before {
  background: var(--mint);
  box-shadow: var(--glow-mint);
}

.card-grid--timeline .info-card::after {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--line-strong);
  content: "▶ ▶";
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  letter-spacing: -0.1em;
}

.card-grid--timeline .info-card:last-child::after {
  content: "■";
}

.content-section--dark .card-grid--timeline .info-card {
  background: linear-gradient(180deg, var(--surface-raised), var(--surface-dark));
}

.info-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.92rem;
  line-height: 1.55;
}

.info-card__period {
  margin-top: 6px !important;
  color: var(--mint) !important;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.1 !important;
}

.info-card__list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  line-height: 1.5;
}

.info-card__list li::marker {
  color: var(--red);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--jungle);
  font-family: var(--font-pixel);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.status::before {
  width: 10px;
  height: 10px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  content: "";
}

.status--available {
  color: var(--jungle);
}

.status--in-development {
  color: var(--amber);
}

.status--in-development::before {
  animation: lfs-blink 1.2s steps(1) infinite;
}

.status--planned {
  color: var(--violet);
}

.status--planned::before {
  background: transparent;
  box-shadow: inset 0 0 0 2px currentColor;
}

.content-section--dark .status--available { color: var(--jungle); }
.content-section--dark .status--in-development { color: var(--amber); }
.content-section--dark .status--planned { color: var(--violet); }

.faq-page {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) 0;
}

.faq-page__title {
  max-width: none;
  margin: 0;
  text-shadow: none;
}

.faq-page__intro {
  margin: 20px 0 36px;
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 1rem;
}

.team-intro__title {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-shadow: 3px 3px 0 var(--red-deep);
}

.team-intro .faq-page__intro {
  margin-bottom: 0;
}

.content-flow--team {
  margin-top: clamp(36px, 5vw, 56px);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-item {
  overflow: hidden;
  background: var(--surface);
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 2px var(--line);
}

.faq-item[open] {
  box-shadow: inset 0 0 0 2px var(--mint-deep);
}

.faq-item summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  flex: 0 0 auto;
  color: var(--red);
  content: ">";
  font-family: var(--font-pixel);
}

.faq-item summary > * {
  flex: 1;
}

.faq-item summary::after {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--mint);
  content: "[+]";
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "[-]";
  color: var(--red);
}

.faq-item > div {
  padding: 0 20px 20px 44px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.closing-cta {
  position: relative;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding: clamp(30px, 4vw, 48px);
  background:
    linear-gradient(90deg, rgba(5, 6, 12, 0.95) 0 45%, rgba(5, 6, 12, 0.7)),
    url("/site/media/keyart/lfs-keyart-eye.webp") right 40% / cover no-repeat,
    var(--red-night);
  color: var(--ink-on-dark);
  clip-path: var(--notch-lg);
  box-shadow: inset 0 0 0 2px rgba(255, 59, 78, 0.6);
}

.closing-cta::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: var(--dither);
  content: "";
}

.closing-cta .eyebrow {
  margin-bottom: 18px;
  background: var(--mint);
}

.closing-cta p {
  margin: 0;
}

.closing-cta > div:first-child {
  min-width: 0;
}

.closing-cta > div:first-child p:last-child {
  max-width: 50ch;
  color: var(--ink);
  font-size: 1.08rem;
}

.closing-cta .button-row {
  flex: 0 0 auto;
  margin-top: 0;
}

.docs-section {
  display: grid;
  gap: 24px;
}

.topic-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 3px 2px 8px;
  scrollbar-width: thin;
}

.topic-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.96rem;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 2px var(--line);
}

.topic-tabs button:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line-strong);
}

.topic-tabs button.is-active,
.topic-tabs button[aria-selected="true"] {
  background: var(--mint);
  color: var(--void);
  box-shadow: inset 0 -4px 0 var(--mint-deep);
}

.docs-article[hidden] {
  display: none;
}

.docs-article {
  max-width: 1000px;
  padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(180deg, var(--surface), var(--page-alt));
  clip-path: var(--notch-lg);
  box-shadow: inset 0 0 0 2px var(--line);
}

.docs-article > h2 {
  margin-bottom: 12px;
  color: var(--mint);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  text-shadow: 3px 3px 0 var(--red-deep);
}

.docs-article > p,
.docs-subsection p {
  color: var(--muted);
}

.docs-subsection {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 2px dashed var(--line);
}

.docs-subsection h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.docs-subsection h3::before {
  color: var(--red);
  content: "## ";
}

.docs-note {
  padding: 8px 0 8px 15px;
  border-left: 4px solid var(--amber);
  font-size: 0.96rem;
  font-style: italic;
}

pre,
code {
  font-family: var(--font-mono);
}

pre {
  position: relative;
  overflow-x: auto;
  margin: 20px 0;
  padding: 38px 20px 20px;
  background:
    linear-gradient(180deg, var(--line) 0 24px, transparent 24px),
    var(--void);
  color: var(--mint);
  font-size: 0.95rem;
  line-height: 1.55;
  tab-size: 2;
  text-shadow: 0 0 6px rgba(143, 227, 207, 0.45);
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 2px var(--line);
}

pre::before {
  position: absolute;
  top: 8px;
  left: 12px;
  width: 8px;
  height: 8px;
  background: var(--red);
  box-shadow: 14px 0 0 var(--amber), 28px 0 0 var(--mint);
  content: "";
}

pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

code {
  padding: 1px 6px;
  background: rgba(143, 227, 207, 0.1);
  color: var(--mint-bright);
  font-size: 1.12em;
}

.code-block {
  padding: 38px 20px 18px 0;
  background:
    linear-gradient(180deg, #2a2a2a 0 24px, transparent 24px),
    linear-gradient(90deg, #171717 0 52px, transparent 52px),
    #1c1c1c;
  color: #d4d4d4;
  text-shadow: none;
  counter-reset: code-line;
  box-shadow: inset 0 0 0 2px #333;
}

.code-block code {
  display: block;
  min-width: max-content;
}

.code-line {
  display: block;
  padding-left: 66px;
  position: relative;
  white-space: pre;
}

.code-line::before {
  position: absolute;
  left: 0;
  width: 40px;
  color: #7a7a7a;
  content: counter(code-line);
  counter-increment: code-line;
  text-align: right;
}

.tok-keyword {
  color: #569cd6;
}

.tok-function {
  color: #dcdcaa;
}

.tok-variable {
  color: #6fd66f;
}

.tok-number {
  color: #e6e6e6;
}

.tok-string {
  color: #cfcfcf;
}

.docs-page .docs-article {
  max-width: none;
}

.docs-page .topic-tabs {
  margin-bottom: 18px;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  background: var(--surface-dark);
  box-shadow: inset 0 0 0 2px var(--line);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tbody tr:nth-child(even) td {
  background: rgba(143, 227, 207, 0.03);
}

tbody tr:hover td {
  background: rgba(255, 59, 78, 0.07);
}

th {
  background: var(--red-night);
  color: var(--red-bright);
  font-family: var(--font-pixel);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: var(--ink);
}

tr:last-child td {
  border-bottom: 0;
}

.docs-related {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 22px;
  margin-top: 28px;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 26px 24px 20px;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  clip-path: var(--notch-lg);
  box-shadow: inset 0 0 0 2px var(--line), inset 0 4px 0 0 var(--mint-deep);
}

.review-card__quote {
  position: relative;
  flex: 1;
  margin: 0;
  padding-left: 30px;
}

.review-card__quote::before {
  position: absolute;
  top: -6px;
  left: 0;
  color: var(--red);
  content: "“";
  font-family: var(--font-pixel);
  font-size: 2.4rem;
  line-height: 1;
  text-shadow: var(--glow-red);
}

.review-card__quote p {
  margin: 0;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.6;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 2px dashed var(--line);
}

.review-card__avatar {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--mint);
  color: var(--void);
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  font-weight: 700;
  clip-path: var(--notch);
}

.review-card__who {
  display: grid;
  flex: 1;
  min-width: 0;
  font-family: var(--font-pixel);
  line-height: 1.3;
}

.review-card__name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.review-card__role,
.review-card__date {
  color: var(--muted);
  font-size: 0.86rem;
}

.review-card__rating {
  flex: 0 0 auto;
  color: var(--amber);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px rgba(244, 207, 93, 0.5);
}

.review-card__rating-off {
  color: var(--line-strong);
  text-shadow: none;
}

.review-card--placeholder {
  background: rgba(10, 12, 23, 0.6);
  box-shadow: inset 0 0 0 2px var(--line);
}

.review-card--placeholder::before {
  position: absolute;
  inset: 6px;
  background:
    repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px) top / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px) bottom / 100% 2px no-repeat,
    repeating-linear-gradient(0deg, var(--line-strong) 0 8px, transparent 8px 16px) left / 2px 100% no-repeat,
    repeating-linear-gradient(0deg, var(--line-strong) 0 8px, transparent 8px 16px) right / 2px 100% no-repeat;
  content: "";
  opacity: 0.6;
  pointer-events: none;
}

.review-card__badge {
  align-self: flex-start;
  padding: 3px 8px;
  background: var(--surface-raised);
  color: var(--amber);
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-card--placeholder .review-card__quote p,
.review-card--placeholder .review-card__name {
  color: var(--muted);
}

.review-card--placeholder .review-card__quote::before {
  color: var(--line-strong);
  text-shadow: none;
}

.review-card--placeholder .review-card__avatar {
  background: var(--surface-raised);
  color: var(--muted);
}

.review-card--placeholder .review-card__rating {
  color: var(--line-strong);
  text-shadow: none;
}

.card-grid--flip {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.flip-card {
  position: relative;
  min-height: 240px;
  perspective: 1400px;
  cursor: pointer;
  outline: none;
}

.flip-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.flip-card::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  content: "";
}

.flip-card__inner {
  position: relative;
  pointer-events: none;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.flip-card.is-flipped .flip-card__inner,
html.no-js .flip-card:hover .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card__front {
  height: 100%;
  min-height: inherit;
  padding-bottom: 58px;
}

.flip-card__front::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(225deg, var(--page) 0 50%, var(--mint) 50% 100%);
  content: "";
  transition: width 0.2s ease, height 0.2s ease;
}

.flip-card:hover .flip-card__front::after {
  width: 38px;
  height: 38px;
}

.flip-card__hint {
  position: absolute;
  right: 20px;
  bottom: 16px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 2px dashed var(--line);
  color: var(--mint);
  font-family: var(--font-pixel);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}

.flip-card__hint-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  background: var(--mint);
  color: var(--void);
  font-size: 1rem;
  animation: lfs-flip-hint 2.6s steps(4) infinite;
}

.flip-card__hint-touch {
  display: none;
}

@media (hover: none) {
  .flip-card__hint-hover {
    display: none;
  }

  .flip-card__hint-touch {
    display: inline;
  }
}

@keyframes lfs-flip-hint {
  0%, 70% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.flip-card__back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--void);
  transform: rotateY(180deg);
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 2px var(--mint-deep);
}

.flip-card__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.flip-card__back::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 0 2px var(--mint-deep), inset 0 0 40px rgba(0, 0, 0, 0.6);
  content: "";
  pointer-events: none;
}

.flip-card__label {
  position: absolute;
  z-index: 1;
  bottom: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 8px;
  background: rgba(5, 6, 12, 0.85);
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: 0.86rem;
}

.flip-card__label::before {
  color: var(--red);
  content: "▶ ";
}

.flip-card__soon {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: none;
  place-items: center;
  background:
    repeating-linear-gradient(0deg, rgba(143, 227, 207, 0.06) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(90deg, rgba(255, 59, 78, 0.05) 0 3px, transparent 3px 7px),
    var(--surface-dark);
  color: var(--amber);
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(244, 207, 93, 0.6);
}

.flip-card.is-missing-video .flip-card__soon {
  display: grid;
}

.flip-card.is-missing-video .flip-card__video {
  visibility: hidden;
}

.card-grid--flip > .info-card {
  min-height: 240px;
}

.gallery-section .section-heading {
  margin-bottom: 22px;
}

.gallery-section .section-note {
  margin: 0 auto 22px;
  max-width: 1040px;
}

.arcade-gallery {
  display: grid;
  gap: 14px;
  max-width: 1040px;
  margin: 0 auto;
  outline: none;
}

.arcade-gallery__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--void);
  clip-path: var(--notch-lg);
  box-shadow: inset 0 0 0 3px var(--mint-deep);
}

.arcade-gallery__main {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: cover;
}

.arcade-gallery__screen::after {
  position: absolute;
  inset: 10px;
  background:
    radial-gradient(ellipse 110% 100% at 50% 50%, transparent 65%, rgba(0, 0, 0, 0.45) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  content: "";
  pointer-events: none;
}

.arcade-gallery.is-switching .arcade-gallery__main {
  animation: lfs-channel 0.45s steps(6);
}

@keyframes lfs-channel {
  0% { clip-path: inset(0 0 100% 0); filter: brightness(2.2) saturate(0.4); }
  60% { filter: brightness(1.4); }
  100% { clip-path: inset(0); filter: none; }
}

.arcade-gallery__counter {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 22px;
  padding: 4px 10px;
  background: rgba(5, 6, 12, 0.82);
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.arcade-gallery__counter span {
  color: var(--amber);
}

.arcade-gallery__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  background: rgba(5, 6, 12, 0.8);
  color: var(--mint);
  font-size: 1.1rem;
  transform: translateY(-50%);
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 2px var(--mint-deep);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.arcade-gallery__nav:hover {
  background: var(--red);
  color: var(--void);
}

.arcade-gallery__nav--prev {
  left: 22px;
}

.arcade-gallery__nav--next {
  right: 22px;
}

.arcade-gallery__timer {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  left: 10px;
  height: 4px;
  background: rgba(5, 6, 12, 0.6);
}

.arcade-gallery__timer span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 59, 78, 0.7);
}

.arcade-gallery.is-timing .arcade-gallery__timer span {
  animation: lfs-gallery-timer 5s linear forwards;
}

@keyframes lfs-gallery-timer {
  to { width: 100%; }
}

.arcade-gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
}

.arcade-gallery__thumb {
  flex: 0 0 auto;
  width: 160px;
  padding: 4px;
  border: 0;
  background: var(--surface-dark);
  opacity: 0.55;
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 2px var(--line);
  transition: opacity 0.15s ease;
}

.arcade-gallery__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.arcade-gallery__thumb:hover {
  opacity: 0.85;
}

.arcade-gallery__thumb[aria-current="true"] {
  opacity: 1;
  box-shadow: inset 0 0 0 3px var(--mint);
}

@media (max-width: 760px) {
  .arcade-gallery__nav {
    width: 38px;
    height: 38px;
  }

  .arcade-gallery__nav--prev {
    left: 14px;
  }

  .arcade-gallery__nav--next {
    right: 14px;
  }

  .arcade-gallery__counter {
    top: 14px;
    right: 14px;
    font-size: 0.8rem;
  }

  .arcade-gallery__thumb {
    width: 110px;
  }
}

.picto-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 28px 20px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.picto-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.picto-item__icon {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 59, 78, 0.14), transparent 70%),
    var(--surface-dark);
  box-shadow:
    0 0 0 3px var(--red),
    0 0 14px rgba(255, 59, 78, 0.75),
    0 0 34px rgba(255, 59, 78, 0.3),
    inset 0 0 18px rgba(255, 59, 78, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.picto-item__icon::before,
.picto-item__icon::after {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  content: "";
}

.picto-item__icon::before {
  top: -6px;
  left: -6px;
}

.picto-item__icon::after {
  right: -6px;
  bottom: -6px;
}

.picto-item__icon img {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  filter: drop-shadow(2px 0 0 rgba(143, 227, 207, 0.35)) drop-shadow(-2px 0 0 rgba(143, 227, 207, 0.35)) drop-shadow(0 2px 0 rgba(143, 227, 207, 0.35)) drop-shadow(0 -2px 0 rgba(143, 227, 207, 0.35));
}

.picto-item:hover .picto-item__icon {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 3px var(--red-bright),
    0 0 20px rgba(255, 59, 78, 0.95),
    0 0 50px rgba(255, 59, 78, 0.45),
    inset 0 0 24px rgba(255, 59, 78, 0.5);
}

.picto-item__text {
  max-width: 26ch;
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  line-height: 1.5;
}

.arcade-gallery__thumbs {
  padding-bottom: 14px;
}

@supports not selector(::-webkit-scrollbar) {
  .arcade-gallery__thumbs {
    scrollbar-width: thin;
    scrollbar-color: var(--red) var(--surface-dark);
  }

  html {
    scrollbar-color: var(--mint-deep) var(--void);
  }
}

.arcade-gallery__thumbs::-webkit-scrollbar {
  height: 12px;
}

.arcade-gallery__thumbs::-webkit-scrollbar-track {
  background:
    repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px) center / 100% 2px no-repeat,
    var(--surface-dark);
  box-shadow: inset 0 0 0 2px var(--line);
}

.arcade-gallery__thumbs::-webkit-scrollbar-thumb {
  background: var(--red);
  border: 3px solid var(--surface-dark);
  box-shadow: inset 0 -2px 0 var(--red-deep), 0 0 8px rgba(255, 59, 78, 0.6);
}

.arcade-gallery__thumbs::-webkit-scrollbar-thumb:hover {
  background: var(--mint);
  box-shadow: inset 0 -2px 0 var(--mint-deep);
}

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

::-webkit-scrollbar-track {
  background: var(--void);
}

::-webkit-scrollbar-thumb {
  background: var(--mint-deep);
  border: 3px solid var(--void);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--mint);
}

::-webkit-scrollbar-corner {
  background: var(--void);
}

.site-main--map {
  width: 100%;
  padding-inline: 0;
}

.site-main--map > .content-flow {
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.universe-map {
  position: relative;
  height: calc(100svh - 74px);
  min-height: 420px;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, #01010b, transparent 70%), linear-gradient(90deg, #0b0e2d, #02020e 25%, #02020e 75%, #0b0c22);
}

.universe-map__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
}

.universe-map__canvas {
  --map-w: max(100cqw, min(177.67cqh, 150cqw));
  --map-h: calc(var(--map-w) / 1.7767);
  position: absolute;
  top: calc(max((100cqh - var(--map-h)) * 0.3, (100cqh - var(--map-h)) * 0.5) + 7cqh);
  left: calc((100cqw - var(--map-w)) * 0.44);
  width: var(--map-w);
  aspect-ratio: 1496 / 842;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 5%);
  mask-image: linear-gradient(180deg, transparent 0, #000 5%);
}

.universe-map__image {
  display: block;
  width: 100%;
  height: 100%;
}

.universe-map__canvas::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px);
  content: "";
  pointer-events: none;
}

.universe-map__stage::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 60%, rgba(5, 6, 12, 0.6) 100%);
  content: "";
  pointer-events: none;
}

.universe-map__badge {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: max(var(--gutter), calc((100% - var(--page-width)) / 2 + var(--gutter)));
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-shadow: none;
}

.universe-map__hint {
  position: absolute;
  z-index: 3;
  bottom: 22px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 6px 14px;
  background: rgba(5, 6, 12, 0.85);
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: 0.92rem;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 2px var(--mint-deep);
  pointer-events: none;
}

.universe-map__hint::before {
  color: var(--red);
  content: "▶ ";
}

.world-map__node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 2px solid var(--zone-color);
  background: rgba(5, 6, 12, 0.9);
  color: var(--zone-color);
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  font-weight: 600;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--zone-color);
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.world-map__node--center {
  width: 46px;
  height: 46px;
  font-size: 1.1rem;
}

.world-map__node::before {
  position: absolute;
  inset: -9px;
  border: 2px solid var(--zone-color);
  content: "";
  opacity: 0;
  animation: lfs-node-ping 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes lfs-node-ping {
  0% { opacity: 0.8; transform: scale(0.7); }
  70%, 100% { opacity: 0; transform: scale(1.5); }
}

.world-map__node:hover,
.world-map__node:focus-visible {
  background: var(--zone-color);
  color: var(--void);
  transform: translate(-50%, -50%) scale(1.15);
}

.world-map__node-name {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  padding: 4px 10px;
  background: rgba(5, 6, 12, 0.9);
  color: var(--zone-color);
  font-size: 0.86rem;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 1px var(--zone-color);
  pointer-events: none;
}

.world-map__node:hover .world-map__node-name,
.world-map__node:focus-visible .world-map__node-name {
  background: var(--zone-color);
  color: var(--void);
}

.map-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(84vh, 820px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.map-dialog::backdrop {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 3px),
    rgba(5, 6, 12, 0.78);
}

.map-dialog[open] {
  animation: lfs-dialog-in 0.12s ease-out;
}

.map-dialog[open]::backdrop {
  animation: lfs-backdrop-in 0.12s ease-out;
}

@keyframes lfs-dialog-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes lfs-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.map-dialog__inner {
  max-height: min(84vh, 820px);
  overflow-y: auto;
  padding: 0 clamp(20px, 4vw, 36px) clamp(22px, 4vw, 34px);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in srgb, var(--zone-color) 14%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--page-alt));
  clip-path: var(--notch-lg);
  box-shadow: inset 0 0 0 2px var(--zone-color), inset 0 4px 0 2px var(--zone-color);
}

.map-dialog__bar {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 calc(-1 * clamp(20px, 4vw, 36px)) 18px;
  padding: 14px clamp(20px, 4vw, 36px);
  background: rgba(10, 12, 23, 0.96);
  box-shadow:
    inset 0 6px 0 var(--zone-color),
    inset 2px 0 0 var(--zone-color),
    inset -2px 0 0 var(--zone-color),
    inset 0 -2px 0 color-mix(in srgb, var(--zone-color) 45%, transparent);
}

.map-dialog__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--zone-color);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.15;
  text-shadow: 3px 3px 0 var(--void);
}

.map-dialog__marker,
.map-dialog__close {
  flex: 0 0 auto;
}

.map-dialog__marker {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--zone-color);
  color: var(--void);
  font-family: var(--font-pixel);
  font-weight: 600;
}

.map-dialog__close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  background: var(--surface-dark);
  color: var(--ink);
  font-size: 1rem;
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 2px var(--line-strong);
}

.map-dialog__close:hover {
  background: var(--red);
  color: var(--void);
}

.map-dialog__section + .map-dialog__section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px dashed var(--line);
}

.map-dialog__section h2 {
  margin-bottom: 12px;
  color: var(--zone-color);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  text-shadow: 3px 3px 0 var(--void);
}

.map-dialog__intro {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1.04rem;
}

.map-dialog__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 14px;
  margin-top: 16px;
}

.map-dialog__cards .info-card {
  min-height: 0;
}

.map-dialog__cards--timeline {
  position: relative;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-left: 26px;
}

.map-dialog__cards--timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 4px;
  background: repeating-linear-gradient(180deg, var(--zone-color) 0 8px, transparent 8px 12px);
  content: "";
}

.map-dialog__cards--timeline .info-card {
  overflow: visible;
  clip-path: none;
}

.map-dialog__cards--timeline .info-card::after {
  position: absolute;
  top: 22px;
  left: -24px;
  width: 12px;
  height: 12px;
  background: var(--page);
  box-shadow: 0 0 0 3px var(--zone-color);
  content: "";
}

.map-dialog__cards--timeline .info-card--current::after {
  background: var(--zone-color);
  box-shadow: 0 0 0 3px var(--zone-color), 0 0 12px var(--zone-color);
}

.map-dialog__cards--timeline .info-card:hover {
  transform: none;
}

@media (max-width: 760px) {
  .universe-map__stage {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .universe-map__canvas {
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    min-width: 0;
    transform: none;
  }

  .universe-map__badge {
    top: 16px;
  }

  .universe-map__hint {
    bottom: 16px;
    font-size: 0.82rem;
  }
}
