/* Adaptive Chromatic Orb V11
   One robust Canvas animation for laptop and mobile. No CDN/WebGL dependency. */
:root { --orb-v11-hue: 188; --orb-v11-accent: hsl(var(--orb-v11-hue) 100% 55%); }
html, body, #root { max-width: 100%; }
body { overflow-x: clip; }
.orb-v11-shell {
  --orb-hue: var(--orb-v11-hue);
  position: relative;
  isolation: isolate;
  width: min(1180px, calc(100% - 2rem));
  height: clamp(330px, 45vw, 540px);
  min-height: 330px;
  margin: 1.25rem auto 2.25rem;
  overflow: hidden;
  color: #f7f7fb;
  background:
    radial-gradient(circle at 50% 48%, hsl(var(--orb-hue) 95% 50% / .10), transparent 42%),
    linear-gradient(180deg, #09090c 0%, #040405 100%);
  border: 3px solid #111;
  border-radius: 3px 30px 3px 22px;
  box-shadow:
    9px 9px 0 hsl(calc(var(--orb-hue) + 115) 100% 52%),
    -4px -4px 0 hsl(var(--orb-hue) 100% 52%);
  contain: layout paint style;
}
.orb-v11-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(hsl(var(--orb-hue) 100% 60% / .09) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--orb-hue) 100% 60% / .09) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 78%, transparent);
}
.orb-v11-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  box-shadow: inset 0 0 90px #000, inset 0 0 24px hsl(var(--orb-hue) 100% 55% / .08);
}
.orb-v11-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  outline: none;
}
.orb-v11-canvas:active { cursor: grabbing; }
.orb-v11-canvas:focus-visible { box-shadow: inset 0 0 0 3px #fff; }
.orb-v11-topline,
.orb-v11-caption {
  position: absolute;
  z-index: 6;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
  font-family: "JetBrains Mono", "Cascadia Code", ui-monospace, monospace;
  text-transform: uppercase;
}
.orb-v11-topline { top: .9rem; }
.orb-v11-caption { bottom: .9rem; align-items: flex-end; }
.orb-v11-kicker,
.orb-v11-mode {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: .42rem .62rem;
  color: #050506;
  background: hsl(var(--orb-hue) 100% 55%);
  border: 2px solid #050506;
  box-shadow: 3px 3px 0 hsl(calc(var(--orb-hue) + 115) 100% 52%);
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .08em;
}
.orb-v11-mode {
  max-width: 50%;
  color: #fff;
  background: #09090c;
  border-color: hsl(var(--orb-hue) 100% 55%);
  box-shadow: none;
  text-align: right;
}
.orb-v11-title {
  max-width: 72%;
  color: #fff;
  text-shadow: 2px 2px 0 #000, 0 0 22px hsl(var(--orb-hue) 100% 55% / .38);
  font-size: clamp(.85rem, 2vw, 1.2rem);
  font-weight: 950;
  letter-spacing: .04em;
}
.orb-v11-hint {
  color: hsl(var(--orb-hue) 100% 72%);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: right;
}
.orb-v11-noscript { color: #fff; padding: 4rem 1rem; text-align: center; }

@media (max-width: 1023.98px) {
  html, body { overflow-x: clip !important; }
  #root, #root main, #root section { min-width: 0; }
  #root :is(.grid,.flex) > * { min-width: 0; }
  #root :is(p,li,td,th,code,pre,span,strong,small) { overflow-wrap: anywhere; }
  #root canvas, #root svg, #root img { max-width: 100%; }
  .orb-v11-shell {
    width: min(calc(100% - 1rem), 46rem);
    max-width: calc(100vw - 1rem);
    height: clamp(300px, 88vw, 430px);
    min-height: 300px;
    margin-top: 1rem;
    border-radius: 3px 22px 3px 17px;
    box-shadow: 6px 6px 0 hsl(calc(var(--orb-hue) + 115) 100% 52%), -3px -3px 0 hsl(var(--orb-hue) 100% 52%);
  }
  .orb-v11-topline,.orb-v11-caption { left: .7rem; right: .7rem; }
  .orb-v11-topline { top: .7rem; }
  .orb-v11-caption { bottom: .7rem; }
  .orb-v11-kicker,.orb-v11-mode { padding: .34rem .48rem; font-size: .55rem; }
  .orb-v11-title { max-width: 65%; font-size: .75rem; }
  .orb-v11-hint { max-width: 34%; font-size: .52rem; }
}
@media (max-width: 430px) {
  .orb-v11-shell {
    width: calc(100% - .55rem);
    max-width: calc(100vw - .55rem);
    height: clamp(285px, 96vw, 390px);
    min-height: 285px;
    margin-left: .15rem;
    margin-right: .4rem;
  }
  .orb-v11-mode { display: none; }
  .orb-v11-title { max-width: 68%; }
}
@media (prefers-reduced-motion: reduce) {
  .orb-v11-shell { scroll-behavior: auto; }
}
