:root {
  --pink: #ff6ad5;
  --cyan: #38e1ff;
  --yellow: #ffe44f;
  --mint: #8dff9a;
  --bg: #020812;
  --text: #e8f6ff;
  --muted: #9fb6cc;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.04);
  --gw: 768px;   /* canvas CSS width  (set by main.js) */
  --gh: 720px;   /* canvas CSS height */
  --u: 3px;      /* one game pixel in CSS px */
  --ou: 3px;     /* overlay unit: never smaller than ~1.7px so text stays readable on phones */
  --btn: 72px;   /* touch button size */
  --pixel: 'Press Start 2P', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.lock, html.lock body { overflow: hidden; overscroll-behavior: none; }
body {
  min-height: 100%;
  background: radial-gradient(120% 70% at 50% 0%, #0a3358 0%, var(--bg) 70%) no-repeat, var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
.hidden { display: none !important; }

/* ================= game screen ================= */
#app {
  position: relative;
  height: 100vh; height: 100dvh;
  display: flex; align-items: center; justify-content: center; gap: 28px;
  padding: max(8px, env(safe-area-inset-top)) 16px max(8px, env(safe-area-inset-bottom));
  font-family: var(--pixel);
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
body.ad-bottom-on #app { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }

#gameCol { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }

#topbar { display: flex; align-items: center; gap: 8px; width: var(--gw); }
.topbar-gap { flex: 1; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 2px solid var(--cyan); border-radius: 10px;
  background: #061428; color: var(--cyan);
  font-size: 18px; line-height: 1;
  box-shadow: 0 0 8px #38e1ff55;
  cursor: pointer;
}
.icon-btn:active { transform: scale(0.92); }
#btn-mute .ic-off { display: none; }
#btn-mute.muted .ic-on { display: none; }
#btn-mute.muted .ic-off { display: block; }
#btn-mute.muted { color: #ff5a6e; border-color: #ff5a6e; box-shadow: 0 0 8px #ff5a6e66; }
.lb-btn { border-color: var(--yellow); box-shadow: 0 0 8px #ffe44f55; }

#play-area { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }

#stage-wrap {
  position: relative;
  width: var(--gw); height: var(--gh);
  border-radius: 6px;
  box-shadow: 0 0 0 2px var(--cyan), 0 0 24px #38e1ff80, 0 0 70px #ff6ad533;
  touch-action: none;
}
canvas { display: block; width: 100%; height: 100%; border-radius: 6px; image-rendering: pixelated; }

.topbar-gap { display: flex; justify-content: center; }
.mode-badge {
  padding: 6px 10px; border-radius: 999px;
  font-size: 10px;
  color: var(--yellow); background: #04122acc; border: 1px solid #ffe44f88;
  pointer-events: none;
}

/* ---------- touch controls ---------- */
#touch { display: none; width: var(--gw); justify-content: space-between; align-items: center; touch-action: none; }
body.touch #touch { display: flex; }
#dpad, .cluster { display: flex; align-items: center; gap: calc(var(--btn) * 0.18); touch-action: none; }
.tbtn {
  width: var(--btn); height: var(--btn);
  display: grid; place-items: center;
  border-radius: 50%;
  border: 3px solid var(--cyan);
  background: #061428cc;
  color: var(--cyan);
  font-size: calc(var(--btn) * 0.32);
  box-shadow: 0 0 10px #38e1ff55, inset 0 -4px 0 #00000066;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
}
.tbtn.jump { border-color: var(--yellow); color: var(--yellow); box-shadow: 0 0 10px #ffe44f55, inset 0 -4px 0 #00000066; }
.tbtn.fire { width: calc(var(--btn) * 1.18); height: calc(var(--btn) * 1.18); font-size: calc(var(--btn) * 0.42); border-color: var(--mint); color: var(--mint); box-shadow: 0 0 12px #8dff9a66, inset 0 -4px 0 #00000066; }
.tbtn.on { transform: scale(0.9); background: #ffffff33; filter: brightness(1.4); }

/* Phones held sideways: controls float over the sides of the screen */
@media (orientation: landscape) and (pointer: coarse) {
  body.touch #touch {
    position: fixed; left: 0; right: 0;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    padding: 0 max(14px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-right));
    pointer-events: none; z-index: 3;
  }
  body.touch #touch > * { pointer-events: auto; }
  body.touch .tbtn { opacity: 0.72; }
}

/* ---------- overlays (cover the canvas + controls) ---------- */
.overlay {
  position: absolute; inset: 0; z-index: 5;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: calc(var(--ou) * 6);
  padding: calc(var(--ou) * 4);
  background: rgba(2, 8, 18, 0.78);
  border-radius: 6px;
  text-align: center;
  overflow-y: auto;
}
.overlay.show { display: flex; animation: fadein 0.3s ease-out; }

.title-wrap { display: flex; flex-direction: column; align-items: center; gap: calc(var(--ou) * 4); }
.title {
  font-size: calc(var(--ou) * 22);
  line-height: 1.15;
  color: var(--yellow);
  text-shadow:
    calc(var(--ou) * 1.5) calc(var(--ou) * 1.5) 0 var(--pink),
    calc(var(--ou) * 3) calc(var(--ou) * 3) 0 #0f3a6a,
    0 0 calc(var(--ou) * 10) var(--cyan);
  animation: bob 1.6s ease-in-out infinite;
}
.subtitle {
  font-size: calc(var(--ou) * 6);
  letter-spacing: calc(var(--ou) * 1.5);
  color: var(--pink);
  text-shadow: 0 0 calc(var(--ou) * 4) var(--pink);
}
.over-title {
  font-size: calc(var(--ou) * 14);
  color: #ff5a6e;
  text-shadow: calc(var(--ou) * 1) calc(var(--ou) * 1) 0 #5a1020, 0 0 calc(var(--ou) * 8) #ff0040;
  animation: bob 1.6s ease-in-out infinite;
}

.howto {
  display: grid;
  grid-template-columns: auto auto;
  gap: calc(var(--ou) * 3) calc(var(--ou) * 6);
  align-items: center;
  font-size: calc(var(--ou) * 5);
  padding: calc(var(--ou) * 4) calc(var(--ou) * 7);
  border: 2px solid #ffffff22;
  border-radius: calc(var(--ou) * 3);
  background: #04122acc;
}
.howto > div:nth-child(odd) { text-align: right; }
.howto .lbl { text-align: left; color: var(--cyan); }
.howto .lbl.bub { color: var(--mint); }
.key {
  display: inline-block;
  min-width: calc(var(--ou) * 10);
  padding: calc(var(--ou) * 1.5) calc(var(--ou) * 2);
  margin: 0 calc(var(--ou) * 0.7);
  border: 2px solid #fff; border-radius: calc(var(--ou) * 1.5);
  background: #0a2040;
  box-shadow: 0 calc(var(--ou) * 1) 0 #ffffff55;
  text-align: center;
}
.key.round { border-radius: 50%; min-width: calc(var(--ou) * 11); }
.key.bubk { color: var(--mint); border-color: var(--mint); }
.o2tag {
  display: inline-block;
  margin-left: calc(var(--ou) * 1);
  padding: calc(var(--ou) * 1) calc(var(--ou) * 2);
  border: 2px solid var(--cyan); border-radius: calc(var(--ou) * 1.5);
  color: var(--cyan);
  box-shadow: 0 0 6px #38e1ff88;
}
.o2tag sub { font-size: 0.6em; }
.only-touch { display: none; }
body.touch .only-touch { display: grid; }
body.touch .only-keys { display: none; }

.mode-btns { display: flex; gap: calc(var(--ou) * 5); flex-wrap: wrap; justify-content: center; }
.big {
  font-family: var(--pixel);
  font-size: calc(var(--ou) * 8);
  padding: calc(var(--ou) * 5) calc(var(--ou) * 9);
  color: #fff;
  background: var(--pink);
  border: 3px solid var(--yellow);
  border-radius: calc(var(--ou) * 4);
  box-shadow: 0 0 18px var(--pink), inset 0 calc(var(--ou) * -2) 0 #a0237f;
  cursor: pointer;
  animation: pulse 1s ease-in-out infinite;
}
.big:hover { filter: brightness(1.15); }
.big:active { transform: scale(0.95); }
.big.daily { background: #0b4a7a; border-color: var(--cyan); box-shadow: 0 0 14px #38e1ff99, inset 0 calc(var(--ou) * -2) 0 #06294a; animation: none; }

.best { display: flex; gap: calc(var(--ou) * 6); font-size: calc(var(--ou) * 5); color: var(--pink); }
.daily-best { color: var(--cyan); }

.title-links, .over-links { display: flex; gap: calc(var(--ou) * 5); flex-wrap: wrap; justify-content: center; align-items: center; }
.title-link {
  font-size: calc(var(--ou) * 4.2);
  color: var(--muted); text-decoration: none;
  padding: calc(var(--ou) * 2) calc(var(--ou) * 3);
  border: 1px solid var(--line); border-radius: 999px;
}
.title-link:hover { color: #fff; border-color: var(--cyan); }

/* ---------- result card ---------- */
.card {
  display: flex; flex-direction: column; align-items: center;
  gap: calc(var(--ou) * 4);
  padding: calc(var(--ou) * 5) calc(var(--ou) * 9);
  border: 2px solid #38e1ff55; border-radius: calc(var(--ou) * 4);
  background: #04122acc;
  box-shadow: 0 0 calc(var(--ou) * 8) #38e1ff33;
}
.overlay.show .card > * { opacity: 0; animation: cardin 0.35s ease-out forwards; }
.overlay.show .card > *:nth-child(1) { animation-delay: 0.1s; }
.overlay.show .card > *:nth-child(2) { animation-delay: 0.25s; }
.overlay.show .card > *:nth-child(3) { animation-delay: 0.4s; }
.overlay.show .card > *:nth-child(4) { animation-delay: 0.55s; }
.score-line { display: flex; gap: calc(var(--ou) * 5); align-items: baseline; font-size: calc(var(--ou) * 5.5); }
.score-line .lbl { color: var(--cyan); }
.score-line b { color: var(--yellow); font-size: calc(var(--ou) * 10); font-weight: normal; }
.score-line.hi b { color: var(--pink); font-size: calc(var(--ou) * 6.5); }
#new-record { display: none; font-size: calc(var(--ou) * 6); color: #9dff4f; }
#new-record.show { display: block; }
#new-record:not(.show) { display: none !important; }
.overlay.show .card > #new-record.show { animation: cardin 0.35s ease-out 0.4s forwards, blink 0.5s steps(2) 0.8s infinite; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: calc(var(--ou) * 7); font-size: calc(var(--ou) * 5.5); }
.stat { display: flex; flex-direction: column; align-items: center; gap: calc(var(--ou) * 2); }
.stat .ic { color: var(--cyan); font-size: calc(var(--ou) * 6.5); height: calc(var(--ou) * 9); display: flex; align-items: center; line-height: 1; }
.stat b { color: #fff; font-weight: normal; }

.over-btns { display: flex; gap: calc(var(--ou) * 5); align-items: center; }
.sq-btn {
  width: calc(var(--ou) * 22); height: calc(var(--ou) * 22);
  min-width: 48px; min-height: 48px;
  display: grid; place-items: center;
  border: 2px solid var(--cyan); border-radius: calc(var(--ou) * 4);
  background: #061428; color: var(--cyan);
  cursor: pointer;
}
.sq-btn svg { width: 55%; height: 55%; }
.sq-btn .done { display: none; }
.sq-btn.copied { border-color: var(--mint); color: var(--mint); }
.sq-btn.copied .copy { display: none; }
.sq-btn.copied .done { display: block; }
#btn-retry { font-size: calc(var(--ou) * 12); padding: calc(var(--ou) * 3) calc(var(--ou) * 10); }

/* ---------- Buy me a coffee ---------- */
.bmc {
  display: inline-flex; align-items: center; gap: 6px;
  color: #1a1200; background: #ffdd00; text-decoration: none;
  font: 700 13px/1 system-ui, sans-serif;
  border-radius: 999px; padding: 8px 12px;
  box-shadow: 0 0 10px #ffdd0066;
}
.bmc-corner { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 20px; }
body.playing .bmc, body.playing .more-games { display: none !important; }

/* ---------- online rank (result card) ---------- */
.rank-box { min-height: 0; font-family: system-ui, sans-serif; }
.rank-box[data-state="hidden"] { display: none; }
.nick-form { display: flex; align-items: center; gap: 6px; padding: 4px; border: 2px solid var(--cyan); border-radius: 12px; background: #061428; }
.nick-form.invalid { border-color: #ff5a6e; animation: shake 0.3s; }
.nick-form.saved { border-color: var(--mint); }
.nick-ico { font-size: 18px; padding-left: 6px; }
.nick-form input {
  width: 150px; min-width: 0;
  font: 600 16px system-ui, sans-serif; color: #fff;
  background: transparent; border: 0; outline: 0; padding: 8px 4px;
}
.nick-go { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 9px; background: var(--cyan); color: #02121f; cursor: pointer; }
.nick-go svg { width: 22px; height: 22px; }
.rank-row { display: flex; gap: 8px; align-items: center; }
.rank-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 10px; border-radius: 999px; background: #0a2040; border: 1px solid var(--line); color: var(--text); font-size: 15px; }
.rank-chip b { color: var(--yellow); }
.rank-chip small { color: var(--muted); }
.rank-open, .rank-retry { border: 1px solid var(--line); background: #0a2040; color: #fff; border-radius: 999px; padding: 6px 10px; font-size: 16px; cursor: pointer; }
.rank-loading { color: var(--muted); letter-spacing: 4px; }

/* ================= ads ================= */
.ad-slot { display: none; }
.ad-placeholder {
  display: grid; place-items: center; width: 100%; height: 100%;
  border: 2px dashed #ffffff33; border-radius: 8px; color: #ffffff55;
  font: 600 12px system-ui, sans-serif; text-align: center;
}
@media (min-width: 1100px) {
  body:not(.no-ads) .ad-side { display: block; width: 160px; height: 600px; flex: none; }
}
@media (max-width: 1099px) {
  body:not(.no-ads) .ad-bottom {
    display: flex; justify-content: center; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 4;
    height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: #020812ee; border-top: 1px solid var(--line);
  }
  body:not(.no-ads) .ad-bottom .ad-placeholder { width: 320px; height: 50px; }
}
body.playing .ad-placeholder { visibility: hidden; }

.scroll-hint {
  position: absolute; left: 50%; bottom: max(4px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: 34px; height: 22px; color: var(--muted); opacity: 0.7;
  animation: hint 1.6s ease-in-out infinite;
}
.scroll-hint svg { width: 100%; height: 100%; }
body.ad-bottom-on .scroll-hint { bottom: calc(54px + env(safe-area-inset-bottom)); }
body.playing .scroll-hint, body.touch .scroll-hint { display: none; }

/* ================= info section (below the game) ================= */
.info { max-width: 880px; margin: 0 auto; padding: 48px 16px 24px; }
.info-head { text-align: center; margin-bottom: 24px; }
.info-head h1 { font-family: var(--pixel); font-size: clamp(22px, 6vw, 34px); color: var(--yellow); text-shadow: 2px 2px 0 var(--pink); margin-bottom: 14px; }
.info-lead { font-size: 17px; color: var(--text); }
.info-langs { margin-top: 8px; color: var(--muted); font-size: 14px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.info-card.wide { margin-bottom: 16px; }
.info-card h2 { font-size: 20px; color: var(--cyan); margin-bottom: 10px; }
.info-card p, .info-card li { color: var(--text); margin-bottom: 8px; }
.info-card ol, .info-card ul { padding-left: 22px; }
.info-card a { color: var(--cyan); }
table.ctrl { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
table.ctrl th, table.ctrl td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
table.ctrl th { white-space: nowrap; color: var(--muted); font-weight: 600; padding-right: 10px; }
kbd { display: inline-block; min-width: 22px; padding: 0 6px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; background: var(--panel); font: 600 13px/1.6 ui-monospace, monospace; text-align: center; }
details { border: 1px solid var(--line); border-radius: 12px; background: #ffffff05; padding: 2px 14px; margin: 8px 0; }
summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
details p { margin: 0 0 12px; }
.more { margin-top: 12px; }
.info-play { display: block; width: fit-content; margin: 8px auto 0; color: var(--cyan); font-weight: 700; text-decoration: none; }

.game-footer { max-width: 880px; margin: 0 auto; padding: 20px 16px 90px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.game-footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.game-footer a { color: var(--muted); }

/* ================= modals ================= */
dialog.modal {
  width: min(560px, calc(100vw - 24px)); max-height: min(86vh, 760px);
  margin: auto; padding: 0;
  color: var(--text); background: #06142a;
  border: 1px solid #38e1ff55; border-radius: 18px;
  box-shadow: 0 0 40px #38e1ff33;
}
dialog.modal::backdrop { background: rgba(0, 4, 12, 0.75); }
.modal-body { padding: 22px 22px 18px; overflow-y: auto; max-height: min(86vh, 760px); }
.modal-body h2 { color: var(--cyan); font-size: 22px; margin-bottom: 6px; }
.modal-body h3 { font-size: 16px; margin: 16px 0 4px; }
.modal-body p { margin-bottom: 8px; font-size: 15px; }
.modal-body a { color: var(--cyan); }
.muted { color: var(--muted); font-size: 13px; }
.modal-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #ffffff14; color: #fff; font-size: 16px; cursor: pointer; }
.contact-btn { display: inline-block; padding: 10px 14px; border-radius: 12px; background: #0a2040; border: 1px solid var(--line); text-decoration: none; }

/* leaderboard dialog */
.lb-modal .modal-body { text-align: center; }
.lb-title { font-size: 30px !important; }
.lb-tabs { display: flex; gap: 6px; justify-content: center; margin: 8px 0 12px; flex-wrap: wrap; }
.lb-tab { border: 1px solid var(--line); background: #0a2040; color: var(--muted); border-radius: 999px; padding: 7px 12px; font-size: 14px; cursor: pointer; }
.lb-tab[aria-selected="true"] { color: #02121f; background: var(--cyan); border-color: var(--cyan); font-weight: 700; }
.lb-list { list-style: none; text-align: left; }
.lb-row { display: grid; grid-template-columns: 44px 44px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.lb-row.me { background: #38e1ff22; border-radius: 10px; }
.lb-rank { font-weight: 700; color: var(--muted); }
.lb-stage { font: 11px var(--pixel); color: var(--cyan); }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lb-score { font-variant-numeric: tabular-nums; color: var(--yellow); font-weight: 700; }
.lb-empty { text-align: center; padding: 20px; color: var(--muted); }
.lb-me { margin-top: 6px; }
.lb-nick { width: fit-content; margin: 14px auto 6px; }
.lb-note { color: var(--muted); font-size: 12px; }

/* move-records dialog (js/transfer.js) */
.xfer-moved { text-align: center; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.xfer-moved b { color: var(--yellow); word-break: break-all; }
.modal-body a.xfer-go { display: inline-block; margin-top: 6px; padding: 12px 18px; font-size: 14px; color: #fff; text-decoration: none; }
.xfer-row { display: flex; gap: 8px; align-items: stretch; }
.xfer-row textarea { flex: 1; min-width: 0; resize: none; padding: 8px; border: 2px solid var(--line); border-radius: 10px; background: #061428; color: var(--text); font: 12px/1.4 ui-monospace, monospace; word-break: break-all; }
.xfer-row textarea:focus { outline: none; border-color: var(--cyan); }
.xfer-btn { flex: none; min-width: 76px; border: 0; border-radius: 10px; background: var(--cyan); color: #02121f; font-weight: 700; cursor: pointer; }
.xfer-btn:active { transform: scale(0.96); }
.xfer-msg { min-height: 1.4em; margin-top: 10px; font-size: 14px; color: var(--mint); white-space: pre-line; }
.xfer-msg.bad { color: #ff5a6e; }

/* ================= fever ================= */
body.fever #stage-wrap { animation: fever 0.6s linear infinite; }

/* ================= animation ================= */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--ou) * -3)); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 10px var(--pink), inset 0 calc(var(--ou) * -2) 0 #a0237f; } 50% { box-shadow: 0 0 26px var(--pink), inset 0 calc(var(--ou) * -2) 0 #a0237f; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardin { from { opacity: 0; transform: translateY(calc(var(--ou) * 4)) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes hint { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }
@keyframes fever {
  0%   { box-shadow: 0 0 0 2px #38e1ff, 0 0 30px #38e1ff; }
  33%  { box-shadow: 0 0 0 2px #ff6ad5, 0 0 30px #ff6ad5; }
  66%  { box-shadow: 0 0 0 2px #ffe44f, 0 0 30px #ffe44f; }
  100% { box-shadow: 0 0 0 2px #38e1ff, 0 0 30px #38e1ff; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.fever #stage-wrap { animation: none; box-shadow: 0 0 0 2px #ffe44f, 0 0 24px #ffe44f; }
  .title, .over-title, .big, .scroll-hint { animation: none; }
}

/* ================= phones held upright: fill the screen, controls in the thumb zone ================= */
body.portrait #gameCol { height: 100%; }
body.portrait #play-area { flex: 1; width: var(--gw); justify-content: space-between; padding-bottom: 4px; }
body.portrait #touch { margin-top: auto; padding: 0 2px; }

/* ================= embedded builds (itch.io / portals: html.embed set by platform.js) ================= */
html.embed, html.embed body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.embed #app { height: 100%; }
