:root {
  --bg-start: #020814;
  --bg-end: #030d1a;
  --card: #0a1628;
  --line: #22c55e;
  --line-blue: #3b82f6;
  --text: #f0fdf4;
  --muted: #b7c7bd;
  --danger: #ff5c7a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 20% 15%, #07182e 0, transparent 36%),
    radial-gradient(circle at 85% 10%, #092c22 0, transparent 26%),
    linear-gradient(135deg, var(--bg-start), var(--bg-end));
  color: var(--text);
  font-family: "Exo 2", sans-serif;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.12;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.wrap {
  width: min(1180px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(2, 8, 20, 0.9);
  border-bottom: 1px solid rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.22);
  backdrop-filter: blur(6px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Share Tech Mono", monospace;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.logo img {
  width: 38px;
  height: 38px;
}

.logo-terminal {
  color: var(--line);
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
}

.main-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a {
  font-family: "Share Tech Mono", monospace;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: #d2f8df;
  position: relative;
  padding: 4px 0;
}

.main-nav a::before {
  content: ">";
  position: absolute;
  left: -11px;
  opacity: 0;
  color: var(--line);
  transition: opacity 0.25s ease;
}

.main-nav a:hover::before,
.main-nav a.active::before {
  opacity: 1;
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.terminal-btn,
.auth-btn,
.buy-btn {
  border: 1px solid var(--line);
  background: rgba(34, 197, 94, 0.13);
  color: #e8fff1;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.83rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 9px 14px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.terminal-btn:hover,
.auth-btn:hover,
.buy-btn:hover {
  background: var(--line-blue);
  border-color: var(--line-blue);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.45);
}

.hero {
  padding: 90px 0 46px;
}

.hero-panel {
  position: relative;
  background: linear-gradient(145deg, rgba(10, 22, 40, 0.9), rgba(9, 16, 35, 0.96));
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-left: 3px solid var(--line);
  border-radius: 12px;
  padding: 42px 36px;
  overflow: hidden;
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.16), inset 0 0 24px rgba(59, 130, 246, 0.12);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: 0.14;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 999px;
  font-size: 0.84rem;
  color: #d6ffe7;
  font-family: "Share Tech Mono", monospace;
  margin-bottom: 14px;
}

.hero h1,
h1.page-title {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  margin: 0 0 14px;
  line-height: 1.1;
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  border-right: 2px solid var(--line);
  animation: typing 4s steps(34, end) forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: var(--line);
  }
}

.hero p {
  color: var(--muted);
  max-width: 780px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--line);
  color: #04130c;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 24px;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.55);
  transition: all 0.25s ease;
}

.cta-main:hover {
  background: var(--line-blue);
  color: #eef7ff;
  border-color: var(--line-blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.game-stats {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 12px;
}

.stat {
  background: rgba(8, 17, 31, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-left: 3px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.stat .k {
  display: block;
  font-size: 0.76rem;
  color: #9ac4ac;
  text-transform: uppercase;
  font-family: "Share Tech Mono", monospace;
}

.stat .v {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
  font-family: "Share Tech Mono", monospace;
  color: #e5fff1;
}

.section {
  padding: 34px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.55rem;
  font-family: "Share Tech Mono", monospace;
}

.section-icon {
  width: 24px;
  height: 24px;
}

.info-card,
.feature-card,
.review-panel,
.faq-item,
.game-card,
.page-card,
.legal-list li {
  background: rgba(10, 22, 40, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.38);
  border-left: 3px solid var(--line);
  border-radius: 10px;
}

.info-card,
.page-card,
.game-card {
  padding: 20px;
  line-height: 1.7;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.gallery {
  position: relative;
}

.slides {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.55);
}

.slides-track {
  display: flex;
  transition: transform 0.45s ease;
}

.slide {
  min-width: 100%;
  background: rgba(3, 10, 22, 0.8);
  padding: 20px;
}

.slide img {
  width: 100%;
  max-height: 430px;
}

.slider-controls {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slider-controls button {
  border: 1px solid var(--line-blue);
  color: #d8e8ff;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px 14px;
  font-family: "Share Tech Mono", monospace;
}

.feature-card {
  padding: 16px;
}

.feature-icon {
  font-size: 1.3rem;
}

.feature-card h3 {
  margin: 8px 0;
  font-family: "Share Tech Mono", monospace;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.review-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.review-tab {
  border: 1px solid rgba(34, 197, 94, 0.5);
  background: rgba(10, 22, 40, 0.84);
  color: #d9ffe7;
  border-radius: 7px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: "Share Tech Mono", monospace;
}

.review-tab.active {
  background: rgba(34, 197, 94, 0.22);
}

.review-panel {
  padding: 20px;
}

.review-panel h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.stars {
  color: #fcd34d;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.accordion {
  display: grid;
  gap: 10px;
}

.faq-item button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #effef4;
  padding: 14px 16px;
  cursor: pointer;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.95rem;
}

.faq-content {
  display: none;
  padding: 0 16px 14px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item.open .faq-content {
  display: block;
}

.game-card h3 {
  margin-top: 0;
  font-family: "Share Tech Mono", monospace;
}

.game-card img {
  width: 100%;
  max-height: 250px;
  margin: 10px 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.iframe-shell {
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-left: 3px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

form.contact-form {
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.92rem;
  color: #d6efe4;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(6, 15, 30, 0.86);
  color: #edfff4;
  border-radius: 8px;
  padding: 12px 11px;
  font-family: "Exo 2", sans-serif;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.disclaimer-strip {
  margin-top: 20px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-left: 3px solid var(--line);
  background: rgba(10, 22, 40, 0.9);
  color: #d6f7e2;
}

.store-block {
  text-align: center;
  padding: 20px 0;
}

.store-block p {
  margin: 6px 0;
}

.store-block .big {
  font-size: 1.1rem;
  font-weight: 700;
}

.site-footer {
  margin-top: 28px;
  border-top: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(2, 8, 20, 0.94);
  padding: 26px 0 38px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.84rem;
  color: #c9f6da;
}

.footer-copy {
  margin-top: 12px;
  color: #9fb9ae;
  line-height: 1.7;
  font-size: 0.95rem;
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9997;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-modal.open {
  display: flex;
}

.auth-card {
  width: min(420px, 100%);
  background: rgba(8, 18, 32, 0.98);
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-left: 3px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.2);
}

.auth-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.auth-top h3 {
  margin: 0;
  font-family: "Share Tech Mono", monospace;
}

.close-auth {
  cursor: pointer;
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: transparent;
  color: #d8ebff;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.auth-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.switch-btn {
  flex: 1;
}

.auth-error {
  min-height: 18px;
  margin-bottom: 8px;
  color: var(--danger);
  font-size: 0.88rem;
}

.auth-note {
  margin-top: 10px;
  color: #9fbcaf;
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-stats,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .hero-panel {
    padding: 24px 16px;
  }

  .game-stats,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .main-nav {
    gap: 10px;
  }
}
