/* Divya Upay — the student's own space (13 Nov): the website's night-and-gold world for the sign-in and every student page.
   Built on stage.css (the moving background, its veil, the motes, the living diya, the fields and the gold button); this adds
   the panel's own parts, all named sp-, so nothing on the website changes. One bold thing: the diya turning in its chakra on
   Home (the website's opening), echoed by the chakra that holds the credits. Phone first: a tab bar at the bottom; a computer
   gets the links along the top. */
.sp{--jade:#BFEACB;--jade-bg:rgba(118,196,146,.13);--jade-line:rgba(160,222,182,.36);
  --rose:#F6BCC4;--rose-bg:rgba(196,74,92,.16);--rose-line:rgba(236,140,152,.42);
  --sheet:rgba(7,11,27,.62);--hair:rgba(226,195,138,.16)}
.sp ul{list-style:none}
.sp button{font:inherit}
.sp a:focus-visible,.sp button:focus-visible,.sp input:focus-visible,.sp textarea:focus-visible{outline:2px solid var(--gold2);outline-offset:3px}

/* the world behind is darker than the website's: lists and figures sit on it */
.sp:not(.sp-bare) .stage-veil{background:
  radial-gradient(110% 55% at 50% 0%,rgba(5,9,19,0) 0%,rgba(5,9,19,.32) 100%),
  linear-gradient(180deg,rgba(5,9,19,.3) 0%,rgba(5,9,19,.6) 28%,rgba(5,9,19,.78) 60%,rgba(5,9,19,.88) 100%)}
.sp:not(.sp-bare){padding-bottom:calc(70px + env(safe-area-inset-bottom))}

/* the top: the name (with the small diya, except on Home, which has the large one), the links on a computer, the credits */
.sp-top{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;max-width:1120px;margin:0 auto;
  padding:calc(env(safe-area-inset-top) + 12px) 16px 4px}
.sp-brand{display:flex;align-items:center;gap:9px;min-width:0;color:var(--ink);text-decoration:none;font-family:var(--serif);font-size:21px;font-weight:500;
  text-shadow:0 1px 10px rgba(0,0,0,.75)}
.sp-brand span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-brand .emblem{width:36px}
.sp-home-page .sp-brand .emblem{display:none}
.sp-nav{display:none}
.sp-pill{display:inline-flex;align-items:center;gap:7px;flex:none;padding:6px 13px 6px 11px;border-radius:999px;border:1px solid var(--line);
  background:rgba(5,9,19,.5);color:var(--mute);text-decoration:none;font-size:14.5px;line-height:1;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.sp-pill b{font-family:var(--serif);font-weight:600;font-size:20px;color:var(--gold2);font-variant-numeric:lining-nums}
.sp-pill i,.sp-coin{width:9px;height:9px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#FFF6DF,#E2C38A 55%,#9C7638);box-shadow:0 0 9px rgba(248,231,191,.65)}

/* the page */
.sp-main{width:100%;max-width:1120px;margin:0 auto;padding:6px 16px 8px}
.sp-narrow{max-width:680px}
.sp-head{margin:14px 0 20px}
.sp-head h1{font-family:var(--serif);font-weight:500;font-size:clamp(34px,8.6vw,44px);line-height:1.05;color:var(--gold2);text-shadow:0 2px 18px rgba(0,0,0,.6)}
.sp-head p{margin-top:6px;max-width:48ch;font-size:16px;color:var(--mute);text-shadow:0 1px 10px rgba(0,0,0,.85)}
.sp-h2{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:30px 0 12px;font-family:var(--serif);font-weight:500;font-size:26px;
  line-height:1.15;color:var(--gold2);text-shadow:0 1px 14px rgba(0,0,0,.75)}
.sp-h2 a{font-family:var(--sans);font-size:15px;color:var(--gold2);text-underline-offset:3px;text-decoration-color:rgba(248,231,191,.4)}
.sp-h3{font-family:var(--serif);font-weight:500;font-size:25px;line-height:1.15;color:var(--gold2)}
.sp-fine{margin-top:12px;font-size:14.5px;line-height:1.45;color:var(--mute)}

/* one sheet of glass holds a list; its rows are parted by a hairline, not boxed one by one */
.sp-sheet{border-radius:18px;background:var(--sheet);border:1px solid var(--hair);box-shadow:0 24px 60px -30px rgba(0,0,0,.85);
  -webkit-backdrop-filter:blur(14px) saturate(1.1);backdrop-filter:blur(14px) saturate(1.1)}

/* Home: the living diya in its turning chakra, and the greeting */
.sp-hero{display:flex;flex-direction:column;align-items:center;text-align:center;padding:2px 0 4px}
.sp-hero .emblem{width:clamp(124px,36vw,164px)}
.sp-hello{margin-top:4px;font-family:var(--serif);font-weight:500;font-size:clamp(40px,11vw,56px);line-height:1.04;letter-spacing:.005em;
  background:linear-gradient(180deg,#FFF6DF 0%,var(--gold2) 40%,var(--gold) 100%);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 2px 16px rgba(0,0,0,.6))}
.sp-hero p{margin-top:8px;font-size:16.5px;color:var(--ink);opacity:.88;text-shadow:0 1px 3px rgba(0,0,0,.85),0 0 16px rgba(5,9,19,.9)}
.sp-home-page .sp-hero .emblem{animation:spIn 1.6s cubic-bezier(.2,.7,.2,1) both}
.sp-home-page .sp-hello{animation:spRise 1.1s ease .25s both}
.sp-home-page .sp-hero p{animation:spRise 1.1s ease .4s both}
@keyframes spIn{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
@keyframes spRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* make a remedy: each kit a gold-edged plate, its credits in a coin */
.sp-make{display:flex;flex-direction:column;gap:12px}
.sp-make .sp-h2{margin-bottom:0}
.sp-kitc{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 16px;padding:16px 16px 16px 18px;border-radius:16px;text-decoration:none;color:var(--ink);
  background:linear-gradient(160deg,rgba(248,231,191,.15) 0%,rgba(226,195,138,.05) 45%,rgba(7,11,27,0) 100%),var(--sheet);
  border:1px solid rgba(226,195,138,.5);box-shadow:inset 0 1px 0 rgba(255,244,214,.16),0 18px 40px -26px rgba(0,0,0,.9);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);transition:border-color .2s}
.sp-kitc:hover{border-color:var(--gold)}
.sp-kitc:active{transform:translateY(1px)}
.sp-kitc .kn{grid-column:1;font-size:23px;line-height:1.15}
.sp-kitc .kd{grid-column:1;line-height:1.45}
.sp-kitc .cost{grid-column:2;grid-row:1/span 2;display:flex;flex-direction:column;align-items:center;justify-content:center;width:62px;height:62px;border-radius:50%;
  border:1px solid rgba(226,195,138,.6);background:radial-gradient(circle at 50% 30%,rgba(248,231,191,.2),rgba(5,9,19,.4) 70%);
  box-shadow:0 0 18px -4px rgba(248,231,191,.35);font-family:var(--serif);color:var(--gold2)}
.sp-kitc .cost b{font-size:27px;font-weight:600;line-height:.95;font-variant-numeric:lining-nums}
.sp-kitc .cost small{margin-top:2px;font-family:var(--sans);font-size:11.5px;color:var(--mute)}

/* the student's link */
.sp-linkbox{padding:16px}
.sp-url{padding:11px 13px;border-radius:12px;background:rgba(2,4,12,.5);border:1px solid var(--hair);font-size:15px;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}
.sp-btns{display:flex;gap:10px;margin-top:12px}
.sp-btns>*{flex:1 1 auto}
.sp-btns>button{flex:0 0 auto;padding:10px 18px}
.sp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 14px;border-radius:12px;border:1px solid var(--line);
  background:rgba(5,9,19,.42);color:var(--gold2);font-size:16px;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer}
.sp-btn:hover{border-color:var(--gold)}
.sp-btn.gold{border-color:var(--gold);background:linear-gradient(180deg,var(--gold2),var(--gold));color:#1a1206;font-weight:500;box-shadow:0 10px 26px -14px rgba(226,195,138,.8)}
.sp-sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px;border-radius:16px;border:1px solid var(--hair);background:var(--sheet);
  color:var(--ink);text-decoration:none;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.sp-sum>span{display:flex;flex-direction:column;align-items:center;gap:4px;padding:13px 8px 12px;text-align:center}
.sp-sum>span+span{border-left:1px solid var(--hair)}
.sp-sum b{font-family:var(--serif);font-weight:600;font-size:25px;line-height:1.05;color:var(--gold2);font-variant-numeric:lining-nums;white-space:nowrap}
.sp-sum small{font-size:12.5px;line-height:1.3;color:var(--mute)}
.sp-sum:hover{border-color:var(--line)}

/* kits */
.sp-kit{padding:15px 16px 12px}
.sp-kit+.sp-kit{border-top:1px solid var(--hair)}
.sp-kit-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.sp-kit .who{min-width:0;font-family:var(--serif);font-weight:600;font-size:21px;line-height:1.2;color:var(--ink);overflow-wrap:anywhere}
.sp-kit .q{margin-top:3px;font-size:15px;line-height:1.45;color:var(--mute)}
.sp-kit .meta{margin-top:5px;font-size:13.5px;color:var(--faint)}
.sp-kit .acts{display:flex;flex-wrap:wrap;align-items:center;gap:2px 20px;margin-top:6px}
.sp-kit .acts a,.sp-kit .acts button{padding:8px 0;border:0;background:none;color:var(--gold2);font-size:15px;cursor:pointer;
  text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(248,231,191,.35)}
.sp-kit .d2{font-size:13.5px;color:var(--faint)}
.sp-kit .d2.ok{color:var(--jade)}
.sp-st{flex:none;display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;border:1px solid var(--line);background:rgba(226,195,138,.1);
  color:var(--gold2);font-size:13px;line-height:1.3;white-space:nowrap}
.sp-st.ok{color:var(--jade);border-color:var(--jade-line);background:var(--jade-bg)}
.sp-st.bad{color:var(--rose);border-color:var(--rose-line);background:var(--rose-bg)}
.sp-st.run::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--gold2);box-shadow:0 0 8px var(--gold);animation:dot 1.4s ease-in-out infinite}
.sp-meter{height:6px;margin-top:12px;border-radius:999px;background:rgba(226,195,138,.14);overflow:hidden}
.sp-meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--deep),var(--gold) 60%,var(--gold2));box-shadow:0 0 12px rgba(248,231,191,.5)}
.sp-meter.sm{height:4px;margin-top:9px}

/* lists of money and credits */
.sp-log{padding:2px 16px}
.sp-log li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0}
.sp-log li+li{border-top:1px solid var(--hair)}
.sp-log li>span:first-child{min-width:0;font-size:16px;color:var(--ink);overflow-wrap:anywhere}
.sp-log small{display:block;margin-top:1px;font-size:13px;color:var(--faint)}
.sp-log b{font-family:var(--serif);font-weight:600;font-size:21px;line-height:1.1;font-variant-numeric:lining-nums;white-space:nowrap}
.sp-log .plus{color:var(--jade)}
.sp-log .minus{color:var(--mute)}
.sp-log em{font-style:normal;font-size:14px;color:var(--mute);white-space:nowrap}
.sp-log .amt{display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.sp-log .amt b{color:var(--gold2)}

/* credits: the number held in the turning chakra */
.sp-seal-wrap{display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 0 10px}
.sp-seal{position:relative;width:min(66vw,252px);aspect-ratio:1;display:grid;place-items:center}
.sp-seal .ring{position:absolute;inset:0;width:100%;height:100%;animation:turn 90s linear infinite;filter:drop-shadow(0 0 22px rgba(248,231,191,.16))}
.sp-seal .n{position:relative;font-family:var(--serif);font-weight:600;font-size:clamp(56px,16vw,70px);line-height:1;color:var(--gold2);font-variant-numeric:lining-nums;
  text-shadow:0 0 28px rgba(248,231,191,.4),0 2px 10px rgba(0,0,0,.7)}
.sp-seal .n.s{font-size:clamp(44px,12vw,54px)}
.sp-seal .n.xs{font-size:clamp(32px,9vw,40px)}
.sp-seal.plain{width:auto;aspect-ratio:auto;margin-top:20px}
.sp-seal-cap{margin-top:2px;font-family:var(--serif);font-style:italic;font-size:22px;color:var(--ink);text-shadow:0 1px 10px rgba(0,0,0,.85)}
.sp-seal-wrap .sp-fine{margin-top:6px}

/* forms */
.sp-form{display:flex;flex-direction:column;gap:10px;padding:18px 16px}
.sp-form .lab{margin-top:4px}
.sp-form .go{margin-top:10px}
.sp-form .hint{text-align:center}
.sp-form .area{min-height:120px;resize:vertical;line-height:1.5;font-size:18px}
.sp-buy{margin-top:8px}
.sp-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:6px 0 2px}
.sp-chip{min-height:50px;border-radius:12px;border:1px solid var(--line);background:rgba(2,4,12,.42);color:var(--ink);font-family:var(--serif);font-size:23px;font-weight:600;
  font-variant-numeric:lining-nums;cursor:pointer}
.sp-chip.on{border-color:var(--gold);background:rgba(226,195,138,.16);color:var(--gold2);box-shadow:0 0 0 2px rgba(226,195,138,.2)}
.sp-pw{position:relative}
.sp-pw .in{padding-right:52px}
.sp-eye{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;border:0;background:none;color:var(--gold);cursor:pointer}
.sp-eye svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.sp-eye[aria-pressed=true]{color:var(--gold2)}
.sp-eye[aria-pressed=true] svg path{stroke-dasharray:2.2 2.2}

/* earnings: what is waiting, and how close the payout is */
.sp-earn{padding:0 2px 4px}
.sp-big{font-family:var(--serif);font-weight:600;font-size:clamp(56px,16vw,76px);line-height:1;color:var(--gold2);font-variant-numeric:lining-nums;
  text-shadow:0 0 30px rgba(248,231,191,.25),0 2px 12px rgba(0,0,0,.65)}
.sp-cap{margin-top:6px;font-family:var(--serif);font-style:italic;font-size:21px;color:var(--ink);text-shadow:0 1px 10px rgba(0,0,0,.85)}
.sp-earn .sp-meter{max-width:440px;margin-top:16px}
.sp-paid{margin-top:16px;font-size:16px;color:var(--mute)}
.sp-paid b{margin-left:8px;font-family:var(--serif);font-weight:600;font-size:23px;color:var(--gold2);font-variant-numeric:lining-nums}

/* feedback */
.sp-quotes{padding:2px 16px}
.sp-quotes li{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:14px 0}
.sp-quotes li+li{border-top:1px solid var(--hair)}
.sp-quotes p{font-family:var(--serif);font-style:italic;font-size:20px;line-height:1.35;color:var(--ink)}

/* profile */
.sp-me{display:flex;align-items:center;gap:16px}
.sp-avatar{flex:none;width:66px;height:66px;border-radius:50%;display:grid;place-items:center;font-family:var(--serif);font-size:33px;font-weight:600;color:var(--gold2);
  border:1px solid var(--gold);background:radial-gradient(circle at 50% 30%,rgba(248,231,191,.22),rgba(5,9,19,.62) 75%);
  box-shadow:0 0 0 5px rgba(226,195,138,.1),0 0 34px rgba(248,231,191,.16)}
.sp-me h1{font-size:clamp(29px,7.6vw,38px)}
.sp-me p{margin-top:2px}
.sp-links{display:flex;flex-direction:column;margin-top:22px;border-radius:16px;border:1px solid var(--hair);background:var(--sheet);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.sp-links a{display:flex;align-items:center;justify-content:space-between;padding:16px;color:var(--ink);font-size:16.5px;text-decoration:none}
.sp-links a+a{border-top:1px solid var(--hair)}
.sp-links a::after{content:"";width:8px;height:8px;margin-right:4px;border-top:1.5px solid var(--gold);border-right:1.5px solid var(--gold);transform:rotate(45deg)}
.sp-links a:hover{color:var(--gold2)}

/* payment */
.sp-pay{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:24px 18px 20px;text-align:center}
.sp-pay .sp-big{margin-bottom:8px}
.sp-pay .hint{margin-top:6px}
.sp-back{align-self:center;margin-top:12px;color:var(--gold2);font-size:15px}

/* notes, empty lists, the line at the foot */
.sp-note{width:calc(100% - 32px);max-width:680px;margin:10px auto 0;padding:11px 14px;border-radius:12px;border:1px solid var(--line);background:rgba(7,11,27,.72);
  color:var(--ink);font-size:15px;line-height:1.45}
.sp-note.ok{border-color:var(--jade-line);color:#E3F7EA}
.sp-note.bad{border-color:var(--rose-line);background:rgba(110,30,44,.46);color:#FFE6E9}
.sp-note a{color:var(--gold2)}
.sp-make .sp-note{width:100%;margin:0}
.sp-empty{padding:18px 16px;border-radius:16px;border:1px dashed rgba(226,195,138,.3);background:rgba(5,9,19,.38);color:var(--mute);font-size:15.5px;text-align:center}
div.sp-empty{display:flex;flex-direction:column;align-items:center;gap:12px}
div.sp-empty .sp-btn{flex:none;min-width:220px}
.sp-powered{margin:30px auto 10px;text-align:center;font-size:12.5px;color:var(--faint)}
.sp-ribbon{padding:3px 12px 4px;background:rgba(226,195,138,.88);color:#1a1206;font-size:12px;line-height:1.3;text-align:center}

/* the tab bar (phone) */
.sp-tabs{position:fixed;left:0;right:0;bottom:0;z-index:20;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:5px 4px calc(5px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,rgba(6,10,24,.74),rgba(4,7,18,.92));border-top:1px solid rgba(226,195,138,.22);
  -webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2)}
.sp-tabs a{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 2px 5px;border-radius:12px;color:var(--faint);text-decoration:none;
  font-size:12px;line-height:1.1}
.sp-tabs svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.sp-tabs a.on{color:var(--gold2)}
.sp-tabs a.on svg{filter:drop-shadow(0 0 6px rgba(248,231,191,.65))}
.sp-tabs a.on::before{content:"";position:absolute;top:-6px;left:50%;width:22px;height:2px;margin-left:-11px;border-radius:2px;background:var(--gold2);box-shadow:0 0 10px var(--gold)}
.sp-tabs a:focus-visible{outline:2px solid var(--gold2);outline-offset:-2px}

/* the sign-in */
.sp-signin .card{margin-top:clamp(18px,3.6vh,34px)}
.sp-signin .say{font-weight:500;margin-bottom:8px}
.sp-signin .hint{text-align:center}
.sp-alt{margin-top:18px;font-size:15px;color:var(--mute);text-shadow:0 1px 8px rgba(0,0,0,.85)}
.sp-alt a{color:var(--gold2)}

@media (max-width:380px){
  .sp-kitc .kn{font-size:21px}
  .sp-sum b{font-size:22px}
  .sp-btns{flex-direction:column}
}
/* a computer: the links along the top, Home in two columns */
@media (min-width:900px){
  .sp:not(.sp-bare){padding-bottom:0}
  .sp-tabs{display:none}
  .sp-top{padding-top:18px}
  .sp-nav{display:flex;gap:2px;margin:0 auto}
  .sp-nav a{padding:8px 14px;border-radius:999px;color:var(--mute);font-size:15.5px;text-decoration:none;text-shadow:0 1px 8px rgba(0,0,0,.85)}
  .sp-nav a:hover{color:var(--ink)}
  .sp-nav a.on{color:var(--gold2);background:rgba(226,195,138,.12);box-shadow:inset 0 0 0 1px rgba(226,195,138,.3)}
  .sp-home{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 48px;align-items:start;padding-top:18px}
  .sp-home .sp-hero{padding-top:10px}
  .sp-home .sp-col+.sp-col>section:first-child .sp-h2{margin-top:6px}
  .sp-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;align-items:start}
  .sp-head{margin-top:28px}
}
@media (prefers-reduced-motion:reduce){
  .sp-seal .ring,.sp-home-page .sp-hero .emblem,.sp-home-page .sp-hello,.sp-home-page .sp-hero p,.sp-st.run::before{animation:none}
}

/* ---- the second look (Baldev 13 Nov 11:26), only under .sp-v2 until it goes live: every kit on its own moving look, a slow
   golden video behind the phone's tab bar, and on a computer a dashboard — a side menu with the living diya, four tiles,
   the kits as a grid of tiles, the latest kits beside the link ---- */
.sp-make-grid{display:flex;flex-direction:column;gap:12px}
.sp-side,.sp-stats{display:none}

/* a kit's look: on a phone a window on the right of its plate, fading into it, the coin floating over it */
.sp-v2 .sp-kitc.has-look{position:relative;overflow:hidden;isolation:isolate}
.sp-v2 .sp-kv{position:absolute;top:0;right:0;bottom:0;width:50%;z-index:-1;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.45) 34%,#000 70%);mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.45) 34%,#000 70%)}
.sp-v2 .sp-kv video{display:block;width:100%;height:100%;object-fit:cover;filter:brightness(.84) saturate(1.05);transition:transform 1.4s ease}
.sp-v2 .sp-kitc.has-look .cost{background:radial-gradient(circle at 50% 30%,rgba(248,231,191,.24),rgba(5,9,19,.66) 72%);box-shadow:0 0 22px -2px rgba(248,231,191,.4),0 4px 14px rgba(0,0,0,.45)}
.sp-v2 .sp-kitc.has-look .kn,.sp-v2 .sp-kitc.has-look .kd{text-shadow:0 1px 10px rgba(5,9,19,.95),0 0 2px rgba(5,9,19,.8)}

/* the phone's tab bar on its own slow golden video */
.sp-v2 .sp-tabs{isolation:isolate;overflow:hidden;background:#060a18;-webkit-backdrop-filter:none;backdrop-filter:none}
.sp-tabs-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;pointer-events:none}
.sp-v2 .sp-tabs::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(5,9,19,.36),rgba(5,9,19,.6))}
.sp-v2 .sp-tabs a{color:rgba(246,240,228,.76);text-shadow:0 1px 6px rgba(0,0,0,.85)}
.sp-v2 .sp-tabs a.on{color:var(--gold2)}
.sp-v2 .sp-tabs a.on::before{top:-5px}

@media (min-width:900px){
  /* the side menu: the living diya, the pages, the credits, sign out — on a slow golden video */
  .sp-v2{padding-left:256px}
  .sp-v2 .sp-top{display:none}
  .sp-v2 .sp-side{position:fixed;top:0;left:0;bottom:0;z-index:20;width:256px;display:flex;flex-direction:column;overflow:hidden;isolation:isolate;
    background:#060a18;border-right:1px solid rgba(226,195,138,.22);box-shadow:24px 0 60px -34px rgba(0,0,0,.9)}
  .sp-side-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;pointer-events:none}
  .sp-v2 .sp-side::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
    background:linear-gradient(180deg,rgba(5,9,19,.36) 0%,rgba(5,9,19,.62) 32%,rgba(5,9,19,.78) 66%,rgba(5,9,19,.9) 100%)}
  .sp-side-brand{display:flex;flex-direction:column;align-items:center;gap:2px;padding:24px 16px 12px;text-decoration:none;
    font-family:var(--serif);font-weight:500;font-size:26px;line-height:1.1;color:var(--gold2);text-shadow:0 2px 14px rgba(0,0,0,.75)}
  .sp-side-brand .emblem{width:116px}
  .sp-side-nav{flex:1;display:flex;flex-direction:column;gap:3px;padding:12px 14px;overflow-y:auto}
  .sp-side-nav a{position:relative;display:flex;align-items:center;gap:13px;padding:11px 14px;border-radius:12px;color:rgba(246,240,228,.8);
    font-size:16px;text-decoration:none;text-shadow:0 1px 8px rgba(0,0,0,.8);transition:background .2s,color .2s}
  .sp-side-nav svg{flex:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
  .sp-side-nav a:hover{color:var(--ink);background:rgba(226,195,138,.09)}
  .sp-side-nav a.on{color:var(--gold2);background:linear-gradient(90deg,rgba(226,195,138,.24),rgba(226,195,138,.06));box-shadow:inset 0 0 0 1px rgba(226,195,138,.32)}
  .sp-side-nav a.on svg{filter:drop-shadow(0 0 6px rgba(248,231,191,.6))}
  .sp-side-nav a.on::before{content:"";position:absolute;left:-14px;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--gold2);box-shadow:0 0 12px var(--gold)}
  .sp-side-foot{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:16px 22px 24px;border-top:1px solid rgba(226,195,138,.16)}
  .sp-out{font-size:14.5px;color:var(--mute);text-decoration:none}
  .sp-out:hover{color:var(--gold2)}

  /* the page beside it */
  .sp-v2 .sp-main{max-width:1240px;padding:28px 40px 10px}
  .sp-v2 .sp-narrow{max-width:760px}
  .sp-v2 .sp-credits,.sp-v2 .sp-kits-page{max-width:1000px}
  .sp-v2 .sp-head{margin-top:8px}

  /* Home as a dashboard */
  .sp-v2 .sp-home{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);grid-template-areas:"hero hero" "stats stats" "make make" "recent share";
    gap:0 28px;align-items:start;padding-top:30px}
  .sp-v2 .sp-home .sp-hero{grid-area:hero;align-items:flex-start;text-align:left;padding:0}
  .sp-v2 .sp-home .sp-hero .emblem{display:none}
  .sp-v2 .sp-hello{font-size:52px}
  .sp-v2 .sp-stats{grid-area:stats;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:24px}
  .sp-v2 .sp-make{grid-area:make}
  .sp-v2 .sp-make-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:14px}
  .sp-v2 .sp-share{grid-area:share}
  .sp-v2 .sp-recent{grid-area:recent}
  .sp-v2 .sp-sum{display:none}

  /* the four tiles */
  .sp-stat{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:16px 18px 15px;border-radius:16px;border:1px solid var(--hair);background:var(--sheet);
    color:var(--ink);text-decoration:none;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);transition:border-color .2s}
  .sp-stat:hover{border-color:var(--line)}
  .sp-stat.primary{border-color:rgba(226,195,138,.5);background:linear-gradient(160deg,rgba(248,231,191,.16),rgba(226,195,138,.05) 50%,rgba(7,11,27,0)),var(--sheet)}
  .sp-stat .ic{display:grid;place-items:center;width:38px;height:38px;margin-bottom:10px;border-radius:50%;border:1px solid rgba(226,195,138,.42);
    background:rgba(226,195,138,.08);color:var(--gold2)}
  .sp-stat .ic svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
  .sp-stat b{font-family:var(--serif);font-weight:600;font-size:36px;line-height:1.05;color:var(--gold2);font-variant-numeric:lining-nums}
  .sp-stat small{font-size:14px;line-height:1.35;color:var(--mute)}
  .sp-stat em{margin-top:10px;font-style:normal;font-size:13.5px;color:var(--gold2);opacity:.86}

  /* a kit as a tile: its look full-bleed above, its name and what is in it below, the coin in the corner */
  .sp-v2 .sp-kitc{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:1fr auto auto;align-items:end;min-height:240px;padding:16px 16px 18px 18px}
  .sp-v2 .sp-kitc .kn{grid-column:1/-1;grid-row:2}
  .sp-v2 .sp-kitc .kd{grid-column:1/-1;grid-row:3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .sp-v2 .sp-kitc .cost{grid-column:2;grid-row:1;align-self:start}
  .sp-v2 .sp-kv{left:0;width:auto;
    -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 40%,rgba(0,0,0,.4) 68%,transparent 88%);mask-image:linear-gradient(180deg,#000 0%,#000 40%,rgba(0,0,0,.4) 68%,transparent 88%)}
  .sp-v2 .sp-kitc:hover .sp-kv video{transform:scale(1.05)}

  /* kits as rows: who and what on the left; how it stands and what to do on the right */
  .sp-v2 .sp-kit{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:26px;padding:15px 20px 13px}
  .sp-v2 .sp-kit-top{display:contents}
  .sp-v2 .sp-kit .who{grid-column:1;grid-row:1}
  .sp-v2 .sp-kit .q{grid-column:1;grid-row:2}
  .sp-v2 .sp-kit .meta{grid-column:1;grid-row:3}
  .sp-v2 .sp-kit .sp-meter{grid-column:1;grid-row:4}
  .sp-v2 .sp-kit .sp-st{grid-column:2;grid-row:1;justify-self:end;align-self:start}
  .sp-v2 .sp-kit .acts{grid-column:2;grid-row:2/span 3;justify-content:flex-end;align-self:start;max-width:300px;margin-top:2px}

  /* credits: the chakra beside buying; earnings: what is waiting beside the link */
  .sp-v2 .sp-cr-top{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:34px;align-items:center;margin-top:12px}
  .sp-v2 .sp-cr-top .sp-buy{margin-top:0}
  .sp-v2 .sp-earn-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start}
  .sp-v2 .sp-earn{padding:22px 24px 20px;border-radius:18px;border:1px solid var(--hair);background:var(--sheet);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
  .sp-v2 .sp-earn-top .sp-h2{margin-top:0}
}
@media (min-width:900px) and (max-width:1180px){
  .sp-v2 .sp-home{grid-template-columns:minmax(0,1fr);grid-template-areas:"hero" "stats" "make" "recent" "share"}
  .sp-v2 .sp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){
  .sp-v2 .sp-kv video{transition:none}
  .sp-v2 .sp-kitc:hover .sp-kv video{transform:none}
}

/* a remedy's steps or its "preparing" page opened from the panel (stage.js swaps them in, 13 Nov): the panel's own top,
   menu and tabs stay, so the website's bar (its name, the tokens, "My panel") is not shown a second time */
.sp #page > .bar{display:none}
