/* WHITEOUT online: status chip, player card, world picker. Matches css/site.css:
   white chips, 3px black borders, rounded, Cooper Hewitt bold buttons.
   deep blue #003FBA, light blue #34A1E5, white #FFFFFF, black #000000 */

.netchip {
  position: fixed;
  top: calc(84px + env(safe-area-inset-top));
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(50vw - 20px);
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  font-family: "Cooper Hewitt", "Avenir Next", sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
.netchip .nettxt { overflow: hidden; text-overflow: ellipsis; }
.netchip:active { background: #34A1E5; }
.netdot {
  flex: none;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #000000;
  background: #FFFFFF;
}
.netchip[data-status="online"] .netdot { background: #34A1E5; }
.netchip[data-status="connecting"] .netdot { background: #34A1E5; animation: netpulse 0.9s ease-in-out infinite alternate; }
.netchip[data-status="full"] .netdot { background: #003FBA; }
.netchip[data-status="offline"] .netdot { background: #FFFFFF; border-style: dashed; }
@keyframes netpulse { from { opacity: 0.25; } to { opacity: 1; } }
body.in-arcade .netchip { display: none; }

/* overlays */
.net-ov {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 20, 60, 0.35);
}
.net-ov[hidden] { display: none; }
.net-card {
  position: relative;
  width: 100%;
  max-width: 260px;
  background: #FFFFFF;
  color: #000000;
  border: 3px solid #000000;
  border-radius: 18px;
  padding: 14px 16px 14px;
  text-align: center;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
}
.net-card.net-pick { max-width: 300px; }
.net-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  touch-action: manipulation;
}
.net-prev {
  display: block;
  width: 132px;
  height: 112px;
  margin: 2px auto 4px;
}
.net-name {
  margin: 2px 30px 2px;
  font-family: "Cooper Hewitt", "Avenir Next", sans-serif;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.net-sub { margin: 0 0 12px; font-size: 13px; color: #003FBA; }
.net-row { display: flex; gap: 8px; justify-content: center; }
.net-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  font-size: 15px;
  touch-action: manipulation;
}
.net-btn[hidden] { display: none; }
.net-btn:disabled { opacity: 0.4; }
.net-msg { margin: 10px 0 0; font-size: 13px; min-height: 1em; }
.net-msg:empty { display: none; }

.net-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.net-world {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 17px;
  text-align: left;
  touch-action: manipulation;
}
.net-world .nw-count { font-size: 12px; color: #003FBA; }
.net-world.on { background: #003FBA; color: #FFFFFF; }
.net-world.on .nw-count { color: #FFFFFF; }

/* phones: css/ui.css moves the menu rail up to 100px, so sit beside its top button */
@media (max-width: 760px) {
  .netchip { top: calc(100px + env(safe-area-inset-top)); right: 68px; max-width: calc(100vw - 150px); }
}
@media (max-width: 400px) {
  .netchip { font-size: 12px; padding: 4px 9px 4px 7px; gap: 6px; }
  .netdot { width: 9px; height: 9px; }
}
