:root{
  --sp-bg:#02050d;
  --sp-bg2:#071a42;
  --sp-ink:#eef7ff;
  --sp-blue:#2e8cff;
  --sp-blue2:#6fc8ff;
  --sp-muted:#91a5bf;
  --sp-line:rgba(124,190,255,.20);
}
*{box-sizing:border-box}
html,body{margin:0;min-width:100%;min-height:100%;background:var(--sp-bg)}
body{
  min-height:100svh;
  overflow-x:hidden;
  color:var(--sp-ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at 50% 42%,rgba(20,101,255,.24),transparent 35rem),
    radial-gradient(circle at 50% 80%,rgba(15,83,213,.16),transparent 30rem),
    linear-gradient(180deg,#010307 0%,#06112a 52%,#010208 100%);
}
a{color:inherit}
button,select{font:inherit}
.spell{
  height:100svh;
  min-height:100svh;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto auto;
  isolation:isolate;
  position:relative;
  overflow-x:clip;
  overflow-y:visible;
  padding-bottom:4px;
}
.spell::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  opacity:.24;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,transparent 4%,#000 30%,#000 82%,transparent 100%);
}
.spell-header{
  width:min(1500px,calc(100% - 40px));
  margin-inline:auto;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:clamp(20px,3vw,38px) 0 8px;
}
.spell-brand{
  text-decoration:underline;
  text-underline-offset:.18em;
  text-decoration-thickness:1px;
  font-weight:950;
  font-size:.78rem;
  letter-spacing:.32em;
  color:#7cc8ff;
  opacity:.86;
}
.spell-title-block{text-align:right}
.spell-name{
  margin:0;
  font-size:clamp(.9rem,1.4vw,1.05rem);
  font-weight:900;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:#f8fcff;
}
.spell-tagline{
  margin:5px 0 0;
  color:var(--sp-muted);
  font-size:clamp(.72rem,1.2vw,.88rem);
  letter-spacing:.08em;
  text-transform:uppercase;
}
.spell-stage{
  min-height:0;
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  perspective:900px;
  padding:clamp(18px,4vh,52px) 10px clamp(6px,1.5vh,18px);
}
.spell-aura{
  position:absolute;
  pointer-events:none;
  left:50%;
  top:50%;
  width:min(88vw,1280px);
  height:min(46vw,520px);
  transform:translate(-50%,-50%);
  z-index:-1;
  border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(31,123,255,.26),rgba(19,71,177,.08) 46%,transparent 72%);
  filter:blur(12px);
  transition:opacity .25s ease,transform .4s ease;
}
.spell-horizon{
  position:absolute;
  left:50%;
  bottom:12%;
  width:min(96vw,1500px);
  height:34%;
  transform:translateX(-50%);
  z-index:-2;
  pointer-events:none;
  opacity:.46;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(30,127,255,.30),transparent 54%),
    repeating-linear-gradient(180deg,rgba(74,158,255,.10) 0 1px,transparent 1px 14px);
  mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.58) 42%,transparent 100%);
}
.spell-word{
  --spell-word-size:10rem;
  flex-shrink:0;
  position:relative;
  top:var(--spell-word-offset,0px);
  margin:0;
  width:100%;
  max-width:calc(100vw - 24px);
  display:flex;
  align-items:baseline;
  justify-content:center;
  flex-wrap:wrap;
  row-gap:.55em;
  column-gap:.42em;
  color:#dcecff;
  font-family:"Arial Black","Segoe UI Black",Impact,Haettenschweiler,sans-serif;
  font-size:var(--spell-word-size);
  font-weight:950;
  line-height:.86;
  letter-spacing:-.055em;
  text-transform:uppercase;
  text-align:center;
  transform-style:preserve-3d;
  filter:drop-shadow(0 .08em .05em rgba(0,0,0,.58));
}
.spell-word-group{
  display:inline-flex;
  flex:0 0 auto;
  white-space:nowrap;
}
.spell-letter,
.spell-separator{
  display:inline-block;
  position:relative;
}
.spell-letter{
  transform-origin:50% 72%;
  transform-style:preserve-3d;
  will-change:transform,filter,color;
  color:#d8e8f9;
  -webkit-text-stroke:.008em rgba(255,255,255,.28);
  text-shadow:
    0 .018em 0 rgba(255,255,255,.46),
    0 .06em .025em rgba(0,0,0,.68),
    0 0 .10em rgba(59,140,255,.10);
  transition:color .16s ease,text-shadow .18s ease,filter .18s ease,opacity .18s ease;
}
.spell-separator{width:.42em}
.spell-word > .spell-separator[data-separator=" "]{display:none}
.spell-separator[data-separator="-"]{width:.34em}
.spell-separator[data-separator="'"]{width:.16em}
.spell-letter.was-hit{color:#c8ddf3}
.spell-letter.is-current{
  color:#fff;
  filter:brightness(1.18);
  text-shadow:
    0 0 .045em rgba(255,255,255,.96),
    0 0 .14em rgba(111,200,255,.95),
    0 0 .30em rgba(46,140,255,.88),
    0 .09em .05em rgba(0,0,0,.72);
}
.spell-letter.is-hit{
  animation:spell-hit .52s cubic-bezier(.16,.76,.22,1) both;
}
@keyframes spell-hit{
  0%{transform:translate3d(0,0,0) scale3d(1,1,1)}
  24%{transform:translate3d(0,-.16em,145px) scale3d(1.38,1.48,1.38)}
  48%{transform:translate3d(0,-.08em,72px) scale3d(1.18,1.23,1.18)}
  76%{transform:translate3d(0,-.025em,20px) scale3d(1.055,1.07,1.055)}
  100%{transform:translate3d(0,0,0) scale3d(1,1,1)}
}
.spell.is-playing .spell-aura{
  opacity:1;
  transform:translate(-50%,-50%) scale(1.04);
}
.spell-subline{
  flex-shrink:0;
  position:relative;
  top:var(--spell-word-offset,0px);
  margin:clamp(22px,4vh,44px) 0 0;
  color:#5da7ff;
  text-transform:uppercase;
  font-weight:800;
  font-size:clamp(.75rem,1.5vw,1rem);
  letter-spacing:.42em;
  text-align:center;
  text-shadow:0 0 18px rgba(46,140,255,.28);
}
.spell-controls{
  position:relative;
  z-index:20;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:2px 20px clamp(18px,3vh,30px);
}
.spell-list{
  position:fixed;
  z-index:60;
  left:50%;
  top:50%;
  transform:translateX(-50%);
  width:min(calc(100vw - 24px),420px);
  margin:0;
  padding:14px;
  border:1px solid rgba(124,190,255,.34);
  border-radius:14px;
  background:rgba(3,14,36,.96);
  text-align:center;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 18px 50px rgba(0,0,0,.52),0 0 32px rgba(46,140,255,.16);
  backdrop-filter:blur(10px);
  max-height:calc(100vh - 24px);
  overflow-y:auto;
}
.spell-list-label,
.spell-voice-heading{
  display:block;
  margin:0 0 9px;
  color:#a7d8ff;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.20em;
  text-transform:uppercase;
}
.spell-list-select{
  width:100%;
  min-height:42px;
  border:1px solid rgba(124,190,255,.38);
  border-radius:8px;
  background:#061633;
  color:#eef7ff;
  padding:0 12px;
  font-weight:800;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),0 8px 24px rgba(0,0,0,.20);
}
.spell-list-catalog-row{
  margin-top:10px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:10px;
}
.spell-list-catalog-label{
  color:#7ebeff;
  font-size:.66rem;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
  white-space:nowrap;
}
.spell-list-catalog-select{
  width:100%;
  min-height:36px;
  border:1px solid rgba(124,190,255,.28);
  border-radius:8px;
  background:#041126;
  color:#dcecff;
  padding:0 10px;
  font-size:.76rem;
  font-weight:800;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035);
}
.spell-voice{
  width:min(100%,760px);
  margin:0 0 16px;
  text-align:center;
}
.spell-voice-options{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}
.spell-voice-choice{
  appearance:none;
  border:1px solid rgba(124,190,255,.34);
  border-radius:999px;
  background:rgba(4,17,43,.70);
  color:#c9dcf0;
  min-height:40px;
  padding:0 16px;
  cursor:pointer;
  touch-action:manipulation;
  font-size:.78rem;
  font-weight:850;
  letter-spacing:.05em;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 8px 24px rgba(0,0,0,.20);
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.spell-voice-choice:hover:not(:disabled){
  transform:translateY(-1px);
  border-color:rgba(151,219,255,.68);
  color:#fff;
}
.spell-voice-choice:focus-visible,
.spell-list-select:focus-visible,
.spell-list-catalog-select:focus-visible{outline:3px solid #fff;outline-offset:4px}
.spell-voice-choice.is-selected{
  border-color:rgba(142,220,255,.92);
  background:linear-gradient(180deg,rgba(39,118,205,.66),rgba(7,33,82,.88));
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10),0 0 24px rgba(46,140,255,.28),0 9px 28px rgba(0,0,0,.28);
}
.spell-voice-choice.is-random-current{
  color:#fff;
  background:rgba(31,117,202,.92);
  border-color:rgba(214,245,255,1);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.26),0 0 38px rgba(74,174,255,.88),0 9px 28px rgba(0,0,0,.28);
  animation:spell-random-voice-pulse .62s ease-out both;
}
@keyframes spell-random-voice-pulse{
  0%{transform:translateY(-1px) scale(1.055)}
  42%{transform:translateY(-1px) scale(1.055)}
  100%{transform:none}
}
.spell-playback{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px}
.spell-list-button,
.spell-diagnose,
.spell-calibrate{
  min-height:44px;
  padding:0 16px;
  border:1px solid var(--sp-line);
  border-radius:999px;
  background:#061633;
  color:var(--sp-ink);
  font-size:.75rem;
  font-weight:850;
  letter-spacing:.08em;
  cursor:pointer;
}
.spell-list-button:focus-visible,
.spell-diagnose:focus-visible,
.spell-calibrate:focus-visible{outline:3px solid #fff;outline-offset:4px}
.spell-list-button:disabled,.spell-diagnose:disabled,.spell-calibrate:disabled,.spell-voice-choice:disabled,.spell-list-select:disabled,.spell-list-catalog-select:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.spell-list-button.is-open,.spell-calibrate{border-color:rgba(142,220,255,.58);box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
.spell-list-button.is-open{background:linear-gradient(180deg,rgba(39,118,205,.42),rgba(7,33,82,.82));color:#fff}
.spell-maker-launch{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap}
.spell-maker-launch:hover{border-color:rgba(142,220,255,.58);background:linear-gradient(180deg,rgba(39,118,205,.30),rgba(7,33,82,.78));color:#fff}
.spell-tune-hint{margin:12px 0 0;color:var(--sp-muted);font-size:.76rem;text-align:center}
.spell-reports{margin-top:12px;text-align:center;color:var(--sp-muted);font-size:.78rem}
.spell-reports p{margin:0 0 4px}
.spell-reports a{display:inline-block;padding:12px;color:var(--sp-blue2);text-underline-offset:.2em}
.spell-reports a[hidden]{display:none}
.spell-reports a:focus-visible{outline:3px solid #fff;outline-offset:2px}
.spell-play{
  appearance:none;
  position:relative;
  z-index:21;
  pointer-events:auto;
  touch-action:manipulation;
  border:1px solid rgba(102,190,255,.78);
  background:linear-gradient(180deg,rgba(18,62,126,.70),rgba(3,18,49,.92));
  color:#fff;
  min-width:142px;
  height:66px;
  padding:0 25px;
  border-radius:999px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 0 0 5px rgba(32,132,255,.08),
    0 0 34px rgba(37,128,255,.30),
    0 14px 34px rgba(0,0,0,.42);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.spell-play:hover{
  transform:translateY(-2px);
  border-color:#9edaff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 0 0 6px rgba(32,132,255,.11),0 0 46px rgba(37,128,255,.42),0 16px 38px rgba(0,0,0,.45);
}
.spell.is-playing .spell-play{
  border-color:#c8edff;
  filter:brightness(1.12);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.16),
    0 0 0 7px rgba(32,132,255,.15),
    0 0 56px rgba(74,171,255,.58),
    0 16px 40px rgba(0,0,0,.46);
}
.spell-play:disabled{
  cursor:wait;
  opacity:.68;
  transform:none;
}
.spell-play:focus-visible{outline:3px solid #fff;outline-offset:5px}
.spell-play-icon,
.spell-play-label{pointer-events:none}
.spell-play-icon{
  width:0;
  height:0;
  border-top:9px solid transparent;
  border-bottom:9px solid transparent;
  border-left:15px solid #fff;
  filter:drop-shadow(0 0 8px rgba(255,255,255,.55));
}
.spell-play-label{font-size:.92rem;font-weight:950;letter-spacing:.13em}
.spell-status{
  margin:15px 0 0;
  min-height:1.3em;
  color:var(--sp-muted);
  font-size:.82rem;
  text-align:center;
}
.spell-footer{
  width:min(1500px,calc(100% - 40px));
  margin-inline:auto;
  min-height:52px;
  padding:14px 0 18px;
  border-top:1px solid var(--sp-line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  color:#64758d;
  font-size:.67rem;
  letter-spacing:.22em;
  text-transform:uppercase;
}
.spell-footer a{text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:1px;color:#3f9cff}
.spell-footer a:hover{color:#a9dcff}
@media (min-width:721px) and (max-height:780px){
  .spell-header{padding-top:clamp(20px,4vh,30px)}
  .spell-stage{padding-block:12px 24px}
  .spell-subline{margin-top:clamp(16px,3vh,22px)}
  .spell-controls{padding-bottom:clamp(12px,2.4vh,18px)}
  .spell-voice{margin-bottom:12px}
  .spell-status{margin-top:12px}
}
@media (max-width:720px){
  .spell-header{width:calc(100% - 24px);padding-top:18px}
  .spell-title-block{text-align:right}
  .spell-tagline{display:none}
  .spell-stage{padding-inline:3px}
  .spell-subline{letter-spacing:.28em}
  .spell-voice{margin-bottom:14px}
  .spell-list-label,.spell-voice-heading{font-size:.66rem;letter-spacing:.16em}
  .spell-voice-options{gap:7px}
  .spell-voice-choice{min-height:38px;padding:0 12px;font-size:.73rem}
  .spell-footer{width:calc(100% - 24px);font-size:.58rem;letter-spacing:.14em}
}
@media (max-width:430px){
  .spell-header{align-items:center}
  .spell-name{font-size:.78rem;letter-spacing:.16em}
  .spell-brand{font-size:.68rem;letter-spacing:.22em}
  .spell-voice{width:100%;padding-inline:2px}
  .spell-voice-options{display:grid;grid-template-columns:1fr;gap:7px;width:min(100%,260px);margin-inline:auto}
  .spell-voice-choice{width:100%}
  .spell-play{min-width:128px;height:60px}
  .spell-status{font-size:.76rem}
  .spell-subline{font-size:.64rem;letter-spacing:.19em}
  .spell-footer{justify-content:center;text-align:center}
  .spell-footer span{display:none}
}
@media (prefers-reduced-motion:reduce){
  .spell-letter,.spell-play,.spell-voice-choice,.spell-aura{transition:none!important}
  .spell-letter.is-hit{animation:none!important}
  .spell-letter.is-current{filter:brightness(1.35)}
  .spell-voice-choice.is-random-current{animation:none!important;background:rgba(31,117,202,.92);border-color:rgba(214,245,255,1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.26),0 0 32px rgba(74,174,255,.78),0 9px 28px rgba(0,0,0,.28)}
}
.spell-user-list-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.spell-user-list-button,.spell-user-list-save,.spell-user-list-cancel,.spell-user-list-delete{
  min-height:34px;padding:0 12px;border:1px solid rgba(124,190,255,.30);border-radius:999px;background:#061633;color:#dcecff;
  font-size:.68rem;font-weight:900;letter-spacing:.08em;cursor:pointer
}
.spell-user-list-button:hover:not(:disabled),.spell-user-list-save:hover:not(:disabled),.spell-user-list-cancel:hover:not(:disabled),.spell-user-list-delete:hover:not(:disabled){border-color:rgba(151,219,255,.70);color:#fff}
.spell-user-list-editor{margin-top:12px;padding-top:12px;border-top:1px solid rgba(124,190,255,.18);text-align:left}
.spell-user-list-field{display:block;margin-bottom:9px;color:#9ecfff;font-size:.66rem;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.spell-user-list-field span{display:block;margin-bottom:5px}
.spell-user-list-field input,.spell-user-list-field textarea{box-sizing:border-box;width:100%;border:1px solid rgba(124,190,255,.30);border-radius:8px;background:#041126;color:#eef7ff;padding:9px 10px;font:700 .80rem/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;text-transform:none;resize:vertical}
.spell-user-list-help{margin:2px 0 10px;color:#88a7c8;font-size:.68rem;line-height:1.4;text-align:left}
.spell-user-list-editor-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.spell-user-list-save{border-color:rgba(142,220,255,.58);background:linear-gradient(180deg,rgba(39,118,205,.42),rgba(7,33,82,.82));color:#fff}
.spell-user-list-delete{margin-right:auto;border-color:rgba(255,130,130,.35);color:#ffcaca}
.spell-user-list-button:focus-visible,.spell-user-list-save:focus-visible,.spell-user-list-cancel:focus-visible,.spell-user-list-delete:focus-visible,.spell-user-list-field input:focus-visible,.spell-user-list-field textarea:focus-visible{outline:3px solid #fff;outline-offset:3px}
.spell-user-list-button:disabled,.spell-user-list-save:disabled,.spell-user-list-cancel:disabled,.spell-user-list-delete:disabled,.spell-user-list-field input:disabled,.spell-user-list-field textarea:disabled{opacity:.55;cursor:not-allowed}


/* a=1 / ?show= launch gate: conceal the real term from first paint. */
body.spell-autoplay-gated{overflow:hidden}
body.spell-autoplay-gated .spell{visibility:hidden;pointer-events:none;user-select:none}
.spell-start-gate{
  position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:22px;
  background:
    radial-gradient(circle at 50% 42%,rgba(20,101,255,.20),transparent 34rem),
    radial-gradient(circle at 50% 80%,rgba(15,83,213,.12),transparent 30rem),
    linear-gradient(180deg,#010307 0%,#06112a 52%,#010208 100%)
}
.spell-start-gate[hidden]{display:none}
.spell-start-card{
  opacity:0;visibility:hidden;transform:scale(.97);pointer-events:none;
  padding:14px;border:1px solid rgba(121,196,255,.50);border-radius:999px;text-align:center;
  background:linear-gradient(180deg,rgba(10,39,88,.98),rgba(3,17,42,.99));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),0 0 0 6px rgba(43,139,255,.08),0 24px 70px rgba(0,0,0,.58);
  transition:opacity .16s ease,transform .16s ease
}
.spell-start-gate.is-ready .spell-start-card{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.spell-start-button{
  min-width:190px;min-height:58px;padding:0 26px;border:1px solid #8ed7ff;border-radius:999px;
  background:linear-gradient(180deg,#236fbd,#082b64);color:#fff;cursor:pointer;
  font:950 .86rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.13em;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 0 30px rgba(44,145,255,.38),0 12px 30px rgba(0,0,0,.40)
}
.spell-start-button:hover:not(:disabled){filter:brightness(1.12);transform:translateY(-1px)}
.spell-start-button:focus-visible{outline:3px solid #fff;outline-offset:4px}
.spell-start-button:disabled{opacity:.48;cursor:wait;transform:none}
@media (max-width:430px){.spell-start-card{padding:12px}.spell-start-button{min-width:170px}}
@media (prefers-reduced-motion:reduce){.spell-start-card,.spell-start-button{transition:none}}
