/* tip.bshcat.com: the big amount (layout "C") in the dark card colours ("A"). Phone first. */
@font-face { font-family: "Rompies"; src: url("/fonts/rompies.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Ryland Heights"; src: url("/fonts/ryland-heights.woff2") format("woff2"); font-display: swap; }
:root {
  --ink: #1f0910; --plum: #2c0d15; --deep: #3e0e1c; --wine: #7a293b; --wine-2: #5a1b2b; --neon: #f66889;
  --blush: #ecc7bf; --cream: #fbe9e4; --quiet: rgba(236, 199, 191, .74); --line: rgba(236, 199, 191, .14);
  --font: "Alexandria", system-ui, "Segoe UI", Tahoma, sans-serif; --small: "Tajawal", "Alexandria", system-ui, sans-serif;
  --caps: "Rompies", "Alexandria", sans-serif; --script: "Ryland Heights", "Segoe Script", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; font: 400 15px/1.7 var(--font); color: var(--cream);
  background: radial-gradient(120% 55% at 50% 0%, #5a1b2b 0%, var(--ink) 64%) no-repeat, var(--ink); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
bdi { white-space: nowrap; }
h1, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; border-radius: 12px; }
::selection { background: var(--neon); color: var(--deep); }
@media (hover: hover) and (pointer: fine) {
  body { cursor: url("/img/cursor.svg") 4 3, auto; }
  a, button, label { cursor: url("/img/cursor-paw.svg") 16 16, pointer; }
  input, textarea { cursor: text; }
  button:disabled { cursor: not-allowed; }
}

.app { max-width: 440px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 0 max(26px, env(safe-area-inset-bottom)); }
.hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 18px 0; }
.me { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.me i { width: 42px; height: 42px; border-radius: 50%; flex: none; background: url(/img/avatar.webp) center/cover; box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--neon); }
.me b { display: block; font: 700 14px/1.3 var(--font); }
.me small { display: block; font: 400 11.5px/1.3 var(--small); color: var(--quiet); direction: ltr; text-align: right; }
.lang { border: 0; background: var(--plum); color: var(--blush); border-radius: 999px; padding: 8px 14px; font: 600 12px/1 var(--font); box-shadow: inset 0 0 0 1px var(--line); }
.lang:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--neon); }

.big { text-align: center; padding: 30px 10px 4px; }
.big .n { font: 400 104px/1 var(--caps); color: var(--cream); direction: ltr; text-shadow: 0 0 30px rgba(246, 104, 137, .55); display: flex; justify-content: center; align-items: flex-start; gap: 4px; }
.big .n sup { font: 400 42px/1 var(--caps); color: var(--neon); margin-top: 10px; }
.big .n span { min-width: 1ch; }
.big .n.bump span { animation: bump .32s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); } }
.steps { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.steps button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--plum); color: var(--blush); font: 600 25px/1 var(--font); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s, transform .15s; }
.steps button:hover { color: #fff; background: var(--wine-2); }
.steps button:active { transform: scale(.94); }
.steps button:disabled { opacity: .35; }
.script { font: 400 44px/1 var(--script); color: var(--neon); margin-top: 6px; }

.chips { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; padding: 20px 16px 0; }
.chip { border: 0; border-radius: 14px; height: 46px; background: var(--deep); color: var(--blush); font: 700 16px/1 var(--font); direction: ltr; box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s, box-shadow .2s, transform .15s; }
.chip:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(246, 104, 137, .6); }
.chip:active { transform: scale(.96); }
.chip.on { background: var(--neon); color: var(--deep); box-shadow: 0 6px 18px rgba(246, 104, 137, .35); }
.other { display: flex; align-items: center; gap: 8px; margin: 8px 16px 0; padding: 0 14px; height: 48px; border-radius: 14px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.other:focus-within { box-shadow: inset 0 0 0 1.5px var(--neon); }
.other span { font: 700 17px/1 var(--font); color: var(--neon); }
.other input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 600 16px/1 var(--font); }
.other input::placeholder { color: var(--quiet); font-weight: 400; font-size: 14px; }

.sheet { margin: 18px 14px 0; padding: 18px 16px 18px; border-radius: 24px; background: var(--plum); box-shadow: inset 0 0 0 1px var(--line); }
.lbl { display: flex; justify-content: space-between; align-items: center; margin: 18px 2px 8px; }
.lbl:first-child { margin-top: 0; }
.lbl label { font: 600 13px/1 var(--font); }
.lbl small { font: 400 12px/1 var(--small); color: var(--quiet); }
.fld { width: 100%; border: 0; border-radius: 14px; padding: 13px 14px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font: 500 15px/1.5 var(--font); outline: none; resize: none; unicode-bidi: plaintext; }
.fld:focus { box-shadow: inset 0 0 0 1.5px var(--neon); }
.other.bad, .other.bad:focus-within { box-shadow: inset 0 0 0 1.5px #ff9aa9; }
.lim { margin: 6px 20px 0; font: 600 12.5px/1.4 var(--small); color: #ffb3c0; }
.fld::placeholder { color: var(--quiet); opacity: .8; }

.sw, .agree { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 6px 2px; margin-top: 6px; text-align: start; font: 500 13px/1.5 var(--small); color: var(--blush); }
.sw i { width: 40px; height: 24px; border-radius: 99px; position: relative; flex: none; background: var(--wine-2); transition: background .2s; }
.sw i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.sw[aria-checked="true"] i { background: var(--neon); }
.sw[aria-checked="true"] i::after { transform: translateX(-16px); }
[dir="ltr"] .sw[aria-checked="true"] i::after { transform: translateX(16px); }
.agree { align-items: flex-start; margin-top: 14px; font-size: 12.5px; }
.agree i { width: 21px; height: 21px; border-radius: 7px; flex: none; margin-top: 1px; background: var(--wine-2); display: grid; place-items: center; transition: background .2s; }
.agree[aria-checked="true"] i { background: var(--neon); }
.agree[aria-checked="true"] i::after { content: ""; width: 10px; height: 5px; border: solid var(--deep); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.agree.need i { box-shadow: 0 0 0 2px var(--neon); animation: nudge .4s; }
@keyframes nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

.err { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 154, 169, .12); color: #ffc2cc; font: 500 13px/1.6 var(--small); }
.pay { margin-top: 16px; width: 100%; height: 56px; border: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, #ff86a2, var(--neon) 55%, #e0557a); color: var(--deep); font: 800 17px/1 var(--font);
  box-shadow: 0 10px 26px rgba(246, 104, 137, .35), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .15s, box-shadow .2s, filter .2s; }
.pay svg { width: 22px; height: 22px; fill: var(--deep); }
.pay:hover:not(:disabled) { box-shadow: 0 14px 30px rgba(246, 104, 137, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.pay:active:not(:disabled) { transform: scale(.98); }
.pay:disabled { filter: saturate(.35) brightness(.7); box-shadow: none; }
.pay.busy span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-inline-start: 10px; vertical-align: -2px; border-radius: 50%; border: 2px solid var(--deep); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font: 400 11.5px/1.6 var(--small); color: var(--quiet); text-align: center; }
.note svg { width: 13px; height: 13px; fill: currentColor; flex: none; }

.done, .closed { margin: 60px 18px 0; padding: 34px 22px; border-radius: 26px; background: var(--plum); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.done .heart { font: 400 64px/1 var(--font); color: var(--neon); text-shadow: 0 0 24px rgba(246, 104, 137, .7); animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } 60% { transform: scale(1); } }
.done h1, .closed h1 { font: 700 22px/1.5 var(--font); margin-top: 14px; }
.done p, .closed p { font: 400 14px/1.8 var(--small); color: var(--quiet); margin-top: 6px; }
.again { display: inline-block; margin-top: 20px; border: 0; border-radius: 999px; padding: 12px 22px; background: var(--wine); color: #fff; font: 600 14px/1 var(--font); text-decoration: none; }
.again:hover { background: #8d3049; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
