/* OnlyCalls app shell. Tokens 1:1 with the approved sketch (day + night). */
@font-face { font-family: Rubik; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/rubik-hebrew.woff2) format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Rubik; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/rubik-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: Rubik; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/rubik-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Rubik; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/rubik-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Rubik; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/rubik-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Sizes follow the screen height so every screen fits without scrolling, from small phones up (O 08.11).
     At 844px tall they match the sketch; they shrink on shorter screens and stop at a usable minimum. */
  --pad-top: clamp(14px, calc(12dvh - 45px), 56px); --pad-bottom: clamp(12px, calc(6dvh - 18px), 32px);
  --h1-top: clamp(16px, calc(10dvh - 36px), 48px); --hero-top: clamp(16px, calc(28dvh - 116px), 120px);
  --wheel: clamp(144px, calc(26dvh + 1px), 220px); --avatar-top: clamp(10px, calc(8dvh - 28px), 40px);
  --avatar: clamp(60px, calc(12dvh - 5px), 96px); --label-top: clamp(12px, calc(5dvh - 14px), 28px);
  --bio-h: clamp(76px, calc(10dvh + 20px), 104px); --ages-top: clamp(20px, calc(16dvh - 63px), 72px);
  --range-top: clamp(16px, calc(10dvh - 36px), 48px); --rings-top: clamp(16px, calc(16dvh - 55px), 80px);
  --ring: clamp(170px, calc(24dvh + 37px), 240px); --title-top: clamp(16px, calc(9dvh - 32px), 44px);
  --s-bottom: clamp(8px, calc(6dvh - 26px), 24px); --gap: clamp(6px, calc(2.7dvh - 9px), 14px);
  --row: clamp(36px, calc(6dvh + 3px), 54px); --sw-row: clamp(36px, calc(5.4dvh + 6px), 52px);
  --bar: clamp(36px, calc(2.7dvh + 21px), 44px); --card-pad: clamp(6px, calc(3.4dvh - 13px), 16px);
  --me-avatar: clamp(36px, calc(6.8dvh - 1px), 56px); --seg: clamp(36px, calc(4dvh + 14px), 48px);
  /* Warm and native (O 08.11, sketch 2). The call's color pair (--a, --b, set per call by app.js) is the same by day
     and by night; only the screen behind it darkens. Green answers, red skips and hangs up, always. */
  --a: #FF5A36; --b: #FFB13B; --on: #FFFFFF; --al: #FF9F8A; --ad: #B33F26; --bl: #FFD49B; --bd: #B37C29;
  --bg-base: #FFFDFB; --tint: 9%; --bg: color-mix(in oklab, var(--a) var(--tint), var(--bg-base));
  --card: #FFFFFF; --ink: #26150F; --mute: #7C645B; --faint: #B49C92; --line: #EADFD9; --hair: rgba(38, 21, 15, .09);
  --go: #12B76A; --no: #F04438; --end: var(--no);
  --pri: var(--a); --on-pri: var(--on); --pri-soft: color-mix(in oklab, var(--a) 14%, var(--card));
  --blue: var(--ad); --on-blue: #FFFFFF; --blue-soft: color-mix(in oklab, var(--b) 20%, var(--card));
  --sil: color-mix(in oklab, var(--a) 55%, var(--card)); --sil-bg: color-mix(in oklab, var(--a) 13%, var(--card));
  --sh: 0 14px 34px -16px rgba(80, 30, 10, .35); --scrim: rgba(38, 21, 15, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="day"]) {
    --bg-base: #140E0C; --tint: 15%; --card: #241A17; --ink: #FBEFE9; --mute: #C6ACA2; --faint: #7A625A; --line: #3A2C28; --hair: rgba(255, 240, 230, .09);
    --go: #2FD08A; --no: #FF6257; --blue: var(--al); --on-blue: #26150F; --sh: 0 14px 34px -16px rgba(0, 0, 0, .7); --scrim: rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="night"] {
  --bg-base: #140E0C; --tint: 15%; --card: #241A17; --ink: #FBEFE9; --mute: #C6ACA2; --faint: #7A625A; --line: #3A2C28; --hair: rgba(255, 240, 230, .09);
  --go: #2FD08A; --no: #FF6257; --blue: var(--al); --on-blue: #26150F; --sh: 0 14px 34px -16px rgba(0, 0, 0, .7); --scrim: rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* No zoom anywhere, like a native app (O 08.11): pan-x pan-y leaves out both pinch-zoom and double-tap zoom.
   iPhone Safari ignores the viewport's user-scalable, so app.js also cancels its pinch gesture. */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: pan-x pan-y; }
/* The page itself never scrolls (no pull-to-refresh, no rubber band); only #app scrolls inside it. */
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: var(--bg); color: var(--ink); font-family: Rubik, system-ui, sans-serif; position: fixed; inset: 0; transition: background .6s; }
button, input, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { max-width: 430px; margin: 0 auto; height: 100%; position: relative; z-index: 1; container-type: inline-size; overflow-x: hidden; overflow-y: auto; overscroll-behavior: none; }
.screen {
  min-height: 100%; display: flex; flex-direction: column; position: relative;
  padding: max(var(--pad-top), env(safe-area-inset-top)) 24px max(var(--pad-bottom), env(safe-area-inset-bottom));
  animation: in 260ms cubic-bezier(.2, .8, .2, 1);
}
@keyframes in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen, .sheet, .toast { animation: none !important; } }
.grow { flex: 1; }

/* Wizard progress dots */
.dots { display: flex; gap: 6px; justify-content: center; position: relative; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width 200ms, background 200ms; }
.dots i.done { background: var(--sil); }
.dots i.on { width: 28px; background: var(--pri); }

h1 { margin: var(--h1-top) 0 0; font-size: 30px; line-height: 1.2; font-weight: 700; }
.primary {
  position: relative; height: clamp(50px, calc(4dvh + 26px), 60px); flex-shrink: 0; border: 0; border-radius: 30px; background: var(--pri); color: var(--on-pri);
  font-size: 19px; font-weight: 700; width: 100%; transition: transform 120ms, opacity 150ms;
}
.primary:active { transform: scale(.98); }
.primary:disabled { opacity: .45; cursor: default; }
.foot { position: relative; margin-top: 14px; font-size: 13px; color: var(--mute); text-align: center; }
.foot.bad { color: var(--end); font-weight: 500; }

/* Welcome / year */
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob.a { top: -110px; inset-inline-end: -90px; width: 300px; height: 300px; background: var(--pri-soft); }
.blob.b { top: 30px; inset-inline-end: 60px; width: 110px; height: 110px; background: var(--blue-soft); }
.hero { position: relative; margin-top: var(--hero-top); }
.brand { font-size: 16px; font-weight: 700; color: var(--blue); }
.hero h1 { margin: 8px 0 0; font-size: 34px; line-height: 1.15; white-space: pre-line; }
.hero p { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: var(--mute); }
.wheel {
  position: relative; margin-top: 24px; height: var(--wheel); flex-shrink: 0; border-radius: 28px; background: var(--card); box-shadow: var(--sh); overflow: hidden;
}
.wheel::before { content: ""; position: absolute; top: calc((var(--wheel) - 48px) / 2); left: 16px; right: 16px; height: 48px; border-radius: 14px; background: var(--pri-soft); pointer-events: none; }
.wheel-list {
  position: relative; height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none;
  padding: calc((var(--wheel) - 48px) / 2) 0; margin: 0; list-style: none; outline: none;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.wheel-list::-webkit-scrollbar { display: none; }
.wheel-list li { height: 48px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; font-size: 22px; color: var(--mute); transition: font-size 120ms, color 120ms; font-variant-numeric: tabular-nums; }
.wheel-list li.sel { font-size: 30px; font-weight: 700; color: var(--ink); }
.wheel:has(.wheel-list:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.wheel-list:focus-visible { outline: none; }

/* Language chips */
.chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  height: 48px; padding: 0 20px; border-radius: 24px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 17px; display: inline-flex; align-items: center; gap: 8px; transition: background 150ms, color 150ms;
}
.chip[aria-pressed="true"] { border-color: var(--pri); background: var(--pri); color: var(--on-pri); font-weight: 500; }
.chip.add { width: 48px; padding: 0; justify-content: center; border: 1.5px dashed var(--sil); background: transparent; color: var(--blue); font-size: 22px; }

/* Nickname + bio */
.avatar { margin-top: var(--avatar-top); display: flex; justify-content: center; }
.sil { width: var(--avatar); height: var(--avatar); border-radius: 50%; background: var(--sil-bg); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.sil svg { fill: var(--sil); width: 77%; height: auto; }
label.f { margin-top: var(--label-top); font-size: 15px; font-weight: 500; color: var(--mute); }
label.f + * { margin-top: 8px; }
.input {
  height: clamp(48px, calc(2dvh + 39px), 56px); border-radius: 18px; border: 1.5px solid var(--line); background: var(--card); padding: 0 18px; font-size: 18px; width: 100%;
}
textarea.input { height: var(--bio-h); padding: 14px 18px; font-size: 17px; line-height: 1.45; resize: none; }
.input:focus { border-color: var(--pri); outline: none; }
.input[aria-invalid="true"] { border-color: var(--end); }
.count { margin-top: 6px; font-size: 13px; color: var(--blue); font-weight: 500; text-align: end; font-variant-numeric: tabular-nums; }
.count.bad, .err { color: var(--end); }
.err { margin-top: 6px; font-size: 13px; font-weight: 500; }

/* Age range */
.ages { margin-top: var(--ages-top); display: flex; justify-content: center; align-items: baseline; gap: 12px; direction: ltr; font-variant-numeric: tabular-nums; }
.ages b { font-size: 60px; font-weight: 700; }
.ages b:first-child { color: var(--pri); }
.ages b:last-child { color: var(--blue); }
.ages span { font-size: 28px; color: var(--faint); }
.range { margin-top: var(--range-top); position: relative; height: 44px; direction: ltr; }
.range .track, .range .fill { position: absolute; top: 19px; height: 6px; border-radius: 3px; }
.range .track { left: 0; right: 0; background: var(--line); }
.range .fill { background: var(--pri); }
.range input {
  position: absolute; inset: 0; width: 100%; height: 44px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.range input::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--card); border: 3px solid var(--pri); box-sizing: border-box; cursor: grab;
}
.range input::-moz-range-thumb { pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--card); border: 3px solid var(--pri); box-sizing: border-box; cursor: grab; }
.range input.max::-webkit-slider-thumb { border-color: var(--blue); }
.range input.max::-moz-range-thumb { border-color: var(--blue); }
.range input::-webkit-slider-runnable-track { background: none; }
.range input::-moz-range-track { background: none; }
.range-ends { display: flex; justify-content: space-between; direction: ltr; font-size: 13px; color: var(--mute); margin-top: 4px; }

/* Permissions */
.perm { margin-top: 14px; border-radius: 24px; background: var(--card); padding: 20px; display: flex; gap: 16px; align-items: center; box-shadow: var(--sh); }
.perm:first-of-type { margin-top: var(--label-top); }
.perm .ic { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.perm .ic.g { background: var(--pri-soft); color: var(--pri); }
.perm .ic.b { background: var(--blue-soft); color: var(--blue); }
.perm .tx { flex: 1; min-width: 0; }
.perm .tt { font-size: 18px; font-weight: 700; }
.perm .st { margin-top: 2px; font-size: 14px; color: var(--mute); }
.perm .st.bad { color: var(--end); }
.perm .ok { width: 36px; height: 36px; border-radius: 18px; background: var(--pri); color: var(--on-pri); display: flex; align-items: center; justify-content: center; }
.perm .ask { height: 40px; padding: 0 18px; border-radius: 20px; border: 0; background: var(--blue); color: var(--on-blue); font-size: 15px; font-weight: 500; }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--mute); margin-bottom: 14px; }

/* Home */
.round { width: 48px; height: 48px; border-radius: 24px; border: 0; background: var(--card); display: flex; align-items: center; justify-content: center; color: var(--ink); box-shadow: var(--sh); }

/* Settings */
.screen.settings { padding: max(var(--pad-top), env(safe-area-inset-top)) 20px max(var(--s-bottom), env(safe-area-inset-bottom)); gap: var(--gap);
  /* Slightly tighter rows than elsewhere so the app-language row and the log-out button still fit with no scrolling. */
  --row: clamp(32px, calc(5.6dvh + 1px), 50px); --sw-row: clamp(32px, calc(5.4dvh + 1px), 50px); --gap: clamp(4px, calc(2.7dvh - 10px), 14px); }
.bar { display: flex; align-items: center; gap: 12px; }
.bar h1 { margin: 0; font-size: clamp(22px, calc(2dvh + 9px), 26px); }
.bar .round { width: var(--bar); height: var(--bar); box-shadow: none; }
[dir="ltr"] .flip { transform: scaleX(-1); }
.me { border: 0; width: 100%; text-align: start; border-radius: 26px; background: var(--pri); color: var(--on-pri); padding: var(--card-pad) 18px; display: flex; gap: 14px; align-items: center; }
.me .sil { width: var(--me-avatar); height: var(--me-avatar); background: var(--on-pri); flex-shrink: 0; }
.me .sil svg { fill: var(--pri); width: 75%; height: auto; }
.me .nm { font-size: 19px; font-weight: 700; }
.me .sub { font-size: 14px; margin-top: 4px; }
.group { border-radius: 22px; background: var(--card); overflow: hidden; }
.row {
  width: 100%; min-height: var(--row); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px;
  border: 0; background: none; font-size: 16px; text-align: start;
}
.group > .row + .row { border-top: 1px solid var(--line); }
.row[role="switch"] { min-height: var(--sw-row); }
.row .v { font-size: 15px; color: var(--mute); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.row .k { flex-shrink: 0; }
.switch { width: 50px; height: 30px; border-radius: 15px; background: var(--line); position: relative; flex-shrink: 0; transition: background 160ms; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 12px; background: #FFFFFF; transition: inset-inline-start 160ms; }
[aria-checked="true"] .switch { background: var(--pri); }
[aria-checked="true"] .switch::after { inset-inline-start: 23px; }
.seg { height: var(--seg); flex-shrink: 0; border-radius: 24px; background: var(--card); padding: 4px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.seg button { border: 0; border-radius: 20px; background: transparent; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button[aria-checked="true"] { background: var(--blue); color: var(--on-blue); font-weight: 500; }
.logout { height: var(--row); flex-shrink: 0; width: 100%; border: 0; border-radius: 22px; background: var(--card); color: var(--end); font-size: 16px; font-weight: 700; }
.logout:active { opacity: .7; }
.row[role="radio"] svg { color: var(--pri); flex-shrink: 0; }
.row[role="radio"][aria-checked="true"] .k { font-weight: 700; }

/* Sheet + dialog */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 10; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 430px; max-height: 88dvh; overflow: auto; background: var(--bg); border-radius: 28px 28px 0 0;
  padding: 20px 20px max(24px, env(safe-area-inset-bottom)); animation: up 240ms cubic-bezier(.2, .8, .2, 1);
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet h2 { margin: 0 0 16px; font-size: 22px; }
.sheet .grab { position: relative; height: 28px; margin: -12px -20px 8px; }
.sheet .grab::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 5px; border-radius: 3px; background: var(--line); transform: translate(-50%, -50%); }
.sheet .grab, .sheet h2 { touch-action: none; cursor: grab; user-select: none; }
.wheel-list { touch-action: pan-y; }
.range input { touch-action: none; }
.sheet .actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet .actions button { flex: 1; height: 54px; border-radius: 27px; border: 0; font-size: 17px; font-weight: 700; }
.sheet .ghost { background: var(--card); color: var(--ink); }
.sheet .go { background: var(--pri); color: var(--on-pri); }
.sheet .red { background: var(--end); color: #FFFFFF; }
.steps { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; }
.steps li::marker { color: var(--pri); font-weight: 700; }
.sheet p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--mute); }
.sheet .chips { margin-top: 0; }
.sheet .range { margin-top: 24px; }
.sheet .ages { margin-top: 8px; }
.sheet .ages b { font-size: 44px; }

/* State cards (offline, suspended, under 18, blocked permission) */
.state { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.state .ic { width: 72px; height: 72px; border-radius: 24px; background: var(--card); box-shadow: var(--sh); display: flex; align-items: center; justify-content: center; color: var(--mute); }
.state .tt { font-size: 22px; font-weight: 700; }
.state .st { font-size: 15px; color: var(--mute); }

.sheet .lead { margin-bottom: 14px; color: var(--ink); }

/* Keyboard open (set by app.js from visualViewport): the page and any sheet end at the keyboard's top edge,
   so the field being typed in stays visible. The top of the screen never moves. */
html[data-kb] body, html[data-kb] .scrim { top: var(--vv-top, 0px); bottom: auto; height: var(--vh, 100%); }
html[data-kb] .sheet { max-height: calc(var(--vh, 100dvh) - 12px); padding-bottom: 16px; }
html[data-kb] .toast { bottom: calc(var(--kb-b, 0px) + 16px); }

.toast {
  position: fixed; left: 50%; bottom: max(110px, calc(env(safe-area-inset-bottom) + 96px)); transform: translateX(-50%); z-index: 20;
  max-width: min(380px, calc(100vw - 32px)); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 18px;
  font-size: 15px; text-align: center; animation: pop 200ms ease-out; box-shadow: var(--sh);
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.sheet .group + .group { margin-top: 12px; }
.ksafe { display: inline-flex; align-items: center; gap: 10px; }
.ksafe svg { color: var(--pri); }
.policy p { margin: 0 0 12px; color: var(--ink); }
.policy a { color: var(--pri); font-weight: 600; white-space: nowrap; }
.credit { margin: calc(2px - var(--gap)) 0 0; text-align: center; font-size: 11px; line-height: 14px; color: var(--faint); flex-shrink: 0; }
.credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; unicode-bidi: isolate; }

/* ---------- the waiting film, 1:1 with sketch v4 (O 08.11) ----------
   One unit (u) is a hundredth of the sketch's screen width. It follows the width of the screen, and on a shorter
   screen the height (the sketch's screen is 100 x 211 units), so every film screen keeps the sketch's proportions. */
.amb { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.amb i { position: absolute; width: 120vmax; height: 120vmax; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--a) 22%, transparent), transparent); top: -30vmax; left: -50vmax; animation: drift 16s ease-in-out infinite alternate; }
.amb i + i { background: radial-gradient(closest-side, color-mix(in oklab, var(--b) 24%, transparent), transparent); top: auto; bottom: -40vmax; left: auto; right: -50vmax; animation-duration: 19s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translate(30vmax, 40vmax) scale(1.15); } }
html.filmon .amb { display: none; }
html.filmon body { background: #1A1210; }
.film { position: fixed; top: 0; bottom: 0; left: 0; right: 0; margin: 0 auto; max-width: 430px; z-index: 0; overflow: hidden; visibility: hidden; background: #2B1D16; }
.film.on { visibility: visible; }
.film canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fcut { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.screen.fs, .screen.s-live { --u: min(1cqw, .474dvh); height: 100%; min-height: 0; padding: 0; overflow: hidden; animation: none; color: #fff; user-select: none; -webkit-user-select: none; }
.fs svg, .s-live svg { display: block; }
.fs .hidden { opacity: 0; pointer-events: none; }

.ftop { position: absolute; top: calc(env(safe-area-inset-top) + var(--u) * 15); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 2.4); pointer-events: none; text-align: center; padding: 0 calc(var(--u) * 6); }
.slogan { margin: 0; font-weight: 800; font-size: calc(var(--u) * 8.6); line-height: 1.12; color: #fff; letter-spacing: -.01em; text-shadow: 0 2px 14px rgba(70, 20, 0, .35), 0 1px 2px rgba(70, 20, 0, .3); animation: sin .5s ease-out; }
.drive .slogan { font-size: calc(var(--u) * 6); }
@keyframes sin { from { opacity: 0; transform: translateY(-8px); } }
.trip { display: flex; align-items: center; gap: calc(var(--u) * 2); max-width: 100%; padding: calc(var(--u) * 1.8) calc(var(--u) * 3.6); border-radius: 999px; background: rgba(255, 255, 255, .88); color: #3A2418; font-weight: 700; font-size: calc(var(--u) * 3.8); box-shadow: 0 6px 18px -8px rgba(80, 30, 0, .5); white-space: nowrap; animation: sin .45s ease-out; }
.trip .dn { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.trip .dot { flex: none; width: calc(var(--u) * 2.2); height: calc(var(--u) * 2.2); border-radius: 50%; background: #35C46A; animation: beat 1.6s infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(53, 196, 106, .55); } 70% { box-shadow: 0 0 0 calc(var(--u) * 2.6) rgba(53, 196, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(53, 196, 106, 0); } }
.trip .eta { flex: none; font-variant-numeric: tabular-nums; opacity: .75; font-weight: 600; }
.trip .eta b { font-weight: inherit; }
.online { position: absolute; z-index: 3; top: calc(env(safe-area-inset-top) + var(--u) * 4.2); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: calc(var(--u) * 1.8); max-width: calc(100% - var(--u) * 36); padding: calc(var(--u) * 1.1) calc(var(--u) * 3); border-radius: 999px; background: rgba(40, 16, 20, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-weight: 700; font-size: calc(var(--u) * 3.3); white-space: nowrap; pointer-events: none; box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .5); animation: sin .45s ease-out; }
.online > span:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.online bdi { font-variant-numeric: tabular-nums; font-weight: 800; }
.online .od { flex: none; width: calc(var(--u) * 2); height: calc(var(--u) * 2); border-radius: 50%; background: #35C46A; animation: beat 1.6s infinite; }
.s-live .online { background: rgba(255, 255, 255, .16); }
.seek { font-size: calc(var(--u) * 3.5); font-weight: 700; color: #fff; background: rgba(40, 16, 20, .28); padding: calc(var(--u) * 1.2) calc(var(--u) * 3.2); border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: .95; }
.seek i { display: inline-block; width: .32em; height: .32em; border-radius: 50%; background: currentColor; margin: 0 .08em; vertical-align: .15em; animation: dd 1.2s infinite; }
.seek i:nth-child(2) { animation-delay: .15s; }
.seek i:nth-child(3) { animation-delay: .3s; }
@keyframes dd { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-.2em); } }

/* home: touch anywhere */
.hint { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top) + var(--u) * 44); display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 2.6); pointer-events: none; }
.hint .tap { position: relative; width: calc(var(--u) * 13); height: calc(var(--u) * 13); border-radius: 50%; background: rgba(255, 255, 255, .22); border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 0 30px rgba(255, 255, 255, .35); }
.hint .tap::before, .hint .tap::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); animation: wave 2.2s infinite; }
.hint .tap::after { animation-delay: 1.1s; }
@keyframes wave { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.5); opacity: 0; } }
.hint span { font-weight: 700; font-size: calc(var(--u) * 4.1); color: #fff; background: rgba(40, 16, 20, .28); padding: calc(var(--u) * 1.6) calc(var(--u) * 4); border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-align: center; max-width: calc(var(--u) * 88); }
.fset { position: absolute; top: calc(env(safe-area-inset-top) + var(--u) * 3); inset-inline-end: calc(var(--u) * 4); width: calc(var(--u) * 11); height: calc(var(--u) * 11); border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(40, 16, 20, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fset svg { width: 52%; height: 52%; }

/* where to: a card from the bottom over the standing car */
.wsheet { position: absolute; left: calc(var(--u) * 3); right: calc(var(--u) * 3); bottom: calc(env(safe-area-inset-bottom) + var(--u) * 3); max-height: calc(100% - env(safe-area-inset-top) - var(--u) * 6); overflow-y: auto; overscroll-behavior: contain; border-radius: calc(var(--u) * 7); background: rgba(255, 253, 251, .96); color: #2B1D16; padding: calc(var(--u) * 5) calc(var(--u) * 5) calc(var(--u) * 5.5); box-shadow: 0 -10px 40px -10px rgba(60, 20, 0, .45); transform: translateY(115%); transition: transform .55s cubic-bezier(.2, .9, .25, 1.05); user-select: text; -webkit-user-select: text; }
.wsheet.on { transform: none; }
.wsheet h2 { margin: 0 0 calc(var(--u) * 3.4); font-size: calc(var(--u) * 7.6); font-weight: 800; line-height: 1.15; }
.wsheet .q { display: flex; align-items: center; gap: calc(var(--u) * 2); height: calc(var(--u) * 12.5); border-radius: calc(var(--u) * 4); background: #F4E9E1; padding: 0 calc(var(--u) * 4); color: #8B7468; margin-bottom: calc(var(--u) * 3.4); }
.wsheet .q svg { width: calc(var(--u) * 5); height: calc(var(--u) * 5); flex: none; }
.wsheet input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: max(16px, calc(var(--u) * 4.2)); color: #2B1D16; }
.wsheet input::placeholder { color: #8B7468; opacity: 1; }
.wsheet input::-webkit-search-cancel-button { -webkit-appearance: none; }
.wsheet .rl { font-size: calc(var(--u) * 3.4); font-weight: 700; color: #9A8276; margin: 0 calc(var(--u) * 1) calc(var(--u) * 1.6); }
.wsheet .rl[hidden], .wlist[hidden] { display: none; }
.wlist { display: flex; flex-direction: column; border-radius: calc(var(--u) * 4); overflow: hidden; background: #FBF3EE; }
.wlist .res { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--u) * 3); min-height: calc(var(--u) * 10.6); padding: calc(var(--u) * 1.2) calc(var(--u) * 4); border: 0; border-top: 1px solid #F0E2D9; background: none; color: #3A1E12; font-weight: 600; font-size: calc(var(--u) * 4.1); text-align: start; width: 100%; }
.wlist .res:first-child { border-top: 0; background: var(--wa, #FFE3D6); font-weight: 800; }
.wlist .nm { display: flex; flex-direction: column; min-width: 0; }
.wlist .nm bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wlist .nm small { font-size: calc(var(--u) * 3.1); font-weight: 600; opacity: .6; }
.wlist .eta { flex: none; font-weight: 600; opacity: .6; font-size: calc(var(--u) * 3.6); font-variant-numeric: tabular-nums; }
.wst { margin-top: calc(var(--u) * 2.4); font-size: calc(var(--u) * 3.6); color: #8B7468; text-align: center; }
.wst:empty { display: none; }

/* driving: the call-back chip under the trip (the pause sits in the corner, like settings at home) */
.cbchip { pointer-events: auto; margin-top: calc(var(--u) * 1.6); display: inline-flex; gap: calc(var(--u) * 2); align-items: center; max-width: 100%; padding: calc(var(--u) * 1.8) calc(var(--u) * 4) calc(var(--u) * 1.8) calc(var(--u) * 2); border-radius: 99px; border: 0; background: rgba(255, 255, 255, .93); color: #2B1D16; font-weight: 700; font-size: calc(var(--u) * 3.8); box-shadow: 0 10px 30px -10px rgba(60, 20, 0, .55); }
[dir="ltr"] .cbchip { padding: calc(var(--u) * 1.8) calc(var(--u) * 2) calc(var(--u) * 1.8) calc(var(--u) * 4); }
.cbchip .ic { width: calc(var(--u) * 8); height: calc(var(--u) * 8); border-radius: 50%; background: #2FCB6E; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.cbchip .ic svg { width: 62%; height: 62%; }
.cbchip .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.redial .arr { transform-origin: 12px 12px; transform-box: view-box; }

/* incoming: a card that rises over the moving film */
.ring { position: absolute; left: calc(var(--u) * 4); right: calc(var(--u) * 4); bottom: calc(env(safe-area-inset-bottom) + var(--u) * 5); border-radius: calc(var(--u) * 8); padding: calc(var(--u) * 5.5) calc(var(--u) * 5) calc(var(--u) * 5); color: #fff; background: linear-gradient(150deg, var(--ra, #FF8A5B), var(--rb, #FF4F7B)); box-shadow: 0 22px 50px -14px rgba(70, 10, 20, .6), inset 0 1px 0 rgba(255, 255, 255, .35); transform: translateY(130%) rotate(-4deg); transition: transform .7s cubic-bezier(.2, 1.2, .3, 1); touch-action: none; cursor: grab; }
.ring.on { transform: none; }
.ring.now { transition: none; }
.ring .rt { display: flex; align-items: center; gap: calc(var(--u) * 3); margin-bottom: calc(var(--u) * 4); }
.ring .av { position: relative; width: calc(var(--u) * 15); height: calc(var(--u) * 15); border-radius: 50%; background: rgba(255, 255, 255, .25); display: grid; place-items: center; flex: none; }
.ring .av::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: wave 1.4s infinite; }
.ring .av svg { width: 48%; height: 48%; }
.ring .who { min-width: 0; }
.ring .who b { display: block; font-size: calc(var(--u) * 6.2); font-weight: 800; line-height: 1.1; }
.ring .who span { display: block; font-size: calc(var(--u) * 3.9); opacity: .9; font-weight: 600; overflow-wrap: anywhere; }
.ring .who span b { display: inline; font-size: inherit; font-variant-numeric: tabular-nums; }
.ring .rbar { height: calc(var(--u) * 1.3); border-radius: 9px; background: rgba(255, 255, 255, .28); overflow: hidden; margin-bottom: calc(var(--u) * 5); }
.ring .rbar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: right; border-radius: 9px; }
[dir="ltr"] .ring .rbar i { transform-origin: left; }
.ring .btns { display: flex; justify-content: space-between; direction: ltr; padding: 0 calc(var(--u) * 4); }
.rb { width: calc(var(--u) * 19); height: calc(var(--u) * 19); border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .45); transition: transform .15s; }
.rb:active { transform: scale(.92); }
.rb svg { width: 42%; height: 42%; }
.rb.no { background: #FF4D5E; }
.rb.go { background: #2FCB6E; animation: nudge 1.6s infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: rotate(0); } 68% { transform: rotate(-14deg); } 76% { transform: rotate(12deg); } 84% { transform: rotate(-8deg); } 92% { transform: rotate(5deg); } }

/* waiting for the other side, or for my call-back */
.wait { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + var(--u) * 10); max-width: calc(var(--u) * 92); transform: translate(-50%, 40px); opacity: 0; display: flex; align-items: center; gap: calc(var(--u) * 2.6); padding: calc(var(--u) * 2.6) calc(var(--u) * 4.4); border-radius: 999px; background: rgba(255, 255, 255, .93); color: #2B1D16; font-weight: 700; font-size: calc(var(--u) * 4); box-shadow: 0 10px 30px -10px rgba(60, 20, 0, .55); transition: transform .5s cubic-bezier(.2, 1.1, .3, 1), opacity .4s; white-space: nowrap; }
.wait.on { transform: translate(-50%, 0); opacity: 1; }
.wait .wt { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wring { position: relative; flex: none; width: calc(var(--u) * 7); height: calc(var(--u) * 7); display: grid; place-items: center; }
.wring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wring .bgc { stroke: #F1E1D7; }
.wring .arc { stroke: #2FCB6E; transition: stroke-dashoffset .2s linear; }
.wring b { position: relative; font-size: calc(var(--u) * 3.3); font-weight: 800; font-variant-numeric: tabular-nums; }
.wx { flex: none; width: calc(var(--u) * 7); height: calc(var(--u) * 7); border-radius: 50%; border: 0; display: grid; place-items: center; background: #F4E9E1; color: #6B5A52; }
.wx svg { width: 50%; height: 50%; }

/* after a call: a moment for a heart or a call back, then the film goes on by itself */
.after { position: absolute; left: calc(var(--u) * 4); right: calc(var(--u) * 4); bottom: calc(env(safe-area-inset-bottom) + var(--u) * 5); border-radius: calc(var(--u) * 8); background: rgba(255, 253, 251, .95); color: #2B1D16; padding: calc(var(--u) * 6) calc(var(--u) * 5) calc(var(--u) * 4); display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 5); box-shadow: 0 20px 50px -14px rgba(60, 20, 0, .55); transform: translateY(130%); transition: transform .65s cubic-bezier(.2, 1.1, .3, 1); }
.after.on { transform: none; }
.after .anm { font-size: calc(var(--u) * 4.4); font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.after .anm bdi[dir="ltr"] { font-variant-numeric: tabular-nums; font-weight: 600; color: #8A7266; }
.after .ab { display: flex; gap: calc(var(--u) * 8); direction: ltr; }
.after .heart, .after .redial { width: calc(var(--u) * 17); height: calc(var(--u) * 17); border-radius: 50%; border: 0; display: grid; place-items: center; }
.after .heart { background: #FF5A6E; color: #fff; animation: pop .6s .3s both; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
.after .redial { background: #FFE7DD; color: #FF5A4E; }
.after .ab svg { width: 44%; height: 44%; }
.after .aprog { width: 62%; height: calc(var(--u) * 1.2); border-radius: 9px; background: #F1E1D7; overflow: hidden; }
.after .aprog i { display: block; height: 100%; width: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--ra, #FF8A5B), var(--rb, #FF4F7B)); transform-origin: right; transition: transform .1s linear; }
[dir="ltr"] .after .aprog i { transform-origin: left; }
.arep { margin-top: calc(var(--u) * -2); border: 0; background: transparent; color: #8A7266; font-size: calc(var(--u) * 3.6); font-weight: 700; display: inline-flex; gap: calc(var(--u) * 1.4); align-items: center; padding: calc(var(--u) * 1) calc(var(--u) * 2); }
.arep svg { width: calc(var(--u) * 3.8); height: calc(var(--u) * 3.8); }
.flipout { position: absolute; inset: 0; z-index: 5; }
.flipout > .screen { height: 100%; }

/* in a call: the film has turned over into the call card */
.screen.s-live { display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(env(safe-area-inset-top) + var(--u) * 20) calc(var(--u) * 7) calc(env(safe-area-inset-bottom) + var(--u) * 12); background: linear-gradient(165deg, var(--ra, #FF8A5B) 0%, var(--rb, #FF4F7B) 100%); }
.s-live .road { position: absolute; inset: 0; opacity: .18; pointer-events: none; background: repeating-linear-gradient(180deg, transparent 0 calc(var(--u) * 7), rgba(255, 255, 255, .9) calc(var(--u) * 7) calc(var(--u) * 13)) 50% 0 / calc(var(--u) * 1.6) 100% no-repeat; animation: lane 1.1s linear infinite; -webkit-mask-image: linear-gradient(transparent, #000 40%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 40%, #000 70%, transparent); }
@keyframes lane { to { background-position: 50% calc(var(--u) * 13); } }
.ltm { position: relative; font-size: calc(var(--u) * 4.4); font-weight: 700; opacity: .9; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.ltm.weak { opacity: .7; }
.orb { position: relative; margin-top: calc(var(--u) * 12); width: calc(var(--u) * 46); height: calc(var(--u) * 46); border-radius: 50%; display: grid; place-items: center; flex: none; }
.orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); transform: scale(var(--lv, 1)); transition: transform .08s; }
.orb::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: rgba(255, 255, 255, .26); transform: scale(calc(.5 + var(--lv, 1) * .5)); transition: transform .08s; }
.orb .core { position: relative; z-index: 1; width: 56%; height: 56%; border-radius: 50%; background: #fff; color: #FF5A4E; display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .25); }
.orb .core svg { width: 50%; height: 50%; }
.lnm { position: relative; margin-top: calc(var(--u) * 8); font-size: calc(var(--u) * 8.2); font-weight: 800; line-height: 1.15; max-width: 100%; overflow-wrap: anywhere; }
.lmeta { position: relative; margin-top: calc(var(--u) * 1.6); font-size: calc(var(--u) * 4.2); font-weight: 600; opacity: .92; display: flex; gap: calc(var(--u) * 2); align-items: center; }
.lmeta svg { width: 1.1em; height: 1.1em; }
.lbio { position: relative; margin: calc(var(--u) * 3) 0 0; font-size: calc(var(--u) * 3.8); line-height: 1.45; opacity: .9; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-live .cb { position: relative; display: flex; align-items: center; gap: calc(var(--u) * 8); direction: ltr; }
.s-live .cb button { width: calc(var(--u) * 19); height: calc(var(--u) * 19); border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .24); }
.s-live .cb button svg { width: 42%; height: 42%; }
.s-live .cb .hang { background: #FF4D5E; box-shadow: 0 12px 26px -10px rgba(120, 0, 20, .7); }
.s-live .cb .hang svg { transform: rotate(135deg); }
.s-live .cb .rep { width: calc(var(--u) * 13); height: calc(var(--u) * 13); }
.s-live .cb [aria-pressed="true"] { background: #fff; color: #FF5A4E; }

/* "Reduce motion" on the phone: the same colors and screens, nothing flies, pulses or explodes */
@media (prefers-reduced-motion: reduce) {
  .amb i, .slogan, .trip, .trip .dot, .online, .online .od, .seek i, .hint .tap::before, .hint .tap::after, .ring .av::after, .rb.go, .after .heart, .s-live .road { animation: none !important; }
  .wsheet, .ring, .wait, .after { transition-duration: .2s; }
}

/* Terms of use (O 08.11): the text scrolls inside its card; "Continue" opens once its end was reached. */
.screen.terms { height: 100%; min-height: 0; gap: 12px; }
.screen.terms h1 { margin: 2px 0 0; font-size: 26px; text-wrap: balance; }
.tprog { position: relative; height: 4px; flex-shrink: 0; border-radius: 2px; background: var(--line); overflow: hidden; }
.tprog i { position: absolute; inset: 0; transform: scaleX(var(--p, 0)); background: var(--pri); border-radius: 2px; transition: transform 120ms linear; }
[dir="rtl"] .tprog i { transform-origin: right; }
[dir="ltr"] .tprog i { transform-origin: left; }
.tbox { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-radius: 24px; background: var(--card); box-shadow: var(--sh);
  padding: 18px 20px 8px; font-size: 15px; line-height: 1.6; -webkit-overflow-scrolling: touch; }
.tbox:focus-visible { outline-offset: -3px; }
.tbox .tmeta { margin: 0 0 4px; color: var(--mute); font-size: 13px; }
.tbox h2 { margin: 18px 0 6px; font-size: 16px; font-weight: 700; }
.tbox p { margin: 6px 0; }
.tbox ol { margin: 6px 0; padding-inline-start: 22px; }
.tbox li { margin: 6px 0; }
.tbox li::marker { color: var(--mute); }
.tbox .tend { margin: 20px 0 12px; text-align: center; color: var(--faint); font-size: 13px; }
.screen.terms .foot { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .tprog i { transition: none; } }
