/* ==========================================================================
   Gamarium · SPEC 18: the gear sticker, the "?" help stickers and hint sheets, the Settings sheet, the onboarding
   ========================================================================== */

.ph-r { flex: none; display: flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 2px; }
.gear svg { --icf: var(--lilac); transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.gear:active svg { transform: rotate(90deg); }

/* the "?" sticker */
.qh { position: relative; display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; margin-left: 6px; border-radius: 50%; vertical-align: 2px;
  background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); font: 400 13px/1 var(--f-d); color: var(--violet-d);
  -webkit-text-stroke: 0; text-shadow: none; letter-spacing: 0; text-transform: none; }
.qh::after { content: ""; position: absolute; inset: -10px; }
.qh:active { transform: translateY(1px) scale(.92); box-shadow: 0 1px 0 var(--ink); }
.sh h2 .qh { width: 22px; height: 22px; font-size: 14px; margin-left: 2px; }
.ph h1 .qh { width: 24px; height: 24px; font-size: 15px; vertical-align: 6px; }
.subhead h1 .qh { width: 22px; height: 22px; font-size: 14px; vertical-align: 4px; }
.st-title .qh { vertical-align: 4px; }
.st-name .qh { width: 21px; height: 21px; margin-left: 2px; font-size: 13.5px; }
.wm .l .qh { width: 17px; height: 17px; font-size: 11.5px; margin-left: 0; box-shadow: 0 1.5px 0 var(--ink); border-width: 1.5px; }
.cap .qh { width: 17px; height: 17px; font-size: 11.5px; margin-left: 5px; border-width: 1.5px; box-shadow: 0 1.5px 0 var(--ink); vertical-align: 0; }
.vb-max { display: inline-flex; align-items: center; }
.vb-max .qh { width: 17px; height: 17px; font-size: 11px; border-width: 1.5px; box-shadow: none; }
.amb-head .qh { vertical-align: 4px; }
.ap .qh { margin-left: auto; }
.tp-xt { display: flex; align-items: center; }
.cd-vb-top b .qh { width: 19px; height: 19px; font-size: 12px; vertical-align: 2px; }

/* settings sheet */
.st-cap { margin: 16px 4px 8px; font: 900 11px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.st-group { overflow: hidden; }
.st-gap { margin-top: 16px; }
.st-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; text-align: left; }
button.st-row:active { background: var(--lilac); }
.st-row .itile { width: 38px; height: 38px; border-radius: 12px; }
.st-row .itile svg { width: 19px; height: 19px; }
.st-main { flex: 1; min-width: 0; }
.st-main b { display: block; font: 400 16px/1.1 var(--f-d); letter-spacing: .01em; }
.st-main > span { display: block; margin-top: 3px; font: 800 11.5px/1.3 var(--f-ui); color: var(--ink-3); }
.st-row > svg { flex: none; width: 18px; height: 18px; color: var(--ink-3); stroke-width: 3; }
.st-val { flex: none; height: 26px; padding: 0 10px; border-radius: 9px; background: var(--lilac); border: 2px solid var(--ink); font: 900 12px/22px var(--f-ui); color: var(--ink); }
.st-val--mono { background: #fff; font-variant-numeric: tabular-nums; }
.sw { position: relative; flex: none; width: 50px; height: 30px; border-radius: 15px; background: #E3DBF1; border: var(--bw) solid var(--ink); transition: background .2s; }
.sw i { position: absolute; left: 2px; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink);
  transition: transform .32s cubic-bezier(.3, 1.6, .5, 1); }
.sw.is-on { background: var(--green); }
.sw.is-on i { transform: translateX(20px); }
.st-ver { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 4px; font: 900 11.5px/1 var(--f-ui); color: var(--ink-3); }
.st-ver img { width: 20px; height: 20px; }

/* hint sheet */
:root { --g-ink: linear-gradient(180deg, #3D2A6E, #1A0E38); }
.hint { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 4px 2px; }
.hint-ic { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; border: var(--bw) solid var(--ink); box-shadow: 0 4px 0 var(--ink); color: #fff; transform: rotate(-4deg); }
.hint-ic svg { width: 34px; height: 34px; filter: drop-shadow(1.4px 1.4px 0 var(--ink)) drop-shadow(-1.4px -1.4px 0 var(--ink)) drop-shadow(1.4px -1.4px 0 var(--ink)) drop-shadow(-1.4px 1.4px 0 var(--ink)); }
.hint h2 { margin-top: 16px; font-size: 26px; line-height: 1.05; }
.hint ul { list-style: none; width: 100%; margin: 14px 0 18px; text-align: left; }
.hint li { position: relative; padding: 9px 4px 9px 26px; font: 800 13.5px/1.45 var(--f-ui); color: var(--ink-2); }
.hint li + li { border-top: 2px dashed #E6DDF5; }
.hint li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 11px; height: 11px; border-radius: 4px; background: var(--gold); border: 2px solid var(--ink); transform: rotate(45deg); }

/* onboarding */
.ob { position: fixed; inset: 0; z-index: 450; display: flex; flex-direction: column; opacity: 0; transition: opacity .25s; }
.ob.is-in { opacity: 1; }
.ob.is-out { opacity: 0; transition-duration: .22s; }
.ob-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle, rgba(123, 77, 255, .09) 1.6px, transparent 2.2px) 0 0 / 20px 20px, linear-gradient(180deg, #C9B3FF 0%, #E9CCFF 30%, #FFE3D0 70%, #FFF3E4 100%); }
.ob-top { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-top) + var(--ca-top) + 10px) 16px 0; }
.ob-top img { height: 24px; width: auto; }
.ob-skip { height: 34px; padding: 0 14px; border-radius: 12px; background: #fff; border: var(--bw) solid var(--ink); box-shadow: 0 3px 0 var(--ink); font: 900 13px/1 var(--f-ui); color: var(--ink); }
.ob-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.ob-track::-webkit-scrollbar { display: none; }
.ob-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 14px 18px; }
.ob-card { width: 100%; max-width: 380px; padding: 0 18px 22px; border-radius: 28px; text-align: center; overflow: hidden; }
.ob-art { position: relative; height: 270px; margin: 0 -18px; display: grid; place-items: center; overflow: hidden; border-bottom: var(--bw) solid var(--ink); }
.ob-rays { position: absolute; left: 50%; top: 50%; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%; background: var(--corona-w); animation: cr-breathe 5s ease-in-out infinite; }
.ob-art::before { content: ""; position: absolute; inset: 0; background: var(--dust); opacity: .8; }
.ob1 .ob-art { background: radial-gradient(circle at 50% 45%, #FFF2B8, #FFD25A 30%, #FFA53A 65%, #FF7A3A); }
.ob2 .ob-art { background: radial-gradient(circle at 50% 45%, #C9B3FF, #9C78FF 45%, #5A2EE0); }
.ob3 .ob-art { background: radial-gradient(circle at 50% 45%, #B8F5D2, #53E895 40%, #1FBF67); }
.ob4 .ob-art { background: radial-gradient(circle at 50% 45%, #FFE6F1, #FF86BC 40%, #F2478E); }
.ob-coin img { position: relative; width: 190px; filter: drop-shadow(0 8px 0 rgba(42, 22, 82, .3)); animation: coin-bob 3s ease-in-out infinite; }
.ob-pop { position: absolute; font-size: 30px; color: #fff; text-shadow: 0 3px 0 var(--ink); }
.ob-pop.p1 { left: 14%; top: 18%; transform: rotate(-10deg); }
.ob-pop.p2 { right: 14%; top: 12%; transform: rotate(9deg); font-size: 24px; }
.ob-pop.p3 { right: 11%; bottom: 16%; transform: rotate(-6deg); color: #FFE27A; }
.ob-cards img { position: absolute; width: 118px; border-radius: 12px; border: var(--bw) solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.ob-cards .c1 { transform: translateX(-74px) translateY(10px) rotate(-12deg); }
.ob-cards .c3 { transform: translateX(74px) translateY(10px) rotate(12deg); }
.ob-cards .c2 { position: relative; z-index: 2; width: 132px; transform: translateY(-4px); }
.ob-vault img { position: relative; width: 190px; filter: drop-shadow(0 8px 0 rgba(42, 22, 82, .3)); }
.ob-amb img { position: relative; width: 150px; border-radius: 14px; border: var(--bw) solid var(--ink); box-shadow: 0 5px 0 var(--ink); transform: rotate(-4deg); }
.ob-chip { position: absolute; right: 10%; bottom: 12%; height: 38px; padding: 0 14px; border-radius: 13px; background: var(--g-gold); border: var(--bw) solid var(--ink); box-shadow: 0 3px 0 var(--ink);
  font-size: 19px; line-height: 33px; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; transform: rotate(6deg); }
.ob-step { display: inline-block; margin-top: 16px; height: 24px; padding: 0 9px; border-radius: 9px; background: var(--lilac); border: 2px solid var(--ink); font-size: 13px; line-height: 20px; color: var(--violet-d); }
.ob-card h2 { margin-top: 10px; font-size: 27px; line-height: 1.05; }
.ob-card p { margin-top: 10px; font: 800 14px/1.45 var(--f-ui); color: var(--ink-2); }
.ob-foot { padding: 4px 18px calc(var(--safe-bottom) + 16px); }
.ob-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.ob-dots i { width: 10px; height: 10px; border-radius: 5px; background: #fff; border: 2px solid var(--ink); transition: width .25s, background .25s; }
.ob-dots i.on { width: 28px; background: var(--gold); }
@media (max-height: 700px) { .ob-art { height: 210px; } .ob-coin img, .ob-vault img { width: 150px; } }
