* { box-sizing: border-box; }
:root {
  --bg: #101215;
  --panel: #1b1f25;
  --line: #303740;
  --cyan: #56e5e9;
  --text: #f5f7fa;
  --muted: #a5adb8;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at top, #20363d, var(--bg) 55%);
  color: var(--text);
  font: 15px Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 5%;
  background: #101215ee;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.logo { font-weight: 900; color: var(--cyan); }
.logo span { color: white; margin-left: 8px; }
nav { display: flex; gap: 17px; flex-wrap: wrap; }
nav a { font-size: 12px; color: #d1d7df; }
nav a:hover { color: var(--cyan); }
main { width: min(900px, 92%); margin: auto; }
.hero { padding: 45px 0 20px; }
.tag {
  color: var(--cyan);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
}
h1 { font-size: clamp(34px, 6vw, 56px); margin: 12px 0; }
h1 span { color: var(--cyan); }
.hero > p:not(.tag), .muted { color: var(--muted); line-height: 1.6; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 25px;
}
.stats div, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
}
.stats div { padding: 17px; }
.stats small { display: block; color: var(--muted); margin-bottom: 9px; }
.stats strong { font-size: clamp(17px, 3vw, 25px); }
.panel { padding: clamp(18px, 4vw, 28px); margin: 16px 0; }
h2 { margin-top: 8px; }
.rarity { color: #aeb5bf; font-weight: bold; margin: 20px 0 12px; }
.plate {
  display: flex;
  width: min(520px, 100%);
  margin: auto;
  background: #eee;
  color: #111;
  border: 4px solid #353535;
  border-radius: 9px;
  min-height: 92px;
  overflow: hidden;
  font-family: Arial, sans-serif;
}
.plate-number {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: clamp(27px, 7vw, 52px);
  font-weight: bold;
  white-space: nowrap;
}
.region {
  border-left: 3px solid #444;
  width: 76px;
  display: grid;
  align-content: center;
  justify-items: center;
}
.region b { font-size: 30px; }
.region small { font-size: 11px; }
#result { text-align: center; color: var(--muted); margin: 18px 0; }
label { display: block; margin: 14px 0 7px; color: var(--muted); }
select, input {
  width: 100%;
  padding: 13px;
  border: 1px solid #414852;
  border-radius: 10px;
  background: #111419;
  color: white;
  margin-bottom: 12px;
}
button {
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #ffffff20;
  cursor: pointer;
  font-weight: bold;
}
.primary {
  width: 100%;
  margin: 8px 0;
  padding: 16px;
  background: linear-gradient(120deg, var(--cyan), #65b8e8);
  color: #101719;
  border: none;
}
button:hover { filter: brightness(1.1); }
.rarities { display: grid; gap: 9px; }
.rarities div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  padding: 13px;
  border-radius: 10px;
  background: #ffffff07;
}
.rarities small { grid-column: 1 / -1; color: var(--muted); }
.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.item {
  background: #111419;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  min-width: 0;
}
.item-number { font-size: 21px; font-weight: bold; margin: 12px 0; }
.item-price { color: #f2d66a; font-weight: bold; }
.item-meta { color: var(--muted); font-size: 12px; margin-top: 7px; }
.actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.actions button { flex: 1; background: #293139; color: white; }
.actions .sell { color: #7de6a3; }
.actions .store { color: var(--cyan); }
footer { text-align: center; padding: 30px 10px; color: var(--muted); font-size: 12px; }
[hidden] { display: none !important; }

@media (max-width: 650px) {
  header { position: static; align-items: flex-start; flex-direction: column; padding: 16px 4%; }
  nav { gap: 13px; }
  main { width: 92%; }
  .hero { padding-top: 30px; }
  .stats { gap: 7px; }
  .stats div { padding: 12px 9px; }
  .stats small { font-size: 9px; }
  .panel { border-radius: 14px; }
  .plate { min-height: 75px; }
  .region { width: 62px; }
  .region b { font-size: 24px; }
  .items { grid-template-columns: 1fr; }
}
