@font-face {
  font-family: 'Anton';
  src: url('/infamous2-ios/assets/fonts/anton.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'TASA Orbiter';
  src: url('/infamous2-ios/assets/fonts/tasa-orbiter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --ground: #101413;
  --surface: #191e1c;
  --ink: #e0e1d9;
  --muted: #afb6af;
  --quiet: #909c94;
  --rule: #3b4540;
  --karma-blue: #5790c1;
  --karma-red: #c4353c;
  --link: #8acfff;
  --red-text: #f68b8f;
  --gutter: clamp(24px, 3.6vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: 'TASA Orbiter', Arial, sans-serif;
  color: var(--ink);
  background: var(--ground);
  color-scheme: dark;
  scrollbar-color: #576a5f var(--ground);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body {
  margin: 0;
  min-width: 320px;
  font-size: 16px;
  line-height: 1.8;
  background: linear-gradient(#101413dd, #101413dd), url('/infamous2-ios/assets/infamous2-ios/coal-grain.png');
}
body.lightbox-open { overflow: hidden; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--link); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: #c8e9ff; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
::selection { background: #5790c1; color: #fff; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 5px; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 30;
  padding: 10px 18px;
  background: var(--link);
  color: var(--ground);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px max(var(--gutter), calc((100vw - 1224px) / 2));
  border-bottom: 1px solid var(--rule);
  background: #111614;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .08em;
}
.brand-mark {
  width: 29px;
  height: 29px;
  background: var(--ink);
  mask: url('/infamous2-ios/assets/mons-games-mark.png') center / contain no-repeat;
}
.brand-games { display: block; margin-top: 4px; font-size: 9px; font-weight: 400; letter-spacing: .25em; }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 13px; text-decoration: none; color: #c7cec8; }
.site-header nav a:hover { color: var(--link); }
.site-header nav svg { width: 15px; height: 15px; color: var(--link); }
.document-header { position: relative; isolation: isolate; background: #181d1a; }
.document-header::before {
  content: '';
  position: absolute;
  inset: 0 0 0 35%;
  z-index: -1;
  background: url('/infamous2-ios/assets/infamous2-ios/ios-opening-pier-small.webp') center 38% / cover no-repeat;
  filter: grayscale(1);
  opacity: .13;
  mask-image: linear-gradient(90deg, transparent, #000 50%, #000);
}
.document-header-inner {
  max-width: 1320px;
  margin: auto;
  padding: 38px var(--gutter) 43px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  align-items: center;
  gap: 80px;
}
.game-title { font-weight: 400; line-height: 1.07; }
.game-logo { width: 320px; max-width: 100%; height: auto; }
.edition-title { display: block; margin-top: 15px; font-size: 21px; font-weight: 500; letter-spacing: -.015em; }
.document-summary { max-width: 68ch; margin-top: 20px; color: #c7cdc6; font-size: 15px; line-height: 1.75; }
.project-status { margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.project-status strong { color: var(--ink); font-weight: 500; }
.project-facts { font-size: 12px; padding-top: 8px; }
.project-facts > div { display: grid; grid-template-columns: 105px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid #53605780; }
.project-facts dt { color: var(--muted); }
.project-facts dd { color: #d4d9d0; }
.karma-rule { position: absolute; left: 0; bottom: -5px; width: 100%; height: 16px; stroke-width: 1.3; stroke-linejoin: miter; }
.karma-rule-blue { stroke: var(--karma-blue); }
.karma-rule-red { stroke: var(--karma-red); }
.document-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 58px;
  max-width: 1320px;
  margin: auto;
  padding: 43px var(--gutter) 68px;
  align-items: start;
}
.contents-rail { position: sticky; top: 28px; align-self: start; }
.contents summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 13px; font-weight: 600; list-style: none; cursor: pointer; color: var(--ink); }
.contents summary::-webkit-details-marker { display: none; }
.contents summary svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.contents[open] summary svg { transform: rotate(180deg); }
.contents nav { padding: 9px 0 0; }
.contents nav a { display: flex; align-items: center; min-height: 43px; padding: 7px 0 7px 12px; margin-left: 0; border-left: 1px solid var(--rule); color: #aeb9b0; font-size: 12px; line-height: 1.6; text-decoration: none; }
.contents nav a:hover, .contents nav a:focus-visible, .contents nav a[aria-current="location"] { color: var(--link); border-left-color: var(--karma-blue); background: #5790c108; }
.technical-document { min-width: 0; max-width: 976px; }
.document-section { border-top: 1px solid var(--rule); padding-top: 28px; margin-top: 43px; scroll-margin-top: 30px; }
.document-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.document-section h2 { font-size: 28px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; margin-bottom: 22px; }
.document-section h3 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.4; margin: 26px 0 12px; }
.document-section p { max-width: 76ch; }
.document-section p + p { margin-top: 17px; }
.document-section strong { color: #eef0e8; font-weight: 600; }
.technical-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .68fr); align-items: start; gap: 30px; }
.technical-media { padding-top: 4px; min-width: 0; }
.capture { width: 100%; max-width: 340px; margin: 0 0 16px auto; }
.capture-link { display: block; position: relative; cursor: zoom-in; outline: 1px solid #697a6b60; outline-offset: 0; transition: outline-color .2s var(--ease); }
.capture-link:hover { outline-color: var(--karma-blue); }
.capture-link:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.capture img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.table-wrap { max-width: 100%; overflow-x: auto; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
caption { text-align: left; color: var(--muted); font-size: 12px; padding: 0 0 12px; }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
thead th { color: #d8e2d9; background: #222b26; font-size: 12px; font-weight: 600; }
tbody th { width: 24%; color: #dce1d8; font-weight: 500; }
td { color: #bec8be; }
.status-table tbody th { width: 25%; }
.comparison-table th, .comparison-table td { width: auto; }
.comparison-table td:last-child { min-width: 160px; }
.technical-note { margin-top: 17px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.measurement-list { margin-top: 24px; border-top: 1px solid var(--rule); max-width: 76ch; }
.measurement-list > div { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.measurement-list dt { color: #d4ddd4; font-weight: 500; }
.measurement-list dd { color: #b5c1b7; }
.technical-list { margin: 17px 0 0; padding-left: 21px; max-width: 76ch; }
.technical-list li { padding-left: 5px; }
.technical-list li + li { margin-top: 11px; }
.technical-list li::marker { color: var(--karma-blue); }
.technical-list + p { margin-top: 22px; }
.limitations { padding-top: 5px; }
.limitations h3 { display: flex; align-items: center; gap: 12px; }
.limitations h3::before { content: ''; display: block; width: 18px; height: 1px; background: var(--karma-red); }
.next-steps { margin: 0; padding-left: 25px; max-width: 76ch; }
.next-steps li { padding-left: 10px; }
.next-steps li + li { margin-top: 22px; }
.next-steps li::marker { color: var(--link); font-size: 13px; font-variant-numeric: tabular-nums; }
.next-steps h3 { margin: 0 0 7px; font-size: 16px; }
.next-steps p { color: #bdc7bd; font-size: 14px; }
.development-log { margin-top: 25px; }
.log-entry { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 1.2fr); gap: 28px; padding: 22px 0; border-top: 1px solid var(--rule); }
.log-entry-title h3 { margin: 0 0 8px; font-size: 16px; }
.log-state { color: var(--muted); font-size: 11px; line-height: 1.7; }
.log-entry > p { color: #bdc7bd; font-size: 14px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 1224px; margin: 0 auto; padding: 24px 0 30px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.site-footer nav { display: flex; align-items: center; gap: 25px; }
.site-footer a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #c6cfc6; }
.site-footer svg { width: 15px; height: 15px; }
.lightbox { padding: 0; width: calc(100vw - 56px); max-width: 1800px; max-height: calc(100svh - 40px); border: 1px solid #526157; background: var(--ground); color: var(--ink); box-shadow: 0 24px 80px #0009; overflow: auto; }
.lightbox::backdrop { background: #060a08f5; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px 9px 23px; gap: 20px; font-size: 14px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #526157; background: transparent; cursor: pointer; }
.icon-button:hover { background: var(--link); color: var(--ground); border-color: var(--link); }
.icon-button svg { width: 20px; height: 20px; }
.lightbox-image-wrap { position: relative; min-height: 180px; background: #000; display: grid; place-items: center; }
.lightbox-image { width: 100%; height: auto; max-height: calc(100svh - 190px); object-fit: contain; }
.lightbox-status { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-size: 13px; pointer-events: none; }
.lightbox-status:not(:empty) { background: #101413ed; padding: 20px; text-align: center; }
.lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 16px; }
.lightbox-count { font-size: 12px; font-variant-numeric: tabular-nums; }
.lightbox-original { font-size: 12px; margin-left: auto; margin-right: 10px; min-height: 44px; display: flex; gap: 10px; align-items: center; }
.lightbox-original svg { width: 14px; height: 14px; }
@media (max-width: 1320px) { .site-footer { margin-inline: var(--gutter); } }
@media (max-width: 1100px) {
  .document-layout { grid-template-columns: 166px minmax(0, 1fr); gap: 35px; }
  .document-header-inner { grid-template-columns: minmax(0, 1fr) 275px; gap: 50px; }
  .project-facts > div { grid-template-columns: 90px 1fr; gap: 10px; }
  .technical-pair { grid-template-columns: minmax(0, 1fr) minmax(230px, .72fr); gap: 24px; }
  .measurement-list > div { grid-template-columns: 180px 1fr; gap: 20px; }
  th, td { padding: 12px; }
}
@media (max-width: 960px) {
  .document-header-inner { gap: 30px; }
  .document-layout { grid-template-columns: 1fr; gap: 35px; padding-top: 30px; }
  .contents-rail { position: static; width: 100%; }
  .contents { padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
  .contents summary { max-width: 220px; }
  .contents nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .technical-document { width: 100%; max-width: none; }
  .technical-pair { grid-template-columns: minmax(0, 1fr) minmax(240px, .65fr); }
}
@media (max-width: 720px) {
  :root { --gutter: 24px; }
  body { font-size: 15px; line-height: 1.85; }
  .site-header { min-height: 70px; padding-block: 10px; gap: 20px; }
  .site-header nav { gap: 20px; }
  .site-header nav a { font-size: 11px; }
  .site-header nav a:first-child { display: none; }
  .document-header-inner { grid-template-columns: 1fr; gap: 24px; padding-top: 30px; padding-bottom: 32px; }
  .game-logo { width: 280px; }
  .edition-title { font-size: 20px; margin-top: 13px; }
  .document-summary { font-size: 14px; margin-top: 18px; line-height: 1.8; }
  .project-status { font-size: 11px; line-height: 1.9; margin-top: 15px; max-width: 380px; }
  .project-facts { padding-top: 0; }
  .project-facts > div { grid-template-columns: 110px minmax(0, 1fr); padding: 8px 0; gap: 15px; }
  .document-header::before { inset: 0; opacity: .07; mask-image: none; }
  .document-layout { gap: 30px; padding-top: 23px; padding-bottom: 40px; }
  .contents { padding-bottom: 10px; }
  .contents summary { max-width: none; font-size: 13px; }
  .contents nav { display: block; padding-top: 7px; }
  .contents nav a { font-size: 12px; min-height: 40px; }
  .document-section { padding-top: 26px; margin-top: 34px; }
  .document-section h2 { font-size: 25px; margin-bottom: 18px; line-height: 1.3; }
  .document-section h3 { font-size: 17px; margin-top: 24px; }
  .document-section p + p { margin-top: 16px; }
  .technical-pair { grid-template-columns: 1fr; gap: 23px; }
  .technical-media { padding-top: 0; }
  .capture { max-width: 420px; margin: 0; }
  .technical-media .capture + .capture { margin-top: 16px; }
  .table-wrap { margin-top: 22px; }
  table { font-size: 12px; line-height: 1.7; }
  caption { font-size: 11px; line-height: 1.7; padding-bottom: 10px; }
  thead th { font-size: 11px; }
  th, td { padding: 11px 9px; }
  tbody th, .status-table tbody th { width: 30%; }
  .comparison-table { table-layout: fixed; }
  .comparison-table th:first-child { width: 26%; }
  .comparison-table th:nth-child(2) { width: 42%; }
  .comparison-table th:last-child { width: 32%; }
  .comparison-table td:last-child { min-width: 0; }
  .technical-note { font-size: 12px; }
  .measurement-list { margin-top: 22px; }
  .measurement-list > div { grid-template-columns: 1fr; gap: 5px; padding: 12px 0; font-size: 13px; }
  .technical-list { padding-left: 18px; }
  .technical-list li { padding-left: 3px; }
  .technical-list li + li { margin-top: 12px; }
  .next-steps { padding-left: 21px; }
  .next-steps li { padding-left: 7px; }
  .next-steps h3 { font-size: 15px; margin-top: 0; }
  .next-steps p { font-size: 13px; }
  .log-entry { grid-template-columns: 1fr; gap: 10px; padding: 21px 0; }
  .log-entry-title h3 { font-size: 15px; margin-top: 0; margin-bottom: 6px; }
  .log-entry > p { font-size: 13px; }
  .site-footer { flex-wrap: wrap; padding-block: 18px 22px; gap: 5px; font-size: 11px; }
  .site-footer nav { gap: 24px; }
  .lightbox { width: calc(100vw - 20px); max-height: calc(100svh - 24px); }
  .lightbox-toolbar { padding: 7px 9px 7px 13px; gap: 12px; font-size: 12px; }
  .lightbox-bottom { gap: 8px; padding: 10px 9px; }
  .lightbox-count { font-size: 10px; }
  .lightbox-original { font-size: 10px; gap: 6px; margin-right: 0; }
  .lightbox .icon-button { width: 40px; height: 44px; }
  .lightbox-status { font-size: 12px; }
}
@media (max-width: 360px) {
  :root { --gutter: 20px; }
  .game-logo { width: 260px; }
  .project-facts > div { grid-template-columns: 95px minmax(0, 1fr); gap: 12px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
