:root {
  color-scheme: dark;
  --bg: #101313;
  --panel: #181d1c;
  --panel-2: #202725;
  --text: #f4f7f2;
  --muted: #aab5ad;
  --line: #35413b;
  --accent: #62d37b;
  --accent-2: #f0c15f;
  --danger: #ff7979;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(98, 211, 123, 0.12), transparent 36%),
    linear-gradient(225deg, rgba(240, 193, 95, 0.11), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.hero {
  padding: 16px 0 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.94;
  letter-spacing: 0;
}

.subcopy {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

.rank-guide div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 29, 28, 0.72);
  padding: 14px;
}

.rank-guide strong,
.rank-guide span {
  display: block;
}

.rank-guide strong {
  margin-bottom: 5px;
  color: var(--text);
}

.rank-guide span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.player-panel {
  border: 1px solid var(--line);
  background: rgba(24, 29, 28, 0.9);
  border-radius: 8px;
  padding: 18px;
}

.player-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 700;
}

.player-row {
  display: flex;
  gap: 10px;
}

.player-row input {
  min-width: 0;
  flex: 1;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d1110;
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.player-row input:focus {
  border-color: var(--accent);
}

.player-row button,
.buy {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #07100a;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

.status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 28px 0 18px;
  overflow-x: auto;
}

.tab {
  border: 1px solid var(--line);
  background: rgba(16, 19, 19, 0.72);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.tab.active {
  background: var(--panel-2);
  color: var(--text);
  border-color: var(--accent);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.product {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(24, 29, 28, 0.92);
  border-radius: 8px;
  padding: 18px;
}

.product h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: 0;
}

.badge {
  width: fit-content;
  margin-bottom: 14px;
  border: 1px solid rgba(98, 211, 123, 0.45);
  border-radius: 999px;
  color: var(--accent);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
}

.price {
  margin: 12px 0;
  color: var(--accent-2);
  font-size: 24px;
  font-weight: 900;
}

.product ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.buy {
  margin-top: auto;
  width: 100%;
}

.buy:disabled {
  cursor: wait;
  opacity: 0.7;
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 24px;
  }

  .player-row {
    flex-direction: column;
  }

  .rank-guide {
    grid-template-columns: 1fr;
  }
}
