/* ==========================================================================
   Shefaa · Lab attendance — "Porcelain & Rose" system
   Display: Alexandria · Text: IBM Plex Sans Arabic · all self-hosted
   ========================================================================== */
@font-face { font-family: "Display"; src: url(fonts/alexandria-arabic-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Display"; src: url(fonts/alexandria-arabic-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Display"; src: url(fonts/alexandria-arabic-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Display"; src: url(fonts/alexandria-arabic-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Display"; src: url(fonts/alexandria-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: "Display"; src: url(fonts/alexandria-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: "Display"; src: url(fonts/alexandria-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: "Display"; src: url(fonts/alexandria-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: "Text"; src: url(fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Text"; src: url(fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Text"; src: url(fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Text"; src: url(fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: "Text"; src: url(fonts/ibm-plex-sans-arabic-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: "Text"; src: url(fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }

:root {
  --bg: #faf6f4;
  --bg-2: #f4ece9;
  --surface: #fffefd;
  --ink: #221726;
  --ink-2: #4a3a4e;
  --muted: #76677a;
  --faint: #a597a6;
  --line: #eee3df;
  --line-2: #e2d3cf;

  --rose: #c8406f;
  --rose-2: #e0628f;
  --rose-soft: #fbe6ed;
  --rose-mist: #fdf3f6;
  --plum: #4b2550;
  --gold: #c7966a;
  --gold-soft: #f6ebe1;
  --lav: #8a6fd6;
  --lav-soft: #efeaff;
  --mint: #1f9b77;
  --mint-2: #43c49c;
  --mint-soft: #e2f5ee;
  --peach: #e28456;
  --peach-soft: #fdeee5;

  --grad-rose: linear-gradient(135deg, #e47aa0 0%, #c8406f 60%, #9c3a7b 100%);
  --grad-mint: linear-gradient(135deg, #5fd3ad 0%, #1f9b77 100%);
  --grad-gold: linear-gradient(135deg, #f0d2b4 0%, #c7966a 100%);

  --r-xl: 28px;
  --r: 20px;
  --r-sm: 14px;
  --sh-1: 0 1px 1px rgba(60, 25, 50, .04), 0 2px 6px rgba(60, 25, 50, .04);
  --sh-2: 0 1px 2px rgba(60, 25, 50, .05), 0 8px 24px -6px rgba(60, 25, 50, .10);
  --sh-3: 0 2px 4px rgba(60, 25, 50, .05), 0 24px 48px -12px rgba(60, 25, 50, .18);
  --display: "Display", "Text", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --text: "Text", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --side: 252px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 15.5px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 45% at 100% 0%, rgba(240, 190, 210, .35), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(240, 210, 190, .35), transparent 70%); }

a { color: var(--rose); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .display { font-family: var(--display); }
h1 { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: 17px; font-weight: 600; line-height: 1.3; }
small { font-size: 13px; }
.num, .mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.ico { width: 20px; height: 20px; flex: none; }
.inline { display: inline; margin: 0; }
.row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.gap { gap: 10px; }
.grow { flex: 1 1 0; min-width: 0; }
.center { text-align: center; justify-content: center; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mb { margin-bottom: 20px; }
:focus-visible { outline: 3px solid rgba(200, 64, 111, .35); outline-offset: 2px; border-radius: 10px; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 24px 16px; display: flex; flex-direction: column; gap: 26px; background: var(--surface); border-inline-end: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); padding: 0 6px; }
.logo { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--grad-rose); color: #fff; box-shadow: 0 6px 16px -4px rgba(200, 64, 111, .45), inset 0 1px 0 rgba(255,255,255,.3); }
.logo svg { width: 26px; height: 26px; }
.logo.xl { width: 76px; height: 76px; border-radius: 24px; }
.logo.xl svg { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink); }
.brand-text small { color: var(--muted); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11.5px; font-weight: 600; color: var(--faint); padding: 10px 14px 4px; letter-spacing: .04em; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; color: var(--ink-2); font-weight: 500; transition: background .2s, color .2s; }
.nav a:hover { background: var(--bg); }
.nav a.active { background: var(--rose-mist); color: var(--rose); font-weight: 600; }
.nav a .ico { width: 21px; height: 21px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--bg); }
.me-card .grow { display: flex; flex-direction: column; line-height: 1.25; }
.me-card strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card small { color: var(--muted); }
.side-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-actions > *, .side-actions .btn { width: 100%; min-width: 0; padding-inline: 8px; }
.main { min-width: 0; padding: 30px 40px 64px; max-width: 1260px; width: 100%; }
.mobile-top, .tabbar { display: none; }

/* ---------- Surfaces ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 20px; box-shadow: var(--sh-1); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h2 { display: flex; align-items: center; gap: 10px; }
.bubble-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--rose-mist); color: var(--rose); }
.bubble-ico .ico { width: 19px; height: 19px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.eyebrow { color: var(--rose); font-weight: 600; font-size: 13.5px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.eyebrow .ico { width: 17px; height: 17px; }
.eyebrow-inline { color: var(--rose); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-2-1 { grid-template-columns: 1.5fr 1fr; }
.grid > .card { margin-bottom: 0; }
.empty { color: var(--muted); text-align: center; padding: 28px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg.art { width: min(240px, 80%); height: auto; }
.hint { color: var(--muted); font-size: 13.5px; }
.hint .ico { width: 16px; height: 16px; vertical-align: -3px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.foot { text-align: center; color: var(--faint); font-size: 12.5px; padding: 28px 0 0; display: flex; justify-content: center; gap: 6px; align-items: center; }
.foot .ico { width: 14px; height: 14px; color: var(--rose-2); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 18px; inset-inline-end: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; font-weight: 500; font-size: 14.5px; background: var(--ink); color: #fff; box-shadow: var(--sh-3); animation: toastIn .45s var(--spring) both, toastOut .35s ease 5s forwards; }
.flash::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--rose-2); }
.flash-success::before { background: var(--mint-2); }
.flash.static { animation: none; box-shadow: none; margin-bottom: 16px; background: var(--lav-soft); color: #3d2d77; }
.flash.static::before { display: none; }
.flash-error.static { background: var(--rose-soft); color: var(--rose); }
.flash .ico { width: 18px; height: 18px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px); visibility: hidden; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid transparent; border-radius: 12px; padding: 9px 18px; font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; color: var(--ink); transition: transform .16s var(--ease), background .2s, box-shadow .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad-rose); color: #fff; box-shadow: 0 6px 16px -6px rgba(200, 64, 111, .55), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-primary:hover { box-shadow: 0 10px 22px -6px rgba(200, 64, 111, .6), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg); }
.btn-soft { background: var(--rose-mist); color: var(--rose); }
.btn-soft:hover { background: var(--rose-soft); }
.btn-danger { background: linear-gradient(135deg, #ea7b93, #c8406f); color: #fff; }
.btn-ghost.danger { color: var(--rose); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13.5px; border-radius: 10px; }
.btn-icon { min-height: 38px; width: 38px; padding: 0; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; }
.icon-btn .ico { width: 19px; height: 19px; }

/* ---------- Forms ---------- */
label { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
input, select { font: inherit; font-size: 16px; padding: 11px 14px; min-height: 48px; border-radius: 12px; width: 100%; min-width: 0; color: var(--ink); background: #fff; border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
input::placeholder { color: #a99aaa; }
input:focus, select:focus { outline: none; border-color: var(--rose-2); box-shadow: 0 0 0 4px rgba(224, 98, 143, .14); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
legend { font-family: var(--display); font-weight: 600; font-size: 16px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; color: var(--ink); }
legend .ico { color: var(--rose); }
.form-actions { grid-column: 1 / -1; display: flex; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.input-icon { position: relative; display: block; }
.input-icon .ico { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 18px; height: 18px; pointer-events: none; }
.input-icon input { padding-inline-start: 44px; }
.switch { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--bg); cursor: pointer; }
.switch span { display: flex; flex-direction: column; gap: 2px; }
.switch small { color: var(--muted); font-weight: 400; }
.switch input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; min-height: 0; padding: 0; border-radius: 99px; background: #e4d8d6; border: 0; position: relative; flex: none; cursor: pointer; transition: background .25s; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(60, 25, 50, .2); transition: transform .3s var(--spring); }
.switch input:checked { background: var(--rose); }
.switch input:checked::after { transform: translateX(20px); }
[dir="rtl"] .switch input:checked::after { transform: translateX(-20px); }

.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--bg); border-radius: 12px; padding: 3px; }
.stepper button { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--surface); color: var(--rose); font: inherit; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: var(--sh-1); transition: transform .15s var(--ease); }
.stepper button:active { transform: scale(.9); }
.stepper input { width: 70px; min-height: 36px; padding: 0; border: 0; background: none; text-align: center; font-family: var(--display); font-size: 17px; font-weight: 600; box-shadow: none; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets button { min-height: 34px; padding: 4px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.presets button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-weight: 600; font-size: 14px; color: var(--ink-2); }

/* Photo picker */
.photo-pick { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 18px; background: var(--bg); }
.photo-pick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-pick .grow { display: flex; flex-direction: column; gap: 4px; }
.photo-pick .btn { align-self: flex-start; }

/* ---------- Pills & avatars ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg); color: var(--ink-2); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill .ico { width: 14px; height: 14px; }
.pill-on { color: var(--mint); background: var(--mint-soft); }
.pill-on i { animation: ping 1.8s infinite; }
.pill-off { color: var(--muted); }
.pill-warn { color: #a3501f; background: var(--peach-soft); }
.pill-admin { color: #55399e; background: var(--lav-soft); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31, 155, 119, .55); } 70% { box-shadow: 0 0 0 7px rgba(31, 155, 119, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 155, 119, 0); } }
.tag { display: inline-block; padding: 1px 8px; border-radius: 7px; font-size: 12px; font-weight: 600; background: var(--peach-soft); color: #a3501f; }

.avatar { --s: 44px; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--display); font-weight: 600; font-size: calc(var(--s) * .36); color: #fff; position: relative; box-shadow: 0 0 0 2.5px #fff, var(--sh-1); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.sm { --s: 32px; }
.avatar.lg { --s: 56px; }
.avatar.xl { --s: 80px; }
.avatar.xxl { --s: 112px; }
.hue-0 { background: linear-gradient(135deg, #eba3bd, #c8406f); }
.hue-1 { background: linear-gradient(135deg, #b9a7ef, #7357c9); }
.hue-2 { background: linear-gradient(135deg, #f1b99a, #d9744c); }
.hue-3 { background: linear-gradient(135deg, #8fd8bf, #1f9b77); }
.hue-4 { background: linear-gradient(135deg, #a8c8ee, #4f84cf); }
.hue-5 { background: linear-gradient(135deg, #e1a9d8, #a64d98); }
.hue-6 { background: linear-gradient(135deg, #ead0a8, #c7966a); }
.hue-7 { background: linear-gradient(135deg, #d0b3ea, #9a5fc9); }
.avatar.has-photo { background: #eee; }
.avatar.live::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--mint-2); animation: halo 2.2s var(--ease) infinite; }
.avatar .dot { position: absolute; bottom: 1px; inset-inline-end: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--mint-2); border: 2.5px solid #fff; }
@keyframes halo { 0% { opacity: .9; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.22); } }

/* ---------- Ring (payroll) ---------- */
.ring { display: block; transform: rotate(-90deg); overflow: visible; }
.ring .track { fill: none; stroke: var(--bg-2); }
.ring .prog { fill: none; stroke-linecap: round; animation: ringIn 1.4s var(--ease) both; }
.ring .glow { display: none; }
@keyframes ringIn { from { stroke-dasharray: 0 100; } }
.ring-wrap { position: relative; display: grid; place-items: center; }
.ring-wrap > .ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

/* ==========================================================================
   The sample vial
   ========================================================================== */
.vial { position: relative; display: block; filter: drop-shadow(0 18px 22px rgba(75, 37, 80, .16)); }
.vial svg { display: block; width: 100%; height: auto; overflow: visible; }
.vial .glass { fill: url(#gGlass); stroke: rgba(120, 80, 110, .28); stroke-width: 1.5; }
.vial .rim { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 2; }
.vial .hl { fill: url(#gHL); }
.vial .hl2 { fill: rgba(255, 255, 255, .55); }
.vial .cap { fill: url(#gCap); }
.vial .cap-ridge { stroke: rgba(255, 255, 255, .35); stroke-width: 1.4; }
.vial .grad line { stroke: rgba(75, 37, 80, .28); stroke-width: 1.2; }
.vial .grad text { font: 600 9px var(--display); fill: rgba(75, 37, 80, .5); }
.vial .liquid { transition: transform 1.2s var(--ease); }
.vial .pour { animation: pour 1.8s var(--ease) both; transform-box: view-box; }
.vial .wave { animation: wave 3.2s linear infinite; }
.vial .wave.back { animation-duration: 4.6s; animation-direction: reverse; opacity: .55; }
.vial .liq-a { fill: url(#gLiqRose); }
.vial.on .liq-a { fill: url(#gLiqMint); }
.vial.done .liq-a { fill: url(#gLiqGold); }
.vial .liq-b { fill: url(#gLiqRose2); }
.vial.on .liq-b { fill: url(#gLiqMint2); }
.vial.done .liq-b { fill: url(#gLiqGold2); }
.vial .bub { fill: rgba(255, 255, 255, .85); opacity: 0; }
.vial.on .bub { animation: vbub 3s ease-in infinite; }
.vial.on .bub:nth-of-type(2) { animation-delay: .8s; animation-duration: 3.6s; }
.vial.on .bub:nth-of-type(3) { animation-delay: 1.6s; animation-duration: 2.6s; }
.vial.on .bub:nth-of-type(4) { animation-delay: 2.2s; }
.vial .label { fill: #fffdfb; stroke: rgba(120, 80, 110, .15); }
.vial .label-band { fill: url(#gBand); }
.vial .label-text { font: 600 10px var(--display); fill: var(--ink); }
.vial .label-sub { font: 500 7.5px var(--text); fill: var(--muted); }
.vial .label-band-text { font: 700 6.5px var(--display); fill: #fff; letter-spacing: .12em; }
.vial .barcode rect { fill: var(--ink); }
.vial .shadow { fill: rgba(75, 37, 80, .14); filter: blur(4px); }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-80px); } }
@keyframes pour { from { transform: translateY(260px); } }
@keyframes vbub { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-180px); opacity: 0; } }

/* ---------- Day hero (employee + admin "my shift") ---------- */
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 30px; margin-bottom: 20px; display: grid; grid-template-columns: 200px 1fr; gap: 34px; align-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 90% at 0% 0%, rgba(251, 230, 237, .9), transparent 60%); }
[dir="rtl"] .hero::before { background: radial-gradient(70% 90% at 100% 0%, rgba(251, 230, 237, .9), transparent 60%); }
.hero.on::before { background: radial-gradient(70% 90% at 0% 0%, rgba(226, 245, 238, .95), transparent 60%); }
[dir="rtl"] .hero.on::before { background: radial-gradient(70% 90% at 100% 0%, rgba(226, 245, 238, .95), transparent 60%); }
.hero > * { position: relative; }
.hero .vial { width: 170px; justify-self: center; }
.hero-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hello { display: flex; align-items: center; gap: 14px; }
.hello h1 { font-size: 27px; }
.hello h1 em { font-style: normal; color: var(--rose); }
.hello p { color: var(--muted); font-size: 14px; }
.kind { font-size: 15px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.kind .ico { color: var(--gold); width: 18px; height: 18px; margin-top: 3px; }
.clock-read { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.timer { font-family: var(--display); font-size: 58px; font-weight: 700; line-height: 1; direction: ltr; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.timer .sec { color: var(--faint); font-weight: 600; }
.clock-read .sub { display: flex; flex-direction: column; gap: 4px; padding-bottom: 6px; }
.clock-read .sub small { color: var(--muted); }
.facts-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fact { display: flex; align-items: center; gap: 9px; padding: 7px 13px 7px 7px; border-radius: 14px; background: var(--bg); }
[dir="rtl"] .fact { padding: 7px 7px 7px 13px; }
.fact .fi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--rose); flex: none; box-shadow: var(--sh-1); }
.fact .fi.mint { color: var(--mint); } .fact .fi.lav { color: var(--lav); } .fact .fi.peach { color: var(--peach); } .fact .fi.gold { color: var(--gold); }
.fact .fi .ico { width: 17px; height: 17px; }
.fact div { display: flex; flex-direction: column; line-height: 1.2; }
.fact small { color: var(--muted); font-size: 12px; }
.fact strong { font-family: var(--display); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }

/* Slide to clock in / out */
.slide-form { margin: 0; }
.slider { position: relative; height: 66px; border-radius: 22px; background: var(--ink); color: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; box-shadow: var(--sh-2), inset 0 1px 0 rgba(255,255,255,.08); }
.slider.in { background: linear-gradient(135deg, #1b7a5f, #1f9b77 60%, #3cb990); }
.slider.out { background: linear-gradient(135deg, #8f2f5a, #c8406f 60%, #e0628f); }
.slider .track-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 17px; padding-inline-start: 60px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.55) 0%, #fff 45%, rgba(255,255,255,.55) 90%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2.6s linear infinite; }
.slider .track-text .ico { color: #fff; opacity: .8; }
[dir="rtl"] .slider .track-text .ico { transform: scaleX(-1); }
.slider .fillbar { position: absolute; inset-block: 0; inset-inline-start: 0; width: 66px; background: rgba(255, 255, 255, .14); border-radius: 22px; pointer-events: none; }
.slider .knob { position: absolute; top: 5px; inset-inline-start: 5px; width: 56px; height: 56px; border-radius: 18px; border: 0; background: #fff; color: var(--mint); display: grid; place-items: center; cursor: grab; box-shadow: 0 6px 14px rgba(0,0,0,.18); transition: transform .35s var(--spring); font: inherit; }
.slider.out .knob { color: var(--rose); }
.slider .knob .ico { width: 26px; height: 26px; }
.slider.dragging .knob { transition: none; cursor: grabbing; }
.slider.dragging .fillbar { transition: none; }
.slider.nudge .knob { animation: nudge .6s var(--ease); }
.slider.done .track-text { opacity: 0; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }
[dir="rtl"] .slider .track-text { animation-direction: reverse; }
@keyframes nudge { 30% { transform: translateX(18px); } 60% { transform: translateX(-4px); } }
[dir="rtl"] .slider.nudge .knob { animation-name: nudgeR; }
@keyframes nudgeR { 30% { transform: translateX(-18px); } 60% { transform: translateX(4px); } }
.slide-hint { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 6px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stat { position: relative; overflow: hidden; padding: 18px; border-radius: var(--r); display: flex; flex-direction: column; gap: 6px; min-width: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.stat-top { display: flex; align-items: center; gap: 10px; }
.stat-label { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.stat-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--rose-mist); color: var(--rose); flex: none; }
.stat-ico .ico { width: 19px; height: 19px; }
.stat-ico.mint { background: var(--mint-soft); color: var(--mint); }
.stat-ico.lav, .stat-ico.violet { background: var(--lav-soft); color: var(--lav); }
.stat-ico.peach, .stat-ico.amber { background: var(--peach-soft); color: var(--peach); }
.stat-ico.gold { background: var(--gold-soft); color: var(--gold); }
.stat-value { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat-value small { font-family: var(--text); font-size: 14px; color: var(--muted); font-weight: 500; }
.stat-sub { color: var(--muted); font-size: 13px; }
.stat.feature { background: var(--ink); border-color: var(--ink); color: #fff; }
.stat.feature .stat-label, .stat.feature .stat-sub, .stat.feature .stat-value small { color: rgba(255,255,255,.7); }
.stat.feature .stat-ico { background: rgba(255,255,255,.1); color: var(--gold); }
progress.bar { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
progress.bar::-webkit-progress-bar { background: var(--bg-2); border-radius: 99px; }
progress.bar::-webkit-progress-value { background: var(--grad-rose); border-radius: 99px; }
progress.bar::-moz-progress-bar { background: var(--grad-rose); border-radius: 99px; }
progress.bar.done::-webkit-progress-value { background: var(--grad-mint); }
progress.bar.done::-moz-progress-bar { background: var(--grad-mint); }

/* ---------- Achievements ---------- */
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.badge { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--bg); position: relative; overflow: hidden; }
.badge .medal { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), 0 4px 10px -2px rgba(75, 37, 80, .25); }
.badge .medal .ico { width: 22px; height: 22px; }
.badge .medal.rose { background: var(--grad-rose); } .badge .medal.mint { background: var(--grad-mint); } .badge .medal.gold { background: var(--grad-gold); }
.badge div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.badge strong { font-family: var(--display); font-size: 21px; font-weight: 700; }
.badge small { color: var(--muted); }
.badge.locked { opacity: .55; }
.badge.locked .medal { background: #d9cdd0; box-shadow: none; }

/* ---------- Calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-h { text-align: center; font-size: 12px; color: var(--faint); font-weight: 600; }
.cal-d { aspect-ratio: 1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--bg); border: 1.5px solid transparent; transition: transform .2s var(--spring); animation: pop .4s var(--ease) both; }
a.cal-d:hover { transform: translateY(-2px); }
.cal-d small { font-family: var(--text); font-size: 10px; font-weight: 500; opacity: .85; line-height: 1; }
.cal-d.pad { background: none; animation: none; }
.cal-d.future { opacity: .4; }
.cal-d.l1 { background: #fbe6ed; color: var(--rose); }
.cal-d.l2 { background: #f5c6d6; color: #8f2f5a; }
.cal-d.l3 { background: #e0628f; color: #fff; }
.cal-d.l4 { background: var(--grad-mint); color: #fff; }
.cal-d.today { border-color: var(--ink); }
.cal-d.live { box-shadow: 0 0 0 3px var(--mint-soft); border-color: var(--mint); }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 14px; justify-content: center; flex-wrap: wrap; }
.legend i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.legend .l0 { background: var(--bg); } .legend .l1 { background: #fbe6ed; } .legend .l2 { background: #f5c6d6; } .legend .l3 { background: #e0628f; } .legend .l4 { background: #43c49c; }

/* ---------- Day log ---------- */
.days { display: flex; flex-direction: column; gap: 10px; }
.day { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; scroll-margin-top: 90px; }
.day:target { border-color: var(--rose-2); box-shadow: 0 0 0 4px rgba(224, 98, 143, .12); }
.day-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.day-badge { width: 50px; height: 52px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; background: var(--bg); color: var(--ink); flex: none; }
.day-badge strong { font-family: var(--display); font-size: 20px; font-weight: 700; }
.day-badge small { font-size: 11px; font-weight: 600; margin-top: 3px; color: var(--rose); }
.day-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.day-title strong { font-family: var(--display); font-weight: 600; font-size: 15.5px; }
.day-title small { color: var(--muted); }
.day-total { display: flex; flex-direction: column; align-items: flex-end; text-align: end; }
.day-total strong { font-family: var(--display); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.day-total small { font-weight: 500; color: var(--muted); }
.day-total.hit strong { color: var(--mint); }
.sess-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sess-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--bg); }
.sess-row .n { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-family: var(--display); font-size: 12px; font-weight: 700; background: var(--surface); color: var(--rose); flex: none; box-shadow: var(--sh-1); }
.sess-row .t { font-family: var(--display); font-weight: 600; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.sess-row .t .arrow { color: var(--faint); margin: 0 5px; }
.sess-row .d { margin-inline-start: auto; font-family: var(--display); font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sess-row.open { background: var(--mint-soft); }
.sess-row.open .n { color: var(--mint); }
.sess-row .meta { font-size: 12.5px; color: var(--muted); }
.sess-row .acts { display: flex; gap: 4px; }
.break-row { display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.break-row::before, .break-row::after { content: ""; flex: 1; border-top: 1px dashed var(--line-2); }
.break-row .ico { width: 15px; height: 15px; color: var(--gold); }
.timeline { position: relative; height: 10px; border-radius: 99px; overflow: hidden; direction: ltr; background: var(--bg) repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(75, 37, 80, .08) calc(25% - 1px) 25%); }
.timeline svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.timeline .seg { fill: url(#gSeg); }
.timeline .seg.open { fill: url(#gSegOpen); animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }
.tl-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); direction: ltr; margin-top: 3px; }
.month-nav { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 12px; background: var(--bg); }
.month-nav strong { min-width: 116px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 14.5px; }
.month-nav .btn-icon { background: var(--surface); border: 0; color: var(--ink); min-height: 34px; width: 34px; border-radius: 10px; box-shadow: var(--sh-1); }

/* ==========================================================================
   Admin: sample rack
   ========================================================================== */
.rack-wrap { overflow-x: auto; overflow-y: visible; padding: 10px 4px 4px; margin: -10px -4px 0; scrollbar-width: thin; }
.rack { display: flex; gap: 22px; align-items: flex-end; min-width: min-content; padding: 0 12px; position: relative; }
.rack-shelf { height: 18px; border-radius: 9px; margin: -6px 0 0; background: linear-gradient(180deg, #ecdcd7, #dcc7c1); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 10px 18px -8px rgba(75, 37, 80, .3); position: relative; z-index: 1; }
.slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 108px; color: var(--ink); text-align: center; transition: transform .35s var(--spring); }
.slot:hover { transform: translateY(-8px); }
.slot .vial { width: 74px; }
.slot-info { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 14px; }
.slot-info strong { font-family: var(--display); font-weight: 600; font-size: 14.5px; }
.slot-info .t { font-family: var(--display); font-weight: 700; font-size: 16px; direction: ltr; color: var(--mint); font-variant-numeric: tabular-nums; }
.slot-info .t.idle { color: var(--muted); font-weight: 500; font-size: 13px; font-family: var(--text); }
.slot-info .t.warn { color: var(--peach); }
.slot .slot-face { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); z-index: 2; }
.slot form { margin-top: 2px; }
.rack-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.rack-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rack-legend i { width: 12px; height: 12px; border-radius: 4px; }
.rack-legend .m { background: #43c49c; } .rack-legend .g { background: #d9ad83; } .rack-legend .e { background: var(--bg-2); }

.leader { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.leader li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.leader .info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.leader .info-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.leader .info-top a { color: var(--ink); }
.leader .info-top span { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.leader .money { font-family: var(--display); font-weight: 600; white-space: nowrap; color: var(--ink); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px; scrollbar-width: thin; }
.chip-emp { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; flex: none; font-weight: 600; }
[dir="rtl"] .chip-emp { padding: 5px 5px 5px 14px; }
.chip-emp.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip-emp .avatar { --s: 32px; box-shadow: none; }

/* ---------- Team ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.person { padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 16px; animation: riseIn .45s var(--ease) both; }
.person.dim { opacity: .55; }
.person-head { display: flex; align-items: center; gap: 14px; }
.person-head .grow { display: flex; flex-direction: column; gap: 2px; }
.person-head strong { font-family: var(--display); font-weight: 600; font-size: 17px; }
.person-head small { color: var(--muted); direction: ltr; text-align: start; }
.target-box { border-radius: 16px; background: var(--bg); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.target-line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.target-line > span { white-space: nowrap; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; font-size: 14px; }
.target-line > span .ico { color: var(--rose); width: 18px; height: 18px; }
.target-box .stepper { background: var(--surface); }
.target-box .stepper button { width: 32px; height: 32px; background: var(--bg); box-shadow: none; }
.target-box .stepper input { width: 62px; min-height: 32px; font-size: 16px; }
.target-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 10px; }
.target-sum strong { color: var(--ink); font-family: var(--display); }
.target-sum .save { visibility: hidden; opacity: 0; transform: scale(.95); transition: opacity .2s, transform .2s var(--spring); }
.target-box.dirty .save { visibility: visible; opacity: 1; transform: none; }
.person-actions { display: flex; gap: 8px; }
.person-actions .btn { flex: 1; }
.add-card { border: 1.5px dashed var(--line-2); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); min-height: 260px; transition: border-color .2s, background .2s; }
.add-card:hover { border-color: var(--rose-2); background: var(--rose-mist); }
.add-card .plus { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-rose); color: #fff; box-shadow: 0 8px 18px -6px rgba(200, 64, 111, .5); }
.add-card .plus .ico { width: 28px; height: 28px; }
.add-card strong { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 16px; }
.rate-box { border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 4px; text-align: center; align-items: center; background: var(--ink); color: #fff; }
.rate-box small { color: rgba(255,255,255,.65) !important; }
.rate-box .big { font-family: var(--display); font-size: 36px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.rate-box .row { gap: 26px; margin-top: 6px; }
.rate-box .row div { display: flex; flex-direction: column; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: start; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: var(--rose-mist); }
.table tfoot td { font-weight: 700; border-bottom: 0; background: var(--bg); }
.table .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .neg { color: var(--rose); }
.table .pos { color: var(--mint); }
.table.compact td { padding: 9px 12px; }
.who-cell { display: flex; align-items: center; gap: 12px; }
.who-cell a { color: var(--ink); font-weight: 600; }
.details { color: var(--muted); word-break: break-all; font-size: 12px; }
.pay-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 20px; }
.pay-card { padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); display: flex; align-items: center; gap: 14px; color: var(--ink); animation: riseIn .45s var(--ease) both; }
.pay-card .info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-card .info strong { font-family: var(--display); font-weight: 600; }
.pay-card .amount { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pay-card .ring-center small { font-size: 12.5px; font-weight: 700; }
.formula { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--bg); font-size: 14px; display: flex; gap: 12px; }
.formula .ico { color: var(--gold); margin-top: 2px; }
.formula p { margin-top: 4px; color: var(--muted); }
.hero-total { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.hero-total .big { font-family: var(--display); font-size: 44px; font-weight: 700; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-total .kv { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 14px; }
.hero-total .kv div { display: flex; flex-direction: column; }
.hero-total .kv small { color: var(--muted); }
.hero-total .kv strong { font-family: var(--display); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; padding: 40px; text-align: center; background: linear-gradient(160deg, #fbe9ef 0%, #f6ece6 100%); }
.auth-art .scene { width: min(440px, 100%); }
.auth-art h2 { font-size: 32px; font-weight: 700; line-height: 1.3; max-width: 440px; }
.auth-art h2 em { font-style: normal; color: var(--rose); }
.auth-art p { color: var(--muted); max-width: 380px; font-size: 16px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 30px 20px; }
main.auth-panel { min-height: 100vh; }
.auth-card { width: 100%; max-width: 410px; padding: 34px 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); animation: riseIn .6s var(--ease) both; }
.auth-card.wide { max-width: 640px; }
.auth-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-bottom: 24px; }
.auth-head h1 { font-size: 30px; }
.auth-foot { text-align: center; margin-top: 18px; }
.auth-foot a { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-weight: 500; }
.steps { padding-inline-start: 20px; line-height: 1.9; }

/* ---------- Lab scene (splash + login) ---------- */
.scene .bench { fill: #efdcd8; }
.scene .glass { fill: rgba(255, 255, 255, .7); stroke: #c690a8; stroke-width: 3; stroke-linejoin: round; }
.scene .liq-pink { fill: #e0628f; }
.scene .liq-lav { fill: #9b83e0; }
.scene .liq-mint { fill: #43c49c; }
.scene .liq-peach { fill: #f0a77f; }
.scene .metal { fill: #eadbd9; stroke: #c690a8; stroke-width: 3; stroke-linejoin: round; }
.scene .metal-dark { fill: #a97a90; }
.scene .arm { fill: none; stroke: #dcc4cb; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.scene .shine { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .85; }
.scene .spark { fill: #d9ad83; transform-box: fill-box; transform-origin: center; animation: twinkle 1.8s ease-in-out infinite; }
.scene .spark.p { fill: #e0628f; animation-delay: .6s; }
.scene .spark.l { fill: #9b83e0; animation-delay: 1.2s; }
.scene .fill { transform-box: fill-box; transform-origin: bottom; animation: fillUp 1.8s var(--ease) both; }
.scene .fill.d1 { animation-delay: .3s; } .scene .fill.d2 { animation-delay: .8s; } .scene .fill.d3 { animation-delay: 1.3s; }
.scene .bub { fill: #fff; opacity: .9; animation: bub 2s ease-in infinite; }
.scene .bub.b2 { animation-delay: .6s; } .scene .bub.b3 { animation-delay: 1.2s; } .scene .bub.b4 { animation-delay: 1.6s; }
.scene .drop { fill: #e0628f; animation: drop 1.3s ease-in infinite; }
.scene .heart { fill: #e0628f; transform-box: fill-box; transform-origin: center; animation: floatUp 2.8s ease-in-out infinite; }
.scene .heart.h2 { fill: #9b83e0; animation-delay: .9s; }
.scene .heart.h3 { fill: #f0a77f; animation-delay: 1.8s; }
.scene .scope-light { fill: #ffe3a3; animation: glowPulse 2s ease-in-out infinite; }
.scene .dna path { fill: none; stroke-width: 3; stroke-linecap: round; }
.scene .dna .s1 { stroke: #e0628f; } .scene .dna .s2 { stroke: #9b83e0; }
.scene .dna line { stroke: #e7c9d3; stroke-width: 2; }
.scene .dna { transform-box: fill-box; transform-origin: center; animation: sway 4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(.6) rotate(0deg); opacity: .5; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } }
@keyframes fillUp { from { transform: scaleY(0); } }
@keyframes bub { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-46px); opacity: 0; } }
@keyframes drop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(34px); opacity: 0; } }
@keyframes floatUp { 0% { transform: translateY(6px) scale(.8); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-34px) scale(1.05); opacity: 0; } }
@keyframes glowPulse { 50% { opacity: .45; } }
@keyframes sway { 50% { transform: rotate(8deg) translateY(-4px); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Splash (≈4 s, first open per session) ---------- */
.splash { display: none; }
html.splash-on .splash { display: flex; position: fixed; inset: 0; z-index: 100; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center;
  background: radial-gradient(60% 50% at 50% 35%, #fff 0%, #fdf1f4 55%, #f8e3ea 100%); animation: splashOut .5s var(--ease) 4.1s forwards; }
html.splash-on body { overflow: hidden; }
.splash .scene { width: min(400px, 90vw); }
.splash .brand-big { font-family: var(--display); font-size: 50px; font-weight: 700; color: var(--rose); line-height: 1.1; animation: riseIn .7s var(--spring) .15s both; }
.splash .brand-sub { color: var(--muted); font-size: 16px; animation: riseIn .7s var(--ease) .3s both; }
.splash .status { min-height: 26px; font-weight: 600; color: var(--ink-2); font-size: 16px; }
.splash .status span { display: inline-block; animation: statusIn .35s var(--ease) both; }
.splash .tube-bar { width: min(260px, 70vw); height: 14px; border-radius: 99px; border: 2px solid #e8bfcd; background: #fff; overflow: hidden; padding: 2px; }
.splash .tube-bar i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, #e0628f, #9b83e0, #43c49c); transform-origin: left; animation: barFill 3.8s cubic-bezier(.45, .05, .3, 1) both; }
[dir="rtl"] .splash .tube-bar i { transform-origin: right; }
.splash .skip { position: absolute; top: 18px; inset-inline-end: 18px; }
html.splash-out .splash { animation: splashOut .4s var(--ease) forwards; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; transform: scale(1.02); } }
@keyframes barFill { from { transform: scaleX(0); } }
@keyframes statusIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Celebration ---------- */
.celebrate { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; pointer-events: none; background: rgba(250, 246, 244, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: celIn .3s ease both, celOut .5s ease 2.4s forwards; }
.celebrate .cel-box { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; animation: celPop .6s var(--spring) both; padding: 20px; }
.celebrate .cel-ico { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-mint); color: #fff; box-shadow: 0 0 0 12px rgba(31, 155, 119, .12), 0 20px 40px -10px rgba(31, 155, 119, .5); }
.celebrate.out .cel-ico { background: var(--grad-rose); box-shadow: 0 0 0 12px rgba(200, 64, 111, .12), 0 20px 40px -10px rgba(200, 64, 111, .5); }
.celebrate .cel-ico svg { width: 60px; height: 60px; }
.celebrate .cel-ico path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s ease .3s forwards; }
.celebrate h2 { font-size: 30px; font-weight: 700; }
.celebrate p { color: var(--muted); font-size: 16px; }
.celebrate .cel-time { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--rose); direction: ltr; }
.particle { position: fixed; top: 45%; left: 50%; pointer-events: none; z-index: 81; animation: burst 1.6s cubic-bezier(.1, .7, .3, 1) forwards; }
.particle svg { width: 100%; height: 100%; display: block; }
@keyframes celIn { from { opacity: 0; } }
@keyframes celOut { to { opacity: 0; visibility: hidden; } }
@keyframes celPop { from { opacity: 0; transform: scale(.88); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes burst { 0% { transform: translate(-50%, -50%) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

.tip { position: fixed; z-index: 90; pointer-events: none; padding: 7px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 500; background: var(--ink); color: #fff; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .15s; }
.tip.show { opacity: 1; }
.ask { max-width: 520px; margin: 40px auto; text-align: center; }
.ask .timer { margin: 20px 0; }
.ask .row { justify-content: center; flex-wrap: wrap; }
dl.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; }
dl.dl dt { color: var(--muted); }
dl.dl dd { margin: 0; font-weight: 600; }
.mini-fact { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.mini-fact .ico-box { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--rose); flex: none; box-shadow: var(--sh-1); }
.mini-fact .ico-box.amber { color: var(--peach); } .mini-fact .ico-box.violet { color: var(--lav); }
.mini-fact div { display: flex; flex-direction: column; line-height: 1.3; }
.mini-fact small { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stats.four { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { display: block; }
  .side { display: none; }
  .main { padding: 12px 16px calc(100px + env(safe-area-inset-bottom)); }
  .mobile-top { display: flex; align-items: center; gap: 8px; padding: 10px 16px; position: sticky; top: 0; z-index: 20; background: rgba(250, 246, 244, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .mobile-top .brand { flex: 1; padding: 0; }
  .mobile-top .logo { width: 38px; height: 38px; border-radius: 12px; }
  .mobile-top .logo svg { width: 22px; height: 22px; }
  .tabbar { display: flex; position: fixed; bottom: 10px; left: 12px; right: 12px; z-index: 30; justify-content: space-around; padding: 6px; border-radius: 22px; background: rgba(34, 23, 38, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 14px 30px -10px rgba(34, 23, 38, .5); margin-bottom: env(safe-area-inset-bottom); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 16px; color: rgba(255,255,255,.6); font-size: 11px; font-weight: 600; transition: background .2s, color .2s; }
  .tabbar a span { white-space: nowrap; }
  .tabbar a .ico { width: 22px; height: 22px; }
  .tabbar a.active { color: #fff; background: rgba(255,255,255,.12); }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
  .toasts { top: auto; bottom: calc(92px + env(safe-area-inset-bottom)); inset-inline: 16px; max-width: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 26px 20px 10px; gap: 10px; background: none; }
  .auth-art h2, .auth-art p { display: none; }
  .auth-art .scene { width: min(300px, 80vw); }
}
@media (max-width: 640px) {
  .hero { grid-template-columns: 112px 1fr; gap: 16px; padding: 18px 16px; border-radius: 24px; align-items: start; }
  .hero .vial { width: 104px; }
  .hello { gap: 10px; }
  .hello .avatar { display: none; }
  .hello h1 { font-size: 21px; }
  .kind { font-size: 13.5px; }
  .timer { font-size: 38px; }
  .clock-read { gap: 6px; }
  .clock-read .sub { padding-bottom: 0; }
  .hero .slide-form, .hero .facts-row { grid-column: 1 / -1; }
  .hero-body { display: contents; }
  .hero-body > .top { grid-column: 2; display: flex; flex-direction: column; gap: 10px; }
  .slider { height: 62px; }
  .slider .knob { width: 52px; height: 52px; }
  .stats, .stats.four { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stat { padding: 14px; }
  .stat-value { font-size: 22px; }
  .badges { grid-template-columns: 1fr; gap: 8px; }
  .card { padding: 16px; border-radius: 20px; }
  .cal { gap: 4px; }
  .cal-d { border-radius: 9px; font-size: 13px; }
  .cal-d small { display: none; }
  .slot { width: 92px; }
  .slot .vial { width: 64px; }
  .people-grid { grid-template-columns: 1fr; }
  .hero-total { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-total .big { font-size: 34px; }
  .hero-total .kv { justify-content: center; }
  .month-nav strong { min-width: 94px; font-size: 13.5px; }
  .splash .brand-big { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.splash-on .splash { animation-delay: 1s !important; animation-duration: .3s !important; }
}
@media print {
  body { background: #fff; }
  body::before, .side, .mobile-top, .tabbar, .no-print, .toasts, .foot, .splash { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; max-width: none; }
  .card, .stat, .pay-card { box-shadow: none; border: 1px solid #ddd; }
  .stat.feature { background: #fff; color: #000; }
  .pay-cards, .ring-wrap { display: none; }
}
.photo-cta { color: var(--ink); }

/* Refinements */
.cal { max-width: 560px; margin-inline: auto; }
.hero.compact { grid-template-columns: 130px 1fr; padding: 22px 26px; gap: 26px; }
.hero.compact .vial { width: 116px; }
.hero.compact .hello .eyebrow { margin: 0; }
.hero.compact .timer { font-size: 46px; }
.slot-info { justify-content: flex-start; }
@media (max-width: 640px) {
  .badges { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .badge { flex-direction: column; text-align: center; padding: 12px 6px; gap: 8px; }
  .badge div { align-items: center; }
  .badge small { font-size: 11.5px; }
  .badge .medal { width: 40px; height: 40px; }
  .hero.compact { grid-template-columns: 96px 1fr; padding: 16px; gap: 14px; }
  .hero.compact .vial { width: 88px; }
  .hero.compact .timer { font-size: 34px; }
}

/* ==========================================================================
   v5 · Living lab dish, drop button, story, week, motion
   ========================================================================== */
/* view transitions replaced by the liquid wipe */
::view-transition-old(root) { animation: vtOut .22s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .38s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

.main > * { animation: riseIn .55s var(--ease) both; }
.main > *:nth-child(2) { animation-delay: .06s; } .main > *:nth-child(3) { animation-delay: .12s; }
.main > *:nth-child(4) { animation-delay: .18s; } .main > *:nth-child(5) { animation-delay: .24s; }
.main > *:nth-child(6) { animation-delay: .3s; } .main > *:nth-child(n+7) { animation-delay: .36s; }

/* Day hero */
.day-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 26px 30px 30px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.day-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 70% at 30% 40%, rgba(251, 230, 237, .85), transparent 70%); }
.day-hero.on::before { background: radial-gradient(60% 70% at 30% 40%, rgba(226, 245, 238, .9), transparent 70%); }
[dir="rtl"] .day-hero::before { transform: scaleX(-1); }
.day-hero > * { position: relative; }
.dh-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.dh-head h1 { font-size: 26px; }
.dh-head h1 em { font-style: normal; color: var(--rose); }
.dh-head p { font-size: 14px; }
.dh-main { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.dh-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.day-hero.compact { padding: 22px 26px; }
.day-hero.compact .dh-main { gap: 28px; }

/* The dish */
.dish { --d: 380px; position: relative; width: var(--d); height: var(--d); flex: none; border-radius: 50%; touch-action: manipulation; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dish.sm { --d: 240px; }
.dish::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 0%, #fff 62%, #fbf1f4 76%, #f4e4ea 100%); box-shadow: 0 30px 50px -24px rgba(75, 37, 80, .35), inset 0 0 0 1px rgba(200, 144, 168, .25), inset 0 -10px 30px rgba(200, 144, 168, .12); }
.dish::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; pointer-events: none; background: linear-gradient(140deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 32%); mix-blend-mode: screen; }
.dish-glass { position: absolute; inset: 15%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 45%, #fffdfd 0%, #fdf2f5 70%, #f8e2ea 100%); box-shadow: inset 0 0 0 1.5px rgba(200, 144, 168, .3), inset 0 6px 18px rgba(200, 144, 168, .18); }
.dish.on .dish-glass { background: radial-gradient(circle at 50% 45%, #fbfffd 0%, #effaf5 70%, #ddf3ea 100%); }
.dish-glass canvas { width: 100%; height: 100%; display: block; }
.dial { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dial .night { fill: none; stroke: #efe9fb; stroke-width: 30; }
.dial .track { fill: none; stroke: #f3e8ec; stroke-width: 16; }
.dial .tick { stroke: #d9c5cd; stroke-width: 1.5; stroke-linecap: round; }
.dial .tick.major { stroke: #b897a6; stroke-width: 2.5; }
.dial .hl { font: 600 13px var(--display); fill: #b39aa8; }
.dial .ghost { fill: none; stroke: #d6c6f4; stroke-width: 16; stroke-dasharray: .02 .025; stroke-linecap: round; opacity: .9; }
.dial .arc { fill: none; stroke: url(#gSeg); stroke-width: 16; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: arcDraw 1.4s var(--ease) .3s forwards; }
.dial .arc.open { stroke: url(#gSegOpen); filter: drop-shadow(0 0 6px rgba(67, 196, 156, .7)); }
.dial .mark { fill: #fff; stroke: var(--rose); stroke-width: 2.5; opacity: 0; animation: fadeIn .4s ease 1.2s forwards; }
.dial .brk { fill: var(--gold); stroke: #fff; stroke-width: 2; opacity: 0; animation: fadeIn .4s ease 1.4s forwards; }
.dial .hand { transform-box: view-box; transform-origin: 200px 200px; transition: transform 1.6s var(--spring); }
.dial .hand line { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; opacity: .55; }
.dial .hand circle { fill: var(--ink); stroke: #fff; stroke-width: 3; }
.dish.on .dial .hand circle { fill: var(--mint); animation: handPulse 1.8s ease-in-out infinite; }
.dial .sun circle { fill: #f2c46d; }
@keyframes arcDraw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes handPulse { 50% { r: 10; } }
.dish-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; pointer-events: none; text-align: center; }
.dish-center .timer { font-size: 46px; text-shadow: 0 2px 0 #fff, 0 0 18px #fff; }
.dish.sm .dish-center .timer { font-size: 30px; }
.dc-label { font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.8); padding: 2px 10px; border-radius: 99px; }
.dish.on .dc-label { color: var(--mint); }
.dc-pct { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--rose); background: rgba(255,255,255,.85); padding: 3px 10px; border-radius: 99px; box-shadow: var(--sh-1); }
.dish.sm .dc-pct { font-size: 11.5px; }
.dish .ripple-ring { position: absolute; left: 50%; top: 50%; width: 40%; height: 40%; margin: -20% 0 0 -20%; border-radius: 50%; border: 3px solid rgba(224, 98, 143, .55); pointer-events: none; animation: dishRipple .9s var(--ease) forwards; }
.dish.on .ripple-ring { border-color: rgba(67, 196, 156, .6); }
@keyframes dishRipple { from { transform: scale(.2); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* Drop button */
.drop-form { margin: 0; }
.drop-btn { position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border: 0; border-radius: 24px; cursor: pointer; font: inherit; color: #fff; text-align: start;
  background: linear-gradient(135deg, #1b7a5f, #1f9b77 55%, #43c49c); box-shadow: 0 16px 30px -14px rgba(31, 155, 119, .75), inset 0 1px 0 rgba(255,255,255,.2); transition: transform .2s var(--spring), box-shadow .3s; }
[dir="rtl"] .drop-btn { padding: 10px 10px 10px 22px; }
.drop-btn.out { background: linear-gradient(135deg, #8f2f5a, #c8406f 55%, #e0628f); box-shadow: 0 16px 30px -14px rgba(200, 64, 111, .75), inset 0 1px 0 rgba(255,255,255,.2); }
.drop-btn:hover { transform: translateY(-2px); }
.drop-btn:active { transform: scale(.98); }
.drop-ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--mint); flex: none; box-shadow: 0 6px 14px rgba(0,0,0,.15); }
.drop-btn.out .drop-ico { color: var(--rose); }
.drop-ico .ico { width: 28px; height: 28px; }
.drop-btn.in .drop-ico .ico { animation: dropBob 2.4s ease-in-out infinite; }
.drop-txt { display: flex; flex-direction: column; line-height: 1.25; }
.drop-txt strong { font-family: var(--display); font-size: 19px; font-weight: 700; }
.drop-txt small { opacity: .8; font-size: 13px; }
.drop-btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); animation: sheen 3.6s ease-in-out infinite; }
.drop-btn.busy { pointer-events: none; }
.drop-btn.busy .drop-ico { animation: squeeze .35s ease both; }
@keyframes dropBob { 50% { transform: translateY(3px); } }
@keyframes squeeze { 50% { transform: scale(.82, 1.12); } }
@keyframes sheen { 0%, 55% { left: -40%; } 100% { left: 130%; } }
.falling-drop { position: fixed; z-index: 70; width: 18px; height: 24px; pointer-events: none; }
.falling-drop svg { width: 100%; height: 100%; display: block; }

/* Story of today */
.story { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 14px; }
.story::before { content: ""; position: absolute; top: 14px; bottom: 14px; inset-inline-start: 17px; width: 2px; background: linear-gradient(var(--rose-soft), var(--lav-soft)); transform-origin: top; animation: lineGrow 1s var(--ease) both; }
.story li { position: relative; display: grid; grid-template-columns: 36px 56px 1fr; align-items: center; gap: 10px; opacity: 0; animation: storyIn .5s var(--ease) forwards; }
.story li:nth-child(1) { animation-delay: .15s; } .story li:nth-child(2) { animation-delay: .3s; } .story li:nth-child(3) { animation-delay: .45s; }
.story li:nth-child(4) { animation-delay: .6s; } .story li:nth-child(5) { animation-delay: .75s; } .story li:nth-child(n+6) { animation-delay: .9s; }
.s-dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--rose); box-shadow: var(--sh-1), 0 0 0 4px var(--surface); z-index: 1; }
.s-dot .ico { width: 18px; height: 18px; }
.story .in .s-dot { color: var(--mint); } .story .brk .s-dot { color: var(--gold); } .story .out .s-dot { color: var(--lav); }
.story .goal .s-dot { background: var(--grad-rose); color: #fff; }
.story .now .s-dot { background: var(--grad-mint); color: #fff; animation: nowGlow 1.8s ease-in-out infinite; }
.s-time { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.s-txt { display: flex; flex-direction: column; line-height: 1.3; }
.s-txt strong { font-weight: 600; }
.s-txt small { color: var(--muted); font-variant-numeric: tabular-nums; }
.story-empty { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 18px; border-radius: 16px; background: var(--bg); }
.story-empty .ico { color: var(--gold); }
@keyframes lineGrow { from { transform: scaleY(0); } }
@keyframes storyIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
[dir="rtl"] .story li { animation-name: storyInR; }
@keyframes storyInR { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes nowGlow { 50% { box-shadow: var(--sh-1), 0 0 0 4px var(--surface), 0 0 0 9px rgba(67, 196, 156, .25); } }

/* Week dishes */
.week-dishes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); padding: 6px 0; border-radius: 14px; transition: background .2s, transform .25s var(--spring); }
.wd:hover { background: var(--bg); transform: translateY(-3px); }
.wd svg { width: 100%; max-width: 58px; aspect-ratio: 1; overflow: visible; }
.wd-bg { fill: #fdf6f8; stroke: #f1e3e8; stroke-width: 6; }
.wd-arc { fill: none; stroke: url(#gSeg); stroke-width: 6; stroke-linecap: round; animation: ringIn 1.2s var(--ease) both; }
.wd.hit .wd-arc { stroke: url(#gSegOpen); }
.wd-core { fill: #f8d5e1; transform-box: fill-box; transform-origin: center; animation: breatheCore 3s ease-in-out infinite; }
.wd.hit .wd-core { fill: #c7ecdf; }
.wd.none .wd-core { fill: #f1e8eb; animation: none; }
.wd.today .wd-bg { stroke: #e9cbd6; }
.wd.today .wd-d { color: var(--rose); font-weight: 700; }
.wd-d { font-size: 12px; color: var(--muted); font-weight: 600; }
.wd-h { font-family: var(--display); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wd:nth-child(2) .wd-arc { animation-delay: .08s; } .wd:nth-child(3) .wd-arc { animation-delay: .16s; } .wd:nth-child(4) .wd-arc { animation-delay: .24s; }
.wd:nth-child(5) .wd-arc { animation-delay: .32s; } .wd:nth-child(6) .wd-arc { animation-delay: .4s; } .wd:nth-child(7) .wd-arc { animation-delay: .48s; }
@keyframes breatheCore { 50% { transform: scale(1.12); } }
.hint.center { text-align: center; margin-top: 10px; }

/* Undo bar */
.undo-bar { position: fixed; z-index: 85; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--sh-3); font-size: 14.5px; animation: undoIn .4s var(--spring) 2.6s both, undoOut .4s ease 14s forwards; white-space: nowrap; }
[dir="rtl"] .undo-bar { padding: 8px 16px 8px 8px; }
.undo-bar span { display: flex; align-items: center; gap: 8px; }
.undo-bar .ico { width: 17px; height: 17px; color: var(--mint-2); }
.undo-bar form { margin: 0; }
.undo-bar .btn { background: rgba(255,255,255,.14); color: #fff; min-height: 34px; }
@keyframes undoIn { from { opacity: 0; transform: translate(-50%, 16px); } }
@keyframes undoOut { to { opacity: 0; transform: translate(-50%, 16px); visibility: hidden; } }

@media (max-width: 1100px) {
  .dh-main { grid-template-columns: 1fr; justify-items: center; gap: 22px; }
  .dh-side { width: 100%; max-width: 520px; }
}
@media (max-width: 900px) {
  .undo-bar { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .day-hero { padding: 18px 14px 20px; border-radius: 26px; }
  .dh-head h1 { font-size: 21px; }
  .dish { --d: min(330px, 86vw); }
  .dish.sm { --d: 200px; }
  .dish-center .timer { font-size: 38px; }
  .day-hero.compact .dh-main { grid-template-columns: auto 1fr; gap: 14px; justify-items: stretch; align-items: center; }
  .day-hero.compact .dish { --d: 150px; }
  .day-hero.compact .dish-center .timer { font-size: 21px; }
  .day-hero.compact .dc-label, .day-hero.compact .dial .hl { display: none; }
  .day-hero.compact .kind, .day-hero.compact .facts-row { display: none; }
  .day-hero.compact .drop-form { grid-column: 1 / -1; }
  .drop-txt strong { font-size: 17px; }
  .drop-ico { width: 52px; height: 52px; }
  .story li { grid-template-columns: 36px 48px 1fr; }
  .week-dishes { gap: 2px; }
}
@media (max-width: 640px) {
  .day-hero.compact .dh-side { display: contents; }
  .day-hero.compact .dh-main { grid-template-columns: auto 1fr; }
  .day-hero.compact .eyebrow { align-self: center; font-size: 16px; }
  .day-hero.compact .drop-form { grid-column: 1 / -1; width: 100%; }
  .day-hero.compact .drop-txt small { display: none; }
}

/* ==========================================================================
   v6 · 12-hour spiral clock, hold capsule, levels, missions, motion everywhere
   ========================================================================== */

/* ---- Spiral 12-hour dial ---- */
.dial .lane { fill: none; stroke-width: 13; stroke-linecap: round; }
.dial .lane.am { stroke: #fdf0e4; }
.dial .lane.pm { stroke: #efeafc; }
.dial .tick { stroke: #e3d2d9; stroke-width: 1.2; }
.dial .tick.major { stroke: #b897a6; stroke-width: 2.4; }
.dial .hl { font: 700 15px var(--display); fill: #c7aab8; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 4px; }
.dial .ghost { stroke-width: 13; stroke: #dccff7; stroke-dasharray: .012 .02; }
.dial .arc { stroke-width: 13; }
.dial .goal-pt circle { fill: #fff; stroke: #b9a3ee; stroke-width: 2.5; }
.dial .goal-pt path { fill: none; stroke: var(--lav); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dial .goal-pt { opacity: 0; animation: fadeIn .5s ease 1.6s forwards; }
.dial .lane-ico.sun circle { fill: #f6c87a; }
.dial .lane-ico.moon path { fill: #b8a6ec; }
.dial .mark { pointer-events: auto; cursor: help; }
.dial .hand line { stroke-width: 2; opacity: .35; stroke-dasharray: 3 4; }
.dial .hand circle { transition: cy 1.2s var(--spring); }
.dial .orbit { transform-box: view-box; transform-origin: 200px 200px; animation: orbit 60s linear infinite; }
.dial .orbit circle { fill: var(--rose-2); filter: drop-shadow(0 0 4px rgba(224, 98, 143, .9)); }
.dish.on .dial .orbit circle { fill: var(--mint-2); filter: drop-shadow(0 0 4px rgba(67, 196, 156, .9)); }
@keyframes orbit { to { transform: rotate(360deg); } }
.dc-now { font-family: var(--display); font-size: 12.5px; font-weight: 600; color: var(--faint); letter-spacing: .02em; }
.dish.sm .dc-now { display: none; }
.dish:hover .dish-glass { box-shadow: inset 0 0 0 1.5px rgba(200, 144, 168, .45), inset 0 6px 22px rgba(200, 144, 168, .25); }

/* ---- Hold capsule (start / finish) ---- */
.go-form { display: flex; align-items: center; gap: 20px; margin: 4px 0 0; padding: 14px 22px 14px 14px; border-radius: 30px; background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(253, 243, 246, .9)); border: 1px solid var(--line); box-shadow: var(--sh-1); -webkit-user-select: none; user-select: none; }
[dir="rtl"] .go-form { padding: 14px 14px 14px 22px; }
.go-form.out { background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(239, 234, 255, .7)); }
.go-btn { --c1: #5fd3ad; --c2: #1f9b77; --glow: rgba(31, 155, 119, .45); position: relative; width: 108px; height: 108px; flex: none; border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; outline-offset: 6px; }
.go-btn.out { --c1: #e47aa0; --c2: #9c3a7b; --glow: rgba(200, 64, 111, .45); }
.go-halo { position: absolute; inset: 8px; border-radius: 50%; border: 2px solid var(--c1); opacity: 0; animation: goHalo 2.6s var(--ease) infinite; pointer-events: none; }
.go-halo.h2 { animation-delay: 1.3s; }
@keyframes goHalo { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.45); opacity: 0; } }
.go-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.go-ring .gr-bg { fill: none; stroke: rgba(75, 37, 80, .07); stroke-width: 5; }
.go-ring .gr-fill { fill: none; stroke: var(--c2); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 345.6; filter: drop-shadow(0 0 5px var(--glow)); }
.go-core { position: absolute; inset: 11px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 35% 28%, #fff 0%, #fbf6f8 45%, #f1e3e9 100%); box-shadow: 0 14px 26px -10px var(--glow), inset 0 -6px 14px rgba(200, 144, 168, .25), inset 0 2px 0 #fff; transition: transform .35s var(--spring); }
.go-core::after { content: ""; position: absolute; left: 18%; top: 10%; width: 34%; height: 22%; border-radius: 50%; background: rgba(255,255,255,.85); filter: blur(1px); transform: rotate(-25deg); pointer-events: none; z-index: 3; }
.go-liquid { position: absolute; left: -10%; right: -10%; bottom: 0; height: 120%; transform: translateY(78%); background: linear-gradient(180deg, var(--c1), var(--c2)); z-index: 1; }
.gl-wave { position: absolute; left: 0; top: -10px; width: 200%; height: 20px; background: radial-gradient(circle at 10px -4px, transparent 12px, var(--c1) 13px) 0 0 / 20px 20px repeat-x; animation: waveSlide 1.6s linear infinite; }
.gl-wave.w2 { opacity: .5; top: -13px; animation-duration: 2.4s; animation-direction: reverse; }
@keyframes waveSlide { to { transform: translateX(-50%); } }
.go-ico { position: relative; z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; color: var(--c2); transition: color .3s, transform .35s var(--spring); }
.go-ico .ico { width: 34px; height: 34px; stroke-width: 2.2; }
.go-btn.in .go-ico .ico { fill: currentColor; transform: translateX(2px); }
[dir="rtl"] .go-btn.in .go-ico .ico { transform: scaleX(-1) translateX(2px); }
.go-btn:hover .go-core { transform: scale(1.04); }
.go-btn.holding .go-core { transform: scale(.93); }
.go-btn.holding .go-ico, .go-btn.done .go-ico { color: #fff; }
.go-btn.done .go-core { animation: goPop .5s var(--spring); }
.go-btn.idle-call .go-core { animation: goBreath 3.2s ease-in-out infinite; }
@keyframes goBreath { 50% { transform: scale(1.035); } }
@keyframes goPop { 40% { transform: scale(1.12); } }
.go-btn.shake { animation: goShake .4s ease; }
@keyframes goShake { 20%, 60% { transform: translateX(-4px) rotate(-3deg); } 40%, 80% { transform: translateX(4px) rotate(3deg); } }
.go-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.go-text strong { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.go-text small { color: var(--muted); font-size: 13.5px; transition: color .2s; }
.go-form.holding .go-text small { color: var(--c2, var(--mint)); font-weight: 600; }
.go-form.in .go-text small.hot { color: var(--mint); font-weight: 600; } .go-form.out .go-text small.hot { color: var(--rose); font-weight: 600; }
.go-dots { display: flex; gap: 5px; margin-top: 4px; }
.go-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); animation: goDot 1.4s ease-in-out infinite; }
.go-dots i:nth-child(2) { animation-delay: .18s; } .go-dots i:nth-child(3) { animation-delay: .36s; }
.go-form.in .go-dots i { background: #bfe9da; } .go-form.out .go-dots i { background: #f3c6d6; }
@keyframes goDot { 0%, 60%, 100% { transform: translateY(0); opacity: .6; } 30% { transform: translateY(-5px); opacity: 1; } }
.go-spark { position: fixed; z-index: 90; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; }

/* ---- Global CTA style: pill + glass bead ---- */
.btn-primary { position: relative; overflow: hidden; border-radius: 999px; padding: 6px 20px 6px 6px; background: linear-gradient(135deg, #2e1a33, #4b2550 60%, #6b2f63); color: #fff; box-shadow: 0 10px 22px -10px rgba(75, 37, 80, .7), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .3s var(--spring), box-shadow .3s; }
[dir="rtl"] .btn-primary { padding: 6px 6px 6px 20px; }
.btn-primary > .ico:first-child { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--grad-rose); box-shadow: 0 4px 10px rgba(200, 64, 111, .5), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .45s var(--spring); flex: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(75, 37, 80, .75), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover > .ico:first-child { transform: rotate(90deg) scale(1.08); }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent); transition: left .7s var(--ease); pointer-events: none; }
.btn-primary:hover::after { left: 120%; }
.btn-primary.btn-sm { padding: 4px 14px 4px 4px; } [dir="rtl"] .btn-primary.btn-sm { padding: 4px 4px 4px 14px; }
.btn-primary.btn-sm > .ico:first-child { width: 26px; height: 26px; padding: 5px; }
.btn-primary:not(:has(> .ico)) { padding: 9px 22px; }
.btn { position: relative; overflow: hidden; }
.btn .rip { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); animation: rip .6s var(--ease) forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }
.btn-ghost:hover .ico, .btn-soft:hover .ico { animation: icoWiggle .5s ease; }
@keyframes icoWiggle { 30% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(8deg); } }

/* empty-state "add" tile on team page */
.add-tile .plus, .person.add .plus { animation: goBreath 2.8s ease-in-out infinite; }

/* ---- Level card ---- */
.level-card { display: flex; align-items: center; gap: 22px; overflow: hidden; background: radial-gradient(90% 120% at 0% 0%, #fdf3f6 0%, var(--surface) 55%), var(--surface); }
[dir="rtl"] .level-card { background: radial-gradient(90% 120% at 100% 0%, #fdf3f6 0%, var(--surface) 55%), var(--surface); }
.lv-art { position: relative; width: 112px; flex: none; }
.lv-flask { width: 100%; display: block; overflow: visible; animation: flaskFloat 4s ease-in-out infinite; }
@keyframes flaskFloat { 50% { transform: translateY(-5px) rotate(-2deg); } }
.lv-glass { fill: rgba(255,255,255,.35); stroke: #d9b9c7; stroke-width: 3; }
.lv-lip { fill: #f6e4eb; stroke: #d9b9c7; stroke-width: 2; }
.lv-hl { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; opacity: .8; }
.lv-shadow { fill: rgba(75, 37, 80, .12); }
.lv-liq { transition: transform 2s var(--ease); }
.lv-w1 { fill: url(#gLiqRose); animation: waveX 3s linear infinite; }
.lv-w2 { fill: #f3b3c9; opacity: .7; animation: waveX 4.5s linear infinite reverse; }
@keyframes waveX { to { transform: translateX(60px); } }
.lv-b { fill: rgba(255,255,255,.75); animation: bubUp 2.6s ease-in infinite; }
.lv-b.b2 { animation-delay: .9s; } .lv-b.b3 { animation-delay: 1.7s; }
@keyframes bubUp { 0% { transform: translateY(40px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-20px); opacity: 0; } }
.lv-num { font: 800 26px var(--display); fill: #fff; paint-order: stroke; stroke: rgba(156, 58, 123, .35); stroke-width: 3px; }
.lv-spark { position: absolute; width: 10px; height: 10px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 2.4s ease-in-out infinite; }
.lv-spark.s1 { top: 6px; right: 8px; } .lv-spark.s2 { top: 44%; left: -2px; width: 7px; height: 7px; animation-delay: .8s; background: var(--rose-2); } .lv-spark.s3 { bottom: 14px; right: -4px; width: 8px; height: 8px; animation-delay: 1.5s; background: var(--lav); }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1.2) rotate(90deg); opacity: 1; } }
.lv-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lv-title { font-size: 20px; }
.lv-title em { font-style: normal; background: var(--grad-rose); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xp-bar { position: relative; display: block; height: 14px; border-radius: 99px; background: #f4e8ec; overflow: hidden; box-shadow: inset 0 1px 2px rgba(75, 37, 80, .08); }
.xp-bar.sm { height: 8px; } .xp-bar.xs { height: 5px; margin-top: 5px; }
.xp-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #f0a7c1, #c8406f 60%, #8a6fd6); transition: width 1.6s var(--ease) .2s; }
[dir="rtl"] .xp-fill { inset: 0 0 0 auto; background: linear-gradient(270deg, #f0a7c1, #c8406f 60%, #8a6fd6); }
.xp-fill::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 6px, transparent 6px 12px); animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: 17px 0; } }
.xp-shine { position: absolute; top: 0; bottom: 0; width: 30%; left: -40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); animation: sheen 3.2s ease-in-out infinite; }
.xp-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.xp-meta strong { font-family: var(--display); color: var(--ink); font-size: 16px; }
.lvl-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 5px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: #7a3d8f; background: linear-gradient(135deg, #f6eefe, #fbe6ed); box-shadow: inset 0 0 0 1px rgba(138, 111, 214, .18); white-space: nowrap; font-family: var(--display); vertical-align: middle; }
.lvl-chip .ico { width: 13px; height: 13px; color: var(--rose); }
.leader .info-top .lvl-chip { color: #7a3d8f; }
.person-xp { display: flex; flex-direction: column; gap: 5px; margin-top: -6px; }
.person-xp small { color: var(--muted); font-size: 12px; }
.me-card { color: var(--ink); transition: background .2s, transform .3s var(--spring); }
.me-card:hover { background: var(--rose-mist); transform: translateY(-2px); }
.me-card .grow { min-width: 0; flex: 1; }
.me-card small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Missions ---- */
.missions { display: flex; flex-direction: column; gap: 10px; }
.mission { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--bg); position: relative; overflow: hidden; opacity: 0; animation: storyIn .5s var(--ease) forwards; transition: transform .3s var(--spring), background .3s; }
[dir="rtl"] .mission { animation-name: storyInR; }
.mission:nth-child(2) { animation-delay: .12s; } .mission:nth-child(3) { animation-delay: .24s; }
.mission:hover { transform: translateX(4px); } [dir="rtl"] .mission:hover { transform: translateX(-4px); }
.ms-ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--sh-1); color: var(--rose); }
.ms-ico.mint { color: var(--mint); } .ms-ico.gold { color: var(--gold); }
.ms-ico .ico { width: 20px; height: 20px; }
.ms-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ms-txt strong { font-weight: 600; font-size: 14.5px; }
.ms-txt small { color: var(--muted); font-size: 12.5px; }
.ms-bar { height: 5px; border-radius: 9px; background: rgba(75, 37, 80, .07); overflow: hidden; margin-top: 4px; }
.ms-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-rose); transition: width 1.4s var(--ease) .4s; }
.ms-xp { font-family: var(--display); font-weight: 700; font-size: 12.5px; color: var(--lav); background: var(--lav-soft); padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.mission.ok { background: linear-gradient(135deg, #e9f8f2, #f3fbf8); }
.mission.ok .ms-ico { background: var(--grad-mint); color: #fff; }
.mission.ok .ms-bar i { background: var(--grad-mint); }
.mission.ok .ms-xp { background: var(--mint); color: #fff; padding: 4px; display: grid; place-items: center; width: 28px; height: 28px; animation: okPop .6s var(--spring) .5s both; }
.mission.ok .ms-xp .ico { width: 16px; height: 16px; stroke-width: 3; }
.mission.ok::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); animation: sheen 4s ease-in-out 1s infinite; }
@keyframes okPop { from { transform: scale(0) rotate(-90deg); } }
.ms-sum { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---- Podium ---- */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 6px 0 26px; padding-top: 30px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 128px; color: var(--ink); position: relative; transition: transform .35s var(--spring); }
.pod:hover { transform: translateY(-6px); }
.pod strong { font-family: var(--display); font-size: 15px; }
.pod small { font-family: var(--display); font-weight: 700; color: var(--rose); font-size: 14px; }
.pod .avatar { opacity: 0; animation: popIn .6s var(--spring) forwards; }
.pod.p1 .avatar { --s: 70px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #f2c46d, var(--sh-2); animation-delay: 1s; }
.pod.p2 .avatar { animation-delay: .7s; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #d7d0e6; }
.pod.p3 .avatar { animation-delay: .4s; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #e7c3a3; }
@keyframes popIn { from { opacity: 0; transform: scale(.3) translateY(20px); } to { opacity: 1; transform: none; } }
.crown { position: absolute; top: -30px; color: #e9b44c; animation: crownIn .7s var(--spring) 1.3s both, crownBob 2.6s ease-in-out 2s infinite; }
.crown .ico { width: 30px; height: 30px; fill: #f6d27a; }
@keyframes crownIn { from { opacity: 0; transform: translateY(-20px) rotate(-30deg) scale(.4); } }
@keyframes crownBob { 50% { transform: translateY(-4px) rotate(4deg); } }
.pod-block { position: relative; width: 100%; border-radius: 16px 16px 6px 6px; overflow: hidden; display: grid; place-items: center; margin-top: 6px; background: linear-gradient(180deg, #fbeef2, #f4e1e8); box-shadow: inset 0 1px 0 #fff, var(--sh-1); transform-origin: bottom; animation: podGrow .8s var(--spring) both; }
.pod.p1 .pod-block { height: 104px; animation-delay: .5s; background: linear-gradient(180deg, #fff6df, #f6e3b6); }
.pod.p2 .pod-block { height: 78px; animation-delay: .3s; background: linear-gradient(180deg, #f6f3fb, #e5dff2); }
.pod.p3 .pod-block { height: 60px; animation-delay: .1s; background: linear-gradient(180deg, #fdf1e8, #f1d9c6); }
@keyframes podGrow { from { transform: scaleY(0); } }
.pod-n { position: relative; z-index: 1; font: 800 30px var(--display); color: rgba(75, 37, 80, .55); }
.pod-liq { position: absolute; left: 0; right: 0; bottom: 0; height: 35%; background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.55)); animation: liqBob 3s ease-in-out infinite; }
@keyframes liqBob { 50% { height: 45%; } }

/* liquid progress bars used in leaderboards / pay cards */
.lbar { display: block; height: 10px; border-radius: 99px; background: #f4e8ec; overflow: hidden; position: relative; }
.lbar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #f0a7c1, #c8406f); transition: width 1.5s var(--ease) .3s; overflow: hidden; }
[dir="rtl"] .lbar i { inset: 0 0 0 auto; background: linear-gradient(270deg, #f0a7c1, #c8406f); }
.lbar.done i { background: var(--grad-mint); }
.lbar i::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.2) 0 6px, transparent 6px 12px); animation: stripes 1s linear infinite; }
.leader li { padding: 8px; margin: -8px; border-radius: 16px; transition: background .2s, transform .3s var(--spring); }
.leader li:hover { background: var(--bg); transform: translateX(3px); }

/* ---- Payroll beaker ---- */
.beaker-wrap { position: relative; width: 190px; }
.beaker { width: 100%; display: block; overflow: visible; }
.bk-glass { fill: none; stroke: #d9c3cc; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.bk-lip { fill: #ead7df; }
.bk-shadow { fill: rgba(75, 37, 80, .1); }
.bk-hl { fill: #fff; opacity: .55; }
.bk-grad line { stroke: #cdb3be; stroke-width: 2; } .bk-grad text { font: 600 10px var(--display); fill: #b39aa8; }
.bk-liq { transition: transform 2.2s var(--ease); }
.bk-w1 { fill: url(#gLiqGold); animation: waveX 3.2s linear infinite; }
.bk-w2 { fill: #f1d7bd; animation: waveX 4.8s linear infinite reverse; }
.coins circle { fill: #f6d27a; stroke: #d9a74a; stroke-width: 1.5; animation: bubUp 3s ease-in infinite; }
.coins circle:nth-child(2) { animation-delay: .8s; } .coins circle:nth-child(3) { animation-delay: 1.6s; } .coins circle:nth-child(4) { animation-delay: 2.2s; }
.bk-center { position: absolute; left: 18%; right: 18%; top: 34%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.bk-center .stat-value { text-shadow: 0 2px 0 #fff, 0 0 14px #fff; }
.bk-center small { font-size: 11.5px; color: var(--ink-2); background: rgba(255,255,255,.75); padding: 1px 8px; border-radius: 99px; }
.pay-card { transition: transform .35s var(--spring), box-shadow .3s; }
.pay-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.pay-card .info { flex: 1; }
.pay-card .lbar { margin-top: 6px; height: 7px; }
.pay-card .ring-center .avatar { box-shadow: none; }
.pc-pct { color: var(--rose); }

/* ---- Rack alignment ---- */
.rack-shelf + .rack { align-items: flex-start; }
.slot-info .lvl-chip { margin: 1px 0 2px; }

/* ---- Ambient lab bubbles ---- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; bottom: -60px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95), rgba(240, 167, 193, .25) 60%, rgba(240, 167, 193, .08)); box-shadow: inset 0 0 0 1px rgba(224, 98, 143, .12); animation: ambRise 22s linear infinite; }
.ambient i:nth-child(1) { left: 6%; animation-duration: 26s; }
.ambient i:nth-child(2) { left: 18%; width: 10px; height: 10px; animation-delay: -6s; }
.ambient i:nth-child(3) { left: 31%; width: 26px; height: 26px; animation-delay: -12s; animation-duration: 30s; }
.ambient i:nth-child(4) { left: 44%; width: 12px; height: 12px; animation-delay: -3s; }
.ambient i:nth-child(5) { left: 57%; animation-delay: -17s; }
.ambient i:nth-child(6) { left: 66%; width: 9px; height: 9px; animation-delay: -9s; animation-duration: 18s; }
.ambient i:nth-child(7) { left: 75%; width: 22px; height: 22px; animation-delay: -20s; animation-duration: 28s; }
.ambient i:nth-child(8) { left: 84%; width: 11px; height: 11px; animation-delay: -1s; }
.ambient i:nth-child(9) { left: 92%; width: 16px; height: 16px; animation-delay: -14s; }
.ambient i:nth-child(10) { left: 50%; width: 7px; height: 7px; animation-delay: -23s; animation-duration: 16s; }
@keyframes ambRise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(18px, -55vh); } 90% { opacity: .9; } 100% { transform: translate(-12px, -112vh); opacity: 0; } }
.shell, .auth { position: relative; z-index: 1; }

/* ---- Motion everywhere: reveal, tilt, lift ---- */
.js [data-reveal], .js .card, .js .stat, .js .badge { --rv: 1; }
.reveal-wait { opacity: 0; transform: translateY(18px) scale(.985); }
.reveal-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--spring); }
[data-tilt] { transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .3s; will-change: transform; }
[data-tilt].tilting { transition: transform .08s linear, box-shadow .3s; box-shadow: var(--sh-3); }
.stat:hover .stat-ico, .card-head:hover .bubble-ico { animation: icoWiggle .6s ease; }
.badge:not(.locked)::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); animation: sheen 5s ease-in-out infinite; }
.badge:not(.locked) .medal { animation: medalSwing 3.5s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes medalSwing { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-10deg); } 86% { transform: rotate(8deg); } 93% { transform: rotate(-3deg); } }
.nav a .ico { transition: transform .4s var(--spring); }
.nav a:hover .ico { transform: scale(1.15) rotate(-8deg); }
.nav a.active { position: relative; }
.nav a.active::before { content: ""; position: absolute; inset-inline-start: -16px; top: 22%; bottom: 22%; width: 4px; border-radius: 0 4px 4px 0; background: var(--grad-rose); animation: navBar .5s var(--spring); }
[dir="rtl"] .nav a.active::before { border-radius: 4px 0 0 4px; }
@keyframes navBar { from { transform: scaleY(0); } }
.cal-day, .heat .d, .day { transition: transform .3s var(--spring), box-shadow .3s; }
.day:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.timeline { overflow: visible; }
.tl-hit { position: absolute; top: -6px; bottom: -6px; cursor: help; border-radius: 6px; }
.tl-hit:hover { background: rgba(200, 64, 111, .08); }
.sess-row { transition: transform .3s var(--spring), background .2s; }
.sess-row:hover { transform: translateX(4px); } [dir="rtl"] .sess-row:hover { transform: translateX(-4px); }
.chip-emp { transition: transform .3s var(--spring), box-shadow .3s; }
.chip-emp:hover { transform: translateY(-3px) scale(1.03); }
.person { transition: transform .35s var(--spring), box-shadow .3s; }
.person:hover { box-shadow: var(--sh-2); }
.switch input:checked + span, .switch input:checked ~ * { transition: all .35s var(--spring); }

/* ---- Level-up overlay ---- */
.lvlup { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(34, 23, 38, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .3s ease both; }
.lvlup-box { text-align: center; padding: 34px 40px; border-radius: 32px; background: var(--surface); box-shadow: var(--sh-3); animation: popIn .6s var(--spring) both; max-width: min(380px, 90vw); }
.lvlup-box .lvl-big { width: 110px; height: 110px; margin: -80px auto 10px; border-radius: 50%; display: grid; place-items: center; font: 800 46px var(--display); color: #fff; background: var(--grad-rose); box-shadow: 0 0 0 8px #fff, 0 20px 40px -10px rgba(200, 64, 111, .6); animation: lvlSpin 1.2s var(--spring) .2s both; }
@keyframes lvlSpin { from { transform: rotateY(540deg) scale(.4); } }
.lvlup-box h2 { font-size: 28px; background: var(--grad-rose); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lvlup-box p { color: var(--muted); margin: 6px 0 18px; }

@media (max-width: 1100px) {
  .go-form { width: 100%; }
}
@media (max-width: 640px) {
  .go-form { padding: 12px 16px 12px 12px; gap: 14px; border-radius: 26px; }
  [dir="rtl"] .go-form { padding: 12px 12px 12px 16px; }
  .go-btn { width: 92px; height: 92px; }
  .go-text strong { font-size: 19px; }
  .day-hero.compact .go-form { grid-column: 1 / -1; }
  .level-card { gap: 14px; padding: 18px; }
  .lv-art { width: 84px; }
  .lv-title { font-size: 17px; }
  .podium { gap: 8px; }
  .pod { width: 31%; }
  .pod.p1 .avatar { --s: 58px; }
  .beaker-wrap { width: 150px; margin: 0 auto; }
  .ambient i:nth-child(n+6) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient, .go-halo, .lv-spark { display: none; }
  .dial .orbit, .lv-flask, .gl-wave, .go-dots i, .xp-fill::after, .lbar i::after, .crown, .pod-liq { animation: none; }
  .reveal-wait { opacity: 1; transform: none; }
}
.leader .info-top .who { display: inline-flex; align-items: center; gap: 8px; color: inherit; min-width: 0; }
.level-card { align-self: stretch; }
.story li { grid-template-columns: 36px 78px 1fr; }
.s-time { white-space: nowrap; font-size: 14px; }
.bk-center { left: 16%; right: 16%; top: 30%; }
.mission.ok::after { background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); }
.mission > * { position: relative; z-index: 1; }
@media (max-width: 640px) { .story li { grid-template-columns: 36px 72px 1fr; } }
.chip-emp .lvl-chip { margin-inline-start: -2px; }
.chip-emp.active .lvl-chip { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.chip-emp.active .lvl-chip .ico { color: #f6b3cb; }

/* ==========================================================================
   v7 · Cinematic start/end, top app bar, duotone icons, league, trophies
   ========================================================================== */

/* ---- Cinematic start / finish ---- */
.cine { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; cursor: pointer; }
.cine-bg { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 40%, rgba(255,255,255,.96), rgba(250, 240, 245, .94) 60%, rgba(245, 230, 238, .96)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadeIn 0.175s ease both; }
.cine.in .cine-bg { background: radial-gradient(70% 60% at 50% 40%, rgba(255,255,255,.96), rgba(236, 249, 244, .95) 60%, rgba(222, 243, 235, .96)); }
.cine.leaving { animation: cineOut 0.25s var(--ease) forwards; }
@keyframes cineOut { to { opacity: 0; transform: scale(1.04); visibility: hidden; } }
.cine-stage { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px; max-width: 520px; }
.cine-art { width: min(320px, 78vw); height: auto; overflow: visible; }
.cine-art * { transform-box: fill-box; }
.cn-glow { fill: #c3f0e0; opacity: .5; transform-origin: center; animation: glowPulse 1.2s ease-in-out infinite; }
.cn-glow.out { fill: #fbd5e2; }
@keyframes glowPulse { 50% { transform: scale(1.08); opacity: .8; } }
.cn-shadow { fill: rgba(75, 37, 80, .12); }
.cn-plate { fill: #fff; stroke: #d6c1cb; stroke-width: 4; }
.cn-agar { fill: url(#cnAgar); fill: #f3fbf8; stroke: #cfeee2; stroke-width: 2; }
.cn-shine { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; opacity: .9; }
.cn-lid { fill: rgba(255,255,255,.55); stroke: #d6c1cb; stroke-width: 3; transform-origin: center; animation: lidOff 0.45s var(--ease) 0.125s forwards; }
.cn-lid path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; }
@keyframes lidOff { 30% { transform: translate(0, -24px) rotate(-4deg); } 100% { transform: translate(120px, -170px) rotate(28deg); opacity: 0; } }
.cn-pip { transform: translateY(-260px); animation: pipIn 0.275s var(--spring) 0.375s forwards, pipOut 0.25s var(--ease) 1.375s forwards; }
.pp-bulb { fill: url(#gLiqRose); transform-origin: 50% 100%; animation: squeeze3 0.65s ease 0.625s; }
.pp-body { fill: rgba(255,255,255,.85); stroke: #cdb3be; stroke-width: 2.5; }
.pp-tip { fill: #e9dce2; }
@keyframes pipIn { to { transform: translateY(0); } }
@keyframes pipOut { from { transform: translateY(0); } to { transform: translateY(-280px); } }
@keyframes squeeze3 { 8%, 38%, 68% { transform: scaleY(.7) scaleX(1.12); } 20%, 50%, 80%, 100% { transform: none; } }
.dp { fill: #43c49c; opacity: 0; }
.dp.d1 { animation: dropFall 0.2s ease-in 0.675s forwards; } .dp.d2 { animation: dropFall 0.2s ease-in 0.875s forwards; } .dp.d3 { animation: dropFall 0.2s ease-in 1.075s forwards; }
@keyframes dropFall { 0% { opacity: 1; transform: translateY(0) scale(.6); } 80% { opacity: 1; transform: translateY(26px) scale(1, 1.15); } 100% { opacity: 0; transform: translateY(32px) scale(1.6, .3); } }
.rp { fill: none; stroke: #43c49c; stroke-width: 2.5; opacity: 0; transform-origin: center; }
.rp.r1 { animation: ripOut 0.5s var(--ease) 0.85s; } .rp.r2 { animation: ripOut 0.5s var(--ease) 1.05s; } .rp.r3 { animation: ripOut 0.5s var(--ease) 1.25s; }
@keyframes ripOut { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(8); } }
.cn-cell circle:first-child { fill: url(#gLiqMint2); stroke: #43c49c; stroke-width: 1.5; }
.cn-nuc { fill: #1f9b77; opacity: .55; }
.cn-cell { transform-origin: center; transform: scale(0); animation: cellBloom 0.3s var(--spring) forwards, cellFloat 1.5s ease-in-out infinite; }
.cn-cell.c0 { animation-delay: 0.875s, 1.2s; } .cn-cell.c1 { animation-delay: 0.925s, 1.25s; } .cn-cell.c2 { animation-delay: 0.975s, 1.3s; }
.cn-cell.c3 { animation-delay: 1.025s, 1.35s; } .cn-cell.c4 { animation-delay: 1.075s, 1.4s; } .cn-cell.c5 { animation-delay: 1.125s, 1.45s; }
.cn-cell.c6 { animation-delay: 1.15s, 1.5s; } .cn-cell.c7 { animation-delay: 1.19s, 1.55s; } .cn-cell.c8 { animation-delay: 1.23s, 1.6s; }
.cn-cell.c9 { animation-delay: 1.27s, 1.65s; } .cn-cell.c10 { animation-delay: 1.3s, 1.7s; } .cn-cell.c11 { animation-delay: 1.33s, 1.75s; }
@keyframes cellBloom { to { transform: scale(1); } }
@keyframes cellFloat { 0%, 100% { translate: 0 0; } 50% { translate: 2px -3px; } }

/* end scene */
.cn-tube { transform-origin: 50% 100%; animation: tubeIn 0.3s var(--spring) both; }
@keyframes tubeIn { from { transform: translateY(60px) scale(.8); opacity: 0; } }
.cn-glass { fill: rgba(255,255,255,.35); stroke: #d4bcc7; stroke-width: 4; }
.cn-hl { fill: #fff; opacity: .7; }
.cn-liq { transform: translateY(300px); transition: transform 0.75s cubic-bezier(.3, .9, .3, 1); transform-box: view-box; }
.lq1 { fill: url(#gLiqRose); animation: waveX 1.3s linear infinite; transform-box: view-box; }
.lq2 { fill: #f7c2d4; animation: waveX 1.9s linear infinite reverse; transform-box: view-box; }
.lb { fill: rgba(255,255,255,.8); animation: bubUp 1.1s ease-in infinite; }
.lb.b2 { animation-delay: 0.35s; } .lb.b3 { animation-delay: 0.7s; }
.cn-cap { fill: url(#gCap); stroke: #c49a76; stroke-width: 2; transform: translateY(-180px) rotate(-35deg); opacity: 0; animation: capOn 0.3s var(--spring) 0.85s forwards, capTwist 0.225s ease 1.15s; transform-origin: center; }
.cn-cap path { stroke: rgba(150, 100, 60, .35); stroke-width: 2; fill: none; }
@keyframes capOn { to { transform: none; opacity: 1; } }
@keyframes capTwist { 40% { transform: scaleX(.9) translateY(2px); } 70% { transform: scaleX(1.04); } }
.cn-label { transform-origin: 0 50%; transform: scaleX(0); opacity: 0; animation: labelPrint 0.25s var(--ease) 1.275s forwards; }
.cn-label rect { fill: #fff; stroke: #ead7df; stroke-width: 1.5; filter: drop-shadow(0 6px 10px rgba(75, 37, 80, .15)); }
.cn-label .lbl-band { fill: url(#gBand); stroke: none; filter: none; }
@keyframes labelPrint { to { transform: scaleX(1); opacity: 1; } }
.lbl-t1 { font: 700 8px var(--display); fill: #fff; letter-spacing: .12em; }
.lbl-t2 { font: 700 15px var(--display); fill: var(--ink); }
.lbl-t3 { font: 500 9.5px var(--text); fill: var(--muted); }
.lbl-t4 { font: 800 14px var(--display); fill: var(--rose); }
.cn-stamp { transform-origin: center; opacity: 0; animation: stampIn 0.175s cubic-bezier(.5, 0, .75, 0) 1.525s forwards; }
.cn-stamp circle { fill: rgba(31, 155, 119, .1); stroke: #1f9b77; stroke-width: 4; }
.cn-stamp .st-in { fill: none; stroke-dasharray: 4 4; stroke-width: 2; }
.cn-stamp path { fill: none; stroke: #1f9b77; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes stampIn { 0% { opacity: 0; transform: scale(2.6) rotate(-40deg); } 100% { opacity: 1; transform: scale(1) rotate(-12deg); } }
.cine.out .cine-stage { animation: stageThump 0.175s ease 1.7s; }
@keyframes stageThump { 30% { transform: translate(3px, 2px); } 60% { transform: translate(-3px, -1px); } }

.cine-body { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cine-body > * { opacity: 0; animation: cineRise 0.3s var(--spring) forwards; }
@keyframes cineRise { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.cine.in .cine-time { animation-delay: 1.225s; } .cine.in h2 { animation-delay: 1.3s; } .cine.in p { animation-delay: 1.36s; } .cine.in .cine-chips { animation-delay: 1.425s; }
.cine.out .cine-stats { animation-delay: 1.65s; } .cine.out h2 { animation-delay: 1.725s; } .cine.out p { animation-delay: 1.775s; }
.cine-time { font: 800 44px var(--display); color: var(--mint); line-height: 1.1; letter-spacing: -.01em; }
.cine h2 { font-size: 30px; background: var(--grad-rose); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cine.in h2 { background: var(--grad-mint); -webkit-background-clip: text; background-clip: text; }
.cine p { color: var(--muted); font-size: 16px; max-width: 360px; }
.cine-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.cchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; border-radius: 99px; font-weight: 700; font-size: 13.5px; background: #fff; box-shadow: var(--sh-2); }
.cchip .ico { width: 16px; height: 16px; } .cchip.mint { color: var(--mint); } .cchip.gold { color: var(--gold); }
.cine-stats { display: flex; gap: 10px; margin-bottom: 4px; }
.cine-stats > div { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 18px; background: #fff; box-shadow: var(--sh-2); min-width: 90px; }
.cine-stats small { color: var(--muted); font-size: 12px; }
.cine-stats strong { font: 800 22px var(--display); color: var(--ink); direction: ltr; }
.cine-stats .xp { background: var(--grad-rose); } .cine-stats .xp small, .cine-stats .xp strong { color: #fff; }
.cine-tap { margin-top: 14px; color: var(--faint); font-size: 12.5px; opacity: 0; animation: fadeIn 0.25s ease 1.9s forwards; }
.undo-bar { animation: undoIn .3s var(--spring) 2.6s both, undoOut .4s ease 15s forwards; }

/* ---- Top app bar ---- */
.shell { display: block; min-height: 100vh; }
.side, .mobile-top { display: none !important; }
.appbar { position: sticky; top: 12px; z-index: 50; display: flex; align-items: center; gap: 16px; max-width: 1240px; margin: 12px auto 0; padding: 8px 10px 8px 14px; border-radius: 24px; background: rgba(255, 254, 253, .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(238, 227, 223, .9); box-shadow: 0 10px 30px -18px rgba(75, 37, 80, .35); transition: box-shadow .3s, background .3s; }
[dir="rtl"] .appbar { padding: 8px 14px 8px 10px; }
.appbar.scrolled { background: rgba(255, 254, 253, .92); box-shadow: 0 16px 40px -20px rgba(75, 37, 80, .45); }
.appbar .brand { padding: 0; flex: none; }
.appbar .logo { width: 40px; height: 40px; border-radius: 13px; transition: transform .5s var(--spring); }
.appbar .brand:hover .logo { transform: rotate(-12deg) scale(1.06); }
.topnav { position: relative; display: flex; gap: 2px; margin: 0 auto; padding: 4px; border-radius: 18px; background: rgba(244, 236, 233, .7); }
.topnav a { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: color .25s; }
.topnav a:hover { color: var(--rose); }
.topnav a.active { color: var(--rose); }
.tn-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 14px; background: #fff; box-shadow: 0 4px 12px -4px rgba(75, 37, 80, .25); transition: transform .5s var(--spring), width .5s var(--spring); }
.dico { width: 22px; height: 22px; flex: none; overflow: visible; }
.dico .d { fill: currentColor; opacity: .16; stroke: none; transition: opacity .3s, transform .4s var(--spring); transform-origin: center; transform-box: fill-box; }
.dico .s { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a:hover > .dico .d, .active > .dico .d { opacity: .32; }
.topnav a:hover .dico { animation: icoWiggle .55s ease; }
.topnav a.active .dico .d { fill: url(#gSeg); opacity: .55; }
.ab-right { display: flex; align-items: center; gap: 8px; flex: none; }
.xp-orb { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); }
.xp-orb svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.o-bg { fill: #fff; stroke: #f1e3e8; stroke-width: 4; }
.o-fg { fill: none; stroke: url(#gRing); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 119.4; transition: stroke-dasharray 1.6s var(--ease) .3s; }
.o-n { position: relative; font: 800 15px var(--display); background: var(--grad-rose); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xp-orb:hover { animation: goPop .5s var(--spring); }
.me-menu { position: relative; }
.me-menu summary { list-style: none; display: flex; align-items: center; gap: 4px; padding: 3px 6px 3px 3px; border-radius: 99px; cursor: pointer; transition: background .2s; }
.me-menu summary::-webkit-details-marker { display: none; }
.me-menu summary:hover, .me-menu[open] summary { background: var(--bg); }
.mm-chev .ico { width: 16px; height: 16px; color: var(--muted); transition: transform .3s var(--spring); }
.me-menu[open] .mm-chev .ico { transform: rotate(180deg); }
.menu-pop { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: 260px; padding: 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); display: flex; flex-direction: column; gap: 4px; transform-origin: top right; animation: menuIn .35s var(--spring); }
[dir="rtl"] .menu-pop { transform-origin: top left; }
@keyframes menuIn { from { opacity: 0; transform: scale(.9) translateY(-6px); } }
.mp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mp-head div { display: flex; flex-direction: column; min-width: 0; }
.mp-head small { color: var(--muted); font-size: 12px; }
.menu-pop .xp-bar { margin-bottom: 8px; }
.mp-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 12px; border: 0; background: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; text-align: start; transition: background .2s, transform .3s var(--spring); }
.mp-item:hover { background: var(--rose-mist); color: var(--rose); transform: translateX(3px); }
[dir="rtl"] .mp-item:hover { transform: translateX(-3px); }
.mp-item.danger { color: var(--rose); }
.menu-pop form { margin: 0; }
.main { margin: 0 auto; padding: 26px 24px 70px; max-width: 1240px; }

/* Mobile dock with sliding indicator */
@media (max-width: 900px) {
  .topnav { display: none; }
  .appbar { margin: 10px 12px 0; top: 8px; padding: 6px 8px 6px 10px; }
  .appbar .brand-text small { display: none; }
  .ab-right { margin-inline-start: auto; }
  .main { padding: 18px 14px 120px; }
  .tabbar { display: flex !important; position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 26px; background: rgba(34, 23, 38, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 18px 40px -16px rgba(34, 23, 38, .6); }
  .tabbar a { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: 20px; color: rgba(255,255,255,.6); font-size: 11px; font-weight: 600; background: none !important; transition: color .25s; }
  .tabbar a.active { color: #fff; }
  .tabbar .dico { width: 24px; height: 24px; transition: transform .4s var(--spring); }
  .tabbar a.active .dico { transform: translateY(-2px) scale(1.1); }
  .tabbar a.active .dico .d { fill: #f0a7c1; opacity: .6; }
  .tb-ind { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 20px; background: rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); transition: transform .5s var(--spring), width .5s var(--spring); }
}
.tabbar:not(:has(a)) { display: none !important; }

/* Card header icon tiles */
.bubble-ico { width: 38px; height: 38px; border-radius: 13px; background: linear-gradient(135deg, #fdf3f6, #f6eefe); color: var(--rose); box-shadow: inset 0 0 0 1px rgba(200, 64, 111, .08); }
.bubble-ico .dico { width: 22px; height: 22px; }
.card-head:hover .bubble-ico .dico .d { opacity: .4; transform: scale(1.12); }

/* Cursor spotlight on cards */
.card { overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(240, 167, 193, .13), transparent 45%); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

/* ---- League ---- */
.grid-league { grid-template-columns: 1.6fr 1fr; }
.grid-league > .card { margin-bottom: 0; }
.league { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.league li { display: grid; grid-template-columns: 28px auto 1fr; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; transition: transform .35s var(--spring), background .2s; opacity: 0; animation: storyIn .5s var(--ease) forwards; }
.league li:nth-child(2) { animation-delay: .08s; } .league li:nth-child(3) { animation-delay: .16s; } .league li:nth-child(n+4) { animation-delay: .24s; }
.league li:hover { background: var(--bg); transform: translateX(4px); }
[dir="rtl"] .league li { animation-name: storyInR; } [dir="rtl"] .league li:hover { transform: translateX(-4px); }
.league li.me { background: linear-gradient(135deg, #fdf3f6, #f6eefe); box-shadow: inset 0 0 0 1.5px rgba(200, 64, 111, .25); }
.rk { font: 800 16px var(--display); color: var(--faint); text-align: center; }
.league li:nth-child(1) .rk { color: #e9b44c; } .league li:nth-child(2) .rk { color: #a59bbd; } .league li:nth-child(3) .rk { color: #d39b72; }
.lg-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lg-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lg-top strong { font-size: 14.5px; }
.lg-top em { font-style: normal; font-size: 11px; color: #fff; background: var(--rose); padding: 1px 7px; border-radius: 99px; margin-inline-start: 4px; }
.lg-b { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--gold); }
.lg-b .ico { width: 14px; height: 14px; }
.lg-p { margin-inline-start: auto; font: 700 14px var(--display); color: var(--rose); }
.league-card .podium { margin-bottom: 18px; }

/* Month sample vial */
.month-sample { display: flex; flex-direction: column; }
.ms-vial-wrap { flex: 1; display: flex; align-items: center; justify-content: center; gap: 22px; }
.month-vial { width: 96px; }
.ms-vial-info { display: flex; flex-direction: column; gap: 6px; }
.ms-vial-info .big { font: 800 52px var(--display); line-height: 1; background: var(--grad-rose); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ms-vial-info .big small { font-size: 22px; }

/* ---- Trophy cabinet ---- */
.cabinet-top { display: flex; align-items: center; gap: 16px; margin: -6px 0 18px; }
.cab-count { display: flex; align-items: baseline; gap: 4px; padding: 8px 16px; border-radius: 16px; background: linear-gradient(135deg, #fff6df, #fbe6ed); }
.cab-count strong { font: 800 30px var(--display); color: var(--ink); }
.cab-count small { color: var(--muted); font-weight: 600; }
.cabinet { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 12px; }
.trophy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; cursor: help; outline: none; opacity: 0; animation: popIn .6s var(--spring) forwards; }
.trophy:nth-child(2) { animation-delay: .05s; } .trophy:nth-child(3) { animation-delay: .1s; } .trophy:nth-child(4) { animation-delay: .15s; } .trophy:nth-child(5) { animation-delay: .2s; }
.trophy:nth-child(6) { animation-delay: .25s; } .trophy:nth-child(7) { animation-delay: .3s; } .trophy:nth-child(8) { animation-delay: .35s; } .trophy:nth-child(9) { animation-delay: .4s; } .trophy:nth-child(10) { animation-delay: .45s; }
.trophy { --c1: #e6dbe0; --c2: #cdbcc4; }
.hex { position: relative; width: 84px; height: 84px; display: grid; place-items: center; transition: transform .45s var(--spring); }
.trophy:hover .hex, .trophy:focus .hex { transform: translateY(-5px) rotate(-6deg) scale(1.06); }
.hex svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hx-bg { fill: #f6f0f2; stroke: #eadfe3; stroke-width: 2; }
.hx-ring { fill: none; stroke: var(--c2); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s var(--ease) .4s; }
.hx-ico { position: relative; color: #b8a8b0; }
.hx-ico .ico { width: 30px; height: 30px; }
.hx-lock { position: absolute; bottom: 4px; inset-inline-end: 6px; width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--faint); box-shadow: var(--sh-1); }
.hx-lock .ico { width: 12px; height: 12px; }
.trophy strong { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.trophy small { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.trophy.rose { --c1: #f29bba; --c2: #c8406f; } .trophy.mint { --c1: #8be3c6; --c2: #1f9b77; } .trophy.gold { --c1: #f6d27a; --c2: #c7966a; }
.trophy.lav { --c1: #c9b8f5; --c2: #7357c9; } .trophy.peach { --c1: #fbc2a0; --c2: #e28456; }
.trophy.ok .hx-bg { fill: url(#gHexFill); fill: var(--c1); stroke: var(--c2); stroke-width: 3; filter: drop-shadow(0 10px 14px rgba(75, 37, 80, .22)); }
.trophy.ok .hx-ring { stroke: #fff; stroke-width: 2.5; stroke-dasharray: 3 4 !important; opacity: .7; }
.trophy.ok .hx-ico { color: #fff; filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)); animation: medalSwing 4s ease-in-out infinite; }
.trophy.ok strong { color: var(--ink); }
.trophy.ok small { color: var(--c2); font-weight: 700; }
.hx-shine { position: absolute; inset: 0; clip-path: polygon(50% 4%, 90% 27%, 90% 73%, 50% 96%, 10% 73%, 10% 27%); overflow: hidden; pointer-events: none; }
.hx-shine::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-15deg); animation: sheen 3.6s ease-in-out infinite; }
.trophy.ok:nth-child(odd) .hx-shine::after { animation-delay: 1.2s; }

/* ---- Trophy wall (admin) ---- */
.wall { display: flex; flex-direction: column; gap: 8px; }
.wall-row { display: grid; grid-template-columns: auto 150px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; color: var(--ink); background: var(--bg); transition: transform .35s var(--spring), box-shadow .3s; }
.wall-row:hover { transform: translateY(-2px); box-shadow: var(--sh-2); background: var(--surface); }
.wr-name { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.wr-medals { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-medal { width: 32px; height: 32px; display: grid; place-items: center; clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); background: #ece4e8; color: #c3b5bc; transition: transform .35s var(--spring); }
.mini-medal .ico { width: 15px; height: 15px; }
.mini-medal:hover { transform: scale(1.2) rotate(-8deg); }
.mini-medal.ok { color: #fff; }
.mini-medal.ok.rose { background: linear-gradient(135deg, #f29bba, #c8406f); } .mini-medal.ok.mint { background: linear-gradient(135deg, #8be3c6, #1f9b77); }
.mini-medal.ok.gold { background: linear-gradient(135deg, #f6d27a, #c7966a); } .mini-medal.ok.lav { background: linear-gradient(135deg, #c9b8f5, #7357c9); }
.mini-medal.ok.peach { background: linear-gradient(135deg, #fbc2a0, #e28456); }
.wr-count { font: 800 20px var(--display); color: var(--rose); }
.wr-count small { font-size: 12px; color: var(--muted); }

#level > .level-card { height: 100%; margin: 0; }

@media (max-width: 1100px) { .grid-league { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .cabinet { grid-template-columns: repeat(3, 1fr); gap: 14px 6px; }
  .hex { width: 72px; height: 72px; }
  .wall-row { grid-template-columns: auto 1fr auto; }
  .wr-medals { grid-column: 1 / -1; }
  .cine-time { font-size: 36px; } .cine h2 { font-size: 24px; }
  .cine-stats > div { min-width: 0; padding: 8px 12px; }
  .ms-vial-info .big { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .cine *, .cine-body > * { animation-duration: .01s !important; animation-delay: 0s !important; }
}
.trophy.bump .hex, .mini-medal.bump { animation: goPop .5s var(--spring); }
@media print { .appbar, .tabbar, .ambient, .cine { display: none !important; } }
.rack { justify-content: center; } .rack-wrap { display: flex; flex-direction: column; } .rack-wrap > .rack { width: 100%; }

/* ==========================================================================
   v8 · Swarm splash, tap-3 reaction, lab moments, playground, liquid wipe
   ========================================================================== */

/* ---- Splash ---- */
html.splash-on .splash { animation: splashOut .5s var(--ease) 4.6s forwards; background: radial-gradient(70% 55% at 50% 38%, #fff 0%, #fdf1f4 55%, #f6dde7 100%); justify-content: flex-end; padding-bottom: 9vh; }
.sp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-vial { position: relative; width: 84px; opacity: 0; transform: translateY(40px) scale(.9); animation: spVialIn .7s var(--spring) 1.5s forwards; }
.sp-vial svg { width: 100%; display: block; overflow: visible; }
@keyframes spVialIn { to { opacity: 1; transform: none; } }
.sp-glass { fill: rgba(255,255,255,.4); stroke: #dcc3ce; stroke-width: 3; }
.sp-hl { fill: #fff; opacity: .8; }
.sp-cap { fill: url(#gCap); stroke: #c49a76; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transform: translateY(-50px) rotate(-30deg); opacity: 0; }
.sp-lbl { fill: #fff; stroke: #ecd9e0; } .sp-band { fill: url(#gBand); }
.sp-vial text { font: 800 9.5px var(--display); fill: var(--ink); }
.sp-liq { transform: translateY(200px); transition: transform 1.4s cubic-bezier(.3, .9, .3, 1); }
.sp-liq .w1 { fill: url(#gLiqRose); animation: waveX40 2.4s linear infinite; }
.sp-liq .w2 { fill: #f7c2d4; animation: waveX40 3.4s linear infinite reverse; }
.splash.pouring .sp-liq { transform: translateY(70px); transition-delay: .25s; }
.splash.pouring .sp-cap { animation: capOn .55s var(--spring) 1.35s forwards; }
.sp-tag { position: relative; margin-top: 12px; font: 600 16px var(--display); color: var(--ink-2); opacity: 0; animation: cineRise .6s var(--spring) 2.6s forwards; }
html.splash-on body { overflow: hidden; }

/* ---- Reaction pad (tap 3 times) ---- */
.rx-form { margin: 4px 0 0; }
.rx-btn { --c1: #5fd3ad; --c2: #1f9b77; position: relative; width: 100%; display: flex; align-items: center; gap: 18px; padding: 10px 22px 10px 12px; border: 1px solid var(--line); border-radius: 30px; cursor: pointer; font: inherit; color: var(--ink); text-align: start; background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(236, 249, 244, .9)); box-shadow: var(--sh-1); -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform .25s var(--spring), box-shadow .3s; }
[dir="rtl"] .rx-btn { padding: 10px 12px 10px 22px; }
.rx-form.out .rx-btn { --c1: #e47aa0; --c2: #c8406f; background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(253, 236, 242, .9)); }
.rx-btn:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.rx-btn.rx-hit { animation: rxHit .32s var(--spring); }
@keyframes rxHit { 40% { transform: scale(.97); } }
.rx-btn.rx-shake { animation: goShake .45s ease; }
.rx-stage { position: relative; width: 104px; height: 120px; flex: none; display: grid; place-items: center; }
.rx-art { width: 100%; height: 100%; overflow: visible; }
.rx-art * { transform-box: fill-box; }
.rx-shadow { fill: rgba(75, 37, 80, .1); }
.rx-glass { fill: rgba(255,255,255,.4); stroke: #d4bcc7; stroke-width: 3; stroke-linejoin: round; }
.rx-hl { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; opacity: .8; }
rect.rx-hl { fill: #fff; stroke: none; }
.rx-liq { transform: translateY(132px); transition: transform .55s var(--spring); transform-box: view-box; }
.rx-liq .w1 { fill: var(--c1); animation: waveX40 2.2s linear infinite; transform-box: view-box; }
.rx-liq .w2 { fill: var(--c2); opacity: .35; animation: waveX40 3.2s linear infinite reverse; transform-box: view-box; }
.rx-liq .rb { fill: rgba(255,255,255,.75); animation: bubUp 1.8s ease-in infinite; }
.rx-liq .rb:nth-of-type(2) { animation-delay: .6s; } .rx-liq .rb:nth-of-type(3) { animation-delay: 1.2s; }
/* start: flask fills per drop and changes colour */
.rx-form.in.t0 .rx-liq { transform: translateY(124px); }
.rx-form.in.t1 .rx-liq { transform: translateY(110px); }
.rx-form.in.t2 .rx-liq { transform: translateY(94px); --c1: #8be3c6; }
.rx-form.in.t3 .rx-liq { transform: translateY(70px); --c1: #43c49c; }
.rx-pip { animation: pipBob 2.4s ease-in-out infinite; }
@keyframes pipBob { 50% { transform: translateY(3px); } }
.rx-btn.rx-hit .pp-bulb { animation: squeeze3 .4s ease; }
.rx-drop { fill: #43c49c; }
.rx-foam circle { fill: #c3f0e0; stroke: #43c49c; stroke-width: 1.5; transform-origin: center; transform: scale(0); }
.rx-form.in.done .rx-foam circle { animation: foam .6s var(--spring) forwards; }
.rx-form.in.done .rx-foam circle:nth-child(2) { animation-delay: .08s; } .rx-form.in.done .rx-foam circle:nth-child(3) { animation-delay: .16s; } .rx-form.in.done .rx-foam circle:nth-child(4) { animation-delay: .24s; }
@keyframes foam { 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
/* finish: tube already full, cap twists down in three turns */
.rx-form.out .rx-liq { transform: translateY(62px); }
.rx-cap { fill: url(#gCap); stroke: #c49a76; stroke-width: 1.5; transition: transform .45s var(--spring); transform-origin: center; }
.rx-cap path { fill: none; stroke: rgba(150, 100, 60, .35); stroke-width: 2; }
.rx-form.out.t0 .rx-cap { transform: translateY(-10px) rotate(-14deg); }
.rx-form.out.t1 .rx-cap { transform: translateY(2px) rotate(8deg) scaleX(.96); }
.rx-form.out.t2 .rx-cap { transform: translateY(10px) rotate(-5deg) scaleX(.98); }
.rx-form.out.t3 .rx-cap { transform: translateY(14px); }
.rx-stamp { opacity: 0; transform-origin: center; }
.rx-stamp circle { fill: #fff; stroke: #1f9b77; stroke-width: 3; }
.rx-stamp path { fill: none; stroke: #1f9b77; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.rx-form.out.done .rx-stamp { animation: stampIn .3s cubic-bezier(.5, 0, .75, 0) .1s forwards; }
.rx-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.rx-text strong { font: 700 22px var(--display); line-height: 1.2; }
.rx-text small { color: var(--muted); font-size: 13.5px; transition: color .2s; }
.rx-form.t1 .rx-text small, .rx-form.t2 .rx-text small, .rx-form.t3 .rx-text small { color: var(--c2); font-weight: 700; }
.rx-dots { display: flex; gap: 6px; margin-top: 6px; }
.rx-dots i { width: 26px; height: 8px; border-radius: 99px; background: rgba(75, 37, 80, .08); transition: background .3s, transform .4s var(--spring); }
.rx-form.t1 .rx-dots i:nth-child(1), .rx-form.t2 .rx-dots i:nth-child(-n+2), .rx-form.t3 .rx-dots i { background: var(--c2); transform: scaleY(1.3); }
.rx-form.t0 .rx-dots i { animation: goDot 1.6s ease-in-out infinite; }
.rx-form.t0 .rx-dots i:nth-child(2) { animation-delay: .2s; } .rx-form.t0 .rx-dots i:nth-child(3) { animation-delay: .4s; }
.rx-combo { position: absolute; top: 4px; left: 70px; pointer-events: none; }
[dir="rtl"] .rx-combo { left: auto; right: 70px; }
.rx-combo span { position: absolute; font: 800 18px var(--display); color: var(--c2); animation: comboUp .9s var(--ease) forwards; white-space: nowrap; }
@keyframes comboUp { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 25% { opacity: 1; transform: translateY(-4px) scale(1.2); } 100% { opacity: 0; transform: translateY(-34px) scale(1); } }
.rx-form.done .rx-btn { pointer-events: none; }
.rx-form.done .rx-stage { animation: goPop .5s var(--spring); }
@media (max-width: 640px) {
  .rx-stage { width: 84px; height: 100px; }
  .rx-text strong { font-size: 19px; }
  .day-hero.compact .rx-form { grid-column: 1 / -1; }
}

/* ---- Lab moments ---- */
.scene { position: fixed; inset: 0; z-index: 88; display: grid; place-items: center; background: rgba(250, 246, 244, .55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: fadeIn .25s ease both; cursor: pointer; }
.scene.leaving { animation: cineOut .45s var(--ease) forwards; }
.scene-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 30px 24px; border-radius: 30px; background: var(--surface); box-shadow: var(--sh-3); min-width: 240px; max-width: min(380px, 90vw); animation: popIn .5s var(--spring) both; }
.scene-card strong { font: 700 19px var(--display); opacity: 0; animation: cineRise .5s var(--spring) .7s forwards; }
.scene-card small { color: var(--muted); opacity: 0; animation: cineRise .5s var(--spring) .85s forwards; }
.scene-art { width: 200px; height: 160px; display: grid; place-items: center; }
.scene-art svg { width: 100%; height: 100%; overflow: visible; }
.scene-art svg * { transform-box: fill-box; }
/* saved */
.sc-beaker { fill: rgba(255,255,255,.4); stroke: #d4bcc7; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sc-swirl .sw1 { fill: url(#gLiqRose); animation: waveX80 1s linear infinite; transform-box: view-box; }
.sc-swirl .sw2 { fill: #f7c2d4; animation: waveX80 1.4s linear infinite reverse; transform-box: view-box; }
.sc-rod rect { fill: rgba(255,255,255,.75); stroke: #cdb3be; stroke-width: 2; }
.sc-rod { transform-origin: 50% 100%; animation: stir .5s ease-in-out 3 alternate; }
@keyframes stir { from { transform: rotate(-12deg) translateX(-10px); } to { transform: rotate(12deg) translateX(10px); } }
.sc-check { opacity: 0; transform-origin: center; animation: checkRise .7s var(--spring) 1.05s forwards; }
.sc-check circle { fill: #1f9b77; } .sc-check path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes checkRise { 0% { opacity: 0; transform: translateY(50px) scale(.3); } 100% { opacity: 1; transform: translateY(-26px) scale(1); } }
/* added */
.sc-shelf { fill: #e3cfc8; }
.sc-ghost rect { fill: #f4ebee; stroke: #e5d6dc; stroke-width: 2; }
.sc-newvial { transform: translateY(-170px); animation: vialDrop .7s cubic-bezier(.3, 1.4, .5, 1) .15s forwards; }
@keyframes vialDrop { to { transform: none; } }
.v-glass { fill: rgba(255,255,255,.6); stroke: #d4bcc7; stroke-width: 2.5; }
.v-liq { fill: url(#gLiqMint); } .v-cap { fill: url(#gCap); } .v-lbl { fill: #fff; stroke: url(#gBand); stroke-width: 2; }
.sc-stars path { fill: #f6d27a; opacity: 0; transform-origin: center; animation: twinkle 1.2s ease-in-out .8s infinite; }
.sc-stars path:nth-child(2) { animation-delay: 1s; fill: #f472a8; } .sc-stars path:nth-child(3) { animation-delay: 1.2s; fill: #a78bfa; }
/* photo */
.sc-polaroid { padding: 10px 10px 26px; background: #fff; border-radius: 6px; box-shadow: 0 14px 30px -10px rgba(75, 37, 80, .35); transform: rotate(-6deg); animation: polIn .7s var(--spring) both; position: relative; }
.pol-img { filter: blur(10px) saturate(0) brightness(1.6); animation: develop 1.4s ease .5s forwards; }
.pol-img .avatar { border-radius: 4px; box-shadow: none; } .pol-img .avatar img { border-radius: 4px; }
.pol-cap { position: absolute; bottom: 5px; left: 0; right: 0; font: 600 13px var(--display); color: var(--ink-2); }
@keyframes polIn { from { transform: translateY(-60px) rotate(12deg); opacity: 0; } }
@keyframes develop { to { filter: none; } }
/* removed */
.sc-plate { fill: #f6eef1; stroke: #e5d6dc; stroke-width: 2; }
.sc-pip2 { transform: translateY(-60px); opacity: 0; animation: pip2In .45s var(--spring) .1s forwards, pip2Out .45s var(--ease) 1.25s forwards; }
@keyframes pip2In { to { transform: none; opacity: 1; } }
@keyframes pip2Out { from { transform: none; opacity: 1; } to { transform: translateY(-50px); opacity: 0; } }
.sc-drop { fill: var(--rose-2); transform-origin: center; animation: suck .5s ease-in .7s forwards; }
@keyframes suck { to { transform: translateY(-40px) scale(.2, 1.6); opacity: 0; } }
/* lock */
.sc-shackle { fill: none; stroke: #b39aa8; stroke-width: 9; stroke-linecap: round; transform: translateY(-16px); animation: shackle .35s cubic-bezier(.5, 0, .75, 0) .55s forwards; }
@keyframes shackle { to { transform: none; } }
.sc-body { fill: url(#gLiqRose); } .sc-key { fill: #fff; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.sc-ring { fill: none; stroke: #43c49c; stroke-width: 3; opacity: 0; transform-origin: center; animation: ripOut .8s var(--ease) .9s; }
/* welcome */
.sc-welcome { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.sc-welcome .avatar { animation: popIn .6s var(--spring) .1s both; }
.wl-ring { position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; }
.wl-bg { fill: none; stroke: #f3e7ec; stroke-width: 7; }
.wl-fg { fill: none; stroke: url(#gRing); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 999; transition: stroke-dasharray 1.6s var(--ease); }
.wl-lv { position: absolute; bottom: -2px; right: 6px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 17px var(--display); color: #fff; background: var(--grad-rose); box-shadow: 0 0 0 4px #fff, var(--sh-2); animation: lvlSpin 1s var(--spring) .6s both; }
.wl-b { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, rgba(240, 167, 193, .5)); animation: bubUp 2.2s ease-in infinite; }
.wl-b.b1 { left: 4px; bottom: 20px; } .wl-b.b2 { right: 0; top: 40px; animation-delay: .6s; width: 8px; height: 8px; } .wl-b.b3 { left: 30px; top: 0; animation-delay: 1.1s; } .wl-b.b4 { right: 30px; bottom: 0; animation-delay: 1.5s; width: 9px; height: 9px; }

/* ---- Playground ---- */
.playground { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ambient { display: none; }
.pop-counter { position: fixed; z-index: 70; bottom: 22px; inset-inline-start: 22px; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; background: rgba(255,255,255,.9); box-shadow: var(--sh-2); backdrop-filter: blur(8px); opacity: 0; transform: translateY(20px) scale(.9); transition: opacity .3s, transform .4s var(--spring); pointer-events: none; }
.pop-counter.show { opacity: 1; transform: none; }
.pop-counter.bump { animation: goPop .4s var(--spring); }
.pc-b { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, rgba(240, 167, 193, .6) 60%, rgba(200, 64, 111, .5)); }
.pop-counter strong { font: 800 17px var(--display); color: var(--rose); }
.pop-counter small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 900px) { .pop-counter { bottom: calc(100px + env(safe-area-inset-bottom)); } }

/* ---- Liquid wipe ---- */
.wipe { position: fixed; inset: -2px 0 -22% 0; z-index: 99; pointer-events: none; transform: translateY(-110%); }
.wipe svg { width: 100%; height: 100%; display: block; }
.wipe .wp1 { fill: #e0628f; } .wipe .wp2 { fill: #f7c2d4; }
.wipe.cover { transform: translateY(0); transition: transform .33s cubic-bezier(.7, 0, .3, 1); }
.wipe.reveal { transform: translateY(110%); transition: transform .6s cubic-bezier(.7, 0, .3, 1); }
.wipe .wp1 { animation: none; }

/* goal reached glow */
.dish.goal-hit::before { box-shadow: 0 0 0 6px rgba(246, 210, 122, .35), 0 0 60px rgba(246, 210, 122, .6), 0 30px 50px -24px rgba(75, 37, 80, .35); }
@media (prefers-reduced-motion: reduce) { .wipe, .playground { display: none; } }
@media print { .playground, .wipe, .pop-counter, .scene { display: none !important; } }

@keyframes waveX40 { to { transform: translateX(40px); } }
@keyframes waveX80 { to { transform: translateX(80px); } }
.scene-card { overflow: hidden; }
.sp-vial { width: 108px; }
.pop-seq { animation: popSeq .55s var(--spring) both; }
@keyframes popSeq { from { opacity: 0; transform: translateY(14px) scale(.8); } }
.coin-rain circle { fill: #f6d27a; stroke: #d9a74a; stroke-width: 1.5; opacity: 0; animation: coinDrop 1.1s cubic-bezier(.5, 0, .9, .6) forwards; transform-box: fill-box; }
.coin-rain circle:nth-child(1) { animation-delay: .5s; } .coin-rain circle:nth-child(2) { animation-delay: .75s; } .coin-rain circle:nth-child(3) { animation-delay: 1s; } .coin-rain circle:nth-child(4) { animation-delay: 1.25s; }
@keyframes coinDrop { 0% { opacity: 1; transform: translateY(0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(210px) rotate(220deg) scaleX(.4); } }
.beaker { overflow: visible; }

/* ==========================================================================
   v9 · Brand splash, lens transitions, tabs, month rack, specimen log, welcome
   ========================================================================== */

/* ---- Splash: the logo comes alive ---- */
html.splash-on .splash { justify-content: center; padding-bottom: 24px; background: radial-gradient(65% 55% at 50% 42%, #fff 0%, #fdf2f6 50%, #f7dfe8 100%); animation: splashOut .6s var(--ease) 5.2s forwards; }
html.splash-out .splash { animation: splashZoom .6s var(--ease) forwards; }
@keyframes splashZoom { to { opacity: 0; transform: scale(1.12); filter: blur(6px); visibility: hidden; } }
.sp-stage { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sp-art { width: min(300px, 70vw); height: auto; overflow: visible; }
.sp-art * { transform-box: fill-box; }
.sp-halo { fill: none; stroke: #f3b3c9; stroke-width: .5; transform-origin: center; opacity: 0; animation: spHalo 2.4s var(--ease) .2s infinite; }
.sp-halo.h2 { animation-delay: 1.4s; }
@keyframes spHalo { 0% { opacity: .8; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.35); } }
.sp-track { fill: rgba(255,255,255,.7); stroke: #f1dbe4; stroke-width: .6; stroke-dasharray: .6 1.4; transform-origin: center; animation: spinSlow 30s linear infinite, popIn .7s var(--spring) both; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.sp-flask { fill: none; stroke: #c8406f; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: spDraw 1s cubic-bezier(.65, 0, .35, 1) .25s forwards; }
@keyframes spDraw { to { stroke-dashoffset: 0; } }
.sp-liq { transform: translateY(30px); animation: spFill 1.1s cubic-bezier(.3, .9, .3, 1) 1s forwards; transform-box: view-box; }
@keyframes spFill { to { transform: translateY(15.5px); } }
.sp-liq .w1 { fill: url(#gLiqRose); animation: waveX8 1.6s linear infinite; transform-box: view-box; }
.sp-liq .w2 { fill: #f7c2d4; animation: waveX8 2.4s linear infinite reverse; transform-box: view-box; }
@keyframes waveX8 { to { transform: translateX(8px); } }
.sp-heart { fill: #fff; transform-origin: center; transform: scale(0); animation: heartPop .6s var(--spring) 1.65s forwards, heartBeat 1.1s ease-in-out 2.4s infinite; }
@keyframes heartPop { to { transform: scale(1); } }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(.96); } 45% { transform: scale(1.1); } }
.sp-orbit { transform-origin: 16px 17px; transform-box: view-box; animation: spinSlow 9s linear 1.7s infinite; }
.ov { opacity: 0; animation: fadeIn .5s ease forwards; }
.ov:nth-child(1) { animation-delay: 1.8s; } .ov:nth-child(2) { animation-delay: 1.95s; } .ov:nth-child(3) { animation-delay: 2.1s; }
.ov-g { fill: rgba(255,255,255,.9); stroke: #d4bcc7; stroke-width: .35; }
.ov-c { fill: #e7c3a3; }
.ov-l.rose { fill: #e0628f; } .ov-l.mint { fill: #43c49c; } .ov-l.gold { fill: #f2c46d; }
.sp-bub circle { fill: #f29bba; opacity: 0; animation: spBub 1.6s ease-in 2s infinite; }
.sp-bub circle:nth-child(2) { animation-delay: 2.4s; } .sp-bub circle:nth-child(3) { animation-delay: 2.8s; }
@keyframes spBub { 0% { opacity: 0; transform: translateY(4px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-9px); } }
.sp-name { position: relative; font: 800 clamp(44px, 9vw, 72px)/1.05 var(--display); letter-spacing: -.01em; color: rgba(200, 64, 111, .12); opacity: 0; animation: cineRise .7s var(--spring) 1.9s forwards; }
.sp-name::after { content: attr(data-text); position: absolute; inset: 0; color: transparent; background: linear-gradient(0deg, #9c3a7b 0%, #c8406f 45%, #e47aa0 50%, transparent 51%) 0 0 / 100% 200% no-repeat; -webkit-background-clip: text; background-clip: text; background-position: 0 0; animation: nameFill 1.1s cubic-bezier(.3, .9, .3, 1) 2.1s forwards; }
@keyframes nameFill { to { background-position: 0 100%; } }
.sp-tag { position: relative; font: 600 16px var(--display); color: var(--ink-2); opacity: 0; animation: cineRise .6s var(--spring) 2.5s forwards; margin-top: 0; }
.sp-load { width: 150px; height: 8px; margin-top: 14px; border-radius: 99px; background: #f3e4ea; overflow: hidden; box-shadow: inset 0 1px 2px rgba(75, 37, 80, .08); }
.sp-load i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #f0a7c1, #c8406f, #9b83e0); transform: scaleX(0); transform-origin: left; animation: barFill 3.7s cubic-bezier(.45, .05, .3, 1) .1s forwards; }
[dir="rtl"] .sp-load i { transform-origin: right; }
@keyframes barFill { to { transform: scaleX(1); } }
.sp-canvas, .sp-vial { display: none; }

/* ---- Page transitions: a lens opens from where you tapped ---- */
@view-transition { navigation: auto; }
::view-transition-group(root) { animation-duration: .6s; }
::view-transition-old(root) { animation: vtOld .55s cubic-bezier(.7, 0, .3, 1) both; }
::view-transition-new(root) { animation: vtLens .62s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes vtOld { to { transform: scale(.95); filter: blur(4px) saturate(.7); opacity: .5; } }
@keyframes vtLens { from { clip-path: circle(0 at var(--vx, 50%) var(--vy, 30%)); } to { clip-path: circle(140vmax at var(--vx, 50%) var(--vy, 30%)); } }
html.vt-arrive::after { content: ""; position: fixed; z-index: 120; left: var(--vx, 50%); top: var(--vy, 30%); width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; pointer-events: none; border: 3px solid rgba(224, 98, 143, .7); box-shadow: 0 0 0 6px rgba(240, 167, 193, .25), inset 0 0 20px rgba(240, 167, 193, .4); animation: lensRing .8s cubic-bezier(.3, .9, .3, 1) forwards; }
@keyframes lensRing { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(30); opacity: 0; border-width: .2px; } }
.wipe { display: none !important; }

/* ---- Segmented tabs ---- */
.seg { position: relative; display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 20px; padding: 5px; border-radius: 20px; background: rgba(255,255,255,.75); border: 1px solid var(--line); box-shadow: var(--sh-1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 84px; z-index: 20; }
.seg a { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 15px; color: var(--ink-2); font-weight: 700; font-size: 14.5px; transition: color .25s; white-space: nowrap; }
.seg a.active { color: #fff; }
.seg a .dico { width: 20px; height: 20px; }
.seg a.active .dico .d { fill: #fff; opacity: .35; }
.seg-ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 15px; background: var(--grad-rose); box-shadow: 0 8px 18px -8px rgba(200, 64, 111, .7); transition: transform .5s var(--spring), width .5s var(--spring); }
.tabbed .tab-pane { display: none; }
.tabbed .tab-pane.active { display: block; }
.tab-pane.pane-in > * { animation: paneIn .55s var(--spring) both; }
.tab-pane.pane-in > *:nth-child(2) { animation-delay: .06s; } .tab-pane.pane-in > *:nth-child(3) { animation-delay: .12s; } .tab-pane.pane-in > *:nth-child(4) { animation-delay: .18s; }
@keyframes paneIn { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.tab-pane > #level { margin-bottom: 20px; }
@media (max-width: 900px) { .seg { top: 72px; } }
@media (max-width: 640px) {
  .seg { width: 100%; }
  .seg a { flex: 1; justify-content: center; padding: 9px 6px; font-size: 13px; gap: 6px; }
}

/* ---- Month hero ---- */
.month-hero { display: flex; align-items: center; gap: 28px; background: radial-gradient(80% 120% at 0% 50%, #fdf3f6, var(--surface) 60%); }
[dir="rtl"] .month-hero { background: radial-gradient(80% 120% at 100% 50%, #fdf3f6, var(--surface) 60%); }
.mh-vial .month-vial { width: 110px; }
.mh-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mh-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mh-top .eyebrow { margin: 0; }
.mh-num { font: 800 64px/1 var(--display); background: var(--grad-rose); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mh-num small { font-size: 26px; }
.mh-facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.mh-facts > div { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 16px; background: var(--bg); min-width: 110px; }
.mh-facts small { color: var(--muted); font-size: 12px; }
.mh-facts strong { font: 700 18px var(--display); font-variant-numeric: tabular-nums; }
.mh-facts .pay { background: var(--ink); } .mh-facts .pay small { color: rgba(255,255,255,.6); } .mh-facts .pay strong { color: #fff; }
@media (max-width: 640px) { .month-hero { gap: 14px; } .mh-vial .month-vial { width: 80px; } .mh-num { font-size: 50px; } .mh-facts > div { min-width: 0; flex: 1; } }

/* ---- Month rack ---- */
.mr-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 18px; }
.mr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 99px; font-size: 13px; color: var(--ink-2); background: var(--bg); }
.mr-chip strong { font-family: var(--display); color: var(--ink); }
.mr-chip .ico { width: 16px; height: 16px; } .mr-chip.mint .ico { color: var(--mint); } .mr-chip.rose .ico { color: var(--rose); } .mr-chip.gold .ico { color: var(--gold); }
.mrack { display: flex; flex-direction: column; gap: 14px; }
.mr-dow, .mr-tubes { display: grid; grid-template-columns: repeat(7, 1fr) 44px; gap: 6px; }
.mr-tubes { grid-template-columns: repeat(7, 1fr); }
.mr-dow span { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--faint); }
.mr-week { position: relative; display: grid; grid-template-columns: 1fr 44px; align-items: end; column-gap: 6px; }
.mr-tubes { grid-column: 1; position: relative; z-index: 1; padding: 0 6px; }
.mr-shelf { grid-column: 1; grid-row: 1; align-self: end; height: 12px; margin-bottom: 14px; border-radius: 7px; background: linear-gradient(180deg, #efe1dc, #dfccc6); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 8px 14px -8px rgba(75, 37, 80, .3); }
.mr-wsum { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 12px; font: 700 12.5px var(--display); color: var(--rose); text-align: center; }
.mt { position: relative; display: flex; flex-direction: column; align-items: center; color: var(--ink); opacity: 0; animation: tubeDrop .6s var(--spring) forwards; }
.mt.pad { visibility: hidden; }
.mt-svg { width: min(30px, 100%); height: auto; overflow: visible; transition: transform .35s var(--spring); }
.mt:hover .mt-svg, .mt:focus .mt-svg { transform: translateY(-6px) rotate(-6deg); }
.mt-glass { fill: rgba(255,255,255,.55); stroke: #d9c6ce; stroke-width: 1.6; }
.mt-cap { fill: #eadde2; }
.mt-hl { fill: #fff; opacity: .8; }
.mt-liq { fill: url(#gLiqRose); transform-origin: 50% 100%; animation: liqUp 1s var(--ease) both; animation-delay: inherit; }
.mt-top { fill: rgba(255,255,255,.55); }
.mt.hit .mt-liq { fill: url(#gLiqMint); } .mt.hit .mt-cap { fill: url(#gCap); }
.mt.part .mt-cap { fill: #f3c7d6; }
.mt.live .mt-liq { fill: url(#gLiqMint); animation: liqUp 1s var(--ease) both, breathe 2s ease-in-out infinite; }
.mt.live .mt-glass { stroke: var(--mint-2); stroke-width: 2.2; }
.mt.off .mt-glass { stroke-dasharray: 2 2; }
.mt.future { opacity: 0; }
.mt.future .mt-svg { opacity: .35; }
.mt.today .mt-d { color: #fff; background: var(--grad-rose); }
.mt-d { position: relative; z-index: 2; margin-top: 4px; min-width: 22px; padding: 1px 5px; border-radius: 99px; font: 700 11.5px var(--display); color: var(--ink-2); text-align: center; background: rgba(255,255,255,.85); }
.mt.off .mt-d { color: var(--faint); }
.mt-star { position: absolute; top: -6px; inset-inline-end: 0; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #fff; box-shadow: 0 0 0 2px #fff; animation: okPop .5s var(--spring) .9s both; }
.mt-star .ico { width: 10px; height: 10px; stroke-width: 3.5; }
@keyframes tubeDrop { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes liqUp { from { transform: scaleY(0); } }
.mt.future { animation-name: tubeDropFaint; }
@keyframes tubeDropFaint { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }

/* ---- Shift log as specimen labels ---- */
.slog { display: flex; flex-direction: column; gap: 18px; }
.sl-group { display: flex; flex-direction: column; gap: 10px; }
.sl-week { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.slw-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad-rose); box-shadow: 0 0 0 4px var(--rose-mist); }
.slw-meta { margin-inline-start: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.sl-days { display: flex; flex-direction: column; gap: 10px; padding-inline-start: 4px; border-inline-start: 2px dashed var(--line-2); margin-inline-start: 4px; padding-inline-start: 16px; }
.spec { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 12px 14px 12px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .35s var(--spring), box-shadow .3s; scroll-margin-top: 150px; }
[dir="rtl"] .spec { padding: 12px 10px 12px 14px; }
.spec:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.spec::before { content: ""; position: absolute; top: 22px; inset-inline-start: -23px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid #f0a7c1; }
.spec.hit::before { border-color: var(--mint-2); } .spec.live::before { border-color: var(--mint); animation: nowGlow 1.8s ease-in-out infinite; }
.spec.flash-hit { animation: flashHit 1.6s ease; }
@keyframes flashHit { 20%, 60% { box-shadow: 0 0 0 4px rgba(240, 167, 193, .6), var(--sh-2); } }
.sp-tube { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sp-tube .mt-svg { width: 30px; }
.sp-tube .mt-liq { animation: liqUp 1s var(--ease) .2s both; }
.spec.hit .mt-liq { fill: url(#gLiqMint); } .spec.live .mt-liq { fill: url(#gLiqMint); }
.sp-pct { font: 800 11.5px var(--display); color: var(--rose); }
.spec.hit .sp-pct, .spec.live .sp-pct { color: var(--mint); }
.sp-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-head { display: flex; align-items: center; gap: 10px; }
.sp-date { display: flex; align-items: baseline; gap: 8px; }
.sp-date strong { font: 700 16px var(--display); }
.sp-date span { color: var(--muted); font-size: 13.5px; }
.sp-code { font: 600 10.5px var(--display); letter-spacing: .08em; color: #a46b8f; background: linear-gradient(90deg, #fbe6ed, #f6eefe); padding: 2px 8px; border-radius: 6px; }
.sp-total { margin-inline-start: auto; font: 800 17px var(--display); font-variant-numeric: tabular-nums; }
.spec .timeline { height: 8px; }
.sp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sp-sess { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: var(--bg); font-size: 14px; flex-wrap: wrap; }
.sp-sess.open { background: linear-gradient(90deg, #e9f8f2, #f3fbf8); }
.sp-n { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font: 700 11.5px var(--display); background: #fff; color: var(--rose); box-shadow: var(--sh-1); }
.sp-sess.open .sp-n { color: var(--mint); }
.sp-t { font: 600 14px var(--display); font-variant-numeric: tabular-nums; }
.sp-t i { font-style: normal; color: var(--faint); margin: 0 6px; }
.sp-note { color: var(--muted); font-size: 12.5px; }
.sp-d { margin-inline-start: auto; font: 700 13.5px var(--display); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sp-d.live { color: var(--mint); }
.sp-sess .acts { display: flex; gap: 4px; }
.sp-break { display: flex; align-items: center; gap: 6px; padding: 0 10px; color: var(--gold); font-size: 12.5px; font-weight: 600; }
.sp-break .ico { width: 15px; height: 15px; }
.sl-more summary { list-style: none; cursor: pointer; display: flex; justify-content: center; }
.sl-more summary::-webkit-details-marker { display: none; }
.sl-more summary span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 99px; background: var(--bg); font-weight: 700; font-size: 13.5px; color: var(--rose); transition: background .2s; }
.sl-more summary:hover span { background: var(--rose-mist); }
.sl-more summary .ico { width: 16px; height: 16px; transition: transform .3s var(--spring); }
.sl-more[open] summary .ico { transform: rotate(180deg); }
.sl-more[open] > .sl-group { margin-top: 18px; animation: paneIn .5s var(--spring) both; }
@media (max-width: 640px) {
  .spec { grid-template-columns: 38px 1fr; gap: 10px; }
  .sp-tube .mt-svg { width: 24px; }
  .sp-code { display: none; }
  .sl-days { padding-inline-start: 12px; }
  .spec::before { inset-inline-start: -19px; }
}

/* ---- Welcome ---- */
.wl-card { padding: 22px 30px 18px; min-width: 300px; position: relative; overflow: hidden; }
.wl-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 140px; background: radial-gradient(80% 100% at 50% 0%, #fbe6ed, transparent 70%); }
.wl-card > * { position: relative; }
.wl-brand { display: flex; align-items: center; gap: 8px; font: 700 14px var(--display); color: var(--rose); margin-bottom: 8px; opacity: 0; animation: cineRise .5s var(--spring) .1s forwards; }
.wl-brand .logo { width: 28px; height: 28px; border-radius: 9px; }
.wl-brand .logo svg { width: 18px; height: 18px; }
.wl-hi { color: var(--muted); font-weight: 600; margin-top: 10px; opacity: 0; animation: cineRise .5s var(--spring) .55s forwards; }
.wl-card .wl-name { font: 800 30px/1.1 var(--display); background: var(--grad-rose); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; animation: cineRise .6s var(--spring) .7s forwards; }
.wl-card .wl-sub { color: var(--ink-2); opacity: 0; animation: cineRise .5s var(--spring) .9s forwards; }
.wl-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.wc { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 7px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--bg); opacity: 0; animation: popIn .5s var(--spring) forwards; }
.wc:nth-child(1) { animation-delay: 1.1s; } .wc:nth-child(2) { animation-delay: 1.25s; } .wc:nth-child(3) { animation-delay: 1.4s; }
.wc .ico { width: 14px; height: 14px; } .wc.lav { color: #6a4fc0; background: var(--lav-soft); } .wc.peach { color: var(--peach); background: var(--peach-soft); } .wc.mint { color: var(--mint); background: var(--mint-soft); }
.wl-timer { display: block; width: 100%; height: 3px; margin-top: 16px; border-radius: 99px; background: #f3e7ec; overflow: hidden; }
.wl-timer i { display: block; height: 100%; background: var(--grad-rose); transform-origin: left; animation: barFill 4.2s linear forwards; transform: scaleX(0); }
[dir="rtl"] .wl-timer i { transform-origin: right; }
.cine-brand { display: flex; align-items: center; gap: 8px; font: 700 14px var(--display); color: var(--rose); margin-bottom: 4px; opacity: 0; animation: cineRise .5s var(--spring) .15s forwards; }
.cine-brand .logo { width: 28px; height: 28px; border-radius: 9px; }
.cine-brand .logo svg { width: 18px; height: 18px; }

/* reaction: one tap auto-play */
.rx-form.playing .rx-btn { pointer-events: none; }
.rx-form.playing .rx-dots i { animation: none; }

/* make the logo + name always visible on phones */
@media (max-width: 900px) { .appbar .brand-text strong { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  html.vt-arrive::after { display: none; }
}
/* month rack layout (v9.1) */
.mr-week { display: flex; align-items: flex-end; gap: 8px; position: relative; }
.mr-week .mr-tubes { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0 10px; position: relative; z-index: 1; }
.mr-week .mr-shelf { position: absolute; z-index: 0; bottom: 13px; inset-inline-start: 0; inset-inline-end: 54px; height: 12px; margin: 0; }
.mr-week .mr-wsum { width: 46px; flex: none; margin-bottom: 12px; }
.mr-head .mr-tubes span { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--faint); }
.mrack { gap: 18px; }
.mt-svg { width: min(36px, 100%); }
.spec .tl-scale { display: none; }
.sp-t bdi { white-space: nowrap; }
.mt-star { inset-inline-end: auto; left: calc(50% + 6px); top: -8px; }
.month-hero { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "vial body" "vial facts"; column-gap: 28px; row-gap: 4px; align-items: center; }
.mh-vial { grid-area: vial; } .mh-body { grid-area: body; } .month-hero .mh-facts { grid-area: facts; margin-top: 4px; }
.mh-days-fix { display: none; }
@media (max-width: 640px) {
  .month-hero { grid-template-areas: "vial body" "facts facts"; column-gap: 14px; row-gap: 12px; }
  .month-hero .mh-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .month-hero .mh-facts > div { padding: 9px 10px; min-width: 0; }
  .mh-facts strong { font-size: 15px; white-space: nowrap; }
  .mh-facts small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mh-top { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   v10 · Login arcade, sound toggle, coach marks
   ========================================================================== */
body[data-page="login"] .playground, body[data-page="login"] .pop-counter { display: none; }
.arcade { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; padding: 18px; }
.arc-top { position: absolute; z-index: 5; top: 30px; left: 34px; right: 34px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.arc-top > * { pointer-events: auto; }
.arc-top .brand-text strong { font-size: 22px; }
.arc-tools { display: flex; gap: 8px; }
.arc-tools .icon-btn { background: rgba(255,255,255,.8); backdrop-filter: blur(8px); }
[data-sound-toggle].off .ico { opacity: .35; }
[data-sound-toggle].off { position: relative; }
.icon-btn[data-sound-toggle].off::after { content: ""; position: absolute; width: 22px; height: 2px; background: var(--rose); transform: rotate(-45deg); border-radius: 2px; }

/* the game dish */
.arc-game { position: relative; overflow: hidden; border-radius: 40px; min-height: calc(100vh - 36px); background: radial-gradient(70% 60% at 50% 55%, #ffffff 0%, #fdf3f6 45%, #f6dde7 100%); box-shadow: inset 0 0 0 1px rgba(200, 144, 168, .2), inset 0 -40px 80px rgba(240, 167, 193, .25); touch-action: manipulation; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.arc-dish { position: absolute; left: 50%; top: 56%; width: min(78%, 620px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.9) 0%, rgba(253, 243, 246, .6) 62%, rgba(240, 200, 215, .35) 70%, transparent 71%); box-shadow: 0 0 0 2px rgba(220, 180, 196, .35), 0 40px 80px -40px rgba(75, 37, 80, .35); animation: spinSlow 80s linear infinite; }
.arc-dish::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 2px dashed rgba(220, 180, 196, .45); }
.arc-dish::after { content: ""; position: absolute; left: 14%; top: 10%; width: 30%; height: 14%; border-radius: 50%; background: rgba(255,255,255,.8); filter: blur(4px); transform: rotate(-30deg); }
.arc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.arc-hud { position: absolute; z-index: 3; top: 86px; left: 26px; right: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; pointer-events: none; }
.hud-title { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.85); font: 700 14px var(--display); color: var(--ink); box-shadow: var(--sh-1); }
.hud-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint-2); box-shadow: 0 0 0 4px rgba(67, 196, 156, .2); animation: handPulse 1.4s ease-in-out infinite; }
.hud-stats { display: flex; gap: 8px; margin-inline-start: auto; }
.hud-stats > div { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 6px 12px; border-radius: 16px; background: rgba(255,255,255,.85); box-shadow: var(--sh-1); }
.hud-stats small { font-size: 11px; color: var(--muted); font-weight: 600; }
.hud-stats strong { font: 800 22px/1.1 var(--display); color: var(--rose); }
.hud-stats .hud-lv strong { color: #7357c9; }
.hud-stats > div.bump { animation: goPop .35s var(--spring); }
.hud-meter { flex-basis: 100%; height: 6px; border-radius: 99px; background: rgba(255,255,255,.7); overflow: hidden; }
.hud-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #f0a7c1, #c8406f, #9b83e0); transition: width .4s var(--spring); }
.arc-hint { position: absolute; z-index: 3; left: 50%; bottom: 34px; transform: translateX(-50%); padding: 10px 18px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; box-shadow: var(--sh-3); animation: hintBob 2.4s ease-in-out infinite; transition: opacity .4s, transform .4s; pointer-events: none; }
.arc-hint::before { content: "👆"; margin-inline-end: 8px; }
.arc-hint.gone { opacity: 0; transform: translate(-50%, 20px); }
@keyframes hintBob { 50% { transform: translate(-50%, -5px); } }

/* the lab pass */
.pass-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px 26px; }
.pass { position: relative; width: 100%; max-width: 420px; padding: 0 0 22px; border-radius: 30px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(75, 37, 80, .45); animation: passIn .8s var(--spring) .2s both; }
@keyframes passIn { from { opacity: 0; transform: translateY(40px) rotate(3deg) scale(.95); } }
.pass > *:not(.pass-band):not(.pass-laser):not(.pass-stamp) { margin-left: 22px; margin-right: 22px; }
.pass-band { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px; background: var(--grad-rose); color: #fff; font: 800 12px var(--display); letter-spacing: .3em; }
.pass-bars { height: 14px; width: 90px; fill: rgba(255,255,255,.85); }
.pass-id { display: flex; align-items: center; gap: 14px; margin-top: 18px !important; margin-bottom: 14px !important; }
.pass-photo { position: relative; width: 72px; height: 72px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f6eefe, #fbe6ed); font: 800 24px var(--display); color: var(--rose); transition: background .4s; }
.pass.named .pass-photo { background: var(--grad-rose); color: #fff; }
.pass-photo span { animation: popIn .4s var(--spring); }
.pp-ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); animation: spinSlow 12s linear infinite; overflow: visible; }
.pp-ring circle { fill: none; stroke: #f0a7c1; stroke-width: 2.5; stroke-dasharray: 5 7; stroke-linecap: round; }
.pass.ready .pp-ring circle { stroke: var(--mint-2); }
.pass-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pass-who small { color: var(--muted); font-size: 12px; }
.pass-who strong { font: 800 21px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-code { align-self: flex-start; font: 600 11px var(--display); letter-spacing: .12em; color: #a46b8f; background: #fbe6ed; padding: 2px 8px; border-radius: 6px; }
.pass-flask { width: 56px; flex: none; }
.pass-flask svg { width: 100%; display: block; overflow: visible; }
.pf-glass { fill: rgba(255,255,255,.4); stroke: #d4bcc7; stroke-width: 2.4; stroke-linejoin: round; }
.pf-liq { transform: translateY(72px); transition: transform .5s var(--spring); }
.pf-liq .w1 { fill: url(#gLiqRose); animation: waveX20 1.6s linear infinite; }
.pf-liq .w2 { fill: #f7c2d4; animation: waveX20 2.4s linear infinite reverse; }
@keyframes waveX20 { to { transform: translateX(20px); } }
.pass.ready .pf-liq .w1 { fill: url(#gLiqMint); } .pass.ready .pf-liq .w2 { fill: #c3f0e0; }
.pf-drop { fill: #e0628f; }
.pass.ready .pf-drop { fill: #43c49c; }
.pfield { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); position: relative; }
.pfield input { border-radius: 16px; min-height: 50px; font-size: 16px; }
.pfield input:focus { box-shadow: 0 0 0 4px rgba(240, 167, 193, .35); border-color: var(--rose-2); }
.pw-bubbles { position: absolute; bottom: 14px; inset-inline-end: 14px; display: flex; gap: 3px; pointer-events: none; }
.pw-bubbles i { width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #f29bba 60%, #c8406f); animation: popIn .35s var(--spring) both; }
.scan-btn { position: relative; overflow: hidden; width: calc(100% - 44px); display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 8px 18px 8px 8px; border: 0; border-radius: 22px; cursor: pointer; color: #fff; font: inherit; text-align: start; background: linear-gradient(135deg, #2e1a33, #4b2550 60%, #6b2f63); box-shadow: 0 18px 30px -16px rgba(75, 37, 80, .8); transition: transform .3s var(--spring), box-shadow .3s; }
[dir="rtl"] .scan-btn { padding: 8px 8px 8px 18px; }
.scan-btn:hover { transform: translateY(-2px); }
.scan-btn:active { transform: scale(.98); }
.scan-ico { width: 54px; height: 54px; flex: none; border-radius: 17px; display: grid; place-items: center; background: var(--grad-rose); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.scan-ico svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; }
.pass.ready .scan-ico { background: var(--grad-mint); animation: readyPulse 1.6s ease-in-out infinite; }
@keyframes readyPulse { 50% { box-shadow: 0 0 0 8px rgba(67, 196, 156, .25); } }
.scan-txt { display: flex; flex-direction: column; line-height: 1.25; }
.scan-txt strong { font: 700 19px var(--display); }
.scan-txt small { opacity: .7; font-size: 13px; }
.scan-line { position: absolute; top: 0; bottom: 0; width: 30%; left: -40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent); animation: sheen 3s ease-in-out infinite; }
.pass-laser { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #43c49c; box-shadow: 0 0 18px 4px rgba(67, 196, 156, .7); opacity: 0; pointer-events: none; }
.pass.scanning .pass-laser { animation: laser .75s cubic-bezier(.6, 0, .4, 1) forwards; }
@keyframes laser { 0% { opacity: 1; top: 0; } 90% { opacity: 1; } 100% { opacity: 0; top: 100%; } }
.pass.scanning .scan-ico svg { animation: icoWiggle .5s ease infinite; }
.pass-stamp { position: absolute; top: 42%; left: 50%; display: flex; align-items: center; gap: 8px; padding: 10px 18px; border: 4px solid #1f9b77; border-radius: 16px; color: #1f9b77; font: 800 26px var(--display); letter-spacing: .1em; background: rgba(255,255,255,.92); transform: translate(-50%, -50%) scale(2.5) rotate(-30deg); opacity: 0; pointer-events: none; }
.pass-stamp .ico { width: 28px; height: 28px; stroke-width: 3; }
.pass.stamped .pass-stamp { animation: passStamp .35s cubic-bezier(.5, 0, .75, 0) forwards; }
@keyframes passStamp { to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-10deg); } }
.pass-error { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 14px; border-radius: 14px; background: var(--rose-soft); color: var(--rose); font-weight: 600; font-size: 14px; }
.pass-error .ico { width: 18px; height: 18px; flex: none; }
.arcade.denied .pass { animation: passIn .8s var(--spring) .2s both, deny .5s ease 1s; border-color: #f3b3c9; }
@keyframes deny { 15%, 55% { transform: translateX(-10px) rotate(-1deg); } 35%, 75% { transform: translateX(10px) rotate(1deg); } }
.pass-foot { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.pass-foot .ico { width: 15px; height: 15px; color: var(--mint); }
@media (max-width: 900px) {
  .arcade { grid-template-columns: 1fr; padding: 10px; }
  .arc-top { top: 20px; left: 22px; right: 22px; }
  .arc-game { min-height: 46vh; border-radius: 30px; }
  .arc-hud { top: 70px; left: 14px; right: 14px; gap: 8px; }
  .hud-title { font-size: 12.5px; padding: 6px 10px; }
  .hud-stats > div { min-width: 52px; padding: 4px 8px; }
  .hud-stats strong { font-size: 18px; }
  .arc-hint { bottom: 20px; font-size: 12.5px; }
  .pass-wrap { margin-top: -34px; padding: 0 6px 24px; position: relative; z-index: 4; }
}

/* menu sound switch */
.mp-switch { margin-inline-start: auto; width: 34px; height: 20px; border-radius: 99px; background: var(--mint-2); position: relative; transition: background .25s; }
.mp-switch::after { content: ""; position: absolute; top: 3px; inset-inline-end: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: all .3s var(--spring); }
[data-sound-toggle].off .mp-switch { background: #e2d3cf; }
[data-sound-toggle].off .mp-switch::after { inset-inline-end: 17px; }
.mp-item.off::after { display: none; }

/* coach marks */
.coach-spot { position: relative; z-index: 60; box-shadow: 0 0 0 4px rgba(240, 167, 193, .6), 0 0 0 9999px rgba(34, 23, 38, .35) !important; border-radius: 30px; transition: box-shadow .4s; }
.coach { position: absolute; z-index: 61; max-width: 300px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh-3); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .3s, transform .4s var(--spring); }
.coach.show { opacity: 1; transform: none; }
.coach::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; background: var(--surface); transform: translateX(-50%) rotate(45deg); }
.coach p { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.pw-bubbles { top: 2px; bottom: auto; inset-inline-end: 4px; }

/* ==========================================================================
   v11 · Lens splash, quest map, my lab bench, streak chip
   ========================================================================== */
@property --hole { syntax: '<length>'; inherits: false; initial-value: 0px; }
html.splash-on .splash { justify-content: center; padding: 24px; background: radial-gradient(60% 55% at 50% 45%, #fff 0%, #fdf1f5 55%, #f5d9e4 100%); animation: splashOut .6s var(--ease) 4.6s forwards; -webkit-mask-image: radial-gradient(circle at 50% 42%, transparent var(--hole), #000 calc(var(--hole) + 1px)); mask-image: radial-gradient(circle at 50% 42%, transparent var(--hole), #000 calc(var(--hole) + 1px)); }
html.splash-out .splash { animation: lensOpen .85s cubic-bezier(.7, 0, .3, 1) forwards; }
@keyframes lensOpen { 0% { --hole: 0px; } 100% { --hole: 150vmax; visibility: hidden; } }
.splash .sp-stage, .splash .sp-load, .splash .sp-name { display: none; }
.lens-stage { position: relative; width: min(260px, 64vw); aspect-ratio: 1; display: grid; place-items: center; margin-top: -6vh; }
.lens { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #fff 0%, #fdf3f6 60%, #f6dbe6 100%); box-shadow: inset 0 0 0 6px #fff, inset 0 0 40px rgba(224, 98, 143, .25), 0 30px 60px -30px rgba(75, 37, 80, .45); transform: scale(0); animation: lensIn .8s cubic-bezier(.3, 1.4, .5, 1) .15s forwards; }
@keyframes lensIn { to { transform: scale(1); } }
.lens-art { width: 66%; overflow: visible; }
.lens-art * { transform-box: fill-box; }
.lens-glare { position: absolute; left: 14%; top: 10%; width: 36%; height: 18%; border-radius: 50%; background: rgba(255,255,255,.85); filter: blur(3px); transform: rotate(-30deg); }
.lens-ring { position: absolute; inset: -14px; border-radius: 50%; border: 3px solid rgba(224, 98, 143, .55); transform: scale(.2); opacity: 0; animation: ringIn .9s cubic-bezier(.3, 1.2, .5, 1) .05s forwards; }
.lens-ring.r2 { inset: -30px; border-width: 1.5px; border-color: rgba(155, 131, 224, .45); animation-delay: .25s; }
@keyframes ringIn { to { transform: scale(1); opacity: 1; } }
.lens-ticks { position: absolute; inset: -22px; border-radius: 50%; background: repeating-conic-gradient(rgba(200, 64, 111, .45) 0 1.2deg, transparent 1.2deg 15deg); -webkit-mask: radial-gradient(circle, transparent calc(50% - 7px), #000 calc(50% - 6px), #000 50%, transparent calc(50% + 1px)); mask: radial-gradient(circle, transparent calc(50% - 7px), #000 calc(50% - 6px), #000 50%, transparent calc(50% + 1px)); opacity: 0; animation: fadeIn .5s ease .7s forwards, spinSlow 24s linear .7s infinite; }
.splash .sp-flask { animation-delay: .7s; }
.splash .sp-liq { animation-delay: 1.4s; }
.splash .sp-heart { animation-delay: 2.05s, 2.8s; }
.splash .sp-bub circle { animation-delay: 2.3s; }
.sp-word { display: flex; gap: 1px; margin-top: 26px; font: 800 clamp(46px, 10vw, 74px)/1 var(--display); letter-spacing: -.01em; }
.sp-word .sl { display: inline-block; background: var(--grad-rose); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transform: translateY(-60px) scale(.6); animation: letterDrop .7s cubic-bezier(.3, 1.5, .5, 1) forwards; }
.sp-word .l0 { animation-delay: 1.9s; } .sp-word .l1 { animation-delay: 1.98s; } .sp-word .l2 { animation-delay: 2.06s; } .sp-word .l3 { animation-delay: 2.14s; } .sp-word .l4 { animation-delay: 2.22s; }
.sp-word .l5 { animation-delay: 2.3s; } .sp-word .l6 { animation-delay: 2.38s; } .sp-word .l7 { animation-delay: 2.46s; } .sp-word .l8 { animation-delay: 2.54s; } .sp-word .l9 { animation-delay: 2.62s; }
@keyframes letterDrop { 60% { opacity: 1; transform: translateY(6px) scale(1.06, .92); } 100% { opacity: 1; transform: none; } }
.splash .sp-tag { margin-top: 10px; font: 600 15px var(--display); color: var(--muted); letter-spacing: .02em; animation: cineRise .6s var(--spring) 2.7s forwards; }
html.splash-out .lens-stage { animation: lensPunch .85s cubic-bezier(.7, 0, .3, 1) forwards; }
@keyframes lensPunch { 30% { transform: scale(.92); } 100% { transform: scale(1.4); opacity: 0; } }
/* ---- Month quest map ---- */
.q-stats { display: flex; gap: 10px; flex-wrap: wrap; margin: -4px 0 10px; }
.qsb { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 16px; background: var(--bg); }
.qsb .ico { width: 20px; height: 20px; }
.qsb strong { font: 800 22px var(--display); }
.qsb small { color: var(--muted); font-size: 12.5px; }
.qsb.gold { background: linear-gradient(135deg, #fff6df, #fdf1e4); } .qsb.gold .ico, .qsb.gold strong { color: #c98a1e; }
.qsb.rose .ico, .qsb.rose strong { color: var(--rose); }
.qsb.lav { background: var(--lav-soft); } .qsb.lav .ico, .qsb.lav strong { color: #6a4fc0; }
.quest { position: relative; border-radius: 26px; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #fff8fb 0%, #fdf0f5 60%, #f8e6ee 100%); box-shadow: inset 0 0 0 1px rgba(220, 180, 196, .3); }
.quest::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(200, 64, 111, .08) 1.5px, transparent 1.6px); background-size: 22px 22px; pointer-events: none; }
.q-map { position: relative; width: 100%; height: auto; display: block; overflow: visible; }
.q-map * { transform-box: fill-box; }
.q-trail { fill: none; stroke: #ecd6df; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.q-done { fill: none; stroke: #e0628f; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 8px rgba(200, 64, 111, .25)); }
.qn { cursor: pointer; transform-origin: center; animation: qnIn .5s var(--spring) both; }
@keyframes qnIn { from { opacity: 0; transform: scale(.3); } }
.qn .qn-bg { fill: #fff; stroke: #e3cdd6; stroke-width: 3; transition: transform .3s var(--spring); }
.qn text { font: 800 15px var(--display); fill: var(--ink-2); pointer-events: none; }
.qn.future .qn-bg { fill: rgba(255,255,255,.6); stroke-dasharray: 4 4; }
.qn.future text { fill: #c4b2ba; }
.qn.rest .qn-bg { fill: #f6eff2; stroke: #eadde3; }
.qn.rest text { fill: #b9a6af; }
.qn-moon { fill: #c9b8f5; }
.qn-fill { fill: none; stroke: url(#gSeg); stroke-width: 5; stroke-linecap: round; }
.qn.s3 .qn-bg { fill: url(#gLiqMint); stroke: #fff; }
.qn.s3 text { fill: #fff; }
.qn.s3 .qn-fill { stroke: #fff; opacity: .7; }
.qn.today .qn-bg { stroke: var(--rose); stroke-width: 4; }
.qn.today { animation: qnIn .5s var(--spring) both, todayPulse 1.8s ease-in-out 1s infinite; }
@keyframes todayPulse { 50% { transform: scale(1.08); } }
.qn:hover .qn-bg { stroke: var(--rose-2); }
.qs { fill: #eadde3; stroke: #fff; stroke-width: 1.2; }
.qs.on { fill: #f6c544; filter: drop-shadow(0 2px 2px rgba(201, 138, 30, .35)); animation: starPop .5s var(--spring) both; animation-delay: inherit; }
@keyframes starPop { from { transform: scale(0) rotate(-90deg); } }
.qc .qc-glow { fill: rgba(246, 210, 122, 0); }
.qc .qc-box { fill: #e9d5c4; stroke: #c49a76; stroke-width: 2; }
.qc .qc-lid { fill: #f0dfd0; stroke: #c49a76; stroke-width: 2; transform-origin: 0 100%; }
.qc .qc-lock { fill: #c49a76; }
.qc.open .qc-box { fill: url(#gCap); }
.qc.open .qc-lid { fill: #f6d27a; transform: rotate(-35deg) translate(-4px, -6px); }
.qc.open .qc-glow { fill: rgba(246, 210, 122, .35); animation: glowPulse 2s ease-in-out infinite; transform-origin: center; }
.qc.open .qc-lock { fill: #fff; }
.qc:not(.open) { opacity: .75; }
.qt circle { fill: #f4ebef; stroke: #e3cdd6; stroke-width: 2; }
.qt path { fill: none; stroke: #c9b4bd; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.qt.on circle { fill: url(#gLiqGold); stroke: #fff; } .qt.on path { stroke: #fff; }
.q-me { pointer-events: none; }
.q-pin { fill: url(#gRing); stroke: #fff; stroke-width: 3; filter: drop-shadow(0 6px 8px rgba(75, 37, 80, .35)); }
.q-me text { font: 800 12px var(--display); fill: #fff; }
.quest.ran .q-me { animation: pinBob 1.6s ease-in-out infinite; transform-box: fill-box; }
@keyframes pinBob { 50% { translate: 0 -5px; } }
.mrack, .mr-chips { display: none; }
.q-map .qn-fill { transform-box: view-box; }
@keyframes starPop { from { scale: 0; rotate: -90deg; } }
/* ---- My lab bench ---- */
.lab-card { overflow: hidden; }
.lab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.lab-head .eyebrow { margin-bottom: 2px; }
.lab-xp { flex: 1; min-width: 240px; max-width: 420px; display: flex; flex-direction: column; gap: 6px; }
.bench-wrap { border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #fff8fb, #fbeef3); box-shadow: inset 0 0 0 1px rgba(220, 180, 196, .3); }
.bench { width: 100%; height: auto; display: block; overflow: visible; }
.bench * { transform-box: fill-box; }
.bench .wall { fill: url(#benchWall); fill: #fdf3f7; }
.bench .win-bg { fill: #eaf6fb; stroke: #fff; stroke-width: 6; }
.bench .shelf { fill: #e9d7d0; }
.bench .counter { fill: #ead9d2; } .bench .counter-top { fill: #f6ebe6; }
.li { cursor: help; transition: transform .35s var(--spring); }
.li:hover { transform: translateY(-4px); }
.li .g { fill: rgba(255,255,255,.55); stroke: #cdb3be; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.li .m { fill: #d9c6ce; stroke: #b99fab; stroke-width: 2; }
.li .m2 { fill: #c8406f; stroke: #9c3a7b; stroke-width: 2; }
.li .liq.rose { fill: #f29bba; } .li .liq.mint { fill: #43c49c; } .li .liq.lav { fill: #a78bfa; } .li .liq.gold { fill: #f2c46d; }
.li .bub { fill: #fff; animation: bubUp 2s ease-in infinite; } .li .bub.b2 { animation-delay: .8s; }
.li .drop { fill: #e0628f; animation: drip 2.4s ease-in infinite; }
@keyframes drip { 0%, 50% { transform: translateY(0); opacity: 1; } 90% { transform: translateY(30px); opacity: 0; } 100% { opacity: 0; } }
.li .spin { transform-origin: center; animation: spinSlow 1.2s linear infinite; }
.li .led { fill: #43c49c; animation: handPulse 1.4s ease-in-out infinite; }
.li .light { fill: #f6d27a; filter: drop-shadow(0 0 6px #f6d27a); }
.li .glow { fill: rgba(246, 210, 122, .35); animation: glowPulse 2.4s ease-in-out infinite; transform-origin: center; }
.li .win { fill: #eef9f5; stroke: #b99fab; stroke-width: 2; }
.li .dish { fill: #c3f0e0; stroke: #43c49c; stroke-width: 1.5; }
.li .dna1 { fill: none; stroke: #e0628f; stroke-width: 3; stroke-linecap: round; } .li .dna2 { fill: none; stroke: #9b83e0; stroke-width: 3; stroke-linecap: round; }
.li.on .dna1, .li.on .dna2 { animation: dnaWave 3s ease-in-out infinite; transform-origin: center; }
@keyframes dnaWave { 50% { transform: scaleX(-1); } }
.li .gold-f { fill: url(#gLiqGold); stroke: #c49a76; stroke-width: 2; }
.li .spark { fill: #f6d27a; transform-origin: center; animation: twinkle 1.8s ease-in-out infinite; }
.li .frame { fill: #fff; stroke: #e7c3a3; stroke-width: 4; }
.li .crown { fill: #f6d27a; stroke: #d9a74a; stroke-width: 2; stroke-linejoin: round; } .li .gem { fill: #e0628f; }
.li.off > *:not(.lock) { fill: rgba(255,255,255,.35) !important; stroke: #d8c5cd !important; stroke-dasharray: 4 4; filter: none !important; animation: none !important; opacity: .8; }
.li.off .lock circle { fill: #fff; stroke: #e3cdd6; stroke-width: 2; }
.li.off .lock text { font: 800 12px var(--display); fill: var(--rose); }
.li.newest { animation: newest 2.4s ease-in-out infinite; }
@keyframes newest { 50% { filter: drop-shadow(0 0 10px rgba(240, 167, 193, .9)); } }
.li.on { animation: liIn .6s var(--spring) both; }
@keyframes liIn { from { opacity: 0; transform: translateY(-30px) scale(.6); } }
.bench-next { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; color: var(--rose); }
.bench-next .ico { width: 18px; height: 18px; }
/* streak chip */
.streak-chip { display: inline-flex; align-items: center; gap: 3px; height: 36px; padding: 0 10px 0 8px; border-radius: 99px; background: linear-gradient(135deg, #fff1e6, #fde3d3); color: #e06a2a; font: 800 15px var(--display); box-shadow: inset 0 0 0 1px rgba(226, 132, 86, .25); transition: transform .3s var(--spring); }
.streak-chip:hover { transform: scale(1.08); }
.streak-chip .ico { width: 18px; height: 18px; animation: flameFlick 1.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes flameFlick { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.12, .94) rotate(-4deg); } 60% { transform: scale(.95, 1.08) rotate(3deg); } }

/* ==========================================================================
   v12 · Final: calm full-screen sign-in, month chart, speed, polish
   ========================================================================== */
.playground, .pop-counter { display: none !important; }
.arcade { display: block; position: relative; min-height: 100vh; padding: 0; grid-template-columns: none; }
.arc-game { position: fixed; inset: 0; z-index: 0; border-radius: 0; min-height: 0; background: radial-gradient(70% 60% at 50% 50%, #ffffff 0%, #fdf3f6 45%, #f6dde7 100%); box-shadow: none; }
.arc-dish { top: 50%; width: min(120vmin, 1000px); }
.arc-top { position: fixed; z-index: 6; top: 16px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; }
.arc-top > * { pointer-events: auto; }
.arc-top .brand { padding: 6px 14px 6px 6px; border-radius: 99px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--sh-1); }
.arc-top .logo { width: 36px; height: 36px; border-radius: 12px; }
.arc-top .logo svg { width: 22px; height: 22px; }
.arc-top .brand-text strong { font-size: 19px; }
.arc-score { display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--sh-1); position: relative; overflow: hidden; direction: ltr; }
.as-item { display: inline-flex; align-items: center; gap: 4px; font: 800 17px var(--display); color: var(--rose); }
.as-item .ico { width: 16px; height: 16px; }
.as-item.best { color: #c98a1e; }
.as-sep { width: 1px; height: 18px; background: var(--line-2); }
.as-lv { font: 700 12.5px var(--display); color: #6a4fc0; background: var(--lav-soft); padding: 2px 8px; border-radius: 99px; }
.as-meter { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.as-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f0a7c1, #c8406f, #9b83e0); transition: width .4s var(--spring); }
.arc-score .bump, .as-item.bump { animation: goPop .35s var(--spring); }
.arc-tools { display: flex; gap: 8px; }
.arc-tools .icon-btn { background: rgba(255,255,255,.85); backdrop-filter: blur(10px); box-shadow: var(--sh-1); border: 0; }
.arc-tools .lang { font-family: var(--display); }
.arc-hud, .arc-hint { display: none; }
.pass-wrap { position: relative; z-index: 4; min-height: 100vh; display: grid; place-items: center; padding: 86px 16px 40px; margin: 0; pointer-events: none; }
.pass { pointer-events: auto; max-width: 380px; padding: 26px 24px 18px; border-radius: 30px; background: rgba(255,255,255,.9); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 30px 70px -30px rgba(75, 37, 80, .45); }
.pass > * { margin-left: 0 !important; margin-right: 0 !important; }
.pass-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin-bottom: 18px; }
.pass-head .pass-flask { width: 64px; margin-bottom: 4px; }
.pass-head h1 { font-size: 26px; }
.pass-head .muted { font-size: 14.5px; }
.pf-heart { fill: #fff; opacity: 0; transition: opacity .3s; }
.pass.ready .pf-heart { opacity: 1; animation: heartBeat 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.scan-btn { width: 100%; justify-content: center; gap: 12px; padding: 8px 20px 8px 8px; margin-top: 6px; }
[dir="rtl"] .scan-btn { padding: 8px 8px 8px 20px; }
.scan-btn .scan-ico { width: 46px; height: 46px; border-radius: 15px; }
.scan-btn .scan-ico svg { width: 26px; height: 26px; }
.scan-btn strong { font: 700 18px var(--display); margin-inline-end: auto; }
.pass.scanning .pass-laser { animation-duration: .45s; }
.pass-stamp { top: 40%; width: 84px; height: 84px; padding: 0; border-radius: 50%; justify-content: center; border-width: 4px; font-size: 0; }
.pass-stamp .ico { width: 42px; height: 42px; stroke-width: 3.2; }
.pass-hint { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }
.pass-foot { display: none; }
@media (max-width: 640px) {
  .arc-top { top: 10px; left: 10px; right: 10px; }
  .arc-top .brand-text { display: none; }
  .arc-top .brand { padding: 5px; }
  .arc-score { padding: 6px 10px; gap: 7px; }
  .as-item { font-size: 15px; }
  .pass-wrap { align-items: end; padding: 80px 12px 20px; }
  .pass { padding: 22px 18px 14px; }
}
/* ---- Month chart ---- */
.quest, .q-stats { display: none; }
.mb-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: -4px 0 16px; }
.mb-sum > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.mb-sum small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-sum strong { font: 800 22px var(--display); font-variant-numeric: tabular-nums; }
.mb-sum .mint { background: var(--mint-soft); } .mb-sum .mint strong { color: var(--mint); }
.mb-sum .gold { background: var(--gold-soft); } .mb-sum .gold strong { color: #b07a3c; }
.mbars-scroll { overflow-x: auto; overflow-y: visible; padding: 6px 2px 4px; scrollbar-width: thin; }
.mbars { position: relative; display: grid; grid-template-columns: repeat(31, minmax(16px, 1fr)); gap: 6px; height: 230px; min-width: 620px; direction: ltr; }
.mb-goal { position: absolute; left: 0; right: 0; top: 30%; height: 0; border-top: 2px dashed rgba(200, 64, 111, .45); z-index: 2; pointer-events: none; }
.mb-goal em { position: absolute; inset-inline-end: 0; top: -20px; font: 700 11px var(--display); font-style: normal; color: var(--rose); background: #fff; padding: 1px 6px; border-radius: 99px; box-shadow: var(--sh-1); }
.mbar { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); }
.mb-track { position: relative; flex: none; width: 100%; max-width: 26px; height: 78%; border-radius: 99px; background: #f6eef1; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(220, 190, 200, .5); transition: transform .3s var(--spring); }
.mbar:hover .mb-track { transform: scaleX(1.15); }
.mb-liq { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 99px; background: linear-gradient(180deg, #f6a9c3, #c8406f); transition: height .9s cubic-bezier(.3, 1.2, .5, 1); }
.mbar.hit .mb-liq { background: linear-gradient(180deg, #8be3c6, #1f9b77); }
.mbar.live .mb-liq { background: linear-gradient(180deg, #8be3c6, #1f9b77); animation: breathe 2s ease-in-out infinite; }
.mb-liq::after { content: ""; position: absolute; left: 22%; top: 6px; bottom: 6px; width: 18%; border-radius: 99px; background: rgba(255,255,255,.45); }
.mb-star { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--mint); z-index: 1; }
.mb-star .ico { width: 11px; height: 11px; stroke-width: 3.5; }
.mb-d { font: 700 12px var(--display); color: var(--ink-2); }
.mb-w { font-size: 10.5px; color: var(--faint); margin-top: -4px; }
.mbar.future .mb-track { background: repeating-linear-gradient(-45deg, #faf4f6 0 4px, #f3e9ed 4px 8px); }
.mbar.future .mb-d { color: var(--faint); }
.mbar.fri .mb-w { color: var(--lav); }
.mbar.today .mb-d { color: #fff; background: var(--grad-rose); border-radius: 99px; padding: 0 6px; }
.mbar.today .mb-track { box-shadow: inset 0 0 0 2px var(--rose-2); }
@media (max-width: 640px) { .mb-sum strong { font-size: 18px; } .mb-sum > div { padding: 10px; } .mbars { height: 200px; } }
.table.compact { min-width: 680px; }
.table.compact td.mono { white-space: nowrap; }
.table-wrap { -webkit-overflow-scrolling: touch; border-radius: 14px; }
/* ---- Level road ---- */
.road-scroll { overflow-x: auto; padding: 6px 4px 2px; scrollbar-width: none; }
.road-scroll::-webkit-scrollbar { display: none; }
.lroad { position: relative; min-width: 660px; height: 150px; margin: 0 34px; }
.lr-rail, .lr-fill { position: absolute; top: 76px; height: 10px; border-radius: 99px; inset-inline-start: 0; }
.lr-rail { inset-inline-end: 0; background: #f1e3e9; }
.lr-fill { width: 0; background: linear-gradient(90deg, #8be3c6, #43c49c 40%, #e0628f 80%, #c8406f); transition: width 1.6s cubic-bezier(.3, 1, .4, 1) .2s; box-shadow: 0 4px 12px -4px rgba(200, 64, 111, .5); }
[dir="rtl"] .lr-fill { background: linear-gradient(270deg, #8be3c6, #43c49c 40%, #e0628f 80%, #c8406f); }
.lr-stops { list-style: none; margin: 0; padding: 0; }
.rs { position: absolute; top: 0; width: 86px; margin-inline-start: -43px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; animation: popIn .5s var(--spring) both; }
.rs-reward { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: #f6eef1; color: #c4b2ba; transition: transform .35s var(--spring); }
.rs-reward .ico { width: 20px; height: 20px; }
.rs:hover .rs-reward { transform: translateY(-4px) rotate(-6deg); }
.rs-dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--display); color: var(--faint); background: #fff; border: 2px dashed #e3cdd6; }
.rs-dot .ico { width: 15px; height: 15px; stroke-width: 3; }
.rs-name { font: 700 11px/1.25 var(--display); color: var(--faint); max-width: 84px; }
.rs.done .rs-reward { background: var(--mint-soft); color: var(--mint); }
.rs.done .rs-dot { border: 0; background: var(--grad-mint); color: #fff; }
.rs.done .rs-name { color: var(--mint); }
.rs.cur .rs-reward { background: var(--grad-rose); color: #fff; box-shadow: 0 8px 16px -8px rgba(200, 64, 111, .7); animation: medalSwing 3.5s ease-in-out infinite; }
.rs.cur .rs-dot { width: 46px; height: 46px; margin: -8px 0; border: 3px solid #fff; background: var(--grad-rose); box-shadow: 0 0 0 5px rgba(240, 167, 193, .4); animation: pp 1.8s ease-in-out infinite; overflow: hidden; }
.rs.cur .rs-dot .avatar { --s: 40px; box-shadow: none; }
@keyframes pp { 50% { box-shadow: 0 0 0 11px rgba(240, 167, 193, .15); } }
.rs.cur .rs-name { color: var(--rose); font-size: 12.5px; }
.road-card .lab-head { margin-bottom: 10px; }
.lab-card { display: none; }

/* ---- Month week strips of sample tubes ---- */
.mbars-scroll { display: none; }
.wstrips { display: flex; flex-direction: column; gap: 10px; }
.ws-row { display: grid; grid-template-columns: 78px 1fr 92px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 18px; background: var(--bg); animation: paneIn .5s var(--spring) both; }
.ws-row:nth-child(3) { animation-delay: .06s; } .ws-row:nth-child(4) { animation-delay: .12s; } .ws-row:nth-child(5) { animation-delay: .18s; } .ws-row:nth-child(6) { animation-delay: .24s; } .ws-row:nth-child(7) { animation-delay: .3s; }
.ws-head { background: none; padding-top: 0; padding-bottom: 0; animation: none; }
.ws-head .ws-days span { text-align: center; font: 700 11px var(--display); color: var(--faint); }
.ws-name { font: 700 12.5px var(--display); color: var(--muted); }
.ws-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wt { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink); }
.wt.pad { visibility: hidden; }
.wt-tube { position: relative; display: flex; flex-direction: column; align-items: center; transition: transform .3s var(--spring); }
.wt:hover .wt-tube { transform: translateY(-4px) rotate(-5deg); }
.wt-cap { width: 26px; height: 8px; border-radius: 3px; background: #eadde2; position: relative; z-index: 1; }
.wt.hit .wt-cap { background: linear-gradient(90deg, #f3d9c3, #c7966a, #e7c3a3); }
.wt.part .wt-cap { background: #f3c7d6; }
.wt-glass { position: relative; width: 20px; height: 54px; margin-top: -1px; border-radius: 0 0 10px 10px; overflow: hidden; background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1.5px #dccbd2; }
.wt-glass::after { content: ""; position: absolute; left: 4px; top: 6px; width: 3px; height: 34px; border-radius: 3px; background: rgba(255,255,255,.75); z-index: 1; }
.wt-liq { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, #f6a9c3, #c8406f); transition: height .9s cubic-bezier(.3, 1.2, .5, 1); }
.wt.hit .wt-liq { background: linear-gradient(180deg, #8be3c6, #1f9b77); }
.wt.live .wt-liq { background: linear-gradient(180deg, #8be3c6, #1f9b77); animation: breathe 2s ease-in-out infinite; }
.wt.future .wt-glass { box-shadow: inset 0 0 0 1.5px #ecdfe4; background: repeating-linear-gradient(-45deg, #fff 0 4px, #f8f1f4 4px 8px); }
.wt.future .wt-cap { background: #f3eaee; }
.wt.none .wt-glass { box-shadow: inset 0 0 0 1.5px #e5d6dc; }
.wt-ok { position: absolute; top: -6px; inset-inline-end: -8px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #fff; box-shadow: 0 0 0 2px #fff; z-index: 2; animation: okPop .5s var(--spring) .8s both; }
.wt-ok .ico { width: 10px; height: 10px; stroke-width: 3.5; }
.wt-d { font: 700 11.5px var(--display); color: var(--ink-2); min-width: 20px; text-align: center; border-radius: 99px; }
.wt.future .wt-d { color: var(--faint); }
.wt.today .wt-d { color: #fff; background: var(--grad-rose); padding: 0 5px; }
.wt.today .wt-glass { box-shadow: inset 0 0 0 2px var(--rose-2); }
.ws-tot { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; border-radius: 14px; background: #fff; }
.ws-tot b { font: 800 16px var(--display); color: var(--rose); font-variant-numeric: tabular-nums; }
.ws-tot small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.ws-tot .ico { width: 18px; height: 18px; color: #e9b44c; animation: crownBob 2.6s ease-in-out infinite; }
.ws-tot.win { background: linear-gradient(135deg, #fff6df, #fde9c9); }
.ws-tot.win b { color: #b07a3c; }
@media (max-width: 640px) {
  .ws-row { grid-template-columns: 1fr 64px; grid-template-areas: "name name" "days tot"; gap: 6px 8px; padding: 8px; }
  .ws-name { grid-area: name; } .ws-days { grid-area: days; gap: 3px; } .ws-tot { grid-area: tot; }
  .ws-head { grid-template-areas: "days tot"; } .ws-head .ws-name { display: none; }
  .wt-glass { width: 16px; height: 46px; } .wt-cap { width: 21px; }
}
.lr-rail, .lr-fill { top: 54px; }
.lroad { height: 128px; }
.rs-name { margin-top: 2px; }
@media (max-width: 640px) { .mb-sum strong { font-size: 15px; white-space: nowrap; } .mb-sum small { font-size: 11px; } }
.lroad { margin: 0 46px; }
/* one navigation: My day's views live inside the main bar */
.seg { display: none !important; }
.topnav a.sub .dico { width: 20px; height: 20px; }
.topnav a.sub + a:not(.sub) { margin-inline-start: 6px; }
.topnav a:not(.sub) + a.sub { margin-inline-start: 6px; }
@media (max-width: 900px) {
  .tabbar { flex-wrap: wrap; }
  .tb-sub { flex-basis: 100%; display: flex; gap: 4px; padding: 2px 2px 6px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .tb-sub a { flex: 1; flex-direction: row !important; justify-content: center; gap: 6px !important; padding: 7px 4px !important; font-size: 12px !important; border-radius: 14px; }
  .tb-sub a .dico { width: 18px !important; height: 18px !important; transform: none !important; }
  .tb-sub a.active { background: var(--grad-rose) !important; color: #fff; }
  .tb-ind { top: auto !important; bottom: 6px; height: 54px; }
  .main { padding-bottom: 170px; }
}
/* ---- Sign-in result: correct order, smooth hand-off ---- */
.pass.scanning .pass-laser { animation: laserLoop .52s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes laserLoop { 0% { opacity: 1; top: 0; } 92% { opacity: 1; } 100% { opacity: 0; top: 100%; } }
.pass.scanning .scan-btn { pointer-events: none; }
.pass.scanning .scan-ico { animation: readyPulse .8s ease-in-out infinite; }
.pass.denied-now { animation: deny .45s ease; border-color: #f3b3c9; }
.pass.denied-now .pass-laser { animation: laserRed .5s ease forwards; }
@keyframes laserRed { 0% { opacity: 1; top: 100%; background: #e0628f; box-shadow: 0 0 18px 4px rgba(224, 98, 143, .7); } 100% { opacity: 0; top: 0; background: #e0628f; } }
.pass.denied-now .scan-ico { background: linear-gradient(135deg, #f0a7c1, #c8406f); }
.pass-error.pop { animation: popIn .4s var(--spring); }
.pass.stamped .scan-ico { background: var(--grad-mint); }
.arcade.leaving .pass { animation: passOut .45s cubic-bezier(.6, 0, .4, 1) forwards; }
.arcade.leaving .arc-top { transition: opacity .3s; opacity: 0; }
.arcade.leaving .arc-game { transition: opacity .45s .1s, transform .6s; opacity: 0; transform: scale(1.08); }
@keyframes passOut { to { opacity: 0; transform: translateY(-16px) scale(1.04); filter: blur(2px); } }
/* arriving from sign-in: no lens, the page fades up gently and the welcome card leads */
html.from-login::view-transition-old(root), html.from-login::view-transition-new(root) { animation: none; }
html.from-login .shell { animation: fadeIn .45s ease both; }
html.from-login .main > * { animation-delay: .35s; }
html.from-login .scene.welcome { animation: fadeIn .3s ease .15s both; }
html.from-login .scene.welcome .scene-card { animation: popIn .55s var(--spring) .2s both; }
/* ---- Sign-out icon + sheet ---- */
.ab-out { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; border: 0; cursor: pointer; background: var(--rose-mist); color: var(--rose); transition: background .2s, transform .3s var(--spring); }
.ab-out .dico { width: 21px; height: 21px; }
.ab-out:hover { background: var(--rose-soft); transform: translateY(-2px); }
.ab-out:hover .dico .s { animation: outNudge .6s ease; }
@keyframes outNudge { 40% { transform: translateX(3px); } }
[dir="rtl"] .ab-out .dico { transform: scaleX(-1); }
.so-sheet[hidden] { display: none; }
.so-sheet { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; }
.so-bg { position: absolute; inset: 0; background: rgba(34, 23, 38, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.so-sheet.open .so-bg { opacity: 1; }
.so-card { position: relative; width: min(460px, 100%); padding: 26px 22px 16px; border-radius: 30px; background: var(--surface); box-shadow: var(--sh-3); text-align: center; overflow: hidden; transform: translateY(30px) scale(.94); opacity: 0; transition: transform .45s var(--spring), opacity .3s; }
.so-sheet.open .so-card { transform: none; opacity: 1; }
.so-wave { display: flex; justify-content: center; margin-bottom: 8px; }
.so-wave .logo { width: 52px; height: 52px; border-radius: 17px; animation: wave 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 15% { transform: rotate(-14deg); } 30% { transform: rotate(10deg); } 45% { transform: rotate(-6deg); } }
.so-card h2 { font-size: 22px; }
.so-card > p { margin: 4px 0 12px; }
.so-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--mint-soft); color: var(--mint); font-weight: 700; font-size: 13.5px; margin-bottom: 14px; }
.so-live b { font-family: var(--display); font-variant-numeric: tabular-nums; }
.so-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint-2); animation: handPulse 1.4s ease-in-out infinite; }
.so-opts { display: grid; gap: 10px; }
.so-opts form { margin: 0; }
.so-opt { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; font: inherit; color: var(--ink); text-align: start; transition: transform .3s var(--spring), border-color .2s, background .2s, box-shadow .3s; }
[dir="rtl"] .so-opt { padding: 12px 12px 12px 16px; }
.so-opt:hover, .so-opt:focus-visible { transform: translateY(-2px); box-shadow: var(--sh-2); outline: none; }
.so-opt.seal:hover, .so-opt.seal:focus-visible { border-color: #9fe0c9; background: #f1fbf7; }
.so-opt.keep:hover, .so-opt.keep:focus-visible, .so-opt.bye:hover { border-color: #f3c2d3; background: #fff6f9; }
.so-art { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 18px; background: #fff; box-shadow: var(--sh-1); }
.so-art svg { width: 54px; height: 54px; overflow: visible; }
.so-art svg * { transform-box: fill-box; }
.so-txt { display: flex; flex-direction: column; gap: 2px; }
.so-txt strong { font: 700 16px var(--display); }
.so-txt small { color: var(--muted); font-size: 12.5px; }
/* seal art */
.so-glass { fill: rgba(255,255,255,.5); stroke: #d4bcc7; stroke-width: 2.5; }
.so-liq { fill: url(#gLiqRose); }
.so-cap { fill: url(#gCap); transform: translateY(-6px) rotate(-14deg); transform-origin: center; transition: transform .35s var(--spring); }
.so-opt.seal:hover .so-cap { transform: translateY(-2px) rotate(-6deg); }
.so-check { opacity: 0; transform: scale(.3); transform-origin: center; }
.so-check circle { fill: #1f9b77; } .so-check path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.go-seal .so-opt.seal .so-cap { transform: translateY(8px); transition-duration: .3s; }
.go-seal .so-opt.seal .so-check { animation: stampIn .3s cubic-bezier(.5, 0, .75, 0) .3s forwards; }
/* keep art */
.so-dish { fill: #fdf3f6; stroke: #f0dbe4; stroke-width: 2; }
.so-track { fill: none; stroke: #f3e6ec; stroke-width: 5; }
.so-arc { fill: none; stroke: url(#gSegOpen); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 62 100; transform: rotate(-90deg); transform-origin: center; }
.so-hand { transform-origin: 40px 40px; transform-box: view-box; animation: spinSlow 6s linear infinite; }
.so-hand line { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.so-pin { fill: var(--rose); }
.so-opt.keep:hover .so-hand, .go-keep .so-hand { animation-duration: 1.2s; }
/* bye art */
.so-moon { fill: #c9b8f5; }
.so-star { fill: #f6d27a; animation: twinkle 1.8s ease-in-out infinite; transform-origin: center; } .so-star.s2 { animation-delay: .7s; }
.so-opt.chosen { border-color: var(--rose-2); box-shadow: 0 0 0 4px rgba(240, 167, 193, .35); }
.go-seal .so-opt.chosen { border-color: var(--mint-2); box-shadow: 0 0 0 4px rgba(67, 196, 156, .25); }
.going .so-opt:not(.chosen), .going .so-cancel { opacity: .35; pointer-events: none; transition: opacity .3s; }
.so-cancel { margin-top: 12px; border: 0; background: none; font: 600 14px var(--text); color: var(--muted); cursor: pointer; padding: 8px 16px; border-radius: 99px; }
.so-cancel:hover { background: var(--bg); }
.so-bye { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--surface); opacity: 0; pointer-events: none; transition: opacity .35s; }
.so-bye .logo { width: 64px; height: 64px; border-radius: 20px; animation: wave 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
.so-bye strong { font: 800 20px var(--display); background: var(--grad-rose); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 20px; }
.go-seal .so-bye strong { background: var(--grad-mint); -webkit-background-clip: text; background-clip: text; }
.so-card.bye .so-bye { opacity: 1; }
.so-card.bye .so-bye > * { animation: popIn .45s var(--spring) both; }
@media (max-width: 640px) { .so-sheet { place-items: end center; } .so-card { border-radius: 28px 28px 22px 22px; } .ab-out { width: 36px; height: 36px; } }
/* login demo hand */
.ghost-hand { position: fixed; left: 0; top: 0; z-index: 7; width: 38px; height: 38px; margin: -4px 0 0 -14px; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(75, 37, 80, .35)); animation: fadeIn .3s ease both; }
.ghost-hand svg { width: 100%; height: 100%; transition: transform .18s var(--spring); }
.ghost-hand.tap svg { transform: scale(.82) translateY(3px); }
.ghost-hand i { position: absolute; left: 10px; top: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--rose-2); opacity: 0; }
.ghost-hand.tap i { animation: ripOut .5s var(--ease); }
.ghost-hand.out, .arc-tip.out { opacity: 0; transition: opacity .35s; }
.arc-tip { position: fixed; z-index: 7; transform: translateX(-50%); padding: 10px 16px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; box-shadow: var(--sh-3); white-space: nowrap; animation: popIn .45s var(--spring) both; pointer-events: none; }
.arc-tip::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: var(--ink); transform: translateX(-50%) rotate(45deg); }
/* admin "My day": one page, three sections, the main bar never changes */
.stacked .tab-pane + .tab-pane { margin-top: 34px; }
.stack-head { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 0 0 14px; padding-top: 18px; border-top: 1px dashed var(--line-2); }

/* ===== Copyright credit ===== */
.foot { flex-wrap: wrap; flex-direction: column; gap: 6px; }
.foot-app { display: inline-flex; align-items: center; gap: 6px; }
.credit { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--faint); }
.credit a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); transition: color .2s, border-color .2s, transform .2s; }
.credit a:hover { color: var(--rose-2); border-color: var(--rose-2); transform: translateY(-1px); }
.credit .ic, .credit .ico { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.credit a.credit-wa:hover { color: #1f9d55; border-color: #1f9d55; }
.foot-guest { padding: 0 0 14px; }
body[data-page="login"] .foot-guest { position: relative; z-index: 30; padding: 4px 0 18px; }
@media (min-width: 700px) and (min-height: 720px) { body[data-page="login"] .foot-guest { position: fixed; inset: auto 0 10px 0; z-index: 30; padding: 0; pointer-events: none; }
body[data-page="login"] .foot-guest a { pointer-events: auto; } }

/* ===== Login game on phones: open play zone above a compact card ===== */
.arc-tip { white-space: normal; max-width: min(300px, calc(100vw - 32px)); text-align: center; line-height: 1.35; }
@media (max-width: 699px) {
  .arc-dish { top: 27%; width: 96vmin; }
  .pass-wrap { align-items: end; min-height: 100svh; padding: 80px 12px 14px; }
  .pass { padding: 16px 16px 12px; border-radius: 26px; }
  .pass-head { flex-direction: row; text-align: start; gap: 12px; margin-bottom: 12px; }
  .pass-head .pass-flask { width: 38px; margin: 0; }
  .pass-head h1 { font-size: 21px; line-height: 1.15; }
  .pass-head .muted { font-size: 13px; margin: 0; }
  .pfield { gap: 4px; margin-bottom: 9px; font-size: 13px; }
  .pfield input { min-height: 46px; }
  .scan-btn { margin-top: 4px; }
  .pass-hint { margin-top: 8px; font-size: 12px; }
  .foot-guest { padding: 0 0 10px; }
}
@media (max-width: 699px) and (max-height: 620px) {
  .pass-head .muted, .pass-hint { display: none; }
}
.arc-tip { transform: none; }
@media (max-width: 699px) {
  .pass-head { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: center; }
  .pass-head .pass-flask { grid-row: span 2; }
  .pass-head h1 { white-space: nowrap; }
}
