/* Drop Tabs — step 3: springs make the drop sink, travel as a wave and rise */
/* One palette, "pearl". Every colour is a variable here, so the rest of the file never names one. */
:root {
  --bg: #0C0A1F; --glow-a: rgba(124, 92, 255, .38); --glow-b: rgba(255, 110, 196, .26); --top: #221A4F;
  --liq-a: #FFFFFF; --liq-b: #EEE8FF; --on-liq: #2A1E6B; --cut: #FFFFFF; --rim: rgba(255, 255, 255, .9);
  --text: #F6F3FF; --dim: rgba(246, 243, 255, .62); --accent: linear-gradient(90deg, #A68CFF, #FF8FD1);
  --chip-text: #1B1240;
}
:root { --display: 'Bricolage Grotesque', system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--display); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none; overflow: hidden;
}

/* ---- the stage ---- */
.stage {
  position: relative; height: 100dvh; display: grid; place-items: center;
  background:
    radial-gradient(36% 20% at 32% 51%, var(--glow-a), transparent 70%),
    radial-gradient(36% 20% at 70% 54%, var(--glow-b), transparent 70%),
    radial-gradient(90% 55% at 50% 0%, var(--top) 0%, transparent 70%),
    var(--bg);
}
.stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.frame { position: relative; width: 432px; height: 768px; flex: none; display: grid; place-items: center; transform: scale(var(--k, 1)); }

/* ---- the words ---- */
.title { position: absolute; top: 86px; left: 0; right: 0; text-align: center; }
.series {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 0 16px; font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--dim);
}
.series b { display: inline-grid; place-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; letter-spacing: .06em; color: var(--chip-text); background: var(--accent); }
.title h1 { margin: 0; font-size: 76px; font-weight: 800; line-height: .86; letter-spacing: -.055em; }
.title h1 em { display: inline-block; font-style: normal; padding-right: .04em; background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hint { margin: 18px 0 0; font-size: 15px; font-weight: 500; color: var(--dim); }

/* ---- the bar ---- */
.tabbar { position: relative; width: 344px; height: 150px; margin-top: -40px; touch-action: none; }
.liquid { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .35)); }
.liq-a { stop-color: var(--liq-a); } .liq-b { stop-color: var(--liq-b); }
.rim { fill: none; stroke: var(--rim, rgba(255, 255, 255, .55)); stroke-width: 1.4; pointer-events: none; }
.tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 72px; padding: 0 22px; display: grid; grid-template-columns: repeat(5, 1fr); }
.tab { display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; color: var(--on-liq); position: relative; z-index: 2; }
.tab .icon { will-change: transform; }
.tab .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tab:focus-visible { outline: 2.5px solid var(--on-liq); outline-offset: -8px; border-radius: 999px; }

.icon { width: 25px; height: 25px; overflow: visible; }
.icon .line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon .line .dot, .icon .line .sun { fill: currentColor; stroke: none; }
.icon .fill { fill: currentColor; stroke: none; opacity: 0; }
.icon .fill .cut { fill: var(--cut); }

/* ---- the touch circle ---- */
.touch {
  position: fixed; top: 0; left: 0; z-index: 10; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  border: 1.5px solid var(--text); background: color-mix(in srgb, var(--text) 14%, transparent);
  transition: opacity .12s;
}
.touch.is-on { opacity: 1; }
