/* ═══ MO, rebuilt for the web from the app's own numbers (MO/mo-native: app/index.tsx, components/BottomNav.tsx,
   components/AccountDrawer.tsx, components/InnerShadowShape.tsx, theme/tokens.ts). The screen is laid out at the
   iPhone's 414 x 896 points and scaled to whatever box it is given. Nothing here is eyeballed. ═══ */
.mo{ --bg:#D5D1B4; --ink:#F76702; /* theme "moishe", swapped: background and ink trade places */
  --top:44px; /* the phone's status bar height, so the pill sits where it sits on the phone */
  --bottom:34px; /* the phone's home indicator inset */
  position:relative; width:100%; aspect-ratio:414/896; overflow:hidden; background:var(--bg); border-radius:34px; /* the frame is 44 with 10 of padding: inner = outer minus padding */
  font-family:'Inter',system-ui,sans-serif; font-weight:300; color:var(--ink); -webkit-font-smoothing:antialiased; user-select:none; }
.mo__screen{ position:absolute; left:0; top:0; width:414px; height:896px; transform-origin:0 0; transform:scale(var(--k,1)); }

/* the name pill: InnerShadowShape 92 x 41, rx 20.5, shadow 10 10 blur 10 at .25; Inter light 14 */
.mo__top{ position:absolute; left:0; right:0; top:0; padding-top:calc(var(--top) + 24px); display:flex; justify-content:center; pointer-events:none; }
.mo__pill{ position:relative; width:92px; height:41px; display:grid; place-items:center; font-size:14px; line-height:1; color:var(--bg); }
.mo__pill svg,.mo__nav svg{ position:absolute; inset:0; overflow:visible; }
.mo__pill span{ position:relative; }

/* the list: 80pt rows, the focused row lifted 64pt above dead centre, snapping to a row */
.mo__list{ position:absolute; left:0; right:0; top:0; bottom:0; overflow-y:scroll; overflow-x:hidden; scroll-snap-type:y mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; }
.mo__list::-webkit-scrollbar{ display:none; }
.mo__pad{ height:calc(50% - 40px - 64px); }       /* basePad - LIST_RAISE */
.mo__pad--end{ height:calc(50% - 40px + 64px); }  /* basePad + LIST_RAISE */
.mo__item{ height:80px; display:flex; align-items:center; justify-content:center; scroll-snap-align:center; }
.mo__item span{ display:block; font-size:48px; line-height:1; white-space:nowrap; transform-origin:50% 50%; will-change:transform,opacity; }

/* the two buttons: square 74 x 74 rx 13, circle 76 x 74 rx 37, 14 apart, shadow 10 10 blur 5 at .25 */
.mo__nav{ position:absolute; left:0; right:0; bottom:0; display:flex; justify-content:center; align-items:center; gap:14px; padding:8px 0 calc(max(var(--bottom),16px) + 8px); pointer-events:none; }
.mo__btn{ position:relative; pointer-events:auto; cursor:pointer; -webkit-tap-highlight-color:transparent; appearance:none; background:none; border:0; padding:0; margin:0; font:inherit; color:inherit; }
.mo__btn:active{ opacity:.7; }
.mo__btn--square{ width:74px; height:74px; }
.mo__btn--circle{ width:76px; height:74px; }

/* the other two screens: a canvas each, the app's own 414 x 896 */
.mo__home,.mo__space,.mo__profile{ position:absolute; inset:0; }
.mo__space[hidden],.mo__profile[hidden]{ display:none; }
.mo__canvas{ position:absolute; left:0; top:0; width:414px; height:896px; display:block; touch-action:none; cursor:grab; }
.mo__canvas:active{ cursor:grabbing; }
/* the app's hint line under the sculpture: Inter light, small, quiet */
.mo__hint{ position:absolute; left:0; right:0; bottom:calc(max(var(--bottom),16px) + 8px + 74px + 8px + 20px); text-align:center; font-size:13px; opacity:.5; pointer-events:none; }
/* the pill is a button now */
.mo__pill{ pointer-events:auto; cursor:pointer; appearance:none; background:none; border:0; padding:0; margin:0; font:inherit; -webkit-tap-highlight-color:transparent; }
.mo__pill:active{ opacity:.7; }

/* the entry, open in place: the word has risen, the box has grown up behind it (app/index.tsx EntryView) */
.mo__entry{ position:absolute; inset:0; }
.mo__entry[hidden]{ display:none; }
.mo__backdrop{ position:absolute; inset:0; }
.mo__box{ position:absolute; transform-origin:50% 50%; will-change:transform,opacity; }
.mo__box svg{ position:absolute; inset:0; overflow:visible; }
.mo__boxText{ position:relative; width:100%; height:100%; box-sizing:border-box; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:none; color:var(--bg); font-size:18px; line-height:26px; white-space:pre-wrap; word-break:break-word;
  -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%); mask-image:linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%); }
.mo__boxText::-webkit-scrollbar{ display:none; }
.mo__link{ color:inherit; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
.mo__item span{ will-change:transform,opacity; }

/* the space picker: three 280 circles, the middle one centred, and the portal that inflates from the tapped one */
.mo__picker{ position:absolute; inset:0; touch-action:none; cursor:grab; }
.mo__picker[hidden]{ display:none; }
.mo__circle{ position:absolute; display:grid; place-items:center; will-change:transform; pointer-events:none; }
.mo__circle svg{ position:absolute; inset:0; overflow:visible; }
.mo__circle span{ position:relative; color:var(--bg); line-height:1; }
.mo__portal{ position:absolute; border-radius:50%; background:var(--ink); pointer-events:none; z-index:5; }
.mo__portal[hidden]{ display:none; }
