@font-face {
  font-family: "Inter";
  src: url(fonts/inter-500.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(fonts/inter-600.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(fonts/jetbrains-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(fonts/jetbrains-500.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  --bg: #111113;
  --panel: #0a1119;
  --panel-2: #0e1722;
  --cyan: #00e5ff;
  --cyan-line: rgba(0, 229, 255, 0.25);
  --cyan-faint: rgba(0, 229, 255, 0.06);
  --yellow: #f5d90a;
  --yellow-line: rgba(245, 217, 10, 0.4);
  --red: #ff2a5f;
  --text: #e6fbff;
  --dim: #6d95a3;
  --dimmer: #3c5a67;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  overflow: hidden;
}
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--cyan-faint) 1px, transparent 1px),
    linear-gradient(
      90deg,
      var(--cyan-faint) 1px,
      transparent 1px);
  background-size: 48px 48px;
  mask-image:
    radial-gradient(
      ellipse 55% 55% at 50% 50%,
      #000 0%,
      transparent 100%);
  -webkit-mask-image:
    radial-gradient(
      ellipse 55% 55% at 50% 50%,
      #000 0%,
      transparent 100%);
}
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.15) 0px,
      rgba(0, 0, 0, 0.15) 1px,
      transparent 1px,
      transparent 3px);
  opacity: 0.4;
}
.stage {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  perspective: 1100px;
  position: relative;
  z-index: 1;
}
.card {
  width: min(620px, 100%);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  background:
    linear-gradient(
      135deg,
      rgba(0, 229, 255, 0.6),
      var(--cyan-line) 45%,
      var(--cyan-line));
  padding: 1px;
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 22px rgba(0, 229, 255, 0.10));
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}
.card-in {
  position: relative;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  background:
    radial-gradient(
      ellipse 90% 60% at 50% -10%,
      rgba(0, 229, 255, 0.06),
      transparent 60%),
    linear-gradient(
      165deg,
      var(--panel-2) 0%,
      var(--panel) 50%);
  padding: 14px 22px 12px;
}
.cardbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--dimmer);
  padding-bottom: 10px;
}
.cb-right {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--dim);
}
.rec {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink {
  0%, 60% {
    opacity: 1;
  }
  61%, 100% {
    opacity: 0.15;
  }
}
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
h1 {
  font-family:
    "Inter",
    system-ui,
    sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
}
h1::before,
h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
}
h1::before {
  left: 1.5px;
  text-shadow: -1px 0 var(--red);
  clip-path: inset(0 0 55% 0);
  animation: glitch-a 4s infinite linear alternate-reverse;
}
h1::after {
  left: -1.5px;
  text-shadow: 1px 0 var(--cyan);
  clip-path: inset(48% 0 0 0);
  animation: glitch-b 3.3s infinite linear alternate-reverse;
}
@keyframes glitch-a {
  0%, 88%, 100% {
    clip-path: inset(0 0 55% 0);
    transform: translateX(0);
  }
  90% {
    clip-path: inset(10% 0 42% 0);
    transform: translateX(-2px);
  }
  94% {
    clip-path: inset(50% 0 10% 0);
    transform: translateX(2px);
  }
}
@keyframes glitch-b {
  0%, 86%, 100% {
    clip-path: inset(48% 0 0 0);
    transform: translateX(0);
  }
  89% {
    clip-path: inset(6% 0 62% 0);
    transform: translateX(2px);
  }
  93% {
    clip-path: inset(60% 0 6% 0);
    transform: translateX(-2px);
  }
}
.lvl {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: var(--yellow);
  color: #131204;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  padding: 6px 16px 7px;
  animation: lvl-pulse 3.4s ease-in-out infinite;
  flex-shrink: 0;
}
.lvl-top {
  display: inline-flex;
  align-items: baseline;
}
.lvl-num {
  font-family:
    "Inter",
    system-ui,
    sans-serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
}
.lvl-plus {
  font-family:
    "Inter",
    system-ui,
    sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
}
.lvl-word {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.28em;
}
@keyframes lvl-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(245, 217, 10, 0));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(245, 217, 10, 0.45));
  }
}
.classrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}
.chip {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan-line);
  background: var(--cyan-faint);
  padding: 3px 10px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.years {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--dimmer);
}
.divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px;
}
.d-notch {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%);
}
.divider.rare .d-notch {
  background: var(--yellow);
}
.d-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--cyan);
}
.divider.rare .d-label {
  color: var(--yellow);
}
.d-line {
  flex: 1;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      var(--cyan-line),
      transparent);
}
.divider.rare .d-line {
  background:
    linear-gradient(
      90deg,
      var(--yellow-line),
      transparent);
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.stat {
  opacity: 0;
  transform: translateY(6px);
  animation: enter 0.4s ease-out forwards;
  animation-delay: var(--d, 0ms);
  cursor: default;
  padding: 2px 2px 0;
}
@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.s-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.s-lbl {
  font-family:
    "Inter",
    system-ui,
    sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.15s ease;
}
.s-num {
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
.s-bar {
  position: relative;
  height: 7px;
  margin-top: 5px;
  background: rgba(217, 246, 250, 0.06);
  clip-path: polygon(3px 0, 100% 0, 100% 100%, 0 100%, 0 100%);
  overflow: hidden;
}
.s-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
}
.s-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 11px,
      var(--bg) 11px,
      var(--bg) 12.5px);
}
.stat:hover .s-lbl {
  color: var(--cyan);
}
.stat:hover .s-num {
  color: var(--yellow);
  text-shadow: 0 0 14px rgba(245, 217, 10, 0.45);
}
.stat:hover .s-fill {
  filter: brightness(1.35);
}
.rare-stat .s-lbl {
  color: rgba(245, 217, 10, 0.75);
}
.rare-stat:hover .s-lbl {
  color: var(--yellow);
}
.rare-stat:hover .s-num {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}
.shape-row {
  display: grid;
  grid-template-columns: 1fr 1.24fr 72px 86px;
  gap: 6px;
  align-items: stretch;
}
.module {
  opacity: 0;
  transform: translateY(6px);
  animation: enter 0.45s ease-out forwards;
  animation-delay: 0.35s;
  cursor: default;
  min-width: 0;
  position: relative;
}
.m-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
}
.m-top.tight {
  justify-content: flex-start;
}
.m-lbl {
  font-family:
    "Inter",
    system-ui,
    sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-num {
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
.module canvas {
  width: 100%;
  height: 165px;
  display: block;
  margin-top: 2px;
}
.module:hover .m-lbl {
  color: var(--cyan);
}
.module:hover .m-num {
  color: var(--yellow);
  text-shadow: 0 0 14px rgba(245, 217, 10, 0.45);
}
.rare-mod .m-lbl {
  color: rgba(245, 217, 10, 0.75);
}
.rare-mod:hover .m-lbl {
  color: var(--yellow);
}
.rare-mod:hover .m-num {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}
.mini {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 8px 9px 7px;
  background: rgba(217, 246, 250, 0.025);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  opacity: 0;
  transform: translateY(6px);
  animation: enter 0.45s ease-out forwards;
  cursor: default;
  min-width: 0;
}
.mini.big {
  padding: 10px 6px;
}
#mini-founder {
  animation-delay: 0.45s;
}
#mini-longgame {
  animation-delay: 0.55s;
}
#mini-longgame .m-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
#mod-web .m-lbl {
  letter-spacing: 0.08em;
}
.mini:hover {
  background: rgba(0, 229, 255, 0.06);
}
.mini.rare-mod:hover {
  background: rgba(245, 217, 10, 0.06);
}
.mini .m-lbl {
  font-size: 9px;
  letter-spacing: 0.09em;
}
.mini .m-top {
  min-height: 0;
}
.mini-val {
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
}
.mini:hover .mini-val {
  color: var(--yellow);
  text-shadow: 0 0 12px rgba(245, 217, 10, 0.4);
}
.mini.rare-mod:hover .mini-val {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}
.v-pre,
.v-suf {
  font-size: 10px;
  color: var(--dimmer);
}
.v-pre {
  margin-right: 1px;
}
.v-suf {
  margin-left: 3px;
}
.tip {
  position: absolute;
  pointer-events: none;
  z-index: 6;
  background: rgba(10, 17, 25, 0.97);
  border: 1px solid var(--cyan-line);
  padding: 6px 9px 5px;
  width: max-content;
  max-width: 180px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.tip.show {
  opacity: 1;
  transform: translateY(0);
}
.tip-caret {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(10, 17, 25, 0.97);
  transform: rotate(45deg);
  bottom: -4.5px;
  border-right: 1px solid var(--cyan-line);
  border-bottom: 1px solid var(--cyan-line);
}
.tip.below .tip-caret {
  bottom: auto;
  top: -4.5px;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid var(--cyan-line);
  border-top: 1px solid var(--cyan-line);
}
.tip-name {
  font-family:
    "Inter",
    system-ui,
    sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
  line-height: 1.35;
}
.tip-sub {
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-top: 2px;
  line-height: 1.35;
}
.pips {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  padding: 4px 0 0;
}
.pip {
  --hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  position: relative;
  width: 46px;
  height: 50px;
  cursor: default;
  clip-path: var(--hex);
  background:
    linear-gradient(
      150deg,
      var(--cyan),
      rgba(0, 229, 255, 0.5));
  transform: scale(0) rotate(-28deg);
  filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.5));
  animation: pip-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, pip-glow 3.6s ease-in-out infinite;
  transition: background 0.2s ease;
}
.pip::before {
  content: "";
  position: absolute;
  inset: 3px;
  clip-path: var(--hex);
  background:
    radial-gradient(
      120% 120% at 50% 28%,
      #16262e,
      #0b141a);
}
.pip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  background:
    linear-gradient(
      135deg,
      #eafcff,
      var(--cyan));
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.85);
  transform: rotate(45deg);
  animation: pip-core 7s linear infinite;
}
@keyframes pip-pop {
  to {
    transform: scale(1) rotate(0deg);
  }
}
@keyframes pip-glow {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 13px rgba(0, 229, 255, 0.92));
  }
}
@keyframes pip-core {
  to {
    transform: rotate(405deg);
  }
}
.pip:hover {
  background:
    linear-gradient(
      150deg,
      var(--yellow),
      rgba(245, 217, 10, 0.55));
}
.pip:hover::before {
  background:
    radial-gradient(
      120% 120% at 50% 28%,
      #201c05,
      #100e02);
}
.pip:hover::after {
  background:
    linear-gradient(
      135deg,
      #fffbe6,
      var(--yellow));
  box-shadow: 0 0 11px rgba(245, 217, 10, 0.9);
  animation-duration: 1.7s;
}
.streak {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  min-height: 16px;
  padding: 2px 1px 0;
}
.tick {
  flex: 1;
  max-width: 11px;
  height: 13px;
  transform: skewX(-14deg) scaleY(0);
  transform-origin: bottom;
  background:
    linear-gradient(
      180deg,
      rgba(245, 217, 10, 0.9),
      rgba(245, 217, 10, 0.45));
  animation: tick-pop 0.3s ease-out forwards;
  animation-delay: var(--td, 0ms);
}
@keyframes tick-pop {
  to {
    transform: skewX(-14deg) scaleY(1);
  }
}
.tick.live {
  animation: tick-pop 0.3s ease-out forwards, tick-pulse 2.2s ease-in-out infinite;
}
@keyframes tick-pulse {
  0%, 100% {
    box-shadow: 0 0 4px rgba(245, 217, 10, 0.4);
  }
  50% {
    box-shadow: 0 0 13px rgba(245, 217, 10, 0.95);
  }
}
.mini:hover .tick {
  filter: brightness(1.35);
}
.readout {
  margin-top: 14px;
  border-top: 1px solid rgba(0, 229, 255, 0.14);
  padding: 8px 2px 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: #b8dde6;
  text-transform: uppercase;
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.readout #readout-text {
  flex: 1;
  min-width: 0;
}
.r-prompt {
  color: var(--cyan);
  margin-right: 6px;
}
.seal {
  position: relative;
  flex-shrink: 0;
  margin-left: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.seal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.seal polygon {
  fill: rgba(245, 217, 10, 0.07);
  stroke: var(--yellow-line);
  stroke-width: 1.5;
  transition: stroke 0.15s ease, fill 0.15s ease;
}
.seal-txt {
  position: relative;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--yellow);
}
.seal:hover polygon {
  stroke: var(--yellow);
  fill: rgba(245, 217, 10, 0.14);
}
.cursor {
  display: inline-block;
  width: 6px;
  height: 11px;
  margin-left: 4px;
  background: var(--cyan);
  vertical-align: -1px;
  animation: blink 1.1s steps(1) infinite;
}
.gen {
  margin-top: 6px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--dimmer);
}
@media (max-width: 573px) {
  body {
    overflow: auto;
  }
  .stage {
    padding: 13px 12px;
    height: auto;
  }
  .card {
    width: 100%;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .shape-row {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 22px;
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .stat {
    opacity: 1;
    transform: none;
  }
  .card {
    transform: none !important;
  }
}
