/* Project Oso: the flip phone (ui/phone.js). A chunky 2004 clamshell: a lid with a small pixel screen, a
   hinge, an aerial, and a keypad with letters under the numbers. It is built at the size of its own
   screen dots (the lid is 152 dots wide, the screen 128 by 144) and the whole phone is scaled up by a
   whole number of device pixels to fit the window, so one dot of type is always a square.
   Nothing on the little screen is a font: all of it is drawn in dots (ui/pixels.js). */

.phone {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 30;
  overflow: hidden;
  background: rgba(18, 10, 6, 0.38);
  touch-action: manipulation;
  outline: none;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.phone[hidden] { display: none; }
/* on its way back to the pocket it is no longer in the way of the game */
.phone.closing { pointer-events: none; }
.phone.away { background: rgba(18, 10, 6, 0); }

/* --- the body: placed and scaled by phone.js (--x, --y, --k) ---------------------------------------- */
.phone-body {
  position: absolute; left: 0; top: 0;
  width: 152px; height: 354px;
  transform-origin: 0 0;
  transform: translate(var(--x, 0px), calc(var(--y, 0px) + var(--drop, 0px))) scale(var(--k, 2));
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
  perspective: 560px;
  perspective-origin: 50% 46%;
  --shell: #d5dbe5;
  --shell-lit: #f2f5f9;
  --shell-dark: #9aa3b4;
  --key: #f4efe2;
  --line: #24150c;
}
.phone.away .phone-body { --drop: 105vh; transition-timing-function: cubic-bezier(0.5, 0, 0.9, 0.4); }
.phone.snap .phone-body { transition: none; }

/* the aerial: a stub at the top right, behind the lid */
.phone-ant {
  position: absolute; left: 113px; top: 0; width: 14px; height: 32px;
  background: linear-gradient(90deg, #2b2f3a, #6a7286 40%, #3a3f4c 75%, #20232c);
  border: 2px solid var(--line); border-radius: 7px 7px 0 0; box-sizing: border-box;
  transition: transform 0.2s ease;
}
.phone-ant::before { content: ""; position: absolute; left: 2px; top: 2px; width: 3px; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, 0.45); }
.phone-ant::after { content: ""; position: absolute; left: -2px; right: -2px; top: 9px; height: 2px; background: var(--line); }
/* shut, the lid lies over the keys and the aerial stands up from the hinge */
.phone.shut .phone-ant { transform: translateY(154px); }

/* --- the lid ----------------------------------------------------------------------------------------- */
.phone-lid {
  position: absolute; left: 0; top: 14px; width: 152px; height: 172px;
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.3, 1.25, 0.5, 1);
}
.phone.shut .phone-lid { transform: rotateX(-180deg); transition: transform 0.2s cubic-bezier(0.5, 0, 0.9, 0.5); }
.phone-face {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; box-sizing: border-box;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border: 2px solid var(--line); border-radius: 20px 20px 7px 7px;
  background: linear-gradient(180deg, var(--shell-lit) 0, var(--shell) 22%, var(--shell) 70%, var(--shell-dark) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -3px 0 rgba(36, 21, 12, 0.16), inset 3px 0 0 rgba(255, 255, 255, 0.35), inset -3px 0 0 rgba(36, 21, 12, 0.1);
}
.phone-face.back { transform: rotateX(180deg); border-radius: 7px 7px 20px 20px; }
/* the ear's slot: a row of holes */
.phone-ear {
  position: absolute; left: 60px; top: 3px; width: 28px; height: 4px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #2a2e3a 0 2px, transparent 2px 4px);
}
/* the screen's dark surround, and the screen */
.phone-screen {
  position: absolute; left: 6px; top: 7px; width: 128px; height: 144px;
  border: 4px solid #1d2030; border-radius: 5px;
  box-shadow: 0 0 0 1px #6a7286, inset 0 0 0 1px #000;
  background: #0a0c14;
  overflow: hidden;
}
.phone-brand { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; justify-content: center; color: #6a7286; }
/* the outside of the lid: a strip of screen with the hour on it, a lens, the maker's name */
.phone-sub {
  position: absolute; left: 44px; top: 46px; width: 60px; height: 22px; box-sizing: border-box;
  border: 3px solid #1d2030; border-radius: 4px; background: var(--lcd-bar, #12287a); color: #dfe9ff;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  box-shadow: 0 0 0 1px #6a7286;
}
.phone-lens { position: absolute; left: 68px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #6f8fe0 0 14%, #1b2450 36%, #0a0c14 70%); border: 2px solid var(--line); box-sizing: border-box; box-shadow: 0 0 0 2px #b9c0cd; }
.phone-back-name { position: absolute; left: 0; right: 0; top: 84px; display: flex; justify-content: center; color: #7b8498; }
.phone-back-star { position: absolute; left: 68px; top: 116px; width: 16px; height: 16px; opacity: 0.55; }

/* --- the hinge ----------------------------------------------------------------------------------------- */
.phone-hinge {
  position: absolute; left: 7px; top: 183px; width: 138px; height: 17px; box-sizing: border-box;
  border: 2px solid var(--line); border-radius: 8px;
  background: linear-gradient(180deg, #7d8698 0, #dfe4ec 28%, #aab2c2 55%, #6c7486 100%);
}
.phone-hinge::before, .phone-hinge::after { content: ""; position: absolute; top: -2px; bottom: -2px; width: 16px; box-sizing: border-box; border: 2px solid var(--line); background: linear-gradient(180deg, #17727d, #3fc0cc 30%, #1f9aa8 60%, #105961); }
.phone-hinge::before { left: -2px; border-radius: 8px 3px 3px 8px; }
.phone-hinge::after { right: -2px; border-radius: 3px 8px 8px 3px; }

/* a charm on a strap: a sand dollar */
.phone-charm { position: absolute; left: -9px; top: 192px; width: 20px; height: 46px; pointer-events: none; transform-origin: 14px 2px; animation: charm-swing 2.6s ease-in-out infinite; }
.phone-charm::before { content: ""; position: absolute; left: 6px; top: 0; width: 9px; height: 26px; box-sizing: border-box; border: 2px solid var(--red, #d6342a); border-right: 0; border-radius: 9px 0 0 9px; }
.phone-charm::after { content: ""; position: absolute; left: 0; top: 24px; width: 18px; height: 18px; background: var(--sand-dollar) center / contain no-repeat; }
@keyframes charm-swing { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(-7deg); } }

/* --- the base and its keys ------------------------------------------------------------------------------ */
.phone-base {
  position: absolute; left: 0; top: 198px; width: 152px; height: 156px; box-sizing: border-box;
  border: 2px solid var(--line); border-radius: 7px 7px 22px 22px;
  background: linear-gradient(180deg, var(--shell-dark) 0, var(--shell) 9%, var(--shell) 74%, var(--shell-dark) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -4px 0 rgba(36, 21, 12, 0.18), inset 3px 0 0 rgba(255, 255, 255, 0.35), inset -3px 0 0 rgba(36, 21, 12, 0.1);
}
.phone-mic { position: absolute; left: 68px; bottom: 5px; width: 12px; height: 3px; border-radius: 2px; background: repeating-linear-gradient(90deg, #2a2e3a 0 2px, transparent 2px 4px); }
.phone-keys { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.phone-keys button {
  position: absolute; box-sizing: border-box; margin: 0; padding: 0;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  font: inherit; color: var(--line);
  background: var(--key);
  border: 1.5px solid var(--line); border-radius: 6px;
  box-shadow: 0 2px 0 rgba(36, 21, 12, 0.55), inset 0 1.5px 0 rgba(255, 255, 255, 0.9), inset 0 -2px 0 rgba(36, 21, 12, 0.12);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  touch-action: manipulation;
}
.phone-keys button:active, .phone-keys button.down { transform: translateY(1.5px); box-shadow: 0 0.5px 0 rgba(36, 21, 12, 0.55), inset 0 1.5px 0 rgba(255, 255, 255, 0.5); filter: brightness(0.93); }
.phone-keys button:focus { outline: none; }
.phone-keys .k-num { width: 40px; height: 19px; }
.phone-keys .k-num .tiny { color: #1f6f8a; }
/* the two keys under the screen's two words */
.phone-keys .k-soft { width: 36px; height: 12px; top: 7px; background: #c5ccd8; border-radius: 6px 6px 3px 3px; }
.phone-keys .k-soft::after { content: ""; width: 14px; height: 2px; border-radius: 1px; background: var(--line); opacity: 0.75; }
.phone-keys .k-soft.l { left: 9px; }
.phone-keys .k-soft.r { right: 9px; }
/* talk and hang up */
.phone-keys .k-call, .phone-keys .k-end { width: 36px; height: 17px; top: 27px; border-radius: 4px 4px 9px 9px; color: #fffaf0; }
.phone-keys .k-call { left: 9px; background: #2f9a58; }
.phone-keys .k-end { right: 9px; background: #d6342a; }
/* the ring: four ways and OK in the middle */
.phone-nav {
  position: absolute; left: 53px; top: 5px; width: 46px; height: 46px; box-sizing: border-box; border-radius: 50%;
  border: 1.5px solid var(--line);
  background: radial-gradient(circle at 50% 38%, #58d2de 0, #1f9aa8 58%, #14707a 100%);
  box-shadow: 0 2px 0 rgba(36, 21, 12, 0.55), inset 0 1.5px 0 rgba(255, 255, 255, 0.7);
}
.phone-keys .phone-nav button { background: transparent; border: 0; box-shadow: none; border-radius: 0; color: #fffaf0; }
.phone-keys .phone-nav button:active, .phone-keys .phone-nav button.down { transform: none; filter: none; background: rgba(255, 255, 255, 0.28); }
.phone-nav [data-key="up"] { left: 12px; top: 0; width: 20px; height: 13px; border-radius: 20px 20px 0 0; }
.phone-nav [data-key="down"] { left: 12px; bottom: 0; width: 20px; height: 13px; border-radius: 0 0 20px 20px; }
.phone-nav [data-key="left"] { left: 0; top: 12px; width: 13px; height: 20px; border-radius: 20px 0 0 20px; }
.phone-nav [data-key="right"] { right: 0; top: 12px; width: 13px; height: 20px; border-radius: 0 20px 20px 0; }
.phone-nav button::before { content: ""; width: 0; height: 0; border: 3px solid transparent; }
.phone-nav [data-key="up"]::before { border-bottom-color: #fffaf0; margin-top: -4px; }
.phone-nav [data-key="down"]::before { border-top-color: #fffaf0; margin-bottom: -4px; }
.phone-nav [data-key="left"]::before { border-right-color: #fffaf0; margin-left: -4px; }
.phone-nav [data-key="right"]::before { border-left-color: #fffaf0; margin-right: -4px; }
.phone-keys .phone-nav [data-key="ok"]::before { display: none; }
.phone-keys .phone-nav [data-key="ok"] {
  left: 12px; top: 12px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--key); color: var(--line); border: 1.5px solid var(--line);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.9), inset 0 -2px 0 rgba(36, 21, 12, 0.14);
}
.phone-keys .phone-nav [data-key="ok"]:active, .phone-keys .phone-nav [data-key="ok"].down { background: #e2dccb; }

/* --- dots ------------------------------------------------------------------------------------------------- */
.px { display: inline-block; position: relative; vertical-align: top; line-height: 0; flex: none; }
.px svg { display: block; }
.px-said { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.phone canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; image-rendering: pixelated; }

/* --- the little screen (128 by 144 dots) -------------------------------------------------------------------- */
.lcd {
  position: relative; width: 128px; height: 144px; overflow: hidden;
  --ink: #101840; --dim: #52608c; --paper: #f2f6ea; --bar: #12287a; --bar2: #2a58c4; --pick: #ffb428; --pick2: #ffd86a;
  background: var(--paper); color: var(--ink);
  -webkit-user-select: none; user-select: none;
}
/* two colors in a checker: the handset's way of making a third */
.lcd-bar, .lcd-soft { background: var(--bar); color: #fff; }
.lcd-bar { height: 9px; display: flex; align-items: center; gap: 3px; padding: 0 2px; box-sizing: border-box; }
.lcd-bar .gap { flex: 1 1 auto; }
.lcd-bar [hidden] { display: none; }
.lcd-title {
  height: 11px; display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden;
  background-color: var(--bar2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='11' shape-rendering='crispEdges'%3E%3Crect width='2' height='3' fill='%2312287a'/%3E%3Crect y='3' width='1' height='1' fill='%2312287a'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%2312287a'/%3E%3Crect y='5' width='1' height='1' fill='%2312287a'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%235a8cf0'/%3E%3Crect y='9' width='1' height='1' fill='%235a8cf0'/%3E%3Crect y='10' width='2' height='1' fill='%235a8cf0'/%3E%3C/svg%3E");
  background-size: 2px 11px;
}
.lcd-body {
  position: relative; height: 113px; box-sizing: border-box; padding: 2px 3px;
  overflow-x: hidden; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none;
  overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch;
}
.lcd-body::-webkit-scrollbar { display: none; }
.lcd-body > * { flex: none; }
.lcd-soft { position: absolute; left: 0; right: 0; bottom: 0; height: 11px; display: flex; align-items: center; justify-content: space-between; }
.lcd-soft button {
  position: relative; -webkit-appearance: none; appearance: none; margin: 0; padding: 0 3px; border: 0; background: none; color: #fff; cursor: pointer;
  height: 11px; min-width: 44px; display: flex; align-items: center; font: inherit;
}
.lcd-soft button:last-child { justify-content: flex-end; }
/* a finger needs more than eleven dots: each word answers from the lid's chin as well */
.lcd-soft button::after { content: ""; position: absolute; left: -2px; right: -2px; top: -7px; bottom: -4px; }
.lcd-soft button[disabled] { visibility: hidden; }
.lcd-soft button:active { color: var(--pick2); }
.lcd-soft .ok { color: #9db4ff; }
/* how far down the page is */
.lcd-scroll { position: absolute; right: 0; top: 20px; width: 2px; height: 113px; background: rgba(16, 24, 64, 0.12); pointer-events: none; }
.lcd-scroll[hidden] { display: none; }
.lcd-scroll i { position: absolute; left: 0; width: 2px; background: var(--ink); }
/* the glass: a faint grid of dots, and a shine across the corner */
.lcd-glass {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.05) 22%, rgba(255, 255, 255, 0) 22.5%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='1'%3E%3Cpath d='M0 .86h1v.14h-1zM.86 0h.14v1h-.14z' fill='%23000' opacity='.13'/%3E%3C/svg%3E") 0 0 / 1px 1px;
}
/* the camera's flash, and the screen going dark as the lid shuts */
.lcd-flash { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; background: #fff; opacity: 0; }
.lcd-flash.go { animation: lcd-flash 0.5s ease-out; }
@keyframes lcd-flash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* rows of a list: a name, something beside it, a line under them */
.lcd-row, .lcd-btn, .lcd-app {
  -webkit-appearance: none; appearance: none; margin: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
  text-align: left; box-sizing: border-box;
}
.lcd-row { display: block; width: 122px; min-height: 22px; padding: 1px 2px 0; border-bottom: 1px dotted rgba(16, 24, 64, 0.35); position: relative; }
.lcd-row .lcd-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 3px; height: 10px; }
.lcd-row .lcd-line, .lcd-row .lcd-sub { display: flex; justify-content: space-between; align-items: flex-start; color: var(--dim); height: 10px; }
.lcd-row .lcd-tag { display: block; color: var(--red, #d6342a); height: 10px; }
.lcd-row.new .lcd-top { color: var(--bar); }
.lcd-row.sel, .lcd-btn.sel { background-color: var(--pick); background-image: linear-gradient(180deg, var(--pick2) 0 3px, transparent 3px); color: var(--ink); }
.lcd-row.sel .lcd-line, .lcd-row.sel .lcd-sub { color: #5a3a10; }
.lcd-row:focus, .lcd-btn:focus, .lcd-app:focus, .lcd-soft button:focus { outline: none; }
/* a meter: eight cells */
.lcd-meter { display: inline-flex; gap: 1px; height: 7px; margin-top: 2px; }
.lcd-meter i { width: 3px; height: 7px; box-sizing: border-box; border: 1px solid var(--ink); }
.lcd-meter i.on { background: var(--ink); }
.lcd-row.sel .lcd-meter i { border-color: var(--ink); }
.lcd-p { display: block; margin: 2px 0 3px; }
.lcd-p.dim, .lcd-small { color: var(--dim); }
.lcd-h { display: block; margin: 5px 0 2px; padding: 0 1px 1px; border-bottom: 1px solid var(--ink); color: var(--bar); }
.lcd-btn {
  display: flex; align-items: center; justify-content: center; width: 122px; min-height: 22px; margin: 2px 0; padding: 0 3px;
  border: 1px solid var(--ink); background: #fff; box-shadow: 1px 1px 0 var(--ink);
}
.lcd-btn.quiet { background: var(--paper); }
.lcd-btn.warn { color: #a01c14; border-color: #a01c14; box-shadow: 1px 1px 0 #a01c14; }
.lcd-btn:disabled { opacity: 0.5; }
.lcd-btn:active { transform: translate(1px, 1px); box-shadow: none; }
.lcd-pair { display: flex; gap: 3px; }
.lcd-pair .lcd-btn { width: auto; flex: 1 1 0; }

/* the menu: five icons on the flag, three over two, the two centred under the gaps between the three
   (the number keys pick them in reading order; phone.js moves the ring's highlight between the rows) */
.lcd-body.lcd-menu { padding: 0; overflow: hidden; }
.lcd-wall { position: absolute; left: 0; top: 0; width: 128px; height: 113px; }
.lcd-apps { position: absolute; left: 1px; top: 1px; width: 126px; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 1px; }
.lcd-app { position: relative; flex: none; width: 42px; height: 31px; padding: 1px 0 0; display: flex; flex-direction: column; align-items: center; gap: 0; color: var(--ink); }
.lcd-app canvas { width: 24px; height: 24px; }
.lcd-app.sel { background: none; }
.lcd-app.sel::before { content: ""; position: absolute; left: 1px; top: 0; width: 40px; height: 31px; box-sizing: border-box; border: 1px solid var(--ink); background: var(--pick); background-image: linear-gradient(180deg, var(--pick2) 0 5px, transparent 5px); box-shadow: 1px 1px 0 rgba(16, 24, 64, 0.5); }
.lcd-app.sel canvas { position: relative; animation: app-hop 0.6s steps(2) infinite; }
.lcd-app canvas, .lcd-app .px { position: relative; }
@keyframes app-hop { 50% { transform: translateY(-1px); } }
.lcd-badge { position: absolute; right: 3px; top: 0; min-width: 9px; height: 9px; box-sizing: border-box; padding: 2px 2px 0; background: var(--red, #d6342a); color: #fff; border: 1px solid var(--ink); display: flex; justify-content: center; }

/* a thread of texts */
.lcd-thread { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding-bottom: 2px; }
.lcd-bub { position: relative; max-width: 112px; box-sizing: border-box; padding: 2px 3px 1px; background: #fff; border: 1px solid var(--ink); box-shadow: 1px 1px 0 rgba(16, 24, 64, 0.4); }
.lcd-bub.new { border-color: var(--bar2); box-shadow: 1px 1px 0 var(--bar2); }
.lcd-bub .stamp { display: block; color: var(--dim); margin-top: 1px; }
.lcd-bub.back { background: #e4ecff; }
.lcd-did { align-self: center; color: var(--dim); }
.lcd-offer { align-self: stretch; box-sizing: border-box; padding: 2px 3px 1px; border: 1px dashed var(--ink); background: #fff8d8; }
.lcd-offer .pays { display: flex; align-items: center; gap: 2px; color: #6a4a10; margin: 1px 0; }
.lcd-offer .lcd-btn { min-height: 22px; margin: 2px 0 1px; }
/* what was said, in a contact */
.lcd-log { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.lcd-log .me { align-self: flex-end; color: #1c5a34; }
.lcd-log .day { align-self: center; color: var(--dim); }
.lcd-between { display: block; margin: 2px 0; color: var(--dim); }

/* the map */
.lcd-body.lcd-map { padding: 0; }
.lcd-block { width: 128px; }
.lcd-isle { width: 128px; display: block; }
.lcd-where { display: block; padding: 2px 3px 0; text-align: center; }
.lcd-vibe { padding: 0 3px; }
.lcd-band { display: flex; align-items: center; gap: 3px; margin: 0; }
.lcd-band b, .lcd-band span { display: inline-flex; }
.lcd-ramp { display: inline-flex; margin-left: auto; border: 1px solid var(--ink); }
.lcd-ramp i { width: 7px; height: 5px; }
.lcd-ramp i.on { outline: 1px solid var(--ink); outline-offset: 1px; position: relative; z-index: 1; }
.lcd-next, .lcd-key { display: block; color: var(--dim); margin: 1px 0; }
.lcd-part { display: flex; align-items: center; gap: 3px; height: 8px; }
.lcd-part > .px:first-child { width: 46px; }
.lcd-gauge { flex: 1 1 auto; height: 5px; box-sizing: border-box; border: 1px solid var(--ink); background: #fff; }
.lcd-gauge i { display: block; height: 100%; background-color: var(--bar2); }

/* the camera */
.lcd-body.lcd-camera { padding: 0; overflow: hidden; background: #0a0c14; }
.lcd-view { width: 128px; height: 96px; }
.lcd-finder { position: absolute; left: 0; top: 0; width: 128px; height: 96px; pointer-events: none; }
.lcd-finder::before, .lcd-finder::after { content: ""; position: absolute; width: 10px; height: 10px; box-sizing: border-box; border: 1px solid #fff; }
.lcd-finder::before { left: 4px; top: 4px; border-right: 0; border-bottom: 0; }
.lcd-finder::after { right: 4px; bottom: 4px; border-left: 0; border-top: 0; }
.lcd-cam-foot { position: absolute; left: 0; right: 0; top: 96px; height: 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #dfe9ff; }
.lcd-cam-foot.saved { color: var(--pick2); }

/* settings: a row and its switch */
.lcd-set { display: flex; align-items: center; justify-content: space-between; width: 118px; }
.lcd-set .lcd-top { height: auto; }
.lcd-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 11px; padding: 0 2px; box-sizing: border-box; border: 1px solid var(--ink); background: #fff; color: var(--dim); }
.lcd-switch.on { background: var(--green, #2f7d4f); color: #fff; }
.lcd-note { display: block; color: #a01c14; margin: 0 0 2px 2px; }

/* the island, in Settings: its code, and a box to type one into */
.lcd-code { display: flex; justify-content: center; margin: 2px 0; padding: 3px 0 1px; border: 1px solid var(--ink); background: #fff; }
.lcd-entry { position: relative; display: flex; align-items: center; width: 122px; height: 15px; box-sizing: border-box; margin: 2px 0; padding: 0 3px; border: 1px solid var(--ink); background: #fff; overflow: hidden; }
.lcd-entry.sel { background: #fff8d8; outline: 1px solid var(--pick); }
.lcd-entry .hint { color: #9aa3b4; }
.lcd-entry .caret { width: 1px; height: 9px; margin-left: 1px; background: var(--ink); animation: text-blink 1s steps(2) infinite; visibility: hidden; }
.lcd-entry:focus-within .caret { visibility: visible; }
/* the box itself: a real one, laid over the dots so a phone's keyboard comes up, drawn at the page's own
   size (sixteen pixels, or a phone zooms the page) and shrunk back by the phone's scale */
.lcd-input {
  position: absolute; left: 0; top: 0; width: calc(122px * var(--k, 2)); height: calc(15px * var(--k, 2));
  transform-origin: 0 0; transform: scale(calc(1 / var(--k, 2)));
  margin: 0; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent;
  font: 16px var(--mono, monospace); outline: none; opacity: 0.01;
}
.lcd-msg { display: block; color: #a01c14; min-height: 2px; margin: 1px 0; }

/* --- held close: on a window too short for the whole phone the lid fills it and the keys run off the bottom --- */
.phone.close .phone-charm { display: none; }

@media (prefers-reduced-motion: reduce) {
  .phone-body, .phone-lid, .phone.shut .phone-lid, .phone-ant { transition: none; }
  .phone-charm, .lcd-app.sel canvas { animation: none; }
}
