:root {
  --ivory: #f3efe6;
  --slate: #455e65;
  --ochre: #a97546;
  --gold: #b38d51;
  --ink: #252421;
  --serif: Baskerville, "Baskerville Old Face", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 20px;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
.scenery { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.motion-layer { position: absolute; inset: 0; will-change: transform; }
.shape { position: absolute; will-change: transform; }
.slate {
  width: clamp(220px, 38vw, 600px); aspect-ratio: 1.3;
  top: -12%; left: -12%; background: var(--slate); opacity: .19;
  border-radius: 61% 39% 57% 43% / 48% 55% 45% 52%;
  animation: float-a 8s ease-in-out infinite alternate;
}
.ochre {
  width: clamp(240px, 43vw, 650px); aspect-ratio: 1.15;
  right: -13%; bottom: -17%; background: var(--ochre); opacity: .23;
  border-radius: 42% 58% 40% 60% / 55% 38% 62% 45%;
  animation: float-b 10s ease-in-out infinite alternate;
}
.gold {
  width: clamp(110px, 19vw, 280px); aspect-ratio: 1;
  right: 7%; top: 4%; background: var(--gold); opacity: .12;
  border-radius: 55% 45% 65% 35% / 38% 59% 41% 62%;
  animation: float-a 12s ease-in-out infinite alternate-reverse;
}
.orbit {
  width: clamp(260px, 39vw, 570px); height: clamp(390px, 54vw, 730px);
  left: -17%; bottom: -27%; border: 2px solid var(--gold); opacity: .48;
  border-radius: 50% 45% 48% 52% / 45% 50% 50% 55%;
  animation: orbit 13s ease-in-out infinite alternate;
}
.spark { position: absolute; color: var(--gold); opacity: .7; font-size: 28px; animation: twinkle 3.5s ease-in-out infinite alternate; }
.spark-a { top: 20%; left: 19%; }
.spark-b { top: 29%; right: 15%; font-size: 20px; animation-delay: -2s; }
.spark-c { bottom: 19%; left: 23%; font-size: 23px; animation-delay: -3s; }
.dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--ochre); opacity: .5; animation: twinkle 4.2s ease-in-out infinite alternate; }
.dot-a { top: 12%; right: 28%; }
.dot-b { bottom: 25%; right: 24%; animation-delay: -2s; }
.shop { position: relative; z-index: 1; width: min(100%, 440px); text-align: center; display: grid; justify-items: center; gap: 20px; }
.logo { display: block; width: min(100%, 400px); height: auto; mix-blend-mode: multiply; }
.checkout { width: min(100%, 340px); padding: 25px 24px 19px; border: 1px solid rgba(179,141,81,.35); border-radius: 26px; background: rgba(255,253,248,.9); box-shadow: 0 12px 42px rgba(69,94,101,.08); }
.eyebrow { margin: 0 0 10px; color: var(--slate); font: 600 11px/1.4 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .16em; }
.price { margin: 0 0 21px; font-size: 56px; line-height: 1; letter-spacing: -.035em; }
.price span { font: 600 12px/1 system-ui, sans-serif; color: var(--slate); letter-spacing: .06em; }
.pay-button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; text-decoration: none; display: flex; justify-content: center; align-items: center; gap: 14px; width: 100%; min-height: 58px; border: 0; border-radius: 999px; padding: 14px 20px; background: var(--slate); color: #fffdf8; font: 500 19px/1.2 var(--serif); cursor: pointer; transition: background .18s, transform .18s, box-shadow .18s; }
.pay-button svg { flex: none; transition: transform .18s; }
@media (hover: hover) and (pointer: fine) {
  .pay-button:hover { background: #344c53; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(69,94,101,.16); }
  .pay-button:hover svg { transform: translateX(4px); }
}
.pay-button:active { background: #344c53; transform: scale(.97); box-shadow: 0 2px 8px rgba(69,94,101,.12); }
.pay-button:focus-visible, .qr-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.secure { margin: 12px 0 0; color: var(--slate); font: 13px/1.4 system-ui,sans-serif; }
.qr-option { display: grid; justify-items: center; gap: 8px; margin-top: 16px; padding-top: 13px; border-top: 1px solid rgba(179,141,81,.28); }
.qr-label { font: 13px/1.4 system-ui,sans-serif; color: var(--slate); }
.qr-link { display: block; line-height: 0; border-radius: 9px; background: white; padding: 3px; touch-action: manipulation; }
.qr-link img { display: block; width: 144px; height: 144px; image-rendering: pixelated; }
@keyframes float-a { from { transform: translate(-14px,-12px) rotate(-13deg) scale(.97); } to { transform: translate(42px,32px) rotate(13deg) scale(1.05); } }
@keyframes float-b { from { transform: translate(12px,14px) rotate(7deg) scale(1.04); } to { transform: translate(-40px,-30px) rotate(-16deg) scale(.96); } }
@keyframes orbit { from { transform: rotate(-35deg) translate(-12px,0); } to { transform: rotate(-17deg) translate(36px,-25px); } }
@keyframes twinkle { from { transform: translateY(0) scale(.75); opacity: .33; } to { transform: translateY(-13px) scale(1.16); opacity: .82; } }
@media (max-height: 820px) { .shop { gap: 12px; } .logo { width: min(100%, 320px); } }
@media (max-width: 540px) {
  .shop { width: min(100%, 420px); gap: 16px; }
  .logo { width: min(83%, 310px); }
  .checkout { width: 100%; max-width: 390px; padding: 22px 20px 18px; border-radius: 24px; }
  .price { font-size: 54px; margin-bottom: 17px; }
  .pay-button { min-height: 60px; font-size: 20px; }
  .qr-link img { width: 132px; height: 132px; }
  .slate { left: -29%; top: -7%; }
  .ochre { right: -27%; bottom: -9%; }
  .gold { right: -9%; top: 8%; }
  .orbit { left: -44%; bottom: -23%; }
  .spark-a { left: 7%; top: 16%; font-size: 20px; }
  .spark-b { right: 6%; top: 27%; font-size: 17px; }
  .spark-c { left: 6%; bottom: 12%; font-size: 17px; }
}
@media (max-width: 540px) and (max-height: 720px) {
  body { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .shop { gap: 9px; }
  .logo { width: min(78%, 232px); }
  .checkout { padding: 16px 18px 13px; }
  .eyebrow { margin-bottom: 7px; letter-spacing: .12em; }
  .price { font-size: 48px; margin-bottom: 13px; }
  .pay-button { min-height: 56px; }
  .secure { margin-top: 9px; }
  .qr-option { margin-top: 11px; padding-top: 10px; gap: 6px; }
  .qr-link img { width: 120px; height: 120px; }
}
@media (max-height: 550px) and (min-width: 541px) {
  .shop { width: min(100%, 760px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 22px; }
  .logo { width: min(100%, 340px); }
  .checkout { padding: 16px 20px 14px; }
  .price { font-size: 48px; margin-bottom: 12px; }
  .qr-option { margin-top: 12px; padding-top: 10px; }
  .qr-link img { width: 112px; height: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-layer { transform: none !important; }
}
