:root{
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
  --ink:#f3f0ff; --muted:#b8b4e0; --line:#c9b8ff;
  --pink:#ff9ec7; --gold:#ffe08a; --mint:#9df0d0; --lilac:#c4a8ff; --sky:#8fd0ff; --peach:#ffb998; --orange:#ffa65c;
  color-scheme:dark;
}

/* disable select */
*,*::before,*::after{
  box-sizing:inherit;
  -webkit-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
  user-select:none;
}

html{height:100%;scroll-padding-top:env(safe-area-inset-top,0px)}
body{
  margin:0;min-height:100%;overflow-x:hidden;position:relative;
  font-family:"Nunito",system-ui,sans-serif;color:var(--ink);
  background:
    radial-gradient(ellipse 420px 320px at 10% 8%,rgba(255,120,190,.30),transparent 70%),
    radial-gradient(ellipse 460px 380px at 95% 38%,rgba(120,90,255,.38),transparent 70%),
    radial-gradient(ellipse 420px 340px at 5% 72%,rgba(60,190,200,.26),transparent 70%),
    radial-gradient(ellipse 500px 360px at 85% 100%,rgba(255,150,120,.22),transparent 70%),
    linear-gradient(160deg,#0b0b2b,#1a1048 55%,#0c1a3d);
  background-attachment:fixed;
  padding:32px 14px 52px;
}

/* band */
body::before{
  content:"";position:fixed;inset:-20%;pointer-events:none;z-index:0;
  background:linear-gradient(115deg,transparent 38%,rgba(255,255,255,.06) 48%,rgba(200,180,255,.09) 52%,transparent 62%);
  filter:blur(18px);transform:translateZ(0);
}

/* stars */
.stars{position:fixed;inset:0;pointer-events:none;z-index:0}
.stars i{
  position:absolute;border-radius:50%;background:#fff;
  will-change:opacity;animation:twOp 4s ease-in-out infinite;
  transform:translateZ(0);
}
@keyframes twOp{0%,100%{opacity:.15}50%{opacity:.85}}

/* shooting stars */
.shoot{
  position:fixed;z-index:0;width:110px;height:2px;pointer-events:none;opacity:0;
  background:linear-gradient(90deg,transparent,#fff);
  transform:rotate(28deg) translateZ(0);will-change:transform,opacity;
  animation:shoot 10s linear infinite;
}
.shoot.b{animation-delay:5s;top:42%;left:30%}
@keyframes shoot{
  0%{opacity:0;transform:translate3d(0,0,0) rotate(28deg)}
  2%{opacity:1}
  12%{opacity:0;transform:translate3d(260px,140px,0) rotate(28deg)}
  100%{opacity:0}
}

/* trail */
.zap{
  position:fixed;pointer-events:none;z-index:9999;font-size:18px;
  animation:pop 1.6s cubic-bezier(.2,.7,.3,1) forwards;
  line-height:1;transform:translateZ(0);will-change:transform,opacity;
}
@keyframes pop{
  0%{transform:translate3d(0,0,0) scale(1) rotate(0deg);opacity:1}
  60%{opacity:.8}
  100%{transform:translate3d(var(--x),var(--y),0) scale(.2) rotate(130deg);opacity:0}
}

main{
  position:relative;z-index:1;width:100%;max-width:440px;margin:0 auto;text-align:center;
}

.header-wrapper{margin-top:8px}

h1{
  font-family:"Fraunces",Georgia,serif;font-weight:600;font-size:clamp(1.5rem,7.5vw,2.2rem);white-space:nowrap;
  margin:0;line-height:1.1;text-shadow:0 0 20px rgba(196,168,255,.7);
}
h1 em{font-weight:400;color:var(--pink)}
.hand{font-family:"Caveat",cursive;font-size:1.5rem;margin:7px 0 2px;color:var(--gold);transform:rotate(-2deg)}
.tag{margin:0 auto;max-width:34ch;line-height:1.5;color:var(--muted);font-size:.95rem}

/* announcements */
.notice{
  position:relative;margin:20px 0 0;padding:14px 18px 8px;text-align:left;
  background:linear-gradient(135deg,rgba(22,15,54,.88),rgba(34,22,76,.92));
  border:1.5px solid rgba(255,224,138,.35);border-radius:18px;
  box-shadow:0 6px 18px rgba(0,0,0,.35),0 0 16px rgba(255,224,138,.1);
  backdrop-filter:blur(4px);
}
.notice[hidden]{display:none}
.nhead{
  font-size:.64rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
  color:var(--gold);text-align:center;padding-bottom:10px;
  border-bottom:1px solid rgba(201,184,255,.18);
}
.notice p{
  position:relative;margin:0;padding:10px 0 10px 22px;
  font-family:"Fraunces",Georgia,serif;font-size:1rem;font-weight:600;line-height:1.35rem;color:var(--ink);
}
.notice p+p{border-top:1px solid rgba(201,184,255,.14)}
.notice p::before{
  content:"✦";position:absolute;left:2px;top:10px;
  font-size:.75rem;line-height:1.35rem;color:var(--gold);text-shadow:0 0 6px var(--gold);
}
.notice a[href]{
  color:inherit;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px;
  text-decoration-color:rgba(255,224,138,.55);transition:color .2s,text-decoration-color .2s;
}
.notice a[href]:hover,.notice a[href]:focus-visible{color:var(--gold);text-decoration-color:var(--gold);outline:none}

/* view switch */
.title-wrap{position:relative;display:block;width:fit-content;margin:24px auto 0}

.view-switch{
  --p:18px;--hit:32px;--c:var(--lilac);--lift:9px;
  position:absolute;left:100%;top:50%;margin:calc(var(--hit)/-2 - var(--lift)) 0 0 2px;
  width:var(--hit);height:var(--hit);padding:0;border:0;background:none;color:var(--c);
  cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:color .2s;
}
/* rays */
.view-switch::before{
  content:"";position:absolute;z-index:0;left:50%;top:50%;
  width:calc(var(--p)*1.44);height:calc(var(--p)*1.44);
  margin:calc(var(--p)*-.72) 0 0 calc(var(--p)*-.72);
  background:var(--c);opacity:.8;
  clip-path:polygon(50% 0,56% 44%,100% 50%,56% 56%,50% 100%,44% 56%,0 50%,44% 44%);
  transition:transform .3s cubic-bezier(.16,1,.3,1),opacity .3s;
}
/* disc */
.view-switch::after{
  content:"";position:absolute;z-index:1;left:50%;top:50%;
  width:var(--p);height:var(--p);margin:calc(var(--p)/-2) 0 0 calc(var(--p)/-2);
  border-radius:50%;border:1.5px solid var(--c);
  background:radial-gradient(circle at 35% 32%,#2c1c5a,#100a2b 85%);
  box-shadow:0 0 6px var(--c),inset 0 0 4px rgba(255,255,255,.2);
  transition:border-color .2s,box-shadow .2s;
}
.view-switch:focus-visible::before{transform:rotate(45deg) scale(1.15);opacity:1}
@media (hover:hover){
  .view-switch:hover::before{transform:rotate(45deg) scale(1.15);opacity:1}
}
.view-switch:focus-visible{outline:2px solid var(--lilac);outline-offset:-2px;border-radius:50%}

/* cross-fade */
.view-switch .icon{
  position:absolute;z-index:2;left:50%;top:50%;
  width:calc(var(--p)*.58);height:calc(var(--p)*.58);
  margin:calc(var(--p)*-.29) 0 0 calc(var(--p)*-.29);
  opacity:0;transition:opacity .2s ease;
}
.view-switch[data-view="constellation"] .icon[data-icon="constellation"],
.view-switch[data-view="list"] .icon[data-icon="list"]{opacity:1}

/* constellation view */
.sky{
  position:relative;height:clamp(540px, 135vw, 660px);
  margin:28px 4px 0;transform:translateZ(0);
}
.sky[hidden]{display:none}
.sky:not([hidden]),
.links-list:not([hidden]){animation:viewIn .3s ease-out backwards}
@keyframes viewIn{from{opacity:0;transform:translateY(8px)}}

.sky .constellation-lines{
  position:absolute;inset:0;pointer-events:none;z-index:1;
}
.sky .constellation-lines svg{display:block;width:100%;height:100%;overflow:visible}
.sky .const-ambient{
  fill:none;stroke:rgba(201,184,255,.25);stroke-width:1.5;
  stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;
}
.sky .const-pulse{
  fill:none;stroke:var(--line);stroke-width:1.8;stroke-dasharray:4 8;
  stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;
  opacity:.8;animation:flow 18s linear infinite;will-change:stroke-dashoffset;
}
@keyframes flow{to{stroke-dashoffset:-120}}

.cname{
  position:absolute;right:4px;bottom:2px;font-family:"Caveat",cursive;
  font-size:1.2rem;color:var(--muted);opacity:.85;display:flex;align-items:center;gap:6px;
  z-index:2;
}

/* pleiades cluster */
.pleiades{
  position:absolute;left:50%;top:34%;width:4px;height:4px;border-radius:50%;background:#fff;
  box-shadow:14px -12px 0 #cfe6ff,22px 2px 0 #fff,10px 16px 0 #cfe6ff,26px -18px 0 #fff,3px -20px 0 #cfe6ff,18px 12px 0 #fff,-8px -6px 0 #cfe6ff;
  animation:twOp 4.5s ease-in-out infinite;pointer-events:none;z-index:2;
}
.pleiades::after{
  content:"";position:absolute;left:-16px;top:-26px;width:56px;height:52px;border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(143,208,255,.18),transparent 70%);
  filter:blur(3px);pointer-events:none;
}

.star{
  --pill-gap:calc(var(--s)*.61 + 22px); /* hovered star radius + halo + 12px of air */
  position:absolute;left:var(--x);top:var(--y);width:0;height:0;
  color:var(--ink);text-decoration:none;
  cursor:pointer;-webkit-tap-highlight-color:transparent;
  z-index:10;transform:translateZ(0);
}

/* empty slots */
.star-unoccupied{
  position:absolute;left:var(--x);top:var(--y);width:0;height:0;
  pointer-events:none;z-index:10;transform:translateZ(0);
}
.star-unoccupied .unoccupied-gem{
  position:absolute;left:calc(var(--s)/-2);top:calc(var(--s)/-2);width:var(--s);height:var(--s);
  display:flex;align-items:center;justify-content:center;
}
.star-unoccupied .unoccupied-gem::before{
  content:"";position:absolute;inset:-6px;border-radius:50%;
  background:radial-gradient(circle, var(--c, #ffe08a) 0%, rgba(255,224,138,0.25) 50%, transparent 72%);
  opacity:.7;filter:drop-shadow(0 0 6px var(--c, #ffe08a));
}
.star-unoccupied .unoccupied-disc{
  position:relative;z-index:2;width:100%;height:100%;border-radius:50%;
  background:radial-gradient(circle at 35% 32%,#2c1c5a,#100a2b 85%);
  border:1.4px solid var(--c, #ffe08a);
  box-shadow:0 0 8px var(--c, #ffe08a), inset 0 0 5px rgba(255,255,255,0.22);
  display:flex;align-items:center;justify-content:center;
  color:var(--c, #ffe08a);
}
.star-unoccupied .unoccupied-disc svg{
  width:56%;height:56%;display:block;
  filter:drop-shadow(0 0 3px var(--c, #ffe08a));
  opacity:.92;
}

.star .node-gem{
  position:absolute;left:calc(var(--s)/-2);top:calc(var(--s)/-2);width:var(--s);height:var(--s);
  display:flex;align-items:center;justify-content:center;
  transition:transform .28s cubic-bezier(.16,1,.3,1),filter .28s;
  z-index:10;transform:translateZ(0);will-change:transform;
}

.star .node-gem::before{
  content:"";position:absolute;inset:-6px;border-radius:50%;
  background:#0f092b;box-shadow:0 0 14px var(--c);opacity:.95;
  transition:all .28s ease;z-index:0;
}

.star .node-rays{
  position:absolute;inset:-22%;background:var(--c);
  clip-path:polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%);
  opacity:.8;transition:transform .3s cubic-bezier(.16,1,.3,1),opacity .3s;
  z-index:1;transform:rotate(0deg) scale(1);
}

.star .node-disc{
  position:relative;z-index:2;width:100%;height:100%;border-radius:50%;
  background:radial-gradient(circle at 35% 32%,#2c1c5a,#100a2b 85%);
  border:1.5px solid var(--c);
  box-shadow:0 0 8px var(--c),inset 0 0 6px rgba(255,255,255,.2);
  display:flex;align-items:center;justify-content:center;
  color:var(--c);transition:transform .28s,border-color .28s,box-shadow .28s,color .28s,background .28s;
}

.star .node-disc svg{
  width:58%;height:58%;display:block;
  filter:drop-shadow(0 0 3px var(--c));
  transition:transform .28s,filter .28s;
}

/* interactions */
.star:hover,
.star:focus-visible,
.star.is-touched{
  z-index:70;
}
.star:hover .node-gem,
.star:focus-visible .node-gem,
.star.is-touched .node-gem{
  transform:scale(1.22) translateZ(0);
}
.star:hover .node-gem::before,
.star:focus-visible .node-gem::before,
.star.is-touched .node-gem::before{
  inset:-10px;opacity:1;box-shadow:0 0 22px var(--c);
}
.star:hover .node-rays,
.star:focus-visible .node-rays,
.star.is-touched .node-rays{
  transform:rotate(45deg) scale(1.15);
  opacity:1;
}
.star:hover .node-disc,
.star:focus-visible .node-disc,
.star.is-touched .node-disc{
  border-color:#fff;
  box-shadow:0 0 18px var(--c),0 0 30px var(--c),inset 0 0 8px #fff;
  color:#fff;
  background:radial-gradient(circle at 35% 32%,#4a2f8c,#180e3c);
}
.star:hover .node-disc svg,
.star:focus-visible .node-disc svg,
.star.is-touched .node-disc svg{
  transform:scale(1.1);
  filter:drop-shadow(0 0 6px #fff);
}

.star.big::after{
  content:"";position:absolute;left:-32px;top:-32px;width:64px;height:64px;
  border:1.5px dashed var(--gold);border-radius:50%;opacity:.7;
  animation:spin 24s linear infinite;pointer-events:none;z-index:1;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* pills */
.thematic-pill{
  position:absolute;top:50%;
  padding:10px 22px 9px 20px;
  background:linear-gradient(135deg,rgba(16,12,42,.96),rgba(32,20,72,.98));
  border:1.5px solid var(--c);
  border-radius:18px 4px 18px 4px;
  backdrop-filter:blur(6px);
  box-shadow:0 12px 34px rgba(4,2,18,.86),0 0 16px rgba(196,168,255,.22),inset 0 1px 0 rgba(255,255,255,.2);
  display:flex;flex-direction:column;line-height:1.2;
  white-space:nowrap;
  min-width:190px;

  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translate3d(0,-50%,0) scale(.92);
  transition:opacity .22s cubic-bezier(.16,1,.3,1),transform .22s cubic-bezier(.16,1,.3,1),visibility .22s,box-shadow .22s;
  z-index:80;will-change:transform,opacity;
}
/* alignements */
.star.r .thematic-pill{left:var(--pill-gap);text-align:left}
.star.r .thematic-pill::before{
  content:"";position:absolute;right:100%;top:50%;width:10px;height:1px;
  background:linear-gradient(90deg,transparent,var(--c));
}

.star.l .thematic-pill{right:var(--pill-gap);text-align:right}
.star.l .thematic-pill::before{
  content:"";position:absolute;left:100%;top:50%;width:10px;height:1px;
  background:linear-gradient(-90deg,transparent,var(--c));
}

.star.b .thematic-pill{left:0;top:var(--pill-gap);text-align:left;transform:translateX(-50%)}
.star.b .thematic-pill::before{
  content:"";position:absolute;left:50%;bottom:100%;width:1px;height:10px;
  background:linear-gradient(0deg,transparent,var(--c));
}

.star.t .thematic-pill{left:0;top:auto;bottom:var(--pill-gap);text-align:left;transform:translateX(-50%)}
.star.t .thematic-pill::before{
  content:"";position:absolute;left:50%;top:100%;width:1px;height:10px;
  background:linear-gradient(180deg,transparent,var(--c));
}

.thematic-pill::after{content:"✦";position:absolute;font-size:8px;color:var(--gold);opacity:.8}
.star.r .thematic-pill::after{top:4px;right:6px}
.star.l .thematic-pill::after{top:4px;left:6px}
.star.b .thematic-pill::after{top:4px;right:6px}
.star.t .thematic-pill::after{top:4px;right:6px}

.star:hover .thematic-pill,
.star:focus-visible .thematic-pill,
.star.is-touched .thematic-pill{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translate3d(0,-50%,0) scale(1);
  box-shadow:0 14px 40px rgba(4,2,18,.92),0 0 24px var(--c),inset 0 1px 0 rgba(255,255,255,.32);
}
.star.b:hover .thematic-pill,
.star.b:focus-visible .thematic-pill,
.star.b.is-touched .thematic-pill,
.star.t:hover .thematic-pill,
.star.t:focus-visible .thematic-pill,
.star.t.is-touched .thematic-pill{
  transform:translate3d(-50%,0,0) scale(1);
}

.thematic-pill .kicker{
  font-family:"Nunito",sans-serif;
  font-size:.65rem;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--gold);margin-bottom:2px;display:block;
}
.thematic-pill b{
  font-family:"Fraunces",Georgia,serif;
  font-size:1.18rem;letter-spacing:.02em;color:var(--ink);
  text-shadow:0 0 10px rgba(255,255,255,.25);display:block;
}
.thematic-pill small{
  font-family:"Caveat",cursive;
  font-size:1.16rem;font-weight:600;color:var(--c);margin-top:2px;display:block;
}

.star:focus-visible{outline:none}
.star:focus-visible .thematic-pill{outline:2px solid var(--gold);outline-offset:2px}

/* list view */
.links-list{
  display:flex;flex-direction:column;gap:12px;
  margin:28px 0 0;padding:0;list-style:none;text-align:left;
  transform:translateZ(0);
}
.links-list[hidden]{display:none}

.list-item-link{
  display:flex;align-items:center;gap:15px;padding:12px 18px;
  background:linear-gradient(135deg,rgba(22,15,54,.88),rgba(34,22,76,.92));
  border:1.5px solid rgba(201,184,255,.28);border-radius:18px;
  color:var(--ink);text-decoration:none;backdrop-filter:blur(4px);
  box-shadow:0 6px 18px rgba(0,0,0,.35);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease;
  position:relative;overflow:hidden;min-height:56px;
}
.list-item-link:hover,
.list-item-link:focus-visible{
  transform:translateY(-2px);border-color:var(--c);
  background:linear-gradient(135deg,rgba(35,22,82,.94),rgba(48,28,102,.96));
  box-shadow:0 10px 24px rgba(0,0,0,.45),0 0 16px var(--c);
  outline:none;
}

.list-icon-badge{
  width:42px;height:42px;flex-shrink:0;border-radius:50%;
  background:radial-gradient(circle at 35% 32%,#2c1c5a,#100a2b 85%);
  border:1.5px solid var(--c);box-shadow:0 0 8px var(--c);
  display:flex;align-items:center;justify-content:center;color:var(--c);
  transition:transform .2s ease,color .2s ease,border-color .2s ease;
}
.list-item-link:hover .list-icon-badge{
  transform:scale(1.08) rotate(4deg);color:#fff;border-color:#fff;
  box-shadow:0 0 14px var(--c);
}
.list-icon-badge svg{width:56%;height:56%;filter:drop-shadow(0 0 3px var(--c))}

.list-content{flex-grow:1;min-width:0;line-height:1.2}
.list-kicker{
  font-family:"Nunito",sans-serif;font-size:.64rem;font-weight:700;
  letter-spacing:.09em;text-transform:uppercase;color:var(--gold);
  margin-bottom:2px;display:block;
}
.list-title{
  font-family:"Fraunces",Georgia,serif;font-size:1.15rem;font-weight:600;
  color:var(--ink);display:block;
}
.list-sub{
  font-family:"Caveat",cursive;font-size:1.12rem;color:var(--c);
  display:block;margin-top:1px;
}

.list-arrow{
  font-size:1.3rem;color:var(--muted);transition:transform .2s ease,color .2s ease;
  flex-shrink:0;opacity:.7;
}
.list-item-link:hover .list-arrow{
  transform:translateX(3px);color:var(--gold);opacity:1;
}

/* loading state */
.loading-icon{
  display:block;width:100%;height:100%;background:currentColor;
  -webkit-mask:url(icons/loading.svg) center/contain no-repeat;
  mask:url(icons/loading.svg) center/contain no-repeat;
  animation:spin 1s linear infinite;
}
.icon{display:inline-flex;width:15px;height:15px;flex-shrink:0}
.icon svg{width:100%;height:100%}
.star-unoccupied .unoccupied-disc .loading-icon{width:56%;height:56%}
.list-icon-badge .loading-icon{width:56%;height:56%}
.sky-loading-text{
  position:absolute;left:50%;top:9%;transform:translateX(-50%);z-index:12;
  font-family:"Caveat",cursive;font-size:1.4rem;color:var(--muted);pointer-events:none;
}
.list-item-link.is-loading{pointer-events:none}
.list-item-link.is-loading .list-title{font-size:1.05rem;color:var(--muted)}
.list-error{padding:14px 18px;text-align:center;font-family:"Caveat",cursive;font-size:1.3rem;color:var(--muted)}

footer{margin-top:58px;font-family:"Caveat",cursive;font-size:1.3rem;color:var(--muted)}
footer span{color:var(--gold)}
footer a{color:var(--muted)}

/* responsive~~~~~~ */
@media (max-width:420px){
  body{padding:24px 10px 42px}
  .title-wrap{margin-top:20px}
  .view-switch{--p:16px;--hit:30px;--lift:8px}
  .hand{font-size:1.35rem}
  .thematic-pill{padding:8px 16px 8px 14px;min-width:160px}
  .thematic-pill b{font-size:1.05rem}
  .thematic-pill small{font-size:1.05rem}
  .thematic-pill .kicker{font-size:.58rem}
  .list-item-link{padding:10px 14px}
  .list-icon-badge{width:38px;height:38px}
}
@media (max-width: 768px){
  .const-pulse {
    animation: none !important;
    will-change: auto !important;
  }
  .zap{
    display: none !important;
  }
  body::before {
    filter: none;
    opacity: 0.45;
  }
  .notice, .thematic-pill, .list-item-link {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .zap{display:none}
  .shoot{display:none}
}

/* svg backup */
.node-disc svg [fill]:not([fill="none"]),
.unoccupied-disc svg [fill]:not([fill="none"]),
.list-icon-badge svg [fill]:not([fill="none"]),
.icon svg [fill]:not([fill="none"]){fill:currentColor}

.node-disc svg [stroke]:not([stroke="none"]),
.unoccupied-disc svg [stroke]:not([stroke="none"]),
.list-icon-badge svg [stroke]:not([stroke="none"]),
.icon svg [stroke]:not([stroke="none"]){stroke:currentColor}

.node-disc svg:not([fill]),
.unoccupied-disc svg:not([fill]),
.list-icon-badge svg:not([fill]),
.icon svg:not([fill]){fill:currentColor}
