:root {
  --bg: #0f0906;
  --bg2: #1a110b;
  --panel: rgba(38, 25, 16, .78);
  --panel-hi: rgba(56, 37, 23, .9);
  --line: rgba(255, 190, 110, .14);
  --line-hi: rgba(255, 190, 110, .32);
  --text: #f6ece1;
  --muted: #b9a693;
  --amber: #ffb020;
  --orange: #ff8a1f;
  --cyan: #5fe0f0;
  --green: #4ade80;
  --radius: 18px;
  --head: "Lilita One", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 15px/1.6 var(--body);
  background: radial-gradient(1200px 600px at 20% -10%, #3a1f0c 0%, transparent 60%), radial-gradient(900px 500px at 90% 10%, #2a1608 0%, transparent 60%), var(--bg);
  overflow-x: hidden;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.glow { position: fixed; inset: auto 0 -30vh 0; height: 60vh; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 100%, rgba(255, 138, 31, .10), transparent 70%); }
header, main, footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
code { font-family: var(--mono); background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 6px; }
button { font: inherit; color: inherit; cursor: pointer; }

/* header */
.top { position: sticky; top: 12px; z-index: 20; max-width: 1060px; margin: 12px auto 0; padding: 0 16px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px;
  background: rgba(22, 14, 9, .82); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.brand { display: flex; align-items: center; gap: 10px; font: 20px var(--head); letter-spacing: .3px; }
.brand img { height: 30px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.brand span { color: var(--amber); }
.bar-right { display: flex; align-items: center; gap: 8px; }
.ip-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); font: 600 13px var(--mono); transition: border-color .2s, background .2s; }
.ip-chip:hover { border-color: var(--line-hi); background: rgba(255,255,255,.06); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); display: inline-block; }
.dot.amber { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.btn { border: 0; border-radius: 11px; padding: 9px 16px; font-weight: 700; transition: transform .15s, filter .15s, background .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #ffc24a, var(--orange)); color: #2a1404; box-shadow: 0 6px 20px rgba(255, 138, 31, .35), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line-hi); }
.btn.wide { width: 100%; padding: 12px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: default; }
.icon-btn { position: relative; width: 40px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.icon-btn:hover { border-color: var(--line-hi); }
.badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: #2a1404; font-size: 11px; display: grid; place-items: center; }
.user-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-weight: 700; }
.user-pill img { width: 30px; height: 30px; border-radius: 8px; image-rendering: pixelated; }
.tabs { display: flex; justify-content: center; gap: 4px; margin: 10px auto 0; width: max-content; max-width: 100%; padding: 5px;
  background: rgba(22, 14, 9, .7); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(12px); overflow-x: auto; }
.tabs a { padding: 6px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; transition: color .2s, background .2s; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--amber); background: rgba(255, 176, 32, .12); }

/* layout */
main { max-width: 1060px; margin: 0 auto; padding: 40px 16px 80px; min-height: 60vh; }
.eyebrow { margin: 0 0 8px; font: 800 12px var(--body); letter-spacing: 2px; text-transform: uppercase; color: var(--amber); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: .3px; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.04; }
h1 .hot { background: linear-gradient(90deg, var(--amber), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(28px, 4vw, 38px); }
.muted { color: var(--muted); }
.section { margin-top: 90px; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head p:not(.eyebrow) { color: var(--muted); max-width: 560px; margin: 10px auto 0; }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 30px; padding-top: 10px; }
.hero p.lead { color: var(--muted); font-size: 16px; max-width: 470px; margin: 18px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font: 700 14px var(--mono); }
.chip small { font: 500 11px var(--body); color: var(--muted); }
button.chip:hover { border-color: var(--line-hi); }
.hero-art { position: relative; height: 340px; display: grid; place-items: center; }
.hero-art .halo { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,176,32,.35), transparent 65%); filter: blur(10px); animation: pulse 5s ease-in-out infinite; }
.hero-art .crest { position: relative; width: 210px; image-rendering: pixelated; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); animation: bob 5s ease-in-out infinite; }
.hero-art .orbit { position: absolute; width: 56px; image-rendering: pixelated; filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
.hero-art .o1 { top: 30px; left: 30px; animation: bob 4s ease-in-out infinite .4s; }
.hero-art .o2 { top: 60px; right: 20px; width: 64px; animation: bob 4.6s ease-in-out infinite 1s; }
.hero-art .o3 { bottom: 30px; left: 60px; animation: bob 5.2s ease-in-out infinite 1.6s; }
.hero-art .o4 { bottom: 40px; right: 50px; width: 48px; animation: bob 4.2s ease-in-out infinite 2s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes pulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

/* category cards */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.cats.two { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.cat { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.cat:hover { transform: translateY(-4px); border-color: var(--line-hi); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.cat-art { height: 150px; display: grid; place-items: center; position: relative; overflow: hidden; }
.cat-art::before { content: ""; position: absolute; inset: 0; background: var(--tint, radial-gradient(circle at 50% 60%, rgba(255,176,32,.35), transparent 65%)); }
.cat-art img { position: relative; image-rendering: pixelated; filter: drop-shadow(0 10px 16px rgba(0,0,0,.55)); transition: transform .3s; }
.cat:hover .cat-art img { transform: scale(1.06) rotate(-2deg); }
.cat-art .stack { position: relative; display: flex; align-items: flex-end; gap: 6px; }
.cat-art .stack img { width: 58px; }
.cat-art .stack img:nth-child(3) { width: 78px; }
.cat-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.cat-body h3 { font-size: 24px; }
.cat-body p { color: var(--muted); font-size: 14px; margin: 6px 0 14px; flex: 1; }
.cat-foot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.cat-foot .from { color: var(--muted); }
.cat-foot .from b { color: var(--text); font-size: 16px; }
.cat-foot .go { color: var(--amber); font-weight: 700; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.step .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255,176,32,.14); color: var(--amber); font-weight: 800; }
.step h3 { font-size: 21px; margin: 12px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* faq */
.faq { max-width: 640px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-hi); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 20px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* shop pages */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin: 8px 0 0; max-width: 560px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pkg { display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.pkg:hover { transform: translateY(-4px); border-color: var(--line-hi); box-shadow: 0 16px 36px rgba(0,0,0,.45); }
.pkg-img { aspect-ratio: 1; background: #1c120b; cursor: pointer; overflow: hidden; }
.pkg-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.pkg:hover .pkg-img img { transform: scale(1.04); }
.pkg-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pkg-body h3 { font-size: 21px; }
.pkg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { font-weight: 800; font-size: 18px; margin: 0; }
.price .per { color: var(--muted); font-weight: 500; font-size: 13px; }
.price s {color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 6px; }
.pkg-row .btn { padding: 8px 12px; font-size: 13px; }
.sale { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: rgba(74,222,128,.15); color: var(--green); font-size: 11px; font-weight: 800; vertical-align: middle; }

/* rank comparison */
.ranks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.rank { --c: var(--amber); position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: transform .2s, border-color .2s, box-shadow .2s; }
.rank::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--c) 28%, transparent), transparent 55%); pointer-events: none; }
.rank:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 16px 36px rgba(0,0,0,.45), 0 0 30px color-mix(in srgb, var(--c) 18%, transparent); }
.rank img { position: relative; width: 96px; height: 110px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); }
.rank h3 { position: relative; font-size: 24px; color: var(--c); margin-top: 10px; }
.rank .price { position: relative; margin: 4px 0 12px; }
.rank ul { position: relative; list-style: none; padding: 0; margin: 0 0 14px; font-size: 13px; color: var(--muted); text-align: left; width: 100%; flex: 1; }
.rank li { padding: 5px 0 5px 20px; border-top: 1px solid rgba(255,255,255,.05); position: relative; }
.rank li::before { content: "✦"; position: absolute; left: 2px; color: var(--c); }
.rank .btn { position: relative; width: 100%; }
.rank.best { border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.rank .tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 8px; background: var(--c); color: #2a1404; font-size: 11px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }

.empty, .loading { text-align: center; color: var(--muted); padding: 60px 0; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,176,32,.2); border-top-color: var(--amber); animation: spin 0.8s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* modals + drawer */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(8, 4, 2, .7); backdrop-filter: blur(6px); animation: fade .2s; }
.modal[hidden], .drawer[hidden], .toast[hidden], .badge[hidden] { display: none; }
.modal-card { position: relative; width: 100%; max-width: 420px; max-height: 90vh; overflow: auto; padding: 26px; border-radius: 20px; border: 1px solid var(--line-hi); background: linear-gradient(180deg, #2a1b10, #1a110b); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: pop .22s; }
.modal-card h3 { font-size: 28px; margin-bottom: 6px; }
.x { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-size: 20px; line-height: 1; }
.x:hover { border-color: var(--line-hi); }
.user-row { display: flex; gap: 10px; margin: 18px 0 14px; }
.user-row img { width: 48px; height: 48px; border-radius: 10px; image-rendering: pixelated; background: #2a1b10; }
.user-row input { flex: 1; min-width: 0; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-hi); background: rgba(0,0,0,.3); color: var(--text); font: 600 16px var(--mono); outline: none; }
.user-row input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,176,32,.15); }
.pkg-card { max-width: 520px; }
.pkg-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; padding-right: 30px; }
.pkg-head img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; flex: none; }
.desc { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.desc strong { color: var(--text); }
.desc ul { padding-left: 18px; }
.drawer { position: fixed; inset: 0; z-index: 50; background: rgba(8, 4, 2, .6); backdrop-filter: blur(4px); animation: fade .2s; }
.drawer-card { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%); padding: 22px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(180deg, #2a1b10, #160e09); border-left: 1px solid var(--line-hi); animation: slide .25s; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer-top h3 { font-size: 26px; }
.drawer-top .x { position: static; }
.cart-user { font-size: 14px; color: var(--muted); }
.cart-items { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.line { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.line img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; }
.line div { flex: 1; min-width: 0; }
.line b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line small { color: var(--muted); }
.line button { border: 0; background: none; color: var(--muted); font-size: 13px; }
.line button:hover { color: #ff7a6a; }
.cart-total { display: flex; justify-content: space-between; font-size: 17px; padding-top: 12px; border-top: 1px solid var(--line); }
.tiny { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; padding: 11px 18px; border-radius: 12px; background: #2a1b10; border: 1px solid var(--line-hi); box-shadow: 0 14px 40px rgba(0,0,0,.5); font-weight: 600; animation: pop .2s; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.toast { animation: none; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }

/* footer */
.foot { border-top: 1px solid var(--line); background: rgba(10, 6, 4, .6); }
.foot-in { max-width: 1060px; margin: 0 auto; padding: 30px 16px 10px; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-brand img { height: 34px; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 340px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; color: var(--muted); font-weight: 600; font-size: 14px; }
.foot-links a:hover { color: var(--amber); }
.legal { max-width: 1060px; margin: 0 auto; padding: 0 16px 30px; color: #85735f; font-size: 12px; }

/* responsive */
@media (max-width: 900px) {
  .ranks { grid-template-columns: repeat(2, 1fr); }
  .ranks .rank:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { height: 230px; order: -1; }
  .hero-art .crest { width: 140px; }
  .cats, .cats.two, .steps { grid-template-columns: 1fr; }
  .ip-chip .ip-text { display: none; }
  .brand span { display: none; }
  .tabs { justify-content: flex-start; }
  main { padding-top: 26px; }
  .section { margin-top: 64px; }
}
@media (max-width: 480px) {
  .ranks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
