:root {
  /* --brand is replaced by the site's own colour from the Our App CMS when it loads. */
  --brand: #1e3a8a;
  --navy: color-mix(in srgb, var(--brand) 62%, #000);
  --blue: var(--brand);
  --blue-2: var(--brand);
  --sky: color-mix(in srgb, var(--brand) 10%, #fff);
  --bg: color-mix(in srgb, var(--brand) 3%, #fff);
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --green: #15803d;
  --green-bg: #dcfce7;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --red-bg: #fee2e2;
  --star: #f59e0b;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 4px 16px rgb(15 23 42 / .06);
  --tabbar: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Figtree, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg), var(--sky)) fixed;
  line-height: 1.5;
}
a { color: var(--blue-2); }
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0; }
h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
p { margin: 0 0 10px; }

#app { max-width: 640px; margin: 0 auto; min-height: 100vh; }
#view { padding-bottom: calc(var(--tabbar) + var(--safe-b) + 24px); }
.loading, .error { padding: 80px 24px; text-align: center; color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; }
.gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; aspect-ratio: 4 / 3; background: var(--navy);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery button { flex: 0 0 100%; scroll-snap-align: start; border: 0; padding: 0; background: none; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(transparent, rgb(15 23 42 / .75)); pointer-events: none;
}
.hero-text { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #fff; pointer-events: none; }
.hero-text h1 { color: #fff; font-size: 1.6rem; font-weight: 800; text-shadow: 0 1px 8px rgb(0 0 0 / .3); }
.hero-text .addr { opacity: .9; font-size: .92rem; margin-top: 2px; }
.photo-count {
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px;
  background: rgb(15 23 42 / .6); color: #fff; font-size: .8rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; pointer-events: none;
}
.brandbar {
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px;
  background: #fff; border-radius: 10px; padding: 6px 10px; box-shadow: var(--shadow);
}
.brandbar img { height: 20px; width: auto; }

/* ---------- layout ---------- */
.wrap { padding: 0 16px; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-top: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: .85rem; font-weight: 600; color: var(--navy);
}
.chip.good { background: var(--green-bg); border-color: transparent; color: var(--green); }
.chip svg { width: 16px; height: 16px; }

.rating { display: flex; align-items: center; gap: 10px; }
.rating .score { font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.stars { color: var(--star); letter-spacing: 1px; }
.muted { color: var(--muted); font-size: .9rem; }

/* ---------- buttons ---------- */
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.action {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 4px; text-decoration: none; color: var(--navy); font-size: .78rem; font-weight: 600;
  text-align: center;
}
.action svg { width: 24px; height: 24px; stroke: var(--blue); }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 50px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--blue); color: #fff; font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; padding: 12px 16px;
}
.btn:active { transform: translateY(1px); }
.btn.secondary { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn + .btn { margin-top: 10px; }

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- text blocks ---------- */
.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.more { background: none; border: 0; padding: 0; color: var(--blue-2); font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- facilities ---------- */
.facilities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 12px; margin: 0; padding: 0; list-style: none; }
.facilities li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.facilities .ico {
  flex: 0 0 34px; height: 34px; border-radius: 10px; background: var(--sky);
  display: grid; place-items: center; color: var(--blue);
}
.facilities .ico svg { width: 18px; height: 18px; }

/* ---------- price & calculator ---------- */
.price { display: flex; align-items: baseline; gap: 8px; }
.price .amount { font-size: 2rem; font-weight: 800; color: var(--navy); }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.time { background: var(--sky); border-radius: 12px; padding: 10px 12px; }
.time b { display: block; font-size: 1.25rem; color: var(--navy); }
.time span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.calc .full { grid-column: 1 / -1; }
.calc input, .calc select {
  font: inherit; font-size: 1rem; color: var(--ink); padding: 10px 12px; min-height: 46px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
}
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-height: 46px; }
.stepper button { flex: 0 0 44px; height: 46px; border: 0; background: var(--sky); color: var(--blue); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.stepper output { flex: 1; text-align: center; font-size: 1rem; color: var(--ink); font-weight: 700; }
.total {
  margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--navy); color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.total b { font-size: 1.5rem; }
.total small { display: block; opacity: .8; }
.calc-warn { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--amber-bg); color: var(--amber); font-size: .88rem; font-weight: 600; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; color: var(--blue); cursor: pointer; }
.cal-head button:disabled { opacity: .35; cursor: default; }
.cal-head h3 { font-size: 1rem; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .dow { font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal .d { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font-size: .9rem; font-weight: 600; }
.cal .d.ok { background: var(--green-bg); color: var(--green); }
.cal .d.half { background: linear-gradient(135deg, var(--green-bg) 50%, var(--amber-bg) 50%); color: var(--amber); }
.cal .d.no { background: var(--red-bg); color: #b91c1c; text-decoration: line-through; }
.cal .d.past { color: #cbd5e1; }
.cal .d.sel { outline: 2px solid var(--blue); outline-offset: -2px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }

.pay { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.pay img { height: 26px; width: auto; }

/* ---------- area ---------- */
#map { height: 300px; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 16px; z-index: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line); }
.list a, .list .row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  text-decoration: none; color: var(--ink);
}
.list .ico { flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--sky); display: grid; place-items: center; color: var(--blue); }
.list .ico svg { width: 20px; height: 20px; }
.list .grow { flex: 1; min-width: 0; }
.list .grow b { display: block; font-weight: 600; }
.list .grow span { font-size: .85rem; color: var(--muted); }
.list .go { color: var(--muted); }

/* ---------- info ---------- */
details { border-top: 1px solid var(--line); }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blue); }
details[open] summary::after { content: "–"; }
details .body { padding-bottom: 14px; font-size: .92rem; }
details .body p { margin-bottom: 8px; }
.rules { margin: 0; padding-left: 20px; }
.rules li { margin-bottom: 6px; }

.review { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.review:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.review .who { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.bars { display: grid; gap: 8px; margin-top: 12px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .85rem; }
.bar .track { grid-column: 1 / -1; height: 6px; background: var(--sky); border-radius: 99px; overflow: hidden; }
.bar .track i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }

.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { flex: 1; }

footer.credit { text-align: center; padding: 28px 16px 8px; font-size: .82rem; color: var(--muted); }
footer.credit img { height: 22px; width: auto; margin: 0 auto 6px; }

/* ---------- tab bar: pinned to the bottom, in the site's colour with white icons and words ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  display: flex; justify-content: center;
  background: var(--brand); color: #fff;
  padding-bottom: var(--safe-b); box-shadow: 0 -4px 16px rgb(0 0 0 / .18);
  transform: translateZ(0); /* stays put while the page scrolls on iPhone */
}
.tabbar a {
  flex: 1; max-width: 128px; height: var(--tabbar); position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: rgb(255 255 255 / .78); font-size: .75rem; font-weight: 600;
}
.tabbar svg { width: 24px; height: 24px; stroke: currentColor; }
.tabbar a[aria-current="page"] { color: #fff; font-weight: 800; }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: #fff; }

/* ---------- lightbox ---------- */
#lightbox { border: 0; padding: 0; background: #000; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; }
#lightbox::backdrop { background: #000; }
#lightbox img { width: 100%; height: 100%; object-fit: contain; }
#lightbox button {
  position: absolute; border: 0; background: rgb(255 255 255 / .15); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lb-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: calc(16px + var(--safe-b)); left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; }

@media (min-width: 640px) {
  .gallery { aspect-ratio: 16 / 10; }
  .wrap { padding: 0 20px; }
  .facilities { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- guide (Our App CMS pages) ---------- */
.page-top { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.page-title { font-size: 1.5rem; margin-top: 8px; }
.back { display: inline-block; margin: 4px 0 2px; font-weight: 700; text-decoration: none; color: var(--blue); }
.logo-card { display: grid; place-items: center; padding: 0; overflow: hidden; }
.logo-card { background: #bababa; }
.logo-card img { width: 100%; max-width: 240px; }
.btn svg, .btn.small svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn.small { width: auto; min-height: 40px; padding: 8px 14px; font-size: .88rem; border-radius: 10px; border-width: 1.5px; }
.btn-row .btn + .btn { margin-top: 0; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #fff; background: var(--c); }
.list .ico.dot { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.fchips { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 38px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--navy); cursor: pointer;
}
.fchip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.fchip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.gmap { height: 260px; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 14px; z-index: 0; }
.list .row { padding: 12px 0; }
.place { padding: 14px 0; }
.place-head { display: flex; gap: 12px; align-items: flex-start; }
.place-logo { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: var(--sky); }
.place .grow b { display: block; font-weight: 700; }
.place .grow span { display: block; font-size: .85rem; color: var(--muted); }
.place .grow .dist { color: var(--blue); font-weight: 600; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.photo-grid button { border: 0; padding: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--sky); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.rich { font-size: .95rem; }
.rich h1, .rich h2, .rich h3 { font-size: 1.1rem; margin: 14px 0 8px; }
.rich > :first-child { margin-top: 0; }
.rich ul, .rich ol { padding-left: 22px; margin: 0 0 10px; }
.rich li { margin-bottom: 6px; }
.rich img { border-radius: 10px; margin: 10px 0; }
.form { display: grid; gap: 12px; margin-top: 8px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.form input {
  font: inherit; font-size: 1rem; color: var(--ink); padding: 10px 12px; min-height: 46px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
}
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn:disabled { opacity: .6; }
.notice { padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.notice.ok { background: var(--green-bg); color: var(--green); }
.notice.bad { background: var(--red-bg); color: #b91c1c; }

/* ---------- Download the app: pop-up and film (install.js) ---------- */
.isheet-wrap { position: fixed; inset: 0; z-index: 2000; background: rgb(0 0 0 / .5); display: flex; align-items: flex-end; justify-content: center; animation: iFade .3s ease both; }
.isheet {
  background: #fff; width: 100%; max-width: 480px; max-height: 96dvh; overflow-y: auto;
  border-radius: 28px 28px 0 0; padding: 12px 20px calc(12px + var(--safe-b)); animation: popIn .45s cubic-bezier(.2,.9,.25,1.15) both;
}
.isheet.wide { max-width: 600px; }
.igrab { width: 40px; height: 6px; border-radius: 99px; background: #e4e4e7; margin: 0 auto 16px; }
.ihead { display: flex; align-items: center; gap: 16px; }
.iicon { width: 48px; height: 48px; border-radius: 16px; box-shadow: 0 4px 10px rgb(0 0 0 / .15); object-fit: cover; }
.ititle { font-size: 1.25rem; font-weight: 800; color: var(--navy); line-height: 1.2; margin: 0; }
.isub { font-size: .875rem; color: var(--muted); margin: 4px 0 0; }
.ibig { margin-top: 20px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 16px; font: inherit; font-size: 1.1rem; font-weight: 700; color: #fff; background: var(--brand); cursor: pointer; }
.ibig .ii { width: 22px; height: 22px; }
.inot { margin: 12px 0 8px; width: 100%; border: 0; border-radius: 16px; background: #f4f4f5; padding: 12px; font: inherit; font-weight: 700; color: #3f3f46; cursor: pointer; }
.iinapp { margin-top: 16px; border-radius: 16px; background: #fffbeb; padding: 16px; color: #78350f; box-shadow: inset 0 0 0 1px #fde68a; }
.iinapp p { margin: 0 0 6px; } .iinapp .small { font-size: .9rem; }
.ichip { display: inline-flex; align-items: center; gap: 4px; margin: 0 2px; padding: 1px 6px; border-radius: 8px; background: #f4f4f5; font-weight: 700; color: #18181b; vertical-align: middle; }
.ichip .ii { width: 16px; height: 16px; }
.ii { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pop { color: var(--pop); }

.ifilm { --pop: #dc2626; --pop-mid: color-mix(in srgb, var(--pop) 40%, white); --pop-soft: color-mix(in srgb, var(--pop) 12%, white);
  margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.icaption { width: 100%; }
.icap { display: flex; align-items: flex-start; gap: 12px; min-height: 64px; border-radius: 16px; padding: 10px 12px; background: var(--pop-soft); box-shadow: inset 0 0 0 1px var(--pop-mid); font-size: 16px; line-height: 1.35; color: #27272a; }
.inum { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff; background: var(--brand); margin-top: 1px; }
.icap.done .inum { background: var(--pop); }
.idots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.idots i { height: 6px; width: 6px; border-radius: 99px; background: #d4d4d8; transition: width .3s, background .3s; }
.idots i.on { width: 20px; background: var(--brand); }
.isteps { display: none; list-style: none; margin: 0; padding: 0; width: 100%; }
.isteps li { display: flex; align-items: flex-start; gap: 12px; border-radius: 16px; padding: 8px 10px; font-size: 16px; line-height: 1.35; color: #3f3f46; transition: background .3s; }
.isteps li.on { background: var(--pop-soft); box-shadow: inset 0 0 0 1px var(--pop-mid); }
.isteps .idone { font-size: 14px; font-weight: 700; color: #a1a1aa; padding: 4px 10px; }
.isteps .idone.on { color: var(--pop); background: none; box-shadow: none; }
.isteps.plain { display: block; margin-top: 16px; }
@media (min-width: 640px) {
  .isheet-wrap { align-items: center; }
  .isheet { border-radius: 28px; }
  .ifilm { flex-direction: row; align-items: flex-start; gap: 16px; }
  .icaption { display: none; }
  .isteps { display: block; }
}

/* The little phone */
.film { position: relative; flex: none; width: 222px; height: 442px; border: 6px solid #18181b; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 20px 40px -12px rgb(0 0 0 / .35); }
.film.ios { border-radius: 30px; }
.f-screen { position: relative; width: 210px; height: 430px; overflow: hidden; }
.f-screen img { display: block; object-fit: cover; }
.f-page { position: absolute; inset: 0; background: var(--bg); padding-top: 18px; }
.film.topbar .f-page { padding-top: 48px; }
.f-apphead { margin: 0 12px; display: flex; align-items: center; gap: 8px; border-radius: 16px; padding: 10px; color: #fff; background: var(--brand); font-size: 11px; font-weight: 700; }
.f-apphead span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.f-ic32 { width: 32px; height: 32px; border-radius: 8px; }
.f-card { margin: 10px 12px 0; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.f-card i { display: block; height: 8px; width: 66%; border-radius: 4px; background: #e4e4e7; }
.f-card i + i { width: 50%; background: #f4f4f5; margin-top: 6px; }
.f-top { position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; gap: 8px; background: #fff; padding: 0 8px; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.f-top.ios { height: 44px; padding: 0 10px; background: rgb(250 250 250 / .95); box-shadow: 0 1px 0 #e4e4e7; }
.f-url { flex: 1; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgb(228 228 231 / .8); font-size: 9px; color: #71717a; overflow: hidden; white-space: nowrap; }
.f-url.pill { border-radius: 999px; background: #f4f4f5; justify-content: flex-start; padding: 0 10px; }
.f-url.white { background: #fff; justify-content: center; height: 32px; box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.f-url.small { flex: none; height: 24px; margin: 0 auto; }
.f-tabs { width: 16px; height: 16px; display: grid; place-items: center; border: 1.5px solid #71717a; border-radius: 3px; font-size: 7px; font-weight: 800; color: #71717a; }
.f-bottom { position: absolute; left: 0; right: 0; bottom: 0; }
.f-bottom.ios { background: rgb(250 250 250 / .95); border-top: 1px solid #e4e4e7; padding: 6px 12px 0; }
.f-bottom.i26 { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 10px 6px; }
.f-bottom.s { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: #fff; box-shadow: 0 -1px 0 rgb(0 0 0 / .08); }
.f-icons { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.f-round { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.film .mut { color: #71717a; } .film .faint { opacity: .4; }
.fb { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: #52525b; transition: transform .15s, background .15s; flex: none; }
.fb.round { border-radius: 50%; }
.fb.lit { transform: scale(1.1); background: var(--pop); color: #fff; box-shadow: 0 0 0 2px var(--pop); }

/* iPhone / iPad: the ••• menu, the Share sheet (opens halfway, then pushed up), and Add to Home Screen */
.f-menu26 { position: absolute; right: 8px; bottom: 58px; width: 132px; border-radius: 16px; overflow: hidden; background: rgb(255 255 255 / .95); font-size: 10px; box-shadow: 0 10px 25px rgb(0 0 0 / .2), 0 0 0 1px rgb(0 0 0 / .08); transform-origin: bottom right; transform: scale(.75); opacity: 0; transition: transform .3s, opacity .3s; }
.film.on-menu .f-menu26 { transform: scale(1); opacity: 1; }
.m26 { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid #f4f4f5; color: #52525b; transition: background .15s; }
.m26.first { color: #18181b; font-weight: 700; }
.m26 .ii { width: 12px; height: 12px; }
.m26.lit { background: var(--pop); color: #fff; }
.f-sheet { position: absolute; left: 0; right: 0; top: 30px; height: 400px; border-radius: 18px 18px 0 0; background: #f4f4f5; box-shadow: 0 -8px 30px rgb(0 0 0 / .18); transform: translateY(420px); transition: transform .7s ease-in-out; }
.film.on-half .f-sheet { transform: translateY(200px); }
.film.on-up .f-sheet { transform: translateY(0); transition-duration: 1.4s; }
.film.on-full .f-sheet { transform: translateY(0); }
.f-grab { width: 32px; height: 4px; border-radius: 99px; background: #d4d4d8; margin: 6px auto 0; }
.f-sheethead { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.f-ic28 { width: 28px; height: 28px; border-radius: 6px; }
.f-sheettitle { flex: 1; min-width: 0; }
.f-sheettitle b { display: block; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.f-sheettitle span, .f-arowi span { display: block; font-size: 8px; color: #71717a; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.f-arowi > div { min-width: 0; }
.f-x { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #e4e4e7; color: #71717a; }
.f-x .ii { width: 12px; height: 12px; }
.f-sheetbody { height: 360px; overflow: hidden; }
.f-scroll { transition: transform 1.4s ease-in-out; }
.film.on-full .f-scroll { transform: translateY(-112px); }
.f-circles { display: flex; justify-content: space-around; padding: 10px 8px; border-top: 1px solid #e4e4e7; border-bottom: 1px solid #e4e4e7; }
.f-circles.sq { border: 0; }
.f-circles .c { width: 36px; height: 36px; border-radius: 50%; background: var(--pop-mid); }
.f-circles.sq .c { border-radius: 12px; }
.f-group { margin: 0 12px 10px; background: #fff; border-radius: 12px; overflow: hidden; }
.f-row { height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 10px; border-bottom: 1px solid #f4f4f5; transition: background .15s; }
.f-row .ii { width: 14px; height: 14px; color: #52525b; }
.f-row.lit { background: var(--pop); color: #fff; font-weight: 800; }
.f-row.lit .ii { color: #fff; }
.f-push { position: absolute; left: 0; right: 0; top: 112px; display: flex; justify-content: center; opacity: 0; transition: opacity .3s; }
.film.on-half .f-push { opacity: 1; }
.push-bob { display: flex; align-items: center; gap: 6px; border-radius: 999px; background: var(--pop); padding: 6px 12px 6px 8px; font-size: 11px; font-weight: 900; color: #fff; box-shadow: 0 0 0 2px #fff, 0 6px 14px rgb(0 0 0 / .25); animation: pushBob 1.1s ease-in-out infinite; }
.rise { position: relative; width: 16px; height: 20px; overflow: hidden; }
.rise .ii { position: absolute; left: 0; width: 16px; height: 16px; stroke-width: 3.5; }
.rise-up { animation: riseUp 1s linear infinite both; }
.f-dialog.ios { position: absolute; inset: 0; background: #f4f4f5; opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .3s; }
.film.on-dialog .f-dialog { opacity: 1; transform: none; }
.f-dhead { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e4e4e7; background: #fff; padding: 16px 12px 10px; font-size: 10px; }
.mutt { color: #71717a; }
.f-add { border-radius: 6px; padding: 2px 6px; font-weight: 800; color: var(--pop); transition: transform .15s, background .15s; }
.f-add.lit { transform: scale(1.1); background: var(--pop); color: #fff; }
.f-dcard { margin: 12px; display: flex; align-items: center; gap: 12px; border-radius: 12px; background: #fff; padding: 12px; }
.f-ic44 { width: 44px; height: 44px; border-radius: 12px; }
.f-dname { flex: 1; min-width: 0; border-bottom: 1px solid #e4e4e7; padding-bottom: 4px; font-size: 11px; font-weight: 700; }
.f-dtoggle { margin: 0 12px; display: flex; align-items: center; justify-content: space-between; border-radius: 12px; background: #fff; padding: 8px 12px; font-size: 10px; }
.tog { width: 28px; height: 16px; border-radius: 999px; background: var(--pop); padding: 2px; display: flex; justify-content: flex-end; }
.tog span { width: 12px; height: 12px; border-radius: 50%; background: #fff; }

/* Android Chrome's ⋮ menu; Samsung Internet's ≡ menu and "Add page to"; the install dialog */
.f-amenu { position: absolute; right: 4px; top: 4px; width: 150px; border-radius: 8px; overflow: hidden; background: #fff; font-size: 9.5px; color: #3f3f46; box-shadow: 0 20px 40px rgb(0 0 0 / .3), 0 0 0 1px rgb(0 0 0 / .08); transform-origin: top right; transform: scale(.9); opacity: 0; transition: transform .2s, opacity .2s; }
.film.on-menu .f-amenu { transform: scale(1); opacity: 1; }
.f-aicons { height: 30px; display: flex; align-items: center; justify-content: space-around; border-bottom: 1px solid #f4f4f5; color: #71717a; }
.f-aicons .ii { width: 14px; height: 14px; }
.f-arow { height: 24px; display: flex; align-items: center; padding: 0 12px; transition: background .15s; }
.f-arow.lit, .f-srow.lit { background: var(--pop); color: #fff; font-weight: 800; }
.f-dim { position: absolute; inset: 0; background: rgb(0 0 0 / .3); opacity: 0; transition: opacity .3s; }
.film.on-menu .f-dim, .film.on-sub .f-dim { opacity: 1; }
.f-smenu { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; border-radius: 16px 16px 0 0; background: #fff; padding: 16px 8px 12px; box-shadow: 0 -10px 30px rgb(0 0 0 / .25); transform: translateY(210px); transition: transform .3s; }
.film.on-menu .f-smenu { transform: none; }
.f-sgrid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 4px; }
.f-stile { height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; font-size: 7.5px; color: #52525b; text-align: center; transition: background .15s; }
.f-stile.lit { background: var(--pop); color: #fff; font-weight: 800; }
.f-ssub { position: absolute; left: 30px; right: 30px; top: 150px; border-radius: 16px; overflow: hidden; background: #fff; font-size: 10px; box-shadow: 0 20px 40px rgb(0 0 0 / .3); transform: scale(.9); opacity: 0; transition: transform .2s, opacity .2s; }
.film.on-sub .f-ssub { transform: scale(1); opacity: 1; }
.f-ssub p { margin: 0; padding: 12px 16px 8px; font-size: 11px; font-weight: 800; }
.f-srow { height: 30px; display: flex; align-items: center; padding: 0 16px; color: #3f3f46; transition: background .15s; }
.f-dialog.android { position: absolute; inset: 0; background: rgb(0 0 0 / .4); opacity: 0; transition: opacity .3s; }
.f-acard { position: absolute; left: 14px; right: 14px; top: 140px; border-radius: 22px; background: #fff; padding: 16px; box-shadow: 0 20px 40px rgb(0 0 0 / .3); }
.f-atitle { margin: 0; font-size: 12px; font-weight: 700; color: #18181b; }
.f-arowi { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.f-arowi b { display: block; font-size: 11px; } .f-arowi span { font-size: 8.5px; color: #71717a; }
.f-ic40 { width: 40px; height: 40px; } .round { border-radius: 50%; }
.f-abtns { margin-top: 16px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 10px; font-weight: 700; }
.f-add.pillbtn { border-radius: 999px; padding: 6px 12px; box-shadow: inset 0 0 0 1px var(--pop-mid); }

/* Downloaded: the home screen, with the new app in the next free space; and the title card */
.f-home { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; background: linear-gradient(160deg, color-mix(in srgb, var(--pop) 55%, black), var(--pop)); }
.film.on-home .f-home { opacity: 1; }
.f-status { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 0; color: #fff; font-size: 10px; }
.f-batt { width: 18px; height: 9px; border: 1.5px solid rgb(255 255 255 / .9); border-radius: 3px; padding: 1px; }
.f-batt i { display: block; width: 70%; height: 100%; background: #fff; border-radius: 1px; }
.f-homegrid { display: grid; grid-template-columns: repeat(4, 38px); justify-content: space-between; row-gap: 14px; padding: 22px 16px 0; }
.f-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.f-slot > i { display: block; width: 26px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .45); }
.f-appdot { display: block; width: 38px; height: 38px; border-radius: 9px; background: rgb(255 255 255 / .28); }
.f-homeicon { width: 38px; height: 38px; border-radius: 9px; }
.film.android .f-appdot, .film.android .f-homeicon { border-radius: 50%; }
.f-ring { position: relative; display: block; border-radius: 11px; }
.film.android .f-ring { border-radius: 50%; }
.film.on-home .f-ring::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; box-shadow: 0 0 0 2px #fff; animation: ringPulse 1.4s 1s ease-out infinite; }
.f-lbl { width: 48px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; font-size: 7.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .4); }
.f-done { position: absolute; left: 0; right: 0; bottom: 84px; margin: 0; text-align: center; font-size: 14px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .3); }
.f-dock { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 58px; display: flex; align-items: center; justify-content: space-around; border-radius: 22px; background: rgb(255 255 255 / .22); }
.film.android .f-dock { background: none; }
.film.on-home .f-mine { animation: popIn .5s .35s cubic-bezier(.2,.9,.25,1.15) both; }
.film.on-home .f-done { animation: popIn .5s .7s cubic-bezier(.2,.9,.25,1.15) both; }
@keyframes ringPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.f-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; text-align: center; color: #fff; opacity: 0; transition: opacity .5s; background: linear-gradient(170deg, var(--brand), color-mix(in srgb, var(--brand) 70%, black)); }
.film.on-title .f-title { opacity: 1; }
.film.on-title .f-ic80 { animation: popIn .5s cubic-bezier(.2,.9,.25,1.15) both; }
.f-ic80 { width: 80px; height: 80px; border-radius: 20px; box-shadow: 0 0 0 2px rgb(255 255 255 / .8), 0 12px 24px rgb(0 0 0 / .3); }
.f-how { margin: 0; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; opacity: .8; }
.f-name { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
.f-dl { display: flex; align-items: center; gap: 6px; border-radius: 999px; background: var(--pop); padding: 6px 12px; font-size: 11px; font-weight: 800; box-shadow: 0 6px 14px rgb(0 0 0 / .25); }
.f-dl .ii { width: 14px; height: 14px; }

/* The hand: its fingertip sits on (left, top); a dot shows the touch while pressed */
.f-finger { position: absolute; left: 105px; top: 215px; pointer-events: none; opacity: 0; z-index: 5; }
.f-touch { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--pop) 45%, transparent); box-shadow: 0 0 0 2px var(--pop); transform: scale(0); transition: transform .15s; }
.f-finger.down .f-touch { transform: scale(1); }
.hand { position: absolute; left: -16px; top: -4px; width: 48px; height: 48px; fill: #fff; stroke: #27272a; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .35)); transform-origin: 16px 4px; transition: transform .15s; }
.f-finger.down .hand { transform: scale(.9); }

@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes iFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseUp { 0% { transform: translateY(14px); opacity: 0 } 30% { opacity: 1 } 100% { transform: translateY(-12px); opacity: 0 } }
@keyframes pushBob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-5px) } }
@media (prefers-reduced-motion: reduce) { .push-bob, .rise-up { animation: none; } }
