
/* Encounter Manager v2                                                                           */
/* ---------------------------------------------------------------------------------------------- */

/* ===== Encounter Hub (em2_encounters.php) ===== */
body {
  font-family: "Faculty Glyphic";
}

.em2_title {
  margin-left: 10px;
  font-size: 1.15rem;
}

.em2-page-wrap {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
    font-family: "Faculty Glyphic";

}

.em2-encounter-row {
  cursor: pointer;
}

.em2-encounter-row:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.em2-code-badge {
  font-family: 'faculty glyphic';
  letter-spacing: 0.06em;
}

/* ===== DM View (em2_dm.php) ===== */



.em2-dm-sidebar-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.em2-participants-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-top: 0.35rem;
  padding-bottom: 0.75rem;
}

.em2-hpLabel {
  font-size: 0.75rem;
}

.em2-participant-row {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  margin-bottom: 10px;
}

.em2-participant-row-monster {
  border-left: 2px solid rgba(255, 0, 0, 0.4);
}

.em2-participant-row-pc {
  border-left: 2px solid rgba(0, 211, 92, 0.6);
}

.em2-participant-row-npc {
  border-left: 2px solid rgba(0, 60, 255, 0.56);
}

.em2-participant-row-ally {
  border-left: 2px solid rgba(153, 0, 255, 0.57);
}

.em2-participant-row-hazard {
  border-left: 2px solid rgba(68, 68, 68, 0.57);
}

.em2-participant-row.active {
  background: rgba(255, 255, 255, 0.149);
}

.em2-participant-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.em2-participant-padLeft {
  padding-left: 5px;
}

.em2-participant-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.em2-conditionsPanel {
  padding: 0.25rem 0.5rem 0.5rem;
}

.em2-conditionsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
}

.em2-conditionsGrid .btn {
  width: 100%;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}



/* collapsed */
.em2-participant-row .em2-participant-extra {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition:
    max-height 200ms ease,
    opacity 150ms ease,
    margin-top 200ms ease;
}

/* expanded when row is selected (has .border) */
.em2-participant-row.border .em2-participant-extra {
  max-height: 400px;   /* <- was 80px; make this large enough for heal/dmg/conditions */
  opacity: 1;
  margin-top: 4px;
}

.em2-extra-panel.em2-conditions-panel {
  max-height: 320px;    /* stays within the 260px container */
  overflow-y: auto;
  padding-right: 4px;   /* tiny breathing room for scrollbar */
}

.em2-participant-extraInner {
  padding: 4px 10px 6px 18px; /* aligns under the existing content nicely */
}


/* Extra area inside each participant row */
.em2-participant-extraInner {
  padding: 0.25rem 0.75rem 0.5rem;
  /* IMPORTANT: don’t hide the panels */
  overflow: visible;   /* override any old overflow:hidden */
}

/* Row of inline action buttons */
.em2-extra-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* Dynamic panels (init, heal, damage, conditions, etc.) */
.em2-extra-panels {
  margin-top: 0.35rem;
  max-height: 240px;   /* tall enough for the 2-column list */
  overflow-y: auto;    /* scroll instead of clipping */
}

/* Conditions grid – 2 columns on desktop, 1 on narrow */
/* 2-column condition list inside the extra panel */
.em2-conditions-panel {
  max-height: 180px;        /* fits inside your extra block */
  overflow-y: auto;         /* scroll inside panel, not outside row */
}

.em2-conditions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  width: 100%;
  padding: 2px 0;
}

.em2-cond-item {
  margin: 0;
  white-space: nowrap;
}

.em2-quickHpPanel .form-label-sm {
  font-size: 0.8rem;
}



@media (max-width: 576px) {
  .em2-conditions-grid {
    grid-template-columns: 1fr;
  }
}



.em2-hp-bar {
  position: relative;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.em2-hp-bar-fill {
  position: absolute;
  inset: 0;
  width: 50%;
  background: linear-gradient(to right, #dc3545, #ffc107);
}

.em2-top-code-badge {
  font-family: 'faculty glyphic';
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.em2-dm-footer {
  flex: 0 0 auto;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: #999;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.em2-mapHud {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
}

.em2-measureHud {
  position: absolute;
  top: 0.5rem;
  left: 18rem;
  z-index: 10;
}

.em2-toolHud {
  position: absolute;
  top: 0.5rem;
  left: 32rem;
  z-index: 10;
}

.em2-weatherHud {
  position: absolute;
  top: 3.5rem;
  left: 0.5rem;
  z-index: 10;
}

/* All HUD bars already absolutely positioned; this just marks them as draggable */
.em2-hudDraggable {
  /* you already have position:absolute on the specific HUDs */
  z-index: 10;
}

/* Drag handle button */
.em2-hudHandle {
  cursor: move;
  opacity: 0.7;
}

.em2-hudHandle i {
  pointer-events: none;
}

/* Slightly differentiate the handle if you want */
.em2-hudHandle:hover {
  opacity: 1;
}


.weather_btn {
  background-color: #490700 !important;
}
.weather_active {
  background-color: #00490d !important;
}


/* Sidebar spacing – optional but nice */
.em2-dm-sidebar-section + .em2-dm-sidebar-section {
  margin-top: 1rem;
}

/* Make the combatant list scroll within its area instead of stretching the page */
.em2-participants-wrap {
  max-height: 50vh;      /* adjust as you like; 50% of viewport is a good starting point */
  overflow-y: auto;
  padding-right: 0.25rem;
}

/* Optional: a tiny visual hint for scrollbars in dark mode if you have one */
.em2-participants-wrap::-webkit-scrollbar {
  width: 6px;
}
.em2-participants-wrap::-webkit-scrollbar-thumb {
  border-radius: 3px;
}









/* Main encounter area: fills viewport minus top bar */
.em2-dm-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #000;
  color: #cccccc;
}

.em2-dm-topbar {
  flex: 0 0 auto;
  height: 48px;
}

.em2_closeButton {
  color: #ffffff;
  background-color: #820909;
  outline: none;
  border-radius: 6px;
  padding: 0;
  width: 32px;
  height: 32px;
  border: 0;
}

.em2_btnSpacer {
  display: inline-block;
  width: 20px;
}

.em2-dm-main {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

/* Map area uses all available space */
.em2-dm-mapArea {
  position: relative;
  width: 100%;
  height: 95vh;
  background: #000; /* or var(--dg-bg-deeper) */
}

/* Canvas always fills map area */
/* All canvases share same size/position; JS will sync width/height */
#em2_mapCanvasBase,
#em2_mapCanvasWeather,
#em2_mapCanvas,
#em2_OverlayWeatherCanvas,
#em2_mapCanvasFog {
  position: absolute;
  inset: 0;       /* top:0; right:0; bottom:0; left:0; */
  display: block;
  width: 100%;
  height: 100%;
}

/* z-order: base < weather < overlay */
#em2_mapCanvasBase {
  z-index: 0;
}

#em2_mapCanvasWeather {
  z-index: 1;
  pointer-events: none;  /* weather is visual only */
}

#em2_mapCanvas {
  z-index: 2;
  /* this is the one we attach mouse events to */
}

#em2_OverlayWeatherCanvas {
  z-index: 3;
  pointer-events: none;  /* weather is visual only */
}





/* Shared dark background for the compact confirm dialog */
.em2-modal__dialog.em2-modal__dialog--confirm {
  width: 100%;
  max-width: 550px;
  min-height: 260px;
  max-height: 90vh;
  margin: 0 auto;
  height: auto;

  background-color: #222;        /* or whatever your header/footer dark is */
  color: #f8f9fa;                /* light text for contrast */
}

/* Make header/body/footer all sit on the same dark panel */
.em2-modal__dialog.em2-modal__dialog--confirm .em2-modal__header,
.em2-modal__dialog.em2-modal__dialog--confirm .em2-modal__body,
.em2-modal__dialog.em2-modal__dialog--confirm .em2-modal__footer {
  background-color: inherit;     /* use the dialog bg */
  color: inherit;
  border-color: #444;            /* subtle separators if you have borders */
}

/* Keep it centered on screen */
.em2-modal {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optional: tighten padding a bit for the compact feel */
.em2-modal__dialog.em2-modal__dialog--confirm .em2-modal__body {
  padding: 1.25rem 1.75rem 1rem;
}
.em2-modal__dialog.em2-modal__dialog--confirm .em2-modal__footer {
  padding: 0 1.75rem 1.25rem;
}









/* Sidebar */
.em2-dm-sidebar {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 415px;
  background: rgba(10, 10, 14, 0.97);
  border-left: 1px solid #444;
  padding: 0.75rem;
  overflow-y: auto;
  z-index: 20;
  transition: right 0.45s ease-out;
}

.em2-dm-root.sidebar-collapsed .em2-dm-sidebar {
  right: -415px; /* slide fully off-screen */
  pointer-events: none;
}

/* Toggle */
.em2-dm-sidebarToggle {
  position: absolute;
  top: 50px;
  right: 415px; /* hugs sidebar edge */
  transform: translateY(-50%);
  z-index: 30;
  padding: 0.25rem 0.5rem;
  border-radius: 4px 0 0 4px;
  border: 1px solid #444;
  border-right: none;
  background: rgba(20, 20, 28, 0.95);
  height: 60px;
  width: 30px;
  transition: right 0.45s ease-out;
}

.em2-dm-root.sidebar-collapsed .em2-dm-sidebarToggle {
  right: 0; /* slide to screen edge */
}






/* Optional: keep participants scrollable inside sidebar */
.em2-participants-wrap {
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.quickActionsBlock {
  margin-top: 40px;
  padding-top: 5px;
  border-top: 1px dotted #cccccc55;
}

.turnActionsBlock {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #cccccc55;
  margin-top: 15px;
}













.em2-status-banner {
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
  border-width: 2px;
  border-style: solid;
  font-size: 0.8rem;
  line-height: 1.8;
  background: rgba(0, 0, 0, 0.35);
}

.em2-status-inner {
  display: flex;
  align-items: center;
}

.em2-status-icon i {
  font-size: 0.85rem;
  margin-left: 5px;
}

/* States */
.em2-status-running {
  border-color: #19875477;       /* green */
  color: #c3f3d4aa;
}

.em2-status-map-edit {
  border-color: #ffc10777;       /* yellow/orange */
  color: #ffe58faa;
}

.em2-status-measure {
  border-color: #0dcaf077;       /* cyan/blue */
  color: #cff4fcaa;
}

.em2-placement-info {
  margin-top: 5px;
  border: 1px dotted;
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
  border-left: 3px solid #0dcaf0; /* cyan-ish */
  background: rgba(13, 202, 240, 0.218);
  color: #cff4fc;
}



/* Weather HUD: base look + makes it a containing block for the resizer */
.em2-weatherHud {
  position: absolute;
  top: 0.5rem;
  left: 39rem;
  z-index: 10;

  /* block is fine here; we don't really need flex at the container level */
  display: block;

  padding: 0.25rem 0.4rem 0.45rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.7);

  width: 280px;     /* default */
  min-width: 220px;
  max-width: 600px;

  position: absolute;
}

/* handle button at the top */
.em2-weatherHud .em2-hudHandle {
  margin-bottom: 0.25rem;
}

/* grid: width controls columns */
.em2-weatherGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(32px, auto));
  gap: 2px;
}

/* normal button-y feel, not tiles */
.em2-weatherGrid .btn {
  width: auto;
  padding: 0.2rem 0.35rem;
  border-radius: 0.25rem;
  margin: 0;
}

/* bottom-right resize handle */
.em2-weatherResizer {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 12px;
  height: 12px;

  cursor: se-resize;
  opacity: 0.6;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}

.em2-weatherResizer:hover {
  opacity: 1;
}

.em2-weatherGrid {
  display: grid;
  width: 100%;  /* <-- make grid use the HUD’s width */
  grid-template-columns: repeat(auto-fit, minmax(32px, auto));
  gap: 2px;
}

.em2-weatherGrid .btn {
  width: auto;
  padding: 0.2rem 0.35rem;
  border-radius: 0.25rem;
  margin: 0;
}

























/* === EM2 Wide Modal Overlay === */
.em2-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* fallback dim if backdrop somehow fails */
  pointer-events: auto;
}

.em2-modal.d-none {
  display: none !important;
}

.em2-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

/* Dialog */
.em2-modal__dialog {
  position: relative;
  max-width: min(960px, 100vw - 2rem);
  width: 100%;
  max-height: 90vh;
  background: var(--background);
  color: var(--text);
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* sit above backdrop */
  z-index: 1;
}

.em2-modal__dialog--wide {
  /* semantic alias – sizing is already handled above */
}

.em2-modal__header,
.em2-modal__footer {
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--background);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.em2-modal__header .btn,
.em2-modal__footer .btn {
  border-color: var(--background);
  color: var(--background);
}

.em2-modal__header .btn:hover,
.em2-modal__footer .btn:hover {
  background: var(--background);
  color: var(--primary);
}

.em2-modal__body {
  padding: 0.75rem 1rem 1rem;
  overflow-y: auto;
  max-width: 100%;
}

/* prevent weird horizontal overflow inside */
.em2-modal__body .row {
  margin-right: 0;
  margin-left: 0;
}

/* === Type selector pills === */
.em2-templateTypeBar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.em2-templateTypeBtn {
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.25);
  background: var(--background);
  color: var(--text);
  padding: 0.15rem 0.7rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}

.em2-templateTypeBtn:hover {
  border-color: var(--primary);
}

.em2-templateTypeBtn--active {
  background: var(--primary);
  color: var(--background);
  border-color: var(--primary);
}

/* === Size picker tiles === */
.em2-sizePicker-grid {
  display: grid;
  /* auto-fit keeps it from overflowing; tiles wrap gracefully */
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 0.25rem;
}

.em2-sizeTile {
  padding: 0.25rem 0.35rem 0.35rem;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    border-color 0.1s ease,
    background 0.1s ease;
}


.em2-sizeTile-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.em2_gridImageSprite {
  width: 100%;
  opacity: 0.85;
}

.em2-sizeTile-label {
  margin-top: 0.15rem;
}

.em2-sizeTile:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.em2-sizeTile--active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

/* === Template preview === */
.em2-templatePreview {
  border-radius: 0.5rem;
  border: 1px solid rgba(0,0,0,0.25);
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.em2-templatePreview-thumb {
  width: 64px;
  height: 64px;
  border-radius: 0.5rem;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), rgba(0,0,0,0.7));
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}



















/* === EM2 Wide Modal Overlay === */
.em2-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.em2-modal.d-none {
  display: none !important;
}

.em2-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

/* Dialog */
.em2-modal__dialog {
  position: relative;
  max-width: min(960px, 100vw - 2rem);
  width: 100%;
  /* fixed-ish height so it doesn't jump when fields hide/show */
  height: 80vh;
  max-height: 80vh;
  background: var(--bs-body-bg, #111);
  color: var(--bs-body-color, #f8f9fa);
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.em2-modal__header,
.em2-modal__footer {
  padding: 0.75rem 1rem;
  background: #343a40; /* or whatever "DM dark" you prefer */
  color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.em2-modal__header .btn,
.em2-modal__footer .btn {
  border-color: #f8f9fa;
  color: #f8f9fa;
}

.em2-modal__header .btn:hover,
.em2-modal__footer .btn:hover {
  background: #f8f9fa;
  color: #343a40;
}

.em2-modal__body {
  padding: 0.75rem 1rem 1rem;
  overflow-y: auto;
  max-width: 100%;
  /* make the body take the remaining height between header/footer */
  flex: 1 1 auto;
}

/* prevent row gutters from causing horizontal scroll inside the dialog */
.em2-modal__body .row {
  margin-right: 0;
  margin-left: 0;
}

/* === Type selector pills === */
.em2-templateTypeBar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.em2-templateTypeBtn {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: inherit;
  padding: 0.15rem 0.7rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}

.em2-templateTypeBtn:hover {
  border-color: #ffc107;
}

.em2-templateTypeBtn--active {
  background: #ffc107;
  color: #212529;
  border-color: #ffc107;
}

/* === Size picker tiles === */
.em2-sizePicker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 0.25rem;

}

.em2-sizeTile {
  color: inherit;
  padding: 0.25rem 0.35rem 0.35rem;
  text-align: center;
  cursor: pointer;
  border: none;
  outline: none;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    border-color 0.1s ease,
    background 0.1s ease;
}

.em2-sizeTile-img {
  width: 100%;
  aspect-ratio: 1 / 1;

  background-image: url("../media/size/grid.png");   /* replace with your path */
  background-size: contain;                    /* scale to fill the square */
  background-position: center;               /* keep centered */
  background-repeat: no-repeat;              /* no tiling */

  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.em2-sizeTile-label {
  margin-top: 0.15rem;
}

.em2-sizeTile:hover {
  border-color: #ffc107;
  transform: translateY(-1px);
}

.em2-sizeTile--active {
  border: 1px dotted #bd0000;
}

.em2-sizeTile.em2-sizeTile--active .em2-sizeTile-img {
  /* overrides when parent is active */
  background-image: url("../media/size/grid_active.png");
}



/* === Template preview === */
.em2-templatePreview {
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.em2-templatePreview-thumb {
  width: 64px;
  height: 64px;
  border-radius: 0.5rem;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), rgba(0,0,0,0.7));
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}




.em2-partPcPreview {
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
}

.em2-partPcPreview-name {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.em2-partPcPreview-stats,
.em2-partPcPreview-abilities {
  line-height: 1.3;
}















.em2-partPcPreview {
  margin-top: 0.25rem;
}

.em2-pcPreviewCard {
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
}

.em2-pcPreviewHeader {
  margin-bottom: 0.35rem;
}

.em2-pcPreviewName {
  font-weight: 600;
  font-size: 0.95rem;
}

.em2-pcPreviewMeta {
  color: rgba(255, 255, 255, 0.7);
}

.em2-pcPreviewBody {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.em2-pcPreviewTokenCol {
  flex: 0 0 140px;
  max-width: 180px;
}

.em2-pcPreviewStatsCol {
  flex: 1 1 180px;
}

.em2-pcTokenThumb {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  margin-bottom: 0.25rem;
}

.em2-pcTokenThumbImg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.em2-pcTokenThumbInitials {
  font-weight: 700;
  font-size: 1.25rem;
}

.em2-pcTokenUrlWrap {
  display: flex;
  gap: 0.25rem;
}

.em2-pcTokenUrlWrap .form-control {
  min-width: 0;
}

.em2-pcPreviewCore {
  font-size: 0.8rem;
}

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

.em2-pcAbilBox {
  border-radius: 0.5rem;
  padding: 0.25rem 0.3rem;
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
  font-size: 0.8rem;
}

.em2-pcAbilKey {
  font-weight: 600;
}

.em2-pcAbilVal {
  font-size: 0.9rem;
}

.em2-pcAbilMod {
  font-size: 0.75rem;
  opacity: 0.8;
}

.em2-pcSheet-tokenThumb {
  width: 128px;
  height: auto;
}


.em2-red {
  color: rgba(255, 128, 128, 0.445);
}

.em2-green {
  color: rgb(0, 151, 0);
}

.em2-editBtn {
  color: rgba(252, 226, 155, 0.607);
}






/* ===== Player View (em2_player.php) ===== */

.em2-player-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
  color: #f8f9fa;
}

.em2-player-top {
  flex: 0 0 auto;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.em2-player-main {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.em2-player-map {
  flex: 1 1 auto;
  position: relative;
  background: #111;
  overflow: hidden;
}

#em2_playerCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.em2-player-sidebar {
  flex: 0 0 260px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  background: #05070b;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.em2-player-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.5rem 0.75rem;
}

.em2-player-row {
  padding: 0.25rem;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.em2-player-row.active {
  background: rgba(255, 255, 255, 0.12);
}

.em2-player-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.em2-player-footer {
  flex: 0 0 auto;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: #999;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.em2-player-landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #20263a 0, #060712 60%);
}



.activeGreen {
  background-color: #027602;
}

.activeGreen:hover {
  background-color: #019901;
}

.activeRed {
  background-color: #8f0000 !important;
}

.activeRed:hover {
  background-color: #b10101 !important;
}

.em2_darkGreen {
  background-color: #027602;
}

.em2_darkGreen:hover {
  background-color: #019901;
}

.activeCyan {
  background-color: #00a2bf !important;
}

.activeCyan:hover {
  background-color: #02b6d6 !important;
}

.em2_panelInnerBorder {
  border-top: 1px dotted #ffffff44;
  margin-top: 5px;
  padding-top: 25px;
}


.em2-quickHpPanel {
  border-top: 1px dotted #ffffff44;
}

.em2_quickHpPanelTitle {
  font-weight: 300;
}

.em2_quickHpPanelSubtitle {
  text-indent: 5px;
  color: #ffffff;
  opacity: 0.55;
  font-size: 0.7rem;
  margin-top: 5px;
  margin-bottom: 10px;
}

.em2_quickFormLabel {
  font-size: 0.7rem !important;
}

.em2_quickIconButton {
  width: 48px;
  border-radius: 12px;
}