/* Overtime: noir. Soot black and night navy, sodium orange for the heat, cold white for text, police red and blue
   for the accents. The title sits over the drawn city (src/ui/city.ts: a pixel canvas scaled up, #city) with the
   OVERTIME bitmap logo (a canvas too, glowing sodium); every other full screen dims the city behind it. Every
   screen is a <section> in #ui over the game canvas (src/ui/dom.ts). No font files: a condensed bold system stack
   for headings, a plain sans for the body. No inline style anywhere (the CSP). */
:root {
  --soot: #07080d; --navy: #0c1020; --navy-2: #141a30; --sodium: #ffa040; --sodium-hot: #ffc870; --amber: #ffd27a;
  --cold: #e4ebf2; --bone: #d9d4c8; --dim: #8a90a0; --red: #ff3434; --blue: #4a7dff; --neon: #ff3d6e;
  --plate: rgba(10, 12, 22, 0.86); --plate-2: rgba(5, 6, 12, 0.94); --line: rgba(255, 160, 64, 0.28);
  --cond: Impact, "Haettenschweiler", "Arial Narrow Bold", "Franklin Gothic Bold", "Arial Black", sans-serif;
}
html, body { margin: 0; height: 100%; background: var(--soot); color: var(--cold); overflow: hidden;
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: 16px; }
html, body { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
body { display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, #10131f 0%, var(--soot) 70%); }
canvas#c { display: block; }
.hidden { display: none !important; }

/* ---- the layer and its screens */
#ui { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
#ui > canvas#city { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; z-index: 0; }
#ui > section { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  overflow-y: auto; box-sizing: border-box;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); pointer-events: auto; text-align: center; }
/* centre with auto margins, not justify-content: a screen taller than the viewport then scrolls from its top */
#ui > section:not(#card) > :first-child { margin-top: auto; }
#ui > section:not(#card) > :last-child { margin-bottom: auto; }
#ui > section.full { background: rgba(5, 6, 12, 0.8); }
#ui > section#title, #ui > section#gate { background: linear-gradient(180deg, rgba(4, 5, 10, 0.55) 0%, rgba(4, 5, 10, 0.15) 40%, rgba(4, 5, 10, 0.6) 100%); }
#ui > section.card { background: radial-gradient(ellipse at center, rgba(5, 6, 12, 0.35) 0%, rgba(3, 4, 8, 0.8) 100%); }
#ui > section#card { background: none; justify-content: flex-start; padding-top: 7vh; pointer-events: none; }
/* a faint scanline over the full screens, under the content */
#ui > section.full::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.16) 2px 3px); }
#ui > section.full > * { position: relative; z-index: 1; }

h1, h2, h3 { font-weight: 400; text-transform: uppercase; margin: 0; font-family: var(--cond); }
h2 { font-size: 34px; letter-spacing: 0.1em; color: var(--sodium); margin-bottom: 12px;
  text-shadow: 3px 3px 0 #000, 0 0 18px rgba(255, 160, 64, 0.35); }
h3 { font-size: 14px; letter-spacing: 0.25em; color: var(--sodium-hot); margin: 0 0 8px; }
.kicker { margin: 0 0 6px; font-family: var(--cond); font-size: 15px; letter-spacing: 0.4em; color: var(--cold); opacity: 0.85; text-shadow: 0 2px 0 #000; }

/* ---- the title */
.wordmark { margin: 0 0 4px; line-height: 0; }
canvas.logo { image-rendering: pixelated; width: min(86vw, 760px, 120vh); height: auto; display: block; margin: 0 auto;
  filter: drop-shadow(0 0 10px rgba(255, 140, 40, 0.6)) drop-shadow(0 0 34px rgba(255, 110, 20, 0.35)); }
.tagline { margin: 12px 0 2px; font-family: var(--cond); font-size: 24px; letter-spacing: 0.08em; color: var(--amber); text-shadow: 0 2px 0 #000, 0 0 10px #000; }
.what { margin: 2px 0 14px; font-size: 14px; color: var(--bone); text-shadow: 0 1px 0 #000, 0 0 8px #000; }
.best { margin: 0 0 10px; color: var(--amber); letter-spacing: 0.25em; font-weight: 700; font-size: 13px; }
.version { margin: 12px 0 0; font-size: 12px; letter-spacing: 0.2em; color: var(--dim); }
.note { min-height: 1.3em; margin: 8px 0 0; color: var(--amber); font-size: 14px; word-break: break-word; }
#ui > section > .sub, .panel .sub { margin: -4px 0 12px; color: var(--cold); opacity: 0.85; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---- menus: soot plates with a thin cold edge, sodium when hot, a red / blue light-bar tick on the hot one */
.menu { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(400px, 100%); }
.menu.row, .row { width: auto; flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.mi { position: relative; font: inherit; font-family: var(--cond); font-weight: 400; font-size: 19px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  width: 100%; padding: 8px 22px; box-sizing: border-box; cursor: pointer;
  background: var(--plate); color: var(--cold); border: 1px solid rgba(228, 235, 242, 0.28);
  transition: border-color 0.1s, color 0.1s, background 0.1s, box-shadow 0.1s; }
.row .mi, .menu.row .mi { width: auto; min-width: 140px; }
.menu.small .mi { font-size: 14px; padding: 6px 16px; min-width: 120px; }
.mi.alt { background: rgba(5, 6, 12, 0.6); color: var(--dim); border-color: rgba(228, 235, 242, 0.16); }
.mi:hover, .mi:focus-visible, .mi.pad { outline: none; border-color: var(--sodium); color: #fff; background: rgba(60, 30, 10, 0.88);
  box-shadow: 0 0 14px rgba(255, 160, 64, 0.4), inset 0 0 18px rgba(255, 160, 64, 0.12); }
.mi.pad::before, .mi:hover::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 12px; margin-top: -6px;
  background: var(--red); box-shadow: 8px 0 0 var(--blue); animation: bar 0.5s steps(1) infinite; }
.menu.row .mi.pad::before, .menu.row .mi:hover::before, .htp-tabs .tab::before { display: none; }
@keyframes bar { 50% { background: var(--blue); box-shadow: 8px 0 0 var(--red); } }
.mi:disabled { opacity: 0.4; cursor: default; }
.mi .sub { display: block; margin-top: 2px; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 12px; letter-spacing: 0.04em; text-transform: none; color: var(--dim); }
.mi.pad .sub, .mi:hover .sub { color: var(--amber); }

/* mission select: two columns of short plates */
.menu.missions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: min(760px, 100%); margin-bottom: 10px; }
.menu.missions .mi { text-align: left; font-size: 16px; padding: 6px 12px 6px 30px; }
.menu.missions .mi.story { color: var(--bone); font-style: italic; }
@media (max-width: 640px) { .menu.missions { grid-template-columns: 1fr; } }

/* ---- panels (the card, results, continue, pause) */
.panel { width: min(640px, 100%); box-sizing: border-box; padding: 20px 26px; text-align: center;
  background: linear-gradient(180deg, rgba(14, 16, 28, 0.95) 0%, rgba(6, 7, 12, 0.95) 100%);
  border: 1px solid rgba(255, 160, 64, 0.45); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6), 0 0 50px rgba(0, 0, 0, 0.7); }
.panel.narrow { width: min(420px, 100%); }
.panel .lines p, p.lines { margin: 4px 0; font-size: 16px; font-style: italic; color: var(--bone); }
.panel .meta { margin: 12px 0 0; font-size: 12px; letter-spacing: 0.2em; color: var(--amber); }
.panel .ctrl { margin: 10px 0 0; font-size: 13px; letter-spacing: 0.04em; color: var(--cold); opacity: 0.85; }
.panel .hint { margin: 12px 0 0; font-size: 11px; letter-spacing: 0.3em; color: var(--dim); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
/* the mission card: a slate, the name big, the place and the clock under it */
.panel.slate { border-left: 4px solid var(--sodium); text-align: left; }
.panel.slate h2 { font-size: 46px; margin-bottom: 2px; letter-spacing: 0.06em; }
.panel.slate .kicker { color: var(--sodium-hot); font-size: 13px; }
.panel.slate .sub { margin: 0 0 12px; color: var(--cold); letter-spacing: 0.22em; font-family: var(--cond); font-size: 18px; }
.objs { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; display: inline-block; }
.objs li { font-size: 15px; padding: 2px 0; color: var(--cold); }
.objs li::before { content: "\25B8  "; color: var(--sodium); }
.objs li.opt { color: var(--dim); }
.stats { border-collapse: collapse; margin: 12px auto 0; font-size: 15px; min-width: min(380px, 100%); }
.stats td { padding: 3px 10px; border-bottom: 1px solid var(--line); text-align: left; color: var(--bone); letter-spacing: 0.06em; }
.stats td:last-child { text-align: right; color: var(--cold); font-weight: 700; }
.stats tr.penalty td { color: var(--neon); }
.total { margin: 12px 0 0; font-family: var(--cond); font-size: 30px; letter-spacing: 0.1em; color: var(--sodium); text-shadow: 3px 3px 0 #000; }
.newbest { margin: 6px 0 0; font-family: var(--cond); font-size: 20px; letter-spacing: 0.3em; color: var(--amber); text-shadow: 0 0 14px rgba(255, 210, 122, 0.6); }
.count { font-family: var(--cond); font-size: 120px; line-height: 1; color: var(--sodium); text-shadow: 5px 5px 0 #000; margin: 6px 0; }
.quote { font-style: italic; color: var(--dim); }

/* ---- the stinger: OVERTIME slams in after the cold open */
#ui > section#stinger { background: #000; justify-content: center; overflow: hidden; }
#ui > section#stinger > .logo { margin-top: auto; }
#ui > section#stinger > .kicker { margin-bottom: auto; }
/* the base styles are the final look (no fill modes): a paused or throttled page still shows the card */
#stinger .logo { animation: slam 0.85s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
#stinger .kicker { margin-top: 18px; font-size: 18px; animation: fadein 1.8s; }
#stinger .flash { position: absolute; inset: 0; background: #fff4dc; pointer-events: none; opacity: 0; animation: flash 1s; }
@keyframes slam { 0% { transform: scale(4); opacity: 0; } 35% { opacity: 1; } 50% { transform: scale(1); } 60% { transform: translate(6px, -4px); }
  70% { transform: translate(-5px, 3px); } 80% { transform: translate(3px, 2px); } 100% { transform: none; } }
@keyframes flash { 0%, 44% { opacity: 0; } 45% { opacity: 0.85; } 100% { opacity: 0; } }
@keyframes fadein { 0%, 55% { opacity: 0; } 100% { opacity: 0.85; } }

/* ---- the credits: the roll over the city, then THE END */
#ui > section#credits { background: linear-gradient(180deg, rgba(4, 5, 10, 0.6) 0%, rgba(4, 5, 10, 0.2) 50%, rgba(4, 5, 10, 0.7) 100%); overflow: hidden; }
#ui > section#credits > :first-child { margin-top: 0; }
#credits .roll { position: absolute; left: 0; right: 0; top: 0; padding: 0 16px; animation: roll 34s linear both; }
@keyframes roll { from { transform: translateY(100vh); } to { transform: translateY(-100%); } }
#credits .roll p { margin: 6px 0; font-size: 16px; color: var(--bone); text-shadow: 0 2px 0 #000, 0 0 8px #000; }
#credits .roll p.h { margin-top: 18px; font-family: var(--cond); font-size: 22px; letter-spacing: 0.3em; color: var(--sodium); }
#credits .roll p.h.big { font-size: 56px; letter-spacing: 0.12em; }
#credits .roll p.lead { font-style: italic; color: var(--amber); font-size: 18px; }
#credits .roll p.c { display: flex; flex-direction: column; gap: 1px; margin: 12px 0; }
#credits .roll .who { font-family: var(--cond); font-size: 20px; letter-spacing: 0.1em; color: var(--cold); }
#credits .roll .as { font-style: italic; font-size: 14px; color: var(--dim); }
#credits .end { margin-top: auto; padding: 18px 26px; background: rgba(5, 6, 12, 0.82); border: 1px solid var(--line); }
#credits .theend { margin: 0 0 6px; font-family: var(--cond); font-size: 64px; letter-spacing: 0.2em; color: var(--sodium); text-shadow: 4px 4px 0 #000, 0 0 30px rgba(255, 140, 40, 0.5); }
#credits > .menu { position: absolute; bottom: 16px; left: 0; right: 0; margin: 0 auto; }
#credits > .menu .mi { background: var(--plate-2); }
#credits .end:not(.hidden) ~ .menu { position: static; margin-bottom: auto; }

/* ---- options */
#optBody .remap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: min(760px, 100%); }
#optBody .remap.one { grid-template-columns: 1fr; width: min(420px, 100%); }
#optBody .rcol { display: flex; flex-direction: column; gap: 4px; }
#optBody .mi.row { display: flex; justify-content: space-between; min-width: 0; width: 100%; margin: 0; padding: 5px 12px 5px 30px; font-size: 15px; letter-spacing: 0.1em; }
#optBody .mi.row .rk { color: var(--amber); }
#optBody .mi.listen { border-color: var(--amber); }
#optBody .mi.listen .rk { color: var(--sodium); }
#optBody .note { max-width: 560px; }
@media (max-width: 700px) { #optBody .remap { grid-template-columns: 1fr; } }

/* ---- how to play (src/ui/howto.ts); the foot is howto-art.ts howtoFoot(), its CSS the howto-foot block below */
#howto { justify-content: flex-start; }
#howto .panel { --howto-pad: 14px; width: min(940px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; text-align: left; padding: 16px 24px var(--howto-pad); }
#howto h2 { text-align: center; }
#howto .htp-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
#howto .htp-tabs .tab { font: inherit; font-family: var(--cond); font-size: 16px; letter-spacing: 0.16em; padding: 6px 16px; cursor: pointer;
  background: transparent; color: var(--dim); border: 1px solid rgba(228, 235, 242, 0.2); }
#howto .htp-tabs .tab.on { color: var(--soot); background: var(--sodium); border-color: var(--sodium); }
#howto .htp-tabs .tab:hover, #howto .htp-tabs .tab.pad { outline: none; border-color: var(--sodium); color: #fff; }
#howto .htp-tabs .tab.on.pad, #howto .htp-tabs .tab.on:hover { color: #000; box-shadow: 0 0 12px rgba(255, 160, 64, 0.5); }
#howto .htp-art { width: min(100%, 460px); margin: 0 auto; color: var(--bone); border: 1px solid var(--line); background: rgba(5, 6, 12, 0.5); padding: 8px; }
#howto .htp-art svg { display: block; width: 100%; height: auto; }
#howto .htp-art .hp-hand { fill: #161a28; }
#howto .htp-art .hp-on { fill: var(--sodium); fill-opacity: 0.4; stroke: var(--sodium); }
#howto .htp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; margin-top: 14px; }
@media (max-width: 760px) { #howto .htp-cols { grid-template-columns: 1fr; } }

/* the mission card: resumed at a payphone */
.panel .meta.cp { margin-top: 4px; color: var(--sodium-hot); }

/* the fade to black between an interlude and the next mission's card */
#fade { position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#fade.on { opacity: 1; }

/* the gate (the first screen): the title's sky, one blinking line, the whole screen a click target */
#ui > section#gate { cursor: pointer; }
.gatehint { margin: 22px 0 4px; font-family: var(--cond); font-size: 22px; letter-spacing: 0.3em; color: var(--sodium);
  text-shadow: 2px 2px 0 #000, 0 0 16px rgba(255, 160, 64, 0.5); animation: blink 1.2s steps(1) infinite; }

/* ---- touch (v0.6.0: the site plays on a phone or tablet; these were the iOS app's rules, app/style.css) */
/* hints by the device in use: src/main.ts keeps body.touch while touch was the last input */
body.touch .kb-only, body:not(.touch) .touch-only { display: none; }
/* the touch layer (src/touch.ts, src/render/touch.ts): a full-viewport overlay under the screens, never a target */
#touch { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
/* the safe-area probe: main.ts reads its padding as the insets (the notch side, the home indicator) */
#safe { position: fixed; inset: 0; visibility: hidden; pointer-events: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
/* no double-tap zoom, no long-press callout (the page's own scroll areas still scroll) */
html, body { -webkit-touch-callout: none; touch-action: manipulation; }
/* a finger as the main pointer: screens use the room, menus for thumbs (taller rows, further apart) */
@media (pointer: coarse) {
  #ui > section:not(#card) { padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .mi { min-height: 44px; padding: 10px 22px; }
  .menu { gap: 10px; }
  .menu.small .mi { min-height: 40px; }
  #howto .htp-tabs .tab { min-height: 40px; padding: 8px 18px; }
  .howto-foot button { min-height: 40px; }
}
#howto .htp-art.touch { width: min(100%, 520px); }
/* a tablet's diagram is drawn to the screen's own shape (howto.ts tabletArt), far taller than the phone's: narrower, so the list starts above the fold */
#howto .htp-art.touch.tab { width: min(100%, 400px, 46vh); }
/* a phone on its side (about 400 px tall), or any window that short: the title packs tighter, the menu in two columns */
@media (max-height: 520px) {
  #ui > section:not(#card) { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  canvas.logo { width: min(60vw, 520px, 90vh); }
  .tagline { margin-top: 6px; font-size: 20px; }
  .what { margin-bottom: 8px; }
  #title .menu { display: grid; grid-template-columns: 1fr 1fr; width: min(620px, 100%); gap: 8px 10px; }
  #title .menu.row { margin-top: 8px; }
  #title #tContinue { grid-column: 1 / -1; }
  #title .version { margin-top: 6px; }
  h2 { font-size: 28px; margin-bottom: 8px; }
  #howto .panel { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  /* How to Play's touch diagram: small enough that the list starts above the fold on a phone */
  #howto .htp-art.touch { width: min(100%, 400px); padding: 4px; }
  #howto .htp-tabs { margin-bottom: 8px; }
  /* the mission card: a shorter slate */
  #ui > section#card { padding-top: max(8px, env(safe-area-inset-top)); }
  .panel.slate { padding: 10px 18px; }
  .panel.slate h2 { font-size: 30px; }
  .panel.slate .sub { margin-bottom: 6px; font-size: 15px; }
  .panel.slate .lines p { margin: 2px 0; font-size: 14px; }
  .panel.slate .objs { margin-top: 6px; }
  .panel.slate .objs li { font-size: 13px; padding: 1px 0; }
  .panel.slate .meta, .panel.slate .ctrl, .panel.slate .hint { margin-top: 6px; }
  /* the results: the story and NEXT on the left, the table on the right, all on one screen */
  #results .panel { width: min(780px, 100%); display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; align-items: center; padding: 10px 18px; }
  #results .panel > * { grid-column: 1; }
  #results .panel > .stats { grid-column: 2; grid-row: 1 / span 6; margin: 0; min-width: 0; width: 100%; font-size: 13px; }
  #results .stats td { padding: 2px 8px; }
  #results h2 { font-size: 24px; margin-bottom: 6px; }
  #results .sub { margin: 0 0 6px; font-size: 12px; }
  #results .lines p { margin: 2px 0; font-size: 13px; }
  #results .total { margin: 6px 0 0; font-size: 24px; }
  #results .note:empty { display: none; }
  #results .menu { margin: 8px auto 0; }
}
/* a phone or tablet held upright: the game is a wide-screen one, so an upright touch-first screen (body.tf, main.ts)
   shows only this (v0.7.0: no way round it); main.ts pauses a mission under it. A tall desktop window is never blocked */
#rotate { display: none; position: fixed; inset: 0; z-index: 6; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  box-sizing: border-box; padding: 24px; text-align: center; background: #04050a; }
#rotate .rot-big { margin: 0; font-family: var(--cond); font-size: 26px; letter-spacing: 0.14em; color: var(--sodium); text-shadow: 2px 2px 0 #000; }
#rotate .rot-sub { margin: 0 0 12px; font-size: 14px; color: var(--bone); }
@media (orientation: portrait) { body.tf #rotate { display: flex; } }
/* a finger has no hover: no light-bar tick appearing under a tap (iOS Safari can swallow the tap that makes hover
   content appear; the highlight itself stays) */
@media (hover: none) { .mi:hover::before { display: none; } }

/* ---- the toast */
#toast { position: absolute; z-index: 4; left: 50%; bottom: 4vh; transform: translateX(-50%); max-width: calc(100vw - 32px); box-sizing: border-box;
  padding: 10px 18px; background: var(--plate-2); border: 1px solid var(--sodium); color: var(--cold); font-weight: 700;
  letter-spacing: 0.12em; font-size: 14px; pointer-events: auto; word-break: break-all; }

@media (max-width: 600px) { .mi, .row .mi, .menu.row .mi { min-width: 0; width: 100%; } .menu { width: 100%; } h2 { font-size: 26px; } .panel.slate h2 { font-size: 34px; }
  .tagline { font-size: 19px; } .kicker { letter-spacing: 0.28em; } .what { font-size: 13px; } .panel { padding: 16px 16px; } .count { font-size: 96px; } }
@media (prefers-reduced-motion: reduce) { #stinger .logo, #stinger .flash, #stinger .kicker, .mi.pad::before, .panel .hint, .gatehint { animation: none; }
  #credits .roll { animation: none; position: static; margin: auto 0; } }

/* howto-keys: copied verbatim from src/ui/howto-art.ts KEYS_CSS (the shared key list; the site's CSP forbids injecting it). */
.howto-keys{border-collapse:collapse;width:100%;font-size:14px;line-height:1.45;}
.howto-keys td{padding:3px 6px;border-bottom:1px solid rgba(34,227,255,.13);color:#cfe9f5;vertical-align:top;}
.howto-keys td:first-child{color:#ff8df5;white-space:nowrap;width:38%;}
.howto-keys tr.gap td{height:16px;border-bottom:0;}
/* /howto-keys */
/* howto-foot: copied verbatim from src/ui/howto-art.ts FOOT_CSS (the shared foot; the site's CSP forbids injecting it). */
.howto-foot{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:16px;
  position:sticky;bottom:calc(-1 * var(--howto-pad,14px));padding:10px 0 var(--howto-pad,14px);background:rgba(7,5,15,.96);}
.howto-foot button{font:inherit;font-size:11px;letter-spacing:.18em;text-transform:uppercase;line-height:1.5;
  background:transparent;color:#cfe9f5;border:1px solid rgba(34,227,255,.4);padding:9px 16px;cursor:pointer;
  -webkit-tap-highlight-color:transparent;transition:border-color .15s,color .15s;}
.howto-foot button:hover,.howto-foot button:focus-visible,.howto-foot button.pad{border-color:#ff8df5;color:#ff8df5;outline:none;}
.howto-foot .hf-v{color:#22e3ff;text-shadow:0 0 10px rgba(34,227,255,.4);}
.howto-foot .hf-v.off{color:inherit;opacity:.55;text-shadow:none;}
/* /howto-foot */
