*{box-sizing:border-box}

:root{
  --bg:#01040d;
  --panel:#061226;
  --panel2:#091a36;
  --cyan:#00d9ff;
  --blue:#2563eb;
  --violet:#9b4dff;
  --pink:#ff4fd8;
  --text:#f8fbff;
  --muted:#9fb3d9;
  --line:rgba(0,217,255,.34);
}

body{
  margin:0;
  min-height:100vh;
  font-family:Arial,sans-serif;
  background:
    radial-gradient(circle at 50% 0%,rgba(37,99,235,.22),transparent 35%),
    radial-gradient(circle at 80% 30%,rgba(155,77,255,.16),transparent 30%),
    linear-gradient(180deg,#020617,#01040d);
  color:var(--text);
  overflow-x:hidden;
}

body:before{
  content:"";
  position:fixed;
  inset:0;
  background-image:
    radial-gradient(#fff 1px,transparent 1px),
    radial-gradient(var(--cyan) 1px,transparent 1px);
  background-size:110px 110px,190px 190px;
  background-position:0 0,60px 70px;
  opacity:.14;
  pointer-events:none;
  z-index:-2;
}

a{color:inherit}

header{
  width:96%;
  margin:18px auto 0;
  height:76px;
  display:grid;
  grid-template-columns:330px 1fr 220px;
  gap:18px;
  align-items:center;
}

.logo{
  height:76px;
  display:flex;
  align-items:center;
  padding:0 24px;
  text-decoration:none;
  font-size:30px;
  font-weight:1000;
  letter-spacing:-1px;
  text-transform:uppercase;
  background:linear-gradient(180deg,rgba(8,22,50,.96),rgba(3,8,20,.96));
  border:1px solid var(--line);
  clip-path:polygon(0 0,92% 0,100% 50%,92% 100%,0 100%);
  text-shadow:0 0 20px rgba(0,217,255,.75);
}

.logo:after{
  content:".space";
  color:var(--violet);
  font-size:16px;
  margin-left:3px;
  text-shadow:0 0 18px var(--violet);
}

nav{
  height:76px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 20px;
  background:linear-gradient(180deg,rgba(8,22,50,.96),rgba(3,8,20,.96));
  border:1px solid var(--line);
  clip-path:polygon(3% 0,97% 0,100% 50%,97% 100%,3% 100%,0 50%);
}

nav a{
  padding:11px 14px;
  text-decoration:none;
  color:#d7e6ff;
  font-size:14px;
  font-weight:900;
  border-radius:10px;
  border:1px solid transparent;
}

nav a:hover{
  border-color:rgba(155,77,255,.6);
  box-shadow:0 0 18px rgba(155,77,255,.35);
}

header:after{
  content:"SIGN IN";
  height:76px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:1000;
  background:linear-gradient(180deg,rgba(44,16,74,.95),rgba(12,8,25,.96));
  border:1px solid rgba(255,79,216,.5);
  clip-path:polygon(8% 0,100% 0,100% 100%,8% 100%,0 50%);
  box-shadow:0 0 24px rgba(255,79,216,.2);
}

.cockpit{
  width:96%;
  max-width:1780px;
  margin:18px auto 0;
  display:grid;
  grid-template-columns:250px 1fr 300px;
  gap:18px;
}

.hud{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.hud-box{
  background:linear-gradient(180deg,rgba(6,18,38,.96),rgba(2,7,18,.97));
  border:1px solid var(--line);
  border-radius:22px;
  padding:20px;
  box-shadow:
    inset 0 0 35px rgba(0,217,255,.08),
    0 0 26px rgba(0,217,255,.08);
}

.hud-box h3{
  margin:0 0 16px;
  color:#bfeeff;
  font-size:15px;
  text-transform:uppercase;
  letter-spacing:.8px;
}

.online-dot{
  color:#22ff88;
  font-weight:1000;
  margin-bottom:16px;
}

.hud-small{
  margin:0 0 8px;
  color:var(--muted);
  font-size:13px;
  text-transform:uppercase;
}

.hud-number{
  color:var(--cyan);
  font-size:24px;
  font-weight:1000;
}

.mini-chart{
  height:34px;
  margin-top:14px;
  background:
    linear-gradient(135deg,transparent 50%,rgba(0,217,255,.85) 51% 53%,transparent 54%),
    linear-gradient(45deg,transparent 48%,rgba(34,255,136,.85) 49% 51%,transparent 52%);
  opacity:.8;
}

.cat-list a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:11px 12px;
  margin:9px 0;
  text-decoration:none;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(0,217,255,.12);
  color:#d7e6ff;
}

.cat-list b{
  color:#9ddcff;
  background:rgba(37,99,235,.24);
  border:1px solid rgba(0,217,255,.25);
  border-radius:999px;
  padding:3px 8px;
  font-size:12px;
}

.hud-btn{
  display:block;
  margin-top:16px;
  padding:13px 16px;
  text-align:center;
  text-decoration:none;
  font-weight:1000;
  border-radius:12px;
  color:white;
  background:linear-gradient(135deg,rgba(37,99,235,.8),rgba(155,77,255,.8));
  border:1px solid rgba(255,79,216,.45);
}

.main-window{
  min-width:0;
}

.space-scene{
  position:relative;
  min-height:560px;
  overflow:hidden;
  border-radius:26px;
  border:2px solid rgba(0,217,255,.42);
  background:
    radial-gradient(circle at 70% 18%,rgba(255,79,216,.35),transparent 20%),
    radial-gradient(circle at 52% 38%,rgba(37,99,235,.32),transparent 34%),
    linear-gradient(180deg,#061226,#020617 70%);
  box-shadow:
    inset 0 0 90px rgba(0,217,255,.14),
    inset 0 0 0 10px rgba(255,255,255,.025),
    0 0 50px rgba(0,217,255,.14);
}

.stars-layer{
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(#fff 1.2px,transparent 1.5px),
    radial-gradient(#8be9ff 1px,transparent 1.5px);
  background-size:85px 85px,140px 140px;
  opacity:.45;
}

.planet{
  position:absolute;
  left:-90px;
  bottom:-250px;
  width:760px;
  height:420px;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 15%,rgba(255,255,255,.9),transparent 5%),
    radial-gradient(circle at 50% 35%,#38bdf8,#1d4ed8 45%,#020617 72%);
  box-shadow:0 0 55px rgba(56,189,248,.65);
  opacity:.86;
}

.ship{
  position:absolute;
  width:120px;
  height:30px;
  background:linear-gradient(90deg,#1e293b,#e2e8f0,#1e293b);
  clip-path:polygon(0 50%,35% 0,100% 50%,35% 100%);
  filter:drop-shadow(0 0 12px rgba(56,189,248,.8));
}

.ship:after{
  content:"";
  position:absolute;
  left:-40px;
  top:12px;
  width:48px;
  height:6px;
  background:linear-gradient(90deg,transparent,#38bdf8);
}

.ship-a{left:12%;top:22%;transform:rotate(-10deg)}
.ship-b{right:14%;bottom:24%;transform:rotate(-18deg) scale(.8)}

.station{
  position:absolute;
  right:7%;
  bottom:4%;
  width:130px;
  height:200px;
  background:linear-gradient(180deg,#94a3b8,#0f172a);
  clip-path:polygon(45% 0,55% 0,62% 45%,100% 60%,62% 68%,55% 100%,45% 100%,38% 68%,0 60%,38% 45%);
  opacity:.75;
  filter:drop-shadow(0 0 24px rgba(0,217,255,.55));
}

.hero-content{
  position:relative;
  z-index:3;
  min-height:560px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:60px;
}

.kicker{
  color:var(--cyan);
  text-transform:uppercase;
  font-weight:1000;
  letter-spacing:3px;
  text-shadow:0 0 14px rgba(0,217,255,.8);
}

.hero-content h1{
  margin:20px 0 14px;
  font-size:clamp(42px,6vw,86px);
  line-height:.95;
  text-transform:uppercase;
  letter-spacing:2px;
  text-shadow:0 0 34px rgba(0,217,255,.7);
}

.hero-content h1 span{
  color:#fff;
}

.hero-content p{
  max-width:720px;
  margin:0;
  color:#e6efff;
  font-size:21px;
  line-height:1.5;
}

.hero-btn{
  margin-top:30px;
  padding:18px 44px;
  text-decoration:none;
  color:white;
  font-size:18px;
  font-weight:1000;
  text-transform:uppercase;
  background:linear-gradient(135deg,rgba(37,99,235,.88),rgba(155,77,255,.88));
  border:1px solid rgba(255,79,216,.58);
  border-radius:14px;
  box-shadow:0 0 35px rgba(155,77,255,.42);
}

.window-corners{
  position:absolute;
  inset:18px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:18px;
  pointer-events:none;
}

.pilot{
  width:94px;
  height:94px;
  margin:4px auto 14px;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 30%,#38bdf8,transparent 30%),
    radial-gradient(circle at 50% 62%,#0f172a 35%,#38bdf8 36% 38%,#020617 42%);
  border:1px solid rgba(0,217,255,.45);
  box-shadow:0 0 26px rgba(0,217,255,.35);
}

.top-games a{
  display:grid;
  grid-template-columns:34px 1fr;
  gap:8px;
  padding:10px;
  margin:9px 0;
  border-radius:12px;
  text-decoration:none;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(0,217,255,.12);
}

.top-games b{
  grid-row:span 2;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--cyan);
  border:1px solid rgba(0,217,255,.35);
  border-radius:8px;
}

.top-games span{font-weight:900}
.top-games em{font-size:12px;color:var(--violet);font-style:normal}

.home-main{
  width:96%;
  max-width:1780px;
  margin:24px auto;
}

.section-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:18px 0;
}

.section-row h2{
  margin:0;
  text-transform:uppercase;
  letter-spacing:1px;
  font-size:24px;
}

.section-row a{
  color:#bfeeff;
  text-decoration:none;
  font-weight:900;
}

.game-grid-hud{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:18px;
}

.game-card-hud{
  overflow:hidden;
  text-decoration:none;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(8,22,50,.96),rgba(3,8,20,.97));
  border:1px solid rgba(0,217,255,.32);
  box-shadow:0 18px 55px rgba(0,0,0,.28);
  transition:.25s;
}

.game-card-hud:hover{
  transform:translateY(-7px);
  border-color:rgba(255,79,216,.7);
  box-shadow:0 0 42px rgba(155,77,255,.3);
}

.thumb img{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  display:block;
  background:#111827;
}

.game-info{
  padding:14px;
}

.game-info h3{
  margin:0 0 9px;
}

.game-info span{
  color:#c084fc;
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(155,77,255,.18);
}

.meta{
  display:flex;
  justify-content:space-between;
  margin-top:12px;
  color:#cbd5e1;
}

.meta b{
  color:#facc15;
}

.meta em{
  font-style:normal;
  color:#bfeeff;
}

.station-stats{
  margin:28px 0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.station-stats div{
  padding:22px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(8,22,50,.96),rgba(3,8,20,.97));
  border:1px solid rgba(0,217,255,.32);
  text-align:center;
}

.station-stats b{
  display:block;
  color:var(--cyan);
  font-size:22px;
  text-transform:uppercase;
}

.station-stats span{
  color:#cbd5e1;
}

main{
  width:96%;
  max-width:1780px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  gap:18px;
}

.card{
  display:block;
  overflow:hidden;
  text-decoration:none;
  background:linear-gradient(180deg,rgba(8,22,50,.96),rgba(3,8,20,.97));
  border:1px solid rgba(0,217,255,.28);
  border-radius:18px;
}

.card img{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  display:block;
}

.card div{
  padding:15px;
}

.card h3{
  margin:0 0 8px;
}

.card p{
  margin:0;
  color:var(--cyan);
}

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

.chips a{
  padding:10px 14px;
  border:1px solid rgba(0,217,255,.28);
  border-radius:999px;
  text-decoration:none;
}

.frame{
  padding:8px;
  border:1px solid rgba(0,217,255,.32);
  border-radius:22px;
  background:#020617;
}

.frame iframe{
  width:100%;
  height:720px;
  border:0;
  border-radius:16px;
  background:#000;
}

.seo{
  margin:34px 0;
  padding:28px;
  border-radius:20px;
  background:linear-gradient(180deg,rgba(8,22,50,.96),rgba(3,8,20,.97));
  border:1px solid rgba(0,217,255,.28);
  color:#cbd5e1;
  line-height:1.75;
}

.adbox{
  margin:24px 0;
  min-height:90px;
  border:1px dashed rgba(0,217,255,.28);
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#64748b;
}

footer{
  width:96%;
  max-width:1780px;
  margin:50px auto 20px;
  padding:28px;
  display:flex;
  justify-content:space-between;
  gap:25px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(8,22,50,.96),rgba(3,8,20,.97));
  border:1px solid rgba(0,217,255,.28);
  color:#94a3b8;
}

footer a{
  display:block;
  text-decoration:none;
  color:#cbd5e1;
  margin:8px 0;
}

@media(max-width:1200px){
  header{
    grid-template-columns:1fr;
    height:auto;
  }

  header:after{
    display:none;
  }

  .logo,nav{
    clip-path:none;
    width:100%;
    height:auto;
    border-radius:18px;
  }

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

  .hud-left,.hud-right{
    display:none;
  }
}

@media(max-width:760px){
  nav{
    flex-wrap:wrap;
  }

  .space-scene,.hero-content{
    min-height:460px;
  }

  .hero-content{
    padding:35px 18px;
  }

  .station-stats{
    grid-template-columns:1fr;
  }

  .frame iframe{
    height:430px;
  }

  footer{
    flex-direction:column;
  }
}

/* COCKPIT FRAME */

.space-scene{
  position:relative;
  overflow:hidden;
}

/* верхняя панель кабины */

.space-scene::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:120px;

  background:
    linear-gradient(
      180deg,
      rgba(8,15,35,.98),
      rgba(8,15,35,.75)
    );

  border-bottom:1px solid rgba(56,189,248,.25);

  z-index:5;
}

/* нижняя консоль */

.space-scene::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:150px;

  background:
    linear-gradient(
      0deg,
      rgba(5,10,25,.98),
      rgba(5,10,25,.75)
    );

  border-top:1px solid rgba(56,189,248,.25);

  z-index:5;
}

/* левая стойка кабины */

.cockpit-left{
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:120px;

  background:
    linear-gradient(
      90deg,
      rgba(5,10,25,.98),
      rgba(5,10,25,.6)
    );

  clip-path:polygon(
    0 0,
    100% 8%,
    75% 100%,
    0 100%
  );

  z-index:6;
}

/* правая стойка */

.cockpit-right{
  position:absolute;
  right:0;
  top:0;
  bottom:0;
  width:120px;

  background:
    linear-gradient(
      270deg,
      rgba(5,10,25,.98),
      rgba(5,10,25,.6)
    );

  clip-path:polygon(
    0 8%,
    100% 0,
    100% 100%,
    25% 100%
  );

  z-index:6;
}

/* приборы снизу */

.console-panel{
  position:absolute;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  width:75%;
  height:90px;

  border-radius:20px;

  background:
    linear-gradient(
      180deg,
      rgba(12,24,50,.95),
      rgba(5,10,25,.98)
    );

  border:1px solid rgba(56,189,248,.35);

  box-shadow:
    0 0 25px rgba(56,189,248,.15),
    inset 0 0 25px rgba(56,189,248,.08);

  z-index:7;
}

/* HUD линии */

.console-panel::before{
  content:"";
  position:absolute;
  left:20px;
  right:20px;
  top:18px;
  height:2px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #38bdf8,
      transparent
    );
}

.console-panel::after{
  content:"";
  position:absolute;
  left:20px;
  right:20px;
  bottom:18px;
  height:2px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #a855f7,
      transparent
    );
}


.cockpit-left,.cockpit-right,.console-panel{
  display:block !important;
  position:absolute !important;
  z-index:50 !important;
  pointer-events:none;
}

.cockpit-left{
  left:0 !important;
  top:0 !important;
  bottom:0 !important;
  width:160px !important;
  background:linear-gradient(90deg,#020617 0%,rgba(2,6,23,.92) 55%,rgba(2,6,23,.25) 100%) !important;
  clip-path:polygon(0 0,100% 10%,72% 100%,0 100%) !important;
  border-right:2px solid rgba(56,189,248,.45) !important;
}

.cockpit-right{
  right:0 !important;
  top:0 !important;
  bottom:0 !important;
  width:160px !important;
  background:linear-gradient(270deg,#020617 0%,rgba(2,6,23,.92) 55%,rgba(2,6,23,.25) 100%) !important;
  clip-path:polygon(0 10%,100% 0,100% 100%,28% 100%) !important;
  border-left:2px solid rgba(56,189,248,.45) !important;
}

.console-panel{
  left:50% !important;
  bottom:0 !important;
  transform:translateX(-50%) !important;
  width:78% !important;
  height:120px !important;
  background:linear-gradient(180deg,rgba(15,23,42,.94),#020617) !important;
  border:2px solid rgba(56,189,248,.55) !important;
  border-bottom:0 !important;
  border-radius:26px 26px 0 0 !important;
  box-shadow:0 0 35px rgba(56,189,248,.25), inset 0 0 35px rgba(56,189,248,.12) !important;
}

.console-panel:before{
  content:"SYSTEM READY   •   PLAYVERSE COMMAND DECK   •   FREE ONLINE GAMES";
  position:absolute;
  left:24px;
  right:24px;
  top:22px;
  color:#67e8f9;
  font-size:13px;
  font-weight:900;
  letter-spacing:2px;
  text-align:center;
}

.console-panel:after{
  content:"";
  position:absolute;
  left:40px;
  right:40px;
  bottom:28px;
  height:14px;
  background:
    linear-gradient(90deg,transparent,#38bdf8,transparent),
    repeating-linear-gradient(90deg,rgba(168,85,247,.9) 0 12px,transparent 12px 24px);
  opacity:.75;
}

.hero-content{
  z-index:60 !important;
  padding-bottom:150px !important;
}

.space-scene{
  position:relative !important;
  overflow:hidden !important;
}
