:root {
  --ink:#f0edfa;
  --muted:#aaaeca;
  --line:#414465;
  --surface:#12182b;
  --white:#23223a;
  --sage:#181323;
  --phosphor:#77edff;
  --console:"Space Mono",ui-monospace,monospace;
  --display:"Space Grotesk","DM Sans",sans-serif;
  --fx-a:var(--phosphor);
  --fx-a-rgb:119,237,255;
  --fx-a-soft:#d9bdff;
  --fx-b:#ab81ff;
  --fx-b-rgb:171,129,255;
  --fx-gold:#ffc5ec;
  --fx-mist:var(--muted);
  --fx-void:#0b0f20;
  --fx-display:var(--display);
  --fx-glow:0 0 18px #a479f135;
  --fx-glow-hi:0 0 24px #d878e050;
  --fx-line:var(--line);
}

body { color:var(--ink); background:var(--cl-background-primary); }
:focus-visible { outline:2px solid var(--phosphor); outline-offset:3px; }
::selection { color:#161127; background:var(--phosphor); }
.navbar { background:#10120ff7; border-bottom:1px solid var(--line); }
.navbar .navbar-brand { gap:.55rem; color:var(--ink); font:700 1.32rem/1 var(--display); }
.navbar-brand img,.footer .logo img { width:2.28rem; height:2.28rem; object-fit:contain; filter:grayscale(1) brightness(2.7) sepia(1) hue-rotate(36deg); }
.navbar .nav-link { color:var(--muted); }
.navbar .nav-link:hover,.navbar .nav-item a.nav-link.active { color:var(--phosphor); }
.navbar .nav-link:focus-visible { color:var(--phosphor); }
.announcement,.announcement a { background:#28203f; color:var(--ink); }
.btn { border-radius:0; }
.btn-primary { --bs-btn-color:#11172b; --bs-btn-hover-color:#11172b; --bs-btn-active-color:#11172b; --bs-btn-disabled-color:#11172b; font-weight:750; }
.btn-primary:hover { filter:brightness(1.12); }
.btn-outline-primary { --bs-btn-hover-color:#11172b; --bs-btn-active-color:#11172b; }
.form-control,.form-select,.modal-content,.dropdown-menu,.list-group-item { background:#171e37; color:var(--ink); }
.section-title h1,.section-title h2 { font:700 clamp(1.75rem,3vw,3.2rem)/1.08 var(--display); letter-spacing:-.04em; }
.section-title p,.products .card .info,.features .list .feature .description { color:var(--muted); }
.products .card,.categories .card,.testimonial,.status-card,.features .list .feature,.cart .form,.cart .product {
  background:var(--surface); border:1px solid var(--line); color:var(--ink); border-radius:0;
}
.products .card .card-img-top { background:#191f39; overflow:hidden; border-radius:0; }
.products .card:hover,.products .card:focus-within { border-color:var(--phosphor); box-shadow:inset 0 -1px var(--phosphor); transform:none; }
.products .card:hover .card-img-top { background:#2e2851; }
.footer.footer { background:#101528; border-top:1px solid var(--line); }

.terminal-home { padding:clamp(1.35rem,3.2vw,3.4rem) 0 2rem; border-bottom:1px solid var(--line); }
.terminal-home [hidden] { display:none!important; }
.terminal-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; padding-bottom:1.35rem; border-bottom:1px solid var(--line); }
.terminal-title { min-width:0; }
.terminal-title h1 {
  color:var(--ink); font:700 clamp(2.8rem,7vw,7rem)/.9 var(--display);
  text-transform:uppercase; letter-spacing:-.085em; overflow-wrap:anywhere;
  margin:0 0 .75rem;
}
.terminal-title p { color:var(--muted); margin:0; max-width:52ch; line-height:1.6; }
.terminal-title p:empty { display:none; }
.terminal-browse { padding:.66rem .9rem; flex:none; }
.terminal-desk { display:grid; grid-template-columns:minmax(0,1fr) minmax(18rem,.47fr); gap:1px; margin-top:1.2rem; background:var(--line); border:1px solid var(--line); }
.terminal-unit,.terminal-rail { min-width:0; background:#151b31; }
.terminal-bar,.terminal-action {
  min-height:3rem; display:flex; align-items:center; justify-content:space-between; gap:.7rem; padding:.56rem .9rem;
}
.terminal-bar { background:#221d3a; }
.terminal-bar h2,.studio-shelf h2 { margin:0; font-size:.92rem; font-weight:700; }
.terminal-status { color:var(--phosphor); font-size:.75rem; text-align:end; }
.terminal-screen {
  position:relative; isolation:isolate; overflow:hidden; min-height:clamp(14.75rem,26vw,23rem);
  display:flex; align-items:center; justify-content:space-evenly; direction:ltr;
  border-block:1px solid #5c558c;
  background:radial-gradient(ellipse at 38% 50%,#3f2354,#10152a 67%);
}
.terminal-screen::after {
  content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
  background:repeating-linear-gradient(0deg,#05041025 0 1px,transparent 1px 4px);
}
.terminal-circuit {
  position:absolute; inset:0; z-index:-3; pointer-events:none;
  background:linear-gradient(#9b9cfa22 1px,transparent 1px) center/32px 32px,
    linear-gradient(90deg,#9b9cfa22 1px,transparent 1px) center/32px 32px,
    linear-gradient(90deg,transparent 21%,#b887fb38 21% calc(21% + 1px),transparent calc(21% + 1px) 75%,#b887fb38 75% calc(75% + 1px),transparent calc(75% + 1px));
}
.terminal-circuit::before,.terminal-circuit::after {
  content:""; position:absolute; inset:12% 8% 14% 6%; border:1px solid #8b85da60;
  clip-path:polygon(0 0,34% 0,34% 1px,65% 1px,65% 0,100% 0,100% 34%,99% 34%,99% 62%,100% 62%,100% 100%,0 100%);
}
.terminal-circuit::after { inset:20% 4% 5% 13%; opacity:.4; transform:scaleX(-1); }
.terminal-reticle {
  position:absolute; z-index:-1; inset:13% 36% 13% 11%; pointer-events:none;
  background:linear-gradient(90deg,var(--phosphor),var(--phosphor)) top left/1.5rem 1px no-repeat,
    linear-gradient(var(--phosphor),var(--phosphor)) top left/1px 1.5rem no-repeat,
    linear-gradient(90deg,var(--phosphor),var(--phosphor)) bottom right/1.5rem 1px no-repeat,
    linear-gradient(var(--phosphor),var(--phosphor)) bottom right/1px 1.5rem no-repeat;
  opacity:.5;
}
.terminal-fairy {
  width:47%; max-width:20rem; aspect-ratio:1005/1092; flex:none;
  position:relative; isolation:isolate;
  filter:drop-shadow(0 0 10px #f370c569);
}
.terminal-fairy img {
  display:block; width:100%; height:auto;
  filter:brightness(0) saturate(100%) invert(92%) sepia(48%) saturate(950%) hue-rotate(27deg) brightness(106%);
}
.is-casting .terminal-fairy img { animation:terminal-signal .65s ease-out both; }
@keyframes terminal-signal {
  0%,100% { transform:none; }
  25% { transform:translateX(5px) skewX(-5deg); }
  48% { transform:translateX(-3px); }
}
.terminal-sweep {
  position:absolute; z-index:3; inset:0 0 auto; height:3px; opacity:0; pointer-events:none;
  background:linear-gradient(90deg,transparent,#ffdafa 25%,#77edff 70%,transparent);
  box-shadow:0 0 24px 4px #b48eff78;
}
.is-casting .terminal-sweep { animation:terminal-scan .66s ease-out both; }
@keyframes terminal-scan { 0%{top:0;opacity:0} 15%,75%{opacity:.9} 100%{top:100%;opacity:0} }
.wand-card {
  position:relative; z-index:3; display:grid; place-items:center; width:30%; max-width:11rem; min-width:0;
  aspect-ratio:4/5; border:1px solid #ba9cec; text-align:center; background:#29203c;
  box-shadow:5px 5px #110f26;
}
.wand-card::before { content:""; position:absolute; inset:5px; border:1px dashed #b491ed65; pointer-events:none; }
.wand-back i { width:1.6rem; aspect-ratio:1; display:block; border:1px solid #f7a7e3; transform:rotate(45deg); }
.wand-back i::after { content:""; position:absolute; inset:29%; background:#fbc3e7; }
.wand-product { width:100%; min-width:0; display:grid; place-items:center; gap:.35rem; padding:.75rem; color:var(--ink); text-decoration:none; overflow-wrap:anywhere; }
.wand-product strong { line-height:1.15; }
.wand-product span { font-size:.74rem; color:var(--phosphor); }
.wand-thumb { width:100%; height:clamp(2rem,6vw,5rem); object-fit:contain; }
.wand-card.is-found { animation:terminal-found .48s ease-out both; }
@keyframes terminal-found {
  from{ clip-path:inset(44% 0 42%); border-color:#77edff; background:#46366e; }
  to{ clip-path:inset(0); }
}
.terminal-action { min-height:3.65rem; }
.terminal-action .btn { padding:.6rem .9rem; }
.terminal-meter {
  position:relative; width:min(33%,9rem); height:.68rem; overflow:hidden;
  border:1px solid #756aa1; background:repeating-linear-gradient(90deg,#9e8dc735 0 6px,transparent 6px 10px);
}
.terminal-meter::after { content:""; position:absolute; inset:0; background:repeating-linear-gradient(90deg,#77edff 0 6px,transparent 6px 10px); transform:scaleX(0); transform-origin:left; }
.is-casting .terminal-meter::after { animation:terminal-progress .66s linear both; }
@keyframes terminal-progress { to{transform:scaleX(1)} }
.terminal-rail { background:#181a31; }
.studio-shelf h2,.terminal-guide summary { padding:.95rem 1rem; border-bottom:1px solid var(--line); }
.studio-samples a { display:flex; align-items:center; gap:.65rem; min-width:0; padding:.66rem 1rem; border-bottom:1px solid #38334e; color:var(--ink); text-decoration:none; overflow-wrap:anywhere; font-size:.88rem; }
.studio-samples a:hover { color:var(--phosphor); background:#2d2444; }
.studio-samples a::after { content:"↗"; margin-inline-start:auto; color:var(--phosphor); }
.studio-samples img,.studio-gem { width:2.25rem; height:2.25rem; flex:none; object-fit:cover; }
.studio-gem { display:grid; place-items:center; background:#2b2145; color:#eed0ff; font:700 .9rem/1 var(--console); }
.terminal-guide summary { color:var(--phosphor); font-size:.95rem; font-weight:650; cursor:pointer; }
.terminal-guide-body { padding:.85rem 1rem .15rem; }
.terminal-guide-body p { margin:0 0 .78rem; font-size:.85rem; line-height:1.55; word-break:keep-all; color:var(--muted); }
.terminal-stats { display:flex; flex-wrap:wrap; gap:.8rem 1.6rem; padding:1rem 0 0; margin:0; }
.terminal-stats > div { display:flex; flex-direction:column-reverse; gap:.2rem; }
.terminal-stats dt { font-size:.73rem; color:var(--muted); font-weight:500; }
.terminal-stats dd { font:700 1rem/1 var(--console); margin:0; }

.fx-intro { background:#101328; }
.fx-intro__ring { display:none; }
.fx-intro__name { font:700 clamp(1.25rem,3.7vw,2.1rem)/1.15 var(--console); text-shadow:none; color:var(--phosphor); }
.fx-intro__name::after { content:""; width:100%; height:.6rem; margin-top:.7rem; background:repeating-linear-gradient(90deg,var(--phosphor) 0 6px,transparent 6px 10px); transform-origin:left; animation:terminal-progress 1s linear both; }
.fx-intro__name img,.fairy-coupon__icon img,.fx-companion img { filter:grayscale(1) brightness(2.7) sepia(1) hue-rotate(36deg); }
.fairy-coupon-pill { color:#11172b; }
.fx-off .terminal-home *, .fx-off .terminal-home *::before { animation:none!important; }
.fx-live .fx-reveal-card,.fx-live .fx-reveal-title {transition:opacity .4s,translate .4s}
.fx-live .fx-reveal-card:not(.is-in),.fx-live .fx-reveal-title:not(.is-in) {opacity:0;translate:0 .55rem}
@media(max-width:849px) {
  .terminal-desk { grid-template-columns:minmax(0,1fr); }
  .terminal-rail { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr)); }
}
@media(max-width:550px) {
  .terminal-heading { align-items:flex-start; flex-direction:column; }
  .terminal-title h1 { font-size:clamp(2.65rem,12vw,4.5rem); }
  .terminal-rail { display:block; }
}

:root {
  --plasma: #ff66ca;
  --ion: #9e82ff;
  --neon: linear-gradient(115deg, #b86cf1 0%, #ff79c7 52%, #ffc2e7 100%);
}

.navbar {
  position: relative;
  background: #0b1021f7;
  box-shadow: 0 8px 35px #05050f88;
}
.navbar::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #7969d5 28%, #b34a98 57%, #64a0ce 78%, transparent);
}
.navbar-brand img,.footer .logo img { filter: none; border-radius:.5rem; }
.terminal-home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 10% 10%, #2b183d95, transparent 48%),
    radial-gradient(ellipse at 91% 60%, #18255785, transparent 55%),
    linear-gradient(150deg,#0d0e20,#090d19);
}
.terminal-home > .container { position: relative; }
.terminal-home::before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: -40% 0 0;
  pointer-events: none;
  background:
    linear-gradient(135deg,transparent 27%,#9e70ff19 35%,transparent 52%),
    linear-gradient(116deg,transparent 39%,#ec62d02c 46%,#567ed21b 56%,transparent 61%);
}
.fx-live .terminal-home::before { animation: aurora-shift 18s ease-in-out infinite alternate; }
@keyframes aurora-shift {
  from { transform: translate(-7%,-3%) skewX(-10deg); opacity:.66; }
  to { transform: translate(12%,6%) skewX(9deg); opacity:1; }
}
.terminal-title h1 {
  color: #f2e9ff;
  text-shadow: 2px 0 #86e7ff77, -2px 0 #f16ce57d, 0 0 25px #9b7bf04a;
}
.terminal-title p { color:#c3c5de; }
.terminal-heading { border-bottom-color:#966dc15f; }
.terminal-browse:hover { box-shadow:0 0 18px #70e8fa35; }
.terminal-desk {
  gap:clamp(.7rem,1.4vw,1.32rem);
  background:none;
  border:0;
}
.terminal-unit,.terminal-rail {
  overflow:hidden;
  border:1px solid #565486;
  border-radius:.75rem;
}
.terminal-unit {box-shadow:0 0 32px #a15bed2b,0 16px 34px #0608178c;}
.terminal-bar {
  background:linear-gradient(90deg,#141d37,#241834 84%);
  border-bottom:1px solid #8979c252;
}
.terminal-bar h2::before {
  content:"";
  width:.44rem;
  height:.44rem;
  display:inline-block;
  vertical-align:.16em;
  margin-inline-end:.6rem;
  border-radius:50%;
  background:var(--phosphor);
  box-shadow:0 0 10px var(--phosphor);
}
.terminal-status { color:var(--phosphor); transition:color .2s ease; }
.is-casting .terminal-status {color:#ffb4e2;}
.terminal-screen {
  border-block:0;
  background:
    radial-gradient(ellipse at 26% 48%,#652d775f,transparent 54%),
    radial-gradient(ellipse at 75% 65%,#354c9c4d,transparent 56%),
    #0b1428;
}
.terminal-circuit {
  background:
    linear-gradient(#9d8aff22 1px,transparent 1px) center/32px 32px,
    linear-gradient(90deg,#86aaff22 1px,transparent 1px) center/32px 32px;
}
.terminal-circuit::before,.terminal-circuit::after { border-color:#7c9cf775; }
.terminal-orbits {
  position:absolute;
  z-index:-1;
  left:30%;
  top:50%;
  width:min(49%,23rem);
  aspect-ratio:1;
  translate:-50% -50%;
  pointer-events:none;
  border-radius:50%;
  border:1px solid #b494ff7d;
  box-shadow:0 0 30px #d47ee622,inset 0 0 22px #8d8bff27;
}
.terminal-orbits::before,.terminal-orbits::after {
  content:"";
  position:absolute;
  inset:10%;
  border-radius:50%;
  background:conic-gradient(from 28deg,transparent 20%,#a172ee 30%,transparent 34% 63%,#ea6cbe 78%,transparent 81%);
  mask:radial-gradient(closest-side,transparent 97%,#000 98%);
}
.terminal-orbits::after {
  inset:19%;
  background:repeating-conic-gradient(#82edff85 0deg 1deg,transparent 1deg 12deg);
}
.fx-live .terminal-orbits::before { animation: orbit-turn 20s linear infinite; }
.fx-live .terminal-orbits::after { animation: orbit-turn 30s linear infinite reverse; }
@keyframes orbit-turn { to { transform:rotate(360deg); } }
.terminal-fairy { mix-blend-mode:screen; filter:drop-shadow(0 0 17px #f269c865); }
.terminal-fairy img {
  filter:contrast(1.26) brightness(1.18);
  mask-image:radial-gradient(ellipse,#000 54%,#000e 65%,transparent 80%);
}
.fx-live .terminal-home:not(.is-casting) .terminal-fairy img { animation: fairy-drift 6s ease-in-out infinite alternate; }
@keyframes fairy-drift { from {transform:translateY(-3%);} to {transform:translateY(2%);} }
.is-casting .terminal-fairy img { animation: holo-cast 1s ease-out both; }
@keyframes holo-cast {
  0%,100% { transform:none; }
  24% { transform:translate(-4%,-8%) rotate(-6deg); }
  52% { transform:translate(5%,-2%) rotate(7deg); }
}
.terminal-sweep {
  background:linear-gradient(90deg,transparent,#a187ff 16%,#ffd1ef 42%,#8af6ff 72%,transparent);
  box-shadow:0 0 28px 5px #ad97ff94;
}
.is-casting .terminal-sweep { animation-duration:1s; }
.terminal-ray {
  position:absolute;
  z-index:4;
  left:36%;
  right:27%;
  top:48%;
  height:3px;
  border-radius:50%;
  background:linear-gradient(90deg,#ff6ed0,#fff0fb 55%,#81f4ff);
  box-shadow:0 0 14px 3px #e184ff8a;
  transform-origin:left;
  opacity:0;
  pointer-events:none;
}
.is-casting .terminal-ray { animation: signal-ray 1s ease-out both; }
@keyframes signal-ray {
  0%,42% { transform:scaleX(0); opacity:0; }
  51% { opacity:.82; }
  70% { transform:scaleX(1); opacity:1; }
  100% { transform:scaleX(1); opacity:0; }
}
.wand-card {
  border-color:#c393ef;
  background:
    repeating-linear-gradient(0deg,#e4a9ff10 0 1px,transparent 1px 5px),
    linear-gradient(145deg,#2c2450,#20182f 75%);
  border-radius:.45rem;
  box-shadow:0 0 0 4px #b887fb27,0 0 42px #a66ce638;
}
.wand-card::before {border-color:#d084ec8c;border-radius:.23rem;}
.wand-back i {border-color:#f9a5e2; box-shadow:0 0 16px #fa72d669;}
.wand-back i::after {background:#f5b3e9;}
.wand-card.is-found { animation: hologram-reveal .55s ease-out both; }
@keyframes hologram-reveal {
  0% { transform:perspective(500px) rotateY(-43deg) scale(.92); box-shadow:0 0 5px #a08aff; }
  36% { box-shadow:0 0 28px 4px #d58dff96; }
  100% { transform:none; }
}
.terminal-action {background:#151a31;border-top:1px solid #765f9f76;}
.terminal-action .btn {border:none;border-radius:.32rem;background:var(--neon);color:#1d1530;}
.terminal-action .btn:hover {box-shadow:0 0 20px #ef6bcd52;}
.terminal-meter {border-color:#8972bc;background:repeating-linear-gradient(90deg,#9c8dd139 0 6px,transparent 6px 10px);}
.terminal-meter::after {background:repeating-linear-gradient(90deg,transparent 0 6px,#151a31 6px 10px),linear-gradient(90deg,var(--ion),var(--plasma),var(--phosphor));}
.is-casting .terminal-meter::after {animation-duration:1s;}
.terminal-rail {background:linear-gradient(135deg,#171b32,#211831);}
.studio-samples a:hover {background:#322549;}
.studio-gem {background:#312645;color:#f1abec;}
.terminal-guide summary {color:#ffb2e4;}
.footer.footer {border-top-color:#685184;}
.fairy-coupon-pill {background:var(--neon);color:#1d1530;}

.fx-intro {
  isolation:isolate;
  background:radial-gradient(ellipse at center,#342342,#0d1124 58%,#070a14);
}
.fx-intro::before,.fx-intro::after {
  content:"";
  position:absolute;
  z-index:-1;
  left:50%;
  top:50%;
  translate:-50% -50%;
  width:min(22rem,75vw);
  aspect-ratio:1;
  border-radius:50%;
  border:1px solid #8f7cfdbb;
  box-shadow:0 0 42px #ed75d75d,inset 0 0 25px #8f7cfb50;
  animation: connect-wave 1.35s ease-out both;
}
.fx-intro::after {width:min(27rem,88vw);border-style:dashed;animation-delay:.12s;}
@keyframes connect-wave { from{transform:scale(.37) rotate(-32deg);opacity:0} 50%{opacity:1} to{transform:scale(1.13) rotate(15deg);opacity:0} }
.fx-intro__name img,.fairy-coupon__icon img,.fx-companion img {filter:none;mix-blend-mode:screen;}
.fx-intro__name::after {background:repeating-linear-gradient(90deg,transparent 0 6px,#141228 6px 10px),linear-gradient(90deg,var(--ion),var(--plasma),var(--phosphor));}
@media(max-width:550px) {
  .terminal-orbits {left:29%;width:58%;}
  .terminal-ray {left:34%;right:28%;}
}
