/* Loop — hero phone mockup (see hero-phone.js). The app is laid out at a real
   iPhone size (390 × 844) and scaled with --s, so it reads like a screenshot. */
#lp-hero-phone { --s: .8; --bez: 11px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
@media (min-width: 1280px) { #lp-hero-phone { --s: .84; } }
@media (max-width: 1100px) { #lp-hero-phone { --s: .74; } }
@media (max-width: 520px)  { #lp-hero-phone { --s: .68; --bez: 9px; } }
@media (max-width: 360px)  { #lp-hero-phone { --s: .62; } }

.lp-stage { position: relative; }

/* Device */
.lp-frame {
  position: relative; padding: var(--bez);
  width: calc(390px * var(--s) + var(--bez) * 2); height: calc(844px * var(--s) + var(--bez) * 2);
  border-radius: calc(56px * var(--s) + var(--bez));
  background: linear-gradient(145deg, #3a3d40 0%, #17181a 18%, #0c0c0d 50%, #1d1f21 82%, #45484b 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.14),
    inset 0 0 0 4px #050505,
    0 50px 90px -20px rgba(0,0,0,.65),
    0 30px 50px -30px rgba(0,0,0,.6);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.lp-btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2a2c2e, #4a4d50); }
.lp-b1 { left: -3px; top: 17%; height: 4%; }
.lp-b2 { left: -3px; top: 24%; height: 8%; }
.lp-b3 { left: -3px; top: 34%; height: 8%; }
.lp-b4 { right: -3px; top: 27%; height: 12%; background: linear-gradient(270deg, #2a2c2e, #4a4d50); }
.lp-glass {
  position: relative; width: calc(390px * var(--s)); height: calc(844px * var(--s));
  border-radius: calc(56px * var(--s)); overflow: hidden; background: #f6f7f6;
  -webkit-clip-path: inset(0 round calc(56px * var(--s))); clip-path: inset(0 round calc(56px * var(--s)));
}
.lp-glass::after { /* faint screen glare */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 30;
  background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.05) 100%);
}

/* App canvas (real px, scaled) */
.lp-app {
  position: absolute; top: 0; left: 0; width: 390px; height: 844px; transform: scale(var(--s)); transform-origin: 0 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif; letter-spacing: -.01em; color: #111;
  -webkit-font-smoothing: antialiased; text-align: left; line-height: 1.25;
}
.lp-app * { box-sizing: border-box; margin: 0; padding: 0; }
.lp-track { display: flex; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.65,0,.25,1); }
.lp-scr { flex: 0 0 100%; height: 100%; position: relative; overflow: hidden; background: #f6f7f6; padding-bottom: 84px; }
.lp-island { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); width: 122px; height: 35px; border-radius: 20px; background: #000; z-index: 20; }
.lp-hi { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: #111; z-index: 21; }

/* Status bar */
.lp-sb { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 8px 30px 0 46px; color: #fff; font-weight: 600; font-size: 17px; position: relative; z-index: 5; }
.lp-sb-d { color: #fff; }
.lp-food .lp-sb { color: #111; }
.lp-sb-ic { display: flex; gap: 6px; align-items: center; }
.lp-sb-ic svg { fill: currentColor; }

/* Shared */
.lp-top { color: #fff; padding-bottom: 16px; }
.lp-top-l { background: #fff; color: #111; border-bottom: 1px solid #eef0ef; padding-bottom: 12px; }
.lp-bd { padding: 14px 0 0; }
.lp-sh { font-size: 11px; font-weight: 700; color: #9ca3af; letter-spacing: 1px; padding: 4px 18px 8px; }
.lp-cd { background: #fff; border-radius: 16px; margin: 0 14px 10px; border: 1px solid #eff0ef; box-shadow: 0 1px 4px rgba(0,0,0,.04); padding: 14px; }
.lp-eb { font-size: 10px; font-weight: 800; letter-spacing: 1.4px; opacity: .55; margin-bottom: 5px; }
.lp-ttl { font-size: 30px; font-weight: 800; letter-spacing: -.03em; padding: 6px 20px 12px; }
.lp-ttl-d { color: #111; padding-bottom: 8px; }

/* Home */
.lp-hd { display: flex; align-items: center; gap: 13px; padding: 8px 18px 4px; }
.lp-cr { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.lp-hn { flex: 1; min-width: 0; }
.lp-hn b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-hn span { font-size: 14px; opacity: .75; }
.lp-bell { position: relative; width: 40px; height: 40px; border-radius: 20px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.lp-bell i { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 5px; background: #ef4444; border: 2px solid rgba(0,0,0,.1); }
.lp-status { display: flex; align-items: center; gap: 12px; margin: 0 14px 10px; background: #fff; border-radius: 16px; padding: 13px 14px; border: 1px solid #eff0ef; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.lp-status b { display: block; font-size: 15.5px; font-weight: 800; }
.lp-status span { font-size: 12.5px; color: #6b7280; }
.lp-status em { margin-left: auto; font-style: normal; font-size: 11px; color: #9ca3af; align-self: flex-start; white-space: nowrap; }
.lp-dot { width: 12px; height: 12px; border-radius: 6px; background: #22c55e; flex: none; box-shadow: 0 0 0 5px rgba(34,197,94,.16); }
.lp-bk { margin: 0 14px 10px; border-radius: 18px; padding: 17px 16px; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.lp-bt { font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.lp-bs { font-size: 12.5px; opacity: .7; margin-top: 3px; }
.lp-bb { background: #fff; color: var(--brand); border-radius: 20px; padding: 8px 15px; font-weight: 800; font-size: 13.5px; }
.lp-wx { display: flex; align-items: center; gap: 7px; background: #fff; border-radius: 12px; margin: 0 14px 14px; padding: 11px 14px; font-size: 12.5px; color: #374151; border: 1px solid #eff0ef; }
.lp-wx b { font-size: 14px; font-weight: 800; color: #111; } .lp-wx .g { color: #6b7280; }
.lp-wx i { width: 3px; height: 3px; border-radius: 2px; background: #d1d5db; }
.lp-ph { display: flex; gap: 10px; align-items: center; }
.lp-lg { width: 38px; height: 38px; border-radius: 19px; border: 1px solid #eee; display: grid; place-items: center; background: #fff; }
.lp-pt { font-size: 15px; font-weight: 800; } .lp-pm { font-size: 12px; color: #9ca3af; margin-top: 1px; }
.lp-pb { font-size: 14px; color: #374151; line-height: 1.42; margin-top: 9px; }
.lp-re { display: flex; gap: 16px; margin-top: 10px; font-size: 12.5px; color: #6b7280; font-weight: 600; }
.lp-rh { display: flex; align-items: center; gap: 10px; }
.lp-av { width: 40px; height: 40px; border-radius: 20px; color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 16px; }
.lp-rn { flex: 1; font-size: 15px; } .lp-rn b { font-weight: 800; } .lp-rn span { color: #6b7280; font-size: 13px; } .lp-rn div { font-size: 12.5px; color: #6b7280; margin-top: 1px; }
.lp-badge { background: #c9a43f; color: #2a2105; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 12px; }
.lp-st { display: flex; justify-content: space-between; margin-top: 14px; }
.lp-st div { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; color: #6b7280; }
.lp-st b { width: 58px; height: 58px; border-radius: 50%; border: 3px solid; display: grid; place-items: center; font-size: 19px; font-weight: 900; color: #111; }

/* GPS */
.lp-gps { background: #4f8a3a; }
.lp-map { position: absolute; left: 0; top: 0; width: 390px; height: 760px; }
.lp-hole { position: absolute; top: 64px; left: 16px; z-index: 6; display: flex; align-items: center; gap: 14px; background: rgba(20,22,20,.82); color: #fff; border-radius: 26px; padding: 12px 18px; font-size: 18px; backdrop-filter: blur(8px); }
.lp-hole b { font-size: 22px; font-weight: 900; }
.lp-hole i { width: 1px; height: 22px; background: rgba(255,255,255,.3); }
.lp-chev { opacity: .65; font-size: 22px; font-weight: 300; }
.lp-pill { position: absolute; z-index: 6; transform: translate(-50%, -50%); background: rgba(17,17,17,.88); color: #fff; border: 3px solid #fff; border-radius: 22px; padding: 6px 13px; font-size: 21px; font-weight: 900; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.lp-yds { position: absolute; left: 14px; bottom: 150px; z-index: 6; background: rgba(17,17,17,.86); color: #fff; border-radius: 16px; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; backdrop-filter: blur(8px); }
.lp-yf { font-size: 18px; font-weight: 700; } .lp-yf .up { color: #4ade80; margin-right: 6px; } .lp-yf .dn { color: #fbbf24; margin-right: 6px; }
.lp-ym { font-size: 40px; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.lp-score { position: absolute; right: 14px; bottom: 150px; z-index: 6; color: #fff; font-weight: 800; font-size: 18px; padding: 16px 22px; border-radius: 30px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.lp-ball { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 8px; background: rgba(20,22,20,.82); color: #fff; font-weight: 800; font-size: 16px; padding: 11px 20px; border-radius: 24px; white-space: nowrap; }

/* Scores */
.lp-seg { display: flex; gap: 6px; margin: 0 16px; background: rgba(255,255,255,.14); border-radius: 12px; padding: 4px; }
.lp-seg span { flex: 1; text-align: center; font-size: 13.5px; font-weight: 700; padding: 8px 0; border-radius: 9px; color: rgba(255,255,255,.75); }
.lp-seg span.on { background: #fff; color: var(--brand); }
.lp-live { display: flex; align-items: center; justify-content: space-between; margin: 0 14px 12px; background: #fff; border-radius: 16px; padding: 14px 16px; border: 2px solid; }
.lp-lt { font-size: 15.5px; font-weight: 800; }
.lp-lp { text-align: right; } .lp-lp b { font-size: 30px; font-weight: 900; display: block; line-height: 1; } .lp-lp span { font-size: 12px; color: #6b7280; }
.lp-rounds { padding: 4px 14px; }
.lp-rr { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f2f1; }
.lp-rr:last-child { border-bottom: 0; }
.lp-rr b { display: block; font-size: 15px; font-weight: 800; } .lp-rr span { font-size: 12.5px; color: #6b7280; }
.lp-rs { text-align: right; } .lp-rs b { font-size: 22px; font-weight: 900; } .lp-rs span { font-weight: 700; }
.lp-br { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; color: #374151; }
.lp-br span { width: 72px; } .lp-br div { flex: 1; height: 10px; border-radius: 5px; background: #f1f2f1; overflow: hidden; }
.lp-br i { display: block; height: 100%; border-radius: 5px; } .lp-br b { width: 18px; text-align: right; font-weight: 800; }

/* Food & Bar */
.lp-coll { display: flex; align-items: center; gap: 7px; margin: 0 20px; font-size: 13px; color: #374151; font-weight: 600; background: #f3f4f3; padding: 9px 12px; border-radius: 10px; }
.lp-deal { display: flex; align-items: center; justify-content: space-between; margin: 0 14px 10px; background: #fff; border-radius: 14px; padding: 14px 16px; border-left: 5px solid; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.lp-deal b { display: block; font-size: 15.5px; font-weight: 800; } .lp-deal span { font-size: 13px; color: #6b7280; }
.lp-deal em { font-style: normal; font-size: 22px; font-weight: 900; }
.lp-cat { display: flex; justify-content: space-between; padding: 10px 22px; font-size: 18px; } .lp-cat b { font-weight: 800; } .lp-cat span { color: #9ca3af; }
.lp-menu { padding: 2px 14px; }
.lp-mi { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f1f2f1; }
.lp-mi:last-child { border-bottom: 0; }
.lp-mi b { display: block; font-size: 16px; font-weight: 800; } .lp-mi span { display: block; font-size: 13px; color: #6b7280; margin-top: 2px; }
.lp-mi em { display: block; font-style: normal; font-weight: 800; font-size: 15px; margin-top: 4px; }
.lp-add { width: 40px; height: 40px; border-radius: 12px; color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 400; flex: none; }
.lp-q { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; flex: none; }
.lp-q i { width: 32px; height: 32px; border-radius: 10px; border: 1.5px solid #e5e7eb; display: grid; place-items: center; font-style: normal; font-size: 18px; }
.lp-basket { position: absolute; left: 14px; right: 14px; bottom: 96px; z-index: 6; display: flex; align-items: center; gap: 10px; color: #fff; border-radius: 16px; padding: 15px 16px; font-size: 16px; font-weight: 700; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.lp-basket b { margin-left: auto; font-size: 17px; font-weight: 900; }
.lp-bn { width: 26px; height: 26px; border-radius: 13px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 13px; font-weight: 800; }

/* Tab bar */
.lp-tb { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: rgba(255,255,255,.97); border-top: 1px solid #eef0ef; display: flex; justify-content: space-around; padding-top: 8px; font-size: 10.5px; font-weight: 600; color: #9ca3af; z-index: 10; }
.lp-tb div { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 70px; cursor: pointer; transition: color .3s; }
.lp-tb svg { width: 25px; height: 25px; }
.lp-tb .on { color: var(--brand); }

/* Floating push notification */
.lp-note {
  position: absolute; z-index: 40; left: calc(-1 * clamp(40px, 10vw, 150px)); top: 50%;
  width: 278px; display: flex; gap: 11px; align-items: flex-start; text-align: left;
  background: rgba(250,250,250,.86); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.6); border-radius: 20px; padding: 12px 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35); color: #111; font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  opacity: 0; transform: translateY(-10px) scale(.96); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1.2);
  pointer-events: none;
}
.lp-note.in { opacity: 1; transform: none; }
.lp-ni { width: 38px; height: 38px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.lp-nt { flex: 1; min-width: 0; }
.lp-nt > div { display: flex; justify-content: space-between; gap: 8px; }
.lp-nt b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-nt span { font-size: 12px; color: #6b7280; }
.lp-nt p { font-size: 13.5px; line-height: 1.32; color: #222; margin-top: 2px; }
@media (max-width: 900px) {
  .lp-note { left: 50%; top: calc(48px * var(--s)); width: calc(390px * var(--s) - 10px); transform: translate(-50%, -10px) scale(.96); }
  .lp-note.in { transform: translate(-50%, 0); }
}

/* Screen picker under the phone */
.lp-seg-nav { display: flex; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 5px; backdrop-filter: blur(8px); }
.lp-seg-nav button {
  position: relative; overflow: hidden; border: 0; background: transparent; color: rgba(255,255,255,.7);
  font: 700 13px/1 'Plus Jakarta Sans', system-ui, sans-serif; padding: 9px 14px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s;
}
.lp-seg-nav button:hover { color: #fff; }
.lp-seg-nav button.on { background: rgba(255,255,255,.16); color: #fff; }
.lp-seg-nav button:focus-visible { outline: 2px solid var(--accent, #4ade80); outline-offset: 2px; }
.lp-seg-nav i { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 1px; background: transparent; }
.lp-seg-nav button.on i { background: linear-gradient(90deg, var(--accent, #4ade80) 0 0) no-repeat 0 0 / 0 100%; animation: lpProg var(--dwell, 4800ms) linear forwards; }
#lp-hero-phone.paused .lp-seg-nav button.on i { animation-play-state: paused; }
@keyframes lpProg { to { background-size: 100% 100%; } }
@media (max-width: 420px) { .lp-seg-nav button { padding: 9px 10px; font-size: 12px; } }

@media (prefers-reduced-motion: reduce) {
  .lp-track, .lp-frame, .lp-note { transition: none !important; }
  .lp-seg-nav button.on i { animation: none; background-size: 100% 100%; }
}
