/*
 * ONBOARDING (workstream A): the first-run layer #onboard (.ob-*), the state check (.ob-map, .ob-row), the install
 * sheet (.ob-install .in-*) and installed-app mode (html.standalone). Party Night: tokens.css only, chunky buttons from
 * components.css. Phones: a full-screen layer · PC (≥ 701px): the same screens in a 520px centred window.
 * Owner: ONBOARD.
 */

/* ---------- the layer ---------- */
#onboard { position: fixed; inset: 0; z-index: var(--z-onboard); display: none; }
#onboard.on { display: block; }
#onboard.leave { animation: obOut .28s var(--out) forwards; pointer-events: none; }
@keyframes obOut { to { opacity: 0; } }
body.ob-open { overflow: hidden; }

.ob-scrim { position: absolute; inset: 0; background: var(--night-0); }
.ob-win {
  position: absolute; inset: 0; display: flex; flex-direction: column; outline: none;
  padding: calc(var(--safe-t) + 10px) var(--gutter) calc(var(--safe-b) + 14px);
  background:
    radial-gradient(60% 34% at 20% 0%, rgba(123, 97, 255, .28), transparent 70%),
    radial-gradient(50% 30% at 100% 6%, rgba(255, 111, 177, .14), transparent 70%),
    radial-gradient(70% 40% at 60% 108%, rgba(61, 181, 255, .12), transparent 70%),
    var(--night-0);
}
.ob-win::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.4px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.15)); mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.15));
}
.ob-top { position: relative; flex: none; display: flex; align-items: center; justify-content: center; min-height: 44px; }
.ob-pips { display: flex; gap: 6px; }
.ob-pips i { width: 22px; height: 6px; border-radius: 99px; background: var(--line-2); transition: width .3s var(--out), background .3s; }
.ob-pips i.done { background: var(--grape-edge); }
.ob-pips i.on { width: 38px; background: var(--grape); }
.ob-x { position: absolute; right: 0; top: 0; }
.ob-stage { position: relative; flex: 1; min-height: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.ob-step {
  grid-area: 1 / 1; min-height: 0; display: flex; flex-direction: column;
  overflow-x: hidden; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain;
}
.ob-step::-webkit-scrollbar { display: none; }
.ob-step.in { animation: obIn .4s var(--out) both; }
.ob-step.in-back { animation: obInBack .4s var(--out) both; }
.ob-step.leave { animation: obLeave .3s var(--out) forwards; pointer-events: none; }
.ob-step.leave.back { animation-name: obLeaveBack; }
@keyframes obIn { from { transform: translateX(56px); opacity: 0; } }
@keyframes obInBack { from { transform: translateX(-56px); opacity: 0; } }
@keyframes obLeave { to { transform: translateX(-56px); opacity: 0; } }
@keyframes obLeaveBack { to { transform: translateX(56px); opacity: 0; } }

/* one step: art + words up top, the buttons in the thumb zone */
.ob-art { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: 10px 0; }
.ob-copy { flex: none; text-align: center; }
.ob-copy .eyebrow { margin-bottom: 10px; }
.ob-h { margin: 0; font: 800 27px/1.1 var(--f-display); letter-spacing: -.03em; text-wrap: balance; }
.ob-title { font-size: 31px; }
.ob-title span { display: block; }
.ob-p { margin: 12px auto 0; max-width: 400px; font: 600 16px/1.45 var(--f-ui); color: var(--ink-2); text-wrap: pretty; }
.ob-sub { max-width: 380px; margin-left: auto; margin-right: auto; text-wrap: pretty; }
.ob-acts { flex: none; display: grid; gap: 6px; padding-top: 18px; }
.ob-acts .btn-xl, .ob-wide { width: 100%; }
.ob-acts .btn-xl { height: 60px; }
.ob-quiet { justify-self: center; min-height: 44px; padding: 10px 14px; font-size: 15px; }
.ob-fine { margin: 6px 0 0; text-align: center; }
.ob-duo { display: grid; gap: 10px; }
.ob-duo .btn { width: 100%; }
.btn[aria-busy="true"] { filter: none; cursor: progress; }
.ob-spin { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; animation: obTurn .8s linear infinite; }
@keyframes obTurn { to { transform: rotate(360deg); } }

/* ---------- 1 · Welcome ---------- */
.ob-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.ob-brand { display: inline-flex; align-items: center; gap: 10px; }
.ob-brand .wordmark { font-size: 22px; }
.ob-trio { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding-top: 18px; }
.ob-spark { position: absolute; left: 50%; top: -6px; width: 300px; transform: translateX(-50%); pointer-events: none; }
.ob-bob { display: block; animation: obHop 1.7s var(--out) infinite; }
.ob-bob.l { animation-delay: -.55s; }
.ob-bob.r { animation-delay: -1.1s; }
.ob-bob.l .chip, .ob-bob.r .chip { margin-bottom: 4px; }
@keyframes obHop { 0%, 55%, 100% { transform: translateY(0); } 25% { transform: translateY(-16px) rotate(-3deg); } 40% { transform: translateY(0) scale(1.04, .96); } }

/* ---------- 2 · 21+ ---------- */
.ob-ask, .ob-sleep, .ob-me { position: relative; display: inline-block; }
.ob-ask .chip { animation: bob 3.4s ease-in-out infinite; }
.ob-21 {
  position: absolute; right: -40px; top: -14px; width: 70px; height: 70px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--gold-ink); background: var(--gold);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 4px 0 var(--gold-edge), 0 14px 30px -10px rgba(0,0,0,.7);
  transform: rotate(12deg); animation: obPop .55s var(--spring) .12s both;
}
.ob-21 b { font: 900 25px/1 var(--f-display); letter-spacing: -.04em; }
.ob-21 i { font: 900 17px/1 var(--f-display); font-style: normal; margin: -10px 0 0 1px; }
@keyframes obPop { from { transform: rotate(12deg) scale(.2); opacity: 0; } }
.ob-z { position: absolute; right: -18px; top: -4px; display: flex; gap: 2px; pointer-events: none; }
.ob-z i { font: 800 22px/1 var(--f-display); font-style: normal; color: var(--grape-ink); opacity: 0; animation: obZ 2.4s ease-in-out infinite; }
.ob-z i:nth-child(2) { font-size: 17px; animation-delay: .6s; margin-top: -14px; }
.ob-z i:nth-child(3) { font-size: 13px; animation-delay: 1.2s; margin-top: -26px; }
@keyframes obZ { 0% { opacity: 0; transform: translate(-6px, 8px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -18px); } }

/* ---------- compact age card (party links) ---------- */
#onboard.is-card .ob-scrim { background: rgba(9, 7, 20, .58); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: fade .25s var(--out); }
#onboard.is-card .ob-win { inset: auto 0 0 0; padding: 0; background: none; }
#onboard.is-card .ob-win::before, #onboard.is-card .ob-top { display: none; }
#onboard.is-card .ob-step { overflow: visible; }
.ob-card {
  position: relative; margin: 0 auto; width: 100%; max-width: 560px; text-align: center;
  padding: 50px 20px calc(18px + var(--safe-b));
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 40%), var(--night-1);
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 28px 28px 0 0;
  box-shadow: 0 -30px 80px -20px rgba(0,0,0,.8); animation: sheetIn .38s var(--out) both;
}
.ob-card-chip { position: absolute; left: 50%; top: -36px; transform: translateX(-50%); }
.ob-card-chip .chip { animation: bob 3.4s ease-in-out infinite; }
.ob-card .eyebrow { margin-bottom: 8px; }
.ob-card-acts { display: grid; grid-template-columns: 1fr 1.8fr; gap: 10px; margin-top: 20px; }
.ob-card-acts .btn { width: 100%; }

/* ---------- 3 · This is you ---------- */
.ob-me-chip { display: block; }
.ob-dice {
  position: absolute; right: -18px; bottom: 6px; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 17px; cursor: pointer;
  display: grid; place-items: center; color: var(--ink); background: var(--night-4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 0 var(--edge-dark), 0 10px 20px -8px rgba(0,0,0,.6);
  transition: transform .09s var(--out), box-shadow .09s var(--out);
}
.ob-dice::after { content: ""; position: absolute; inset: -4px; }
.ob-dice:hover { filter: brightness(1.1); }
.ob-dice:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 var(--edge-dark); }
.ob-dice.spin svg { animation: obRoll .55s var(--spring); }
@keyframes obRoll { from { transform: rotate(-200deg) scale(.6); } }
.ob-handle {
  display: inline-block; max-width: 100%; margin: 0; padding: 11px 18px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--night-2); border: 1px solid var(--line-2); font: 800 20px/1 var(--f-display); letter-spacing: -.02em;
}

/* ---------- 5 · First-deposit offer ---------- */
.ob-eq {
  position: relative; display: flex; align-items: stretch; gap: 6px; width: 100%; max-width: 420px; margin-top: 40px;
  padding: 40px 12px 14px; border-radius: 26px; background: var(--night-2); border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 0 var(--edge-dark);
}
.ob-eq-chip { position: absolute; left: 50%; top: -44px; transform: translateX(-50%); }
.ob-eq-chip .chip { animation: bob 3.4s ease-in-out infinite; }
.ob-eq > i { align-self: center; font: 800 22px/1 var(--f-display); font-style: normal; color: var(--ink-3); }
.ob-eq-t { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 14px 4px; border-radius: 16px; background: rgba(255,255,255,.04); }
.ob-eq-t b { font: 800 26px/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ob-eq-t small { font: 700 13px/1.1 var(--f-ui); color: var(--ink-3); text-align: center; }
.ob-eq-t.go { background: var(--go-soft); }
.ob-eq-t.go b { color: var(--go); }
.ob-eq-t.gold { background: var(--gold-soft); }
.ob-eq-t.gold b, .ob-eq-t.gold small { color: var(--gold); }

/* ---------- 4 · Your state ---------- */
.ob-loc { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 100%; }
.ob-mapbox { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 12px; padding: 14px 0 4px; }
.ob-mapwrap { width: 100%; }
.ob-map { display: block; width: 100%; height: auto; overflow: visible; }
.ob-map-ph { aspect-ratio: 975 / 610; border-radius: 22px; background: linear-gradient(90deg, var(--night-1), var(--night-2), var(--night-1)); background-size: 200% 100%; animation: obShim 1.3s linear infinite; }
@keyframes obShim { to { background-position: -200% 0; } }
.ob-st { stroke: var(--night-0); stroke-width: 1.4; stroke-linejoin: round; transition: fill .25s; }
.ob-st.cash { fill: color-mix(in srgb, var(--grape) 55%, var(--night-3)); }
.ob-st.off { fill: var(--night-3); }
.ob-map.clickable .ob-st { cursor: pointer; }
.ob-map.clickable .ob-st.hover { stroke: #fff; stroke-width: 2.6; }
.ob-map.clickable .ob-st.cash.hover { fill: var(--grape); }
.ob-map.clickable .ob-st.off.hover { fill: var(--night-4); }
.ob-st.mine { fill: var(--go); animation: obFill .6s var(--out) both; }
.ob-map.is-off .ob-st.mine { fill: var(--ink-2); }
@keyframes obFill { from { fill: #fff; } }
.ob-ring { fill: none; stroke: var(--go); stroke-width: 5; transform-box: fill-box; transform-origin: center; animation: obRing 2s var(--out) infinite; pointer-events: none; }
.ob-ring.r2 { animation-delay: 1s; }
.ob-map.is-off .ob-ring { stroke: var(--ink-2); }
@keyframes obRing { from { transform: scale(.35); opacity: 1; } to { transform: scale(2.8); opacity: 0; } }
.ob-pin { animation: obPin .75s var(--spring) .15s both; pointer-events: none; }
.ob-pin .chip { filter: drop-shadow(0 6px 6px rgba(0,0,0,.45)); }
@keyframes obPin { from { transform: translateY(-300px); opacity: 0; } 25% { opacity: 1; } }
.ob-radar circle { fill: none; stroke: var(--grape-ink); stroke-width: 4; transform-box: fill-box; transform-origin: center; opacity: 0; animation: obRadar 2.1s var(--out) infinite; }
.ob-radar circle:nth-child(2) { animation-delay: .7s; }
.ob-radar circle:nth-child(3) { animation-delay: 1.4s; }
@keyframes obRadar { from { transform: scale(.2); opacity: .95; } to { transform: scale(5.2); opacity: 0; } }
.ob-legend { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 14px; font: 700 13px/1.2 var(--f-ui); color: var(--ink-3); }
.ob-key { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--night-2); border: 1px solid var(--line-2); color: var(--ink-2); }
.ob-key i { width: 12px; height: 12px; border-radius: 3px; background: color-mix(in srgb, var(--grape) 55%, var(--night-3)); }
.ob-tip {
  position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 16px)); pointer-events: none; white-space: nowrap;
  padding: 8px 11px; border-radius: 11px; background: #fff; color: #140F2B; font: 800 13.5px/1 var(--f-ui);
  box-shadow: 0 12px 26px -10px rgba(0,0,0,.7);
}
.ob-tip em { font-style: normal; font-weight: 700; margin-left: 6px; color: #6B5FA8; }
.ob-tip em.cash { color: #0E8C51; }
.ob-badge { display: grid; justify-items: center; gap: 8px; margin: 0 auto; padding: 24px 34px; border-radius: 28px; background: var(--night-2); border: 2px solid var(--line-2); box-shadow: 0 4px 0 var(--edge-dark); }
.ob-badge b { font: 900 48px/1 var(--f-display); letter-spacing: -.04em; }
.ob-badge span { font: 800 13px/1 var(--f-ui); color: var(--ink-3); }
.ob-badge.cash { border-color: var(--go); }
.ob-badge.cash b { color: var(--go); }

/* the picker: the list scrolls, the rest stays put */
.ob-step[data-view="picker"] { overflow: hidden; }
.ob-v-picker { height: 100%; min-height: 0; }
.ob-pick-head { flex: none; display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; }
.ob-h2 { margin: 0; font: 800 20px/1.2 var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
.ob-search { flex: none; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 16px; background: var(--night-0); border: 2px solid var(--line-2); color: var(--ink-3); box-shadow: inset 0 3px 0 rgba(0,0,0,.3); cursor: text; }
.ob-search:focus-within { border-color: var(--grape); }
.ob-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font: 700 16px/1 var(--f-ui); color: var(--ink); }
.ob-search input::placeholder { color: var(--ink-3); }
.ob-search input::-webkit-search-cancel-button { filter: invert(.7); }
.ob-mapbox.is-pick { flex: none; position: relative; padding: 10px 0 0; }
.ob-list { flex: 1 1 auto; min-height: 140px; overflow-y: auto; overscroll-behavior: contain; margin: 10px -8px 0; padding: 0 8px 8px; display: grid; align-content: start; gap: 2px; scrollbar-width: thin; scrollbar-color: var(--night-4) transparent; }
.ob-row {
  appearance: none; width: 100%; height: 52px; padding: 0 12px 0 14px; border: 0; border-radius: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  background: rgba(255,255,255,.025); color: var(--ink); font: 700 16px/1.2 var(--f-ui);
}
.ob-row:hover, .ob-row:focus-visible { background: rgba(255,255,255,.07); }
.ob-row:active { transform: translateY(1px); }
.ob-row-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-row-t { flex: none; font: 800 13px/1 var(--f-ui); padding: 6px 9px; border-radius: 8px; }
.ob-row-t.cash { background: var(--go-soft); color: var(--go); }
.ob-row-t.off { background: rgba(255,255,255,.06); color: var(--ink-3); }
.ob-none { margin: 16px 4px; font: 600 15px/1.4 var(--f-ui); color: var(--ink-3); }

/* phones under ~760px tall: tighten the art so the buttons stay in reach without scrolling */
@media (max-width: 700px) and (max-height: 800px) {
  .ob-h { font-size: 25px; }
  .ob-title { font-size: 28px; }
  .ob-p { font-size: 15.5px; margin-top: 10px; }
  .ob-acts { padding-top: 14px; }
  .ob-mapbox { padding-top: 10px; gap: 10px; }
}

/* ---------- PC: the same screens in a centred 520px window ---------- */
@media (min-width: 701px) {
  .ob-scrim { background: rgba(9, 7, 20, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade .25s var(--out); }
  .ob-win {
    inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(520px, calc(100vw - 48px)); height: min(740px, calc(100vh - 48px)); height: min(740px, calc(100dvh - 48px));
    padding: 18px 32px 26px; border-radius: var(--r-xl); border: 1px solid var(--line-2); overflow: hidden;
    background:
      radial-gradient(70% 40% at 20% 0%, rgba(123, 97, 255, .26), transparent 70%),
      radial-gradient(50% 30% at 100% 6%, rgba(255, 111, 177, .12), transparent 70%),
      var(--night-1);
    box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 40px 100px -20px rgba(0,0,0,.85);
    animation: modalIn .34s var(--spring) both;
  }
  #onboard.leave .ob-win { animation: modalOut .22s var(--out) forwards; }
  .ob-duo { grid-template-columns: 1fr 1fr; }
  .ob-duo:has(> [hidden]) { grid-template-columns: 1fr; }
  .ob-h { font-size: 29px; }
  .ob-title { font-size: 33px; }
  #onboard.is-card .ob-win { inset: auto; left: 50%; top: 50%; width: min(460px, calc(100vw - 48px)); height: auto; overflow: visible; box-shadow: none; animation: none; }
  .ob-card { border-bottom: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 52px 28px 26px; box-shadow: 0 40px 100px -20px rgba(0,0,0,.85); animation: obCardIn .34s var(--spring) both; }
  @keyframes obCardIn { from { transform: translateY(14px) scale(.96); opacity: 0; } }
  .ob-list { min-height: 120px; }
}
/* a short PC window: the map gives way first */
@media (min-width: 701px) and (max-height: 700px) {
  .ob-win { padding-top: 12px; padding-bottom: 18px; }
  .ob-mapbox.is-pick { display: none; }
}
/* (fix) a phone on its side (~390px tall): the art used to shrink to nothing and the Chippers sat on top of the title;
   now each step keeps its natural height and scrolls instead */
@media (max-height: 500px) {
  .ob-art { flex: none; }
  .ob-hero { gap: 12px; }
}

/* ---------- Get the app (install sheet) ---------- */
.ob-install .sheet-body { padding-top: 6px; }
.ob-install.is-modal .sheet-body { padding-top: 22px; }
.in-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.in-icon { width: 72px; height: 72px; flex: none; border-radius: 18px; box-shadow: 0 0 0 1px var(--line-2), 0 12px 26px -10px rgba(0,0,0,.8); }
.in-ht { flex: 1; min-width: 0; }
.in-title { margin: 0; font: 800 22px/1.1 var(--f-display); letter-spacing: -.02em; }
.in-sub { margin: 6px 0 0; font: 600 14.5px/1.35 var(--f-ui); color: var(--ink-2); }
.in-x { align-self: flex-start; }
.in-body { display: grid; gap: 10px; }
.in-body > .btn-xl { width: 100%; }
.in-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.in-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "n t" "n a"; column-gap: 14px; row-gap: 10px; padding: 14px 14px 14px 12px; border-radius: 18px; background: var(--night-2); border: 1px solid var(--line); }
.in-n { grid-area: n; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--grape); box-shadow: 0 3px 0 var(--grape-edge); font: 800 15px/1 var(--f-display); }
.in-t { grid-area: t; align-self: center; font: 700 15.5px/1.35 var(--f-ui); }
.in-art { grid-area: a; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.in-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 36px; padding: 0 11px; border-radius: 12px; background: var(--night-4); color: var(--ink); box-shadow: 0 3px 0 var(--edge-dark); }
.in-pill b { font: 900 20px/1 var(--f-ui); letter-spacing: .02em; }
.in-add { font: 800 15px/1 var(--f-ui); color: var(--grape-ink); }
.in-menu { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-radius: 12px; background: var(--night-4); color: var(--ink); font: 700 14px/1 var(--f-ui); box-shadow: 0 3px 0 var(--edge-dark); }
.in-arrow { color: var(--ink-3); font: 800 18px/1 var(--f-ui); }
.in-tog { position: relative; width: 50px; height: 30px; border-radius: 999px; background: var(--go); box-shadow: inset 0 2px 4px rgba(0,0,0,.2); }
.in-tog i { position: absolute; right: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.in-fine { margin: 4px 0 0; text-align: center; }
.in-phone { display: grid; justify-items: center; gap: 10px; margin-top: 6px; text-align: center; }
.in-h { margin: 6px 0 0; font: 800 16px/1.2 var(--f-ui); }
.in-h2 { margin: 0; font: 700 14px/1.3 var(--f-ui); color: var(--ink-2); }
.in-qr { display: grid; justify-items: center; gap: 10px; }
.in-qr-card { padding: 10px; border-radius: 18px; background: #fff; line-height: 0; box-shadow: 0 4px 0 var(--edge-dark); }
.in-qr-card svg { display: block; }                 /* qrSvg sizes itself to whole pixels per module (crisp) */
.in-qr-ph { width: 220px; height: 220px; border-radius: 18px; background: var(--night-2); }
.in-link { appearance: none; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--night-0); color: var(--ink); font: 800 15px/1 var(--f-ui); cursor: pointer; }
.in-link span { color: var(--ink-3); display: grid; }
.in-later { display: block; margin: 14px auto 0; }

/* ---------- installed app (html.standalone, js/onboard/shell.js) ---------- */
/* tokens.css grows --bar-h by --sat, so everything placed under the header (banner, toasts, rails) moves with it */
html.standalone, html.standalone body { overscroll-behavior-y: none; }
html.standalone .bar { padding-top: var(--sat); }
html.standalone .bar-in { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
html.standalone .bar, html.standalone .gm-dock, html.standalone .act-dock, html.standalone .sheet-head, html.standalone .ob-top {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
