
:root {
  --bg: #07110f;
  --bg-2: #0b1a16;
  --panel: rgba(12, 43, 34, 0.72);
  --panel-2: rgba(7, 25, 20, 0.86);
  --line: rgba(145, 255, 198, 0.72);
  --line-soft: rgba(145, 255, 198, 0.34);
  --text: #b7ffd0;
  --text-dim: #7fd8a4;
  --glow: rgba(126, 255, 187, 0.45);
  --shadow: rgba(0, 0, 0, 0.5);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 35%, rgba(33, 111, 76, 0.34), rgba(5, 12, 10, 0.96) 58%),
    linear-gradient(180deg, #07120f 0%, #050b09 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.025) 0px,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 2px,
      transparent 4px
    );
  mix-blend-mode: screen;
  opacity: 0.65;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.3) 74%, rgba(0, 0, 0, 0.74) 100%);
  z-index: 2;
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(183, 255, 208, 0.92);
  box-shadow: 0 0 8px rgba(145, 255, 198, 0.9);
  animation: drift linear infinite;
}

@keyframes drift {
  from { transform: translateY(0); opacity: 0.3; }
  20% { opacity: 0.9; }
  to { transform: translateY(-45px); opacity: 0.2; }
}

.shell {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.crt {
  position: relative;
  width: min(1120px, 100%);
  min-height: min(900px, calc(100vh - 56px));
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid rgba(155, 255, 194, 0.16);
  border-radius: 34px;
  background:
    radial-gradient(circle at center, rgba(43, 140, 88, 0.22), rgba(7, 21, 17, 0.96) 62%),
    linear-gradient(180deg, rgba(21, 70, 52, 0.75), rgba(7, 19, 16, 0.94));
  box-shadow:
    0 0 0 1px rgba(150, 255, 196, 0.12) inset,
    0 18px 70px rgba(0, 0, 0, 0.6),
    0 0 48px rgba(91, 255, 171, 0.12);
  overflow: hidden;
}

.crt::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  border: 1px solid rgba(145, 255, 198, 0.08);
  pointer-events: none;
}

.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0 40%, rgba(0, 0, 0, 0.12) 66%, rgba(0, 0, 0, 0.52) 100%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: calc(min(900px, calc(100vh - 56px)) - 2px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.kicker::before,
.kicker::after {
  content: "";
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183,255,208,0.8), transparent);
}

.title-wrap {
  text-align: center;
  margin-top: 6px;
}

.logo {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(145, 255, 198, 0.35),
    0 0 20px rgba(91, 255, 171, 0.18);
  font-family: "Courier New", Courier, monospace;
}

.subtitle {
  margin: 12px auto 0;
  max-width: 760px;
  color: rgba(183, 255, 208, 0.84);
  font-size: 1rem;
  line-height: 1.6;
}

.layout {
  display: flex;
  gap: 22px;
  align-items: stretch;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
}

.panel,
.card {
  border: 1px dashed rgba(145, 255, 198, 0.45);
  background: linear-gradient(180deg, rgba(14, 52, 41, 0.58), rgba(6, 19, 16, 0.78));
  box-shadow:
    0 0 0 1px rgba(183, 255, 208, 0.05) inset,
    0 10px 26px rgba(0, 0, 0, 0.24);
}

.panel {
  border-radius: 24px;
  padding: 24px;
  flex: 1 1 360px;
  min-width: min(100%, 360px);
}

.panel h2,
.card h3 {
  margin: 0 0 12px;
  font-family: "Courier New", Courier, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
}

.panel p,
.card p,
.card li,
.helper {
  color: rgba(183, 255, 208, 0.88);
  line-height: 1.7;
}

.menu-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 12px 0 6px;
}

.menu-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.crt-button,
.nav-link,
.game-link,
.tile {
  border: 2px dashed rgba(145, 255, 198, 0.78);
  color: var(--text);
  background: linear-gradient(180deg, rgba(21, 76, 58, 0.62), rgba(9, 32, 26, 0.86));
  box-shadow:
    0 0 0 1px rgba(145, 255, 198, 0.06) inset,
    0 0 18px rgba(91, 255, 171, 0.12);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.crt-button,
.nav-link,
.game-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 16px;
  font-family: "Courier New", Courier, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.crt-button:hover,
.nav-link:hover,
.game-link:hover,
.tile:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(145, 255, 198, 0.1) inset,
    0 0 26px rgba(91, 255, 171, 0.24);
}

.navbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 2px 0 10px;
}

.nav-link {
  min-width: 128px;
}

.nav-link.active {
  background: linear-gradient(180deg, rgba(44, 124, 89, 0.84), rgba(15, 42, 33, 0.95));
  box-shadow:
    0 0 0 1px rgba(183, 255, 208, 0.12) inset,
    0 0 26px rgba(145, 255, 198, 0.18);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex: 1;
  min-height: 0;
}

.hero-box {
  max-width: 740px;
  text-align: center;
  padding: 26px;
  border-radius: 24px;
}

.hero-box .big {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: 0.08em;
  font-family: "Courier New", Courier, monospace;
  text-transform: uppercase;
}

.hero-box .small {
  margin: 12px auto 0;
  max-width: 640px;
}

.list-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-box ul {
  margin: 0;
  padding: 0 0 0 18px;
}

.list-box li {
  margin: 8px 0;
  padding-left: 6px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tile {
  flex: 1 1 240px;
  min-height: 170px;
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(145,255,198,0.18), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(145,255,198,0.08), transparent 40%);
  pointer-events: none;
}

.tile span {
  position: relative;
  z-index: 1;
}

.tile strong {
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile .meta {
  font-size: 0.92rem;
  color: rgba(183, 255, 208, 0.8);
}

.game-link {
  width: 100%;
  justify-content: space-between;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
  color: rgba(183, 255, 208, 0.7);
  font-size: 0.88rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(145, 255, 198, 0.28);
  border-radius: 999px;
  background: rgba(10, 30, 24, 0.4);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 720px) {
  .shell {
    padding: 14px;
  }

  .crt {
    border-radius: 24px;
    min-height: calc(100vh - 28px);
    padding: 18px;
  }

  .panel {
    min-width: 100%;
    padding: 18px;
  }

  .nav-link,
  .crt-button {
    min-width: 100%;
  }

  .hero-box {
    padding: 18px;
  }

  .logo {
    letter-spacing: 0.08em;
  }
}

.fade-in {
  animation: appear 700ms ease both;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
