:root {
  color-scheme: dark;
  --bg: #0c0906;
  --ink: #f6ead4;
  --mute: #b9a48c;
  --gold: #f0b429;
  --gold-2: #c47a12;
  --line: rgba(255, 214, 150, 0.12);
  --glass: rgba(32, 22, 12, 0.72);
  --font: "Outfit", "Avenir Next", sans-serif;
  --display: "Sora", "Outfit", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --max: 1040px;
  --pad: 1.35rem;
  accent-color: var(--gold);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

code,
pre {
  font-family: var(--mono);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  padding: 0.5rem 0.8rem;
  background: var(--gold);
  color: #1a1006;
  font-weight: 700;
  border-radius: 999px;
}

.skip:focus {
  top: 1rem;
}

.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(700px 420px at 50% -10%, rgba(240, 180, 41, 0.18), transparent 60%),
    radial-gradient(500px 400px at 100% 80%, rgba(140, 70, 10, 0.2), transparent 55%),
    #0c0906;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}

.o1 {
  width: 380px;
  height: 380px;
  left: -80px;
  top: 30%;
  background: #c47a12;
  animation: drift 22s ease-in-out infinite alternate;
}

.o2 {
  width: 280px;
  height: 280px;
  right: -40px;
  top: 8%;
  background: #f0b429;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.drift {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.chip {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(246, 234, 212, 0.22);
  white-space: nowrap;
  animation: rise linear infinite;
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(24px, -30px);
  }
}

@keyframes rise {
  from {
    transform: translateY(110vh);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  to {
    transform: translateY(-10vh);
    opacity: 0;
  }
}

.nav,
main,
.foot {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
}

.nav.is-on {
  background: rgba(12, 9, 6, 0.8);
  backdrop-filter: blur(16px);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.nav nav {
  display: flex;
  gap: 1.05rem;
  align-items: center;
}

.nav nav a {
  color: var(--mute);
  font-weight: 500;
  text-decoration: none;
}

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

.nav-git {
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink) !important;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem var(--pad) 3.6rem;
  text-align: center;
}

.mug-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 1.15rem;
}

.mug {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 44px;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45);
  animation: float 5.5s ease-in-out infinite;
}

.mug-glow {
  position: absolute;
  inset: 12% 10% 0;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.55), transparent 68%);
  filter: blur(18px);
  animation: pulse 5.5s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
}

.hero h1 {
  margin: 0.5rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7.4vw, 4.8rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.lede {
  margin: 0.95rem auto 0;
  max-width: 32rem;
  color: var(--mute);
  font-size: 1.12rem;
}

.cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.stats {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 1.6rem;
  margin: 1.7rem 0 0;
  padding: 0;
  color: var(--mute);
  font-size: 0.92rem;
}

.stats strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: -0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.76rem 1.2rem;
  min-height: 46px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.gold {
  background: linear-gradient(180deg, #f6c84a, var(--gold-2));
  color: #1a1006;
  box-shadow: 0 12px 28px rgba(196, 122, 18, 0.32);
}

.btn.glass {
  background: var(--glass);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.lg {
  padding: 0.88rem 1.45rem;
  font-size: 1.04rem;
}

.play,
.catalog,
.commands {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.4rem var(--pad) 3.6rem;
}

.lede-inline {
  margin: 0.75rem 0 0;
  color: var(--mute);
  font-size: 1.02rem;
  line-height: 1.5;
}

.cmd-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 12, 8, 0.8);
}

.cmd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.cmd-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.cmd-table th,
.cmd-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.cmd-table th {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cmd-table tr:last-child td {
  border-bottom: 0;
}

.cmd-table code {
  font-size: 0.8rem;
  color: #e8dcc8;
}

.section-head {
  max-width: 36rem;
  margin: 0 0 1.35rem;
}

.section-head h2 {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.vs {
  margin: 0;
  align-self: center;
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 700;
}

.panel {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 12, 8, 0.8);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.panel header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 0.95rem;
  border-bottom: 1px solid var(--line);
}

.panel header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  flex: 0 0 auto;
}

.panel header span:nth-child(2) {
  background: #febc2e;
}

.panel header span:nth-child(3) {
  background: #28c840;
}

.panel header p {
  margin: 0 0 0 auto;
  color: var(--mute);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-body {
  flex: 1;
  padding: 1.15rem 1.1rem 0.4rem;
}

.term pre {
  margin: 0;
  font-size: 0.88rem;
  color: #e8dcc8;
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt {
  color: var(--gold);
}

.caret {
  color: var(--gold);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.panel-label {
  margin: auto 1.1rem 0.9rem;
  color: var(--mute);
  font-size: 0.78rem;
}

.store-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #1a1006;
  background: var(--gold);
}

.store-meta {
  min-width: 0;
}

.store-meta h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.store-meta p {
  margin: 0.12rem 0 0;
  color: var(--mute);
  font-size: 0.88rem;
}

.pill {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.42rem;
}

.get {
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  min-width: 4.2rem;
  background: linear-gradient(180deg, #f6c84a, var(--gold-2));
  color: #1a1006;
  font-weight: 700;
  cursor: default;
}

.bar-track {
  height: 4px;
  margin: 0.35rem 1.1rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}

.store.is-run .bar {
  animation: load 1.55s ease forwards;
}

@keyframes load {
  to {
    width: 100%;
  }
}

.store.is-done .get {
  background: #2f8a55;
  color: #fff;
}

.finder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.finder input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(18, 12, 8, 0.75);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.78rem 1.1rem;
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.finder input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.18);
}

.chips {
  display: flex;
  gap: 0.4rem;
}

.chips button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  min-height: 40px;
  cursor: pointer;
  font: inherit;
}

.chips button.on {
  background: var(--gold);
  color: #1a1006;
  border-color: transparent;
  font-weight: 700;
}

.grid-meta {
  margin: 0 0 0.75rem;
  color: var(--mute);
  font-size: 0.82rem;
}

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

.card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 0.7rem;
  row-gap: 0.12rem;
  align-content: start;
  min-height: 88px;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(22, 15, 9, 0.7);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: transform 160ms ease, border-color 160ms ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 180, 41, 0.4);
  outline: none;
}

.card .mark {
  grid-row: 1 / span 3;
  align-self: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1a1006;
}

.card strong {
  font-family: var(--display);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card small {
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card em {
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.grid-note {
  color: var(--mute);
}

.ribbon {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 0.85rem 0;
  margin-bottom: 1.6rem;
}

.ribbon-track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  color: var(--mute);
  font-family: var(--display);
  letter-spacing: -0.02em;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.get-band {
  max-width: 560px;
  margin: 0 auto 2.6rem;
  padding: 1.4rem var(--pad) 2.6rem;
  text-align: center;
}

.get-band img {
  margin: 0 auto 0.75rem;
  border-radius: 16px;
}

.get-band h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: -0.04em;
}

.get-band p {
  color: var(--mute);
}

.fine {
  font-size: 0.84rem;
}

.src {
  text-align: left;
  margin: 1.25rem 0 0;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #140e09;
  border: 1px solid var(--line);
  color: #e8dcc8;
  font-size: 0.76rem;
  line-height: 1.55;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.faq {
  max-width: 640px;
  margin: 0 auto 2.8rem;
  padding: 0 var(--pad);
}

.faq-list {
  display: grid;
  gap: 0.55rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #140e09;
  padding: 0.15rem 1rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 0;
  font-weight: 600;
  min-height: 44px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin: 0 0 0.95rem;
  color: var(--mute);
}

.faq details[open] summary {
  color: var(--gold);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem 1.2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.15rem var(--pad) 2.3rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.9rem;
}

.foot p {
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 60;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1006;
  font-weight: 700;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .duel {
    grid-template-columns: 1fr;
  }

  .vs {
    display: none;
  }

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

  .finder {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .nav nav a:not(.nav-git) {
    display: none;
  }
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .foot {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mug,
  .mug-glow,
  .orb,
  .chip,
  .ribbon-track,
  .caret,
  .store.is-run .bar {
    animation: none;
  }
}
