*{box-sizing:border-box}

:root{
  --bg:#01040d;
  --metal:#081120;
  --metal2:#0d1b32;
  --line:#2dd4ff;
  --violet:#a855f7;
  --text:#f8fafc;
  --muted:#94a3b8;
}

body{
  margin:0;
  font-family:Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 50% 0%,rgba(45,212,255,.18),transparent 35%),
    radial-gradient(circle at 80% 20%,rgba(168,85,247,.16),transparent 30%),
    #01040d;
}

body:before{
  content:"";
  position:fixed;
  inset:0;
  background-image:radial-gradient(#fff 1px,transparent 1px);
  background-size:120px 120px;
  opacity:.12;
  pointer-events:none;
}

a{color:inherit}

header{
  width:96%;
  margin:18px auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 22px;
  background:linear-gradient(180deg,#0b1730,#030712);
  border:1px solid rgba(45,212,255,.35);
  border-radius:18px;
}

.logo{
  font-size:30px;
  font-weight:900;
  text-decoration:none;
  text-transform:uppercase;
}

.logo:after{
  content:".space";
  color:var(--violet);
  font-size:15px;
}

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

nav a{
  padding:9px 13px;
  text-decoration:none;
  border:1px solid rgba(45,212,255,.18);
  border-radius:10px;
  color:#cbd5e1;
  font-weight:800;
}

.bridge{
  width:96%;
  max-width:1800px;
  margin:0 auto;
}

.ship-shell{
  min-height:680px;
  display:grid;
  grid-template-columns:280px minmax(520px,1fr) 300px;
  gap:0;
  position:relative;
  background:linear-gradient(180deg,#101827,#030712);
  border:2px solid rgba(45,212,255,.35);
  border-radius:34px;
  overflow:hidden;
  box-shadow:
    0 40px 120px rgba(0,0,0,.55),
    inset 0 0 80px rgba(45,212,255,.08);
}

/* ВОТ ЭТО КАБИНА ПО БОКАМ */
.ship-side{
  position:relative;
  z-index:5;
  padding:28px 20px;
  background:
    linear-gradient(180deg,#111827,#020617);
  border-color:rgba(45,212,255,.35);
}

.left-side{
  clip-path:polygon(0 0,100% 0,78% 100%,0 100%);
  border-right:2px solid rgba(45,212,255,.4);
  padding-right:58px;
}

.right-side{
  clip-path:polygon(22% 0,100% 0,100% 100%,0 100%);
  border-left:2px solid rgba(45,212,255,.4);
  padding-left:58px;
}

.ship-side:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 2px,transparent 2px 40px),
    radial-gradient(circle at 50% 20%,rgba(45,212,255,.12),transparent 35%);
  pointer-events:none;
}

.panel{
  position:relative;
  z-index:2;
  margin-bottom:18px;
  padding:18px;
  background:rgba(2,6,23,.72);
  border:1px solid rgba(45,212,255,.28);
  border-radius:18px;
  box-shadow:inset 0 0 24px rgba(45,212,255,.06);
}

.panel h3{
  margin:0 0 14px;
  color:#bff4ff;
  font-size:14px;
  letter-spacing:1px;
}

.green{
  color:#22c55e;
  font-weight:900;
  margin-bottom:14px;
}

.stat{
  margin:12px 0;
  padding:12px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
}

.stat b{
  display:block;
  color:#2dd4ff;
  font-size:25px;
}

.stat span{
  color:#94a3b8;
  font-size:13px;
}

.nav-row,.top-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:9px 0;
  padding:10px 11px;
  text-decoration:none;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(45,212,255,.12);
  color:#e2e8f0;
  font-weight:800;
}

.nav-row span{
  color:#2dd4ff;
  font-size:11px;
}

.top-row{
  justify-content:flex-start;
  gap:10px;
}

.top-row b{
  color:#2dd4ff;
}

.avatar-core{
  width:100px;
  height:100px;
  margin:10px auto;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 35%,#2dd4ff 0 18%,transparent 19%),
    radial-gradient(circle at 50% 65%,#020617 0 36%,#2dd4ff 37% 39%,transparent 40%),
    #071225;
  border:1px solid rgba(45,212,255,.45);
  box-shadow:0 0 35px rgba(45,212,255,.35);
}

.avatar-panel{
  text-align:center;
}

.viewport-wrap{
  position:relative;
  background:#020617;
  overflow:hidden;
}

/* ВЕРХНЯЯ БАЛКА КАБИНЫ */
.top-beam{
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:90px;
  z-index:6;
  background:linear-gradient(180deg,#111827,#020617cc);
  border-bottom:2px solid rgba(45,212,255,.35);
  clip-path:polygon(0 0,100% 0,92% 100%,8% 100%);
}

/* ОКНО В КОСМОС */
.viewport{
  position:absolute;
  inset:70px 0 130px;
  overflow:hidden;
  border-top:1px solid rgba(255,255,255,.12);
  border-bottom:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 65% 18%,rgba(168,85,247,.35),transparent 23%),
    radial-gradient(circle at 50% 45%,rgba(37,99,235,.26),transparent 34%),
    linear-gradient(180deg,#071225,#020617 75%);
}

.stars{
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(#fff 1.2px,transparent 1.5px),
    radial-gradient(#2dd4ff 1px,transparent 1.5px);
  background-size:80px 80px,150px 150px;
  opacity:.45;
}

.planet-big{
  position:absolute;
  left:50%;
  bottom:-250px;
  transform:translateX(-50%);
  width:760px;
  height:430px;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 20%,#e0f2fe 0 5%,transparent 6%),
    radial-gradient(circle at 50% 38%,#38bdf8,#1d4ed8 45%,#020617 72%);
  box-shadow:0 0 70px rgba(56,189,248,.65);
}

.small-planet{
  position:absolute;
  right:13%;
  top:12%;
  width:120px;
  height:120px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#f5d0fe,#a855f7 45%,#1e1b4b 80%);
  box-shadow:0 0 45px rgba(168,85,247,.35);
}

/* НИЖНЯЯ КОНСОЛЬ КАБИНЫ */
.bottom-console{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:150px;
  z-index:7;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  padding:28px 42px;
  background:linear-gradient(180deg,#111827,#020617);
  border-top:2px solid rgba(45,212,255,.35);
  clip-path:polygon(8% 0,92% 0,100% 100%,0 100%);
}

.bottom-console div{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(45,212,255,.24);
  border-radius:16px;
  color:#94a3b8;
  font-weight:900;
  letter-spacing:1px;
}

.bottom-console b{
  color:#2dd4ff;
  margin-top:5px;
}

.center-title{
  position:relative;
  z-index:4;
  min-height:460px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:40px;
}

.tag{
  color:#2dd4ff;
  font-weight:900;
  letter-spacing:3px;
  text-shadow:0 0 18px #2dd4ff;
}

.center-title h1{
  margin:18px 0;
  font-size:clamp(48px,7vw,92px);
  line-height:.9;
  text-shadow:0 0 32px rgba(45,212,255,.7);
}

.center-title h1 span{
  color:#a855f7;
}

.center-title p{
  max-width:680px;
  color:#dbeafe;
  font-size:21px;
  line-height:1.5;
}

.launch{
  margin-top:20px;
  padding:17px 32px;
  background:linear-gradient(135deg,#2563eb,#a855f7);
  color:white;
  text-decoration:none;
  border-radius:14px;
  font-weight:900;
  box-shadow:0 0 35px rgba(168,85,247,.35);
}

.games-section{
  width:96%;
  max-width:1800px;
  margin:26px auto;
}

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

.section-head h2{
  margin:0;
  font-size:30px;
}

.section-head a{
  color:#2dd4ff;
  text-decoration:none;
  font-weight:900;
}

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

.game-tile,.card{
  overflow:hidden;
  display:block;
  text-decoration:none;
  background:linear-gradient(180deg,#081630,#030712);
  border:1px solid rgba(45,212,255,.22);
  border-radius:18px;
}

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

.game-tile div,.card div{
  padding:15px;
}

.game-tile h3,.card h3{
  margin:0 0 8px;
}

.game-tile span,.card p{
  color:#2dd4ff;
}

main{
  width:96%;
  max-width:1800px;
  margin:30px auto;
}

.frame{
  padding:8px;
  background:#020617;
  border:1px solid rgba(45,212,255,.3);
  border-radius:22px;
}

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

.seo{
  padding:28px;
  margin:30px 0;
  background:linear-gradient(180deg,#081630,#030712);
  border:1px solid rgba(45,212,255,.22);
  border-radius:20px;
  color:#cbd5e1;
  line-height:1.7;
}

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

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

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

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

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

@media(max-width:1200px){
  .ship-shell{
    grid-template-columns:1fr;
  }
  .ship-side{
    display:none;
  }
  .viewport-wrap{
    min-height:650px;
  }
}

@media(max-width:760px){
  header{
    flex-direction:column;
    gap:14px;
  }
  nav{
    justify-content:center;
  }
  .center-title h1{
    font-size:48px;
  }
  .bottom-console{
    grid-template-columns:1fr;
    height:190px;
  }
  .viewport{
    bottom:170px;
  }
  .frame iframe{
    height:430px;
  }
  footer{
    flex-direction:column;
  }
}

/* COCKPIT IMAGE BACKGROUND */
body{
  background:
    linear-gradient(rgba(1,4,13,.12),rgba(1,4,13,.42)),
    url('/assets/space-cockpit-space-wallpaper-2-4k.png') center top / cover fixed no-repeat !important;
}

.ship-shell{
  background:rgba(1,4,13,.18) !important;
  backdrop-filter:blur(1px);
}

.viewport{
  background:transparent !important;
}

.stars,
.planet-big,
.small-planet{
  display:none !important;
}

.ship-side,
.top-beam,
.bottom-console,
.panel{
  background:rgba(2,6,23,.68) !important;
}

/* FORCE REAL COCKPIT HERO */
body{
  background:#01040d !important;
}

.bridge{
  width:96% !important;
  max-width:1800px !important;
  margin:0 auto !important;
  min-height:760px !important;
  border-radius:34px !important;
  overflow:hidden !important;
  background:
    linear-gradient(rgba(1,4,13,.05),rgba(1,4,13,.18)),
    url('/assets/space-cockpit-space-wallpaper-2-4k.png') center center / cover no-repeat !important;
  border:1px solid rgba(45,212,255,.35) !important;
  box-shadow:0 40px 140px rgba(0,0,0,.65) !important;
}

.ship-shell{
  min-height:760px !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  grid-template-columns:260px 1fr 280px !important;
}

.ship-side,
.viewport-wrap,
.viewport,
.top-beam,
.bottom-console{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  clip-path:none !important;
}

.viewport{
  inset:0 !important;
}

.stars,
.planet-big,
.small-planet{
  display:none !important;
}

.panel{
  background:rgba(2,6,23,.48) !important;
  backdrop-filter:blur(12px) !important;
  border:1px solid rgba(45,212,255,.32) !important;
  box-shadow:0 0 35px rgba(0,0,0,.25), inset 0 0 25px rgba(45,212,255,.08) !important;
}

.center-title{
  min-height:760px !important;
  padding:80px 40px 160px !important;
}

.center-title h1{
  font-size:clamp(56px,8vw,110px) !important;
  text-shadow:0 0 40px rgba(45,212,255,.95),0 0 80px rgba(168,85,247,.55) !important;
}

.center-title p{
  background:rgba(2,6,23,.38) !important;
  backdrop-filter:blur(8px) !important;
  padding:16px 22px !important;
  border-radius:18px !important;
  border:1px solid rgba(45,212,255,.22) !important;
}

.bottom-console{
  position:absolute !important;
  left:22% !important;
  right:22% !important;
  bottom:26px !important;
  height:100px !important;
  z-index:10 !important;
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  gap:12px !important;
  padding:14px !important;
  background:rgba(2,6,23,.58) !important;
  backdrop-filter:blur(14px) !important;
  border:1px solid rgba(45,212,255,.38) !important;
  border-radius:24px !important;
}

header{
  background:rgba(2,6,23,.72) !important;
  backdrop-filter:blur(14px) !important;
}

.games-section{
  margin-top:34px !important;
}

@media(max-width:1200px){
  .ship-side{display:none !important}
  .ship-shell{grid-template-columns:1fr !important}
  .bottom-console{left:5% !important;right:5% !important}
}

/* FINAL COCKPIT POLISH */
.bridge{
  background-position:center top !important;
}

.bridge::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at center,rgba(1,4,13,.05),rgba(1,4,13,.62) 78%),
    linear-gradient(180deg,rgba(1,4,13,.05),rgba(1,4,13,.45));
  pointer-events:none;
  z-index:1;
}

.ship-shell{
  position:relative;
  z-index:2;
}

.center-title{
  max-width:920px;
  margin:0 auto;
}

.center-title h1{
  margin-top:10px !important;
  margin-bottom:10px !important;
}

.center-title p{
  max-width:620px !important;
  font-size:18px !important;
}

.launch{
  margin-top:18px !important;
}

.panel{
  background:rgba(2,6,23,.36) !important;
}

.game-tile,
.card{
  background:rgba(2,6,23,.78) !important;
  backdrop-filter:blur(12px);
  border-color:rgba(45,212,255,.28) !important;
}

.section-head h2{
  text-shadow:0 0 18px rgba(45,212,255,.5);
}

/* BRIGHTER COCKPIT + HUD CARDS */
.bridge::before{
  background:
    radial-gradient(circle at center,rgba(1,4,13,.00),rgba(1,4,13,.28) 82%),
    linear-gradient(180deg,rgba(1,4,13,.00),rgba(1,4,13,.18)) !important;
}

.bridge{
  filter:brightness(1.18) contrast(1.06) saturate(1.12);
}

.center-title p{
  background:rgba(2,6,23,.22) !important;
}

/* HUD HEADER */
header{
  background:rgba(3,10,28,.42) !important;
  border:1px solid rgba(45,212,255,.45) !important;
  box-shadow:
    0 0 28px rgba(45,212,255,.18),
    inset 0 0 24px rgba(45,212,255,.08) !important;
}

nav a{
  background:rgba(0,217,255,.08) !important;
  border:1px solid rgba(45,212,255,.35) !important;
  color:#e0f7ff !important;
  box-shadow:inset 0 0 16px rgba(45,212,255,.08);
}

nav a:hover{
  background:rgba(168,85,247,.18) !important;
  border-color:rgba(168,85,247,.75) !important;
  box-shadow:0 0 22px rgba(168,85,247,.35);
}

/* HUD SIDE PANELS */
.panel{
  background:rgba(3,10,28,.36) !important;
  border:1px solid rgba(45,212,255,.42) !important;
  box-shadow:
    0 0 24px rgba(45,212,255,.12),
    inset 0 0 26px rgba(45,212,255,.08) !important;
}

.panel h3{
  color:#67e8f9 !important;
  text-shadow:0 0 12px rgba(45,212,255,.7);
}

/* HUD GAME CARDS */
.game-tile,
.card{
  position:relative;
  background:rgba(3,10,28,.52) !important;
  border:1px solid rgba(45,212,255,.42) !important;
  border-radius:18px !important;
  box-shadow:
    0 0 26px rgba(45,212,255,.12),
    inset 0 0 24px rgba(45,212,255,.06) !important;
  backdrop-filter:blur(10px);
}

.game-tile::before,
.card::before{
  content:"";
  position:absolute;
  inset:8px;
  border:1px solid rgba(45,212,255,.16);
  border-radius:13px;
  pointer-events:none;
}

.game-tile::after,
.card::after{
  content:"PLAY";
  position:absolute;
  top:12px;
  right:12px;
  padding:5px 9px;
  font-size:11px;
  font-weight:900;
  color:#001018;
  background:#67e8f9;
  border-radius:999px;
  box-shadow:0 0 16px rgba(45,212,255,.7);
}

.game-tile:hover,
.card:hover{
  transform:translateY(-6px);
  border-color:rgba(168,85,247,.85) !important;
  box-shadow:
    0 0 34px rgba(168,85,247,.35),
    inset 0 0 24px rgba(45,212,255,.08) !important;
}

.game-tile img,
.card img{
  opacity:.92;
  filter:saturate(1.15) contrast(1.06);
}

.game-tile div,
.card div{
  background:linear-gradient(180deg,rgba(3,10,28,.2),rgba(3,10,28,.7));
}

.game-tile h3,
.card h3{
  color:#f8fafc !important;
  text-shadow:0 0 10px rgba(45,212,255,.35);
}

.game-tile span,
.card p{
  display:inline-block;
  padding:5px 9px;
  color:#67e8f9 !important;
  background:rgba(45,212,255,.1);
  border:1px solid rgba(45,212,255,.25);
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}

/* HUD SECTION TITLE */
.section-head{
  padding:14px 18px;
  background:rgba(3,10,28,.42);
  border:1px solid rgba(45,212,255,.32);
  border-radius:16px;
  box-shadow:inset 0 0 20px rgba(45,212,255,.06);
}

.section-head h2{
  color:#e0f7ff;
  text-shadow:0 0 18px rgba(45,212,255,.65);
}

.section-head a{
  padding:9px 13px;
  border:1px solid rgba(45,212,255,.35);
  border-radius:999px;
  background:rgba(45,212,255,.08);
}


/* BETTER GAME PLAYER */
.game-page{
  width:96% !important;
  max-width:1680px !important;
}

.frame{
  width:100% !important;
  max-width:1500px !important;
  margin:24px auto !important;
  padding:10px !important;
  background:rgba(2,6,23,.85) !important;
  border:1px solid rgba(45,212,255,.45) !important;
  border-radius:28px !important;
  box-shadow:0 0 45px rgba(45,212,255,.18) !important;
}

.frame iframe{
  width:100% !important;
  height:min(78vh,820px) !important;
  min-height:620px !important;
  border:0 !important;
  border-radius:20px !important;
  display:block !important;
  background:#000 !important;
}

@media(max-width:760px){
  .game-page{
    width:98% !important;
  }

  .frame{
    padding:5px !important;
    border-radius:18px !important;
  }

  .frame iframe{
    height:75vh !important;
    min-height:520px !important;
    border-radius:14px !important;
  }
}

/* SHOW MORE COCKPIT IMAGE */
.bridge{
  min-height:880px !important;
  background-size:contain !important;
  background-repeat:no-repeat !important;
  background-position:center top !important;
  background-color:#01040d !important;
}

.ship-shell{
  min-height:880px !important;
}

.center-title{
  min-height:880px !important;
  padding-top:140px !important;
  padding-bottom:260px !important;
}

.bottom-console{
  bottom:70px !important;
}

@media(max-width:1200px){
  .bridge{
    background-size:cover !important;
    min-height:760px !important;
  }
}
