﻿:root {
  --bg: #323232;
  --surface: #2a2a2a;
  --surface-2: #202020;
  --text: #88fffd;
  --accent: #88fffd;
  --yellow: #ffd447;
  --dark-red: #5b1f1f;
  --muted: #66c9c8;
  --border: #4b4b4b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  background-color: #000000;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.global-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* background:
    radial-gradient(circle at 20% 20%, rgba(183, 95, 255, 0.18), rgba(0, 0, 0, 0) 55%),
    radial-gradient(circle at 80% 70%, rgba(143, 70, 238, 0.15), rgba(0, 0, 0, 0) 50%),
    linear-gradient(180deg, #000000 0%, #010101 45%, #000000 100%); */
  overflow: hidden;
}

#matrix-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

/* .purple-static {
  position: absolute;
  inset: -30%;
  opacity: 0.2;
  mix-blend-mode: screen;
  background-image:
    repeating-radial-gradient(circle at center, rgba(218, 164, 255, 0.22) 0 1px, rgba(62, 24, 102, 0.14) 1px 3px),
    repeating-linear-gradient(0deg, rgba(203, 132, 255, 0.06) 0 1px, rgba(3, 3, 3, 0.08) 1px 2px);
  animation: purpleStaticShift 28s linear infinite;
}

@keyframes purpleStaticShift {
  0% { transform: translate3d(-8%, -6%, 0) rotate(0deg); }
  100% { transform: translate3d(8%, 6%, 0) rotate(2deg); }
} */

.site-header,
.container {
  position: relative;
  z-index: 2;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
  /* border-bottom: 1px solid var(--border); */
  background: #030303;
  backdrop-filter: blur(4px);
  position: relative;
  /* overflow: hidden; */
}
.site-header nav { display: flex; gap: 0.8rem; align-items: center; }
.site-header a { color: var(--text); text-decoration: none; }
.site-header a:hover { color: var(--yellow); }

.sheet-mock {
    /* max-width: 1200px; */
    margin: 0 auto;
    color: #85e7f7;
    z-index: 1;
    position: relative;
  }

.navbartest{
  z-index: 1;
  position: relative;
}

.site-title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.55rem 1.5rem;
  color: var(--text);
  text-shadow: 0 0 10px rgba(136, 255, 253, 0.6);
  letter-spacing: 0.02em;
}

.site-title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  height: 190px;
  background-image: url("/static/img/star_umbra.2db9e1317de8.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.9;
  z-index: -1;
  pointer-events: none;
}
.container { padding: 1rem; }
.layout-two-col {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 1rem;
}
@media (max-width: 950px) { .layout-two-col { grid-template-columns: 1fr; } }

.player-map-shell {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: visible;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-image: url("/static/img/circuit-tile.2bde2b461b6f.svg");
  background-repeat: repeat;
  background-size: 240px 240px;
  background-color: rgba(50, 50, 50, 0.8);
}

.map-shell {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #3a3a3a;
  padding: 0.3rem;
  overflow: auto;
  min-height: 60vh;
}
.map-root svg { width: 100%; height: auto; }

.panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
  background: var(--surface);
}
.muted { color: var(--muted); }
.legend { display: grid; gap: 0.4rem; }
.legend-item { display: flex; gap: 0.5rem; align-items: center; }
.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid #fff;
}

.btn, button {
  border: 1px solid var(--yellow);
  background: var(--yellow);
  color: #262626;
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover, button:hover { background: #e6ba34; }

label { display: block; margin-top: 0.6rem; margin-bottom: 0.2rem; }
select, input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem;
  background: var(--surface-2);
  color: var(--text);
}

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: grid;
  gap: 0.4rem;
}
.message { padding: 0.6rem; border-radius: 6px; }
.message.success { background: rgba(136, 255, 253, 0.18); border: 1px solid #88fffd; }
.message.error { background: rgba(91, 31, 31, 0.55); border: 1px solid #b84545; }

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 1rem;
}
@media (max-width: 800px) { .filter-bar { grid-template-columns: 1fr; } }

table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--border); padding: 0.45rem; text-align: left; }
th { color: var(--yellow); }

.inline-form { display: inline-block; margin: 0; }
.inline-form button { padding: 0.2rem 0.5rem; }

.note-status {
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.auth-box {
  max-width: 520px;
}

.character-sheet-shell {
  /* max-width: 1100px; */
  margin: 0 auto;
}

.character-sheet-form {
  display: grid;
  gap: 1rem;
}

.sheet-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 0.9rem;
}

.sheet-section h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--yellow);
}

.sheet-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.sheet-info-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .sheet-info-grid,
  .sheet-info-grid.three-col {
    grid-template-columns: 1fr;
  }
}

.field-stack {
  display: grid;
  gap: 0.25rem;
}

.field-stack ul.errorlist,
.dot-group ul.errorlist {
  margin: 0;
  padding-left: 1rem;
  color: #ff9a9a;
}

.dot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 980px) {
  .dot-grid {
    grid-template-columns: 1fr;
  }
}

.dot-group h4 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--accent);
}

.dot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.dot-row label {
  margin: 0;
}

.dot-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0;
}

button.dot-node {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 2px solid #5fd6ea;
  background: rgba(95, 214, 234, 0.06);
  border-radius: 2px;
  transform: rotate(45deg);
  cursor: pointer;
  box-shadow: none;
}

button.dot-node:hover {
  background: rgba(95, 214, 234, 0.2);
}

button.dot-node.is-filled {
  background: #88fffd;
  border-color: #88fffd;
}

button.dot-node:focus-visible {
  outline: 2px solid #ffd447;
  outline-offset: 2px;
}

.native-dot-select {
  width: 80px;
}

.js-enabled .native-dot-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rule-status {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
}

.rule-status.valid {
  border-color: #3c9162;
  background: rgba(60, 145, 98, 0.15);
}

.rule-status.invalid {
  border-color: #b84545;
  background: rgba(91, 31, 31, 0.35);
}
