:root {
  color-scheme: dark;
  --bg: #101419;
  --panel: #171d24;
  --panel-2: #20262e;
  --text: #f5f7fb;
  --muted: #aeb8c6;
  --line: #313b47;
  --gold: #ffd166;
  --mint: #68e2ad;
  --red: #ff6b6b;
  --purple: #b589ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: var(--gold);
  font-weight: 800;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 56px);
  background: rgba(16, 20, 25, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8d6bff, #ff6b6b 55%, #ffd166);
  color: #0c1015;
  font-weight: 900;
}

.brand strong,
.brand small { display: block; }

.brand small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  color: var(--muted);
  font-size: 14px;
}

nav a:hover { color: var(--text); }

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 36px;
  padding: clamp(42px, 8vw, 96px) clamp(18px, 5vw, 56px) 42px;
  overflow: hidden;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin-bottom: 16px;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.button.primary {
  background: var(--gold);
  color: #17130a;
  border-color: transparent;
}

.button.secondary {
  background: var(--panel);
  color: var(--text);
}

.showcase {
  position: relative;
  min-height: 430px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(181, 137, 255, 0.12), rgba(255, 209, 102, 0.06)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 18px),
    #151b22;
  overflow: hidden;
}

.showcase-menu {
  width: min(100%, 520px);
  margin-inline: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.4));
}

.showcase-tools {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 420px;
  margin-inline: auto;
}

.showcase-tools img,
.tool-strip img,
.product-icon {
  image-rendering: pixelated;
}

.showcase-tools img {
  width: 100%;
  aspect-ratio: 1;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(16, 20, 25, 0.72);
  object-fit: contain;
  animation: float 4.5s ease-in-out infinite;
}

.showcase-tools img:nth-child(2) { animation-delay: -0.7s; }
.showcase-tools img:nth-child(3) { animation-delay: -1.4s; }
.showcase-tools img:nth-child(4) { animation-delay: -2.1s; }
.showcase-tools img:nth-child(5) { animation-delay: -2.8s; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.notice,
.section {
  margin: 0 auto;
  padding: 42px clamp(18px, 5vw, 56px);
}

.notice {
  max-width: 1160px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 820px;
  margin-bottom: 24px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.cosmetics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product {
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.product-link {
  display: block;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.product-link:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 209, 102, 0.65);
  background: #1c242d;
}

.product-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  object-fit: contain;
}

.product.highlight {
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.12), var(--panel));
}

.product p {
  color: var(--muted);
}

.price {
  color: var(--text) !important;
  font-size: 28px;
  font-weight: 900;
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #101419;
  font-size: 12px;
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--gold);
  font-weight: 900;
}

.text-link:hover {
  color: var(--text);
}

.vip { background: #68e2ad; }
.vip-plus { background: #80c7ff; }
.vip-plusplus { background: #d39dff; }
.mvp { background: #ffd166; }
.mvp-plus { background: #ffef9a; }

.vip-text { color: #68e2ad; }
.vip-plus-text { color: #80c7ff; }
.vip-plusplus-text { color: #d39dff; }
.mvp-text { color: #ffd166; }
.mvp-plus-text { color: #ffef9a; }

.band {
  max-width: none;
  background: #151a20;
  border-block: 1px solid var(--line);
}

.coin-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.coin-row div {
  padding: 16px;
  border-radius: 8px;
  background: var(--panel-2);
}

.coin-row strong,
.coin-row span {
  display: block;
}

.coin-row span {
  color: var(--gold);
  font-weight: 800;
}

.preview-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.visual-page .detail-hero {
  min-height: 64vh;
}

.visual-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(104, 226, 173, 0.1), rgba(255, 209, 102, 0.06)),
    var(--panel);
}

.visual-card.danger {
  background:
    linear-gradient(180deg, rgba(255, 107, 107, 0.14), rgba(255, 209, 102, 0.06)),
    var(--panel);
}

.menu-preview {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  background: #0e1218;
  image-rendering: pixelated;
}

.emote-strip {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.emote-strip img {
  width: 54px;
  height: 54px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(16, 20, 25, 0.78);
  image-rendering: pixelated;
  object-fit: contain;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sample-grid span {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.tool-strip.compact {
  max-width: 240px;
  margin: 14px auto 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.showcase-strip {
  grid-template-columns: repeat(8, minmax(48px, 1fr));
}

.rank-page h1 {
  font-size: clamp(54px, 8vw, 118px);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: 32px;
  padding: clamp(42px, 8vw, 92px) clamp(18px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.detail-hero.compact {
  min-height: 54vh;
}

.crumb {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.crumb:hover { color: var(--text); }

.rank-preview,
.checkout-panel,
.info-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.rank-preview {
  display: grid;
  gap: 14px;
}

.preview-title {
  margin-bottom: 2px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-line {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: #0d1116;
  color: #f3f3f3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.score-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.score-line span,
.mini-note,
.steps,
.benefit-list {
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.benefit-list,
.steps {
  margin: 0;
  padding-left: 20px;
}

.benefit-list li,
.steps li {
  margin: 10px 0;
}

.checkout-panel h2 {
  font-size: 28px;
}

.checkout-panel code {
  display: inline-flex;
  margin: 6px 0 14px;
  padding: 10px 14px;
  font-size: 22px;
}

.purchase-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.preview-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.preview-panel.wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 1.4fr) 120px;
  align-items: center;
  gap: 18px;
}

.preview-panel p {
  color: var(--muted);
}

.tool-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(42px, 1fr));
  gap: 10px;
}

.tool-strip img {
  width: 100%;
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 8px;
  background: var(--panel-2);
  object-fit: contain;
}

.animated-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.14), rgba(255, 209, 102, 0.08)), var(--panel-2);
}

.anim-frame {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain;
  image-rendering: pixelated;
  opacity: 0;
  animation: bow-cycle 1.25s steps(1, end) infinite;
}

.anim-frame:nth-child(1) { animation-delay: 0s; }
.anim-frame:nth-child(2) { animation-delay: -0.94s; }
.anim-frame:nth-child(3) { animation-delay: -0.63s; }
.anim-frame:nth-child(4) { animation-delay: -0.31s; }

@keyframes bow-cycle {
  0%, 24% { opacity: 1; }
  25%, 100% { opacity: 0; }
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.menu-grid img {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: #0f1318;
  image-rendering: pixelated;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero,
  .detail-hero,
  .two-col { grid-template-columns: 1fr; }
  .showcase { min-height: 300px; }
  .grid,
  .cosmetics,
  .coin-row,
  .preview-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-panel.wide { grid-template-columns: 1fr; }
  .animated-item { justify-self: center; }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav { flex-wrap: wrap; }

  .grid,
  .cosmetics,
  .coin-row,
  .preview-layout,
  .menu-grid { grid-template-columns: 1fr; }

  .showcase-tools,
  .tool-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  footer { flex-direction: column; }
}
