/* ============================================================
   /assets/css/nebu.css
   NEBUsee / NeBU v1.0
   ============================================================ */

:root{
  --nebu-bg:#03070B;
  --nebu-card:#07111A;
  --nebu-card2:#0A1824;
  --nebu-ice:#9CF6FF;
  --nebu-glow:#35D7FF;
  --nebu-green:#72FF9F;
  --nebu-lime:#B8FF6A;
  --nebu-violet:#8C7CFF;
  --nebu-pink:#FF62D6;
  --nebu-khaki:#C7B98A;
  --nebu-muted:#7C89A8;
  --nebu-line:rgba(156,246,255,0.14);
  --nebu-line-strong:rgba(156,246,255,0.26);
  --nebu-shadow:0 18px 70px rgba(0,0,0,0.50);
}

.nebuApp{
  position:relative;
  width:100%;
  height:140vh;
  overflow:hidden;
  color:#EAF7FF;
  background:
    radial-gradient(1000px 620px at 50% 45%, rgba(114,255,159,0.10), transparent 42%),
    radial-gradient(850px 560px at 72% 30%, rgba(53,215,255,0.08), transparent 48%),
    radial-gradient(720px 520px at 22% 72%, rgba(255,98,214,0.06), transparent 52%),
    linear-gradient(180deg,#061019,#03070B);
  font-family:system-ui,Segoe UI,Roboto,Arial,sans-serif;
}

.nebuScene{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
}

.nebuStars{
  position:absolute;
  inset:-70px;
  opacity:.72;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.12) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(114,255,159,.12) 1px, transparent 1px),
    radial-gradient(circle at 42% 80%, rgba(156,246,255,.10) 1px, transparent 1px);
  background-size:210px 210px, 290px 290px, 370px 370px;
  animation:nebuStarDrift 80s linear infinite;
}

@keyframes nebuStarDrift{
  from{transform:translate3d(0,0,0);}
  to{transform:translate3d(-24px,18px,0);}
}

.nebuGlow{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 48% 48%, rgba(114,255,159,.13), transparent 23%),
    radial-gradient(circle at 48% 48%, rgba(53,215,255,.07), transparent 39%);
  filter:blur(4px);
  animation:nebuPulse 7s ease-in-out infinite;
}

@keyframes nebuPulse{
  0%,100%{opacity:.72; transform:scale(1);}
  50%{opacity:1; transform:scale(1.025);}
}

/* HUD */

.nebuHud{
  position:absolute;
  inset:0;
  z-index:30;
  pointer-events:none;
}

.nebuHud > *{
  pointer-events:auto;
}

.nebuTopBar{
  position:absolute;
  top:14px;
  left:50%;
  transform:translateX(-50%);
  z-index:35;
}

.nebuStatusChip{
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(156,246,255,.16);
  background:rgba(6,13,22,.68);
  color:var(--nebu-green);
  display:flex;
  align-items:center;
  font-size:13px;
  font-weight:900;
  letter-spacing:.02em;
  backdrop-filter:blur(12px);
  box-shadow:0 10px 32px rgba(0,0,0,.28), 0 0 18px rgba(114,255,159,.08);
  white-space:nowrap;
}

.nebuCorner{
  position:absolute;
  width:54px;
  height:54px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(6,13,22,.70);
  color:#EAF7FF;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:1000;
  cursor:pointer;
  user-select:none;
  backdrop-filter:blur(12px);
  box-shadow:0 12px 34px rgba(0,0,0,.30);
  transition:transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

.nebuCorner:hover{
  transform:translateY(-1px);
  border-color:rgba(114,255,159,.34);
  background:rgba(10,24,34,.82);
  box-shadow:0 12px 34px rgba(0,0,0,.34), 0 0 20px rgba(114,255,159,.10);
}

.nebuCorner--ul{top:14px; left:14px;}
.nebuCorner--ur{top:14px; right:14px; color:var(--nebu-khaki);}
.nebuCorner--ll{bottom:14px; left:14px;}
.nebuCorner--lr{bottom:14px; right:14px;}

/* Center game */

.nebuCenter{
  position:absolute;
  inset:0;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:86px 76px 76px;
}

.nebuGameCard{
  width:min(980px, 100%);
  max-height:100%;
  border:1px solid var(--nebu-line);
  border-radius:26px;
  background:
    linear-gradient(180deg, rgba(114,255,159,.055), transparent 36%),
    linear-gradient(180deg, rgba(53,215,255,.035), transparent 76%),
    rgba(7,17,26,.78);
  backdrop-filter:blur(14px);
  box-shadow:var(--nebu-shadow);
  overflow:hidden;
}

.nebuGameHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-bottom:1px solid rgba(156,246,255,.09);
}

.nebuKicker{
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:900;
  color:rgba(156,246,255,.84);
}

.nebuTitle{
  margin-top:6px;
  font-size:24px;
  line-height:1;
  font-weight:1000;
  color:#FFFFFF;
}

.nebuReadouts{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nebuReadout{
  min-width:76px;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid rgba(156,246,255,.10);
  background:rgba(255,255,255,.025);
  text-align:center;
}

.nebuReadout span{
  display:block;
  font-size:10px;
  color:var(--nebu-muted);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
}

.nebuReadout strong{
  display:block;
  margin-top:4px;
  font-size:18px;
  color:var(--nebu-green);
}
.nebuBoardWrap{
  position:relative;
  padding:22px;
}

.nebuCanvas{
  display:block;
  width:100%;
  aspect-ratio:28 / 18;
  box-sizing:border-box;
  border-radius:20px;
  border:1px solid rgba(156,246,255,.12);
  background:
    linear-gradient(90deg, rgba(156,246,255,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(156,246,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(114,255,159,.055), transparent 42%),
    rgba(3,7,11,.78);
  background-size:30px 30px, 30px 30px, auto, auto;
  box-shadow:
    inset 0 0 40px rgba(0,0,0,.42),
    0 0 26px rgba(114,255,159,.055);
}

.nebuStartPanel{
  position:absolute;
  inset:22px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  border-radius:20px;
  background:rgba(3,7,11,.68);
  backdrop-filter:blur(5px);
  padding:22px;
}

.nebuStartPanel.hidden{
  display:none !important;
}

.nebuStartTitle{
  font-size:28px;
  font-weight:1000;
  color:#FFFFFF;
}

.nebuStartSub{
  margin-top:10px;
  max-width:520px;
  color:rgba(234,247,255,.76);
  font-size:14px;
  line-height:1.45;
}

.nebuPrimaryBtn{
  margin-top:18px;
  min-height:46px;
  padding:0 22px;
  border-radius:999px;
  border:1px solid rgba(114,255,159,.34);
  background:rgba(114,255,159,.13);
  color:#EAF7FF;
  font-weight:1000;
  letter-spacing:.08em;
  cursor:pointer;
  box-shadow:0 0 18px rgba(114,255,159,.10);
}

.nebuPrimaryBtn:hover{
  background:rgba(114,255,159,.19);
  transform:translateY(-1px);
}

.nebuStartFine{
  margin-top:12px;
  font-size:12px;
  color:rgba(156,246,255,.68);
}

.nebuDock{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  padding:0 14px 14px;
}

.nebuDockBtn{
  min-height:48px;
  border-radius:16px;
  border:1px solid rgba(156,246,255,.12);
  background:rgba(53,215,255,.07);
  color:#EAF7FF;
  font-size:12px;
  font-weight:1000;
  letter-spacing:.08em;
  cursor:pointer;
}

.nebuDockBtn:hover:not(:disabled){
  background:rgba(53,215,255,.12);
  border-color:rgba(156,246,255,.24);
}

.nebuDockBtn:disabled{
  opacity:.42;
  cursor:not-allowed;
}

/* Modal */

.nebuModal.hidden{
  display:none !important;
}

.nebuModal{
  position:fixed;
  inset:0;
  z-index:5000;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:20px;
}

.nebuModalBackdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.62);
  backdrop-filter:blur(5px);
}

.nebuModalCard{
  position:relative;
  z-index:2;
  width:min(760px, calc(100vw - 30px));
  max-height:calc(100vh - 40px);
  overflow:auto;
  border:1px solid rgba(156,246,255,.16);
  border-radius:22px;
  background:
    linear-gradient(180deg, rgba(114,255,159,.07), transparent 38%),
    rgba(7,17,26,.96);
  box-shadow:0 26px 90px rgba(0,0,0,.56);
}

.nebuModalHead{
  position:sticky;
  top:0;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid rgba(156,246,255,.09);
  background:rgba(7,17,26,.90);
  backdrop-filter:blur(12px);
}

.nebuModalTitle{
  font-size:14px;
  font-weight:1000;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#EAF7FF;
}

.nebuModalClose{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(156,246,255,.14);
  background:rgba(53,215,255,.08);
  color:#EAF7FF;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}

.nebuModalClose:hover{
  background:rgba(53,215,255,.14);
}

.nebuModalBody{
  padding:14px;
}

.nebuCard{
  padding:12px;
  border:1px solid rgba(156,246,255,.10);
  border-radius:16px;
  background:rgba(255,255,255,.025);
  margin-bottom:10px;
}

.nebuCardTitle{
  font-weight:1000;
  color:#FFFFFF;
}

.nebuCardSub{
  margin-top:6px;
  color:var(--nebu-muted);
  font-size:13px;
  line-height:1.45;
}

.nebuGrid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.nebuStat{
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(156,246,255,.09);
  background:rgba(255,255,255,.022);
}

.nebuStatK{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--nebu-muted);
  font-weight:900;
}

.nebuStatV{
  margin-top:5px;
  font-size:24px;
  color:var(--nebu-green);
  font-weight:1000;
}

/* Mobile */

@media (max-width: 820px){
  .nebuCenter{
    padding:82px 12px 86px;
  }

  .nebuGameHead{
    flex-direction:column;
    align-items:flex-start;
  }

  .nebuReadouts{
    justify-content:flex-start;
  }

  .nebuTopBar{
    top:76px;
    width:calc(100% - 24px);
  }

  .nebuStatusChip{
    justify-content:center;
    white-space:normal;
    text-align:center;
    font-size:12px;
    min-height:38px;
  }

  .nebuCorner{
    width:50px;
    height:50px;
  }

  .nebuDock{
    grid-template-columns:1fr;
  }

  .nebuGrid2{
    grid-template-columns:1fr;
  }
}