@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700;800&family=Oxanium:wght@600;700;800&display=swap");

:root {
  --bg: #06111f;
  --panel: rgba(7, 20, 38, 0.9);
  --panel-strong: rgba(9, 24, 46, 0.96);
  --line: rgba(98, 183, 255, 0.34);
  --line-soft: rgba(98, 183, 255, 0.16);
  --ink: #eef7ff;
  --muted: #bfdcff;
  --lime: #63b7ff;
  --gold: #ffd934;
  --gold-deep: #bd8617;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  background:
    radial-gradient(circle at 10% 6%, rgba(73, 180, 255, 0.34), transparent 24rem),
    radial-gradient(circle at 88% 20%, rgba(91, 94, 255, 0.24), transparent 24rem),
    radial-gradient(circle at 52% 65%, rgba(18, 126, 214, 0.22), transparent 34rem),
    linear-gradient(145deg, #030a14 0%, #08182b 52%, #091121 100%);
  overflow-x: hidden;
}

body.booting {
  overflow: hidden;
}

a {
  color: inherit;
}

.page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 86px 18px 54px;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(76, 176, 255, 0.28), transparent 24rem),
    radial-gradient(circle at 82% 28%, rgba(88, 104, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 52% 60%, rgba(36, 122, 228, 0.18), transparent 30rem);
  opacity: 0.72;
  animation: pageBackdropPulse 5.4s ease-in-out infinite;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(107, 187, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 187, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 78%, transparent);
  animation: gridPulse 3.6s steps(2, end) infinite;
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: 0.25;
  animation: screenFlicker 4.2s ease-in-out infinite;
}

.glow {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(45px);
  opacity: 0.42;
  animation: ambientFlicker 6s ease-in-out infinite;
}

.glow-left {
  left: -12rem;
  top: -8rem;
  background: #1b8cff;
}

.glow-right {
  right: -13rem;
  top: 16rem;
  background: #345fe6;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 24%, rgba(95, 170, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 68% 74%, rgba(31, 126, 224, 0.26), transparent 30rem),
    linear-gradient(145deg, #030914, #09192d 48%, #07111f);
  transition: opacity 620ms ease, visibility 620ms ease;
}

.boot-screen[hidden] {
  display: none;
}

.boot-screen::before,
.boot-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.boot-screen::before {
  background:
    linear-gradient(rgba(107, 187, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 187, 255, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(116, 193, 255, 0.18) 0.8px, transparent 0.8px);
  background-size: 34px 34px, 34px 34px, 4px 4px;
  opacity: 0.72;
}

.boot-screen::after {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: 0.26;
  animation: bootFlicker 260ms steps(2, end) infinite;
}

body.boot-done .boot-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-hud {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  width: min(326px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(98, 183, 255, 0.62);
  border-radius: 8px;
  background: rgba(8, 22, 42, 0.82);
  box-shadow: 0 0 22px rgba(98, 183, 255, 0.16);
}

.boot-hud p {
  margin: 0;
  color: #9fd2ff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: 0.06em;
}

.boot-hud p:last-child {
  color: #ff6178;
  text-shadow: 0 0 10px rgba(255, 67, 98, 0.72);
}

.matrix-rain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.matrix-rain span {
  position: absolute;
  top: -36%;
  left: calc(7% + var(--col) * 16%);
  color: rgba(113, 190, 255, 0.25);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-orientation: mixed;
  text-shadow: 0 0 8px rgba(91, 174, 255, 0.34);
  writing-mode: vertical-rl;
  animation: matrixFall 7.5s linear infinite;
  animation-delay: calc(var(--col) * -0.82s);
}

.boot-console {
  position: relative;
  z-index: 3;
  width: min(880px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(98, 183, 255, 0.48);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(7, 18, 35, 0.96), rgba(8, 22, 43, 0.9));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.58),
    0 0 42px rgba(98, 183, 255, 0.16),
    inset 0 0 0 1px rgba(0, 0, 0, 0.45);
  isolation: isolate;
  animation: bootConsoleIn 520ms ease both, bootConsoleGlow 2.8s ease-in-out infinite;
}

.boot-console::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent, rgba(136, 198, 255, 0.22), transparent);
  opacity: 0.7;
}

.boot-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.boot-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(98, 183, 255, 0.5);
  border-radius: 12px;
  color: #d5ebff;
  font-size: 1.3rem;
  background: linear-gradient(145deg, rgba(22, 54, 94, 0.9), rgba(8, 18, 38, 0.84));
  box-shadow: inset 0 0 18px rgba(98, 183, 255, 0.2);
}

.boot-head p {
  margin: 0;
  color: rgba(193, 225, 255, 0.56);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.boot-head h2 {
  margin: 8px 0 10px;
  color: #eaffdf;
  font-family: "Oxanium", sans-serif;
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 12px rgba(110, 194, 255, 0.72),
    0 2px 0 rgba(7, 26, 52, 0.82);
}

.boot-head > span {
  align-self: start;
  padding: 8px 13px;
  border: 1px solid rgba(98, 183, 255, 0.58);
  border-radius: 999px;
  color: #d8eaff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
  background: rgba(24, 64, 118, 0.34);
}

.boot-body {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  gap: 14px;
}

.boot-progress,
.boot-alert {
  min-height: 224px;
  border: 1px solid rgba(98, 183, 255, 0.26);
  border-radius: 12px;
  background: rgba(5, 17, 33, 0.78);
  box-shadow: inset 0 0 24px rgba(90, 174, 255, 0.05);
}

.boot-progress {
  padding: 16px 14px;
}

.boot-bar {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(126, 191, 255, 0.48);
  border-radius: 999px;
  background: rgba(3, 12, 24, 0.92);
}

.boot-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #48a8ff, #7de0ff);
  box-shadow: 0 0 18px rgba(111, 195, 255, 0.8);
  transition: width 110ms linear;
}

.boot-progress strong {
  display: block;
  margin-top: 12px;
  color: #dbeaff;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.boot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.boot-tags span {
  padding: 5px 10px;
  border: 1px solid rgba(98, 183, 255, 0.42);
  border-radius: 999px;
  color: #cde4ff;
  font-size: 0.6rem;
  font-weight: 800;
  background: rgba(24, 68, 124, 0.26);
}

.boot-alert {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  padding: 12px;
}

.boot-alert > div:first-child {
  padding: 11px 12px;
  border: 1px solid rgba(255, 81, 117, 0.66);
  border-radius: 10px;
  color: #ffdbe3;
  background: rgba(64, 8, 24, 0.72);
}

.boot-alert strong {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.boot-alert p {
  margin: 6px 0 0;
  color: #f6c4cf;
  font-size: 0.66rem;
  font-weight: 800;
}

.boot-log {
  overflow: hidden;
  padding: 11px 12px;
  border: 1px dashed rgba(98, 183, 255, 0.34);
  border-radius: 10px;
  background: rgba(3, 12, 24, 0.6);
}

.boot-log p {
  margin: 0 0 7px;
  color: #a9d5ff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  animation: logIn 180ms ease both;
}

.console {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
}

.unlock-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(20, 52, 98, 0.22), transparent 48%),
    var(--panel);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55) inset,
    0 20px 70px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(98, 183, 255, 0.12);
  padding: 16px 14px 18px;
  animation: panelIn 650ms ease both, panelBreath 3.8s ease-in-out infinite;
}

.unlock-card::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(115deg, transparent 37%, rgba(130, 255, 105, 0.16) 50%, transparent 63%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-45%);
  animation: panelSweep 5s ease-in-out infinite;
}

.unlock-card > * {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 7px;
  color: #a8ff8e;
  font-family: "Oxanium", sans-serif;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0 0 14px;
  color: #f0ffea;
  font-family: "Oxanium", sans-serif;
  font-size: clamp(1.42rem, 5.5vw, 1.8rem);
  line-height: 1.08;
  text-shadow:
    0 0 10px rgba(137, 255, 113, 0.55),
    0 1px 0 #0a240b;
}

.main-cta {
  position: relative;
  display: flex;
  min-height: 116px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 13px 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 189, 0.92);
  border-radius: 10px;
  color: #4d3400;
  text-align: center;
  text-decoration: none;
  background:
    linear-gradient(116deg, transparent 0 40%, rgba(255, 255, 255, 0.88) 46%, transparent 55%),
    linear-gradient(180deg, #ffe954 0%, #f1ca26 54%, #c9971a 100%);
  box-shadow:
    0 4px 0 #845d12,
    0 0 18px rgba(255, 234, 87, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transform: translateY(0);
  transition: transform 160ms ease, filter 160ms ease;
  animation: ctaPulse 1.8s ease-in-out infinite;
}

.main-cta::before {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -42%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), transparent);
  transform: rotate(18deg);
  animation: ctaShine 2.4s ease-in-out infinite;
}

.main-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.cta-title {
  position: relative;
  z-index: 1;
  font-family: "Oxanium", sans-serif;
  font-size: 1.34rem;
  font-weight: 800;
  line-height: 1.28;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.cta-sub {
  position: relative;
  z-index: 1;
  max-width: 250px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0.72;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 13px 13px 12px;
  border: 1px dashed rgba(98, 183, 255, 0.5);
  border-radius: 9px;
  list-style: none;
  background: rgba(5, 15, 30, 0.52);
  box-shadow: inset 0 0 22px rgba(98, 183, 255, 0.08);
  animation: listGlow 2.7s ease-in-out infinite;
}

.check-list li {
  position: relative;
  min-height: 20px;
  padding-left: 28px;
  color: #e7f2ff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--lime);
  font-size: 1.16rem;
  font-weight: 800;
  text-shadow: 0 0 9px rgba(98, 183, 255, 0.8);
  animation: checkBlink 1.7s ease-in-out infinite;
}

.game-panel {
  position: relative;
  margin-top: 18px;
  animation: panelIn 720ms 120ms ease both;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 112px);
  justify-content: center;
  gap: 12px;
}

.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(98, 183, 255, 0.46);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(22, 56, 96, 0.18), transparent 44%),
    var(--panel-strong);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(0, 0, 0, 0.42);
  transform: translateY(0);
  animation: cardRise 650ms ease both, cardFloat 3.4s ease-in-out infinite;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card:nth-child(2) {
  animation-delay: 90ms, 350ms;
}

.game-card:nth-child(3) {
  animation-delay: 180ms, 700ms;
}

.game-card:hover {
  border-color: rgba(132, 202, 255, 0.9);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.42),
    0 0 22px rgba(98, 183, 255, 0.24),
    inset 0 0 0 1px rgba(132, 202, 255, 0.14);
  transform: translateY(-5px);
}

.thumb {
  position: relative;
  height: 84px;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  border-bottom: 1px solid rgba(98, 183, 255, 0.24);
}

.thumb img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb img[hidden] {
  display: none;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.42));
}

.thumb span {
  position: absolute;
  left: 7px;
  top: 8px;
  z-index: 3;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff8cf;
  font-size: 0.6rem;
  font-weight: 800;
  background: rgba(16, 36, 18, 0.9);
  box-shadow: 0 0 12px rgba(255, 255, 140, 0.24);
  animation: hotBlink 1.45s steps(2, end) infinite;
}

.photo {
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.52), transparent 13%),
    radial-gradient(circle at 36% 38%, rgba(255, 226, 74, 0.55), transparent 20%),
    linear-gradient(145deg, #7b190e, #f7a91e 42%, #30100b);
}

.fortune,
.jackpot {
  color: #fff6b6;
  font-family: "Oxanium", sans-serif;
  text-shadow: 0 2px 0 #4d2300, 0 0 12px rgba(255, 207, 62, 0.8);
}

.fortune {
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.55), transparent 14%),
    radial-gradient(circle at 42% 45%, #fff079 0 14%, transparent 15%),
    radial-gradient(circle at 58% 45%, #d69724 0 14%, transparent 15%),
    linear-gradient(150deg, #6b3208, #f3c530 42%, #7d300a 100%);
}

.jackpot {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 219, 67, 0.45), transparent 19%),
    radial-gradient(circle at 76% 36%, rgba(255, 91, 71, 0.5), transparent 21%),
    linear-gradient(145deg, #43110e, #9b2422 46%, #221009);
}

.thumb b,
.thumb strong {
  position: relative;
  z-index: 0;
  display: block;
}

.thumb b {
  font-size: 0.98rem;
  transform: rotate(-6deg);
}

.thumb strong {
  font-size: 1.08rem;
  transform: rotate(-6deg);
}

.game-body {
  min-height: 148px;
  display: grid;
  grid-template-rows: 32px 48px 22px 24px 8px;
  align-content: start;
  padding: 9px 10px 11px;
}

.game-body p {
  margin: 0 0 7px;
  color: #a9ff8f;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.game-body h2 {
  min-height: 0;
  margin: 0;
  color: #fff;
  font-family: "Oxanium", sans-serif;
  font-size: 0.8rem;
  line-height: 1.14;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}

.rate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px;
  margin: 0;
}

.rate span {
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  font-size: 0.6rem;
  line-height: 1;
  white-space: nowrap;
}

.rate strong {
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
  text-align: right;
}

.game-body small {
  display: block;
  width: max-content;
  max-width: 100%;
  align-self: center;
  margin: 0;
  padding: 3px 8px;
  border: 1px solid rgba(112, 255, 82, 0.52);
  border-radius: 999px;
  color: #c5ffb6;
  font-size: 0.48rem;
  font-weight: 800;
  background: rgba(61, 126, 25, 0.42);
}

.meter {
  align-self: end;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(160, 255, 136, 0.18);
}

.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #51f35a, #b9ff60);
  box-shadow: 0 0 12px rgba(119, 255, 85, 0.65);
  animation: meterGlow 1.6s ease-in-out infinite;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panelBreath {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.55) inset,
      0 20px 70px rgba(0, 0, 0, 0.48),
      0 0 24px rgba(119, 255, 85, 0.08);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(119, 255, 85, 0.12) inset,
      0 20px 70px rgba(0, 0, 0, 0.48),
      0 0 38px rgba(119, 255, 85, 0.2);
  }
}

@keyframes panelSweep {
  0%,
  58% {
    opacity: 0;
    transform: translateX(-45%);
  }

  68% {
    opacity: 1;
  }

  82%,
  100% {
    opacity: 0;
    transform: translateX(45%);
  }
}

@keyframes ctaPulse {
  0%,
  100% {
    box-shadow:
      0 4px 0 #845d12,
      0 0 16px rgba(255, 234, 87, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }

  50% {
    box-shadow:
      0 4px 0 #845d12,
      0 0 28px rgba(255, 234, 87, 0.72),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

@keyframes ctaShine {
  0%,
  44% {
    left: -42%;
    opacity: 0;
  }

  55% {
    opacity: 0.9;
  }

  74%,
  100% {
    left: 112%;
    opacity: 0;
  }
}

@keyframes listGlow {
  0%,
  100% {
    border-color: rgba(112, 255, 82, 0.42);
  }

  50% {
    border-color: rgba(148, 255, 120, 0.78);
  }
}

@keyframes checkBlink {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.65);
  }
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -3px;
  }
}

@keyframes hotBlink {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.45);
  }
}

@keyframes meterGlow {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.35);
  }
}

@keyframes matrixFall {
  from {
    transform: translateY(-10vh);
  }

  to {
    transform: translateY(150vh);
  }
}

@keyframes bootFlicker {
  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.32;
  }
}

@keyframes bootConsoleIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bootConsoleGlow {
  0%,
  100% {
    box-shadow:
      0 28px 90px rgba(0, 0, 0, 0.58),
      0 0 34px rgba(119, 255, 85, 0.12),
      inset 0 0 0 1px rgba(0, 0, 0, 0.45);
  }

  50% {
    box-shadow:
      0 28px 90px rgba(0, 0, 0, 0.58),
      0 0 54px rgba(119, 255, 85, 0.22),
      inset 0 0 0 1px rgba(119, 255, 85, 0.1);
  }
}

@keyframes logIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes gridPulse {
  0%, 100% {
    opacity: 0.72;
  }
  45% {
    opacity: 0.48;
  }
  55% {
    opacity: 0.78;
  }
}

@keyframes screenFlicker {
  0%, 100% {
    opacity: 0.22;
  }
  14% {
    opacity: 0.16;
  }
  18% {
    opacity: 0.3;
  }
  52% {
    opacity: 0.2;
  }
  56% {
    opacity: 0.28;
  }
  82% {
    opacity: 0.18;
  }
}

@keyframes ambientFlicker {
  0%, 100% {
    opacity: 0.4;
    filter: blur(45px);
  }
  33% {
    opacity: 0.5;
    filter: blur(50px);
  }
  67% {
    opacity: 0.34;
    filter: blur(42px);
  }
}

@keyframes pageBackdropPulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(1);
  }
  20% {
    opacity: 0.74;
  }
  50% {
    opacity: 0.46;
    transform: scale(1.04);
  }
  72% {
    opacity: 0.7;
  }
}

.scrolling-text-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  height: 80px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(2, 9, 6, 0.8), rgba(2, 9, 6, 0.4) 30%, rgba(2, 9, 6, 0.4) 70%, rgba(2, 9, 6, 0.8));
  overflow: hidden;
  border-top: 1px solid rgba(119, 255, 85, 0.15);
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.6);
}

.scrolling-text-content {
  display: flex;
  white-space: nowrap;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(119, 255, 85, 0.25);
  letter-spacing: 0.08em;
  animation: scrollText 20s linear infinite;
  font-family: "Oxanium", sans-serif;
}

.scrolling-text-content span {
  margin-right: 2rem;
}

@media (max-width: 760px) {
  .boot-screen {
    padding: 16px;
  }

  .boot-hud {
    display: none;
  }

  .boot-console {
    width: min(460px, 100%);
    padding: 13px;
  }

  .boot-head {
    grid-template-columns: auto 1fr;
    gap: 11px;
  }

  .boot-head h2 {
    font-size: clamp(2rem, 10vw, 3rem);
    letter-spacing: 0.06em;
  }

  .boot-head > span {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .boot-body {
    grid-template-columns: 1fr;
  }

  .boot-progress,
  .boot-alert {
    min-height: 148px;
  }
}

@media (max-width: 520px) {
  .boot-screen {
    padding: 12px;
  }

  .boot-console {
    border-radius: 15px;
  }

  .boot-icon {
    width: 42px;
    height: 42px;
    font-size: 1.12rem;
  }

  .boot-head p {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .boot-head h2 {
    margin: 6px 0 8px;
    font-size: clamp(1.85rem, 9.6vw, 2.35rem);
  }

  .boot-progress,
  .boot-alert {
    min-height: 132px;
  }

  .boot-tags span {
    font-size: 0.52rem;
  }

  .page {
    padding-top: 38px;
  }

  .console {
    width: min(360px, 100%);
  }

  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .unlock-card {
    padding: 14px 12px 16px;
  }

  .main-cta {
    min-height: 108px;
  }

  .cta-title {
    font-size: 1.1rem;
  }

  .check-list li {
    font-size: 0.78rem;
  }

  .thumb {
    height: 78px;
  }

  .game-body {
    min-height: 144px;
    grid-template-rows: 32px 46px 22px 24px 8px;
    padding: 7px;
  }

  .game-body h2 {
    font-size: 0.72rem;
  }

  .rate span {
    font-size: 0.56rem;
  }

  .rate strong {
    font-size: 0.74rem;
  }
}

/* CSS cho nút Telegram nổi */
#telegram-float {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(98, 183, 255, 0.3);
  border: 2px solid rgba(98, 183, 255, 0.8);
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
  animation: telegramPulse 2.5s ease-in-out infinite;
}

#telegram-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(98, 183, 255, 0.5);
  background: #93d5ff;
  animation-play-state: paused; /* Tạm dừng animation khi hover */
}

#telegram-float svg {
  transition: transform 200ms ease;
}

#telegram-float:hover svg {
    transform: rotate(10deg);
}

@keyframes telegramPulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.4),
      0 0 24px rgba(98, 183, 255, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.4),
      0 0 38px rgba(98, 183, 255, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.4),
      0 0 24px rgba(98, 183, 255, 0.3);
  }
}