:root {
  --bg: #07070b;
  --glass: rgba(16, 17, 26, 0.84);
  --glass-2: rgba(22, 23, 34, 0.88);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f5fa;
  --dim: #b8bed0;
  --faint: #7d8398;
  --a: #a98bff;
  --b: #4fd8ff;
  --r: 22px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; font-weight: 800; }
h1 { font-size: 74px; line-height: 1.0; }
h2 { font-size: 40px; margin-bottom: 10px; }
h3 { font-size: 19px; }
.accent { background: linear-gradient(95deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--dim); font-size: 17px; margin: 14px 0 22px; }
.lead.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 720px; }
.lead b { color: #fff; }

/* --------------------------------------------------------------- the three layers */
#space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
#world { position: fixed; inset: 0; z-index: 2; overflow: hidden; }
#world > div { pointer-events: none; }
#world .panel, #world .card, #world .screen, #world .plan, #world .cos { pointer-events: auto; }
#track { position: relative; z-index: 1; width: 1px; pointer-events: none; }

/* --------------------------------------------------------------- bar, rail, hint */
.bar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 30; width: min(1120px, calc(100% - 24px)); display: flex; align-items: center; gap: 18px; padding: 9px 10px 9px 14px; border-radius: 18px; background: rgba(14, 14, 20, 0.72); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bar__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.bar__nav { display: flex; gap: 18px; margin-left: 6px; color: var(--dim); font-weight: 600; font-size: 15px; }
.bar__nav a:hover { color: #fff; }
.bar > .btn { margin-left: auto; }
.rail { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 30; display: flex; flex-direction: column; gap: 10px; }
.rail button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; padding: 0; cursor: pointer; transition: all .2s ease; }
.rail button.is-on { background: linear-gradient(95deg, var(--a), var(--b)); border-color: transparent; transform: scale(1.3); }
.hint { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; color: var(--faint); font-size: 13px; display: flex; gap: 8px; align-items: center; transition: opacity .4s ease; white-space: nowrap; }
.hint i { font-style: normal; animation: bob 1.4s ease-in-out infinite; }
.hint.is-gone { opacity: 0; pointer-events: none; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* --------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 14px 22px; font-weight: 700; font-size: 16px; transition: transform .15s ease, filter .2s ease; border: 1px solid transparent; cursor: pointer; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn--accent { color: #0b0a16; background: linear-gradient(95deg, var(--a), var(--b)); box-shadow: 0 10px 34px rgba(120, 150, 255, .32); }
.btn--dark { color: #fff; background: rgba(27, 27, 34, .9); border-color: var(--line); }
.btn--wide { width: 100%; }
.btn--small { padding: 9px 16px; border-radius: 12px; font-size: 15px; }
.buttons { display: grid; gap: 10px; max-width: 460px; }

/* --------------------------------------------------------------- the panels in space */
.panel, .card, .screen, .plan, .cos { position: absolute; left: 0; top: 0; backface-visibility: hidden; will-change: transform, opacity; }
.panel { width: 640px; padding: 34px 36px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08); }
.panel--hero { width: 660px; }
.panel--hero .lead { font-size: 18px; max-width: 540px; }
.versions { margin: 18px 0 0; color: var(--faint); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.versions i { width: 8px; height: 8px; border-radius: 50%; background: var(--b); box-shadow: 0 0 10px var(--b); }
.panel--title { width: 860px; text-align: center; background: transparent; border: 0; box-shadow: none; }
.panel--faq { width: 720px; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--dim); font-size: 15px; }
.ticks li::before { content: "✓"; color: var(--b); margin-right: 10px; font-weight: 800; }

.screen { width: 640px; border-radius: 18px; overflow: hidden; background: #0b0b12; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 110px rgba(0,0,0,.6), 0 0 0 6px rgba(255,255,255,.03), inset 0 1px 0 rgba(255,255,255,.1); }
.screen img, .screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.screen__tag { position: absolute; left: 12px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(10,10,16,.78); border: 1px solid var(--line); font-size: 12px; color: var(--dim); }

.card { width: 560px; padding: 12px 12px 18px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.45); display: grid; gap: 6px; }
.card img, .card video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 8px; background: #0b0b12; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }

.plan { width: 300px; padding: 22px 18px 18px; border-radius: var(--r); background: var(--glass-2); border: 1px solid var(--line); display: grid; gap: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.plan p { margin: 0; color: var(--dim); font-size: 14px; min-height: 42px; }
.plan b { font-size: 30px; font-weight: 800; margin-top: 4px; }
.plan b s { font-size: 14px; color: var(--faint); font-weight: 500; margin-left: 6px; }
.plan em { font-style: normal; color: var(--faint); font-size: 13px; margin-bottom: 4px; }
.plan--hot { border-color: rgba(169,139,255,.7); box-shadow: 0 0 0 1px rgba(169,139,255,.3), 0 24px 70px rgba(100, 80, 255, .25); }
.plan__tag { position: absolute; top: -12px; left: 16px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #0b0a16; background: linear-gradient(95deg, var(--a), var(--b)); }

.social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.social a { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; }
.social span { color: var(--dim); font-size: 13px; }
details { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; padding: 2px 16px; margin-bottom: 8px; }
summary { padding: 12px 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--faint); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 14px; color: var(--dim); }
.foot { color: var(--faint); font-size: 13px; margin: 16px 0 0; text-align: center; }
.foot a { color: var(--dim); }

/* --------------------------------------------------------------- cosmetics ring */
.chipbar { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 12px); z-index: 30; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: calc(100% - 24px); padding: 8px; border-radius: 18px; background: rgba(14, 14, 20, 0.78); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.chipbar.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.chip { border: 1px solid var(--line); background: rgba(27, 27, 34, .85); color: var(--dim); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.chip.is-active { color: #0b0a16; background: linear-gradient(95deg, var(--a), var(--b)); border-color: transparent; }
.cos { width: 230px; border-radius: 18px; overflow: hidden; background: var(--glass-2); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.5); display: grid; }
.cos img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #0b0b12; }
.cos__body { padding: 10px 12px 12px; display: grid; gap: 3px; }
.cos b { font-size: 15px; }
.cos__meta { color: var(--faint); font-size: 12px; }
.is-rare .cos__meta { color: #6fb4ff; } .is-epic .cos__meta { color: #c08cff; } .is-legendary .cos__meta { color: #ffc256; }
.cos .btn { margin-top: 8px; padding: 10px 12px; font-size: 14px; border-radius: 12px; }

/* --------------------------------------------------------------- phones: the same space, narrower panels */
@media (max-width: 760px) {
  h1 { font-size: 46px; }
  h2 { font-size: 30px; }
  .bar__nav { display: none; }
  .rail { display: none; }
  .panel, .panel--hero { width: 340px; padding: 22px 20px; }
  .panel--title { width: 360px; }
  .panel--faq { width: 350px; }
  .panel--hero .lead { font-size: 16px; }
  .card { width: 320px; }
  .screen { width: 340px; }
  .plan { width: 250px; }
  .cos { width: 190px; }
  .cos .btn { padding: 12px; }
  .cos img { width: 190px; height: 253px; }
  .chipbar { bottom: 10px; padding: 6px; gap: 6px; }
  .chip { padding: 6px 10px; font-size: 12px; }
  .hint { bottom: 12px; font-size: 12px; }
}

.noblur .panel, .noblur .card, .noblur .plan, .noblur .screen__tag { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
