:root {
  --bg: #05060a;
  --panel: #0b1020;
  --ink: #e6f0ff;
  --muted: rgba(230, 240, 255, 0.68);
  --cyan: #53f6ff;
  --magenta: #ff4fd8;
  --amber: #ffcc4d;
  --line: rgba(83, 246, 255, 0.22);
  --shadow: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(1200px 900px at 50% 20%, #12193a 0%, var(--bg) 55%, #02030a 100%);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 18px;
}

.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: grid;
  gap: 6px;
}

.brand__title {
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 22px;
  text-shadow:
    0 0 0 transparent,
    0 0 18px rgba(83, 246, 255, 0.18),
    0 0 30px rgba(255, 79, 216, 0.14);
}

.brand__sub {
  color: var(--muted);
  font-size: 12px;
}

.hint {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.72), rgba(11, 16, 32, 0.36));
  box-shadow: 0 18px 50px var(--shadow);
}

.hint__k {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.hint__v {
  margin-top: -6px;
  color: rgba(230, 240, 255, 0.78);
  font-size: 11px;
}

.stage {
  flex: 1;
  display: grid;
  place-items: center;
}

.crt {
  position: relative;
  width: min(1280px, 96vw);
  aspect-ratio: 2 / 1;
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(83, 246, 255, 0.09), rgba(255, 79, 216, 0.05)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  border: 1px solid rgba(83, 246, 255, 0.25);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.crt::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.04) 1px,
      rgba(0, 0, 0, 0) 3px,
      rgba(0, 0, 0, 0) 6px
    );
  opacity: 0.16;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.crt::after {
  content: "";
  position: absolute;
  inset: -80px -60px;
  background: radial-gradient(700px 500px at 50% 35%, rgba(83, 246, 255, 0.12), rgba(255, 79, 216, 0.08), transparent 70%);
  pointer-events: none;
  filter: blur(8px);
  opacity: 0.65;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border-radius: 12px;
  background: #05060a;
  position: relative;
  z-index: 1;
}

.overlay {
  position: absolute;
  inset: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  z-index: 3;
  pointer-events: none;
}

.overlay__panel {
  padding: 12px 14px;
  border: 1px solid rgba(255, 204, 77, 0.55);
  background: rgba(5, 6, 10, 0.58);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  text-align: center;
  width: min(360px, 86vw);
}

.overlay__title {
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.overlay__sub {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(230, 240, 255, 0.78);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(230, 240, 255, 0.58);
  font-size: 11px;
}
