

:root {
  --bg:#0b0b0b;
  --card:#1a1a22;
  --accent:#6be6ff;
  --text:#fff;
  --danger:#ff5c5c;
  --heal:#7ef0a6;
}

body {
  background:var(--bg);
  color:var(--text);
  font-family:Arial;
  padding:20px;
}

h1 { text-align:center; }

.controls { margin-bottom:15px; }

input, button, select {
  padding:8px;
  margin:5px;
  border-radius:6px;
  border:none;
}

button {
  background:var(--accent);
  color:#000;
  cursor:pointer;
}

.entry {
  background:var(--card);
  padding:10px;
  margin:6px 0;
  border-radius:8px;
  display:flex;
  flex-direction:column;
}

.active { border:2px solid gold; }

.row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
}

.hp-box {
  display:flex;
  align-items:center;
  gap:5px;
}

.hp-btn { font-size:12px; padding:4px 8px; }
.hp-minus { background:var(--danger); color:#fff; }
.hp-plus { background:var(--heal); }

.small-input { width:60px; text-align:center; }

.badge {
  font-size:12px;
  margin-left:10px;
}

/* CONDITIONS */
.condition-bar {
  margin-top:6px;
}

.condition-btn {
  background:#222;
  border:1px solid #444;
  color:#aaa;
  font-size:16px;
  padding:5px;
  margin:2px;
  border-radius:6px;
  cursor:pointer;
}

.condition-btn.active {
  background:var(--accent);
  color:#000;
}

:root {
  --bg:#0b0b0b;
  --card:#1a1a22;
  --accent:#6be6ff;
  --text:#fff;
  --danger:#ff5c5c;
  --heal:#7ef0a6;
}

body {
  background:var(--bg);
  color:var(--text);
  font-family:Arial;
  padding:12px;
  margin:0;
}

h1 {
  text-align:center;
  font-size:20px;
  margin-bottom:10px;
}

/* 🔥 STICKY TOP BAR */
.controls {
  position:sticky;
  top:0;
  background:var(--bg);
  padding:10px 0;
  z-index:10;
  display:flex;
  gap:5px;
  flex-wrap:wrap;
}

.controls select,
.controls button {
  flex:1;
}

/* DM INPUTS */
#dmControls {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:10px;
}

#dmControls input {
  flex:1 1 45%;
}

/* GENERAL INPUTS */
input, button, select {
  padding:10px;
  border-radius:8px;
  border:none;
  font-size:14px;
}

button {
  background:var(--accent);
  color:#000;
  cursor:pointer;
}

/* ENTRY CARD */
.entry {
  background:var(--card);
  padding:12px;
  margin:8px 0;
  border-radius:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.active {
  border:2px solid gold;
}

/* ROW STACKING */
.row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}

/* HP SECTION */
.hp-box {
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
}

.hp-btn {
  font-size:14px;
  padding:6px 10px;
}

.hp-minus { background:var(--danger); color:#fff; }
.hp-plus { background:var(--heal); }

.small-input {
  width:50px;
  text-align:center;
}

/* BADGE */
.badge {
  font-size:12px;
  display:block;
  margin-top:2px;
  color:#ccc;
}

/* 🎭 CONDITIONS MOBILE FRIENDLY */
.condition-bar {
  display:flex;
  overflow-x:auto;
  padding-bottom:4px;
}

.condition-btn {
  min-width:36px;
  font-size:18px;
  padding:6px;
  margin-right:4px;
  border-radius:8px;
  flex-shrink:0;
}

.condition-btn.active {
  background:var(--accent);
  color:#000;
}

/* PLAYER BUTTON */
#playerControls button {
  width:100%;
  margin-bottom:10px;
}

/* 🔥 CURRENT TURN CARD */
#currentTurnCard {
  position:sticky;
  top:60px;
  background:#111;
  padding:10px;
  border-radius:10px;
  margin-bottom:10px;
  z-index:9;
  border:1px solid #333;
}

/* 🔥 BOTTOM BAR */
#bottomBar {
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  background:#111;
  padding:10px;
  border-top:1px solid #333;
}

#bottomBar button {
  width:100%;
  padding:14px;
  font-size:16px;
}

/* prevent overlap */
body {
  padding-bottom:90px;
}

/* 📱 SMALL SCREEN TWEAKS */
@media (max-width: 480px) {

  h1 {
    font-size:18px;
  }

  .hp-box {
    justify-content:flex-start;
  }

  .row {
    flex-direction:column;
    align-items:flex-start;
  }

  .badge {
    font-size:11px;
  }

}
