/* Styl gry 3D. HUD ma własne style w js/hud3d.js - tutaj jest wszystko poza nim:
   menu, lobby, kill feed i tabela wyników. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #0a0c10;
  color: #dbe6f0;
  font-family: 'Segoe UI', Arial, sans-serif;
}

#view { display: block; width: 100vw; height: 100vh; cursor: crosshair; }

.hidden { display: none !important; }
.muted { color: #6f8090; font-size: 13px; }

/* --- Menu i lobby ------------------------------------------------------- */

#menu {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 9, 14, 0.88);
  backdrop-filter: blur(3px);
}

.menu-inner { width: 640px; max-width: 92vw; text-align: center; }

#menu h1 {
  font-size: 46px; letter-spacing: 10px; font-weight: 600;
  color: #35c9d6; text-shadow: 0 0 26px rgba(53, 201, 214, 0.35);
}
.tagline { color: #7d8fa0; font-size: 14px; letter-spacing: 3px;
           margin: 6px 0 22px; text-transform: uppercase; }

.tabs { display: flex; gap: 4px; justify-content: center; margin-bottom: 16px; }
.tab {
  padding: 9px 16px; font-size: 13px; cursor: pointer;
  background: rgba(20, 26, 34, 0.9); color: #8296a8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid transparent; border-radius: 3px 3px 0 0;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: #dbe6f0; }
.tab.active { color: #35c9d6; border-bottom-color: #35c9d6; background: rgba(53, 201, 214, 0.08); }

.panel { display: none; }
.panel.active { display: block; }

.form { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.form input {
  width: 300px; padding: 11px 14px; font-size: 15px;
  background: rgba(12, 16, 22, 0.9); color: #dbe6f0;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 3px;
}
.form input:focus { outline: none; border-color: #35c9d6; }
.form button {
  width: 300px; padding: 12px; font-size: 15px; font-weight: 600; letter-spacing: 3px;
  cursor: pointer; color: #06232a; background: #35c9d6;
  border: 0; border-radius: 3px; transition: filter .15s;
}
.form button:hover { filter: brightness(1.12); }
.form button:disabled { filter: grayscale(1) brightness(.6); cursor: default; }

#error { color: #ff7a6b; font-size: 13px; min-height: 18px; }
#loading { color: #6f8090; font-size: 12px; min-height: 16px; }

.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.grid th {
  padding: 8px 10px; text-align: left; color: #35c9d6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 600; letter-spacing: .6px;
}
.grid td { padding: 7px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.grid tr:hover td { background: rgba(255, 255, 255, 0.03); }

.list { max-height: 46vh; overflow-y: auto; text-align: left; }
.list .row {
  padding: 9px 12px; margin-bottom: 5px; border-radius: 3px; font-size: 13px;
  background: rgba(20, 26, 34, 0.7); border: 1px solid rgba(255, 255, 255, 0.07);
}
.list .row b { color: #35c9d6; }

.keys {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 20px;
  font-size: 13px; text-align: left; color: #b9c6d3;
}
.keys b { color: #e8a35a; text-align: right; font-weight: 600; }

.attrib { margin-top: 22px; font-size: 11px; opacity: .75; }
.attrib a { color: #7d8fa0; text-decoration: underline; }
.attrib a:hover { color: #35c9d6; }

/* --- Nakładki w grze ---------------------------------------------------- */

/* Panel pauzy z ustawieniami. Tło łapie kliknięcia poza panelem i wraca
   do gry, więc samo okno musi je zatrzymywać (patrz .pause-inner). */
#pause {
  position: fixed; inset: 0; z-index: 15;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 9, 14, 0.72);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.pause-inner {
  width: 460px; max-width: 92vw; padding: 26px 28px; cursor: default;
  background: rgba(8, 11, 16, .94); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4px; text-align: left;
}

#pause h2 {
  font-size: 17px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: #35c9d6; margin-bottom: 20px;
}

.setting { margin-bottom: 18px; }
.setting > label {
  display: block; font-size: 13px; color: #b9c6d3; margin-bottom: 8px;
}
.setting .control { display: flex; align-items: center; gap: 12px; }
.setting .muted { margin-top: 7px; font-size: 12px; line-height: 1.45; }

#set-music { flex: 1; accent-color: #35c9d6; cursor: pointer; }
#set-music-val { width: 44px; text-align: right; font-size: 13px; color: #35c9d6; }

.choice { display: flex; gap: 6px; }
.opt {
  padding: 8px 16px; font-size: 13px; cursor: pointer;
  background: rgba(20, 26, 34, 0.9); color: #8296a8;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 3px;
  transition: color .15s, border-color .15s, background .15s;
}
.opt:hover { color: #dbe6f0; }
.opt.active {
  color: #35c9d6; border-color: #35c9d6; background: rgba(53, 201, 214, 0.1);
}

#resume {
  width: 100%; margin-top: 4px; padding: 12px;
  font-size: 14px; font-weight: 600; letter-spacing: 3px;
  cursor: pointer; color: #06232a; background: #35c9d6;
  border: 0; border-radius: 3px; transition: filter .15s;
}
#resume:hover { filter: brightness(1.12); }
#pause-note { margin-top: 12px; text-align: center; }

#feed {
  position: fixed; right: 22px; top: 18px; z-index: 6;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
  font-size: 13px; text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
  pointer-events: none;
}
#feed .kill {
  padding: 4px 9px; border-radius: 2px;
  background: rgba(10, 14, 20, .6); animation: fade 6s forwards;
}
#feed .kill .killer { color: #7ee08a; font-weight: 600; }
#feed .kill .victim { color: #ff8a8a; font-weight: 600; }
#feed .kill.me { border-left: 2px solid #35c9d6; }
@keyframes fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

#status {
  position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 6;
  font-size: 13px; color: #9fb0c0; text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
  pointer-events: none;
}
#status b { color: #35c9d6; font-weight: 600; }

#board {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 12;
  width: 520px; max-width: 92vw; padding: 22px 26px;
  background: rgba(8, 11, 16, .92); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4px;
}
#board h2 { font-size: 17px; font-weight: 600; letter-spacing: 2px;
            color: #35c9d6; margin-bottom: 14px; text-transform: uppercase; }
#board .me td { color: #35c9d6; font-weight: 600; }
#board-note { margin-top: 12px; }
