/* spec: PLT-SWIPELINK */
/* The swipe link page. Portrait, from 360 x 640 up; text in fields 16 px or more, buttons 48 px tall or more, everything
   inside the safe areas; no page scroll, zoom or pull-to-refresh. */
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; background: #15181c; color: #f3efe4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overscroll-behavior: none; -webkit-text-size-adjust: 100%; -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent; touch-action: none; }
body { position: fixed; inset: 0; }
#pic { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; }
#bar { position: fixed; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  top: calc(env(safe-area-inset-top) + 8px); height: 6px; border-radius: 3px; background: #3a3f46; overflow: hidden; pointer-events: none; }
#barFill { height: 100%; width: 0; background: #EF9F27; transition: width .2s ease-out; }
#cap { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 22px); height: 24px; line-height: 24px;
  text-align: center; white-space: nowrap; overflow: hidden; font-size: 16px; font-weight: 600; pointer-events: none; }
#msg { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 50px); text-align: center; color: #EF9F27;
  font-size: 18px; font-weight: 700; opacity: 0; transition: opacity .15s; pointer-events: none; }
#again { position: fixed; right: max(12px, env(safe-area-inset-right)); top: calc(env(safe-area-inset-top) + 50px); height: 44px;
  padding: 0 14px; border-radius: 22px; border: 1.5px solid #EF9F27; background: rgba(21,24,28,.85); color: #f3efe4;
  font-size: 15px; font-weight: 600; font-family: inherit; }
#card { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #15181c;
  padding: calc(env(safe-area-inset-top) + 24px) max(16px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 24px) max(16px, env(safe-area-inset-left));
  box-sizing: border-box; overflow-y: auto; touch-action: pan-y; }
#card[hidden], #again[hidden], #upright[hidden] { display: none; }
.panel { width: 100%; max-width: 420px; background: #1f242b; border-radius: 16px; padding: 22px 18px; box-sizing: border-box; }
.panel h1 { font-size: 26px; line-height: 1.2; margin: 0 0 12px; }
.panel p { font-size: 17px; line-height: 1.45; margin: 0 0 14px; }
.panel p.small { font-size: 14px; color: #b9b4a8; }
.panel label { display: block; font-size: 15px; color: #b9b4a8; margin: 14px 0 6px; }
.panel input { width: 100%; box-sizing: border-box; height: 48px; font-size: 17px; padding: 0 12px; border-radius: 10px;
  border: 1.5px solid #4a5059; background: #15181c; color: #f3efe4; -webkit-user-select: text; user-select: text; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices button { flex: 1 1 auto; }
button.pill { min-height: 48px; padding: 0 18px; border-radius: 24px; border: 1.5px solid #4a5059; background: #2a3038; color: #f3efe4;
  font-size: 16px; font-weight: 600; font-family: inherit; }
button.pill.on { border-color: #EF9F27; background: #3b3222; }
button.go { width: 100%; margin-top: 20px; min-height: 52px; border-radius: 26px; border: 0; background: #EF9F27; color: #15181c;
  font-size: 18px; font-weight: 700; font-family: inherit; }
button.go:disabled { opacity: .4; }
button.link { width: 100%; margin-top: 10px; min-height: 48px; border: 0; background: none; color: #b9b4a8; font-size: 16px; font-family: inherit; }
#upright { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; background: #15181c; }
#upright p { font-size: 22px; font-weight: 600; }
#safe { position: fixed; left: 0; bottom: 0; width: 1px; height: 0; padding-bottom: env(safe-area-inset-bottom); padding-top: env(safe-area-inset-top); visibility: hidden; pointer-events: none; }
.measure { position: fixed; inset: 0; background: #15181c; touch-action: none; }
.measure .mline { position: absolute; left: 0; right: 0; height: 0; border-top: 3px solid #EF9F27; }
.measure .mline.drag { border-top-color: #f3efe4; }
.measure .mline.drag::after { content: ""; position: absolute; left: 50%; top: -24px; width: 64px; height: 44px; margin-left: -32px;
  border-radius: 22px; background: rgba(243,239,228,.18); }
.measure .mtext { position: absolute; left: 16px; right: 16px; font-size: 16px; line-height: 1.35; text-align: center; }
.measure .mbtns { position: absolute; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 16px); display: flex; gap: 10px; }
.measure .mbtns button { flex: 1; }
