@font-face {
  font-family: "Hand";
  src: url("patrickhand.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.bloatfit {
  --bg1: #fff4f8; --bg2: #f7c3d6; --glow: rgba(255, 255, 255, .8);
  --ink: #3f1830; --soft: #93587a; --accent: #de4f86;
  --paper: #fffaf0; --paper-ink: #3a1a2e; --pen: #d8487f; --line: rgba(216, 72, 127, .16);
}
.abpeak {
  --bg1: #1f1870; --bg2: #0b0828; --glow: rgba(116, 98, 255, .5);
  --ink: #f4f2ff; --soft: #b3abff; --accent: #a796ff;
  --paper: #fffaf0; --paper-ink: #1b1840; --pen: #6a55f0; --line: rgba(106, 85, 240, .16);
}

html { background: var(--bg2); }
body {
  min-height: 100vh;
  min-height: 100svh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(110% 55% at 50% 38%, var(--glow), transparent 70%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hand { font-family: "Hand", "Bradley Hand", "Marker Felt", cursive; font-weight: 400; }

/* ---------- the note in the top-right corner, under TikTok's ••• ---------- */
.todo {
  position: fixed;
  top: 0;
  right: 14px;
  width: min(232px, calc(100vw - 32px));
  z-index: 3;
  pointer-events: none;
}
.arrow {
  display: block;
  width: 80px;
  height: 80px;
  margin: 4px 2px 0 auto;
  overflow: visible;
}
.arrow path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* a paper note: lined, a soft corner, a little crooked */
.note {
  position: relative;
  margin-top: 2px;
  padding: 10px 14px 10px 16px;
  border-radius: 3px 3px 3px 14px;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 32px, var(--line) 32px 33px);
  background-position: 0 4px;
  color: var(--paper-ink);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .2), 0 1px 2px rgba(0, 0, 0, .12);
  transform: rotate(-1.5deg);
}
.note::before { /* a strip of tape on top */
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 64px;
  height: 18px;
  margin-left: -32px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  transform: rotate(3deg);
}
.note .title { font-size: 19px; line-height: 24px; color: var(--pen); }
.note ol { list-style: none; }
.note li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 21px;
  line-height: 33px;
}
.note li > span { min-width: 0; }
.note li i {
  flex: 0 0 17px;
  height: 17px;
  margin-top: 8px;
  border: 2px solid var(--paper-ink);
  border-radius: 5px;
  opacity: .8;
}
.note li.auto { white-space: nowrap; }
.note li.auto i svg { display: block; width: 18px; height: 18px; overflow: visible; transform: translate(1px, -4px) scale(1.15); }
.note li.auto i svg path { fill: none; stroke: var(--pen); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dots {
  display: inline-block;
  padding: 0 7px;
  margin: 0 1px;
  border-radius: 8px;
  background: var(--paper-ink);
  color: #fff;
  font-family: -apple-system, sans-serif;
  font-weight: 900;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 1px;
  vertical-align: 2px;
}
.as { width: 22px; height: 22px; vertical-align: -5px; margin: 0 1px; }

/* tap on the App Store button inside TikTok: dim the page, wiggle the note */
.dim {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.nudge .dim { opacity: 1; pointer-events: auto; }
.note.wiggle { animation: wiggle .6s ease-in-out; }
@keyframes wiggle {
  0%, 100% { transform: rotate(-1.5deg); }
  15% { transform: rotate(-6deg) scale(1.04); }
  35% { transform: rotate(4deg) scale(1.04); }
  55% { transform: rotate(-4deg) scale(1.03); }
  75% { transform: rotate(2deg); }
}

/* ---------- the app in the middle ---------- */
.bloatfit .icon { border-radius: 27% !important; } /* its artwork has rounder corners baked in */
main {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 440px;
  margin: 0 auto;
  padding: 296px 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.icon {
  width: 128px;
  height: 128px;
  border-radius: 22.5%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22), 0 0 0 .5px rgba(0, 0, 0, .1);
}
h1 { margin-top: 20px; font-size: 34px; font-weight: 700; letter-spacing: -.025em; }
.sub { margin-top: 6px; font-size: 17px; color: var(--soft); letter-spacing: -.01em; }
.rating { margin-top: 10px; font-size: 14px; color: var(--soft); }
.rating b { color: var(--ink); font-weight: 600; }
.stars { color: #ffad0d; letter-spacing: 1px; font-size: 13px; }
.get {
  display: block;
  margin-top: 28px;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s;
}
.get:active { transform: scale(.96); }
.get img { display: block; width: 200px; height: auto; }
.hint { margin-top: 14px; font-size: 14px; color: var(--soft); }

/* outside TikTok (Safari): no to-do, the page centres and redirects */
.out .todo, .out .dim { display: none; } /* plain Safari only: no note, the button and "tap here" */
.out main { padding-top: 56px; }
.tap { margin-top: 26px; font-size: 24px; color: var(--accent); }
.out .get { margin-top: 10px; }
.in .out-only { display: none; }


@media (max-height: 700px) {
  main { padding-top: 284px; padding-bottom: 32px; }
  .icon { width: 104px; height: 104px; border-radius: 22.5%; }
  h1 { font-size: 30px; margin-top: 14px; }
  .get { margin-top: 20px; }
}

@media (max-height: 600px) {
  main { padding-top: 246px; padding-bottom: 20px; }
  .icon { width: 84px; height: 84px; border-radius: 22.5%; }
  h1 { font-size: 26px; margin-top: 10px; }
  .get { margin-top: 16px; }
}
