:root {
  --bg: #03040d;
  --glow: #1a27c9;
  --panel: rgba(13, 18, 58, .72);
  --panel-solid: #0c1138;
  --line: rgba(137, 153, 255, .26);
  --line-on: rgba(166, 180, 255, .75);
  --text: #e8ecff;
  --muted: #a3acd8;
  --accent: #8da0ff;
  --wave: #6d7de6;
  --wave-on: #e8ecff;
  --mono: Consolas, "SF Mono", "DejaVu Sans Mono", "Courier New", monospace;
}
* { box-sizing: border-box; }
html { background: radial-gradient(ellipse 72% 58% at 50% 42%, rgba(26,39,201,.62), rgba(10,15,80,.34) 52%, transparent 78%) fixed, var(--bg); -webkit-text-size-adjust: 100%; }
body { position: relative; min-height: 100vh; margin: 0; color: var(--text); font: 16px/1.55 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
canvas.stars { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
#splash canvas.stars { position: absolute; z-index: 0; }
body::after { content: ""; position: fixed; inset: 0; z-index: 50; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.022) 0 1px, transparent 1px 3px); pointer-events: none; }
a { color: var(--accent); }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0; font-weight: 500; }
button { font: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 22px; }

.top { border-bottom: 1px solid var(--line); background: rgba(3, 4, 13, .62); }
.top .wrap { display: flex; align-items: center; gap: 12px 24px; min-height: 66px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; flex: none; align-items: center; gap: 10px; color: #fff; font: 600 18px/1 var(--mono); letter-spacing: .24em; text-decoration: none; text-shadow: 0 0 9px rgba(160,175,255,.8); text-transform: uppercase; }
.logo svg { display: block; flex: none; width: 26px; height: 26px; }
.search { position: relative; flex: 0 1 300px; min-width: 0; margin: 0; }
.search input { width: 100%; height: 40px; padding: 0 40px 0 12px; border: 1px solid var(--line); border-radius: 0; background: rgba(4, 7, 30, .8); color: var(--text); font: inherit; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { border-color: var(--line-on); outline: 0; box-shadow: 0 0 12px rgba(120,140,255,.45); }
.search button { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; padding: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.search svg { display: block; width: 20px; height: 20px; }
.menu { display: flex; flex: none; gap: 24px; margin-left: auto; font-family: var(--mono); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.menu a { padding: 5px 0; border-bottom: 1px solid transparent; color: var(--muted); text-decoration: none; }
.menu a:hover { color: #fff; }
.menu a.here { border-color: #fff; color: #fff; }

.filters .wrap { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; padding-bottom: 0; }
.filters button { padding: 7px 13px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-family: var(--mono); font-size: 14px; letter-spacing: .03em; cursor: pointer; }
.filters button:hover { border-color: var(--line-on); }
.filters button[aria-pressed=true] { border-color: #fff; background: #fff; color: #0a0f3c; }
.filters .n { opacity: .7; }

.hero .wrap { padding-top: 34px; padding-bottom: 8px; }
.hero h1 { font-size: 34px; line-height: 1.15; text-shadow: 0 0 14px rgba(150,165,255,.55); }
.hero p { margin: 6px 0 0; color: var(--muted); font-size: 17px; }
.crumbs { margin-bottom: 8px; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.crumbs a { color: var(--accent); }

main.wrap { padding-top: 22px; padding-bottom: 66px; }
#count { margin: 0 0 12px; color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: .05em; }
#grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 18px; }
.card { min-width: 0; border: 1px solid var(--line); background: var(--panel); transition: border-color .15s, box-shadow .15s; }
.card:hover, .card:focus-within { border-color: var(--line-on); box-shadow: 0 0 20px rgba(84,104,255,.42); }
.card-top { position: relative; height: 92px; padding: 16px 0; border-bottom: 1px solid var(--line); background: rgba(3, 5, 26, .68); }
.wave { position: relative; height: 100%; color: var(--wave); }
.wave svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.wave .fg { color: var(--wave-on); clip-path: inset(0 100% 0 0); }
.play { position: absolute; right: 14px; bottom: -21px; z-index: 1; width: 42px; height: 42px; padding: 0 0 0 2px; border: 1px solid var(--line-on); border-radius: 50%; background: var(--panel-solid); box-shadow: 0 0 10px rgba(110,130,255,.55); color: #fff; font-size: 15px; line-height: 40px; text-align: center; cursor: pointer; }
.play:hover { background: #2a39d8; }
.play.on { padding-left: 0; border-color: #fff; background: #2a39d8; }
.card-body { padding: 14px 16px 14px; }
.card h3 { padding-right: 44px; overflow-wrap: anywhere; font-size: 16.5px; line-height: 1.3; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: #fff; text-shadow: 0 0 8px rgba(170,185,255,.9); }
.by { margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.card-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.chips { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 5px; min-width: 0; height: 25px; overflow: hidden; }
.chip { padding: 1px 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 12px/21px var(--mono); cursor: pointer; }
.chip:hover { border-color: var(--line-on); color: #fff; }
.dur { flex: none; color: var(--text); font: 13px var(--mono); }
.dl { display: block; flex: none; width: 26px; height: 26px; padding: 5px; border: 1px solid var(--line-on); color: #fff; }
.dl:hover { background: #2a39d8; color: #fff; }
.dl svg { display: block; width: 14px; height: 14px; }
.note { align-self: stretch; padding: 16px; border: 1px dashed var(--line); }
.note h2 { font-size: 22px; line-height: 1.2; }
.note p { margin: 11px 0 0; color: #cfd5f5; font-size: 14.5px; }
.empty { grid-column: 1 / -1; padding: 28px 0; color: var(--muted); }

.faq { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.faq > h2 { margin-bottom: 16px; font-size: 24px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; }
.faq h3 { font-size: 16.5px; }
.faq p { margin: 4px 0 0; color: #cfd5f5; font-size: 14.5px; }

.prose { max-width: 720px; font-size: 17px; }
.prose h2 { margin: 26px 0 6px; font-size: 22px; }
.prose p { margin: 0 0 12px; color: #dde2fb; }

.detail { max-width: 880px; }
.detail > .card-top { height: 170px; border: 1px solid var(--line-on); box-shadow: 0 0 22px rgba(84,104,255,.42); cursor: pointer; }
.detail .desc { margin: 12px 0; font-size: 18px; }
audio { display: block; width: 100%; margin: 14px 0; color-scheme: dark; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 10px 17px; border: 1px solid #fff; background: #fff; color: #0a0f3c; font-weight: 600; text-decoration: none; }
.btn:hover { background: transparent; color: #fff; }
.btn svg { display: block; width: 16px; height: 16px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 18px; margin: 20px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.more { margin-top: 34px; }
.more > h2 { margin-bottom: 14px; font-size: 22px; }
.more .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

footer.bottom { border-top: 1px solid var(--line); background: rgba(3, 4, 13, .72); color: var(--muted); font: 13px var(--mono); }
footer.bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 26px; padding-top: 17px; padding-bottom: 19px; }
footer.bottom a { margin-right: 14px; color: inherit; }
footer.bottom a:hover { color: #fff; }
.keys span { margin-right: 15px; white-space: nowrap; }
.keys b { padding: 0 5px; border: 1px solid var(--line-on); color: #fff; font-weight: 400; }

#splash { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px; background: radial-gradient(ellipse 66% 58% at 50% 50%, #1b28cf, #0d1370 48%, #02030a 82%); color: #fff; text-align: center; cursor: pointer; opacity: 1; transition: opacity .45s; }
#splash.gone { opacity: 0; pointer-events: none; }
.splash-inner { position: relative; z-index: 1; width: 100%; }
.splash-logo { margin: 0; font: 400 clamp(25px, 7.4vw, 66px)/1.1 var(--mono); letter-spacing: .2em; margin-right: -.2em; text-shadow: 0 0 6px #fff, 0 0 22px rgba(160,180,255,.95); text-transform: uppercase; }
.splash-sub { margin: 16px 0 34px; color: #d7ddff; font: 15px var(--mono); letter-spacing: .36em; margin-right: -.36em; }
.splash-go { color: #fff; font: 17px var(--mono); letter-spacing: .2em; animation: pulse 1.8s ease-in-out infinite; }
.splash-how { margin-top: 12px; color: #c0c8f3; font: 13px var(--mono); letter-spacing: .1em; }
.cube { position: absolute; top: 50%; left: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); transform-style: preserve-3d; perspective: 900px; animation: spin var(--t) linear infinite; opacity: .55; }
.cube i { position: absolute; inset: 0; border: 1px solid rgba(190,205,255,.85); }
.cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.c1 { --s: 150px; --t: 22s; }
.c2 { --s: 52px; --t: 15s; left: calc(50% - 230px); top: 60%; }
.c3 { --s: 44px; --t: 18s; left: calc(50% + 225px); top: 40%; }
@keyframes spin { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }
@keyframes pulse { 50% { opacity: .42; } }
@media (prefers-reduced-motion: reduce) {
  .cube, .splash-go { animation: none; }
  .cube { transform: rotateX(-24deg) rotateY(35deg); }
  #splash, .card { transition: none; }
}

@media (max-width: 980px) {
  #grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top .wrap { flex-wrap: wrap; }
  .search { order: 3; flex: 1 1 100%; }
  .keys { display: none; }
}
@media (max-width: 680px) {
  .wrap { padding-right: 16px; padding-left: 16px; }
  .top .wrap { gap: 9px 10px; }
  .logo { font-size: 14px; letter-spacing: .14em; gap: 7px; }
  .logo svg { width: 22px; height: 22px; }
  .menu { gap: 9px; font-size: 11px; letter-spacing: 0; }
  #grid, .faq-grid, .more .list { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .filters button { padding: 6px 9px; font-size: 13px; }
  .note h2, .faq > h2 { font-size: 21px; }
  .splash-sub { letter-spacing: .2em; margin-right: -.2em; font-size: 13px; }
  .splash-go { font-size: 15px; letter-spacing: .12em; }
  .c1 { --s: 104px; }
  .c2 { --s: 38px; left: calc(50% - 124px); top: 64%; }
  .c3 { --s: 34px; left: calc(50% + 122px); top: 36%; }
}
