:root {
  color-scheme: light;
  --paper: #fcf7f4;
  --cream: #fffaf8;
  --ink: #271a24;
  --plum: #531d3e;
  --light-plum: #73445f;
  --muted: #715765;
  --line: #dac3ce;
  --petal-fill: radial-gradient(ellipse at 34% 30%, #fff0f2, #f8c5d4 52%, #d9759a 100%);
  --serif: "Cormorant Garamond", Georgia, serif;
  --ui: "Manrope Variable", Arial, sans-serif;
  --gutter: clamp(17px, 5vw, 64px);
}
* { box-sizing: border-box; }
html { min-width: 290px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 500 15px/1.53 var(--ui);
}
body.has-dialog { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .53; cursor: default; }
a, button, input, textarea, select { outline-offset: 4px; }
:focus-visible { outline: 2px solid #94416f; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, legend { font-family: var(--serif); font-weight: 600; line-height: 1.03; }
h1 { font-size: clamp(51px, 7vw, 89px); letter-spacing: -.049em; }
h2 { font-size: clamp(32px, 4vw, 47px); letter-spacing: -.035em; }
h3 { font-size: 30px; letter-spacing: -.023em; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; width: 20px; height: 20px; stroke-width: 1.65px; }
.page-shell { width: min(100%, 1280px); margin: 0 auto; padding: 0 var(--gutter); }
.masthead {
  min-height: 77px;
  display: flex;
  gap: clamp(15px, 4vw, 43px);
  align-items: center;
  border-bottom: 1px solid #e8d9df;
}
.wordmark {
  font: 600 clamp(29px, 4.7vw, 44px)/1 var(--serif);
  letter-spacing: -.043em;
  text-decoration: none;
  color: #281620;
}
.masthead-rule { flex: 1; display: flex; align-items: center; gap: 7px; color: #7d4966; }
.masthead-rule::before, .masthead-rule::after { content: ""; height: 1px; flex: 1; background: #d3b9c9; }
.masthead-rule svg { width: 13px; height: 13px; fill: currentColor; }
.desktop-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.desktop-nav a, .profile-link, .mobile-nav a { text-decoration: none; }
.desktop-nav [aria-current=page] { text-decoration: underline; text-underline-offset: 7px; }
.profile-link { display: flex; gap: 7px; align-items: center; font-weight: 750; color: var(--plum); }
.profile-link svg { width: 21px; height: 21px; }
.app { min-height: 55vh; }
.loading { padding: 60px 0; color: var(--muted); }
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(290px, 37vw, 470px);
  padding: clamp(32px, 5vw, 65px) 0;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -2% 0 31%;
  background: url("/assets/hero-sakura-clean.webp") right center / contain no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 20%);
  opacity: .89;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(57px, 8.9vw, 124px);
  font-weight: 500;
  letter-spacing: -.067em;
  line-height: .80;
  color: #170f18;
}
.hero em { font-weight: 500; }
.hero-cta { margin-top: clamp(26px, 4vw, 44px); }
.hero-petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-petals span {
  --swing: -72px;
  --fall: 130px;
  position: absolute;
  left: 61%;
  top: 48%;
  width: 15px;
  height: 20px;
  border-radius: 68% 42% 72% 36%;
  background: var(--petal-fill);
  box-shadow: inset 0 0 0 1px #e6a1b435;
  opacity: 0;
}
.hero-petals span:nth-child(2) { left: 72%; top: 56%; width: 11px; height: 15px; --swing: -94px; --fall: 105px; animation-delay: .18s; }
.hero-petals span:nth-child(3) { left: 84%; top: 43%; width: 18px; height: 24px; --swing: -76px; --fall: 151px; animation-delay: .39s; }
.hero-petals span:nth-child(4) { left: 58%; top: 57%; width: 10px; height: 15px; --swing: -39px; --fall: 98px; animation-delay: .59s; }
.hero-petals span:nth-child(5) { left: 94%; top: 52%; width: 13px; height: 17px; --swing: -47px; --fall: 130px; animation-delay: .78s; }
@keyframes sakura-petal {
  0% { opacity: 0; transform: translate(0, -21px) rotate(-35deg) scale(.8); }
  21% { opacity: .76; }
  49% { opacity: .86; transform: translate(-18px, 46px) rotate(55deg); }
  100% { opacity: 0; transform: translate(var(--swing), var(--fall)) rotate(190deg) scale(.84); }
}
.section-line { display: flex; gap: 15px; align-items: center; color: var(--plum); font: 700 14px/1.35 var(--ui); letter-spacing: normal; margin: 0 0 17px; }
.section-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-line svg { width: 13px; height: 13px; }
.showcase { position: relative; isolation: isolate; }
.showcase-petals { display: none; position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.showcase-petals span {
  --lane: 8%;
  --sway: 22px;
  --length: 25s;
  --start: -1s;
  --petal-size: 13px;
  position: absolute;
  inset-block: 0;
  left: var(--lane);
  width: var(--petal-size);
}
.showcase-petals span::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: calc(var(--petal-size) * .68);
  border-radius: 68% 42% 72% 36%;
  background: var(--petal-fill);
}
.showcase-petals span:nth-child(2) { --lane: 90%; --sway: -17px; --start: -4s; --petal-size: 16px; }
.showcase-petals span:nth-child(3) { --lane: 43%; --sway: 30px; --start: -6s; --length: 28s; }
.showcase-petals span:nth-child(4) { --lane: 62%; --sway: -23px; --start: -9s; --petal-size: 9px; }
.showcase-petals span:nth-child(5) { --lane: 16%; --sway: -26px; --start: -11s; --length: 29s; }
.showcase-petals span:nth-child(6) { --lane: 86%; --sway: 21px; --start: -12s; --length: 24s; }
.showcase-petals span:nth-child(7) { --lane: 30%; --sway: 28px; --start: -15s; --petal-size: 17px; }
.showcase-petals span:nth-child(8) { --lane: 59%; --sway: -31px; --start: -17s; --length: 28s; }
.showcase-petals span:nth-child(9) { --lane: 5%; --sway: 16px; --start: -18s; --petal-size: 14px; }
.showcase-petals span:nth-child(10) { --lane: 94%; --sway: -20px; --start: -20s; --length: 24s; }
.showcase-petals span:nth-child(11) { --lane: 34%; --sway: 25px; --start: -23s; --length: 29s; --petal-size: 10px; }
.showcase-petals span:nth-child(12) { --lane: 75%; --sway: -25px; --start: -26s; --length: 28s; --petal-size: 15px; }
.showcase-list { max-width: 1010px; margin-inline: auto; }
.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(10px, 5vw, 66px);
  padding-block: clamp(16px, 3vw, 34px);
}
.showcase-row + .showcase-row { border-top: 1px solid #e8d9df; }
.showcase-marilash { grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); }
.showcase-marilash .showcase-carousel { grid-column: 1; grid-row: 1; }
.showcase-marilash .showcase-copy { grid-column: 2; grid-row: 1; }
.showcase-copy { color: var(--plum); padding-inline: clamp(1px, 5vw, 70px) 0; }
.showcase-brand { color: var(--muted); font-size: clamp(10px, 1.2vw, 12px); letter-spacing: .08em; }
.showcase-copy h3 { font: 600 clamp(38px, 6vw, 82px)/.93 var(--serif); color: var(--ink); margin: 6px 0 9px; }
.showcase-price { font-size: clamp(17px, 2.3vw, 27px); font-weight: 750; }
.showcase-description { color: var(--muted); line-height: 1.45; max-width: 29ch; margin-top: 6px; }
.showcase-link { display: inline-flex; gap: 7px; align-items: center; min-height: 38px; margin-top: clamp(6px, 2vw, 20px); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.showcase-link svg { width: 17px; height: 17px; }
.showcase-link svg, .hero-cta svg { transition: transform .2s ease; }
.showcase-link:is(:hover, :focus-visible) svg, .hero-cta:is(:hover, :focus-visible) svg { transform: translateX(4px); }
.showcase-carousel { min-width: 0; width: min(100%, 488px); }
.showcase-tiltnails .showcase-carousel { width: min(100%, 416px); justify-self: end; }
.showcase-track {
  display: flex;
  aspect-ratio: 1;
  overflow: auto hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: clamp(12px, 2.2vw, 27px);
  background: #f3e7e7;
}
.showcase-track::-webkit-scrollbar { display: none; }
.showcase-tiltnails .showcase-track { aspect-ratio: 4 / 5; }
.showcase-track img { flex: 0 0 100%; min-width: 0; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.showcase-controls { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 5px; }
.showcase-arrow { display: grid; place-items: center; width: 40px; height: 38px; color: var(--plum); background: transparent; border: 0; border-radius: 100px; }
.showcase-arrow:hover { background: #ead7e2; }
.showcase-arrow svg { width: 17px; height: 17px; }
.showcase-dots { display: flex; gap: 6px; }
.showcase-dots span { width: 6px; height: 6px; border-radius: 50%; background: #d3b8c8; }
.showcase-dots .is-current { background: var(--plum); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.purchase-section { margin-top: clamp(42px, 7vw, 88px); }
#buy-title { scroll-margin-block-start: 20px; }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2.8vw, 27px); }
.brand-tile {
  display: block;
  overflow: hidden;
  border: 1px solid #dcbfca;
  border-radius: clamp(17px, 2.5vw, 28px);
  box-shadow: 0 9px 22px #4e294418;
  color: #20131e;
  transition: box-shadow .22s ease, transform .22s ease;
  text-decoration: none;
}
.brand-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 28px #4e29442a; }
.brand-tile img { display: block; width: 100%; height: auto; }
.brand-tile-caption {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: #fff9fc; padding: 9px clamp(13px, 3vw, 24px);
}
.brand-tile.marilash .brand-tile-caption { background: #ffeff6; }
.brand-category { font: italic 600 clamp(25px, 3.2vw, 40px)/1 var(--serif); }
.brand-arrow {
  width: 56px; height: 34px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--plum); color: #fff8f9;
}
.brand-arrow svg { width: 19px; }
.footer {
  display: flex; justify-content: space-between; gap: 13px 22px; align-items: center;
  padding: 21px 0 25px; margin-top: 40px; border-top: 1px solid #e8d9df; color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: 9px; font: 600 19px/1 var(--serif); letter-spacing: .025em; color: var(--plum); }
.footer-brand svg { width: 12px; height: 12px; fill: currentColor; }
.footer nav { display: flex; flex-wrap: wrap; row-gap: 8px; column-gap: 20px; font-size: 12px; }
.footer nav a, .plain { text-underline-offset: 3px; }
.plain { border: 0; background: none; color: inherit; padding: 0; text-decoration: underline; }
.mobile-nav { display: none; }
.back-link { text-decoration: none; display: inline-flex; gap: 9px; align-items: center; color: var(--plum); margin: 25px 0 15px; }
.checkout-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 6vw, 78px); align-items: start; padding: 8px 0 18px; }
.checkout-preview h1 { margin: 0 0 26px; }
.preview-wish { font: italic 600 30px/1.1 var(--serif); text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; margin: 16px 0 0; color: var(--plum); }
.checkout-form { display: grid; gap: 21px; padding-top: 10px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; color: var(--plum); font-size: 32px; margin-bottom: 10px; }
.amount-options { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; flex: 1 1 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: block; min-width: 75px; padding: 9px; text-align: center; border: 1px solid #cba7b9; border-radius: 11px; font-weight: 740; color: var(--plum); }
.choice input:checked + span { background: var(--plum); color: white; border-color: var(--plum); }
.choice input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 3px; }
.field { display: grid; gap: 9px; font-weight: 740; color: var(--plum); }
.field span { display: flex; justify-content: space-between; gap: 10px; }
.checkout-form .field > span { font: 600 32px/1 var(--serif); }
.field small { color: var(--muted); font: 500 13px/1.4 var(--ui); align-self: center; }
.field input, .field textarea, .field select, .manual-scan {
  width: 100%; min-width: 0; min-height: 43px; padding: 9px 12px;
  border: 1px solid #cba7b9; border-radius: 10px; background: var(--cream); color: var(--ink); font-size: 16px;
}
.field textarea { resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--plum); flex-shrink: 0; }
.check a, .muted a { text-underline-offset: 3px; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  padding: 11px 17px; min-height: 43px; border-radius: 11px; border: 1px solid var(--plum);
  background: var(--plum); color: #fff9fa; text-decoration: none; font-weight: 760; line-height: 1.3;
}
.button:hover:not(:disabled) { background: #69284f; }
.button.secondary { color: var(--plum); background: transparent; border-color: #b78ea4; }
.button.secondary:hover:not(:disabled) { background: #f3e7ed; }
.button.fill { width: 100%; min-height: 54px; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
.error { border-radius: 9px; background: #f4e3e8; color: #6d1836; padding: 9px 12px; }
.muted { color: var(--muted); }
.mini { font-size: 13px; }
.art {
  display: grid; grid-template-rows: 9fr 2fr; overflow: hidden; aspect-ratio: 16/11; width: 100%;
  border-radius: 3.7% / 5.4%; box-shadow: 0 12px 25px #3e162c38;
  background: linear-gradient(90deg, #fefefe 0%, #fff4fc 16%, #ffd0f4 50%, #fff4fc 84%, #fefefe 100%);
  container-type: inline-size;
  color: #2a1823; text-align: center;
}
.art.marilash { background: linear-gradient(90deg, #f1afcc, #f6d5e9 39%, #f3cae8 61%, #f1b1cb); }
.art-cover {
  display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain;
  mask-image: linear-gradient(#000 91%, transparent);
}
.art-amount {
  display: grid; place-items: center; padding-bottom: .6cqw;
  font: 600 clamp(13px, 9.5cqw, 56px)/1 var(--serif); letter-spacing: -.049em;
  font-variant-numeric: lining-nums;
}
.content-page { width: min(100%, 820px); margin: 0 auto; padding: 37px 0 10px; }
.content-page > h1 { margin: 0 0 17px; }
.content-page > .muted { margin: 10px 0 20px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.panel { border: 1px solid #e1cdd7; border-radius: 19px; background: #fffaf8; padding: clamp(16px, 4vw, 27px); margin-top: 19px; }
.telegram-offer { max-width: 490px; }
.telegram-offer > a { display: inline-block; margin-top: 12px; }
.panel > h2, .panel > h3 { margin-bottom: 12px; }
.login-panel { width: min(100%, 510px); }
.stack { display: grid; gap: 12px; }
.order-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 19px; }
.order-card { background: var(--cream); border: 1px solid #dfccd5; padding: 9px; border-radius: 16px; display: grid; gap: 8px; text-align: left; color: var(--ink); min-width: 0; }
.order-card .art { box-shadow: none; }
.order-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 0 3px; gap: 5px; }
.badge { display: inline-flex; align-items: center; border: 1px solid currentColor; padding: 3px 9px; border-radius: 99px; font-size: 12px; line-height: 1.3; }
.staff-dashboard { width: min(100%, 990px); display: grid; gap: clamp(13px, 2.4vw, 22px); }
.staff-header { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
.staff-header h1 { font-size: clamp(43px, 6vw, 73px); }
.staff-brand { color: var(--plum); font-size: 12px; font-weight: 750; letter-spacing: .095em; margin-bottom: 5px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: inherit; }
.staff-dashboard .panel { min-width: 0; margin: 0; }
.staff-dashboard h2 { font-size: clamp(26px, 4vw, 36px); }
.staff-tools .panel { background: #f9eff3; }
.staff-tools .stack { gap: 14px; }
.staff-payment { padding-block: 0; }
.staff-payment summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 16px; cursor: pointer; }
.staff-payment summary::-webkit-details-marker { display: none; }
.staff-payment summary svg { color: var(--plum); flex: 0 0 auto; }
.staff-payment[open] summary svg { transform: rotate(90deg); }
.staff-payment > div { padding-bottom: 21px; }
.staff-payment-status { background: #f5e8ee; border-radius: 10px; padding: 10px 12px; color: var(--plum); margin-bottom: 15px; }
.staff-payment-form { display: grid; gap: 13px 15px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.staff-full { grid-column: 1 / -1; }
.staff-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.staff-dashboard .order-grid { margin-top: 2px; }
.staff-review { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px 14px; }
.staff-review > h2 { margin: 0; }
.staff-review > p, .staff-review > div { grid-column: 1 / -1; }
.staff-review > p:empty { display: none; }
.staff-review-order { border: 1px solid var(--line); border-radius: 12px; }
.staff-review-order summary { cursor: pointer; padding: 11px 13px; }
.staff-review-order summary > * { margin-inline-end: 10px; }
.staff-review-proof { padding: 0 13px 13px; }
.staff-review-proof img { display: block; width: auto; max-width: 100%; max-height: 580px; object-fit: contain; object-position: left; }
.staff-review-proof p:empty { display: none; }
.order-reason { overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
.scan-video { max-height: 280px; width: 100%; object-fit: cover; border-radius: 12px; background: #291d28; }
.scan-picture input { width: 100%; }
.scans { list-style: none; padding: 0; margin: 0; }
.scans li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 9px 0; border-bottom: 1px solid #e9d8e0; }
.certificate-dialog {
  color: #fff8f7; border: 0; background: transparent; padding: 0;
  width: min(98vw, 555px); max-width: none; max-height: 96dvh; overflow: auto; overflow-x: hidden;
}
.certificate-dialog::backdrop { background: #241722de; backdrop-filter: blur(7px); }
.certificate-modal { position: relative; display: grid; grid-template-columns: minmax(0,1fr); justify-items: center; gap: 13px; padding: 38px 29px 20px; text-align: center; }
.certificate-modal h2 { font-size: clamp(27px, 7vw, 46px); }
.icon-button { border: 0; background: transparent; color: inherit; width: 39px; height: 39px; display: grid; place-items: center; }
.dialog-close { position: absolute; right: 3px; top: 1px; }
.certificate-modal .badge { color: #f7dcea; }
#viewer-card { width: 100%; min-width: 0; margin-top: 9px; padding: 8px 0; }
.flip-scene { perspective: 1000px; container-type: inline-size; }
.flip-card { display: grid; grid-template-columns: minmax(0,1fr); width: 100%; transform-style: preserve-3d; transition: transform .62s cubic-bezier(.2,.8,.2,1); }
.flip-card.flipped { transform: rotateY(180deg); }
.flip-card > * { grid-area: 1/1; backface-visibility: hidden; }
.flip-card .art { box-shadow: 0 7px 28px #20131fa6, 0 0 17px #f4c0dc6b; animation: levitate 5s ease-in-out infinite; }
.flip-card.flipped .art { animation-play-state: paused; }
.flip-back {
  aspect-ratio: 16/11; width: 100%; border-radius: 3.7% / 5.4%; transform: rotateY(180deg);
  display: grid; place-content: center; justify-items: center; gap: 3px;
  background: #fff9f6; color: var(--plum); border: 2px solid #e7bed4;
  box-shadow: 0 7px 28px #20131fa6; text-align: center; padding: 3%;
}
.flip-back canvas { width: min(41cqw, 150px); height: auto; margin: 0; }
.flip-back code { font-size: clamp(11px, 3.4vw, 15px); color: #2a1923; }
.flip-back .plain { font-size: 11px; }
@keyframes levitate { 0%, 100% { transform: translateY(3px); } 50% { transform: translateY(-4px); } }
.gift-wish { font: italic 600 clamp(23px, 5.2vw, 32px)/1.08 var(--serif); white-space: pre-wrap; overflow-wrap: anywhere; width: 100%; padding: 1px 5px; }
.viewer-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.viewer-controls .button { border: 1px solid #bf9cac; background: #fff3f315; color: #fff8f7; }
.viewer-controls .button:hover { background: #fff3f32f; }
.cookie-panel {
  position: fixed; z-index: 20; left: clamp(10px, 3vw, 35px); right: auto; bottom: 17px;
  display: grid; gap: 9px; width: min(440px, calc(100vw - 20px)); padding: 14px 17px;
  border: 1px solid #e2cbd8; border-radius: 17px; background: #fffaf8; color: var(--ink);

  box-shadow: 0 11px 30px #271a242d;
}
.cookie-panel h2 { font-size: 27px; }
.cookie-panel p { margin-top: 4px; font-size: 12px; }
.cookie-panel p a { color: var(--plum); }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.cookie-actions .button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.toast { position: fixed; z-index: 40; right: 16px; bottom: 20px; max-width: calc(100% - 32px); padding: 9px 13px; background: #38172e; color: white; border-radius: 9px; box-shadow: 0 3px 14px #120e1c44; }
.legal-page { padding: 25px var(--gutter); }
.legal-paper { margin: 0 auto; max-width: 760px; }
.legal-paper h1 { margin: 16px 0 20px; font-size: clamp(38px, 7vw, 68px); }
.legal-paper h2 { margin: 28px 0 10px; font-size: clamp(27px, 5vw, 39px); }
.legal-paper p { margin: 13px 0; overflow-wrap: anywhere; }

@media (max-width: 730px) {
  .masthead { min-height: 58px; gap: 12px; }
  .masthead-rule { margin: 0 2px; }
  .desktop-nav { display: none; }
  .profile-link { font-size: 13px; gap: 5px; }
  .profile-link svg { width: 18px; height: 18px; }
  .hero { min-height: clamp(218px, 58vw, 320px); padding: 24px 0 32px; }
  .hero::before { inset: 0 -3% 0 25%; background-position: top right; }
  .hero h1 { font-size: clamp(48px, 11vw, 86px); }
  .hero-cta { margin-top: 21px; }
  .showcase-copy { padding-inline-start: clamp(2px, 2vw, 18px); }
  .showcase-copy h3 { font-size: clamp(29px, 7vw, 51px); margin-block: 4px 7px; }
  .showcase-link { font-size: 13px; }
  .showcase-description { font-size: 13px; }
  .showcase-controls { margin-top: 1px; }
  .showcase-arrow { width: 44px; height: 44px; }
  .section-line { margin-bottom: 11px; }
  .brand-grid { grid-template-columns: 1fr; gap: 12px; }
  .brand-tile { border-radius: 16px; }
  .footer { margin-top: 25px; padding-bottom: calc(73px + env(safe-area-inset-bottom)); align-items: flex-start; flex-direction: column; }
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
    background: #fcf7f4f3; backdrop-filter: blur(10px); border-top: 1px solid #ead8e1;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav a { position: relative; flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 3px; color: var(--muted); font-size: 11px; }
  .mobile-nav [aria-current=page] { font-weight: 800; color: var(--plum); }
  .mobile-nav [aria-current=page]::after { content: ""; background: var(--plum); width: 54px; height: 2px; position: absolute; bottom: 1px; border-radius: 999px; }
  .mobile-nav svg { width: 22px; height: 22px; }
  .checkout-grid { grid-template-columns: 1fr; gap: 17px; padding-top: 0; }
  .checkout-preview h1 { margin-bottom: 15px; font-size: clamp(47px,12vw,69px); }
  .checkout-form { padding-top: 0; gap: 16px; }
  legend, .checkout-form .field > span { font-size: 29px; }
  .cookie-panel { bottom: calc(58px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(60px + env(safe-area-inset-bottom)); }
  .admin-grid, .staff-payment-form { grid-template-columns: 1fr; }
}
@media (max-width: 350px) {
  .order-grid { grid-template-columns: 1fr; }
  .certificate-modal { padding-inline: 13px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-petals span { animation-name: sakura-petal; animation-duration: 3.8s; animation-timing-function: ease-in-out; }
  .showcase-petals { display: block; }
  .showcase-petals span { animation: showcase-petal-drop var(--length) var(--start) linear infinite; }
  .showcase-petals span::before { animation: showcase-petal-turn 3.8s var(--start) ease-in-out infinite alternate; }
  @supports (animation-timeline: view()) {
    .showcase-row { animation: showcase-entrance linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  }
}
@keyframes showcase-petal-drop {
  0% { opacity: 0; transform: translate3d(0, -26px, 0); }
  5%, 95% { opacity: .67; }
  45% { transform: translate3d(var(--sway), 45%, 0); }
  72% { transform: translate3d(calc(var(--sway) * -.5), 72%, 0); }
  100% { opacity: 0; transform: translate3d(0, calc(100% + 24px), 0); }
}
@keyframes showcase-petal-turn {
  from { transform: rotate(-22deg) scaleX(.7); }
  to { transform: rotate(146deg) scaleX(1); }
}
@keyframes showcase-entrance {
  from { opacity: .72; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

.success { background: #e8eee6; color: #304d36; }
.copy-fallback { position: fixed; opacity: 0; pointer-events: none; }
@media (max-width: 470px) {
  .certificate-modal { padding-inline: 18px; }
  .viewer-controls .button { min-height: 41px; padding-inline: 9px; font-size: 13px; }
}

.gift-wish:empty { display: none; }

.account-page .panel { width: min(100%, 520px); }
.account-switch { margin-top: 16px; }
.account-switch a { color: var(--plum); text-underline-offset: 3px; font-weight: 750; }

.order-card.is-under-review .art { filter: grayscale(.85); }
.order-card.is-under-review .badge { color: #665864; }
.payment-dialog {
  width: min(460px, calc(100vw - 28px)); max-height: 92dvh; padding: 0;
  border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--cream);
  box-shadow: 0 15px 50px #240e223b;
}
.payment-dialog::backdrop { background: #261321b8; backdrop-filter: blur(4px); }
.payment-sheet { position: relative; padding: 23px 20px; }
.payment-sheet h2 { margin: 0 32px 16px 0; }
.payment-details { display: grid; gap: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.payment-details strong { font: 600 33px/1 var(--serif); color: var(--plum); }
.payment-details p { white-space: pre-wrap; overflow-wrap: anywhere; }
