:root { color-scheme: dark; background:#070a0d; }
* { box-sizing:border-box; }
html,body { margin:0; min-height:100%; }
body { color:#fff; font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; }

:focus-visible {
  outline: 2px solid #51c5ff;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.6rem 1rem;
  background: #51c5ff;
  color: #05080c;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  z-index: 100;
  transition: top 0.2s ease-out;
}
.skip-link:focus {
  top: 1rem;
}

.guide-drawer {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 10;
}
.guide-drawer summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  background: rgba(8, 11, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
  user-select: none;
}
.guide-drawer summary::-webkit-details-marker {
  display: none;
}
.guide-drawer summary:hover,
.guide-drawer summary:focus-visible {
  color: #f1f5f9;
  border-color: rgba(81, 197, 255, 0.5);
  background: rgba(8, 11, 15, 0.9);
}
.guide-content {
  position: fixed;
  top: calc(max(1rem, env(safe-area-inset-top)) + 52px);
  right: max(1rem, env(safe-area-inset-right));
  width: min(92vw, 480px);
  max-height: calc(100svh - 90px);
  overflow-y: auto;
  background: rgba(10, 14, 18, 0.94);
  border: 1px solid rgba(81, 197, 255, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(81, 197, 255, 0.1);
  color: #e2e8f0;
  line-height: 1.6;
  font-size: 0.9rem;
}
.guide-content h2 {
  font-size: 1.15rem;
  margin: 1.25rem 0 0.5rem;
  color: #ffcd64;
  letter-spacing: 0.04em;
}
.guide-content h2:first-of-type {
  margin-top: 0;
}
.guide-content h3 {
  font-size: 0.95rem;
  margin: 1rem 0 0.25rem;
  color: #51c5ff;
}
.guide-content p {
  margin: 0.25rem 0 0.75rem;
  color: #cbd5e1;
}
.guide-content a {
  color: #51c5ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guide-content a:hover {
  color: #fff;
}
.guide-content .links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.guide-content .shortcut-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.8rem;
  background: rgba(255,255,255,0.08);
}

.scene {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #070a0d url('./blank-shirt.png') 50% 50%/cover no-repeat;
}
.scene::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(0deg,rgba(0,0,0,.34),transparent 17%,transparent 83%,rgba(0,0,0,.07));
}
.neon {
  position: absolute;
  width: min(45vw, 86svh);
  height: auto;
  left: 50%;
  top: 55%;
  transform: translate(-50%,-50%);
  overflow: visible;
}
.emission {
  animation: warm-up 1.5s var(--delay) both, current var(--duration) calc(1.6s + var(--delay)) infinite;
}
.spill {
  mix-blend-mode: screen;
}
.reference {
  position: absolute;
  z-index: 3;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font: inherit;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .24em;
  white-space: nowrap;
  text-transform: uppercase;
  color: #b9bfc3;
  text-shadow: 0 2px 10px #000;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: .5rem 1rem;
  border-radius: 4px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, text-shadow .2s;
}
.reference:hover,
.reference:focus-visible {
  color: #effdff;
  text-shadow: 0 0 12px rgba(81, 197, 255, 0.6);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@keyframes warm-up {
  0%,13% { opacity:.12; }
  18% { opacity:.85; }
  23% { opacity:.27; }
  34%,100% { opacity:1; }
}
@keyframes current {
  0%,70%,73%,100% { opacity:1; }
  71% { opacity:.76; }
  71.7% { opacity:.96; }
  72% { opacity:.86; }
}
@media(max-aspect-ratio: 1/1) {
  .scene { background-size:auto 100%; }
  .neon { width:min(108vw, 78svh); top:53%; }
}
@media(prefers-reduced-motion:reduce) {
  .emission { animation:none; }
  .skip-link { transition:none; }
}
