:root {
  --bg: #07090f;
  --cyan: #3ee6ff;
  --violet: #b06bff;
  --text: #e8ecf4;
  --dim: #93a0b8;
  --ok: #3aff8a;
  --down: #ff5a6a;
  --display: 'Rajdhani', 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(62, 230, 255, 0.07), transparent 55%),
    radial-gradient(ellipse at 90% 110%, rgba(176, 107, 255, 0.06), transparent 50%);
  color: var(--text);
  font-family: var(--body);
}

.head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px clamp(18px, 5vw, 56px);
}
.head-logo { filter: drop-shadow(0 0 12px rgba(62, 230, 255, 0.4)); }
h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
}
.head-summary {
  margin-left: auto;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
}

.grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: clamp(6px, 1vw, 12px);
  padding: 10px clamp(18px, 5vw, 56px) 30px;
  align-content: start;
}

.tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-decoration: none;
}
.tile:hover img, .tile:focus-visible img { filter: drop-shadow(0 0 16px rgba(62, 230, 255, 0.4)); }

.tile img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(62, 230, 255, 0.12));
  transition: filter 0.25s;
}

.name {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  word-break: break-word;
}

.dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dim);
  opacity: 0.5;
  animation: probe 1.6s ease-in-out infinite;
}
@keyframes probe { 50% { opacity: 0.2; } }
.dot.up {
  background: var(--ok);
  opacity: 1;
  animation: none;
  box-shadow: 0 0 10px rgba(58, 255, 138, 0.7);
}
.dot.down {
  background: var(--down);
  opacity: 1;
  animation: none;
  box-shadow: 0 0 10px rgba(255, 90, 106, 0.7);
}

.foot {
  padding: 20px;
  text-align: center;
  color: var(--dim);
  font-size: 12px;
}
