:root {
  --bg: #07060b;
  --ink: #f7f4ff;
  --muted: rgb(247 244 255 / 0.55);
  --line: rgb(255 255 255 / 0.1);
  --hot: #ff3d7f;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.4 Archivo, system-ui, sans-serif;
  overflow: hidden;
}

button,
input {
  font: inherit;
  color: inherit;
}

.top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 12px;
}

h1 {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 0 rgb(255 61 127 / 0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgb(255 61 127 / 0);
  }
}

.stats {
  display: flex;
  gap: 22px;
}

.stats p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.stats strong {
  display: block;
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 24px;
}

canvas {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  cursor: zoom-in;
  box-shadow: 0 30px 120px -30px rgb(255 61 127 / 0.45);
}

/* The tile under the pointer, enlarged in place. */
.focus {
  position: fixed;
  width: 148px;
  height: 148px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: center / cover no-repeat;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.6);
  pointer-events: none;
  transform: translate(-50%, -115%);
}

.bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 24px 18px;
}

.days {
  display: flex;
  gap: 8px;
}

.days button,
.ghost {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.days button[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.blend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blend input {
  accent-color: var(--hot);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgb(5 4 9 / 0.92);
  backdrop-filter: blur(10px);
}

.lightbox figure {
  margin: 0;
  max-width: min(1200px, 100%);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
}

.lightbox figcaption {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
}

#lb-day {
  color: var(--hot);
  font-weight: 700;
  text-transform: uppercase;
}

.close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  background: none;
  font-size: 34px;
  cursor: pointer;
}

.notice {
  position: fixed;
  inset: auto 16px 20px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #16141f;
  text-align: center;
}

@media (max-width: 700px) {
  .stats strong {
    font-size: 18px;
  }

  .bar {
    flex-wrap: wrap;
  }

  .blend {
    margin-left: 0;
  }
}
