:root {
  color-scheme:light dark;
  --page:light-dark(#fbf7fe,#160e1c); --ink:light-dark(#211028,#fff5ff);
  --muted:light-dark(#644f6b,#ccb9d4); --surface:light-dark(#fff,#24172d);
  --line:light-dark(#d5bedc,#594262); --tint:light-dark(#f4e8fb,#35203f);
  --link:light-dark(#7415a1,#efa7ff); --focus:light-dark(#8829ce,#ff84df);
  font-family:Inter,"Segoe UI",system-ui,sans-serif;
}
*,*::before,*::after { box-sizing:border-box }
body { margin:0; background:var(--page); color:var(--ink); line-height:1.55 }
a { color:inherit; text-underline-offset:.2em }
button,textarea { font:inherit }
a:focus-visible,button:focus-visible,textarea:focus-visible { outline:3px solid var(--focus); outline-offset:4px }
.masthead,.policy { width:min(73rem,calc(100% - 3rem)); margin:0 auto }
.masthead { display:flex; align-items:center; justify-content:space-between; min-height:76px; gap:1rem; border-bottom:1px solid var(--line) }
.brand,.home-link { display:inline-flex; align-items:center; min-height:44px; text-decoration:none }
.brand { gap:.6rem; font-size:1.2rem; font-weight:740; letter-spacing:-.05em }
.brand img { width:32px; height:32px }
.home-link { padding:8px 14px; gap:8px; border:1px solid var(--line); border-radius:11px; font-size:.94rem; font-weight:620; background:var(--surface) }
.home-link::before { content:""; width:7px; height:7px; border:solid currentColor; border-width:0 0 1.7px 1.7px; transform:rotate(45deg) }
.home-link:hover,.home-link:focus-visible { border-color:var(--link); color:var(--link); background:var(--tint) }
h1,h2,p,ul { margin:0 }
h1,h2 { line-height:1.08; text-wrap:balance }
.document-title { margin-top:clamp(20px,4vw,48px); padding:clamp(25px,5.5vw,68px); position:relative; isolation:isolate; overflow:hidden; background:linear-gradient(112deg,#261234 20%,#591d66 67%,#9f225b); color:white; border-radius:24px }
.document-title::before,.trial-art::before { content:""; position:absolute; z-index:-1; right:-8%; top:-26%; width:58%; height:152%; background:repeating-radial-gradient(ellipse at 98% 20%,transparent 0 14px,#ff87de77 15px 17px,transparent 18px 24px); mask-image:linear-gradient(100deg,transparent 9%,#000 85%); pointer-events:none }
.document-title h1 { max-width:20ch; font-size:clamp(1.7rem,5.2vw,4.6rem); font-weight:720; letter-spacing:-.062em; overflow-wrap:anywhere }
.updated { color:#ecd7ee; margin-top:1.3rem }
.document-grid { display:grid; grid-template-columns:minmax(12rem,.85fr) minmax(0,2.7fr); gap:clamp(2rem,4vw,4.6rem); padding:clamp(25px,4vw,52px) 0 5rem }
.contents { position:sticky; top:1.4rem; align-self:start; display:grid; gap:4px; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:12px }
.contents h2 { margin:8px 10px 7px; font-size:1.05rem }
.contents a { display:flex; align-items:center; min-height:44px; padding:8px 10px; border-radius:8px; font-size:.95rem; line-height:1.38; color:var(--muted); text-decoration:none }
.contents a:is(:hover,:focus-visible) { background:var(--tint); color:var(--link) }
.contents a[aria-current] { background:var(--tint); color:var(--link); font-weight:650; box-shadow:inset 3px 0 currentColor }
article { max-width:46rem; font-size:1.04rem; line-height:1.66; overflow-wrap:anywhere }
article > section,article > footer { scroll-margin-top:1.5rem }
article > section + section,article > footer { margin-top:2rem; padding-top:2rem; border-top:1px solid var(--line) }
article > section:first-child { font-size:clamp(1.13rem,2vw,1.44rem); line-height:1.52 }
article h2 { margin-bottom:.9rem; font-size:clamp(1.45rem,2.55vw,2.08rem); letter-spacing:-.04em }
article ul { padding-inline-start:1.3rem }
article li + li { margin-top:.62rem }
article li::marker { color:var(--link) }
article a { color:var(--link); font-weight:650 }
article a:hover { text-decoration-thickness:2px }
.trial { width:min(39rem,calc(100% - 2.4rem)); margin:clamp(22px,6vh,70px) auto }
.trial-card { overflow:hidden; position:relative; background:var(--surface); border:1px solid var(--line); border-radius:22px; box-shadow:0 16px 54px #250c340e }
.trial-art { position:relative; isolation:isolate; overflow:hidden; display:grid; place-items:center; min-height:clamp(104px,17vh,155px); background:radial-gradient(ellipse at 82% 120%,#ee296d,transparent 52%),linear-gradient(115deg,#291039,#6717a4 53%,#982789); color:white }
.trial-key { width:74px; aspect-ratio:1; display:grid; place-items:center; border-radius:21px; transform:rotate(-9deg); background:linear-gradient(140deg,#ffffff32,#24052663); border:1px solid #ffc9ff88; box-shadow:4px 5px 0 #36113e60 }
.trial-body { padding:clamp(22px,4vw,42px) }
.trial h1 { font-size:clamp(1.95rem,4.7vw,3.2rem); font-weight:710; letter-spacing:-.06em }
.trial #status { color:var(--muted); font-size:1.04rem; margin-top:.82rem }
.trial #result { margin-top:1.3rem }
.trial label { display:block; font-size:.92rem; font-weight:650; margin-bottom:.45rem }
.trial textarea { width:100%; min-height:58px; padding:.75rem; border-radius:10px; background:var(--page); color:var(--ink); border:1px solid var(--line); resize:vertical; line-height:1.45 }
.trial textarea:hover { border-color:var(--link) }
.trial button,.trial-footer a { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:10px 16px; border-radius:11px; font-size:.98rem; font-weight:660; cursor:pointer }
.trial button { margin-top:.7rem; border:1px solid transparent; background:#761abd; color:white }
.trial button:is(:hover,:focus-visible) { background:#9129ca; box-shadow:0 3px 10px #7f23ad28 }
.trial-footer { display:grid; justify-items:start; gap:.9rem; border-top:1px solid var(--line); margin-top:1.5rem; padding-top:1.25rem }
.trial-footer p { color:var(--muted); font-size:.95rem }
.trial-footer a { border:1px solid var(--line); text-decoration:none; color:var(--link); background:var(--surface) }
.trial-footer a:is(:hover,:focus-visible) { background:var(--tint); border-color:var(--link) }
.trial-card[data-state=attention]:not(:has(#retry:not([hidden]))) .trial-footer a { color:#230e22; background:#ff593c; border-color:transparent }
.trial-card[data-state=attention]:not(:has(#retry:not([hidden]))) .trial-footer a:hover { background:#ff7959 }
.trial-card[data-state=ready] .trial-art { background:linear-gradient(105deg,#412052,#88168f 60%,#e64843) }
[hidden] { display:none !important }
@media(max-width:46rem) {
  .masthead,.policy { width:calc(100% - 2.4rem) }
  .masthead { min-height:65px }
  .document-grid { grid-template-columns:1fr; gap:24px }
  .contents { position:static; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)) }
  .contents h2 { grid-column:1/-1 }
}
@media(prefers-reduced-motion:no-preference) {
  button,a,textarea { transition:background-color .17s,border-color .17s,box-shadow .17s }
  .trial-card[data-state=loading] .trial-key { animation:breathe 1.5s ease-in-out infinite alternate }
  @keyframes breathe { to { transform:translateY(-3px) rotate(-5deg) } }
}
