/* First launch of the apps (ui/onboarding.js): a full-screen night-Tokyo stage with the steps on top. */
html.ob-open,html.ob-open body{overflow:hidden}
.obx{position:fixed;inset:0;z-index:2000;background:#060816;color:#f6f1ff;overflow:hidden;font-feature-settings:"palt"}
/* The stage: clip or still, rain, drifting cards */
.obx-stage{position:absolute;inset:0;overflow:hidden}
.obx-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.obx-drift{animation:obx-drift 26s ease-in-out infinite alternate;transform-origin:50% 40%}
@keyframes obx-drift{from{transform:scale(1.04) translate(0,0)}to{transform:scale(1.16) translate(-2%,-3%)}}
.obx-rain{position:absolute;inset:-20% 0 0;background:repeating-linear-gradient(105deg,transparent 0 22px,#bfe8ff14 22px 23px,transparent 23px 41px);animation:obx-rain 1.1s linear infinite;mix-blend-mode:screen;opacity:.55}
@keyframes obx-rain{to{transform:translate(-30px,120px)}}
.obx-cards{position:absolute;inset:0}
.obx-card{position:absolute;top:-14%;left:calc(8% + var(--i) * 15%);width:44px;height:62px;display:flex;flex-direction:column;justify-content:space-between;padding:4px 6px;border-radius:6px;background:#fffdf5;color:#1d2238;font:700 15px/1 Georgia,serif;box-shadow:0 8px 24px #000a;opacity:.85;animation:obx-fall calc(9s + var(--i) * 1.3s) linear infinite;animation-delay:calc(var(--i) * -2.1s)}
.obx-card.red{color:#d81f5a}
.obx-card i{font-style:normal;font-size:20px;align-self:center}
@keyframes obx-fall{0%{transform:translateY(0) rotate(-20deg) rotateY(0)}50%{transform:translateY(70vh) rotate(25deg) rotateY(180deg)}100%{transform:translateY(130vh) rotate(60deg) rotateY(360deg)}}
.obx-scrim{position:absolute;inset:0;background:linear-gradient(180deg,#06081699 0%,#06081622 30%,#06081633 55%,#060816e6 82%,#060816 100%)}
.obx[data-step=hero] .obx-scrim{background:radial-gradient(120% 70% at 50% 45%,#0608164d,#060816e6 75%)}
.obx[data-step=start] .obx-scrim{background:#060816c7}
/* Steps */
.obx-panel{position:relative;height:100%;box-sizing:border-box;display:flex;flex-direction:column;padding:calc(env(safe-area-inset-top) + 12px) calc(env(safe-area-inset-right) + 18px) calc(env(safe-area-inset-bottom) + 20px) calc(env(safe-area-inset-left) + 18px);overflow-y:auto}
.obx-top{display:flex;align-items:center;justify-content:space-between;min-height:40px}
.obx-dots{display:flex;gap:6px;margin:0;padding:0;list-style:none}
.obx-dots li{width:22px;height:4px;border-radius:2px;background:#ffffff33}
.obx-dots li.on{background:linear-gradient(90deg,#ff69c4,#63dfff)}
.obx-top-end{display:flex;align-items:center;gap:4px}
.obx-sound{width:40px;height:40px;border:1px solid #ffffff40;border-radius:50%;background:#0b1030aa;color:#fff;font-size:18px;line-height:1;cursor:pointer;backdrop-filter:blur(4px)}
.obx-sound.off{color:#ffffff80}.obx-sound.off span{text-decoration:line-through}
.obx-skip{min-height:40px;padding:0 14px;border:0;background:transparent;color:#d6cff0;font:inherit;font-size:14px;cursor:pointer;text-shadow:0 1px 6px #000}
.obx-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:12px;text-align:center;width:min(100%,560px);margin:0 auto}
.obx-note{color:#c3bce0;font-size:12px;line-height:1.7;margin:0;text-shadow:0 1px 6px #000}
.obx-cta{width:min(100%,360px);min-height:56px;border:0;border-radius:999px;background:linear-gradient(90deg,#ff5fb8,#c264ff);color:#fff;font:inherit;font-size:17px;font-weight:700;letter-spacing:.1em;box-shadow:0 0 0 1px #ffffff40 inset,0 10px 30px #ff4fae66;cursor:pointer;animation:obx-pulse 2.6s ease-in-out infinite}
@keyframes obx-pulse{50%{box-shadow:0 0 0 1px #ffffff60 inset,0 10px 44px #ff4faeaa}}
.obx button:focus-visible{outline:3px solid #63dfff;outline-offset:3px}
.obx-cta:active,.obx-choice:active{transform:scale(.97)}
/* 1: opening */
.obx-logo{width:min(78%,420px);filter:drop-shadow(0 6px 24px #ff4fae66);animation:obx-in .9s .1s both}
.obx-logo .brand-art{width:100%;height:auto;display:block}
.obx-title{margin:6px 0 0;font-family:'Shippori Mincho B1',var(--serif,serif);font-size:clamp(28px,8vw,46px);letter-spacing:.06em;line-height:1.25;text-shadow:0 0 22px #ff69c4aa,0 2px 8px #000;outline:none;white-space:nowrap}
.obx-title span{display:inline-block;white-space:pre;animation:obx-letter .6s cubic-bezier(.2,.9,.3,1.3) both;animation-delay:calc(.5s + var(--i) * .07s)}
.obx-title:lang(en){font-size:clamp(18px,5.6vw,38px)}
@keyframes obx-letter{from{opacity:0;transform:translateY(18px) scale(.8);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
.obx-lead{margin:0;color:#e2dcff;font-size:15px;line-height:1.8;text-shadow:0 1px 8px #000;animation:obx-in .8s 1.3s both}
.obx-welcome .obx-cta{animation:obx-in .7s 1.6s both,obx-pulse 2.6s 2.4s ease-in-out infinite}
.obx-welcome .obx-note{animation:obx-in .7s 1.8s both}
@keyframes obx-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
/* 2: heroes */
.obx-hero{justify-content:space-between;gap:6px}
.obx-ask{margin:4px 0 0;font-family:'Shippori Mincho B1',var(--serif,serif);font-size:clamp(22px,6vw,32px);letter-spacing:.06em;text-shadow:0 2px 10px #000;outline:none}
.obx-carousel{position:relative;flex:1;min-height:0;width:100%;display:flex;align-items:flex-end;justify-content:center;touch-action:pan-y}
.obx-figure{margin:0;height:100%;max-height:62vh;display:flex;align-items:flex-end;justify-content:center;filter:drop-shadow(0 0 28px color-mix(in srgb,var(--tint) 55%,transparent))}
.obx-figure img,.obx-figure .obx-motion{height:100%;width:auto;max-width:100%;object-fit:contain;object-position:bottom;user-select:none;-webkit-user-drag:none}
.obx-figure{position:relative}.obx-figure .obx-motion{display:none}.obx-figure.moving .obx-motion{display:block}.obx-figure.moving img{display:none}
.obx-motion-src{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.obx-figure.from-right img{animation:obx-from-right .45s cubic-bezier(.2,.8,.2,1) both}
.obx-figure.from-left img{animation:obx-from-left .45s cubic-bezier(.2,.8,.2,1) both}
@keyframes obx-from-right{from{opacity:0;transform:translateX(30%) scale(.95)}to{opacity:1;transform:none}}
@keyframes obx-from-left{from{opacity:0;transform:translateX(-30%) scale(.95)}to{opacity:1;transform:none}}
.obx-nav{position:absolute;top:45%;z-index:1;width:44px;height:44px;border:1px solid #ffffff40;border-radius:50%;background:#0b1030aa;color:#fff;font-size:26px;line-height:1;cursor:pointer;backdrop-filter:blur(4px)}
.obx-nav.prev{left:0}.obx-nav.next{right:0}
.obx-plate{display:flex;flex-direction:column;gap:2px;padding:10px 18px;border-left:3px solid var(--tint);border-radius:4px;background:linear-gradient(90deg,#0b1030ee,#0b103088);text-align:left;align-self:stretch;max-width:420px;margin:-36px auto 0;position:relative;animation:obx-in .45s both}
.obx-plate small{color:#cbc4ea;font-size:12px}
.obx-plate b{font-size:20px;letter-spacing:.06em}
.obx-plate em{font-style:normal;color:var(--tint);font-size:13px}
.obx-picks{display:flex;gap:10px;justify-content:center;margin:4px 0}
.obx-pick{width:12px;height:12px;padding:0;border:1px solid #ffffff80;border-radius:50%;background:transparent;cursor:pointer}
.obx-pick.on{background:var(--tint);border-color:var(--tint);box-shadow:0 0 10px var(--tint)}
/* 3: how to start */
.obx-start{justify-content:center}
.obx-choices{width:min(100%,520px);display:grid;gap:14px;perspective:900px}
.obx-choice{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:96px;padding:18px 20px 18px 76px;border:1px solid #ffffff30;border-radius:16px;background:linear-gradient(135deg,#1e1640f2,#0e1434f2);color:inherit;font:inherit;text-align:left;cursor:pointer;animation:obx-deal .6s cubic-bezier(.2,.9,.3,1.2) both;animation-delay:calc(.15s + var(--i) * .15s);box-shadow:0 14px 34px #000a}
.obx-choice:first-child{border-color:#ff69c4;box-shadow:0 0 0 1px #ff69c455,0 14px 34px #000a,0 0 30px #ff4fae33}
.obx-choice b{font-size:19px}
.obx-choice>span:not(.obx-suit){font-size:13px;color:#d3cbef;line-height:1.6}
.obx-suit{position:absolute;left:18px;top:50%;transform:translateY(-50%);width:42px;height:58px;display:grid;place-items:center;border-radius:6px;background:#fffdf5;color:#1d2238;font-size:26px;box-shadow:0 4px 12px #0008}
.obx-choice.red .obx-suit{color:#d81f5a}
@keyframes obx-deal{from{opacity:0;transform:translateY(40px) rotateX(35deg) rotate(-4deg)}to{opacity:1;transform:none}}
.obx-panel.enter .obx-body{animation:obx-in .45s both}
/* Landscape phones: copy on the left, stage on the right */
@media (orientation:landscape) and (max-height:560px){
 .obx-body{width:min(100%,760px);gap:8px}
 .obx-welcome{align-items:flex-start;text-align:left;justify-content:center}
 .obx-logo{width:240px}
 .obx-title{font-size:30px}
 .obx-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto 1fr auto auto auto;grid-template-areas:"ask ask" "fig ." "fig plate" "fig picks" "fig cta";align-items:center;justify-items:center;column-gap:24px;row-gap:8px;width:min(100%,820px);min-height:0}
 .obx-hero .obx-ask{font-size:22px;margin:0}
 .obx-hero .obx-ask{grid-area:ask}
 .obx-hero .obx-carousel{grid-area:fig;height:100%;min-height:0;align-self:stretch}
 .obx-hero .obx-figure{max-height:none}
 .obx-hero .obx-plate{grid-area:plate;margin:0;align-self:end}
 .obx-hero .obx-picks{grid-area:picks}
 .obx-hero .obx-cta{grid-area:cta}
 .obx-hero .obx-note{display:none}
 .obx-cta{min-height:48px}
 .obx-choices{grid-template-columns:1fr 1fr}
 .obx-choice{padding:14px 14px 14px 68px}
 .obx-choice b{font-size:16px}
 .obx-suit{left:14px;width:38px;height:52px}
}
@media (prefers-reduced-motion:reduce){
 .obx *,.obx *::before,.obx *::after{animation:none!important}
 .obx-rain,.obx-cards{display:none}
}
/* 3: the optional account */
.obx[data-step=account] .obx-scrim{background:#060816cc}
.obx-account{justify-content:center;gap:10px}
.obx-perks{width:min(100%,460px);display:grid;gap:10px;margin:6px 0 8px;padding:0;list-style:none;text-align:left}
.obx-perks li{display:grid;grid-template-columns:44px 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:12px 14px;border:1px solid #ffffff26;border-radius:14px;background:#141a3ae0;animation:obx-in .5s both;animation-delay:calc(.15s + var(--i) * .12s)}
.obx-perk-icon{grid-row:1/3;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#ff5fb8,#7a5cff);color:#fff;font-size:22px;box-shadow:0 0 18px #ff4fae55}
.obx-perks b{font-size:16px}
.obx-perks li>span:not(.obx-perk-icon){font-size:12.5px;color:#cfc7ee;line-height:1.5}
.obx-sub{width:min(100%,360px);min-height:48px;border:1px solid #ffffff55;border-radius:999px;background:#0b1030aa;color:#fff;font:inherit;font-size:15px;cursor:pointer}
.obx-later{min-height:40px;padding:0 12px;border:0;background:transparent;color:#d6cff0;font:inherit;font-size:14px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
@media (orientation:landscape) and (max-height:560px){
 .obx-account{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"ask ask" "perks cta" "perks sub" "perks later" "note note";column-gap:20px;row-gap:6px;width:min(100%,820px);align-content:center;justify-items:center}
 .obx-account .obx-ask{grid-area:ask;font-size:22px}
 .obx-account .obx-lead{display:none}
 .obx-account .obx-perks{grid-area:perks;margin:0;gap:6px}
 .obx-account .obx-perks li{padding:8px 10px}
 .obx-account .obx-cta{grid-area:cta}
 .obx-account .obx-sub{grid-area:sub}
 .obx-account .obx-later{grid-area:later}
 .obx-account .obx-note{grid-area:note}
}
