:root {
  color: #f2efe8;
  background: #050505;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 20%, rgba(224,168,39,.08), transparent 28rem),
    #050505;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100% - 32px, 720px);
  margin: 16px auto 0;
}
.brand img { display: block; width: 56px; height: 56px; border-radius: 10px; }
.chip, .scan {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid rgba(224,168,39,.35);
  border-radius: 999px;
  background: rgba(18,18,18,.9);
  color: #efe9dc;
  font: 600 .85rem/1 system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 18px;
}
.chip.danger { border-color: rgba(224,80,80,.5); margin-top: 12px; }
.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 16px 40px;
  text-align: center;
}
.scan {
  width: min(100%, 320px);
  min-height: 64px;
  font-size: 1.05rem;
  letter-spacing: .14em;
  background: linear-gradient(180deg, rgba(224,168,39,.18), rgba(18,18,18,.95));
  box-shadow: 0 0 40px rgba(224,168,39,.12);
}
.status { min-height: 1.4em; margin: 0; color: #a8a49c; font-size: 1rem; max-width: 28rem; }
.reader-wrap { width: min(100%, 360px); }
#reader { border-radius: 16px; overflow: hidden; }
.tray {
  width: min(100% - 24px, 720px);
  margin: 0 auto 24px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(12,12,12,.85);
}
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  color: #d9d4c8;
  font-size: .72rem;
  letter-spacing: .04em;
}
.app img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: block;
  background: #12161c;
}
.foot {
  width: min(100% - 32px, 720px);
  margin: 0 auto 28px;
  color: #7d7972;
  font-size: .85rem;
}
.foot a { color: #e7e2d7; }
@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
