.fp-page,
.fp-collection {
  --fp-dark: #172723;
  --fp-panel: #20332d;
  --fp-deep: #101d1b;
  --fp-line: #52655a;
  --fp-paper: #f7eed9;
  --fp-muted: #c3cbb8;
  --fp-gold: #ffd183;
  --fp-mint: #9ed8b3;
  --fp-red: #ffb18f;
  --fp-art: url("../assets/img/flagships/rehearsal-night.webp?v=1");
  color-scheme: dark;
  color: var(--fp-paper);
}
.fp-page { margin: 0; background: var(--fp-dark); font: 16px/1.7 "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
.fp-page *, .fp-collection * { box-sizing: border-box; }
.fp-page [hidden], .fp-collection[hidden], [data-flagship-jump][hidden], .fp-collection [hidden] { display: none !important; }
.fp-page .site-bar { max-width: none; padding-inline: max(16px, calc((100vw - 1160px) / 2)); }
.fp-header-controls { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.fp-page .site-bar .fp-header-controls .fp-button {
  color: #292b23;
  background: #f4edda;
  border-color: #b5ad98;
  padding-inline: 10px;
}
.fp-page .site-bar .fp-header-controls .fp-button[aria-pressed="true"] { background: #ffd183; }
.fp-page .skip-link {
  position: absolute; inset: 8px auto auto 8px; z-index: 3; padding: 10px 16px;
  transform: translateY(-160%); background: var(--fp-gold); color: var(--fp-deep);
}
.fp-page .skip-link:focus { transform: none; }
.fp-wrap { width: min(1160px, calc(100% - 32px)); margin: 28px auto 0; }
.fp-hero, .fp-feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 284px; align-items: stretch; background: var(--fp-deep);
  outline: 1px solid var(--fp-line); border-radius: var(--radius-lg); overflow: hidden;
}
.fp-key-art, .fp-feature-image { background: #263e33 var(--fp-art) center 55% / cover no-repeat; }
.fp-hero-copy, .fp-feature-copy { align-self: center; padding: clamp(22px, 5vw, 58px); }
.fp-hero h1, .fp-feature h3 {
  color: var(--fp-paper); font-size: clamp(29px, 5vw, 56px);
  letter-spacing: -.045em; line-height: 1.1; margin: .18em 0 .35em; overflow-wrap: anywhere;
}
.fp-hero p, .fp-feature p { margin: 0; max-width: 43ch; }
.fp-page .fp-eyebrow, .fp-collection .fp-eyebrow {
  font-size: 13px; color: var(--fp-gold); font-weight: 740; letter-spacing: .1em;
}
.fp-hero[data-game="three-phones"] { --fp-art: url("../assets/img/flagships/three-phones-handoff.webp?v=1"); }
.fp-hero[data-game="three-phones"] .fp-key-art { background-position: right 68%; }
.fp-hero[data-game="campus-signal"] { --fp-art: url("../assets/img/flagships/campus-signal.webp?v=2"); }
.fp-hero[data-game="night-shuttle"] { --fp-art: url("../assets/img/flagships/night-shuttle.webp?v=2"); }
.fp-hero[data-game="after-closing"] { --fp-art: url("../assets/img/flagships/after-closing.webp?v=2"); }
.fp-hero:is([data-game="night-shuttle"], [data-game="after-closing"], [data-game="campus-signal"]) .fp-key-art {
  background-color: var(--fp-deep); background-size: contain;
}
.fp-playing .fp-hero { min-height: 0; grid-template-columns: 1fr; }
.fp-playing .fp-key-art, .fp-playing .fp-hero-copy > #fp-desc { display: none; }
.fp-playing .fp-hero-copy { padding: 18px 22px 16px; }
.fp-playing .fp-hero h1 { font-size: clamp(25px, 4.2vw, 41px); margin-bottom: 0; }
.fp-hero p:not(.fp-eyebrow), .fp-feature p:not(.fp-eyebrow) { color: var(--fp-muted); }
.fp-gate { margin-top: 16px; }
.fp-gate h2 { margin: 0; font-size: 24px; }
.fp-gate #fp-status:empty { display: none; }
.fp-gate .fp-actions { margin-top: 12px; }
.fp-footer { color: var(--fp-muted); padding: 22px 0 35px; font-size: 13px; }
.fp-footer summary { cursor: pointer; padding-block: 10px; }
.fp-footer p { margin: 0; }
.fp-help { display: flex; gap: 8px 16px; flex-wrap: wrap; }
.fp-help a { color: var(--fp-muted); min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: .24em; }
#fp-stage { margin-top: 16px; }
.fp-toolbar, .fp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fp-toolbar { margin: 0 0 12px; }
.fp-toolbar label, .fp-field > label { font-size: 14px; font-weight: 720; color: var(--fp-muted); }
.fp-toolbar .fp-select { max-width: 100%; }
.fp-toolbar .fp-button { margin-inline-start: auto; }
.fp-button, .fp-select {
  border: 1px solid var(--fp-line);
  border-radius: var(--radius-md);
  background: var(--fp-deep);
  color: var(--fp-paper);
  font: inherit;
  min-height: 44px;
  padding: 8px 13px;
}
.fp-button {
  display: inline-flex; justify-content: center; align-items: center; text-align: center;
  cursor: pointer; font-size: 14px; font-weight: 730; text-decoration: none; line-height: 1.4;
}
.fp-button:hover:not(:disabled), .fp-button[aria-pressed="true"] { border-color: var(--fp-gold); }
.fp-button:focus-visible, .fp-select:focus-visible, .fp-world:focus-visible { outline: 2px solid var(--fp-gold); outline-offset: 3px; }
.fp-button:disabled { opacity: .48; cursor: default; }
.fp-primary, .fp-button[aria-pressed="true"] { background: var(--fp-gold); border-color: var(--fp-gold); color: var(--fp-deep); }
.fp-primary:hover:not(:disabled) { background: #ffe2ae; }
.fp-select { max-width: 100%; min-width: 0; }
.fp-field { display: grid; gap: 5px; margin-bottom: 14px; }
.fp-panel { padding: clamp(14px, 2.8vw, 24px); background: var(--fp-panel); border: 1px solid var(--fp-line); border-radius: var(--radius-lg); }
.fp-panel h3, .fp-panel h4 { margin: 0 0 8px; color: var(--fp-paper); line-height: 1.3; }
.fp-panel h3 { font-size: clamp(18px, 3.4vw, 24px); }
.fp-panel h4 { font-size: 16px; }
.fp-panel p { margin: 0 0 12px; }
.fp-panel > :last-child { margin-bottom: 0; }
.fp-panel > .fp-panel { margin-top: 14px; background: var(--fp-deep); }
.fp-panel > .fp-actions + h4 { margin-top: 16px; }
.fp-panel > .fp-actions + p { margin-top: 10px; }
.fp-session { display: grid; gap: 12px; }
.fp-columns, .fp-world-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.fp-world-grid { grid-template-columns: minmax(0, 2fr) minmax(238px, 1fr); }
.fp-hud { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fp-metric { display: grid; padding: 9px 12px; border: 1px solid var(--fp-line); border-radius: var(--radius-md); background: var(--fp-deep); }
.fp-metric span { color: var(--fp-muted); font-size: 12px; }
.fp-metric strong { color: var(--fp-gold); font-size: clamp(16px, 3.6vw, 24px); font-variant-numeric: tabular-nums; }
.fp-replay-clock .fp-metric:first-child { border-inline-start: 3px solid var(--fp-gold); }
.fp-replay-clock .fp-metric:first-child strong { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.fp-muted, .fp-quote, .fp-memory { color: var(--fp-muted); }
.fp-muted, .fp-memory { font-size: 14px; }
.fp-memory { padding-bottom: 7px; border-bottom: 1px dashed var(--fp-line); }
.fp-note { border-inline-start: 3px solid var(--fp-gold); background: var(--fp-deep); padding: 8px 12px; border-radius: var(--radius-sm); }
.fp-note p { margin: 0; }
.fp-quote { border-inline-start: 3px solid var(--fp-gold); margin: 0 0 14px; padding: 8px 12px; background: var(--fp-deep); }
.fp-result[data-result="win"] { border-color: var(--fp-mint); }
.fp-result[data-result="win"] h3 { color: var(--fp-mint); }
.fp-result[data-result="retry"] h3 { color: var(--fp-gold); }
.fp-story-picture {
  display: flex; align-items: end; min-height: clamp(165px, 27vw, 340px); padding: 15px 21px;
  border-radius: var(--radius-lg); background: var(--fp-deep) var(--fp-art) center 66% / cover no-repeat;
}
.fp-story-picture time { color: var(--fp-gold); font: 800 clamp(44px, 8vw, 103px)/1.04 ui-monospace, Consolas, monospace; text-shadow: 0 2px 12px #000; }
.fp-card-list, .fp-evidence-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fp-card-list { margin-bottom: 10px; }
.fp-evidence-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.fp-evidence { background: var(--fp-deep); border: 1px solid var(--fp-line); border-top: 3px solid var(--fp-gold); border-radius: var(--radius-md); padding: 16px; }
.fp-handoff {
  min-height: clamp(168px, 25vw, 310px);
  display: grid;
  align-content: center;
  background: var(--fp-deep) url("../assets/img/flagships/three-phones-handoff.webp?v=1") right 63% / 55% auto no-repeat;
}
.fp-handoff > * { max-width: 45%; }
.fp-network { position: relative; background: var(--fp-deep); border: 1px solid var(--fp-line); border-radius: var(--radius-lg); min-height: clamp(230px, 29vw, 350px); }
.fp-network-links, .fp-network-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.fp-network-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; align-items: center; justify-items: center; }
.fp-network-stop { display: grid; gap: 3px; width: min(84%, 162px); padding-inline: 4px; line-height: 1.25; overflow-wrap: anywhere; }
.fp-network-stop small { font-weight: 540; font-size: 11px; }
.fp-network-stop[data-signal="risk"][aria-pressed="false"] { border-color: #a27558; background: #563e31; }
.fp-network-stop[data-signal="clear"][aria-pressed="false"] { border-color: #809f7f; background: #304c3e; }
.fp-world { height: clamp(300px, 37vw, 445px); overflow: hidden; background: #152423; border: 1px solid var(--fp-line); border-radius: var(--radius-lg); }
.fp-world canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.fp-world-fallback { height: auto; min-height: 62px; display: grid; align-items: center; padding: 10px 14px; }
.fp-world-fallback p { margin: 0; }
.fp-collection {
  padding: clamp(16px, 3vw, 30px); margin-block: 12px 34px;
  outline: 1px solid var(--fp-line); border-radius: var(--radius-lg); background: var(--fp-dark);
  scroll-margin-top: 132px;
}
.fp-collection h2 { color: var(--fp-paper); margin: 0; font-size: clamp(24px, 4vw, 36px); }
.fp-collection > p { margin: 4px 0 16px; color: var(--fp-muted); }
.fp-collection > p a { color: var(--fp-gold); text-underline-offset: .25em; }
.fp-contact { margin-bottom: 14px; overflow-wrap: anywhere; }
.fp-feature { margin-bottom: 12px; }
.fp-feature h3 { font-size: clamp(26px, 4.3vw, 49px); }
.fp-feature-copy { padding: clamp(18px, 3.6vw, 40px); }
.fp-feature .fp-button { margin-top: 16px; }
.fp-catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fp-catalog-card {
  display: flex; flex-direction: column; align-items: start; gap: 8px;
  padding: 15px; border: 1px solid var(--fp-line); border-radius: var(--radius-md); background: var(--fp-deep);
}
.fp-catalog-card h3 { color: var(--fp-paper); margin: 0; font-size: 17px; line-height: 1.45; }
.fp-catalog-card p { color: var(--fp-muted); margin: 0; font-size: 13px; line-height: 1.65; }
.fp-catalog-card .fp-button { margin-top: auto; }
.fp-settings {
  box-sizing: border-box;
  width: min(522px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: clamp(14px, 4vw, 24px);
  color: var(--fp-paper);
  background: var(--fp-dark);
  border: 1px solid var(--fp-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 50px #080e0b;
  overflow-y: auto;
}
.fp-settings::backdrop { background: rgba(9, 16, 13, .72); }
.fp-settings-head, .fp-setting-row, .fp-settings label:has(output) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.fp-settings-head h2, .fp-settings-head p { margin: 0; }
.fp-settings fieldset {
  margin: 14px 0;
  padding: 10px 12px 12px;
  min-inline-size: 0;
  border: 1px solid var(--fp-line);
  border-radius: var(--radius-md);
}
.fp-settings legend { padding-inline: 5px; color: var(--fp-gold); font-weight: 750; }
.fp-settings input { accent-color: var(--fp-gold); }
.fp-settings input[type="range"] { width: 100%; min-height: 44px; margin: 0; }
.fp-settings output { color: var(--fp-gold); font-variant-numeric: tabular-nums; }
.fp-setting-row + .fp-setting-row { margin-top: 7px; }
.fp-check { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.fp-check input { width: 18px; height: 18px; }
.fp-settings fieldset > p { margin-bottom: 0; }
.fp-review { color: var(--fp-muted); margin-top: 12px; }
.fp-review summary { min-height: 44px; align-content: center; cursor: pointer; }
.fp-large-text .fp-panel :is(p, label, .fp-button, .fp-select) { font-size: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .fp-page:not(.fp-reduced) :is(.fp-button, .fp-network-stop) {
    transition: background-color var(--dur-1) ease-out, border-color var(--dur-1) ease-out;
  }
}
@media (max-width: 900px) {
  .fp-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-world-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fp-wrap { margin-top: 16px; }
  .fp-hero, .fp-feature { grid-template-columns: 1fr; }
  .fp-key-art, .fp-feature-image { min-height: 135px; }
  .fp-columns { grid-template-columns: minmax(0, 1fr); }
  .fp-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-world { height: clamp(262px, 70vw, 345px); }
  .fp-world-fallback { height: auto; }
  .fp-catalog-card { padding: 12px; }
  .fp-handoff { background-size: 47% auto; }
  .fp-handoff > * { max-width: 54%; }
  .fp-page .site-bar nav { justify-content: flex-start; gap: 4px 10px; }
}
@media (max-width: 360px) {
  .fp-collection { padding: 12px; }
  .fp-catalog { grid-template-columns: 1fr; }
  .fp-toolbar { align-items: flex-start; }
  .fp-toolbar .fp-button { margin-inline-start: 0; }
}
