* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
html { position: relative; }
body {
  font-family: Montserrat, Calibri, sans-serif;
  font-size: 16px;
  color: #fff;
  background-color: #000;
  background-image: url("../images/bg_honeycomb.jpg");
  background-repeat: repeat;
  background-attachment: fixed;
  margin-top: 52px;
  margin-bottom: 0;
}
a { color: #fff; text-decoration: none; }
a.underline { text-decoration: underline; font-size: 17px; }
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #333;
  z-index: 20;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
}
.nav-left, .nav-right { display: flex; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-left a, .drop-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #ddd;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.nav-left li.active a, .nav-left a:hover, .drop-btn:hover { background: #000; color: #fff; }
.nav-left a { font-weight: 700; }
.nav-ava { width: 28px; height: 28px; border-radius: 3px; object-fit: cover; }
.steam-login { display: block; line-height: 0; padding: 8px 10px; }
.steam-login img { height: 32px; border-radius: 4px; }
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #000;
  min-width: 160px;
  border: 1px solid #222;
}
.dropdown.open .dropdown-menu, .dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #aaa;
}
.dropdown-menu a:hover { background: #ddd; color: #000; }
.caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #aaa;
}
.wrap { max-width: 820px; margin: 28px auto 40px; padding: 0 16px; text-align: center; }
.hero h1 { font-size: 42px; margin: 10px 0 6px; }
.sub { color: #bbb; margin: 0 0 18px; }
.status-row { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.state { font-weight: 700; }
.state.on { color: #3d3; }
.state.off { color: #f44; }
.map { color: #fc0; }
.connect {
  display: inline;
  padding: 0;
  background: none;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}
.connect:hover { background: none; color: #fff; }
.card {
  background: #111c;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 22px;
  margin: 22px 0;
  text-align: center;
}
.card h2 { margin-top: 0; }
.muted { color: #aaa; }
.ava-big { width: 184px; height: 184px; object-fit: cover; border-radius: 4px; }
.sid { font-size: 17px; margin: 8px 0 0; }
.players { width: 100%; border-collapse: collapse; }
.players th, .players td { border: 1px solid #fff; padding: 6px 10px; }
form { max-width: 420px; margin: 0 auto; text-align: left; }
label { display: block; margin: 14px 0; }
input[type=text], input[type=file] {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: #333;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 5px;
  padding: 8px;
}
.check { display: flex; align-items: center; gap: 8px; }
button {
  padding: 8px 18px;
  background: #ccc;
  color: #000;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.flash { margin: 12px auto; max-width: 520px; padding: 8px 12px; border-radius: 6px; }
.flash.ok { background: #163; }
.flash.err { background: #411; }
.crop-modal {
  position: fixed;
  inset: 0;
  background: #000c;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.crop-modal[hidden] { display: none; }
.crop-box {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 18px;
  width: min(420px, 100%);
}
.crop-stage {
  width: 320px;
  height: 320px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #000;
  cursor: grab;
  touch-action: none;
}
.crop-stage img {
  position: absolute;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.crop-shade {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 2px #fff;
  pointer-events: none;
}
.zoom { text-align: left; }
.crop-actions { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 767px) {
  body { margin-top: 0; }
  .navbar { position: relative; }
  .hero h1 { font-size: 30px; }
}
