:root {
  --sans: 'Jost', system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --bg: linear-gradient(165deg, #1a0b3d 0%, #3b1a7a 35%, #7a3cff 68%, #ff7ad9 100%);
  --text: #fff; --muted: rgba(255,255,255,.78); --accent: #9ef3ff; --ink: #2a0f5a;
  --panel: rgba(20,10,40,.42); --panel-text: #fff; --panel-muted: rgba(255,255,255,.75); --line: rgba(255,255,255,.22);
  --btn: #ff6fd0; --btn2: #9b5cff; --btn-text: #fff;
  --chrome: linear-gradient(180deg, #fff 0%, #d9e2ff 28%, #7b6cff 49%, #fff 52%, #c9b8ff 78%, #fff 100%);
  --holo: conic-gradient(from 0deg, #ff9ee8, #9ef3ff, #c9a8ff, #fff3a8, #ff9ee8);
  --h0: #ff9ee8; --h1: #9ef3ff; --h2: #c9a8ff; --h3: #fff3a8;
  --title-font: 'Bagel', sans-serif; --title-weight: 400; --title-size: 1; --glow: transparent;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: #1a0b3d; color: var(--text); font: 400 16px/1.4 var(--sans); overflow: hidden; overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
.ico { width: 22px; height: 22px; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.screen { position: fixed; inset: 0; display: flex; flex-direction: column; height: 100svh; overflow: hidden; }
.mood { background: var(--bg); color: var(--text); }

/* chrome bubble lettering */
.chrome {
  font-family: var(--title-font); font-weight: var(--title-weight); letter-spacing: .005em;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.75);
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.18)) drop-shadow(0 6px 14px rgba(40,0,80,.35)) drop-shadow(0 0 12px var(--glow));
}

.glass-panel .chrome { background: var(--chrome-panel, var(--chrome)); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1px rgba(255,255,255,.9); }
.card__name.chrome { filter: drop-shadow(0 1.5px 0 rgba(50,0,80,.5)) drop-shadow(0 3px 8px rgba(50,0,80,.35)); }

/* ---------- jelly buttons ---------- */
.big {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden;
  width: 100%; max-width: 420px; min-height: 60px; padding: 0 26px; border-radius: 999px;
  background: linear-gradient(180deg, var(--btn2) 0%, var(--btn) 55%, var(--btn) 100%); color: var(--btn-text);
  font: 600 18px/1 var(--sans); letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,0,0,.25);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.75), inset 0 -8px 16px rgba(0,0,0,.18), 0 0 0 2px rgba(255,255,255,.55), 0 14px 30px -10px var(--btn);
  transition: transform .15s ease, opacity .2s, filter .2s;
}
.big::before { content: ''; position: absolute; left: 8%; right: 8%; top: 4px; height: 42%; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,0)); pointer-events: none; }
.big::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); animation: shine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.big .ico { width: 20px; height: 20px; position: relative; }
.big:hover { filter: brightness(1.06) saturate(1.1); }
.big:active:not(:disabled) { transform: scale(.96); }
.big:disabled { opacity: .55; }
.ibtn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; transition: background .15s; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.ibtn:hover { background: rgba(255,255,255,.18); }
.ibtn:disabled { opacity: .3; }
.seg { display: inline-flex; border-radius: 999px; overflow: hidden; height: 30px; background: rgba(255,255,255,.2); box-shadow: inset 0 1px 2px rgba(0,0,0,.15), 0 0 0 1px rgba(255,255,255,.4); }
.seg button { font: 600 11px/1 var(--sans); letter-spacing: .1em; padding: 0 11px; text-transform: uppercase; color: var(--panel-muted); }
.seg button.on { background: linear-gradient(180deg, var(--btn2), var(--btn)); color: var(--btn-text); box-shadow: inset 0 1px 1px rgba(255,255,255,.7); }

/* glass panel with an iridescent rim */
.glass-panel {
  background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--holo) border-box;
  border: 2px solid transparent;
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 -16px 50px -24px rgba(40,0,80,.5);
}

/* ---------- backgrounds: holo shimmer + glitter + mood props ---------- */
.fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.fx i { position: absolute; display: block; }
.fx svg { width: 100%; height: 100%; display: block; overflow: visible; }
.holo { inset: -50%; background: conic-gradient(from 0deg at 50% 50%, var(--h0), var(--h1), var(--h2), var(--h3), var(--h0)); opacity: .22; mix-blend-mode: soft-light; animation: holoSpin 18s linear infinite; filter: blur(30px); }
@keyframes holoSpin { to { transform: rotate(360deg); } }
.glitter { inset: 0; background-image: radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 70% 60%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 40% 80%, #fff 0 .8px, transparent 1.3px), radial-gradient(circle at 85% 15%, #fff 0 1.2px, transparent 1.7px); background-size: 61px 67px, 83px 79px, 47px 53px, 97px 89px; opacity: .55; animation: glit 2.4s steps(3) infinite; }
@keyframes glit { 33% { opacity: .25; background-position: 3px 2px, -2px 4px, 1px -3px, 0 0; } 66% { opacity: .7; background-position: -2px 1px, 2px -2px, -3px 2px, 2px 1px; } }
.sp { left: var(--x); top: var(--y); width: var(--s); height: var(--s); animation: twinkle var(--d) ease-in-out var(--dl) infinite; filter: drop-shadow(0 0 6px rgba(255,255,255,.9)); }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(90deg); } }
.fl { left: var(--x); bottom: -60px; width: var(--s); height: var(--s); animation: rise var(--d) linear var(--dl) infinite; filter: drop-shadow(0 4px 8px rgba(80,0,120,.25)); }
.bf { animation-name: flutter; }
@keyframes rise { 0% { transform: translate(0, 0) rotate(-10deg); } 50% { transform: translate(24px, -60vh) rotate(12deg); } 100% { transform: translate(-10px, -120vh) rotate(-8deg); } }
@keyframes flutter { 0% { transform: translate(0, 0) scaleX(1); } 25% { transform: translate(30px, -30vh) scaleX(.6); } 50% { transform: translate(-20px, -60vh) scaleX(1); } 75% { transform: translate(20px, -90vh) scaleX(.6); } 100% { transform: translate(0, -125vh) scaleX(1); } }
.bub { left: var(--x); bottom: -60px; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 8%, rgba(255,255,255,.15) 30%, rgba(255,255,255,.05) 60%), conic-gradient(from 40deg, rgba(255,158,198,.5), rgba(168,216,255,.5), rgba(255,243,168,.5), rgba(255,158,198,.5)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); animation: rise var(--d) linear var(--dl) infinite; }
.neongrid { left: -50%; right: -50%; bottom: 0; height: 55%; background: linear-gradient(transparent 0 calc(100% - 2px), rgba(0,229,255,.6) 0) 0 0 / 100% 40px, linear-gradient(90deg, transparent 0 calc(100% - 2px), rgba(255,47,210,.55) 0) 0 0 / 60px 100%; transform: perspective(300px) rotateX(62deg); transform-origin: 50% 100%; animation: gridMove 3s linear infinite; -webkit-mask: linear-gradient(transparent, #000 60%); mask: linear-gradient(transparent, #000 60%); }
@keyframes gridMove { to { background-position: 0 40px, 0 0; } }
.retro-sun { left: 50%; top: 16%; width: min(76vw, 460px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: linear-gradient(#fff3a8, #ff6a8a 70%); -webkit-mask: linear-gradient(#000 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 68%, #000 68% 74%, transparent 74% 80%, #000 80% 85%, transparent 85%); mask: linear-gradient(#000 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 68%, #000 68% 74%, transparent 74% 80%, #000 80% 85%, transparent 85%); opacity: .6; }
.stage3d { display: block; width: 100%; height: 100%; -webkit-mask: linear-gradient(transparent, #000 6%, #000 80%, transparent); mask: linear-gradient(transparent, #000 6%, #000 80%, transparent); }

/* ---------- intro ---------- */
.intro { z-index: 40; transition: opacity .7s ease, transform .7s ease; }
.intro.out { opacity: 0; transform: scale(1.06); pointer-events: none; }
.intro__stage { position: absolute; inset: 24% 0 22%; z-index: 1; }
.intro__top { position: relative; z-index: 2; text-align: center; padding: calc(env(safe-area-inset-top, 0px) + 48px) 16px 0; }
.kicker { display: inline-block; margin: 0 0 10px; padding: 7px 14px; border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 1px rgba(255,255,255,.35); animation: up .8s .2s both; }
.logo { margin: 0; font-size: clamp(56px, 17.5vw, 130px); line-height: .92; animation: logoIn 1.3s cubic-bezier(.2,1.4,.3,1) both; }
@keyframes logoIn { 0% { opacity: 0; transform: scale(.4) rotate(-6deg); } 60% { opacity: 1; } }
.logo-wrap { position: relative; display: inline-block; }
.logo-wrap .star { position: absolute; width: 34px; height: 34px; animation: twinkle 2.2s ease-in-out infinite; filter: drop-shadow(0 0 8px #fff); }
.intro__bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 20px calc(26px + var(--safe-b)); text-align: center; }
.intro__tag { margin: 0; font: 500 18px/1.3 var(--sans); text-shadow: 0 1px 8px rgba(40,0,80,.4); animation: up .8s 1.1s both; }
.intro__tag b { font-weight: 700; }
.intro .big { animation: up .8s 1.3s both; }
.intro__small { margin: 0; font: 400 12px/1.4 var(--sans); color: var(--muted); letter-spacing: .04em; animation: up .8s 1.5s both; }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }

/* ---------- menu ---------- */
.home > * { position: relative; z-index: 1; }
.home > .fx { position: absolute; z-index: 0; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 66px; padding: 0 8px 0 16px; flex: none; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__word { font-size: 30px; line-height: 1; white-space: nowrap; }
.brand__n { font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.bar__act { display: flex; align-items: center; gap: 2px; }
.legal-link { font: 400 11px/1 var(--sans); color: var(--muted); opacity: .6; text-decoration: none; padding: 8px; }
.searchbar { display: flex; align-items: center; gap: 8px; margin: 0 16px 10px; padding: 0 16px; height: 50px; border-radius: 999px; flex: none; animation: up .25s both; }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 16px var(--sans); color: var(--panel-text); }
.searchbar input::placeholder { color: var(--panel-muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 14px; flex: none; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; font: 600 14px/1 var(--sans); white-space: nowrap; color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,.12)); box-shadow: inset 0 1px 1px rgba(255,255,255,.8), 0 0 0 1.5px rgba(255,255,255,.45), 0 6px 14px -8px rgba(40,0,80,.5); text-shadow: 0 1px 2px rgba(40,0,80,.35); transition: transform .15s; }
.chip:active { transform: scale(.95); }
.chip sup { font: 600 10px/1 var(--sans); opacity: .7; vertical-align: 0; }
.chip .ico { width: 16px; height: 16px; }
.chip.on { background: linear-gradient(180deg, var(--btn2), var(--btn)); box-shadow: inset 0 2px 1px rgba(255,255,255,.75), 0 0 0 2px #fff, 0 8px 18px -8px var(--btn); }

.grid { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); grid-auto-rows: max-content; gap: 14px; align-content: start; padding: 6px 16px calc(112px + var(--safe-b)); }
.card {
  position: relative; display: flex; flex-direction: column; text-align: left; border-radius: 26px; overflow: hidden;
  background: var(--bg) padding-box, var(--holo) border-box; border: 2.5px solid transparent; color: var(--text);
  box-shadow: 0 16px 34px -18px rgba(40,0,80,.75);
  animation: cardIn .6s calc(var(--i) * 34ms) cubic-bezier(.2,1.3,.3,1) both; transition: transform .3s cubic-bezier(.2,1.3,.3,1);
}
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 28%); pointer-events: none; }
.nostagger .card { animation: none; }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.9) rotate(-2deg); } }
@media (hover: hover) { .card:hover { transform: translateY(-6px) rotate(-1deg); } .card:hover .card__img { transform: scale(1.07) translateY(-4px); } }
.card:active { transform: scale(.96); }
.card__art { position: relative; aspect-ratio: 4 / 5; display: block; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; -webkit-mask: linear-gradient(#000 78%, transparent); mask: linear-gradient(#000 78%, transparent); transition: opacity .5s, transform .5s cubic-bezier(.2,1.3,.3,1); }
.card.ready .card__img { opacity: 1; }
.card__spin { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spinner 1s linear infinite; }
.card.ready .card__spin { display: none; }
@keyframes spinner { to { transform: rotate(360deg); } }
.card__fav { position: absolute; top: 10px; right: 10px; color: #fff; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); z-index: 2; }
.card__fav .ico { width: 18px; height: 18px; }
.card__name { position: relative; z-index: 1; padding: 0 12px; font-size: calc(19px * var(--title-size)); line-height: 1.12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__sub { position: relative; z-index: 1; padding: 4px 12px 13px; font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; font: 400 24px/1.2 'Bagel', sans-serif; color: #fff; }
.dice { position: fixed; left: 16px; bottom: calc(18px + var(--safe-b)); z-index: 5; width: auto; min-height: 56px; padding: 0 22px 0 18px; font-size: 16px; }
.dice .ico { width: 24px; height: 24px; transition: transform .6s cubic-bezier(.3,1.6,.5,1); }
.dice.roll .ico { transform: rotate(360deg) scale(1.2); }

/* ---------- wipe ---------- */
.wipe { position: fixed; inset: 0; z-index: 25; pointer-events: none; opacity: 0; transition: clip-path .55s cubic-bezier(.7,0,.2,1), opacity .25s .5s; }
.wipe.on { opacity: 1; transition: clip-path .55s cubic-bezier(.7,0,.2,1); }

/* ---------- recipe ---------- */
.recipe { z-index: 20; opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.recipe.in { opacity: 1; transform: none; }
.recipe > *:not(.fx), .mix > *:not(.fx) { position: relative; z-index: 1; }
.r-top { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 6px; flex: none; }
.r-mood { font: 700 10.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 1px rgba(255,255,255,.35); color: #fff; text-shadow: 0 1px 2px rgba(40,0,80,.4); }
.r-actions { display: flex; }
.fav.on { color: #fff; }
.r-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.r-hero { position: relative; flex: 1 1 44%; min-height: 230px; }
.r-stage { position: absolute; inset: 0; cursor: grab; }
.r-stage:active { cursor: grabbing; }
.r-hint { position: absolute; right: 14px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .75; pointer-events: none; animation: up .6s 2.5s both; text-shadow: 0 1px 4px rgba(40,0,80,.4); }
.r-hint .ico { width: 14px; height: 14px; }
.r-info { flex: 0 1 auto; min-height: 0; max-height: 56%; display: flex; flex-direction: column; margin: 0 10px; padding: 18px 18px calc(48px + var(--safe-b)); color: var(--panel-text); border-radius: 30px 30px 0 0; border-bottom: 0; animation: panelIn .6s .1s cubic-bezier(.2,1.2,.3,1) both; }
@keyframes panelIn { from { transform: translateY(50px); opacity: 0; } }
.r-title { flex: none; }
.r-name { margin: 0; font-size: calc(clamp(36px, 10.5vw, 58px) * var(--title-size)); line-height: 1.08; white-space: nowrap; overflow: hidden; padding: .04em .02em .08em; }
.r-desc { margin: 2px 0 0; color: var(--panel-muted); font-size: 15px; font-weight: 500; }
.r-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font: 600 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--panel-muted); flex: none; }
.r-meta span { display: inline-flex; align-items: center; gap: 5px; }
.r-meta .ico { width: 15px; height: 15px; }
.tabs { display: flex; align-items: center; gap: 4px; margin-top: 12px; border-bottom: 1px solid var(--line); flex: none; }
.tab { height: 40px; padding: 0 10px; font: 600 14px/1 var(--sans); color: var(--panel-muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--panel-text); border-image: linear-gradient(90deg, var(--btn2), var(--btn)) 1; }
.tabs .units { margin-left: auto; }
.r-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 0 6px; -webkit-overflow-scrolling: touch; }
.ratio { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin-bottom: 6px; gap: 2px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.6); }
.ratio span { position: relative; background: var(--c); min-width: 4px; transform-origin: left; animation: grow .8s cubic-bezier(.2,1.2,.3,1) both; }
.ratio span::after { content: ''; position: absolute; left: 0; right: 0; top: 1px; height: 4px; background: rgba(255,255,255,.55); border-radius: 99px; }
@keyframes grow { from { transform: scaleX(0); } }
.ings { list-style: none; margin: 0; padding: 0; }
.ings li { display: grid; grid-template-columns: 16px 92px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dot { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 14%, transparent 34%), var(--c); box-shadow: inset 0 -2px 3px rgba(0,0,0,.25), 0 0 0 1.5px rgba(255,255,255,.75), 0 2px 6px rgba(0,0,0,.2); }
.amt { font: 700 14px/1.2 var(--sans); }
.nm { font-size: 15px; font-weight: 500; line-height: 1.25; }
.tag { font: 700 9.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; border-radius: 99px; padding: 5px 8px; white-space: nowrap; color: #fff; background: linear-gradient(180deg, var(--btn2), var(--btn)); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.garn { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 15px; font-weight: 500; color: var(--panel-muted); }
.garn .ico { width: 18px; height: 18px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 10px 0 10px 40px; border-bottom: 1px solid var(--line); counter-increment: s; font-size: 15px; font-weight: 500; line-height: 1.35; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 7px; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(180deg, var(--btn2), var(--btn)); color: var(--btn-text); font: 700 12px/28px var(--sans); text-align: center; box-shadow: inset 0 1px 1px rgba(255,255,255,.7), 0 0 0 1.5px rgba(255,255,255,.6); }
.steps li small { display: block; color: var(--panel-muted); font-size: 13px; margin-top: 2px; }
.steps li.tip { counter-increment: none; }
.steps li.tip::before { content: '!'; }
.mixbtn { flex: none; margin: 12px auto 0; }

/* ---------- mix ---------- */
.mix { z-index: 30; opacity: 0; transform: translateY(24px); transition: opacity .35s, transform .4s cubic-bezier(.2,.8,.2,1); }
.mix.in { opacity: 1; transform: none; }
.m-top { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px 0 6px; flex: none; }
.m-prog { flex: 1; display: flex; gap: 4px; }
.m-prog i { flex: 1; height: 7px; border-radius: 9px; background: rgba(255,255,255,.28); box-shadow: inset 0 1px 2px rgba(0,0,0,.15); transition: background .3s; }
.m-prog i.done { background: linear-gradient(180deg, #fff, rgba(255,255,255,.75)); }
.m-prog i.now { background: linear-gradient(180deg, var(--btn2), var(--btn)); box-shadow: 0 0 0 1.5px #fff, 0 0 12px var(--btn); }
.m-count { font: 700 12px/1 var(--sans); letter-spacing: .08em; min-width: 38px; text-align: right; text-shadow: 0 1px 3px rgba(40,0,80,.4); }
.m-stage { position: relative; flex: 1; min-height: 0; }
.m-canvas { position: absolute; inset: 0; }
.m-card { flex: none; margin: 0 10px; padding: 18px 18px calc(46px + var(--safe-b)); color: var(--panel-text); border-radius: 30px 30px 0 0; border-bottom: 0; }
.m-copy { min-height: 118px; }
.m-copy.swap { animation: pop .4s cubic-bezier(.2,1.4,.3,1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.m-amt { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--panel-muted); }
.m-amt[style*="--dc"]::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 14%, transparent 34%), var(--dc); box-shadow: 0 0 0 1.5px rgba(255,255,255,.8); }
.m-text { margin: 6px 0 4px; font-size: calc(clamp(30px, 8.6vw, 44px) * var(--title-size)); line-height: 1.08; padding-bottom: .06em; }
.m-sub { margin: 0; color: var(--panel-muted); font-size: 15px; font-weight: 500; min-height: 1.3em; }
.m-extra { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--sans); border-radius: 99px; padding: 7px 11px; background: rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 1px rgba(255,255,255,.4); }
.pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px #fff; }
.ghost { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font: 600 14px/1 var(--sans); color: var(--panel-text); background: rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 0 0 1.5px rgba(255,255,255,.5); }
.ghost .ico { width: 18px; height: 18px; }
.m-btns { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.m-back { width: 58px; height: 58px; flex: none; color: var(--panel-text); background: rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 0 0 1.5px rgba(255,255,255,.5); }
.m-go { flex: 1; max-width: none; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.confetti i { position: absolute; top: -24px; left: var(--x); width: 10px; height: 14px; border-radius: 3px; box-shadow: inset 0 2px 0 rgba(255,255,255,.7); animation: fall var(--t) var(--d) cubic-bezier(.3,.2,.6,1) both; }
.confetti i.circle { border-radius: 50%; width: 12px; height: 12px; }
.confetti i.bar { width: 18px; height: 18px; border-radius: 0; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); background: #fff !important; }
@keyframes fall { to { transform: translateY(105vh) rotate(var(--r)); } }

.no3d .r-hero { min-height: 60px; flex: 0 0 60px; }

.toast { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; z-index: 60; transform: translate(-50%, -90px); background: linear-gradient(180deg, #fff, #f3e8ff); color: #4a1a7a; font: 700 13px/1 var(--sans); letter-spacing: .04em; padding: 13px 18px; border-radius: 999px; transition: transform .35s cubic-bezier(.2,1.4,.3,1); pointer-events: none; white-space: nowrap; box-shadow: inset 0 -3px 6px rgba(120,60,200,.15), 0 0 0 2px #fff, 0 10px 30px -10px rgba(80,0,140,.6); }
.toast.on { transform: translate(-50%, 0); }

@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; padding: 6px 28px 120px; }
  .bar { padding: 0 20px 0 28px; height: 78px; }
  .brand__word { font-size: 38px; }
  .chips { padding: 4px 28px 18px; }
  .searchbar { margin: 0 28px 10px; max-width: 520px; }
  .dice { left: 28px; bottom: 28px; }
  .r-body { flex-direction: row; }
  .r-hero { flex: 1.2; }
  .r-info { flex: 0 0 520px; max-height: none; margin: 0 24px 0 0; padding: 28px 32px 40px; }
  .r-name { font-size: calc(64px * var(--title-size)); }
  .m-card { width: min(640px, 100%); margin: 0 auto; padding-bottom: 30px; }
  .intro__stage { inset: 22% 0 20%; }
}
@media (max-height: 700px) {
  .r-name { font-size: calc(36px * var(--title-size)); }
  .r-meta { display: none; }
  .tabs { margin-top: 8px; }
  .m-copy { min-height: 98px; }
  .m-text { font-size: calc(30px * var(--title-size)); }
  .intro__top { padding-top: 36px; }
  .logo { font-size: clamp(48px, 15vw, 96px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } }
