/* Glow Studio. Primero el teléfono; a partir de 980px el panel va a la derecha. */
:root {
  --glass: rgba(46, 26, 40, .46);
  --glass-2: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .28);
  --ink: #fff; --ink-2: rgba(255, 255, 255, .74); --ink-3: rgba(255, 255, 255, .52);
  --pink: #ff5ca0; --rose: #ffc2dc; --gold: #f1d9a0;
  --glow: 0 0 0 1px rgba(255, 255, 255, .85), 0 0 18px rgba(255, 255, 255, .35);
  --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); --wipe: cubic-bezier(.7, 0, .25, 1);
  --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #2a1420; color: var(--ink); font: 400 15px/1.45 Figtree, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 10px; }
.glass { background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 18px 40px -18px rgba(0, 0, 0, .5); }

/* Escena: la tienda */
#scene { --px: 0px; --py: 0px; position: fixed; inset: -3%; overflow: hidden; transform: translate3d(var(--px), var(--py), 0); transition: transform .6s var(--ease); }
.wall { position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 30%, #f7b7c9 0%, #d77a9d 34%, #7a3560 68%, #2a1420 100%); }
.wall::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 84px); }
.neon { display: none; position: absolute; left: 50%; top: 9%; transform: translateX(-50%) rotate(-4deg); font: italic 400 clamp(70px, 16vw, 190px)/1 var(--serif); color: #fff; opacity: .5; text-shadow: 0 0 12px #fff, 0 0 44px #ff5ca0, 0 0 110px #ff2d87; animation: neon 5s ease-in-out infinite; }
@keyframes neon { 0%, 100% { opacity: .5; } 46% { opacity: .5; } 48% { opacity: .22; } 50% { opacity: .5; } 52% { opacity: .3; } 54% { opacity: .5; } }
.shelf { position: absolute; display: flex; gap: 1.2vw; align-items: flex-end; height: 13vh; padding: 0 1vw; border-bottom: 6px solid rgba(255, 240, 230, .7); box-shadow: 0 16px 22px -10px rgba(0, 0, 0, .5); filter: blur(1.6px); opacity: .9; }
.shelf span { height: 100%; aspect-ratio: 100 / 160; }
.shelf svg { width: 100%; height: 100%; display: block; }
.s1 { left: 3%; top: 26%; } .s2 { right: 3%; top: 20%; } .s3 { left: 6%; top: 50%; }
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(180deg, rgba(42, 20, 32, 0), #1a0c14 70%); }

/* Barra superior */
.gs-top { position: fixed; z-index: 20; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; }
.rnd { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; flex: none; }
.rnd svg { width: 22px; height: 22px; }
.brand { margin-right: auto; display: flex; align-items: baseline; gap: 8px; }
.brand b { font: italic 400 30px/1 var(--serif); }
.brand span { font-size: 11px; letter-spacing: .22em; color: var(--ink-2); }
.lvl { display: grid; gap: 4px; padding: 6px 12px; border-radius: 16px; font-size: 12px; min-width: 112px; }
.lvl i { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.lvl b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--gold)); transition: width .8s var(--ease); }
#bagN { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #fff; color: #2a1420; font: 600 12px/20px Figtree, sans-serif; transform: scale(0); transition: transform .35s var(--spring); }
#bagN.on { transform: scale(1); }

/* Estructura */
.gs-main { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; padding: calc(60px + env(safe-area-inset-top, 0px)) 10px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
.gs-stage { flex: 0 0 44%; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mirror { position: relative; flex: 1; min-height: 0; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 50% 50% 22px 22px / 34% 34% 22px 22px; overflow: hidden; border: 3px solid var(--gold); box-shadow: 0 0 0 6px rgba(241, 217, 160, .22), 0 30px 60px -24px rgba(0, 0, 0, .7); background: #f6d9d6; }
.mirror-in { position: absolute; inset: 0; transition: filter .9s ease; }
.mirror canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#tint { position: absolute; inset: 0; mix-blend-mode: soft-light; transition: background .9s; pointer-events: none; }
#cvOld { clip-path: inset(100% 0 0 0); pointer-events: none; }
.mirror.wiping #cvOld { animation: wipe 1.05s var(--wipe) forwards; }
.mirror.peek #cvOld { clip-path: inset(0); }
@keyframes wipe { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(100% 0 0 0); } }
#scan { position: absolute; left: -10%; right: -10%; top: 0; height: 2px; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, #fff 25%, #fff 75%, transparent); box-shadow: 0 0 22px 6px rgba(255, 255, 255, .55), 0 0 60px 18px rgba(255, 190, 220, .45); }
.mirror.wiping #scan { animation: scan 1.05s var(--wipe) forwards; }
@keyframes scan { 0% { top: 0; opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.score { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; }
.score svg { width: 34px; height: 34px; transform: rotate(-90deg); }
.score circle { fill: none; stroke-width: 4; }
.score .bg { stroke: rgba(255, 255, 255, .22); }
#glowRing { stroke: var(--rose); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 60; transition: stroke-dashoffset 1s var(--ease); }
.score b { font: 600 17px/1 Figtree, sans-serif; font-variant-numeric: tabular-nums; }
.score small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
#cmp { position: absolute; right: 8px; top: 34%; padding: 8px 10px; border-radius: 14px; font-size: 11px; letter-spacing: .04em; writing-mode: vertical-rl; touch-action: none; user-select: none; -webkit-user-select: none; }
#cmp:active { box-shadow: var(--glow); }
.ctrl { flex: none; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 18px; max-width: 100%; }
.ctrl > button { width: 40px; height: 36px; border-radius: 12px; font-size: 19px; }
.ctrl > button:disabled { opacity: .35; }
#filters { display: flex; gap: 2px; margin-left: 4px; padding-left: 6px; border-left: 1px solid var(--line); }
#filters button { height: 36px; padding: 0 10px; border-radius: 12px; font-size: 13px; color: var(--ink-2); }
#filters button.on { color: #fff; background: rgba(255, 255, 255, .14); box-shadow: var(--glow); }

/* Panel */
.gs-panel { background: rgba(46, 24, 40, .78); flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; }
#tabs { position: relative; flex: none; display: flex; gap: 2px; padding: 5px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid rgba(255, 255, 255, .14); }
#tabs::-webkit-scrollbar { display: none; }
#tabs button { position: relative; z-index: 1; flex: 1 0 auto; height: 40px; padding: 0 14px; border-radius: 20px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; transition: color .3s; }
#tabs button.on { color: #fff; }
#tabInd { position: absolute; left: 0; top: 5px; height: 40px; border-radius: 20px; background: rgba(255, 255, 255, .14); box-shadow: var(--glow); transition: transform .55s var(--wipe), width .55s var(--wipe); }
#view { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 20px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
h3 { margin: 0 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font: 400 26px/1 var(--serif); }
h3 small { font: 400 12px/1.2 Figtree, sans-serif; color: var(--ink-3); text-align: right; }
.cap { margin: 14px 0 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.cap em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--ink-3); margin-left: 6px; }
.fine { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); }
.note { padding: 12px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line); color: var(--ink-2); }
.field { display: grid; gap: 6px; }
.field span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.field input { height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass-2); color: #fff; font: inherit; font-size: 16px; }
.field input::placeholder { color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--line); font-size: 14px; transition: box-shadow .3s, background .3s, transform .4s var(--spring); }
.chip:active { transform: scale(.94); }
.chip.on { box-shadow: var(--glow); background: rgba(255, 255, 255, .18); }
.sws { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); transition: transform .4s var(--spring), box-shadow .3s; }
.sw.on { transform: scale(1.12); box-shadow: 0 0 0 3px #fff, 0 0 18px rgba(255, 255, 255, .5); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border-radius: 16px; font-weight: 600; font-size: 14px; text-align: center; color: #2a1420; background: linear-gradient(90deg, #fff, var(--rose)); box-shadow: 0 0 18px rgba(255, 194, 220, .45); transition: transform .4s var(--spring), box-shadow .3s; }
.cta:active { transform: scale(.96); }
.cta.ghost { color: #fff; background: transparent; border: 1.5px solid #fff; box-shadow: 0 0 18px rgba(255, 255, 255, .25), inset 0 0 14px rgba(255, 255, 255, .12); }
.cta.wide { width: 100%; margin-top: 12px; }
.link { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); min-height: 32px; padding: 0 4px; }

.cats { margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prod { position: relative; display: grid; gap: 2px; justify-items: start; padding: 10px; border-radius: 16px; text-align: left; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05)); transition: transform .45s var(--spring), box-shadow .3s; }
.prod:active { transform: scale(.96); }
.prod.on { box-shadow: var(--glow), 0 0 0 3px rgba(255, 255, 255, .22); }
.prod .art { justify-self: center; height: 92px; aspect-ratio: 100 / 160; margin-bottom: 4px; transition: transform .6s var(--ease); }
.prod:hover .art { transform: translateY(-4px) rotate(-4deg); }
.art svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .3)); }
.art img.ph { width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 12px; }
.prod .art:has(img), .lookl .art:has(img) { aspect-ratio: 1; }
.prod .art:has(img) { height: 104px; }
.slip-art.photo { aspect-ratio: 1; height: 200px; }
.slip-art img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; }
.stars { font-size: 13px; color: #9a6a16; font-weight: 600; }
.warn { margin-top: 12px !important; padding: 10px 12px; border-radius: 12px; background: #fff3d6; color: #6a4a08; font-size: 13px; }
.fine.top { margin: 0 0 4px; }
.prod small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.prod b { font-size: 14px; font-weight: 600; line-height: 1.15; }
.prod em { font-style: normal; font-size: 12px; color: var(--ink-2); }
.tick { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #2a1420; font: 700 12px/22px Figtree, sans-serif; text-align: center; font-style: normal; animation: pop .5s var(--spring); }
@keyframes pop { from { transform: scale(0); } }

.tuner { margin-bottom: 12px; padding: 12px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); animation: rise .45s var(--ease); }
.tuner-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tuner-head b { font-size: 14px; }
.tuner-head span { margin-right: auto; font-size: 13px; color: var(--rose); }
.range { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: #fff; border: 5px solid rgba(255, 194, 220, .7); box-shadow: 0 0 12px rgba(255, 255, 255, .6); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 5px solid rgba(255, 194, 220, .7); }

.state { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.state span { padding: 5px 10px; border-radius: 999px; font-size: 12px; border: 1px dashed rgba(255, 255, 255, .5); color: var(--ink-2); transition: all .5s; }
.state .ok { border-style: solid; border-color: #8ff0c0; color: #b9ffdd; background: rgba(60, 200, 140, .16); }
.routine { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.routine b { color: #fff; }
.quests { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.quests li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line); }
.quests i { width: 28px; height: 28px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .6); display: grid; place-items: center; font-style: normal; font-weight: 700; }
.quests b { display: block; font-size: 15px; }
.quests span { font-size: 13px; color: var(--ink-2); }
.quests em { font-style: normal; font-size: 12px; color: var(--gold); white-space: nowrap; }
.quests .done { border-color: #8ff0c0; background: rgba(60, 200, 140, .14); }
.quests .done i { border-style: solid; background: #8ff0c0; color: #123; border-color: #8ff0c0; }
.lookl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lookl li { display: grid; grid-template-columns: 34px 1fr 36px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--line); }
.lookl .art { height: 50px; aspect-ratio: 100 / 160; }
.lookl b { display: block; font-size: 14px; }
.lookl span { font-size: 12px; color: var(--ink-2); }
.add { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #fff; font-size: 18px; line-height: 1; transition: transform .4s var(--spring); }
.add.on { background: #fff; color: #2a1420; }
.dare { margin: 16px 0 0; padding: 12px; border-radius: 14px; border: 1px dashed var(--gold); color: var(--ink-2); font-size: 14px; }
.dare b { color: var(--gold); }

/* Ficha tipo recibo */
.veil-bg { position: fixed; inset: 0; z-index: 40; background: rgba(20, 8, 16, .55); opacity: 0; pointer-events: none; transition: opacity .4s; }
.veil .veil-bg { opacity: 1; pointer-events: auto; }
#slip { position: fixed; z-index: 50; left: 10px; right: 10px; bottom: 0; max-height: 86dvh; overflow-y: auto; padding: 0 20px 26px; background: #fffaf6; color: #24121c; border-radius: 22px 22px 0 0; visibility: hidden; transform: translateY(100%); }
#slip.on { visibility: visible; transform: none; animation: print 1s steps(16, end) both; }
@keyframes print { from { transform: translateY(100%); } to { transform: none; } }
#slip header { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 18px 0 12px; background: #fffaf6; border-bottom: 1px dashed #24121c; }
#slip header b { font: italic 400 28px/1 var(--serif); }
#slip header span { grid-column: 1; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #7a5a68; }
#slipClose { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; border: 1px dashed #24121c; font-size: 22px; }
#slip .cap, #slip .fine { color: #7a5a68; }
#slip h4 { margin: 0 0 8px; font: 400 34px/1 var(--serif); }
#slip p { margin: 0 0 10px; }
.slip-art { height: 150px; margin: 14px auto 0; aspect-ratio: 100 / 160; }
.slip-art svg { width: 100%; height: 100%; filter: drop-shadow(0 14px 14px rgba(60, 20, 40, .25)); }
.fixes { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #e3f8ec; color: #17603c; font-size: 13px; }
#slip dl { margin: 12px 0 0; }
#slip dt { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #24121c; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #7a5a68; }
#slip dd { margin: 4px 0 0; }
#slip ol { margin: 0; padding-left: 20px; }
#slip .cta { color: #fff; background: #24121c; box-shadow: none; }
#slip .cta.ghost { color: #24121c; background: transparent; border-color: #24121c; box-shadow: none; }
#slip .lookl li { background: #f6ece8; border-color: #e4d2cc; }
#slip .lookl span { color: #7a5a68; }
#slip .add { border-color: #24121c; }
#slip .add.on { background: #24121c; color: #fff; }
.inl { text-decoration: underline; text-underline-offset: 3px; color: #24121c; font-weight: 600; }
.coupon { padding: 10px 12px; border: 1px dashed #24121c; border-radius: 12px; text-align: center; }
#slip footer { margin-top: 18px; display: grid; gap: 8px; justify-items: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #7a5a68; }
#slip footer i { width: 100%; height: 34px; background: repeating-linear-gradient(90deg, #24121c 0 2px, transparent 2px 4px, #24121c 4px 5px, transparent 5px 8px, #24121c 8px 11px, transparent 11px 12px, #24121c 12px 13px, transparent 13px 17px); }

/* Foto: elegir y cámara */
#pick { position: fixed; inset: 0; z-index: 65; display: grid; place-items: end center; padding: 12px; background: rgba(20, 8, 16, .6); opacity: 0; pointer-events: none; transition: opacity .3s; }
#pick.on { opacity: 1; pointer-events: auto; }
.pick-card { width: min(440px, 100%); padding: 22px 20px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 26px; background: #fffaf6; color: #24121c; display: grid; gap: 4px; justify-items: center; text-align: center; transform: translateY(30px); transition: transform .5s var(--ease); }
#pick.on .pick-card { transform: none; }
.pick-card h2 { margin: 0; font: 400 38px/1 var(--serif); }
.pick-card p { margin: 6px 0 4px; color: #7a5a68; }
.pick-card .cta { color: #fff; background: #24121c; box-shadow: none; }
.pick-card .cta.ghost { color: #24121c; background: transparent; border-color: #24121c; box-shadow: none; }
.pick-card .link { color: #7a5a68; margin-top: 8px; min-height: 40px; }
#cam { position: fixed; inset: 0; z-index: 66; background: #000; display: none; }
#cam.on { display: block; }
#camVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#camVideo.mirror { transform: scaleX(-1); }
.cam-guide { position: absolute; left: 50%; top: 44%; width: min(62vw, 46vh); aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .85); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .38); }
.cam-tip { position: absolute; left: 0; right: 0; top: calc(18px + env(safe-area-inset-top, 0px)); margin: 0; text-align: center; font-size: 15px; text-shadow: 0 1px 8px #000; }
.cam-bar { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; align-items: center; gap: 34px; }
.shot { width: 76px; height: 76px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .35), inset 0 0 0 3px #24121c; transition: transform .2s; }
.shot:active { transform: scale(.9); }
@media (min-width: 980px) { #pick { place-items: center; } }

/* Tienda en 3D */
#room3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#scene.has3d .shelf { display: none; }

/* Inicio, carga, avisos */
#intro { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; padding: 16px; background: linear-gradient(180deg, rgba(42, 20, 32, .2), rgba(42, 20, 32, .92) 62%); transition: opacity .6s, visibility 0s .6s; }
#intro.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-card { width: min(440px, 100%); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); animation: rise .9s var(--ease) .1s both; }
.intro-card h1 { margin: 0 0 10px; font: 400 clamp(64px, 20vw, 104px)/.9 var(--serif); letter-spacing: -.02em; }
.intro-card h1 em { color: var(--rose); }
.intro-card p { margin: 0 0 6px; color: var(--ink-2); font-size: 16px; }
.intro-card .cap { color: var(--rose); }
#busy { position: fixed; inset: 0; z-index: 70; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(30, 12, 22, .78); opacity: 0; pointer-events: none; transition: opacity .3s; }
#busy.on { opacity: 1; pointer-events: auto; }
#busy span { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#toast { position: fixed; z-index: 80; left: 50%; top: calc(64px + env(safe-area-inset-top, 0px)); max-width: calc(100% - 24px); padding: 10px 18px; border-radius: 999px; background: #fff; color: #24121c; font-size: 14px; font-weight: 500; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, -20px); transition: opacity .25s, transform .45s var(--spring); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#party { position: fixed; inset: 0; z-index: 75; pointer-events: none; overflow: hidden; }
#party i { position: absolute; top: 34%; width: 9px; height: 14px; border-radius: 2px; animation: fall 1.7s var(--ease) forwards; }
@keyframes fall { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--x), 46vh) rotate(var(--r)); opacity: 0; } }

@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .gs-top { padding: 18px 26px; }
  .brand b { font-size: 44px; }
  .gs-main { flex-direction: row; gap: 22px; padding: 86px 26px 26px; }
  .gs-stage { flex: 1; }
  .gs-panel { flex: 0 0 470px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #slip { left: auto; right: 26px; top: 0; bottom: auto; width: 380px; max-height: calc(100dvh - 26px); border-radius: 0 0 22px 22px; transform: translateY(-100%); }
  @keyframes print { from { transform: translateY(-100%); } to { transform: none; } }
  #intro { place-items: center start; padding-left: 8vw; background: linear-gradient(90deg, rgba(42, 20, 32, .94) 30%, rgba(42, 20, 32, .3)); }
  #cmp { writing-mode: horizontal-tb; top: auto; bottom: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
