:root {
  color-scheme: light;
  --paper: #fffaf4;
  --ink: #291d2c;
  --muted: #625368;
  --accent: #4a2867;
  --accent-hover: #61367f;
  --wine: #72283f;
  --gold: #b3874c;
  --line: #e6d9db;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; }
p, h1, h2, h3, dl, dd { margin: 0; }
p, dd, li { line-height: 1.65; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 9.5vw, 5.2rem); letter-spacing: -.075em; }
h2 { font-size: clamp(2.5rem, 7vw, 4.65rem); letter-spacing: -.065em; }
h3 { font-size: clamp(1.75rem, 4vw, 2.6rem); letter-spacing: -.055em; }
em { color: var(--wine); font-weight: inherit; }
:focus-visible { outline: 3px solid #925792; outline-offset: 4px; }
.wrap { width: min(100% - 2rem, 73rem); margin-inline: auto; }
.skip { position: absolute; z-index: 20; left: 1rem; top: -5rem; padding: 1rem; background: white; }
.skip:focus { top: .5rem; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; flex: none; color: var(--accent); }
.brand strong { font-family: var(--serif); font-size: 1.4rem; letter-spacing: -.08em; line-height: 1; }
.brand span { color: var(--wine); font-size: .73em; margin-inline: .23em; }
.brand small { font-size: .675rem; letter-spacing: .01em; color: var(--muted); margin-top: .2rem; }
.brand img { max-width: 9rem; max-height: 36px; display: block; }
nav { display: flex; align-items: center; gap: clamp(.55rem, 2.7vw, 2.25rem); }
nav a { font-size: .875rem; font-weight: 650; text-decoration: none; }
nav a:hover, .email:hover, .demo-footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.25rem; border: 1px solid transparent; border-radius: 999px; background: var(--accent); color: white; font-size: .9375rem; font-weight: 675; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; text-align: center; }
.button:hover { background: var(--accent-hover); transform: translateY(-2px); text-decoration: none; }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .48; cursor: default; transform: none; }
.button.outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.button.outline:hover:not(:disabled) { background: #eedeef; }
.button.light { background: #fff6ea; color: var(--wine); }
.button.light:hover { background: #f6e1d3; }
.button.small { min-height: 40px; padding: .45rem .8rem; font-size: .875rem; }
.eyebrow { color: var(--accent); font-size: .8125rem; font-weight: 730; text-transform: uppercase; letter-spacing: .13em; margin-bottom: .95rem; }
.eyebrow span[aria-hidden] { color: #966932; margin-right: .25em; }
.intro { color: var(--muted); font-size: 1.0625rem; line-height: 1.65; }
.hero { display: grid; gap: 2rem; align-items: center; padding-block: 3.25rem 3.5rem; }
.hero h1 { text-wrap: initial; }
.hero h1 em { display: block; }
.hero .intro { max-width: 32rem; margin-block: 1.3rem 1.6rem; }
.hero-art { position: relative; isolation: isolate; overflow: hidden; min-height: 275px; aspect-ratio: 1.15; display: grid; align-items: end; border-radius: 48% 48% 1rem 1rem / 52% 52% 1rem 1rem; background: radial-gradient(ellipse at 42% 30%, #fff3e0 5%, #e8c9cd 62%, #c88896 105%); border: 1px solid #cfa8a8; }
.hero-art::before { content: ''; position: absolute; inset: .65rem; border: 1px solid #fff4e1b8; border-radius: inherit; pointer-events: none; }
.hero-art::after { content: ''; position: absolute; inset: auto -10% -38% -10%; height: 66%; border-radius: 50%; background: #f7ded4; box-shadow: 0 -12px 52px #fff3dd7a; z-index: -1; }
.hero-gifts { height: 72%; padding: 0 7% 9%; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; justify-items: center; }
.hero-gifts .gift-object { width: 120%; }
.hero-gifts .gift-object:first-child { transform: rotate(-12deg) translate(12%, -6%); }
.hero-gifts .gift-object:nth-child(2) { z-index: 1; transform: rotate(5deg) translateY(-25%) scale(1.32); }
.hero-gifts .gift-object:last-child { transform: rotate(11deg) translate(-9%, 8%) scale(.87); z-index: 2; }
.sparkle { position: absolute; font-size: var(--star-size); line-height: 1; color: #9c6c39; opacity: .8; pointer-events: none; }
.hero-art .sparkle { color: #98612f; text-shadow: 0 0 9px #fff8df; animation: shimmer 4s ease-in-out infinite alternate; }
.hero-art .sparkle:nth-child(even) { animation-delay: -2s; }
@keyframes shimmer { from { opacity: .5; } to { opacity: 1; scale: 1.14; } }

.gift-object { --box-light: #b9516d; --box-dark: #70223f; --box-side: #4d1c37; --ribbon: #e9b86c; --ribbon-light: #fff0bd; width: 100%; aspect-ratio: 1 / .98; position: relative; display: block; pointer-events: none; }
.gift-object[data-color=lilac] { --box-light: #a97fc1; --box-dark: #674083; --box-side: #493060; --ribbon: #eaca9b; --ribbon-light: #fff3d4; }
.gift-object[data-color=champagne] { --box-light: #f1c79a; --box-dark: #c18b62; --box-side: #b07752; --ribbon: #a9516c; --ribbon-light: #e297a1; }
.gift-shadow { position: absolute; inset: auto 1% 3% 7%; height: 17%; border-radius: 50%; background: #4c263f55; filter: blur(7px); transform: skewX(-20deg); }
.gift-body, .gift-lid { position: absolute; display: block; border-radius: 4% 5% 7% 6%; background: linear-gradient(90deg, transparent 37%, var(--ribbon-light) 38%, var(--ribbon) 39% 53%, transparent 54%), linear-gradient(102deg, var(--box-light), var(--box-dark) 81%, var(--box-side) 82%); box-shadow: inset 0 1px 2px #fff6, inset 0 -5px 9px #38183233; }
.gift-body { inset: 45% 7% 9%; }
.gift-lid { inset: 33% 4% auto; height: 19%; box-shadow: 0 5px 6px #40203435, inset 0 2px 3px #fff7; transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .55s; }
.gift-lid b { position: absolute; display: block; background: linear-gradient(160deg, var(--ribbon-light), var(--ribbon) 67%, var(--box-dark)); left: 18%; bottom: 86%; width: 32%; height: 113%; border-radius: 70% 55% 8% 65%; transform: rotate(24deg); box-shadow: inset 0 -4px 5px #562f4844; }
.gift-lid b + b { left: 46%; border-radius: 55% 70% 65% 8%; transform: rotate(-29deg); }
.gift-image { width: 100%; height: 100%; object-fit: contain; transition: transform .55s, filter .55s; }
.opened .gift-lid { transform: translate(-13%, -155%) rotate(-24deg); opacity: .83; }
.opened .gift-image { transform: translateY(-20%) rotate(-7deg); filter: brightness(1.17); }

.band { padding-block: clamp(3.2rem, 7vw, 6.4rem); }
.games { background: #f6ebe9; border-block: 1px solid #eadcdb; }
.section-title { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.game-grid, .pricing-grid { display: grid; gap: 1.2rem; }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 1.1rem; overflow: hidden; background: var(--paper); }
.product-visual { position: relative; height: clamp(175px, 30vw, 250px); overflow: hidden; }
.gift-preview { background: #efdbd8; }
.preview-gifts { display: flex; position: absolute; width: 70%; max-width: 372px; left: 50%; bottom: 9%; transform: translateX(-50%); gap: 1%; }
.preview-gifts .gift-object:nth-child(2) { transform: translateY(-10%); }
.salon-preview { background: #e8daef; }
.beauty-item { display: inline-grid; place-items: center; width: 1.65em; height: 1.65em; line-height: 1; border-radius: 35%; background: #fffaf2; box-shadow: 0 4px 12px #5033482a; font-size: 1.65rem; }
.beauty-item[data-art="polish"]::before { content: ''; width: 43%; height: 72%; background: linear-gradient(90deg, #c36c8d, #8b305e); clip-path: polygon(29% 0, 71% 0, 71% 40%, 97% 54%, 97% 93%, 86% 100%, 14% 100%, 3% 93%, 3% 54%, 29% 40%); }
.beauty-item img { width: 75%; height: 75%; object-fit: contain; }
.salon-preview .beauty-item { position: absolute; }
.salon-preview .beauty-item:nth-of-type(12) { left: 20%; top: 16%; rotate: -17deg; }
.salon-preview .beauty-item:nth-of-type(13) { left: 42%; top: 9%; rotate: 13deg; }
.salon-preview .beauty-item:nth-of-type(14) { left: 67%; top: 23%; rotate: 18deg; }
.salon-preview .beauty-item:nth-of-type(15) { left: 33%; top: 41%; rotate: -9deg; }
.salon-preview .beauty-item:nth-of-type(16) { left: 58%; top: 49%; rotate: -10deg; }
.basket { position: absolute; width: 82px; height: 47px; bottom: 15px; left: 50%; transform: translateX(-50%); border-radius: 5px 5px 19px 19px; background: repeating-linear-gradient(90deg, #fff5 0 1px, transparent 1px 11px), linear-gradient(#a66562, #78374e); border: 2px solid #f1c789; box-shadow: 0 5px 10px #51263842, inset 0 -7px 8px #54243f53; }
.basket::before { content: ''; position: absolute; left: -5px; right: -5px; top: -3px; height: 9px; border-radius: 8px; background: #d3a469; border: 1px solid #ffe6aa; }
.salon-preview .basket { bottom: 11%; }
.product-copy { padding: clamp(1.25rem, 3.4vw, 2.25rem); flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.product-heading { display: flex; align-items: center; gap: .5rem 1rem; justify-content: space-between; width: 100%; flex-wrap: wrap; margin-bottom: .8rem; }
.price { flex: none; color: var(--wine); font-size: 1.15rem; font-weight: 730; }
.product-note { margin: .55rem 0 1.3rem; color: var(--muted); }
.product-copy .button { margin-top: auto; }
.benefits { padding-block: clamp(3.4rem, 8vw, 7rem); display: grid; gap: 2.25rem; }
.benefits .intro { margin-top: 1.2rem; max-width: 32rem; }
.benefits dl { display: grid; gap: 1rem 1.75rem; }
.benefits dl div { border-top: 1px solid var(--line); padding-top: .7rem; }
.benefits dt { color: var(--accent); font-weight: 735; margin-bottom: .25rem; }
.benefits dd { color: var(--muted); }
.pricing { background: #eee5f2; }
.plan { display: flex; align-items: flex-start; flex-direction: column; background: #fffcf8; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #dccce4; border-radius: 1rem; }
.plan h3 { font-size: clamp(1.6rem, 3vw, 2rem); }
.plan-price { color: var(--accent); font: 400 clamp(2.8rem, 5vw, 4.1rem)/1.12 var(--serif); margin-top: .6rem; letter-spacing: -.055em; }
.plan ul { padding-inline-start: 1.1rem; margin: 1rem 0 1.35rem; }
.plan li + li { margin-top: .3rem; }
.plan .button { margin-top: auto; }
.featured { background: var(--wine); color: #fff8f1; }
.featured .plan-price, .saving { color: #f9d99b; }
.saving { font-weight: 720; margin: -.25rem 0 1.3rem; }
.contact { text-align: center; padding-block: clamp(3.5rem, 8vw, 6.4rem); }
.contact p:not(.eyebrow) { margin: 1rem 0 1.4rem; color: var(--muted); }
.email { display: block; width: fit-content; margin: 1rem auto 0; text-decoration: none; color: var(--accent); overflow-wrap: anywhere; }
.site-footer { padding-block: 1.4rem; border-top: 1px solid var(--line); }

.demo-main { max-width: 52rem; padding-bottom: 1.65rem; }
.demo-intro { text-align: center; margin: clamp(1.3rem, 4vh, 3rem) auto 1.15rem; }
.demo-intro h1 { font-size: clamp(2.75rem, 9vw, 5rem); color: var(--wine); }
.demo-intro .intro { margin: .55rem auto 0; max-width: 35rem; }
.gift-stage { position: relative; isolation: isolate; container-type: inline-size; border-radius: 1.25rem; background: radial-gradient(ellipse at 50% 35%, #fff3dd, #ecd5d6 78%); border: 1px solid #dcc0c4; }
.gift-choices { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.15rem, 2vw, 1.1rem); padding: clamp(2.25rem, 7vw, 4rem) clamp(.35rem, 4vw, 2.3rem) 1.25rem; }
.gift-choice { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: end; padding: 0 .12rem .45rem; border: 0; background: transparent; color: var(--wine); cursor: pointer; border-radius: .65rem; }
.gift-choice .gift-object { max-width: 10.5rem; transition: transform .24s; }
.gift-choice:hover:not(:disabled) .gift-object, .gift-choice:focus-visible .gift-object { transform: translateY(-8%); }
.gift-choice:disabled { cursor: default; }
.gift-choice.unselected { opacity: .53; }
.gift-choice-label { margin-top: .4rem; font-size: clamp(.8125rem, 2.5vw, 1rem); font-weight: 730; }
.demo-footer { text-align: center; color: var(--muted); margin-top: 1.15rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem 1.25rem; font-size: .875rem; }
.demo-footer p { width: 100%; }
.demo-footer a, .text-button { color: var(--accent); font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.text-button { border: 0; background: none; cursor: pointer; padding: .25rem; }
.reward { max-width: 38rem; margin: 1rem auto 0; padding: 1.2rem; text-align: center; border: 1px solid var(--line); background: #fffcf8; border-radius: 1.25rem; }
.reward h2 { font-size: clamp(2rem, 5vw, 3.3rem); }
.reward-star { color: #9b6736; font-size: 1.4rem; display: block; margin-bottom: .35rem; }
.reward-discount { font: 400 clamp(2.65rem, 8vw, 4.5rem)/1.05 var(--serif); letter-spacing: -.055em; color: var(--wine); margin: .5rem 0 .3rem; }
.offer-date, .terms, .demo-note { color: var(--muted); font-size: .875rem; }
.demo-note { margin-top: .5rem; }
.score-summary { margin-top: .35rem; font-weight: 720; }
.code-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem; margin-top: .7rem; }
.code-row code { max-width: 100%; overflow-wrap: anywhere; color: var(--accent); background: #f3e7f2; border: 1px dashed #ba9dbc; padding: .55rem .75rem; border-radius: .45rem; font-size: 1rem; }
.copy-status { min-height: 1.5rem; color: var(--accent); font-size: .875rem; }
.reward > .button, .reward-content > .button { margin-top: .85rem; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.confetti i { position: absolute; left: 50%; top: 49%; width: 7px; height: 12px; background: #c98d39; opacity: 0; animation: scatter 1.1s var(--delay) ease-out both; }
.confetti i:nth-child(3n) { background: #802c56; border-radius: 50%; }
.confetti i:nth-child(3n + 1) { background: #8659a0; }
@keyframes scatter { 0% { opacity: 1; } 55% { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--spin)); } 100% { opacity: 0; transform: translate(var(--x), 160px) rotate(var(--spin)); } }

.salon-shell { border: 1px solid #dfcfe6; border-radius: 1.15rem; overflow: hidden; background: #fffcf9; }
.hud { min-height: 62px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: .35rem; padding: .38rem clamp(.62rem, 3vw, 1.25rem); color: var(--accent); text-align: center; }
.hud span, .hud strong { display: block; line-height: 1.25; }
.hud span { color: var(--muted); font-size: .875rem; }
.hud strong { font-size: 1.23rem; font-variant-numeric: tabular-nums; }
.arena { position: relative; isolation: isolate; height: clamp(275px, 53vh, 480px); overflow: clip; background: radial-gradient(ellipse at 50% 20%, #faf0f3, #e1cce9); border-top: 1px solid #dccce2; }
.arena:focus { outline-offset: -4px; }
.arena[data-playing] { touch-action: none; }
.arena::after { content: ''; position: absolute; inset: auto -20% -36% -20%; height: 50%; background: #c6a9d353; border-radius: 50%; z-index: -1; }
.falling-items { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.falling { position: absolute; transform: translate(-50%, -50%); font-size: clamp(1.1rem, 4.4vw, 1.75rem); }
.player { z-index: 2; width: clamp(56px, 15vw, 82px); pointer-events: none; }
.start-panel { position: absolute; inset: 0; display: flex; gap: 1rem; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; background: #f5e8f4eb; z-index: 3; }
.start-panel h2 { font-size: clamp(2rem, 6vw, 3.2rem); }
.start-panel p { max-width: 23rem; color: var(--muted); }
.salon-icons { display: flex; gap: clamp(.35rem, 2vw, .7rem); }
.salon-icons .beauty-item:nth-child(odd) { rotate: -9deg; }
.salon-icons .beauty-item:nth-child(even) { rotate: 7deg; }
.score-pop { position: absolute; bottom: 69px; color: var(--accent); font-weight: 850; white-space: nowrap; animation: pop .65s ease-out both; transform: translateX(-50%); }
@keyframes pop { to { opacity: 0; translate: 0 -31px; } }

@media (min-width: 39rem) {
  .wrap { width: min(100% - 4rem, 73rem); }
  .game-grid, .benefits dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { min-height: 78px; }
}
@media (max-width: 34rem) {
  .hero h1 { overflow-wrap: anywhere; }
}
@media (min-width: 60rem) {
  .hero { grid-template-columns: 1.1fr 1fr; gap: clamp(1.4rem, 3vw, 3rem); padding-block: 4rem 5.1rem; }
  .hero h1 { font-size: clamp(3.55rem, 5.7vw, 5.2rem); }
  .benefits { grid-template-columns: .9fr 1.1fr; gap: 4rem; }
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 22rem) {
  .wrap { width: calc(100% - 1.25rem); }
  .salon-icons .beauty-item { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .score-pop { animation: none !important; }
}

#start-panel { gap: .75rem; overflow: auto; }
.game-instructions { display: grid; gap: .4rem; }
#penalty-instructions { color: #812945; font-size: .875rem; font-weight: 650; }
.beauty-item.hazard { position: relative; background: #ffe4e7; outline: 2px solid #ae3157; box-shadow: 0 3px 8px #8c203c38; }
.beauty-item.hazard.falling { position: absolute; z-index: 1; }
.hazard::after { content: attr(data-penalty); position: absolute; top: -25%; right: -15%; padding: .14rem .23rem; background: #922645; color: white; border-radius: .4rem; font: 800 .66rem/1 system-ui, sans-serif; white-space: nowrap; }
.penalty-status { min-height: 1.75rem; padding: .15rem .4rem; color: #922645; font-size: .8125rem; font-weight: 720; line-height: 1.35; text-align: center; }
.penalty-status:not(:empty) { background: #ffe4e7; }
.reward-ladder { display: grid; gap: .35rem; padding: .65rem .6rem .8rem; text-align: center; border-top: 1px solid var(--line); }
.reward-ladder p { color: var(--muted); font-size: .875rem; font-weight: 650; }
.reward-ladder ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; padding: 0; margin: 0; list-style: none; }
.reward-ladder li { padding: .25rem .15rem; background: #f3eaf3; color: var(--muted); border: 1px solid transparent; border-radius: .55rem; font-size: .8125rem; }
.reward-ladder li strong { display: block; color: var(--accent); font-size: 1rem; }
.reward-ladder li.earned { background: #e8d8ee; border-color: var(--accent); }
