@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --pixel-green: #00ff41;
  --pixel-dark: #0a0a0a;
  --pixel-panel: #0d1b0d;
  --pixel-border: #00ff41;
  --pixel-accent: #ff6b00;
  --pixel-gray: #1a2e1a;
  --pixel-text: #c8ffc8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  background: var(--pixel-dark);
  font-family: 'Press Start 2P', monospace;
  image-rendering: pixelated;
}

body {
  overflow-y: auto;
  overflow-x: hidden;
}

#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
}

#vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

#ui {
  position: relative;
  min-height: 100vh;
  width: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 80px 16px 40px;
}

.pixel-box {
  border: 4px solid var(--pixel-border);
  box-shadow:
    4px 4px 0 #000,
    inset 0 0 30px rgba(0, 255, 65, 0.05);
  image-rendering: pixelated;
}

.pixel-box::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid rgba(0, 255, 65, 0.2);
  pointer-events: none;
}

#main-panel {
  position: relative;
  background: rgba(10, 20, 10, 0.92);
  padding: 32px 24px;
  max-width: 680px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(2px);
}

#logo-area {
  margin-bottom: 28px;
}

#pixel-logo {
  display: block;
  margin: 0 auto 16px;
  width: 160px;
  height: 160px;
  object-fit: contain;
  image-rendering: pixelated;
}

h1 {
  font-size: clamp(14px, 5vw, 28px);
  color: var(--pixel-green);
  letter-spacing: 4px;
  text-shadow:
    0 0 10px var(--pixel-green),
    0 0 20px rgba(0, 255, 65, 0.4);
  animation: blink-glow 2.5s ease-in-out infinite;
  line-height: 1.6;
}

.subtitle {
  font-size: clamp(7px, 1.2vw, 10px);
  color: var(--pixel-text);
  letter-spacing: 2px;
  margin-top: 12px;
  opacity: 0.8;
  line-height: 2;
}

.divider {
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--pixel-green) 0px,
    var(--pixel-green) 8px,
    transparent 8px,
    transparent 16px
  );
  margin: 28px 0;
  opacity: 0.6;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.feature-item {
  background: var(--pixel-gray);
  border: 2px solid rgba(0, 255, 65, 0.3);
  padding: 14px 10px;
  font-size: clamp(7px, 2vw, 8px);
  color: var(--pixel-text);
  letter-spacing: 1px;
  line-height: 2;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.feature-item:hover {
  border-color: var(--pixel-green);
  background: rgba(0, 255, 65, 0.08);
}

.feature-item .feat-title {
  color: var(--pixel-green);
  display: block;
  margin-bottom: 6px;
  font-size: clamp(7px, 1.1vw, 9px);
}

.feature-item .feat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--pixel-accent);
  margin-right: 6px;
  vertical-align: middle;
  image-rendering: pixelated;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-bottom: 4px;
  border: 2px solid rgba(0, 255, 65, 0.3);
  pointer-events: all;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.download-area {
  pointer-events: all;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--pixel-green);
  color: #000;
  text-decoration: none;
  padding: 14px 20px;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(8px, 2.5vw, 10px);
  letter-spacing: 1px;
  border: none;
  box-shadow: 4px 4px 0 #003d10, 8px 8px 0 #001a07;
  transition: transform 0.1s, box-shadow 0.1s;
  image-rendering: pixelated;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}

.btn-play:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #003d10, 10px 10px 0 #001a07;
}

.btn-play:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.gplay-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.btn-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 4px;
}

.btn-label span:first-child {
  font-size: clamp(5px, 0.8vw, 7px);
  opacity: 0.7;
  letter-spacing: 1px;
}

.btn-label span:last-child {
  font-size: clamp(8px, 1.3vw, 11px);
  letter-spacing: 1px;
}

.social-area {
  pointer-events: all;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.btn-social {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 10px 18px 10px 12px;
  border-radius: 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.social-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
  line-height: 1.1;
}

.social-top {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(5px, 0.8vw, 6px);
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
}

.social-bottom {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(8px, 1.4vw, 11px);
  letter-spacing: 1px;
  color: #fff;
}

.btn-social:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-social:active {
  transform: translateY(-1px);
}

.btn-telegram .social-icon {
  background: linear-gradient(160deg, #2aabee 0%, #229ed9 100%);
}

.btn-telegram:hover {
  border-color: rgba(42, 171, 238, 0.6);
  box-shadow: 0 10px 26px rgba(34, 158, 217, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-x .social-icon {
  background: linear-gradient(160deg, #2b2b2b 0%, #000 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-x:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ticker {
  margin-top: 24px;
  font-size: clamp(6px, 0.9vw, 8px);
  color: var(--pixel-accent);
  letter-spacing: 2px;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-block;
  animation: ticker-scroll 18s linear infinite;
}

.corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--pixel-green);
  border-style: solid;
}

.corner.tl {
  top: -4px;
  left: -4px;
  border-width: 3px 0 0 3px;
}

.corner.tr {
  top: -4px;
  right: -4px;
  border-width: 3px 3px 0 0;
}

.corner.bl {
  bottom: -4px;
  left: -4px;
  border-width: 0 0 3px 3px;
}

.corner.br {
  bottom: -4px;
  right: -4px;
  border-width: 0 3px 3px 0;
}

#lang-btn {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 20;
  pointer-events: all;
  background: rgba(10, 20, 10, 0.92);
  border: 2px solid var(--pixel-green);
  color: var(--pixel-green);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 1px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 3px 3px 0 #000;
  transition: background 0.15s, transform 0.1s;
  user-select: none;
}

#lang-btn:hover {
  background: rgba(0, 255, 65, 0.12);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #000;
}

#lang-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.lang-icon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lang-icon span {
  display: block;
  background: var(--pixel-green);
  image-rendering: pixelated;
}

.lang-icon span:nth-child(3),
.lang-icon span:nth-child(4) {
  background: var(--pixel-accent);
}

@keyframes blink-glow {
  0%,
  100% {
    text-shadow:
      0 0 10px var(--pixel-green),
      0 0 20px rgba(0, 255, 65, 0.4);
  }
  50% {
    text-shadow:
      0 0 20px var(--pixel-green),
      0 0 40px rgba(0, 255, 65, 0.7),
      0 0 60px rgba(0, 255, 65, 0.3);
  }
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (min-width: 480px) {
  #main-panel {
    padding: 40px 48px;
  }

  .features {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .btn-play {
    width: auto;
    padding: 14px 28px;
  }
}
