:root {
  --black: #0a0a0a;
  --green: #00ff66;
  --green-soft: rgba(0, 255, 102, 0.2);
  --red: #ff0066;
  --red-soft: rgba(255, 0, 102, 0.22);
  --cyan: #00d5ff;
  --yellow: #f4ff00;
  --panel: rgba(12, 16, 13, 0.88);
  --panel-border: rgba(0, 255, 102, 0.38);
  --text: #eafff0;
  --muted: #90bca0;
  --shadow-green: 0 0 28px rgba(0, 255, 102, 0.44);
  --shadow-red: 0 0 28px rgba(255, 0, 102, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Fira Code", "Roboto Mono", "Courier New", monospace;
  background:
    radial-gradient(circle at 50% 14%, rgba(0, 255, 102, 0.16), transparent 24rem),
    radial-gradient(circle at 85% 62%, rgba(255, 0, 102, 0.12), transparent 20rem),
    linear-gradient(135deg, rgba(0, 255, 102, 0.06), transparent 28%),
    var(--black);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0, 255, 102, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 102, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black, transparent 86%);
}

body.flash-green {
  animation: greenFlash 420ms ease-out;
}

body.flash-red {
  animation: redFlash 420ms ease-out;
}

button {
  font: inherit;
}

.shell {
  position: relative;
  z-index: 3;
  width: min(1480px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 40px;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 680px);
  gap: 18px;
  align-items: start;
}

.left-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  height: calc(100vh - 74px);
  min-height: 720px;
}

.control-column {
  position: sticky;
  top: 24px;
  min-width: 0;
}

.top-ads-panel {
  border: 1px solid rgba(0, 255, 102, 0.34);
  padding: 14px;
  background:
    linear-gradient(120deg, rgba(0, 255, 102, 0.08), transparent 52%),
    rgba(0, 0, 0, 0.66);
  box-shadow: 0 0 38px rgba(0, 255, 102, 0.1);
}

.panel-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-head h2 {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 2px 0 var(--red), -2px 0 var(--cyan);
}

.panel-head span {
  color: var(--muted);
  font-size: 0.72rem;
}

.top-ad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.top-ad-grid .ad-slot,
.top-ad-grid .ad-slot-days {
  grid-column: auto;
  grid-row: auto;
  min-height: 112px;
}

.console {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(10px, 1.7vw, 18px);
  width: 100%;
  min-width: 0;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.09), transparent 35%),
    linear-gradient(135deg, rgba(255, 0, 102, 0.08), transparent 48%),
    var(--panel);
  box-shadow: 0 0 0 1px rgba(255, 0, 102, 0.16), 0 0 60px rgba(0, 255, 102, 0.12);
  isolation: isolate;
}

.mega-ad-slot {
  position: relative;
  width: 100%;
  min-height: clamp(132px, 16vw, 188px);
  overflow: hidden;
  border: 1px dashed rgba(255, 215, 0, 0.78);
  padding: clamp(16px, 3.4vw, 28px);
  color: #ffe98a;
  background:
    linear-gradient(110deg, rgba(123, 31, 162, 0.58), rgba(255, 215, 0, 0.24) 48%, rgba(255, 0, 102, 0.22)),
    rgba(0, 0, 0, 0.72);
  box-shadow:
    inset 0 0 42px rgba(255, 215, 0, 0.16),
    0 0 42px rgba(255, 0, 102, 0.18);
  cursor: pointer;
  text-align: left;
}

.mega-ad-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 9px),
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.26), transparent 20%);
  opacity: 0.34;
  pointer-events: none;
}

.mega-ad-slot strong,
.mega-ad-slot span {
  position: relative;
  z-index: 1;
  display: block;
}

.mega-ad-slot strong {
  color: #ffd700;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: none;
}

.mega-ad-slot span {
  margin-top: 12px;
  color: #fff8d0;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  font-weight: 400;
  line-height: 1.2;
}

.control-readout-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 0.66fr);
  gap: 8px;
  width: 100%;
  align-items: stretch;
}

.console::before,
.console::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border-color: var(--green);
  border-style: solid;
  opacity: 0.85;
  pointer-events: none;
}

.console::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.console::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.counter-panel {
  display: grid;
  width: 100%;
  min-height: 58px;
  align-content: center;
  border: 1px solid rgba(0, 255, 102, 0.55);
  padding: 5px 8px;
  color: var(--green);
  background: rgba(0, 0, 0, 0.58);
  box-shadow: inset 0 0 28px rgba(0, 255, 102, 0.08), var(--shadow-green);
  text-align: center;
  text-transform: uppercase;
}

.panel-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.4rem;
  letter-spacing: 0.24em;
}

.counter-panel strong {
  display: block;
  font-size: clamp(0.76rem, 1.85vw, 1.18rem);
  line-height: 1;
  text-shadow: 2px 0 var(--red), -2px 0 var(--cyan);
}

.path-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 0;
  min-width: 0;
  min-height: clamp(58px, 6.2vw, 82px);
  overflow: hidden;
  border: 2px solid rgba(121, 255, 72, 0.92);
  border-radius: 0;
  background:
    radial-gradient(circle at 24% 54%, rgba(121, 255, 72, 0.14), transparent 38%),
    linear-gradient(90deg, rgba(0, 255, 102, 0.08), rgba(0, 0, 0, 0.72) 48%, rgba(0, 255, 102, 0.1)),
    rgba(0, 0, 0, 0.68);
  box-shadow:
    inset 0 0 34px rgba(0, 255, 102, 0.1),
    0 0 0 1px rgba(121, 255, 72, 0.2),
    0 0 28px rgba(121, 255, 72, 0.26);
}

.path-score-card,
.stage-card {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(5px, 0.9vw, 10px);
  color: #caffbf;
  text-transform: uppercase;
}

.path-score-card {
  border-right: 1px solid rgba(121, 255, 72, 0.48);
}

.path-title {
  display: block;
  margin-bottom: clamp(2px, 0.45vw, 5px);
  color: rgba(219, 255, 209, 0.88);
  font-size: clamp(0.31rem, 0.55vw, 0.4rem);
  letter-spacing: 0.16em;
  line-height: 1;
  text-shadow: 0 0 14px rgba(121, 255, 72, 0.36);
}

.path-score-card strong {
  display: block;
  color: #fff;
  font-size: clamp(0.95rem, 2vw, 1.55rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.44),
    0 0 28px rgba(121, 255, 72, 0.38);
}

.path-score-card small {
  display: block;
  margin-top: clamp(4px, 0.65vw, 7px);
  color: rgba(219, 255, 209, 0.88);
  font-size: clamp(0.46rem, 0.78vw, 0.62rem);
  letter-spacing: 0.12em;
  line-height: 1;
}

.path-score-card small span {
  color: #65ff43;
  font-size: 0.95em;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(101, 255, 67, 0.5);
}

.stage-card {
  cursor: pointer;
}

.stage-card:hover {
  background: rgba(121, 255, 72, 0.035);
}

.stage-selector {
  display: grid;
  grid-template-columns: clamp(28px, 2.9vw, 38px) minmax(0, 1fr) clamp(28px, 2.9vw, 38px);
  gap: clamp(5px, 0.8vw, 8px);
  align-items: center;
}

.stage-arrow {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(121, 255, 72, 0.88);
  border-radius: 0;
  color: #65ff43;
  background: rgba(0, 0, 0, 0.68);
  font: inherit;
  font-size: clamp(1.05rem, 2.15vw, 1.65rem);
  font-weight: 900;
  cursor: pointer;
  line-height: 0.8;
  text-shadow: 0 0 18px rgba(101, 255, 67, 0.6);
  box-shadow:
    inset 0 0 22px rgba(121, 255, 72, 0.08),
    0 0 18px rgba(121, 255, 72, 0.16);
  transition: transform 140ms ease, border-color 140ms ease, opacity 140ms ease, box-shadow 140ms ease;
}

.stage-arrow:not(:disabled):hover {
  border-color: rgba(177, 255, 33, 0.96);
  box-shadow:
    inset 0 0 28px rgba(177, 255, 33, 0.14),
    0 0 26px rgba(177, 255, 33, 0.28);
  transform: translateY(-1px) scale(1.03);
}

.stage-arrow:disabled {
  cursor: default;
  opacity: 0.28;
}

.counter-panel.is-timer {
  border-color: rgba(255, 0, 102, 0.72);
  color: var(--yellow);
  background:
    repeating-linear-gradient(90deg, rgba(255, 0, 102, 0.16) 0 2px, transparent 2px 8px),
    rgba(0, 0, 0, 0.74);
  box-shadow: var(--shadow-red), inset 0 0 30px rgba(255, 0, 102, 0.16);
  animation: timerJitter 180ms steps(2, end) infinite;
}

.counter-panel.is-timer .panel-kicker {
  color: #fff;
}

.digit-style {
  display: inline-block;
  font-weight: 800;
  line-height: 1;
  transform-origin: center;
  will-change: opacity, transform, text-shadow, filter;
}

.digit-style-1 {
  color: #227722;
  font-size: 24px;
  font-weight: 600;
  opacity: 0.7;
  animation: digitOneFlicker 900ms ease-in-out infinite alternate;
}

.digit-style-2 {
  color: #44aa44;
  font-size: 28px;
  animation: digitTwoPulse 780ms ease-in-out infinite;
}

.digit-style-3 {
  color: #66cc66;
  font-size: 32px;
  text-shadow: 0 0 10px rgba(102, 204, 102, 0.78), 0 0 22px rgba(102, 204, 102, 0.38);
}

.digit-style-4 {
  color: #88ee88;
  font-size: 36px;
  animation: digitFourMicroGlitch 2s steps(2, end) infinite;
}

.digit-style-5 {
  color: #aaffaa;
  font-size: 40px;
  text-shadow: 0 0 10px rgba(255, 132, 0, 0.82), 0 0 22px rgba(255, 132, 0, 0.34);
  animation: digitFiveWarning 500ms steps(2, end) infinite;
}

.digit-style-6 {
  color: var(--green);
  font-size: 64px;
  text-shadow:
    1px 1px 0 #008a37,
    2px 2px 0 #006f2d,
    3px 3px 0 #004c1e,
    4px 4px 0 #002f13,
    0 0 16px rgba(0, 255, 102, 0.9),
    0 0 34px rgba(0, 255, 102, 0.5);
}

.digit-style-7 {
  color: var(--red);
  font-size: 72px;
  text-shadow:
    2px 0 var(--green),
    -2px 0 rgba(255, 0, 102, 0.9),
    0 0 18px rgba(255, 0, 102, 0.86),
    0 0 26px rgba(0, 255, 102, 0.55);
  animation: digitSevenConstantGlitch 300ms steps(2, end) infinite;
}

.digit-inline {
  margin: 0 0.035em;
  vertical-align: -0.08em;
}

.digit-code {
  display: inline-flex;
  align-items: center;
  gap: 0.08em;
  margin-right: 0.55em;
  white-space: nowrap;
}

.message-text {
  display: inline;
}

.clicker-stage {
  position: relative;
  display: grid;
  width: min(100%, 680px);
  margin-top: clamp(0px, 0.35vw, 4px);
}

.six-seven-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1672 / 941;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: clamp(18px, 4vw, 34px);
  color: #050505;
  background: #050006 url("button.png") center / cover no-repeat;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 34px rgba(0, 255, 102, 0.22),
    0 0 48px rgba(255, 0, 102, 0.22),
    0 28px 56px rgba(0, 0, 0, 0.78);
  cursor: pointer;
  transform: translateZ(0);
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.six-seven-button:hover,
.six-seven-button:focus-visible {
  filter: saturate(1.12) brightness(1.07);
  transform: translateY(-3px) scale(1.012);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 44px rgba(0, 255, 102, 0.34),
    0 0 64px rgba(255, 0, 102, 0.32),
    0 34px 62px rgba(0, 0, 0, 0.82);
}

.six-seven-button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 5px;
}

.six-seven-button.is-timer-risk {
  cursor: not-allowed;
  filter: saturate(1.6) brightness(0.95);
  box-shadow:
    0 0 34px rgba(255, 0, 102, 0.66),
    0 0 50px rgba(244, 255, 0, 0.28),
    inset 0 -12px 0 rgba(0, 0, 0, 0.2);
}

.six-seven-button:disabled {
  opacity: 0.88;
  cursor: not-allowed;
}

.six-seven-button::before,
.six-seven-button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.six-seven-button::before {
  background:
    linear-gradient(90deg, rgba(0, 255, 102, 0.2), transparent 18%, transparent 82%, rgba(255, 0, 102, 0.2)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 24%, transparent 72%, rgba(255, 255, 255, 0.06)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 6px);
  z-index: 1;
  opacity: 0.52;
  mix-blend-mode: screen;
}

.six-seven-button::after {
  z-index: 1;
  background: none;
  opacity: 0;
  filter: none;
  mix-blend-mode: screen;
}

.six-seven-button.is-pressed {
  animation: buttonPulse 520ms ease-out;
}

.six-seven-button.is-pressed::before {
  animation: scanBurst 260ms ease-out;
}

.six-seven-button.is-pressed::after {
  animation: ripple 520ms ease-out;
}

.digit {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 0.72em;
  place-items: center;
  translate: -50% -50%;
  font-family: Impact, Haettenschweiler, "Arial Black", "Fira Code", "Roboto Mono", monospace;
  font-size: clamp(4rem, 9vw, 8.7rem);
  font-weight: 900;
  line-height: 0.78;
  text-align: center;
  letter-spacing: -0.08em;
  transform-origin: center;
  will-change: transform, filter;
  backface-visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.six-seven-button .digit::before {
  content: "";
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, 0.78);
  pointer-events: none;
  transform: translate(-0.045em, -0.055em) scale(0.96);
  mix-blend-mode: screen;
}

.six-seven-button .digit-six {
  left: 28%;
  top: 61%;
}

.six-seven-button .digit-seven {
  left: 72%;
  top: 61%;
}

.six-seven-button .digit-six::before {
  content: "6";
}

.six-seven-button .digit-seven::before {
  content: "7";
}

.six-seven-button .digit-style-6 {
  color: #00ff66;
  -webkit-text-stroke: clamp(1px, 0.25vw, 3px) rgba(219, 255, 220, 0.95);
  text-shadow:
    2px 2px 0 #08b84f,
    4px 4px 0 #006b2d,
    7px 9px 0 rgba(0, 0, 0, 0.78),
    0 0 12px rgba(0, 255, 102, 1),
    0 0 28px rgba(0, 255, 102, 0.86),
    0 0 58px rgba(0, 255, 102, 0.52);
  filter: drop-shadow(0 0 18px rgba(0, 255, 102, 0.72));
  animation: digitSixStableBreath 1.9s ease-in-out infinite;
}

.six-seven-button .digit-style-7 {
  color: #ff1493;
  -webkit-text-stroke: clamp(1px, 0.25vw, 3px) rgba(255, 210, 242, 0.96);
  text-shadow:
    2px 0 #00d5ff,
    -2px 0 #ff0066,
    3px 3px 0 #b00053,
    7px 9px 0 rgba(0, 0, 0, 0.78),
    0 0 12px rgba(255, 0, 102, 1),
    0 0 30px rgba(255, 0, 102, 0.9),
    0 0 58px rgba(255, 0, 102, 0.58);
  filter: drop-shadow(0 0 18px rgba(255, 0, 102, 0.76));
}

.six-seven-button.is-pressed .digit-style-7 {
  animation: digitSevenBurst 300ms steps(2, end), digitSevenConstantGlitch 300ms steps(2, end) infinite;
}

.six-seven-button.dance-a .digit-style-6,
.six-seven-button.dance-b .digit-style-6 {
  animation: digitSixReachPulse 420ms ease-out;
}

.six-seven-button.dance-a .digit-six {
  animation: sixUp 620ms cubic-bezier(0.4, 0, 0.2, 1);
}

.six-seven-button.dance-a .digit-seven {
  animation: sevenDown 620ms cubic-bezier(0.4, 0, 0.2, 1);
}

.six-seven-button.dance-b .digit-seven {
  animation: sevenUp 620ms cubic-bezier(0.4, 0, 0.2, 1);
}

.six-seven-button.dance-b .digit-six {
  animation: sixDown 620ms cubic-bezier(0.4, 0, 0.2, 1);
}

.six-seven-button.is-six-reached .digit-style-6 {
  animation: digitSixCounterPulse 600ms ease-out;
}

.six-seven-button.is-seven-reached .digit-style-7 {
  animation: digitSevenBurst 300ms steps(2, end), digitSevenConstantGlitch 300ms steps(2, end) infinite;
  filter: brightness(1.35) drop-shadow(0 0 22px rgba(255, 0, 102, 0.9));
}

.slot-machine {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  min-height: 100%;
  border: 1px solid rgba(255, 0, 102, 0.72);
  padding: 10px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 255, 102, 0.09), transparent 42%),
    linear-gradient(225deg, rgba(255, 0, 102, 0.14), transparent 48%),
    rgba(0, 0, 0, 0.9);
  box-shadow: var(--shadow-red), inset 0 0 26px rgba(0, 255, 102, 0.08);
  text-align: center;
  pointer-events: auto;
}

.slot-machine.is-visible {
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 8px;
  animation: slotEnter 180ms ease-out;
}

.slot-machine h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(0.72rem, 2.2vw, 0.95rem);
  letter-spacing: 0.08em;
  text-shadow: 2px 0 var(--red), -2px 0 var(--cyan);
}

.slot-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.slot-cell {
  display: grid;
  min-height: 56px;
  place-items: center;
  border: 1px solid rgba(0, 255, 102, 0.55);
  color: #fff;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5px),
    rgba(0, 0, 0, 0.74);
  box-shadow: inset 0 0 18px rgba(0, 255, 102, 0.12);
  font-size: clamp(1.8rem, 7vw, 2.7rem);
  font-weight: 900;
}

.slot-spin-button {
  justify-self: center;
  z-index: 6;
  min-width: min(70%, 190px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  padding: 8px 26px;
  color: var(--black);
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
  box-shadow: 0 0 20px rgba(255, 0, 102, 0.42);
  cursor: pointer;
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  font-weight: 900;
}

.slot-spin-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7) brightness(0.75);
}

.slot-spin-button.slot-stake-6 {
  color: #001b0b;
  background: linear-gradient(90deg, var(--green), #f4ff00);
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.65);
}

.slot-spin-button.slot-stake-7 {
  color: #fff;
  background: linear-gradient(90deg, var(--red), #5b001f);
  text-shadow: 2px 0 var(--green), 0 0 12px rgba(255, 0, 102, 0.8);
}

.slot-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: left;
}

.slot-line span {
  color: #fff;
  font-weight: 900;
  text-shadow: 1px 0 var(--red), -1px 0 var(--cyan);
}

.six-seven-signal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10000;
  display: none;
  border: 0;
  padding: 14px 18px;
  background: transparent;
  font-family: "Rubik Glitch", "Orbitron", "Fira Code", "Roboto Mono", monospace;
  font-size: clamp(1.55rem, 7vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  cursor: pointer;
  white-space: nowrap;
  isolation: isolate;
}

.six-seven-signal.is-visible {
  display: block;
}

.six-seven-signal.is-real {
  color: #fff;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.88);
  paint-order: stroke fill;
  text-shadow:
    -5px 5px 0 #ff007a,
    5px 5px 0 #00d5ff,
    0 -5px 0 #ffcc00,
    0 0 6px rgba(255, 255, 255, 0.96),
    0 0 18px rgba(255, 0, 122, 0.68),
    0 0 24px rgba(0, 213, 255, 0.62);
  filter: saturate(1.55) brightness(1.2);
  animation:
    sixSevenFakeShake 360ms steps(2, end) infinite,
    sixSevenTrueFalseLikeGlitch 620ms steps(2, end) infinite;
}

.six-seven-signal.is-real::before,
.six-seven-signal.is-real::after {
  content: "SIX-SEVEN";
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  pointer-events: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.six-seven-signal.is-real::before {
  color: transparent;
  -webkit-text-stroke: 2px #ff007a;
  text-shadow: 6px 0 0 #00d5ff, 0 -4px 0 #ffcc00;
  clip-path: polygon(0 18%, 100% 12%, 100% 34%, 0 42%);
  animation: sixSevenTrueSliceA 1.15s steps(2, end) infinite;
}

.six-seven-signal.is-real::after {
  color: transparent;
  -webkit-text-stroke: 2px #00d5ff;
  text-shadow: -6px 0 0 #ff007a, 0 4px 0 #ffcc00;
  clip-path: polygon(0 55%, 100% 49%, 100% 76%, 0 84%);
  animation: sixSevenTrueSliceB 1.42s steps(2, end) infinite;
}

.six-seven-signal.is-fake {
  color: #ff3300;
  background: rgba(255, 0, 0, 0.15);
  text-shadow: 0 0 8px #ff0000, 0 0 15px #000;
  animation: sixSevenFakeShake 360ms steps(2, end) infinite, sixSevenFakeGlitch 620ms steps(2, end) infinite;
}

.signal-reward-toast {
  border-color: rgba(255, 255, 255, 0.95);
}

.signal-reward-toast.is-penalty {
  background:
    linear-gradient(90deg, rgba(255, 51, 0, 0.32), rgba(0, 0, 0, 0.72)),
    rgba(0, 0, 0, 0.95);
  box-shadow:
    0 0 28px rgba(255, 255, 255, 0.25),
    0 0 44px rgba(255, 0, 0, 0.48);
}

.status-line {
  display: none;
}

.status-line.warning {
  color: var(--green);
}

.status-line.error {
  color: var(--red);
}

.milestone-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}

.milestone {
  position: relative;
  display: none;
  min-height: clamp(28px, 3.1vw, 40px);
  min-width: 0;
  border: 2px solid rgba(121, 255, 72, 0.72);
  border-radius: 6px;
  padding: 4px 7px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(219, 255, 209, 0.82);
  background: rgba(0, 0, 0, 0.55);
  font-size: clamp(0.82rem, 1.75vw, 1.34rem);
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset 0 0 24px rgba(121, 255, 72, 0.08);
}

.milestone.is-viewed {
  display: grid;
}

.milestone::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--green);
  opacity: 0;
}

.milestone.is-active {
  color: var(--black);
  border-color: rgba(101, 255, 67, 0.94);
  background: linear-gradient(100deg, #00d95e, #b7ff18);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.14),
    0 0 24px rgba(101, 255, 67, 0.32);
}

.milestone.is-active::before,
.milestone.is-passed::before {
  opacity: 1;
}

.milestone.is-passed {
  color: #65ff43;
  border-color: rgba(101, 255, 67, 0.64);
  background: rgba(0, 0, 0, 0.58);
  box-shadow: inset 0 0 22px rgba(101, 255, 67, 0.08);
}

.ad-slot {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px dashed rgba(0, 255, 102, 0.42);
  padding: 8px;
  color: rgba(234, 255, 240, 0.9);
  background: rgba(0, 0, 0, 0.62);
  box-shadow: inset 0 0 18px rgba(0, 255, 102, 0.06);
  cursor: pointer;
  text-align: left;
  opacity: 0.78;
  transform: rotate(var(--chaos-tilt, 0deg));
  transition: opacity 140ms ease, transform 140ms ease, border-color 140ms ease, color 140ms ease;
}

.ad-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 5px);
  opacity: 0;
  mix-blend-mode: screen;
}

.ad-slot:hover,
.ad-slot:focus-visible {
  outline: none;
  color: #fff;
  opacity: 1;
  transform: translateY(-2px) rotate(var(--chaos-tilt, 0deg)) skewX(-1deg);
  box-shadow: var(--shadow-red);
  animation: adGlitch 240ms steps(2, end) infinite;
}

.ad-slot:hover::before,
.ad-slot:focus-visible::before,
.ad-slot.is-threshold-pulse::before {
  opacity: 0.7;
}

.ad-slot strong {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-slot span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 5px;
  font-size: 0.74rem;
  line-height: 1.2;
}

.ad-slot-days {
  grid-column: span 3;
  grid-row: span 2;
  border-color: rgba(255, 215, 0, 0.72);
  color: #fff8d0;
  background:
    linear-gradient(135deg, rgba(123, 31, 162, 0.62), rgba(255, 215, 0, 0.36)),
    rgba(24, 0, 34, 0.7);
  box-shadow: inset 0 0 26px rgba(255, 215, 0, 0.16);
}

.ad-slot-days strong {
  color: #ffd700;
  font-size: 0.9rem;
}

.ad-slot-hours {
  grid-column: span 2;
  grid-row: span 2;
  border-color: rgba(0, 213, 255, 0.62);
  color: #fbeaff;
  background:
    linear-gradient(135deg, rgba(0, 106, 255, 0.46), rgba(255, 0, 153, 0.34)),
    rgba(0, 0, 18, 0.72);
}

.ad-slot-hours strong {
  color: var(--cyan);
}

.ad-slot-minutes {
  grid-column: span 2;
  grid-row: span 1;
  border-color: rgba(0, 255, 102, 0.48);
  color: #d9ffe3;
  background:
    linear-gradient(135deg, rgba(0, 255, 102, 0.17), transparent),
    rgba(0, 25, 10, 0.78);
}

.ad-slot-minutes span {
  font-size: 0.66rem;
}

.ad-slot-seconds {
  grid-column: span 1;
  grid-row: span 1;
  border-color: rgba(255, 0, 102, 0.62);
  color: rgba(255, 235, 241, 0.78);
  background: rgba(0, 0, 0, 0.84);
  box-shadow: inset 0 0 12px rgba(255, 0, 102, 0.08);
}

.ad-slot-seconds strong {
  color: var(--red);
  font-size: 0.48rem;
  letter-spacing: 0.02em;
}

.ad-slot-seconds span {
  margin-top: 2px;
  font-size: 0.46rem;
  line-height: 1.05;
}

.ad-slot.is-threshold-pulse {
  z-index: 4;
  opacity: 1;
  animation: adThresholdPulse 900ms ease-out 2, adGlitch 240ms steps(2, end) 8;
}

.leaderboard-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(255, 0, 102, 0.42);
  padding: clamp(16px, 3vw, 22px);
  background:
    linear-gradient(90deg, rgba(255, 0, 102, 0.11), transparent 40%),
    rgba(0, 0, 0, 0.72);
  box-shadow: 0 0 44px rgba(255, 0, 102, 0.12);
}

.leaderboard-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.leaderboard-card h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  text-shadow: 2px 0 var(--red), -2px 0 var(--cyan);
}

.leaderboard-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.leaderboard-table-wrap {
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(0, 255, 102, 0.16);
  background: rgba(0, 0, 0, 0.28);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  border-bottom: 1px solid rgba(0, 255, 102, 0.16);
  padding: 7px 8px;
  text-align: left;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.92);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

td {
  color: #fff;
}

.path-leaderboard {
  min-width: 560px;
}

.path-leaderboard th:nth-child(1),
.path-leaderboard td:nth-child(1) {
  width: 48px;
}

.path-leaderboard th:nth-child(2),
.path-leaderboard td:nth-child(2) {
  width: 112px;
}

.path-leaderboard th:nth-child(3),
.path-leaderboard td:nth-child(3) {
  width: 78px;
}

.path-leaderboard th:nth-child(4),
.path-leaderboard td:nth-child(4) {
  width: auto;
}

.path-leaderboard td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-place,
.leaderboard-score {
  color: var(--green);
  font-weight: 800;
}

.path-leaderboard tr.is-empty td {
  color: rgba(234, 255, 240, 0.46);
}

.leaderboard-ad-cell {
  padding-block: 5px;
}

.leaderboard-ad-slot {
  width: 100%;
  min-height: 50px;
  transform: none;
}

.leaderboard-ad-slot:hover,
.leaderboard-ad-slot:focus-visible {
  transform: translateY(-1px) skewX(-1deg);
}

.leaderboard-ad-slot strong {
  font-size: 0.56rem;
}

.leaderboard-ad-slot span {
  font-size: 0.55rem;
}

.toast-layer {
  position: fixed;
  top: 24px;
  right: 18px;
  z-index: 10;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  border: 1px solid rgba(0, 255, 102, 0.56);
  padding: 15px 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: var(--shadow-green);
  animation: toastGlitch 3.4s both;
}

.toast.is-error {
  border-color: rgba(255, 0, 102, 0.65);
  box-shadow: var(--shadow-red);
}

.slot-reward-toast {
  display: grid;
  gap: 8px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(90deg, rgba(0, 255, 102, 0.2), rgba(255, 0, 102, 0.22)),
    rgba(0, 0, 0, 0.94);
  box-shadow:
    0 0 28px rgba(255, 255, 255, 0.32),
    0 0 38px rgba(0, 255, 102, 0.35),
    0 0 44px rgba(255, 0, 102, 0.32);
}

.slot-reward-result {
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 2px 0 var(--red), -2px 0 var(--cyan);
}

.slot-reward-value {
  color: #fff;
  font-size: clamp(1.55rem, 5vw, 2.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-shadow:
    3px 0 var(--red),
    -3px 0 var(--cyan),
    0 0 18px rgba(255, 255, 255, 0.9),
    0 0 34px rgba(0, 255, 102, 0.48);
}

.fullscreen-message {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #fff;
  background:
    repeating-linear-gradient(0deg, rgba(0, 255, 102, 0.14) 0 1px, transparent 1px 6px),
    rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.fullscreen-message.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.fullscreen-message-inner {
  max-width: 860px;
  border: 2px solid var(--green);
  padding: clamp(24px, 7vw, 54px);
  background: rgba(0, 0, 0, 0.78);
  box-shadow: var(--shadow-green), var(--shadow-red);
  font-size: clamp(1.6rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-shadow: 4px 0 var(--red), -4px 0 var(--cyan);
  animation: fullscreenGlitch 850ms steps(2, end) infinite;
}

.fullscreen-message-inner .digit-code {
  display: flex;
  justify-content: center;
  margin: 0 0 0.24em;
}

.fullscreen-message-inner .message-text {
  display: block;
}

.login-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 34px);
  background:
    repeating-linear-gradient(90deg, rgba(0, 255, 102, 0.08) 0 1px, transparent 1px 9px),
    radial-gradient(circle at 50% 42%, rgba(0, 255, 102, 0.18), transparent 34%),
    rgba(0, 0, 0, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.login-gate-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.login-gate-window {
  display: grid;
  gap: 15px;
  width: min(540px, 100%);
  border: 2px solid rgba(0, 255, 102, 0.72);
  padding: clamp(20px, 5vw, 34px);
  color: #eafff0;
  background:
    linear-gradient(135deg, rgba(0, 255, 102, 0.14), transparent 42%),
    linear-gradient(315deg, rgba(255, 0, 102, 0.14), transparent 46%),
    rgba(0, 0, 0, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 0, 102, 0.28),
    0 0 58px rgba(0, 255, 102, 0.26),
    inset 0 0 30px rgba(0, 255, 102, 0.08);
  animation: loginGateBoot 420ms steps(2, end) both;
}

.login-gate-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(0, 255, 102, 0.72);
  color: var(--green);
  background: rgba(0, 0, 0, 0.74);
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: var(--shadow-green);
}

.login-gate-window h2 {
  margin: -54px 0 0 70px;
  color: #fff;
  font-size: clamp(1.45rem, 5vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 3px 0 var(--red), -2px 0 var(--cyan), 0 0 20px rgba(0, 255, 102, 0.46);
}

.login-gate-window p {
  margin: 4px 0 0;
  color: rgba(234, 255, 240, 0.76);
  font-size: 0.9rem;
  line-height: 1.45;
}

.telegram-widget-placeholder {
  display: grid;
  gap: 10px;
  border: 1px dashed rgba(0, 213, 255, 0.62);
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(0, 213, 255, 0.12), rgba(255, 0, 102, 0.1)),
    rgba(0, 0, 0, 0.62);
}

.telegram-widget-placeholder span {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.telegram-widget-placeholder small {
  color: rgba(234, 255, 240, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.telegram-widget-placeholder small.is-bound {
  color: var(--green);
  text-shadow: 0 0 12px rgba(0, 255, 102, 0.6);
}

.telegram-widget-mount {
  min-height: 42px;
  display: flex;
  align-items: center;
}

.telegram-widget-mount.is-bound {
  min-height: 0;
}

.telegram-widget-mount.is-bound iframe {
  display: none;
}

.telegram-widget-mount.is-bound::before {
  content: "TELEGRAM LINKED";
  display: inline-flex;
  border: 1px solid rgba(0, 255, 102, 0.74);
  padding: 10px 12px;
  color: var(--green);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: inset 0 0 20px rgba(0, 255, 102, 0.14), 0 0 18px rgba(0, 255, 102, 0.18);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-gate-continue {
  border: 1px solid rgba(0, 255, 102, 0.66);
  padding: 12px 14px;
  color: #050505;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.login-gate-field {
  display: grid;
  gap: 7px;
}

.login-gate-field span {
  color: rgba(234, 255, 240, 0.86);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-gate-field input {
  width: 100%;
  border: 1px solid rgba(0, 255, 102, 0.48);
  padding: 12px 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font: inherit;
  box-shadow: inset 0 0 16px rgba(0, 255, 102, 0.08);
}

.login-gate-field input:focus {
  outline: 1px solid rgba(255, 0, 102, 0.88);
  box-shadow: var(--shadow-red), inset 0 0 16px rgba(0, 255, 102, 0.08);
}

.login-gate-continue:disabled {
  cursor: not-allowed;
  filter: grayscale(0.8) brightness(0.42);
  opacity: 0.58;
}

.is-login-gate-open {
  overflow: hidden;
}

.ad-request-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 34px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.ad-request-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.ad-request-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0, 255, 102, 0.08) 0 1px, transparent 1px 7px),
    rgba(0, 0, 0, 0.78);
  cursor: pointer;
}

.ad-request-window {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(620px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border: 2px solid rgba(0, 255, 102, 0.72);
  padding: clamp(18px, 4vw, 28px);
  color: #eafff0;
  background:
    linear-gradient(135deg, rgba(0, 255, 102, 0.13), transparent 42%),
    linear-gradient(315deg, rgba(255, 0, 102, 0.16), transparent 48%),
    rgba(0, 0, 0, 0.94);
  box-shadow:
    0 0 0 1px rgba(255, 0, 102, 0.32),
    0 0 48px rgba(0, 255, 102, 0.28),
    inset 0 0 34px rgba(0, 255, 102, 0.08);
  transform: translateY(16px) skewX(-1deg);
  transition: transform 160ms ease;
}

.ad-request-modal.is-visible .ad-request-window {
  transform: translateY(0) skewX(-1deg);
}

.ad-request-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 0, 102, 0.72);
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
  text-shadow: 1px 0 var(--red), -1px 0 var(--cyan);
}

.ad-request-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 255, 102, 0.64);
  color: var(--green);
  background: rgba(0, 0, 0, 0.7);
  box-shadow: var(--shadow-green);
  font-size: 1.45rem;
}

.ad-request-window h2 {
  margin: -48px 46px 4px 58px;
  color: #ffd700;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 2px 0 var(--red), -2px 0 var(--cyan);
}

.ad-request-field {
  display: grid;
  gap: 6px;
}

.ad-request-field span,
.ad-request-check span {
  color: rgba(234, 255, 240, 0.86);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-request-field input,
.ad-request-field textarea {
  width: 100%;
  border: 1px solid rgba(0, 255, 102, 0.42);
  padding: 10px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  font: inherit;
  box-shadow: inset 0 0 16px rgba(0, 255, 102, 0.06);
}

.ad-request-field input:focus,
.ad-request-field textarea:focus {
  outline: 1px solid rgba(255, 0, 102, 0.88);
  box-shadow: var(--shadow-red), inset 0 0 16px rgba(0, 255, 102, 0.08);
}

.ad-request-field input[readonly] {
  color: #b8ffc7;
  border-color: rgba(255, 215, 0, 0.48);
}

.ad-request-check {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ad-request-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.ad-request-pay {
  margin-top: 6px;
  border: 1px solid rgba(255, 215, 0, 0.8);
  padding: 13px 16px;
  color: #050505;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(0, 255, 102, 0.24);
}

.ad-request-pay:hover,
.ad-request-pay:focus-visible {
  outline: none;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.is-ad-modal-open {
  overflow: hidden;
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  pointer-events: none;
}

.seven-effect-layer {
  position: fixed;
  inset: 0;
  z-index: 9998;
  overflow: hidden;
  pointer-events: none;
}

.seven-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: -4px;
  height: 4px;
  background: #fff;
  box-shadow: 0 0 18px #fff, 0 0 30px rgba(0, 255, 102, 0.75);
  animation: sevenScanline 370ms linear forwards;
}

.seven-ripple {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 255, 102, 0.24) 0 30%, transparent 30% 70%, rgba(255, 0, 102, 0.24) 70% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0 30%, transparent 30% 70%, rgba(0, 213, 255, 0.13) 70% 100%);
  filter: blur(2px);
  animation: sevenRipple 370ms ease-out forwards;
}

.seven-pixel-noise {
  position: absolute;
  inset: 0;
  opacity: 0.78;
  animation: sevenPixelNoise 370ms linear forwards;
}

.seven-pixel-noise i {
  position: absolute;
  width: 4px;
  height: 4px;
  animation: sevenPixelSquare 370ms linear forwards;
}

.noise-symbol {
  position: absolute;
  display: inline-block;
  font-family: "Fira Code", "Roboto Mono", "Courier New", monospace;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: opacity, transform;
}

.noise-symbol-small {
  color: #44ff66;
  font-size: 136px;
  animation: noiseSmall 500ms ease-out forwards;
}

.noise-symbol-6 {
  font-size: 168px;
  font-weight: 900;
  animation: noiseSix 600ms ease-out forwards;
}

.noise-symbol-7 {
  font-size: 196px;
  font-weight: 900;
  animation: noiseSeven 700ms steps(2, end) forwards;
}

.matrix-edge {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(92px, 16vw);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.55;
}

.matrix-edge-left {
  left: 0;
}

.matrix-edge-right {
  right: 0;
}

.matrix-edge::before,
.matrix-edge::after {
  content: "0101 67 0011 6 7 1110 67 0001 1010 6-7 PRESS 0110 0111 67 0010 7 6";
  position: absolute;
  left: 10px;
  right: 10px;
  color: var(--green);
  font-size: 0.86rem;
  line-height: 1.25;
  text-orientation: mixed;
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.9);
  writing-mode: vertical-rl;
  animation: matrixRain 7s linear infinite;
}

.matrix-edge::after {
  animation-duration: 10s;
  animation-delay: -4s;
  opacity: 0.56;
}

.matrix-edge-right::before,
.matrix-edge-right::after {
  color: rgba(255, 0, 102, 0.88);
  text-shadow: 0 0 10px rgba(255, 0, 102, 0.78);
}

.scanline-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.12) 0 1px,
      transparent 1px 4px
    );
  mix-blend-mode: screen;
}

.scanline-layer.is-active {
  animation: globalScan 100ms steps(2, end);
}

.glitch {
  animation: textGlitch 2.8s infinite;
}

@keyframes sixUp {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  24% {
    transform: translate3d(0, -13px, 0) rotate(-0.35deg) scale(1.01);
  }

  52% {
    transform: translate3d(0, -34px, 0) rotate(-0.9deg) scale(1.026);
  }

  78% {
    transform: translate3d(0, -10px, 0) rotate(-0.25deg) scale(1.008);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes sevenDown {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  24% {
    transform: translate3d(0, 13px, 0) rotate(0.35deg) scale(0.996);
  }

  52% {
    transform: translate3d(0, 34px, 0) rotate(0.9deg) scale(0.988);
  }

  78% {
    transform: translate3d(0, 10px, 0) rotate(0.25deg) scale(0.996);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes sevenUp {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  24% {
    transform: translate3d(0, -13px, 0) rotate(0.35deg) scale(1.01);
  }

  52% {
    transform: translate3d(0, -34px, 0) rotate(0.9deg) scale(1.026);
  }

  78% {
    transform: translate3d(0, -10px, 0) rotate(0.25deg) scale(1.008);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes sixDown {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  24% {
    transform: translate3d(0, 13px, 0) rotate(-0.35deg) scale(0.996);
  }

  52% {
    transform: translate3d(0, 34px, 0) rotate(-0.9deg) scale(0.988);
  }

  78% {
    transform: translate3d(0, 10px, 0) rotate(-0.25deg) scale(0.996);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes digitOneFlicker {
  from {
    opacity: 0.6;
  }

  to {
    opacity: 0.8;
  }
}

@keyframes digitTwoPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes digitFourMicroGlitch {
  0%,
  94%,
  100% {
    text-shadow: 0.5px 0 rgba(255, 255, 255, 0.28), -0.5px 0 rgba(0, 255, 102, 0.18);
    transform: translateX(0);
  }

  96% {
    text-shadow: -0.5px 0 rgba(255, 0, 102, 0.45), 0.5px 0 rgba(0, 213, 255, 0.42);
    transform: translateX(0.5px);
  }
}

@keyframes digitFiveWarning {
  0%,
  100% {
    transform: translate(0, 0);
    filter: none;
  }

  45% {
    transform: translate(1px, -1px);
    filter: saturate(1.2);
  }

  55% {
    transform: translate(-1px, 1px);
    filter: hue-rotate(8deg);
  }
}

@keyframes digitSixStableBreath {
  0%,
  100% {
    filter: drop-shadow(0 0 14px rgba(0, 255, 102, 0.48));
  }

  50% {
    filter: drop-shadow(0 0 24px rgba(0, 255, 102, 0.86));
  }
}

@keyframes digitSixCounterPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 16px rgba(0, 255, 102, 0.6));
  }

  45% {
    transform: scale(1.3);
    filter: drop-shadow(0 0 36px rgba(0, 255, 102, 0.96));
  }
}

@keyframes digitSixReachPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 16px rgba(0, 255, 102, 0.58));
  }

  50% {
    filter: drop-shadow(0 0 34px rgba(0, 255, 102, 0.92));
  }
}

@keyframes digitSevenConstantGlitch {
  0%,
  100% {
    transform: translateX(0);
    filter: none;
  }

  33% {
    transform: translateX(2px);
    filter: hue-rotate(18deg);
  }

  66% {
    transform: translateX(-2px);
    filter: hue-rotate(-18deg);
  }
}

@keyframes digitSevenBurst {
  0% {
    color: var(--red);
    transform: translateX(0) scale(1);
  }

  35% {
    color: #fff;
    transform: translateX(3px) scale(1.08);
  }

  70% {
    color: #fff;
    transform: translateX(-3px) scale(1.03);
  }

  100% {
    color: var(--red);
    transform: translateX(0) scale(1);
  }
}

@keyframes slotEnter {
  0% {
    opacity: 0;
    transform: translateY(-8px) skewX(-2deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) skewX(0);
  }
}

@keyframes sixSevenRealPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes sixSevenRareGlitch {
  0%,
  92%,
  100% {
    filter: none;
  }

  95% {
    filter: hue-rotate(24deg);
    text-shadow: 2px 0 #00ff66, -2px 0 #ffcc00, 0 0 10px #ffcc00;
  }
}

@keyframes sixSevenTrueEditableGlitch {
  0%,
  82%,
  100% {
    filter: saturate(1.55) brightness(1.2) blur(0);
    text-shadow:
      -5px 5px 0 #ff007a,
      5px 5px 0 #00d5ff,
      0 -5px 0 #ffcc00,
      0 0 6px rgba(255, 255, 255, 0.96),
      0 0 18px rgba(255, 0, 122, 0.68),
      0 0 24px rgba(0, 213, 255, 0.62);
  }

  86% {
    filter: saturate(2) brightness(1.35) blur(0.7px);
    text-shadow:
      -8px 4px 0 #ff007a,
      8px 6px 0 #00d5ff,
      0 -7px 0 #ffcc00,
      0 0 10px #fff,
      0 0 22px rgba(255, 0, 122, 0.8);
  }

  90% {
    filter: saturate(1.75) brightness(1.24) blur(0);
    text-shadow:
      -4px 6px 0 #00d5ff,
      6px 3px 0 #ff007a,
      0 -6px 0 #ffcc00,
      0 0 8px #fff,
      0 0 24px rgba(0, 213, 255, 0.72);
  }
}

@keyframes sixSevenTrueSliceA {
  0%,
  78%,
  100% {
    transform: translate(0, 0);
    opacity: 0.9;
  }

  84% {
    transform: translate(-7px, -2px);
    opacity: 1;
  }

  90% {
    transform: translate(5px, 1px);
    opacity: 0.85;
  }
}

@keyframes sixSevenTrueSliceB {
  0%,
  70%,
  100% {
    transform: translate(0, 0);
    opacity: 0.86;
  }

  76% {
    transform: translate(6px, 2px);
    opacity: 1;
  }

  82% {
    transform: translate(-5px, -1px);
    opacity: 0.86;
  }
}

@keyframes sixSevenTrueBlink {
  0%,
  58%,
  100% {
    opacity: 1;
  }

  62% {
    opacity: 0.52;
  }

  66% {
    opacity: 0.92;
  }

  72% {
    opacity: 0.68;
  }
}

@keyframes sixSevenTrueFalseLikeGlitch {
  0%,
  100% {
    opacity: 1;
    filter: invert(0) saturate(1.55) brightness(1.2);
    text-shadow:
      -5px 5px 0 #ff007a,
      5px 5px 0 #00d5ff,
      0 -5px 0 #ffcc00,
      0 0 6px rgba(255, 255, 255, 0.96),
      0 0 18px rgba(255, 0, 122, 0.68),
      0 0 24px rgba(0, 213, 255, 0.62);
  }

  50% {
    opacity: 0.72;
    filter: invert(1) saturate(2.1) brightness(1.35);
    text-shadow:
      6px 0 #ff007a,
      -6px 0 #00d5ff,
      0 -4px #ffcc00,
      0 0 14px #fff,
      0 0 24px rgba(255, 0, 122, 0.82);
  }
}

@keyframes sixSevenFakeShake {
  0%,
  100% {
    transform: translate(-50%, -50%) translate(0, 0);
  }

  50% {
    transform: translate(-50%, -50%) translate(2px, -2px);
  }
}

@keyframes sixSevenFakeGlitch {
  0%,
  100% {
    filter: invert(0) saturate(1.2);
    text-shadow: 2px 0 #ff0000, -2px 0 #000, 0 0 15px #000;
  }

  50% {
    filter: invert(1) saturate(2);
    text-shadow: -3px 0 #ff0000, 3px 0 #000, 0 0 22px #ff0000;
  }
}

@keyframes buttonPulse {
  0%,
  100% {
    filter: saturate(1) contrast(1) brightness(1);
    transform: translateZ(0) scale(1);
  }

  50% {
    filter: saturate(1.22) contrast(1.08) brightness(1.045);
    transform: translateZ(0) scale(0.998);
  }
}

@keyframes loginGateBoot {
  0% {
    opacity: 0;
    transform: translateY(18px) skewX(-2deg);
    filter: blur(4px);
  }

  55% {
    opacity: 1;
    transform: translateY(-2px) skewX(1deg);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: none;
  }
}

@keyframes scanBurst {
  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 0.92;
  }
}

@keyframes ripple {
  0% {
    opacity: 0.8;
    transform: scale(0.1);
  }

  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

@keyframes greenFlash {
  0%,
  100% {
    background-color: transparent;
  }

  40% {
    background-color: var(--green-soft);
  }
}

@keyframes redFlash {
  0%,
  100% {
    background-color: transparent;
  }

  40% {
    background-color: var(--red-soft);
  }
}

@keyframes toastGlitch {
  0% {
    opacity: 0;
    transform: translateX(110%) skewX(-8deg);
  }

  8%,
  82% {
    opacity: 1;
    transform: translateX(0) skewX(0);
  }

  12%,
  18% {
    transform: translateX(-8px) skewX(5deg);
  }

  86% {
    opacity: 0;
    transform: translateX(24px) skewX(-7deg);
  }

  100% {
    opacity: 0;
  }
}

@keyframes fullscreenGlitch {
  0%,
  100% {
    transform: translate(0, 0) skewX(0);
    filter: hue-rotate(0);
  }

  35% {
    transform: translate(-3px, 2px) skewX(-2deg);
    filter: hue-rotate(42deg);
  }

  65% {
    transform: translate(3px, -2px) skewX(2deg);
    filter: hue-rotate(-36deg);
  }
}

@keyframes matrixRain {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(100%);
  }
}

@keyframes noiseSmall {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }

  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes noiseSix {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
  }

  45% {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes noiseSeven {
  0% {
    opacity: 0;
    filter: invert(1);
    transform: translate(-50%, -50%) translateX(0);
  }

  14% {
    opacity: 1;
    filter: invert(1);
    transform: translate(-50%, -50%) translateX(-2px);
  }

  15%,
  35%,
  55% {
    opacity: 1;
    filter: none;
    transform: translate(-50%, -50%) translateX(2px);
  }

  25%,
  45%,
  65% {
    opacity: 1;
    filter: none;
    transform: translate(-50%, -50%) translateX(-2px);
  }

  100% {
    opacity: 0;
    filter: none;
    transform: translate(-50%, -50%) translateX(0);
  }
}

@keyframes sevenScanline {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(calc(100vh + 8px));
  }
}

@keyframes sevenRipple {
  0% {
    opacity: 0;
    filter: blur(0) hue-rotate(0);
    transform: translateX(0);
  }

  24% {
    opacity: 0.7;
    filter: blur(2px) hue-rotate(36deg);
    transform: translateX(2px);
  }

  100% {
    opacity: 0;
    filter: blur(0);
    transform: translateX(-2px);
  }
}

@keyframes sevenPixelNoise {
  0%,
  27% {
    opacity: 0.2;
  }

  28% {
    opacity: 0.18;
  }

  100% {
    opacity: 0;
  }
}

@keyframes sevenPixelSquare {
  0%,
  27% {
    opacity: 1;
  }

  28%,
  100% {
    opacity: 0;
  }
}

@keyframes globalScan {
  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 0.42;
  }
}

@keyframes textGlitch {
  0%,
  92%,
  100% {
    text-shadow: 3px 0 var(--red), -3px 0 var(--cyan), 0 0 24px rgba(0, 255, 102, 0.6);
  }

  94% {
    text-shadow: -6px 0 var(--red), 5px 0 var(--cyan), 0 0 18px rgba(255, 0, 102, 0.6);
  }

  96% {
    text-shadow: 6px 0 var(--cyan), -5px 0 var(--red), 0 0 18px rgba(0, 255, 102, 0.7);
  }
}

@keyframes timerJitter {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(1px, -1px);
  }
}

@keyframes adGlitch {
  0%,
  100% {
    filter: none;
  }

  35% {
    filter: hue-rotate(90deg) contrast(1.5);
    transform: translateY(-2px) rotate(var(--chaos-tilt, 0deg)) skewX(2deg);
  }

  70% {
    filter: hue-rotate(-90deg) saturate(1.7);
    transform: translateY(1px) rotate(var(--chaos-tilt, 0deg)) skewX(-3deg);
  }
}

@keyframes adThresholdPulse {
  0%,
  100% {
    box-shadow: inset 0 0 18px rgba(0, 255, 102, 0.08);
    transform: rotate(var(--chaos-tilt, 0deg)) scale(1);
  }

  45% {
    border-color: #fff;
    box-shadow: 0 0 24px currentColor, inset 0 0 28px rgba(255, 255, 255, 0.18);
    transform: rotate(var(--chaos-tilt, 0deg)) scale(1.045);
  }
}

@media (max-width: 920px) {
  .shell {
    width: min(680px, calc(100% - 24px));
    padding-top: 22px;
  }

  .layout-grid {
    grid-template-columns: 1fr;
  }

  .control-column {
    position: static;
    order: 0;
  }

  .left-column {
    order: 1;
    height: auto;
    min-height: auto;
  }

  .console {
    width: 100%;
  }

  .top-ad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-ad-grid .ad-slot {
    min-height: 86px;
  }

  .ad-slot-seconds strong,
  .ad-slot-seconds span {
    font-size: 0.7rem;
  }

  .leaderboard-card {
    margin-top: 18px;
  }

  .leaderboard-table-wrap {
    max-height: 560px;
  }
}

@media (max-width: 540px) {
  .shell {
    width: min(100% - 18px, 480px);
  }

  .console {
    padding: 14px;
  }

  .mega-ad-slot {
    min-height: 116px;
  }

  .top-ad-grid {
    grid-template-columns: 1fr;
  }

  .control-readout-row {
    grid-template-columns: minmax(106px, 0.34fr) minmax(0, 0.66fr);
    gap: 8px;
  }

  .path-panel {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    min-height: 56px;
  }

  .path-score-card {
    border-right: 1px solid rgba(121, 255, 72, 0.48);
    border-bottom: 0;
  }

  .stage-selector {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 5px;
  }

  .clicker-stage {
    margin-top: 0;
  }

  .six-seven-button {
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .digit {
    font-size: clamp(3.2rem, 18vw, 5.1rem);
  }

  .milestone-track {
    grid-template-columns: 1fr;
  }

  .leaderboard-head {
    display: grid;
    gap: 4px;
  }

  th,
  td {
    padding: 9px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
