:root {
  --bg: #0b0d10;
  --panel: #111419;
  --panel-2: #151a21;
  --line: #21262f;
  --text: #e8eaee;
  --mute: #8b93a1;
  --red: #e1342f;
  --red-dim: #b02a26;
  --red-tint: rgba(225, 52, 47, 0.12);
  --free: #57d98a;
  --free-tint: rgba(87, 217, 138, 0.12);
  --taken: #ff5f56;
  --taken-tint: rgba(255, 95, 86, 0.1);
  --warn: #e0b34d;
  --warn-tint: rgba(224, 179, 77, 0.12);
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 420px at 12% -8%, rgba(225, 52, 47, 0.09), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 26px 26px;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.mono {
  font-family: var(--mono);
}

.icon {
  display: block;
  flex: none;
}

a {
  color: inherit;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.mark-box {
  width: 14px;
  height: 14px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 38%, 38% 38%, 38% 62%, 100% 62%, 100% 100%, 0 100%, 0 62%, 62% 62%, 62% 38%, 0 38%);
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--mute);
}

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

.quota {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mute);
  border: 1px solid var(--line);
  padding: 5px 10px;
  white-space: nowrap;
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 74px 28px 0;
}

.kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 18px;
}

.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 112px 28px 76px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -48px;
  background: url("nether.png") center / cover no-repeat;
  filter: blur(3px) brightness(0.62) saturate(0.88);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.5) 0%, rgba(11, 13, 16, 0.55) 46%, var(--bg) 99%);
  z-index: -1;
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(30px, 5.4vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 760px;
  margin: 0 auto;
}

.accent {
  color: var(--red);
}

.lede {
  color: var(--mute);
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 16px;
}

.search {
  display: flex;
  gap: 10px;
  margin: 30px auto 0;
  max-width: 560px;
}

.search input {
  flex: 1;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  padding: 14px 16px;
  caret-color: var(--red);
}

.search input::placeholder {
  color: #5b6472;
}

.search input:focus {
  outline: none;
  border-color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 22px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn .icon {
  width: 12px;
  height: 12px;
}

.btn.small .icon {
  width: 12px;
  height: 12px;
}

.search .btn .icon {
  width: 12px;
  height: 12px;
}

.btn:hover {
  background: var(--red-dim);
  border-color: var(--red-dim);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn.ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn.small {
  padding: 8px 14px;
  font-size: 11px;
}

.search .btn {
  padding: 0 26px;
}

.hint {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 12px;
}

.hint.error {
  color: var(--taken);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
}

.verdict {
  margin-top: 30px;
  padding: 26px 28px;
  animation: rise 0.25s ease both;
}

.verdict-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
  min-height: 380px;
}

.verdict-skin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111419;
  min-height: 100%;
}

.verdict-skin canvas {
  width: 260px;
  height: 330px;
  max-width: 100%;
  background-color: #111419;
}

.skin-note {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--mute);
}

#skinFlat {
  display: none;
}

.verdict-skin.flat #skinFlat {
  display: block;
}

.verdict-skin.flat #skinCanvas {
  display: none;
}

.skin-note:empty {
  display: none;
}

.verdict-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.verdict-head .kicker {
  margin-bottom: 0;
}

.verdict-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border: 1px solid var(--line);
  color: var(--mute);
}

.pill .icon {
  width: 12px;
  height: 12px;
}

.pill.free {
  color: var(--free);
  border-color: rgba(87, 217, 138, 0.4);
  background: var(--free-tint);
}

.pill.taken {
  color: var(--taken);
  border-color: rgba(255, 95, 86, 0.4);
  background: var(--taken-tint);
}

.pill.rate {
  color: var(--warn);
  border-color: rgba(224, 179, 77, 0.4);
  background: var(--warn-tint);
}

.pill.scanning {
  animation: pulse 1.1s ease-in-out infinite;
}

.verdict-note {
  color: var(--mute);
  margin-top: 14px;
  max-width: 560px;
}

.verdict-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.verdict-actions .btn {
  padding: 10px 18px;
  font-size: 12px;
}

.section {
  border-top: 1px solid var(--line);
  margin-top: 84px;
  padding-top: 54px;
  padding-bottom: 8px;
}

.section-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 6px;
  margin-bottom: 34px;
}

.index {
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  padding-top: 6px;
}

.section-head h2 {
  font-size: 26px;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--mute);
  margin-top: 6px;
  font-size: 14px;
  max-width: 620px;
}

.hunt-bar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mute);
}

.field select {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 11px 14px;
  cursor: pointer;
}

.field select:focus {
  outline: none;
  border-color: var(--red);
}

.hunt-bar .btn {
  padding: 0 24px;
  height: 43px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  cursor: pointer;
  user-select: none;
}

.check input {
  width: 15px;
  height: 15px;
  accent-color: var(--red);
  cursor: pointer;
}

.check span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mute);
}

.hunt-status {
  font-size: 12px;
  color: var(--mute);
  padding-bottom: 12px;
}

.hunt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px 14px 12px;
  animation: rise 0.2s ease both;
}

.card-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-name strong {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.card a {
  color: var(--mute);
  transition: color 0.15s ease;
}

.card a:hover {
  color: var(--red);
}

.card a .icon {
  width: 12px;
  height: 12px;
}

.card.scanning .pill {
  animation: pulse 1.1s ease-in-out infinite;
}

.card.is-free {
  border-color: rgba(87, 217, 138, 0.45);
}

.stash-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 7px 8px 7px 13px;
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.chip:hover {
  border-color: var(--red);
}

.chip .icon {
  width: 12px;
  height: 12px;
  color: var(--red);
}

.chip button {
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--mute);
  cursor: pointer;
  padding: 2px;
}

.chip button:hover {
  color: var(--taken);
}

#stashEmpty {
  margin-top: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
}

.step-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.step-num {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.step-icon {
  width: 24px;
  height: 24px;
  color: var(--text);
}

.step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step p {
  color: var(--mute);
  font-size: 14px;
}

.legal {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mute);
  font-size: 12.5px;
  margin-top: 26px;
}

.legal .icon {
  width: 24px;
  height: 24px;
  color: var(--red);
}

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 980px;
  margin: 90px auto 0;
  padding: 26px 28px 40px;
  border-top: 1px solid var(--line);
}

.foot .made {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

.foot .made .icon {
  display: inline-block;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  color: var(--red);
}

.foot .donate {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.foot .donate a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.foot .donate a:hover {
  color: var(--red);
  border-color: var(--red);
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.socials a {
  display: block;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.socials img {
  display: block;
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (max-width: 720px) {
  .top {
    padding: 12px 18px;
    gap: 14px;
  }
  .quota {
    display: none;
  }
  .nav {
    gap: 14px;
  }
  main {
    padding-top: 64px;
  }
  .search {
    flex-direction: column;
  }
  .search .btn {
    padding: 12px;
  }
  .section-head {
    grid-template-columns: 1fr;
  }
  .verdict-main {
    grid-template-columns: 1fr;
  }
  .verdict-skin {
    min-height: 280px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .foot {
    margin-top: 60px;
    padding-top: 20px;
  }
}
