/* css/bogknight.css */
/* Frogpond Bog Knight - High-contrast palette: Pale green base, dark green typography, fluorescent combat cues */

.bk-root {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background-color: #0b1910;
  color: #eaf3ec;
}

.bk-canvas-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* UI Overlay Layer */
.bk-ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 12px 14px;
}

/* HUD Top Bars */
.bk-hud-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}

.bk-meter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bk-unit-card {
  background: rgba(14, 36, 21, 0.88);
  border: 1px solid #204d2e;
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.bk-unit-title {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a4ceae;
  margin-bottom: 4px;
}

.bk-bar-track {
  width: 100%;
  height: 7px;
  background: #0d2114;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid #1f472b;
}

.bk-bar-fill {
  height: 100%;
  width: 100%;
  border-radius: 3px;
  transform-origin: left center;
  transition: transform 90ms ease-out;
}

.bk-hp-fill-player {
  background: linear-gradient(90deg, #1fa34c, #2bf078);
}

.bk-stam-fill-player {
  background: linear-gradient(90deg, #c79e19, #fde44c);
}

.bk-hp-fill-boss {
  background: linear-gradient(90deg, #c92f2f, #ff5e5e);
}

.bk-posture-fill-boss {
  background: linear-gradient(90deg, #1b8fb5, #3ee0ff);
}

.bk-posture-danger {
  background: linear-gradient(90deg, #f26818, #ffb300) !important;
}

/* Toast Message & Stagger Banner */
.bk-banner-anchor {
  position: absolute;
  top: 76px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.bk-stagger-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffb703;
  color: #0b1910;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(255, 183, 3, 0.7);
  animation: bk-pulse-glow 0.6s infinite alternate ease-in-out;
}

@keyframes bk-pulse-glow {
  from { transform: scale(0.96); filter: brightness(1); }
  to { transform: scale(1.04); filter: brightness(1.25); }
}

/* Bottom Controls */
.bk-hud-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: auto;
  padding-bottom: 4px;
}

.bk-controls-cluster {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.bk-action-btn {
  flex: 1;
  height: 64px;
  border-radius: 14px;
  background: #14331e;
  border: 1px solid #2e6b41;
  color: #eaf3ec;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 70ms ease, background-color 70ms ease, border-color 70ms ease;
  -webkit-tap-highlight-color: transparent;
}

.bk-action-btn:active, .bk-action-btn.bk-btn-active {
  transform: translateY(2px) scale(0.98);
  background: #1f4d2e;
  border-color: #2bf078;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(43, 240, 120, 0.35);
}

.bk-btn-parry {
  border-color: #3bb267;
  background: #123d21;
}

.bk-btn-parry:active, .bk-btn-parry.bk-btn-active {
  border-color: #00ff73;
  box-shadow: 0 0 20px rgba(0, 255, 115, 0.6);
}

.bk-btn-keycap {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.7;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

/* Modals & Screens */
.bk-screen-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(7, 18, 11, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 18px;
  box-sizing: border-box;
}

.bk-card {
  width: 100%;
  max-width: 420px;
  background: #0f2617;
  border: 1px solid #2a5f39;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.bk-card-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #2bf078;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 8px rgba(43, 240, 120, 0.25);
}

.bk-card-subtitle {
  margin: 0;
  font-size: 12px;
  color: #a4ceae;
  text-align: center;
  line-height: 1.45;
}

.bk-rule-pill {
  background: #14331e;
  border: 1px dashed #306d43;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.4;
  color: #d1ebd6;
  text-align: center;
}

.bk-rule-pill b.bk-parry-cue {
  color: #ffffff;
  text-shadow: 0 0 6px #ffffff;
}

.bk-rule-pill b.bk-roll-cue {
  color: #ff5252;
  text-shadow: 0 0 6px #ff5252;
}

.bk-selector-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bk-group-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #72a880;
}

.bk-grid-select {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.bk-select-tile {
  background: #0a1b10;
  border: 1px solid #1e4529;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 120ms ease;
  position: relative;
}

.bk-select-tile:hover {
  border-color: #2e6b41;
}

.bk-select-tile.bk-active {
  border-color: #2bf078;
  background: #14351f;
  box-shadow: 0 0 14px rgba(43, 240, 120, 0.25);
}

.bk-select-tile.bk-locked {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(1);
}

.bk-tile-name {
  font-size: 12px;
  font-weight: 800;
  color: #eaf3ec;
}

.bk-tile-desc {
  font-size: 10px;
  color: #8bb796;
  line-height: 1.35;
}

.bk-weapons-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bk-weapon-chip {
  background: #0a1b10;
  border: 1px solid #1e4529;
  border-radius: 8px;
  padding: 8px 6px;
  cursor: pointer;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #c7decb;
  transition: all 100ms ease;
}

.bk-weapon-chip.bk-active {
  border-color: #2bf078;
  background: #14351f;
  color: #ffffff;
}

.bk-check-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #11281a;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #204d2d;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: #eaf3ec;
}

.bk-check-toggle input[type="checkbox"] {
  accent-color: #2bf078;
  width: 16px;
  height: 16px;
}

.bk-btn-start {
  width: 100%;
  padding: 13px 0;
  background: #204d2e;
  border: 1px solid #2bf078;
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(43, 240, 120, 0.3);
  transition: all 120ms ease;
}

.bk-btn-start:hover {
  background: #2bf078;
  color: #0b1910;
  box-shadow: 0 6px 22px rgba(43, 240, 120, 0.6);
}

.bk-badge-champion {
  background: linear-gradient(90deg, #ffd700, #ffae00);
  color: #121c0b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  align-self: center;
}

.bk-hidden {
  display: none !important;
}
