/* 字宙 Wordverse · cosmic stage line (2026-11-15). Small and quiet: one line under the brand, details on tap. */
.cosmos{position:absolute;z-index:19;left:max(10px,calc(env(safe-area-inset-left,0px) - 6px));top:calc(54px + env(safe-area-inset-top,0px));
  display:inline-flex;align-items:center;gap:.42em;max-width:calc(100% - 84px);padding:.28em .8em .28em .5em;border-radius:999px;
  font-size:clamp(11px,calc(10px + .25vw),13.5px);line-height:1.35;letter-spacing:.02em;color:var(--ink-3);white-space:nowrap;
  font-variant-numeric:tabular-nums;font-family:var(--ui,inherit);background:none;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:opacity .6s,background .25s,color .25s}
.cosmos:hover,.cosmos.on{background:rgba(255,255,255,.07);color:var(--ink-2)}
.cosmos .cz-glyph{display:inline-flex;flex:none}
.cosmos .cz-g{width:1.45em;height:1.45em;flex:none;overflow:visible;filter:drop-shadow(0 0 .35em var(--cz,#e6cb92));animation:cz-breathe 3.6s ease-in-out infinite}
.cosmos .cz-stage{font-weight:600;color:var(--ink-2);letter-spacing:.06em}
.cosmos .cz-sep{opacity:.55}
.cosmos .cz-stat{overflow:hidden;text-overflow:ellipsis}
.cosmos .cz-stat i{font-style:normal;color:var(--ink-2);display:inline-block;transition:color .4s}
.cosmos .cz-stat i.cz-tick{animation:cz-tick 1.1s ease-out}
.cosmos .cz-plus{position:relative;margin-left:-.1em;font-size:.86em;font-weight:600;color:var(--gold);opacity:0;pointer-events:none}
.cosmos.cz-mine .cz-plus{animation:cz-plus 2.4s ease-out forwards}
.cosmos.cz-burst .cz-g{animation:cz-burst 1.6s ease-out}
.cosmos.off{opacity:0;pointer-events:none;transition:none}
.cosmos.cz-above{z-index:32}
@keyframes cz-breathe{50%{transform:scale(1.08)}}
@keyframes cz-tick{0%{color:#fff6dd;text-shadow:0 0 10px rgba(230,203,146,.9)}100%{color:var(--ink-2);text-shadow:none}}
@keyframes cz-plus{0%{opacity:0;transform:translateY(4px)}20%{opacity:1;transform:none}70%{opacity:1}100%{opacity:0;transform:translateY(-8px)}}
@keyframes cz-burst{0%{transform:scale(1)}30%{transform:scale(1.9);filter:drop-shadow(0 0 12px var(--cz,#e6cb92))}100%{transform:scale(1)}}
.cz-spin{transform-origin:16px 16px;animation:cz-spin 14s linear infinite}
.cz-spin-slow{transform-origin:16px 16px;animation:cz-spin 40s linear infinite}
@keyframes cz-spin{to{transform:rotate(360deg)}}

/* make room: the member focus chip, the usage-data bar and the drag hint move down one line,
   and the 複習／plan panels on phones stop just under the line so it stays visible above them */
.app.has-cosmos.tabbed .sheet.tab.on{max-height:calc(100% - 172px)}
.app.has-cosmos .focus-chip,.app.has-cosmos .consent-bar{top:calc(88px + env(safe-area-inset-top,0px))}
.app.has-cosmos .hint{top:calc(134px + env(safe-area-inset-top,0px))}
.app.has-cosmos .toast{top:calc(162px + env(safe-area-inset-top,0px))}

/* details */
.cosmos-pop{position:absolute;z-index:45;left:max(12px,env(safe-area-inset-left,0px));top:calc(86px + env(safe-area-inset-top,0px));
  width:min(360px,calc(100% - 24px));max-height:calc(100% - 110px);overflow:auto;border-radius:24px;padding:16px 16px 14px;
  background:linear-gradient(180deg,rgba(34,35,44,.92),rgba(16,17,24,.95));font-size:clamp(13px,calc(12px + .2vw),14.5px);line-height:1.5;
  border:1px solid rgba(255,255,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 18px 40px rgba(0,0,0,.45);
  backdrop-filter:blur(26px) saturate(170%);-webkit-backdrop-filter:blur(26px) saturate(170%);color:var(--ink,#f3eee4);text-align:left;
  opacity:0;transform:translateY(-6px) scale(.98);transform-origin:20% 0;transition:opacity .22s,transform .25s cubic-bezier(.22,.8,.2,1)}
.cosmos-pop.on{opacity:1;transform:none}
.cz-x{position:absolute;right:8px;top:8px;width:34px;height:34px;border-radius:50%;border:0;background:none;color:var(--ink-2,#b9b2a5);font:20px/1 var(--ui,inherit);cursor:pointer}
.cz-eyebrow{margin:0;font-size:.82em;letter-spacing:.14em;color:var(--gold)}
.cz-now{display:flex;align-items:center;gap:12px;margin:10px 0 0}
.cz-now h3{margin:0;font-size:1.55em;font-weight:600;letter-spacing:.06em;color:var(--ink)}
.cz-now small{display:block;margin-top:2px;font-size:.82em;color:var(--ink-3)}
.cz-big{width:46px;height:46px;flex:none;overflow:visible;filter:drop-shadow(0 0 10px var(--cz,#e6cb92))}
.cz-desc{margin:10px 0 0!important;font-size:.95em;line-height:1.6;color:var(--ink-2);text-wrap:pretty}
.cz-nums{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 0}
.cz-nums div{padding:9px 12px;border-radius:14px;background:rgba(255,255,255,.045);border:1px solid var(--line-dim,rgba(255,255,255,.08))}
.cz-nums b{display:block;font-family:var(--display);font-weight:400;font-size:1.75em;line-height:1.1;color:var(--ink);font-variant-numeric:tabular-nums}
.cz-nums span{font-size:.82em;color:var(--ink-3)}
.cz-bar{height:6px;margin:14px 0 0;border-radius:3px;background:rgba(255,255,255,.08);overflow:hidden}
.cz-bar i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,var(--gold),var(--cz,#e6cb92));box-shadow:0 0 10px var(--cz,#e6cb92);transition:width .8s cubic-bezier(.22,.8,.2,1)}
.cz-next{margin:8px 0 0!important;font-size:.88em;color:var(--ink-2)}
.cz-next b{color:var(--ink);font-variant-numeric:tabular-nums}
.cz-next em{font-style:normal;color:var(--gold);margin-left:.2em}
.cz-ladder{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);gap:8px 2px;margin:14px 0 0;padding:12px 0 0;border-top:1px solid var(--line-dim,rgba(255,255,255,.08))}
.cz-ladder li{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;font-size:.74em;color:var(--ink-3);text-align:center}
.cz-ladder li span{white-space:nowrap}
.cz-mini{width:22px;height:22px;overflow:visible}
.cz-ladder li.future .cz-mini{opacity:.28;filter:grayscale(1)}
.cz-ladder li.future span{opacity:.6}
.cz-ladder li.past{color:var(--ink-2)}
.cz-ladder li.now{color:var(--ink)}
.cz-ladder li.now .cz-mini{filter:drop-shadow(0 0 6px var(--cz,#e6cb92))}
.cz-ladder li.now span{font-weight:600;border-bottom:1px solid var(--gold)}
.cz-foot{text-wrap:pretty;margin:12px 0 0!important;font-size:.78em!important;line-height:1.55!important;color:var(--ink-3)!important}

/* /roots word-list pages: the line sits in the page flow right under the header */
.cz-wrap{position:relative;margin:-18px 0 22px;z-index:5}
.cz-wrap .cosmos{position:relative;left:auto;top:auto;margin-left:-.5em;max-width:calc(100% + .5em)}
.cz-wrap .cosmos-pop{left:-4px;top:calc(100% + 8px);max-height:none}

/* very narrow phones: drop the word 次 */
@media (max-width:359px){.cosmos .cz-u{display:none}}
@media (min-width:900px){
  .cosmos{left:max(18px,env(safe-area-inset-left,0px));top:calc(58px + env(safe-area-inset-top,0px))}
  .cosmos-pop{left:24px;top:calc(94px + env(safe-area-inset-top,0px))}
  .app.has-cosmos .hint{top:auto}
  .app.has-cosmos.tabbed .sheet.tab.on{max-height:calc(100% - 200px)}
  .app.has-cosmos .focus-chip,.app.has-cosmos .consent-bar{top:calc(94px + env(safe-area-inset-top,0px))}
}

/* stars lit (2026-11-25): a third number between visits and revisions, shown once the server sends it */
.cosmos [hidden]{display:none!important}
/* when three numbers do not fit (cosmos.js fit()): drop 次, then tighten, then leave out the visits */
.cosmos.cz-t1 .cz-u{display:none}
.cosmos.cz-t1 .cz-stat i{margin-right:.24em}
@media (max-width:359px){.cosmos .cz-stat i{margin-right:.24em}}
.cosmos.cz-t2{gap:.26em;letter-spacing:0;padding-right:.5em}
.cosmos.cz-t3 [data-s="visits"]{display:none!important}
.cz-nums.cz-three{grid-template-columns:repeat(3,1fr);gap:6px}
.cz-nums.cz-three div{padding:9px 10px;min-width:0}
.cz-nums.cz-three b{font-size:1.45em}
