:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Avenir Next", system-ui, sans-serif;
  color: #152b40;
  background: #f3f3df;
  font-synthesis: none;
  --ink: #152b40;
  --blue: #0b78b1;
  --orange: #e68b25;
  --lime: #dded78;
}
* { box-sizing: border-box; }
body { margin: 0; background-image: radial-gradient(#183c3520 1px, transparent 1px); background-size: 22px 22px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; font: inherit; font-weight: 800; color: var(--ink); border: 2px solid var(--ink); border-radius: 9px; background: #fffdf3; padding: 9px 14px; transition: transform 120ms, background 120ms, box-shadow 120ms; }
button:hover:enabled { background: #e8f0bb; transform: translateY(-2px); }
button:active:enabled { transform: translateY(1px); box-shadow: none; }
button:disabled { cursor: default; opacity: .42; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 4px solid #9b3f00; outline-offset: 4px; }
[hidden] { display: none !important; }
.app { max-width: 1320px; margin: auto; padding: 23px 40px 14px; }
.masthead { display: flex; align-items: center; gap: 28px; margin-bottom: 23px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 950; font-size: 25px; letter-spacing: -1px; line-height: 1; }
.brand b { color: #65736d; font-size: 20px; }
.brand small { display: block; letter-spacing: 3px; font-size: 9px; margin-top: 6px; }
.brand_faces { display: flex; align-items: end; width: 60px; height: 43px; }
.brand_faces img { display: block; width: 34px; height: 40px; object-fit: contain; transform: rotate(-12deg); }
.brand_faces img + img { margin-left: -7px; transform: rotate(12deg); }
.game_tagline { margin: 0; font-size: 13px; color: #526361; border-left: 1px solid #b7c0a9; padding-left: 26px; }
.game_tagline strong { display: block; margin-top: 3px; color: var(--ink); }
.co_op_badge { margin-left: auto; display: flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: 1.4px; font-weight: 900; }
.co_op_badge > span { display: grid; place-items: center; width: 27px; height: 27px; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); font-size: 16px; box-shadow: 2px 2px var(--ink); }
.game_frame { border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; background: #fffdf3; box-shadow: 0 7px 0 #152b40; }
.mission_bar { display: flex; align-items: center; justify-content: space-between; padding: 15px 23px; gap: 20px; }
.mission_title { display: flex; align-items: center; gap: 15px; }
.chapter_chip { display: grid; text-align: center; font-size: 8px; letter-spacing: 1.2px; font-weight: 900; border: 2px solid var(--ink); border-radius: 7px; padding: 5px 8px; background: var(--lime); transform: rotate(-3deg); }
.chapter_chip output { font-size: 23px; letter-spacing: -1px; }
h1 { font-size: 18px; margin: 0 0 4px; letter-spacing: -.4px; }
#level_subtitle { margin: 0; font-size: 11px; color: #546365; }
.scoreboard { display: flex; align-items: center; gap: 26px; }
.scoreboard > div { min-width: 46px; display: grid; gap: 3px; text-align: center; }
.scoreboard span { font-size: 8px; font-weight: 900; letter-spacing: 1.2px; color: #59666a; }
.scoreboard output { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stage { position: relative; isolation: isolate; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); background: #d5e9b7; aspect-ratio: 1100 / 620; overflow: hidden; }
canvas { width: 100%; height: auto; display: block; position: relative; z-index: 2; }
.cell_decoration { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 70% 45%, #f9d5d1 0, #eab8b8 55%, #d89ba6 100%); }
.cell_decoration i { position: absolute; border: 3px solid #ae667b70; background: #d18b9c70; border-radius: 44% 56% 61% 39%; width: 115px; height: 69px; transform: rotate(-30deg); }
.cell_decoration i:nth-child(1) { top: -30px; left: 24%; width: 190px; height: 110px; }
.cell_decoration i:nth-child(2) { bottom: 7%; left: -3%; }
.cell_decoration i:nth-child(3) { top: 9%; right: -3%; width: 180px; height: 96px; }
.cell_decoration i:nth-child(4) { right: 25%; bottom: -50px; width: 210px; height: 110px; }
.cell_decoration i:nth-child(5) { top: 15%; left: 49%; width: 36px; height: 26px; }
.cell_decoration i:nth-child(6) { bottom: 28%; right: 5%; width: 44px; height: 33px; }
.intro { min-height: 100%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5px; padding: 44px 6%; }
.intro_copy { position: relative; z-index: 1; }
.intro_actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.trial_entry { padding: 8px 12px; font-size: 11px; }
.trial_selection { margin-top: 22px; padding-top: 16px; border-top: 1px solid #53645f; }
.trial_selection h3 { margin: 0 0 8px; }
.trial_selection p { font-size: 12px; line-height: 1.5; }
@media (max-width: 440px) { .intro_actions { justify-content: center; }.intro_actions #play { margin: 0; } }
.eyebrow { font-size: 9px; font-weight: 900; letter-spacing: 1.7px; margin: 0 0 20px; }
.eyebrow > span { width: 7px; height: 7px; display: inline-block; border: 1px solid var(--ink); background: var(--lime); border-radius: 50%; margin-right: 4px; }
.intro h2 { font-size: clamp(48px, 7.3vw, 91px); letter-spacing: -7px; margin: 0 0 22px; line-height: .88; font-weight: 1000; transform: rotate(-2deg); white-space: nowrap; }
.title_isp { color: #0786c7; -webkit-text-stroke: 2px var(--ink); text-shadow: 3px 5px 0 var(--ink); }
.title_pac { color: #ffae45; -webkit-text-stroke: 2px var(--ink); text-shadow: 3px 5px 0 var(--ink); }
.title_amp { color: var(--ink); font-size: .63em; letter-spacing: -5px; }
.intro h2 small { display: block; font-size: .27em; letter-spacing: 6px; line-height: 1.5; margin-top: 13px; }
.intro_lead { font-size: clamp(19px, 2.5vw, 29px); font-weight: 900; line-height: 1.12; letter-spacing: -.8px; margin: 0 0 13px; }
.intro_description { font-size: 12px; line-height: 1.65; color: #3d5350; margin-bottom: 23px; }
.primary_button { background: var(--lime); border: 3px solid var(--ink); box-shadow: 0 4px var(--ink); padding: 12px 24px; font-size: 15px; }
#play { min-width: 181px; display: flex; align-items: center; justify-content: space-between; }
#play span { font-size: 23px; line-height: 1; }
.play_note { font-size: 9px; font-weight: 800; color: #536757; margin-top: 14px; }
.duo_art { position: relative; width: 100%; aspect-ratio: 1.05; max-width: 470px; }
.art_orbit { position: absolute; inset: 5% 0 9% 1%; border: 2px dashed #b87789; border-radius: 50%; transform: rotate(-20deg); }
.art_shadow { position: absolute; left: 10%; right: -2%; top: 77%; height: 13%; border-radius: 50%; background: #9e596e33; transform: rotate(-5deg); }
.hero { position: absolute; width: 59%; height: 65%; top: 15%; object-fit: contain; }
.hero_isp { left: -6%; transform: rotate(-12deg); }
.hero_pac { right: -8%; top: 27%; transform: rotate(10deg); }
.hero_label { position: absolute; font-size: 16px; font-weight: 1000; letter-spacing: 2px; }.label_isp { left: 5%; top: 13%; transform: rotate(-8deg); }.label_pac { right: -1%; top: 23%; transform: rotate(9deg); }.hero_label span { font-size: 26px; }
.team_sticker { position: absolute; bottom: 1%; left: 34%; background: var(--lime); border: 2px solid var(--ink); padding: 9px 13px; border-radius: 9px; font-size: 10px; letter-spacing: 1.3px; text-align: center; transform: rotate(-9deg); box-shadow: 3px 3px var(--ink); }.team_sticker b { font-size: 15px; letter-spacing: 0; }
.art_spark { position: absolute; font-size: 44px; color: #668557; font-weight: 400; }.spark_one { left: -6%; top: 41%; transform: rotate(15deg); }.spark_two { right: 4%; top: 3%; font-size: 29px; }
.stage_corner { position: absolute; bottom: 12px; right: 17px; color: #455e3c; font-size: 7px; font-weight: 900; letter-spacing: 1.3px; pointer-events: none; }
.stage_panel { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px; text-align: center; background: #edf3d8ee; }
.stage_panel h2 { font-size: 36px; margin: 0 0 12px; letter-spacing: -1px; }.stage_panel p { font-size: 13px; margin: 0 0 25px; }.stage_panel .eyebrow { font-size: 10px; }
#complete_panel { overflow-y: auto; justify-content: flex-start; background: #fff4ebf5; }
#complete_panel > * { flex-shrink: 0; }
#complete_panel > .complete_heading { margin-top: auto; }
#complete_panel > :last-child { margin-bottom: auto; }
#complete_panel > p { margin-bottom: 14px; }
.complete_actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 12px; width: min(650px, 100%); margin-bottom: 12px; }
.complete_heading { display: flex; align-items: center; justify-content: center; gap: 18px; width: min(650px, 100%); margin-bottom: 12px; text-align: left; }
.complete_heading > div:last-child { min-width: 0; }
.stage_panel .complete_heading .eyebrow { margin: 0 0 6px; }
.stage_panel .complete_heading h2 { margin: 0; text-wrap: balance; }
.complete_heroes { display: flex; align-items: end; flex-shrink: 0; width: 116px; height: 100px; }
.complete_heroes img { display: block; width: 66px; height: 94px; object-fit: contain; transform-origin: center bottom; }
.complete_isp { transform: rotate(10deg) translateY(-3px); }
.complete_pac { margin-left: -16px; transform: rotate(-9deg); }
.villain_ending { width: min(650px, 100%); margin-bottom: 15px; }
.villain_ending h3 { margin: 0 0 10px; font-size: 15px; }
.villain_reactions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.villain_reaction { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 12px; padding: 10px; }
.gem_reaction { background: #ede0f4; }
.cana_reaction { background: #e6efce; }
.villain_reaction img { width: 68px; height: 72px; object-fit: contain; flex-shrink: 0; }
.villain_reaction h4 { margin: 0 0 5px; font-size: 12px; }
.stage_panel .villain_reaction p { margin: 0; font-size: 11px; line-height: 1.45; }
.stage_panel .villain_escape { margin: 9px 0 0; font-size: 10px; }
.patient_map { display: grid; grid-template-columns: minmax(150px, 180px) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; align-items: center; gap: 7px 16px; width: min(650px, 100%); margin: 0 auto 12px; padding: 11px 14px; border: 2px solid var(--ink); border-radius: 14px; background: #fffdf3; text-align: left; }
.patient_map_intro { grid-column: 2; grid-row: 1; text-align: left; }
.patient_map_kicker { margin: 0 0 3px !important; color: #5f6d61; font-size: 8px !important; font-weight: 900; letter-spacing: 1.4px; }
.patient_map_intro h3 { margin: 0 0 2px; font-size: 17px; letter-spacing: -.4px; }
.stage_panel .patient_map_total { margin: 0 !important; font-size: 11px; }
.patient_map_total strong { font-variant-numeric: tabular-nums; }
.patient_map_visual { position: relative; grid-column: 1; grid-row: 1 / 6; width: min(100%, 180px); aspect-ratio: 600 / 760; justify-self: center; }
.patient_map_art { display: block; width: 100%; height: 100%; object-fit: contain; }
.patient_map_badge { position: absolute; display: inline-flex; align-items: center; gap: 3px; transform: translate(-50%, -50%); padding: 3px 5px; border: 1.5px solid var(--ink); border-radius: 7px; background: #fffdf3; box-shadow: 1px 1px var(--ink); font-size: 9px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.patient_map_symbol { display: inline-grid; place-items: center; width: 13px; height: 13px; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; line-height: 1; }
.patient_map_badge.is_cleared { background: #e4f0c7; }
.patient_map_badge.is_frontier { border-style: dashed; }
.patient_map_badge.is_current { outline: 3px solid #9b3f00; outline-offset: 2px; z-index: 1; }
.patient_map_legend { grid-column: 2; grid-row: 5; display: flex; flex-wrap: wrap; gap: 5px 10px; align-content: center; font-size: 10px; font-weight: 800; }
.patient_map_legend span { display: inline-flex; align-items: center; gap: 4px; }
.patient_map_legend b { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1px solid var(--ink); border-radius: 50%; }
.patient_map_legend i { width: 12px; height: 12px; outline: 2px solid #9b3f00; outline-offset: 1px; border-radius: 3px; }
.stage_panel .patient_map_frontier { grid-column: 2; grid-row: 2; margin: 0 !important; font-size: 11px; line-height: 1.35; text-align: left; }
.patient_map_frontier span { color: #53645f; }
.stage_panel .patient_map_current { grid-column: 2; grid-row: 3; margin: 0 !important; font-size: 10px; line-height: 1.35; text-align: left; }
.patient_map_current span { color: #53645f; }
.patient_map_regions { grid-column: 2; grid-row: 4; align-self: start; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 11px; }
.patient_map_regions li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-top: 1px solid #d9dec9; padding-top: 3px; }
.patient_map_regions li > span:last-child { text-align: right; white-space: nowrap; }
.patient_map_region_name { font-weight: 900; }
.patient_map + .level_buttons { margin-top: 9px; }
dialog .patient_map { margin-bottom: 17px; }
dialog .patient_map_intro h3 { font-size: 16px; }
dialog .patient_map_regions { font-size: 11px; }
.game_bottom_bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 17px; }
#status { font-size: 11px; margin: 0; line-height: 1.5; color: #445653; }
.toolbar { display: flex; gap: 7px; flex-shrink: 0; }
.toolbar button { font-size: 10px; padding: 6px 9px; border-width: 1.5px; border-radius: 6px; background: transparent; }.toolbar button span { margin-right: 3px; font-size: 13px; }.toolbar button[aria-expanded="true"] { background: var(--lime); }
.team_controls { margin-top: 24px; display: grid; grid-template-columns: 1fr 24px 1fr; align-items: center; gap: 10px; }
.player_card { display: flex; align-items: center; gap: 15px; border: 2px solid var(--ink); border-radius: 12px; padding: 14px 17px; min-height: 104px; }.isp_card { background: #e0eff2; }.pac_card { background: #f9e9ce; }
.team_connector { text-align: center; font-size: 26px; font-weight: 900; }
.player_description { flex: 1; }.player_description h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.6px; }.player_description h2 span { display: inline-block; font-size: 8px; letter-spacing: .8px; margin-left: 6px; vertical-align: middle; }.player_description p { font-size: 10px; line-height: 1.5; margin: 0; }.player_description b { white-space: nowrap; }
.mini_hero { display: block; flex-shrink: 0; width: 60px; height: 60px; object-fit: contain; transform: rotate(-7deg); }.mini_pac { transform: rotate(7deg); }
.key_controls { flex-shrink: 0; text-align: center; display: grid; justify-items: center; gap: 3px; }.key_controls > div:first-child { position: relative; }.key_controls > div:first-child small { position: absolute; top: 7px; left: calc(100% + 5px); }.key_controls small { font-size: 6px; font-weight: 900; letter-spacing: .7px; }.key_row { display: flex; gap: 4px; }kbd { font-family: inherit; font-weight: 900; font-size: 12px; border: 1.5px solid var(--ink); display: inline-grid; place-items: center; width: 25px; height: 23px; border-radius: 4px; background: #fffdf4; box-shadow: 0 2px #152b4055; }
.hint_strip { display: flex; gap: 10px; align-items: center; padding: 17px 2px 12px; }.tip_icon { flex-shrink: 0; border: 1.5px solid var(--ink); width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 900; background: var(--lime); }.hint_strip p { font-size: 10px; line-height: 1.5; margin: 0; }.keyboard_note { font-size: 7px; font-weight: 900; letter-spacing: 1px; margin-left: auto; white-space: nowrap; color: #586553; }
footer { display: flex; justify-content: space-between; padding: 10px 0 3px; font-size: 8px; color: #66725f; border-top: 1px solid #cbd2b8; }
dialog { width: min(570px, calc(100% - 32px)); max-height: 85vh; overflow: auto; padding: 25px; background: #fffdf3; color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 7px 7px var(--ink); }dialog::backdrop { background: #152b40aa; backdrop-filter: blur(4px); }.dialog_heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; }.dialog_heading .eyebrow { margin-bottom: 8px; }.dialog_heading h2 { margin: 0 0 25px; font-size: 27px; letter-spacing: -1px; }.dialog_heading button { padding: 2px 9px; font-size: 23px; }.level_buttons { display: grid; gap: 9px; }.level_buttons button { display: flex; align-items: center; text-align: left; gap: 13px; padding: 13px; }.level_buttons button > span { background: var(--lime); border: 1px solid var(--ink); border-radius: 5px; padding: 7px; }.level_buttons small { margin-left: auto; font-size: 9px; }.dialog_note { font-size: 11px; margin-bottom: 0; color: #53645f; }
@media (min-width: 1001px) and (min-height: 760px) {
  .app {
    max-width: min(1320px, calc((100svh - 350px) * 1.774));
    padding: 16px 32px 8px;
  }
  .masthead { margin-bottom: 14px; }
  .team_controls { margin-top: 14px; }
  .hint_strip { padding-top: 9px; padding-bottom: 7px; }
  footer { padding-top: 6px; }
}
@media (min-width: 1001px) and (max-height: 840px) {
  .intro { padding-block: 26px; }
  .intro .eyebrow { margin-bottom: 13px; }
  .intro h2 { font-size: clamp(48px, 6.2vw, 82px); margin-bottom: 16px; }
  .intro_description { margin-bottom: 16px; }
  .duo_art { width: 82%; justify-self: center; }
}
@media (min-width: 1450px) { .app { padding-top: 30px; }.masthead { margin-bottom: 28px; } }
@media (min-width: 1001px) {
  .app.playing {
    /* Reserve the desktop height for the whole world and its game toolbar. */
    max-width: clamp(760px, calc((100svh - 235px) * 1.774 + 54px), 1320px);
    padding: 10px 24px 8px;
  }
  .playing .masthead { gap: 20px; margin-bottom: 8px; }
  .playing .brand { font-size: 21px; gap: 8px; }
  .playing .brand small { font-size: 7px; margin-top: 4px; }
  .playing .brand_faces { width: 48px; height: 32px; }
  .playing .brand_faces img { width: 28px; height: 32px; }
  .playing .game_tagline { font-size: 10px; padding-left: 18px; }
  .playing .mission_bar { padding: 6px 17px; }
  .playing .chapter_chip { padding: 4px 7px; }
  .playing .chapter_chip output { font-size: 19px; }
  .playing .game_bottom_bar { padding: 8px 17px; }
  .playing .team_controls { margin-top: 10px; }
  .playing .player_card { min-height: 0; padding: 6px 12px; gap: 10px; }
  .playing .mini_hero { width: 44px; height: 44px; }
  .playing .player_description h2 { font-size: 18px; margin-bottom: 3px; }
  .playing .player_description p { font-size: 9px; }
  .playing .key_controls { gap: 2px; }
  .playing kbd { height: 22px; }
  .playing .hint_strip { padding-top: 8px; padding-bottom: 7px; }
  .playing footer { padding-top: 6px; }
}
@media (max-width: 1000px) { .app { padding: 20px 24px 12px; }.intro { padding: 30px 5%; }.intro h2 { font-size: 7.5vw; }.eyebrow { font-size: 7px; letter-spacing: 1.2px; }.intro_description { font-size: 10px; }.intro_lead { font-size: 24px; }.player_card { gap: 10px; padding: 13px; }.player_description h2 span { display: block; margin: 3px 0 0; }.player_description h2 { font-size: 20px; }.player_description p { font-size: 9px; }.team_controls { gap: 5px; grid-template-columns: 1fr 20px 1fr; }.key_controls { margin-right: 10px; } }
@media (max-width: 720px) { .app { padding: 16px 14px 10px; }.game_tagline { display: none; }.masthead { margin-bottom: 17px; }.brand { font-size: 23px; }.co_op_badge { font-size: 8px; letter-spacing: .7px; }.mission_bar { padding: 11px 13px; gap: 10px; }.mission_title { gap: 9px; }h1 { font-size: 14px; }#level_subtitle { font-size: 9px; }.chapter_chip { padding: 4px 6px; font-size: 7px; }.chapter_chip output { font-size: 19px; }.scoreboard { gap: 12px; }.scoreboard span { font-size: 6px; }.scoreboard output { font-size: 16px; }.scoreboard > div { min-width: 27px; }.stage { aspect-ratio: auto; min-height: 390px; }.stage:has(canvas:not([hidden])) { min-height: 0; aspect-ratio: 1100 / 620; }.intro { min-height: 390px; padding: 25px 5%; grid-template-columns: 1.1fr .9fr; }.intro h2 { font-size: 8.5vw; letter-spacing: -4px; margin-bottom: 20px; }.intro h2 small { letter-spacing: 3px; }.intro .eyebrow { font-size: 6px; letter-spacing: .6px; }.intro_lead { font-size: 23px; }.intro_description { font-size: 9px; }.play_note { font-size: 7px; }.duo_art { margin-top: 13px; }.hero_label { font-size: 10px; }.team_sticker { font-size: 7px; padding: 6px; }.team_sticker b { font-size: 10px; }.game_bottom_bar { align-items: start; padding: 10px 12px; flex-direction: column; gap: 9px; }#status { font-size: 10px; }.toolbar { width: 100%; }.toolbar button { flex: 1; padding: 7px; }.team_controls { margin-top: 22px; grid-template-columns: 1fr 1fr; gap: 10px; }.team_connector { display: none; }.player_card { flex-wrap: wrap; gap: 8px; align-content: start; min-height: 142px; }.mini_hero { width: 35px; height: 40px; }.player_description { flex-basis: calc(100% - 45px); }.player_description h2 { font-size: 19px; }.player_description h2 span { font-size: 6px; }.player_description p { font-size: 8px; }.key_controls { display: flex; align-items: center; gap: 5px; width: 100%; padding-left: 2px; }.key_controls > div:first-child small { position: static; margin-left: 4px; }.key_controls > div:first-child { display: flex; align-items: center; gap: 2px; }.key_controls > small { margin-left: 1px; }.key_controls small { font-size: 6px; }.key_row { margin-left: 6px; }.hint_strip { flex-wrap: wrap; }.hint_strip p { flex: 1; font-size: 9px; }.keyboard_note { width: 100%; margin: 0 0 0 28px; font-size: 7px; }footer { font-size: 7px; }.stage_panel h2 { font-size: 25px; }.stage_panel p { font-size: 10px; margin-bottom: 15px; }.stage_panel .eyebrow { margin-bottom: 12px; } }
@media (max-width: 440px) { .co_op_badge { font-size: 7px; }.co_op_badge > span { width: 23px; height: 23px; font-size: 13px; }.brand_faces { width: 48px; }.brand_faces img { width: 28px; height: 32px; }.brand { font-size: 21px; gap: 7px; }.scoreboard { gap: 7px; }.scoreboard > div:last-child { display: none; }.intro { padding: 25px 6%; grid-template-columns: 1fr; min-height: 610px; align-items: start; }.intro h2 { font-size: 67px; }.intro_copy { text-align: center; }.intro .eyebrow { font-size: 7px; }.intro_lead { font-size: 21px; }.intro_lead br { display: none; }.intro_description { font-size: 10px; margin-bottom: 14px; }.intro h2 { margin-bottom: 17px; }#play { margin: auto; padding: 10px 20px; }.play_note { font-size: 8px; }.duo_art { width: 220px; margin: 10px auto 6px; grid-row: 2; }.intro_lead { margin-bottom: 8px; }.stage_corner { font-size: 5px; }.hero_label { font-size: 11px; }.team_sticker b { font-size: 11px; }.player_card { padding: 10px; }.player_description p b { white-space: normal; }.player_card { min-height: 154px; }.key_controls { gap: 2px; }kbd { width: 22px; height: 22px; }.key_row { gap: 3px; margin-left: 2px; }footer span:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 720px) {
  #complete_panel { padding: 18px; }
  .complete_heading { gap: 10px; }
  .complete_heroes { width: 82px; height: 72px; }
  .complete_heroes img { width: 48px; height: 68px; }
  .complete_pac { margin-left: -14px; }
  .villain_reactions { grid-template-columns: 1fr; gap: 8px; }
  .villain_reaction img { width: 56px; height: 60px; }
  .villain_ending h3 { font-size: 13px; }
  .patient_map { grid-template-columns: minmax(120px, 160px) minmax(0, 1fr); gap: 6px 10px; padding: 9px; }
  .patient_map_visual { width: min(100%, 160px); }
  .patient_map_badge { padding: 2px 3px; font-size: 8px; gap: 2px; }
  .patient_map_symbol { width: 12px; height: 12px; font-size: 8px; }
  .patient_map_regions { font-size: 10px; gap: 2px; }
  .patient_map_regions li { gap: 5px; }
  .patient_map_regions li > span:last-child { white-space: nowrap; }
  .patient_map_legend { font-size: 9px; gap: 5px 7px; }
}
@media (max-width: 480px) {
  .patient_map { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto auto auto; }
  .patient_map_intro, .stage_panel .patient_map_frontier, .stage_panel .patient_map_current, .patient_map_regions, .patient_map_legend { grid-column: 1; text-align: left; }
  .patient_map_intro { grid-row: 1; }
  .patient_map_visual { grid-column: 1; grid-row: 2; width: min(100%, 145px); }
  .stage_panel .patient_map_frontier { grid-row: 3; }
  .stage_panel .patient_map_current { grid-row: 4; }
  .patient_map_regions { grid-row: 5; }
  .patient_map_legend { grid-row: 6; }
}

/* Campaign completion alone owns this three-column, height-led illustration.
   The compact Levels map and the practice-room completion keep their layout. */
#complete_panel.has_recovery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(225px, .8fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 10px 20px;
  padding: 18px 24px;
  text-align: left;
  background: radial-gradient(ellipse at 40% 45%, #fffdf3, #f4f0dc 76%);
}
#complete_panel.has_recovery > * { min-width: 0; margin: 0; }
#complete_panel.has_recovery > .complete_heading { grid-column: 2 / 4; grid-row: 1; width: 100%; justify-content: start; gap: 12px; margin: 0; }
#complete_panel.has_recovery .complete_heading h2 { font-size: clamp(21px, 2.3vw, 31px); line-height: 1.1; }
#complete_panel.has_recovery .complete_heading .eyebrow { font-size: 8px; margin-bottom: 5px; }
#complete_panel.has_recovery .complete_heroes { width: 72px; height: 56px; }
#complete_panel.has_recovery .complete_heroes img { width: 43px; height: 55px; }
#complete_panel.has_recovery > p { grid-column: 3; grid-row: 2; font-size: 11px; margin: 0; }
#complete_panel.has_recovery .complete_actions { grid-column: 3; grid-row: 4; justify-content: start; gap: 8px; width: 100%; margin: 0; }
#complete_panel.has_recovery .complete_actions button { font-size: 12px; padding: 9px 12px; }
#complete_panel.has_recovery .complete_actions p { font-size: 11px; margin: 0; }
#complete_panel.has_recovery .villain_ending { grid-column: 2 / 4; grid-row: 5; width: 100%; margin: 3px 0 0; }
#complete_panel.has_recovery .villain_ending h3 { font-size: 12px; margin-bottom: 5px; }
#complete_panel.has_recovery .villain_reactions { gap: 8px; }
#complete_panel.has_recovery .villain_reaction { padding: 6px 8px; gap: 7px; border-width: 1px; }
#complete_panel.has_recovery .villain_reaction img { width: 40px; height: 46px; }
#complete_panel.has_recovery .villain_reaction h4 { font-size: 10px; margin-bottom: 3px; }
#complete_panel.has_recovery .villain_reaction p { font-size: 10px; line-height: 1.3; }
#complete_panel.has_recovery .villain_escape { margin: 4px 0 0; font-size: 9px; text-align: center; }
.recovery_body { grid-column: 1; grid-row: 1 / 6; display: flex; flex-direction: column; align-items: center; min-height: 0; height: 100%; }
.recovery_body > figcaption { font-size: 8px; letter-spacing: 1.7px; font-weight: 900; color: #4e6251; text-align: center; }
.recovery_world { display: block; width: 100%; min-height: 0; flex: 1; overflow: visible; }
#complete_panel .recovery_body_total { flex: none; text-align: center; font-size: 13px; line-height: 1.4; margin: 4px 0 0; }
.recovery_body_total strong { font-size: 20px; }
.recovery_body_total span { display: block; font-size: 10px; color: #4b6254; }
.recovery_detail { grid-column: 2; grid-row: 2 / 5; display: flex; flex-direction: column; min-height: 0; background: radial-gradient(ellipse, #ffe6bd80, #fff9e500 70%); }
.recovery_detail figcaption { text-align: center; margin: 0 0 10px; }
.recovery_detail figcaption > span { display: block; font-size: 8px; letter-spacing: 2px; font-weight: 900; color: #635d50; }
.recovery_detail figcaption > strong { display: block; font-size: 25px; letter-spacing: -.5px; }
.recovery_detail .recovery_world { filter: drop-shadow(0 5px 3px #65434322); }
.recovery_progress { grid-column: 3; grid-row: 3; align-self: center; }
.recovery_progress h3 { font-size: 15px; line-height: 1.25; margin: 0 0 4px; }
#complete_panel .recovery_total { font-size: 11px; margin: 0 0 9px; }
.recovery_total strong { font-size: 17px; }
.recovery_regions { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.recovery_regions li { position: relative; padding-left: 8px; border-left: 3px solid transparent; }
.recovery_regions li.is_current { border-left-color: #a55412; background: #efdfb944; border-radius: 3px; }
.recovery_region_label { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 11px; }
.recovery_region_label > span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.recovery_region_label em { margin-right: 5px; font-size: 8px; font-style: normal; color: #744113; }
.recovery_region_label b { color: #24644d; }
.recovery_regions progress { display: block; appearance: none; border: 0; width: calc(100% - 44px); height: 6px; margin-top: 4px; border-radius: 4px; background: #dfd8e2; overflow: hidden; }
.recovery_regions progress::-webkit-progress-bar { background: #dfd8e2; border-radius: 4px; }
.recovery_regions progress::-webkit-progress-value { background: var(--region-color); border-radius: 4px; }
.recovery_regions progress::-moz-progress-bar { background: var(--region-color); border-radius: 4px; }
.recovery_regions small { position: absolute; right: 0; bottom: -1px; font-size: 8px; color: #51594f; }
#complete_panel .recovery_location, #complete_panel .recovery_destination { font-size: 10px; line-height: 1.4; margin: 8px 0 0; }
.recovery_location strong, .recovery_destination strong { display: block; }
.recovery_legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px 13px; font-size: 9px; margin-top: 10px; }
.recovery_legend span { display: inline-flex; align-items: center; gap: 4px; }
.recovery_legend i { display: inline-grid; place-items: center; width: 13px; height: 13px; font-style: normal; }
.legend_cancer { background: #a997b9; border: 1.5px solid #514265; border-radius: 40% 60% 35% 65%; }
.legend_healthy { color: #24644d; background: #e1edb6; border-radius: 50%; font-weight: 900; }
.legend_next { background: #f6c65c; clip-path: polygon(0 20%, 100% 20%, 50% 90%); }
.recovery_route { fill: none; stroke: #fff7d0; stroke-width: 3; stroke-dasharray: 2 6; stroke-linecap: round; opacity: .85; }
.recovery_marker { fill: #544463; stroke: #fff4db; stroke-width: 1.5; }
.recovery_number { fill: #fff9eb; font-family: "Trebuchet MS", sans-serif; font-size: 13px; font-weight: 900; }
.recovery_site.is_cleared .recovery_marker { fill: #e9f2b5; stroke: #32684b; }
.recovery_site.is_cleared .recovery_number { fill: #234d38; }
.recovery_check { fill: none; stroke: #24644d; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; paint-order: stroke; }
.recovery_here { fill: none; stroke: #a35d11; stroke-width: 2.5; stroke-dasharray: 3 4; }
.recovery_next { fill: #f6c65c; stroke: #734a15; stroke-width: 1.3; }
.recovery_site.is_new .recovery_lesion { animation: tissue_clear 850ms ease-out both; }
.recovery_tissue.is_new { animation: tissue_restore 850ms ease-out both; }
.recovery_site.is_new .recovery_here { animation: tissue_celebrate 850ms ease-out both; }
.recovery_body.is_rescued { background: radial-gradient(ellipse, #f4e99c66, transparent 68%); }
@keyframes tissue_clear { 0%, 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tissue_restore { 0%, 15% { opacity: 0; } 100% { opacity: 1; } }
@keyframes tissue_celebrate { 0% { stroke-width: 5; stroke: #f6c65c; } 100% { stroke-width: 2.5; stroke: #a35d11; } }
@media (min-width: 951px) and (max-height: 760px) {
  #complete_panel.has_recovery { gap: 6px 14px; padding: 10px 16px; }
  #complete_panel.has_recovery .complete_heading h2 { font-size: 22px; }
  #complete_panel.has_recovery .complete_heroes { height: 42px; }
  #complete_panel.has_recovery .complete_heroes img { height: 42px; }
  .recovery_regions { gap: 3px; }
  .recovery_progress h3 { font-size: 13px; }
  #complete_panel.has_recovery .villain_reaction img { width: 30px; height: 36px; }
}
@media (max-width: 950px) {
  #complete_panel.has_recovery { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: auto minmax(300px, 1fr) auto auto auto; align-content: start; }
  #complete_panel.has_recovery > .complete_heading { grid-column: 1 / 3; grid-row: 1; }
  .recovery_body { grid-column: 1; grid-row: 2; }
  .recovery_detail { grid-column: 2; grid-row: 2; }
  .recovery_progress { grid-column: 1 / 3; grid-row: 3; }
  .recovery_regions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
  #complete_panel.has_recovery > p { grid-column: 1; grid-row: 4; }
  #complete_panel.has_recovery .complete_actions { grid-column: 2; grid-row: 4; }
  #complete_panel.has_recovery .villain_ending { grid-column: 1 / 3; grid-row: 5; }
}
@media (max-width: 600px) {
  #complete_panel.has_recovery { display: flex; align-items: stretch; padding: 16px; gap: 14px; }
  #complete_panel.has_recovery > .complete_heading { flex-shrink: 0; }
  .recovery_body { height: 480px; flex-shrink: 0; }
  .recovery_detail { height: 310px; flex-shrink: 0; }
  .recovery_regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #complete_panel.has_recovery .complete_actions { position: sticky; bottom: -16px; z-index: 1; padding: 12px 0; background: #fff9e9; }
  #complete_panel.has_recovery .villain_reactions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .recovery_site.is_new .recovery_lesion { animation: none; opacity: 0; }
  .recovery_tissue.is_new, .recovery_site.is_new .recovery_here { animation: none; }
}
/* Touch controls occupy their own rails, outside the complete game world. */
.play_surface { display: contents; }
.touch_controls, .touch_instructions, .touch_hint { display: none; }
@media (pointer: coarse) {
  .touch_instructions { display: block; margin: 3px 8px; font-size: 10px; text-align: center; }
  .playing .masthead, .playing .team_controls, .playing .hint_strip, .playing footer { display: none; }
  .playing.app { max-width: none; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
  .playing .game_frame { border-width: 2px; border-radius: 0; box-shadow: none; }
  .playing .mission_bar { height: 44px; padding: 2px 8px; gap: 5px; }
  .playing h1 { font-size: 13px; margin: 0; }
  .playing #level_subtitle, .playing .stage_corner { display: none; }
  .playing .chapter_chip { padding: 1px 4px; font-size: 7px; }
  .playing .chapter_chip output { font-size: 16px; }
  .playing .scoreboard { gap: 8px; }
  .playing .scoreboard output { font-size: 14px; }
  .playing .scoreboard span { font-size: 7px; }
  .playing .game_bottom_bar { padding: 2px 6px; gap: 2px; flex-direction: row; flex-wrap: wrap; }
  .playing #status { flex: 1; margin: 0; font-size: 10px; line-height: 12px; max-height: 24px; overflow: auto; }
  .playing #status .touch_hint:not([hidden]) { display: inline; }
  .playing #status:has(.touch_hint:not([hidden])) .game_status { display: none; }
  .playing .toolbar { width: auto; gap: 3px; }
  .playing .toolbar button { min-height: 44px; padding: 4px 6px; font-size: 10px; }
  .playing .stage_panel { overflow: auto; justify-content: safe center; padding: 10px; }
  .playing .stage_panel h2 { font-size: 22px; }
  .playing .stage_panel p { margin-bottom: 8px; }
  .playing .stage_panel button, #level_list button { min-height: 44px; }
  .playing .stage_panel.has_recovery { justify-content: start; }
  #level_list { max-height: 90dvh; }
}
@media (pointer: coarse) and (orientation: landscape) {
  .playing .play_surface { display: grid; grid-template-columns: 136px minmax(0, 1fr) 136px; align-items: center; gap: 4px; }
  .playing .stage { width: min(100%, calc((100dvh - 124px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 1100 / 620)); justify-self: center; min-height: 0; aspect-ratio: 1100 / 620; border: 0; }
  .playing .touch_controls { display: grid; gap: 4px; text-align: center; font-size: 13px; }
  .touch_controls > small { font-size: 7px; }
  .touch_pad { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(2, 44px); width: 132px; height: 88px; touch-action: none; user-select: none; -webkit-user-select: none; background: #cdeaff; border-radius: 8px; overflow: hidden; margin: auto; }
  .pac_touch .touch_pad { background: #ffe2b9; }
  .touch_pad > span { display: grid; place-content: center; border: 1px solid var(--ink); font-size: 20px; line-height: 22px; }
  .touch_pad small { font-size: 7px; line-height: 10px; }
  .touch_pad[aria-disabled=true] { opacity: .45; }
  .touch_pad[data-zone="0"] > [data-zone="0"], .touch_pad[data-zone="1"] > [data-zone="1"], .touch_pad[data-zone="2"] > [data-zone="2"], .touch_pad[data-zone="3"] > [data-zone="3"], .touch_pad[data-zone="4"] > [data-zone="4"], .touch_pad[data-zone="5"] > [data-zone="5"] { background: var(--ink); color: white; }
}
@media (pointer: coarse) and (orientation: portrait) {
  .playing .stage { min-height: 260px; aspect-ratio: 1100 / 620; }
}
