/* Original-layout polish. Keep the established composition and game artwork. */
:root {
  --pp-surface: #131310;
  --pp-surface-raised: #1b1b16;
  --pp-ink: #f5f2e9;
  --pp-copy: #c3c1b9;
  --pp-muted: #9d9c93;
  --pp-line: rgba(226, 215, 181, .16);
  --pp-line-gold: rgba(255, 215, 0, .32);
  --pp-shadow: 0 16px 48px rgba(0, 0, 0, .3);
  --pp-ease: cubic-bezier(.2, .7, .2, 1);
}

::selection { background: var(--primary-yellow); color: var(--dark-bg); }
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--primary-yellow);
  outline-offset: 5px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 72px; z-index: 100010;
  padding: 12px 20px; color: var(--dark-bg); background: var(--primary-yellow);
  font-weight: 700; text-decoration: none; transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Preserve the vertical load and white sweep, with a legible central mark. */
#loading-screen {
  background: radial-gradient(ellipse at 50% 45%, #252015 0%, #0a0a09 58%);
}
.loader-brand-logo { width: clamp(110px, 14vw, 180px); opacity: .95; }
.loader-brand-name { font-size: clamp(16px, 2.2vw, 26px); opacity: .55; color: var(--pp-ink); }
.loader-brand-caption {
  margin-top: 18px; color: var(--pp-muted); font-size: 11px;
  font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.loader-corner { border-color: var(--pp-line-gold); }
.loader-pct-wrap { top: 20px; }
.loader-pct-text { font-size: 12px; font-variant-numeric: tabular-nums; }
.wow-progress { z-index: 950; }

/* The same narrow rail, expanding on hover or keyboard focus. */
.sidebar {
  background: linear-gradient(165deg, #1d1d17 0%, #10110f 45%, #0d0e0c 100%);
  border-right: 1px solid var(--pp-line-gold);
  box-shadow: 5px 0 28px rgba(0, 0, 0, .2);
  height: 100dvh;
}
.sidebar-logo { min-height: 66px; height: 66px; border-bottom: 1px solid var(--pp-line); }
.sidebar-logo .logo-image { width: 34px; height: 34px; object-fit: contain; }
.sidebar-nav { padding: .6rem 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.nav-item { margin: 2px 0; }
.sidebar .nav-link, .sidebar .audio-toggle-btn {
  min-height: 44px; font-size: .96rem; font-weight: 600;
  transition: background .2s ease, color .2s ease, padding .25s var(--pp-ease);
}
.nav-link::before, .audio-toggle-btn::before { width: 3px; }
.nav-link.active {
  color: var(--primary-yellow);
  background: linear-gradient(90deg, rgba(255, 190, 30, .16), rgba(255, 190, 30, .025));
}
.sidebar-footer { border-top: 1px solid var(--pp-line); flex-shrink: 0; }
.audio-toggle-container { flex-shrink: 0; }
.sidebar :focus-visible { outline-offset: -4px; }
.menu-backdrop { display: none; }
@media (min-width: 769px) {
  .sidebar:focus-within { width: var(--sidebar-width); overflow-y: auto; }
  .sidebar:focus-within .nav-link, .sidebar:focus-within .audio-toggle-btn { padding: .55rem 1rem; }
  .sidebar:focus-within .nav-icon, .sidebar:focus-within .audio-icon { margin-right: 1rem; }
  .sidebar:focus-within .nav-link span, .sidebar:focus-within .audio-text { opacity: 1; max-width: 200px; }
  .sidebar:focus-within .sidebar-footer p { opacity: 1; font-size: .75rem; }
}

/* Original full-bleed hero. The small caption explains the game below the art. */
.hero-section { height: 100svh; min-height: 540px; }
.hero-vignette {
  background: linear-gradient(to top, rgba(10, 10, 9, .96), rgba(10, 10, 9, .12) 48%, transparent 80%);
}
.hero-title-wrap { left: clamp(28px, 4.5vw, 76px); bottom: 3rem; max-width: 46%; }
.hero-kicker {
  color: var(--pp-ink); font-size: clamp(12px, 1.2vw, 16px); font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; margin: 0 0 1.1rem;
}
.hero-explore {
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px;
  color: var(--primary-yellow); font-size: 14px; font-weight: 600;
  letter-spacing: .07em; text-decoration: none;
}
.hero-explore i {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--pp-line-gold); transition: transform .25s var(--pp-ease), background .25s;
}
.hero-explore:hover i { transform: translateY(3px); background: rgba(255, 215, 0, .12); }
.hero-dl-widget {
  bottom: 3rem; right: 3rem; padding: 1.15rem 1.3rem 1.3rem;
  min-width: 250px; background: rgba(17, 17, 13, .88);
  border-color: var(--pp-line-gold); box-shadow: var(--pp-shadow);
}
.hero-dl-widget::before {
  content: ''; position: absolute; top: -1px; left: -1px; height: 3px; width: 42px;
  background: var(--primary-yellow);
}
.hero-dl-btn { min-height: 58px; font-size: 1.15rem; background: rgba(255, 215, 0, .075); border-color: var(--pp-line-gold); }
.hero-dl-btn__sub { opacity: 1; color: var(--pp-copy); font-size: .82rem; margin-top: 5px; }
.hero-dl-widget--hidden { visibility: hidden; }

/* Existing split scenario layout, framed artwork and clearer selection. */
.skillsets-section { min-height: 760px; max-height: none; height: 100svh; }
.sk-left { padding: clamp(40px, 7vh, 80px) clamp(26px, 3.8vw, 58px); border-color: var(--pp-line); }
.sk-title { font-size: clamp(1.9rem, 3.3vw, 3.2rem); letter-spacing: .035em; line-height: 1.15; }
.sk-subtitle { color: var(--pp-muted); font-size: 1.04rem; line-height: 1.7; margin-bottom: 2rem; }
.sk-list { gap: 4px; }
.sk-list-item, .sk-list-item:last-child { border-color: var(--pp-line); }
.sk-list-btn { padding: 1.2rem .8rem; gap: .9rem; border: 1px solid transparent; }
.sk-list-btn.active {
  background: linear-gradient(110deg, rgba(255, 192, 30, .10), rgba(255, 192, 30, .02));
  border-color: var(--pp-line-gold);
}
.sk-list-accent { left: -1px; }
.sk-list-index { color: var(--pp-muted); font-size: .78rem; }
.sk-list-name { color: var(--pp-copy); font-size: 1.12rem; letter-spacing: .045em; }
.sk-list-tag { color: var(--pp-muted); font-size: .91rem; margin-top: 3px; }
.sk-list-btn.active .sk-list-tag { color: #d7c270; }
.sk-panel { padding: clamp(32px, 5vh, 60px) clamp(28px, 4vw, 64px); gap: 1.8rem; }
.sk-panel-img-wrap {
  border: 1px solid var(--pp-line-gold); box-shadow: var(--pp-shadow);
  padding: 5px; background: var(--pp-surface); max-height: min(39vh, 350px);
}
.sk-panel-img { filter: none; }
.sk-panel-name { font-size: clamp(1.8rem, 3vw, 3.2rem); letter-spacing: .045em; line-height: 1.15; }
.sk-panel-badge { padding: .45rem .8rem; font-size: .72rem; }
.sk-panel-desc, .ts-bio, .ls-desc {
  color: var(--pp-copy); font-size: 1.08rem; line-height: 1.8; border-left-color: var(--pp-line-gold);
}
.sk-abilities li { color: var(--pp-copy); font-size: 1rem; line-height: 1.7; }
.sk-eyebrow, .team-eyebrow, .ls-eyebrow, .trl-eyebrow, .dl-eyebrow, .ab-eyebrow, .fb-eyebrow { font-size: .72rem; }

/* Carry the same type, surfaces and control treatment through the current sections. */
.team-inner { padding-top: 5rem; }
.team-group-photo + .team-inner { padding-top: 3.5rem; }
.team-group-photo img { padding: 6px; border: 1px solid var(--pp-line); background: var(--pp-surface); box-shadow: var(--pp-shadow); }
.ts-index, .ls-page { color: var(--pp-muted); }
.ts-role { color: #ffbd59; font-size: .75rem; line-height: 1.7; }
.ts-arrow, .ls-arrow, .nu-ctrl-btn {
  background: var(--pp-surface); border-color: var(--pp-line-gold); color: var(--pp-ink);
  transition: background .2s, border-color .2s, color .2s;
}
.ts-arrow:hover, .ls-arrow:hover, .nu-ctrl-btn:hover { background: var(--pp-surface-raised); border-color: var(--primary-yellow); }
.ts-dot { min-width: 28px; height: 28px; background: transparent; position: relative; }
.ts-dot::after { content: ''; position: absolute; left: 0; right: 0; top: 12px; height: 3px; background: var(--pp-muted); }
.ts-dot.active { background: transparent; }
.ts-dot.active::after { background: var(--primary-yellow); }
.ab-card, .dl-card, .fb-form-panel, .fb-card {
  border-color: var(--pp-line); background: linear-gradient(140deg, var(--pp-surface-raised), var(--pp-surface));
  box-shadow: var(--pp-shadow);
}
.nu-feat-wrap, .nu-thumb { border-color: var(--pp-line-gold); box-shadow: var(--pp-shadow); }
.nu-feat-date, .nu-thumb-date { color: var(--pp-muted); }
.team-sub, .ab-card-desc, .ab-mission, .ab-cta-body, .dl-subtitle, .fb-subtitle, .fb-card-msg {
  color: var(--pp-copy); font-size: 1.08rem; line-height: 1.8;
}
.dl-note, .dl-meta-label, .dl-req-key, .fb-note, .fb-char-hint, .fb-optional, .fb-card-date { color: var(--pp-muted); }
.dl-platform-os { color: var(--pp-copy); }
.dl-meta-label { font-size: .64rem; }
.fb-input, .fb-textarea {
  background: #0e0f0c; border-color: var(--pp-line); color: var(--pp-ink); font-size: 1.08rem; min-height: 46px;
}
.fb-input::placeholder, .fb-textarea::placeholder { color: var(--pp-muted); }
.fb-field label { color: var(--pp-copy); }
.fb-input:focus, .fb-textarea:focus { border-color: var(--primary-yellow); box-shadow: 0 0 0 3px rgba(255, 215, 0, .08); }
.fb-submit-btn, .dl-btn { min-height: 48px; color: var(--dark-bg); font-weight: 700; }
.main-footer { border-top-color: var(--pp-line); }

@media (max-width: 1000px) and (min-width: 769px) {
  .sk-left { flex-basis: 40%; max-width: 40%; padding-left: 28px; padding-right: 28px; }
  .sk-title { font-size: 1.9rem; }
  .sk-list-name { font-size: 1rem; }
}
@media (max-width: 768px) {
  .menu-toggle { top: 16px; left: 16px; border: 1px solid var(--pp-line-gold); border-radius: 2px; background: rgba(17, 17, 13, .94); box-shadow: var(--pp-shadow); }
  .menu-toggle:hover { background: var(--pp-surface-raised); transform: none; }
  .menu-toggle span { background: var(--primary-yellow); }
  .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .sidebar, .sidebar:hover { width: 230px; visibility: hidden; transition: transform .3s var(--pp-ease), visibility .3s; }
  .sidebar.active { visibility: visible; }
  .sidebar-logo { justify-content: flex-end; padding-right: 26px; min-height: 78px; }
  .sidebar .sidebar-nav { padding-top: 1rem; }
  .sidebar.active .nav-link, .sidebar.active .audio-toggle-btn { min-height: 46px; font-size: 1.08rem; padding-left: 24px; }
  .menu-backdrop { display: block; position: fixed; inset: 0; z-index: 990; background: rgba(0, 0, 0, .65); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .menu-backdrop.is-visible { opacity: 1; visibility: visible; }
  .hero-title-wrap { left: 24px; right: 24px; bottom: 190px; max-width: none; }
  .hero-kicker { font-size: 11px; letter-spacing: .16em; max-width: 240px; }
  .hero-dl-widget { left: 24px; right: 24px; bottom: 24px; min-width: 0; }
  .hero-dl-widget__heading { margin-bottom: .65rem; }
  .hero-section { min-height: 660px; }
  .hero-background { background-position: center 26%; }
  .hero-vignette { background: linear-gradient(to top, #0a0a0a 5%, rgba(10, 10, 10, .55) 32%, transparent 65%); }
  .skillsets-section { height: auto; min-height: 0; }
  .sk-left { padding: 4.5rem 24px 2rem; }
  .sk-title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .sk-subtitle { max-width: 40ch; }
  .sk-panel { padding: 2rem 24px 3.5rem; }
  .sk-panel-img-wrap { max-height: none; }
  .sk-list-btn { min-height: 72px; }
  .team-inner { padding: 4.5rem 24px 3.5rem; }
  .team-group-photo img { width: calc(100% - 48px); max-width: none; }
  .ts-name { font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.2; }
  .ts-dots { gap: 10px; }
  .fb-section, .ab-section, .dl-section, .nu-section { padding-left: 24px; padding-right: 24px; }
  .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
  .footer-links a { margin: 0; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-background { transform: none !important; }
  .wow-reveal { opacity: 1 !important; transform: none !important; }
}

/* Mission intro: real opening-artwork progress and a quiet staged reveal. */
#loading-screen { background: radial-gradient(ellipse at 50% 44%, #27271b 0%, #121613 62%); }
#loading-screen .loader-brand { width: min(82vw, 440px); top: 45%; transition: opacity .22s ease, filter .22s ease; }
#loading-screen .loader-brand-logo { width: clamp(180px, 25vw, 340px); max-width: 100%; opacity: 1; margin-bottom: 20px; animation: missionLogoIn .45s ease both; }
#loading-screen .loader-brand-name { font: 600 11px 'Rajdhani', sans-serif; letter-spacing: .38em; opacity: .7; }
#loading-screen .loader-brand-caption { color: #c6c8b8; font-size: 12px; letter-spacing: .15em; margin-top: 24px; }
#loading-screen .loader-track { left: 50%; top: 70%; width: min(68vw, 360px); height: 2px; transform: translateX(-50%); background: #d5c59a26; }
#loading-screen .loader-fill { height: 100%; background: #e7bf58; box-shadow: none; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
#loading-screen .loader-pct-wrap { position: absolute; top: calc(70% + 18px); left: 50%; transform: translateX(-50%); }
#loading-screen .loader-pct-text { color: #cbbd93; font: 500 11px 'Rajdhani', sans-serif; text-align: center; }
#loading-screen :is(.loader-pct-dash, .loader-corner, .loader-sweep) { display: none; }
#loading-screen.loader-fade-out { animation: missionIntroOut .4s .2s ease both; pointer-events: none; }
#loading-screen.loader-fade-out .loader-brand { opacity: 0; filter: blur(3px); }
@keyframes missionLogoIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes missionIntroOut { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  #loading-screen, #loading-screen * { animation: none !important; transition: none !important; }
  #loading-screen.loader-fade-out { opacity: 0; }
}
