:root{
  /* Solid “top-of-grid” blueprint color — NO gradients */
  --paper: #0b6fbf;

  /* grid tuning (subtle, doesn’t fight text) */
  --grid-minor: rgba(255,255,255,.06);
  --grid-major: rgba(255,255,255,.10);
  --minor: 26px;
  --major: 104px;

  /* glass layer */
  --glass: rgba(5, 18, 36, .34);        /* more transparent */
  --glass-strong: rgba(5, 18, 36, .46); /* slightly stronger */
  --border: rgba(210, 235, 255, .14);   /* crisp border */
  --border2: rgba(210, 235, 255, .10);

  --text: rgba(235, 247, 255, .92);
  --muted: rgba(235, 247, 255, .65);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family:var(--sans);
  background: var(--paper); /* SOLID */
  overflow-x:hidden;
}

/* fixed background grid (repeats everywhere) */
.bg{
  position:fixed;
  inset:0;
  z-index:-1;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px),
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size:
    var(--minor) var(--minor),
    var(--minor) var(--minor),
    var(--major) var(--major),
    var(--major) var(--major);
  background-position: 0 0, 0 0, 0 0, 0 0;

  /* reduce moiré/banding on some displays */
  transform: translateZ(0);
  will-change: transform;
}

/* topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:20;

  /* symmetrical padding with iPhone safe areas */
  padding:
    calc(10px + env(safe-area-inset-top))
    calc(14px + env(safe-area-inset-right))
    10px
    calc(14px + env(safe-area-inset-left));

  display:flex;
  align-items:center;
  gap:12px;

  background: rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.icon-btn{
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(5,18,36,.28);
  display:grid;
  place-items:center;
  padding:0;
  cursor:pointer;
}

.hamburger{
  width:22px;
  display:grid;
  gap:5px;
}
.hamburger span{
  display:block;
  height:2px;
  border-radius:2px;
  background: rgba(235,247,255,.92);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1;
}

.brand-icon{
  width:28px;height:28px;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
}

.brand-text{ min-width:0; }
.brand-name{
  font-weight:800;
  letter-spacing:.2px;
  line-height:1.1;
}
.brand-sub{
  font-size:12.5px;
  color:var(--muted);
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(5,18,36,.30);
  font-size:13px;
  white-space:nowrap;
}
.badge .check{
  color: rgba(70,255,224,.92); /* green check */
  font-weight:900;
}

.support-btn{
  text-decoration:none;
  color:var(--text);
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(5,18,36,.30);
}

/* layout: ALWAYS symmetrical */
.wrap{
  width:min(980px, 100%);
  margin:0 auto;
  padding:
    18px
    calc(14px + env(safe-area-inset-right))
    42px
    calc(14px + env(safe-area-inset-left));
}

.hero h1{
  font-size:48px;
  line-height:1.05;
  margin:22px 0 10px;
}
@media (max-width:520px){
  .hero h1{ font-size:42px; }
}

.muted{ color:var(--muted); }
.tiny{ font-size:12px; }
.mono{ font-family:var(--mono); }

.card{
  border-radius:20px;
  border:1px solid var(--border);
  background: var(--glass);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.glass{
  backdrop-filter: blur(12px);
}

.hero .card{ margin-top:16px; padding:16px; }

.row{ display:flex; align-items:center; }
.between{ justify-content:space-between; }

.players{
  font-family:var(--mono);
  font-weight:800;
  font-size:18px;
  color: rgba(70,255,224,.92);
}

.join-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top:12px;
}
@media (max-width:720px){
  .join-grid{ grid-template-columns:1fr; }
}

.join-label{
  letter-spacing:.16em;
  font-weight:800;
  font-size:12px;
  color: rgba(235,247,255,.60);
  margin:10px 0 8px;
}

.copy-pill{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding:14px 16px;
  border-radius:999px;
  border:1px solid var(--border2);
  background: rgba(5,18,36,.28);
  color:var(--text);
  cursor:pointer;
}
.copy-pill:hover{ background: rgba(5,18,36,.33); }

.pill-row{ display:grid; grid-template-columns: 1.2fr .8fr; gap:10px; }
.pill{
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--border2);
  background: rgba(5,18,36,.28);
}
.ip{ color: var(--text); } /* FIX: always white, no mobile-blue/desktop-black mismatch */

.quick{
  display:flex;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}
.chip{
  text-decoration:none;
  color:var(--text);
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(5,18,36,.22);
}

.bullets{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:14px;
}
.bullet{ display:flex; align-items:center; gap:10px; }
.dot{
  width:10px;height:10px;
  border-radius:50%;
  background: rgba(70,255,224,.90);
  box-shadow: 0 0 0 3px rgba(70,255,224,.10);
}

.title{
  font-weight:800;
  margin-bottom:8px;
}
.quote{
  font-family:var(--mono);
  font-size:20px;
  margin:8px 0 10px;
}
.yellow{ color: rgba(255, 235, 120, .92); } /* Minecraft &e vibe */

.section{ margin-top:18px; padding:18px; }
.section-head h2{ margin:0; font-size:30px; }
.section-head p{ margin:8px 0 0; }

.two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top:14px;
}
@media (max-width:720px){
  .two{ grid-template-columns:1fr; }
}

.mini{
  border-radius:18px;
  border:1px solid var(--border2);
  background: rgba(5,18,36,.24);
  padding:14px;
}
.mini-title{ font-weight:900; margin-bottom:8px; }
.allowed{ color: rgba(120,255,160,.92); }
.notallowed{ color: rgba(255,120,120,.92); }

.cmds{
  display:grid;
  gap:10px;
  margin-top:12px;
}
.cmd{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--border2);
  background: rgba(5,18,36,.24);
}
.note{
  margin-top:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px dashed rgba(255,255,255,.14);
  background: rgba(5,18,36,.18);
}

.status{ margin-top:14px; }

.big{
  display:inline-flex;
  justify-content:center;
  width:100%;
  text-decoration:none;
  color:var(--text);
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(5,18,36,.28);
}

.footer{
  margin-top:18px;
  text-align:center;
  opacity:.85;
}
.sep{ margin:0 8px; opacity:.5; }

/* drawer */
.drawer{
  position:fixed;
  top:0; left:0;
  height:100%;
  width:min(360px, 86vw);
  background: rgba(5,18,36,.70);
  border-right:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  transform: translateX(-110%);
  transition: transform .20s ease;
  z-index:40;
  padding: 14px;
}
.drawer.open{ transform: translateX(0); }

.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top: calc(6px + env(safe-area-inset-top));
}
.drawer-title{ font-weight:900; }
.x{ font-size:26px; line-height:1; }

.drawer-nav{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.drawer-link{
  text-decoration:none;
  color:var(--text);
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}

.backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.40);
  z-index:35;
}

.toast{
  position:fixed;
  left:50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(5,18,36,.72);
  backdrop-filter: blur(10px);
  z-index:60;
}
