/* ==========================================================================
   World viewer HUD. Two kinds of thing: the bar (top left: what you are, two big
   buttons) and the lobby are solid cards that read the same over day and night;
   everything else is small plain text on the world with a faint shadow.
   Layout modes are classes on <html>, set by ui.js from the viewport:
     (none)      wide desktop
     .m-medium   721–1000 px wide
     .m-compact  ≤ 720 px wide or ≤ 480 px tall: a top line, popovers, the inspector is a sheet
     .m-land     with .m-compact, a short landscape screen: the sheet docks right
   ========================================================================== */

:root {
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.8);
  --dim: rgba(255, 255, 255, 0.62);
  --bad: #ffa69c;
  --accent: #ffd27a;
  --shade: 0 0 4px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.85);
  --sheet-bg: rgba(0, 0, 0, 0.55);
  --gap: 14px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sheet-h: 0px;
  --sheet-w: 0px;
  --right-bottom: 0px;
  --font: "Helvetica Neue", Arial, Helvetica, sans-serif;
  --card: rgba(0, 0, 0, 0.55);
  --card-line: rgba(255, 255, 255, 0.12);
  --focus: #8ec9ff;
  --radius: 0;
  font: 12px/1.45 var(--font);
  color: var(--text);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; background: #0b0f14; overflow: hidden;
  overscroll-behavior: none; touch-action: none; -webkit-tap-highlight-color: transparent;
}
body { position: fixed; inset: 0; -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }

#view { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; outline: none; cursor: grab; touch-action: none; }
#view:active { cursor: grabbing; }

/* ---------- primitives ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; text-shadow: var(--shade); }
#hud > * { position: absolute; }
#hud section:not(.stack), #hud aside, #banner { pointer-events: auto; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: baseline; gap: 10px; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; font: inherit; }
h2 { color: var(--muted); margin: 12px 0 3px; }
code, kbd, pre, output, input, textarea, select { font: inherit; color: inherit; }
code { -webkit-user-select: text; user-select: text; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.scroll { overflow: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll::-webkit-scrollbar { display: none; }
.swatch { display: inline-block; width: 8px; height: 8px; flex: none; }

button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  text-shadow: inherit; touch-action: manipulation; -webkit-user-select: none; user-select: none; text-align: inherit;
}
button:hover { text-decoration: underline; text-underline-offset: 2px; }
button:focus-visible, summary:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input:focus-visible { outline: none; }
a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- top-left: the bar ---------- */
#top-left { left: calc(var(--gap) + var(--sal)); top: calc(var(--gap) + var(--sat)); width: 340px; pointer-events: none; gap: 8px; align-items: flex-start; }
#top-left > * { pointer-events: auto; }
#bar {
  width: 100%; padding: 14px 14px 12px; background: var(--card);

 text-shadow: none;
}
#state { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
#state-dot { width: 10px; height: 10px; background: #ff5a4f; }
.spectating #state-dot { animation: live 2.4s ease-in-out infinite; }
@keyframes live { 50% { } }
#state-text { font-size: 17px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#state-text b { font-weight: 700; }
#state-sub { grid-column: 2; color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 1px; }
#bigs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; align-items: center; }
.cta {
  height: 42px; font-size: 15px; font-weight: 600; text-align: center; letter-spacing: 0.01em;
  color: #fff; background: rgba(255, 255, 255, 0.14); text-shadow: none;
  transition: background 0.12s, transform 0.06s;
}
.cta.primary { background: #fff; color: #0d1015; border-color: #fff; }
.cta:hover { text-decoration: none; background: rgba(255, 255, 255, 0.22); }
.cta.primary:hover { background: #e6e6e6; }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#follow-chip {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 7px 8px 7px 12px;
  background: #ffd27a; color: #1a1205; font-weight: 600; text-shadow: none;
}
#follow-chip:hover { text-decoration: none; background: #ffe09e; }
#follow-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#follow-chip .stop { flex: none; padding: 2px 9px; background: #1a1205; color: #ffd27a; }
#quiet { display: flex; gap: 16px; margin-top: 12px; padding-top: 9px; }
.quiet { color: var(--muted); }
.quiet:hover { color: var(--text); }
.quiet.on { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.empty { color: var(--muted); line-height: 1.5; }
.empty b { color: var(--text); font-weight: normal; display: block; }
.notice { color: var(--bad); line-height: 1.45; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.notice b { font-weight: normal; }
.notice .hint { color: var(--muted); display: block; }
.cmd { display: flex; gap: 8px; min-width: 0; align-items: baseline; }
.cmd code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; -webkit-user-select: all; user-select: all; }
.cmd .lead { color: var(--muted); white-space: nowrap; }
.cmd button { flex: none; color: var(--muted); }

/* ---------- top-right: the lobby (join.css) ---------- */
#top-right { right: calc(var(--gap) + var(--sar)); top: calc(var(--gap) + var(--sat)); align-items: flex-end; pointer-events: none; }

/* ---------- inspector ---------- */
#inspector {
  right: calc(var(--gap) + var(--sar)); top: max(calc(var(--gap) + var(--sat)), calc(var(--right-bottom) + var(--gap)));
  width: 280px; max-height: calc(100vh - max(calc(var(--gap) + var(--sat)), calc(var(--right-bottom) + var(--gap))) - 230px);
  display: flex; flex-direction: column;
  /* a card of its own: read over bright ground, never painted on the world */
  background: var(--card, rgba(14, 18, 26, 0.9)); padding: 8px 10px; box-sizing: border-box;
}
#inspector details.raw { color: var(--muted); font-size: 0.92em; }
#inspector details.raw summary { cursor: pointer; }
.no-map #inspector { max-height: calc(100vh - max(calc(var(--gap) + var(--sat)), calc(var(--right-bottom) + var(--gap))) - 50px); }
#ins-head { flex: none; min-width: 0; }
#ins-title { font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ins-owner { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#ins-collapse::after { content: "–"; }
.ins-collapsed #ins-collapse::after { content: "+"; }
#ins-close, #ins-collapse { color: var(--muted); font-size: 14px; line-height: 1; padding: 0 2px; }
#ins-body { min-height: 0; padding-top: 4px; }
.ins-collapsed #ins-body { display: none; }
#ins-body .acts { margin: 2px 0 8px; gap: 12px; }
#ins-follow.active { text-decoration: underline; text-underline-offset: 2px; }
#ins-link { color: var(--muted); }
dl { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#ins-words li { display: flex; gap: 8px; color: var(--muted); }
#ins-words li:last-child { color: var(--text); }
#ins-words .said { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#ins-words .when { color: var(--dim); white-space: nowrap; }
#ins-program { display: grid; gap: 8px; }
.prog { display: grid; gap: 3px; min-width: 0; }
.prog .via, .prog .stats { color: var(--muted); overflow-wrap: anywhere; }
.prog .pname { font-weight: bold; }
.prog .bad, .perr { color: var(--bad); }
.perr { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 110px; overflow: auto; -webkit-user-select: text; user-select: text; }
.logbar { margin-top: 3px; color: var(--muted); }
.logbar button { color: var(--muted); }
.logbar button.on { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.log { max-height: 132px; touch-action: pan-x pan-y; -webkit-user-select: text; user-select: text; }
.log li { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.log li.hit { color: var(--text); }
.log li.bad { color: var(--bad); }
.plain { color: var(--muted); line-height: 1.45; }
.who { color: var(--text); }
#ins-order h2 { margin-top: 4px; }
#ins-type { margin-top: 12px; }
#ins-type > summary { list-style: none; cursor: pointer; color: var(--muted); }
#ins-type > summary::-webkit-details-marker { display: none; }
#ins-type > summary:hover { text-decoration: underline; text-underline-offset: 2px; }
#ins-type[open] > summary { margin-bottom: 3px; }

/* ---------- bottom-left: chat ---------- */
#bottom-left { left: calc(var(--gap) + var(--sal)); bottom: calc(var(--gap) + var(--sab)); width: 420px; }

/* ---------- bottom-right: minimap, coordinates, share ---------- */
#bottom-right { right: calc(var(--gap) + var(--sar)); bottom: calc(var(--gap) + var(--sab)); touch-action: none; }
#minimap-wrap { position: relative; }
#minimap { width: 300px; height: 150px; display: block; cursor: crosshair; touch-action: none; }
.no-map #minimap-wrap { display: none; }
#minimap-size { display: none; position: absolute; right: 4px; top: 2px; font-size: 14px; }
#coords-row { margin-top: 4px; gap: 12px; white-space: nowrap; }
#coords { font-variant-numeric: tabular-nums; display: none; }
/* fewer numbers: the coordinates only while the pointer is on the minimap */
#bottom-right:hover #coords { display: inline; }

/* ---------- HUD restore ---------- */

/* ---------- banner (connection), toasts, tooltip ---------- */
#banner {
  line-height: 1.45; -webkit-user-select: text; user-select: text; white-space: normal; width: 100%;
  padding: 8px 12px; background: var(--card); text-shadow: none;
}
#banner .bsub { display: block; color: var(--muted); }
#banner .elapsed { color: var(--muted); margin-left: 6px; }
#banner.auth .btext { color: var(--accent); }
#banner.auth .bsub { color: var(--muted); }
#toasts { left: 50%; bottom: calc(var(--gap) + var(--sab) + 4px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 31; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast { transition: opacity 0.35s; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.toast.warn, .toast.alert { color: var(--bad); }
.toast.alert { white-space: normal; }
.toast.out { opacity: 0; }
#tooltip { pointer-events: none; white-space: nowrap; transform: translate(14px, 14px); z-index: 20; }
#tooltip .sub { color: var(--muted); }
#fatal { position: fixed; inset: 0; display: grid; place-items: center; background: #0b0f14; color: #fff; font: 13px/1.5 var(--font); padding: 24px; text-align: center; z-index: 100; -webkit-user-select: text; user-select: text; }

/* ---------- shortcuts sheet ---------- */
#shortcuts {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--sheet-bg); color: var(--text);
  padding: calc(16px + var(--sat)) calc(16px + var(--sar)) calc(16px + var(--sab)) calc(16px + var(--sal));
}
#shortcuts .sheet {
  width: min(760px, 100%); max-height: 100%; display: flex; flex-direction: column; font-size: 13px;
  padding: 20px 24px; background: rgba(0, 0, 0, 0.85);
}
.spectating #shortcuts .player-only { display: none; }
.spectating #shortcuts .sheet { width: min(480px, 100%); }
.spectating #shortcuts .cols { grid-template-columns: 1fr; }
#shortcuts header { margin-bottom: 12px; }
#shortcuts header .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#shortcuts-title { font-weight: 600; font-size: 15px; }
#shortcuts .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; min-height: 0; }
#shortcuts h2 { margin: 14px 0 4px; }
#shortcuts section > h2:first-child { margin-top: 0; }
dl.keys { grid-template-columns: minmax(0, auto) 1fr; gap: 2px 14px; }
dl.keys dt { color: var(--text); }
dl.keys dd { text-align: left; color: var(--muted); }
#shortcuts footer { margin-top: 14px; line-height: 1.6; }

/* ==========================================================================
   Medium
   ========================================================================== */
.m-medium #bottom-left { width: min(420px, calc(100vw - 2 * var(--gap) - 330px)); }

/* ---------- the first picture: covered until the camera is over something ---------- */
#arrive { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #0b0f14; color: var(--muted); font-size: 13px; transition: opacity 0.5s; pointer-events: none; }
#arrive.out { opacity: 0; }

/* ==========================================================================
   Compact: phones, and anything short. A top line with toggles; panels are
   popovers under it (one at a time); the inspector is a bottom sheet.
   ========================================================================== */
.m-compact { --gap: 10px; --bar-extra: 0px; }
.m-compact .compact-only { display: inline-block !important; }
.m-compact .wide-only { display: none !important; }
.m-compact #top-left { right: calc(var(--gap) + var(--sar)); width: auto; gap: 6px; top: calc(var(--sat) + var(--gap)); }
.m-compact #bar { padding: 10px 10px 10px 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; }
.m-compact #state-sub { display: none; }
#state-sub.waiting { color: var(--bad); }
.m-compact #state-sub.waiting, .m-compact #state-sub.loading { display: block; }
.m-compact #state-text { font-size: 15px; }
.m-compact #bigs { margin: 0; gap: 6px; }
.m-compact .cta { height: 38px; padding: 0 14px; font-size: 14px; }
.m-compact #quiet { grid-column: 1 / -1; margin-top: 8px; padding-top: 2px; gap: 0; }
.m-compact .quiet { padding: 6px 16px 2px 0; }
.m-compact #top-right { top: auto; bottom: calc(var(--gap) + max(var(--sab), var(--sheet-h)) + 126px); }
.m-compact #ins-follow, .m-compact #ins-goto, .m-compact #ins-link { padding: 8px 0; }
.m-compact #ins-close, .m-compact #ins-collapse { padding: 6px 8px; font-size: 18px; }
.m-compact .logbar button { padding: 6px 4px; }

/* inspector: bottom sheet, flat */
.m-compact #inspector {
  left: 0; right: 0; top: auto; bottom: 0; width: auto; margin: 0 auto; max-width: 560px;
  max-height: min(46vh, 420px); max-height: min(46dvh, 420px);
  background: var(--sheet-bg); text-shadow: none; padding: 8px 14px calc(10px + var(--sab)); z-index: 10; touch-action: none;
}
.m-compact #ins-head { cursor: pointer; touch-action: none; }
.m-compact #ins-body { touch-action: pan-y; }

/* bottom widgets ride above the sheet */
.m-compact #bottom-left, .m-compact #bottom-right { bottom: calc(var(--gap) + max(var(--sab), var(--sheet-h))); }
.m-compact #bottom-right { right: calc(var(--gap) + var(--sar) + var(--sheet-w)); }
.m-compact #minimap { width: 160px; height: 80px; cursor: pointer; }
.m-compact.map-big #minimap { width: min(calc(100vw - 2 * var(--gap) - var(--sal) - var(--sar) - var(--sheet-w)), 420px); height: auto; aspect-ratio: 2 / 1; cursor: crosshair; }
.m-compact.map-big #minimap-size { display: block; padding: 4px 8px; }
.m-compact.map-big #bottom-left { visibility: hidden; }
.m-compact #coords-row { gap: 8px; }
.m-compact #bottom-left { width: calc(100vw - 2 * var(--gap) - var(--sal) - var(--sar) - var(--sheet-w) - 180px); }

/* toasts sit under the top line on small screens */
.m-compact #toasts { bottom: auto; top: calc(var(--tl-bottom, 120px) + 36px); }
.m-compact #banner { max-width: 400px; }

.m-compact #shortcuts { padding: calc(10px + var(--sat)) calc(10px + var(--sar)) calc(10px + var(--sab)) calc(10px + var(--sal)); place-items: stretch; }
.m-compact #shortcuts .sheet { padding: 14px 16px; }
.m-compact #shortcuts .cols { grid-template-columns: 1fr; }
.m-compact #shortcuts section + section { margin-top: 14px; }
.m-compact #shortcuts header .muted { display: none; }
.m-compact #shortcuts-close { padding: 6px 0 6px 12px; }

/* ---------- a phone held upright: one hand ----------
   The card and its two buttons sit at the bottom, under the thumb, above the home indicator
   (and above the inspector sheet when it is open); what only informs goes to the top corners:
   the map on the left, the players on the right. The middle of the screen is the world's.
   Every target is at least 44 px tall. */
.m-compact:not(.m-land) #top-left {
  top: auto; bottom: calc(var(--gap) + max(var(--sab), var(--sheet-h))); flex-direction: column-reverse; align-items: stretch;
}
.m-compact:not(.m-land) #follow-chip { align-self: flex-start; min-height: 44px; }
.m-compact:not(.m-land) #bar { padding: 10px 12px 2px; }
.m-compact:not(.m-land) .cta { height: 48px; padding: 0 18px; font-size: 15px; }
.m-compact:not(.m-land) #quiet { margin-top: 4px; padding-top: 0; }
.m-compact:not(.m-land) .quiet { min-height: 44px; padding: 0 18px 0 0; }
.m-compact:not(.m-land) #top-right { top: calc(var(--sat) + var(--gap)); bottom: auto; right: calc(var(--gap) + var(--sar)); max-width: calc(100vw - 2 * var(--gap) - 150px); }
.m-compact:not(.m-land) #bottom-right { top: calc(var(--sat) + var(--gap)); bottom: auto; left: calc(var(--gap) + var(--sal)); right: auto; }
.m-compact:not(.m-land) #minimap { width: 132px; height: 66px; }
.m-compact:not(.m-land).map-big #bottom-right { right: calc(var(--gap) + var(--sar)); z-index: 13; background: var(--sheet-bg); padding: 6px; }
/* the grown map on a phone held upright: the full width, over the players (which it hides) */
.m-compact:not(.m-land).map-big #minimap { width: 100%; height: auto; aspect-ratio: 2 / 1; cursor: crosshair; }
.m-compact:not(.m-land).map-big #top-right { visibility: hidden; }
.m-compact #coords { display: none !important; }
.m-compact:not(.m-land) #minimap-size { min-width: 44px; min-height: 44px; font-size: 18px; }
.m-compact:not(.m-land) #coords-row { margin-top: 0; }
.m-compact:not(.m-land) #bottom-left { bottom: calc(var(--tl-h, 140px) + 52px); width: calc(100vw - 2 * var(--gap) - var(--sal) - var(--sar)); }
/* (the marks' key is in the help sheet; on a phone the corner is the map's) */
.m-compact:not(.m-land) #toasts { top: calc(var(--sat) + var(--gap) + 118px); }
.m-compact:not(.m-land) #ins-close, .m-compact:not(.m-land) #ins-collapse { min-width: 44px; min-height: 44px; padding: 0; text-align: center; }
.m-compact:not(.m-land) #ins-follow, .m-compact:not(.m-land) #ins-goto, .m-compact:not(.m-land) #ins-link { min-height: 44px; padding: 0 14px 0 0; }
.m-compact:not(.m-land) #inspector { max-height: min(42vh, 380px); max-height: min(42dvh, 380px); }

/* short landscape: the sheet docks to the right edge, full height under the top line */
.m-land #inspector {
  left: auto; right: 0; margin: 0; width: 330px; max-width: none;
  max-height: 100vh; max-height: 100dvh;
}
.m-land #top-left { right: auto; width: min(420px, calc(100vw - 2 * var(--gap) - var(--sheet-w))); }
.m-land #top-right { display: none; }
.m-land #shortcuts .cols { grid-template-columns: 1fr 1fr; }
.m-land #shortcuts section + section { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- in the world: player names, signs ---------- */
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; text-shadow: var(--shade); }

/* ---------- pointing: marks, selection box, focus readout, orders ---------- */
#band { position: fixed; border: 1px dashed rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.06); pointer-events: none; z-index: 20; }
#band-offer, #mark-edit { position: fixed; z-index: 40; display: flex; align-items: baseline; gap: 10px; text-shadow: var(--shade); color: var(--text); }
#mark-name { width: 150px; background: rgba(0, 0, 0, 0.45); border: 0; padding: 2px 5px; outline: none; color: #fff; -webkit-user-select: text; user-select: text; }
#mark-del { color: var(--muted); }

  /* a card like the others: not words floating over the world */
  padding: 6px 14px; background: var(--card);
 text-shadow: none; }
.plist li { display: flex; gap: 10px; align-items: baseline; cursor: pointer; line-height: 1.6; }
.plist li:hover .pname { text-decoration: underline; }
.plist button { color: var(--muted); }
.pdl dt { white-space: nowrap; } .pdl dd { text-align: left; }
.order { margin: 0 0 8px; cursor: pointer; }
.order:hover b { text-decoration: underline; }
.order .ostatus { color: var(--muted); }
.order.bad .ostatus, .oblock { color: var(--bad); }
.order.done { opacity: 0.6; }
.osub, .ostep { color: var(--muted); }
.ostep.now { color: var(--text); }

/* The invite's text laid over the world (/i/<code>, made by the server): all white, told apart
   by size, never by grey; the top-left menu steps aside while it is shown. */
html body #invite { color: #fff; }

/* what agents say: plain captions over them, black on white */
.caption { position: absolute; left: 0; top: 0; max-width: 170px; padding: 1px 4px; background: #fff; color: #000; text-shadow: none;
  font: 11px/1.3 var(--font); pointer-events: none; white-space: normal; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; will-change: transform, opacity; }

/* zoomed out: one label a player, in their colour, to fly to */

/* what the player's AI says an agent is doing (its note), or its order */
#tooltip .note { margin-top: 2px; font-style: italic; }


/* the help: touch gestures on a touch screen, keys elsewhere */
@media (pointer: coarse) { #shortcuts .keys-only { display: none; } }
@media not (pointer: coarse) { #shortcuts .touch-only { display: none; } }

/* a tap's answer: a ring that opens where the finger was */
.tap-ring { position: fixed; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 2px solid rgba(255,255,255,.85);
  pointer-events: none; z-index: 30; animation: tap-ring .45s ease-out forwards; }
@keyframes tap-ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
