:root{
  --ink:#fff;
  --ease:cubic-bezier(.32,.72,0,1);
  --spring:cubic-bezier(.34,1.56,.64,1);
  --sat:env(safe-area-inset-top,0px);
  --sab:env(safe-area-inset-bottom,0px);
  --blue:#0a84ff; --red:#ff453a; --green:#30d158;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Hiragino Sans","Hiragino Kaku Gothic ProN",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{background:#000}
html,body{margin:0;min-height:100%;color:var(--ink)}
body{background:transparent;overflow-x:clip}
body{min-height:100dvh;overscroll-behavior-y:none}
#bg{position:fixed;inset:-4%;z-index:-1;transition:background .5s var(--ease)}
img{max-width:100%}
[hidden]{display:none!important}

/* ---- Liquid Glass ---- */
.lg{
  position:relative;isolation:isolate;
  color:var(--ink);
  background:rgba(255,255,255,.10);
  -webkit-backdrop-filter:blur(14px) saturate(180%) brightness(1.06);
  backdrop-filter:blur(14px) saturate(180%) brightness(1.06);
  backdrop-filter:url(#lgf) blur(6px) saturate(180%) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 1px rgba(255,255,255,.14),
    inset 0 0 0 .5px rgba(255,255,255,.28),
    inset 0 0 22px rgba(255,255,255,.06),
    0 10px 30px rgba(0,0,0,.22);
  transition:transform .45s var(--spring),background-color .3s var(--ease);
}
.lg::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;
  background:linear-gradient(160deg,rgba(255,255,255,.22) 0%,rgba(255,255,255,0) 38%,rgba(255,255,255,0) 70%,rgba(255,255,255,.10) 100%)}
.ink-dark .lg{background:rgba(255,255,255,.28)}
.lg.is-pressed,.lg:active{transform:scale(.94)}
@media (hover:hover){.lg.tap:hover{transform:scale(1.04)}}

.pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 24px;border-radius:999px;
  font-size:17px;font-weight:600;letter-spacing:-.01em;text-decoration:none;cursor:pointer;user-select:none;-webkit-user-select:none}
.circ{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;cursor:pointer;user-select:none;-webkit-user-select:none}
.circ svg,.pill svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tint{background:rgba(10,132,255,.55)!important;color:#fff}
.danger{color:var(--red)}

/* shared content */
.tx p{font-size:17px;line-height:1.8;margin:0 0 1.1em;word-break:break-word}
.f1{font-family:"Hiragino Mincho ProN","YuMincho","Noto Serif JP",serif}
.f2{font-family:"Hiragino Maru Gothic ProN","Hiragino Sans",ui-rounded,sans-serif}
.f3{font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:15px}
.ph{margin:22px 0;border-radius:22px;overflow:hidden;background:rgba(255,255,255,.06)}
.ph img{display:block;width:100%;height:auto;cursor:zoom-in}
.tocb{display:flex;align-items:center;justify-content:center;width:200px;height:52px;margin:0 auto;border-radius:26px;background:#1c1c1e;color:#fff;font-size:18px;cursor:pointer;user-select:none;-webkit-user-select:none;transition:transform .4s var(--spring)}
.tocb.is-pressed{transform:scale(.94)}
.toc{max-height:0;overflow:hidden;transition:max-height .5s var(--ease),margin .5s var(--ease);max-width:520px;margin:0 auto;display:flex;flex-direction:column}
.toc.on{max-height:60vh;overflow:auto;margin-top:16px}
.toc a{color:#fff;text-decoration:none;font-size:17px;padding:13px 6px;border-bottom:.5px solid rgba(255,255,255,.12)}
.hd{position:relative;background:#000;color:#fff;border-radius:0 0 44px 44px;padding:calc(var(--sat) + 64px) 28px 26px;margin-bottom:34px;box-shadow:0 12px 40px rgba(0,0,0,.25)}
