  /* rgb(from var(--background-50) r g b / 0.675) */

.pageBottomMargin {
  margin-bottom: 100px !important;
}








/* Register / Sign In                                                                             */
/* ---------------------------------------------------------------------------------------------- */


/* Container */
.auth_modal { background: transparent; border: none; }
.auth_container {
  position: relative; width: 100%; max-width: 1200px; min-height: 480px; margin: 0 auto;
  background: #1a1a1a; color: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}

/* Two forms */
.auth_form-container {
  position: absolute; top: 0; height: 100%; transition: all .6s ease-in-out; width: 50%; padding: 40px;
  display: flex; align-items: center; justify-content: center;
}
.auth_sign-in-container  { left: 0; z-index: 2; }
.auth_sign-up-container  { left: 0; opacity: 0; z-index: 1; }
.auth_container.right-panel-active .auth_sign-in-container { transform: translateX(100%); }
.auth_container.right-panel-active .auth_sign-up-container { transform: translateX(100%); opacity: 1; z-index: 5; }

.auth_form { width: 100%; max-width: 320px; text-align: center; }
.auth_form h2 { margin-bottom: 16px; }
.auth_input { margin: 10px 0; }
.auth_input input {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff;
}

/* Overlay */
.auth_overlay-container {
  position: absolute; top: 0; left: 50%; width: 50%; height: 100%; overflow: hidden;
  transition: transform .6s ease-in-out; z-index: 100;
}
.auth_container.right-panel-active .auth_overlay-container { transform: translateX(-100%); }

.auth_overlay {
  background: linear-gradient(120deg, var(--primary-500), var(--primary-700));
  background-repeat: no-repeat; background-size: cover; color: #111;
  position: relative; left: -100%; height: 100%; width: 200%; transform: translateX(0);
  transition: transform .6s ease-in-out;
}
.auth_container.right-panel-active .auth_overlay { transform: translateX(50%); }

.auth_overlay-panel {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 40px; text-align: center; top: 0; height: 100%; width: 50%;
}
.auth_overlay-left  { transform: translateX(-20%); left: 0; }
.auth_overlay-right { right: 0; transform: translateX(0); }

.auth_btn, .auth_ghost_btn {
  margin-top: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid #111; cursor: pointer; transition: .15s;
}
.auth_btn { background: var(--primary); color: #111; border-color: var(--primary); }
.auth_btn:hover { filter: brightness(.95); transform: translateY(-1px); }
.auth_ghost_btn { background: transparent; border-color: #111; color: #111; }
.auth_ghost_btn:hover { transform: translateY(-1px); }

.auth_msg { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(0,128,0,.15); border: 1px solid rgba(0,128,0,.35); }
.auth_msg.auth_error { background: rgb(from var(--danger) r g b / 0.675); border-color: var(--danger); }

.auth_alt { margin-top: 12px; font-size: .95rem; }
.auth_alt .qmLink { color: #111; text-decoration: underline; }

/* Make each half opaque so nothing shows through */
.auth_form-container {
  background: #1a1a1a;              /* same as container background */
}

/* Baseline states */
.auth_sign-in-container  { opacity: 1;  visibility: visible; pointer-events: auto; z-index: 3; }
.auth_sign-up-container  { opacity: 0;  visibility: hidden;  pointer-events: none; z-index: 2; }

/* When user clicks "Create account" (right panel active) */
.auth_container.right-panel-active .auth_sign-in-container {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2;
}

.auth_container.right-panel-active .auth_sign-up-container {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 4;
}

/* Keep the slide animation you already have */
.auth_form-container { transition: transform .6s ease-in-out, opacity .3s ease; }

.auth_overlay-panel {
  justify-content: center;   /* already there in your base, keep/ensure */
  align-items: center;       /* already there in your base, keep/ensure */
  text-align: center;        /* center text inside the panel */
}

/* Remove the lateral offset that causes the “left-hug” look */
.auth_overlay-left { transform: none !important; }

/* (Optional) symmetry for the other side */
.auth_overlay-right { transform: none !important; }

/* (Optional) keep inner content nicely centered/narrow */
.auth_overlay-panel > * { margin-inline: auto; max-width: 360px; }

.auth_pLink,
.auth_pLink:link,
.auth_pLink:visited,
.auth_pLink:hover,
.auth_pLink:active,
.auth_pLink:focus {
  color: var(--text-50);
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  top: 50px;
}

/* optional: accessible focus ring without changing color */
.auth_pLink:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(246, 201, 69, .35);
  border-radius: 4px;
}


















/* Account Settings                                                                               */
/* ---------------------------------------------------------------------------------------------- */

#account_root {  }

.account_title { 
  font-size: 1.6rem; 
  color: var(--primary);
}

.account_card {
  background: rgb(from var(--background) r g b / 0.7);
  border: 1px solid rgb(from var(--primary) r g b / .325);
  border-radius: 12px;
  padding: 16px;
  margin: 18px 0;
}

.account_card_title { 
  font-size: 1.1rem; 
  margin: 0 0 12px 0; 
  color: var(--text);
}

.account_row { 
  display: grid; 
  grid-template-columns: 180px 1fr; 
  gap: 10px; 
  align-items: center; 
  margin: 8px 0; 
}

.account_label { 
  font-weight: 400; 
  color: var(--primary);
}

.account_input, .account_file {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgb(from var(--primary) r g b / .575);
  background: rgb(from var(--primary) r g b / 0.275);
  color: inherit;
}

.account_actions { 
  display: flex; 
  gap: 10px; 
  margin-top: 10px; 
}

.account_btn {
  font-weight: 300;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--primary);
  background: rgb(from var(--primary) r g b / 0.125);
  color: var(--text);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}


.account_btn:hover:not([disabled]) {
  background: var(--primary);
  color: var(--text-50);                    /* good contrast on the gold */
}

.account_btn[disabled] { 
  opacity: .6; 
  cursor: default; 
}

.account_msg { 
  margin-top: 10px; 
  padding: 8px 10px; 
  border-radius: 8px; 
  background: rgb(from var(--success) r g b / 0.35); 
  border: 1px solid rgb(from var(--success) r g b / 0.65);  
}

.account_msg--error { 
  background: rgb(from var(--danger) r g b / 0.35); 
  border: 1px solid rgb(from var(--danger) r g b / 0.65); 
}

.account_hint { 
  font-size: .9rem; 
  opacity: .8; 
  grid-column: 2 / -1; 
}

.account_hint--ok { 
  color: #8fd18f; 
}

.account_avatar_wrap { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

.account_avatar_img {
  width: 96px; 
  height: 96px; 
  border-radius: 50%;
  object-fit: cover; 
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
}

.account_divider { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  margin: 12px 0; 
  opacity: .8; 
}

.account_divider::before, .account_divider::after { 
  content: ''; 
  height: 1px; 
  background: rgba(255,255,255,.2); 
  flex: 1; 
}

.account_divider > span { 
  font-size: .9rem; 
}


























/* Blog posts                                                                                     */
/* ---------------------------------------------------------------------------------------------- */


#blog_index { display: block;  }

.blog_item { padding: 1rem 0;  }


/* Header: title left, date right */
.blog_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.blog_title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--primary);
}
.blog_date {
  white-space: nowrap;
  opacity: 0.8;
  font-size: 0.85rem;
  color: var(--primary);
}

/* Content row: image left, text right */
.blog_row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* Thumbnail container: keep image contained and capped at 360px height */
.blog_thumb {
  flex: 0 0 320px;          /* left column width on desktop */
  max-width: 40%;
  overflow: hidden;         /* ensure nothing spills out */
  border-radius: 6px;
}
.blog_thumb_img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 360px;        /* hard cap as requested */
  object-fit: cover;        /* keep it contained, crop if needed */
}

/* Right column content */
.blog_main { 
  flex: 1 1 auto; 
  min-width: 0; 
  padding-left: 15px;
  margin-right: 5px;
  border-left: 1px solid rgb(from var(--primary) r g b / .1);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 300;
}

.blog_excerpt p { margin: 0 0 0.5rem 0; }

.blog_body img { max-width: 100%; height: auto; }
.blog_hidden { display: none; }

/* Footer: spacer on left, read more on right */
.blog_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}
.blog_footer_spacer { flex: 1; }
.blog_readmore { text-decoration: none; }

/* Pagination */
.blog_pagination { margin-top: 1rem; }
.blog_page_list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.blog_page_item {}
.blog_page_link { text-decoration: none; }
.blog_active .blog_page_link { font-weight: 700; }

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .blog_row { flex-direction: column; }
  .blog_thumb { flex: 0 0 auto; max-width: 100%; }
  .blog_thumb_img { width: 100%; height: auto; max-height: 360px; object-fit: cover; }
  .blog_header { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .blog_date { align-self: flex-start; }
}

.blog-hr {
  border-bottom: 1px dotted rgb(from var(--primary) r g b / 0.325);
}


/* ===== Blog pager buttons (right aligned) ===== */
.blog_pagination { display: flex; }
.blog_page_list {
  list-style: none;
  display: flex;
  gap: .5rem;
  margin: 0;
  padding: 0;
  margin-left: auto;              /* push to the right */
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.blog_page_item { list-style: none; }

/* Button look */
.blog_btn {
  --blog-btn-bg: #ffffff;
  --blog-btn-fg: #1f2a44;
  --blog-btn-border: #c8d1e0;
  --blog-btn-bg-hover: #f3f6fb;
  --blog-accent: var(--primary);         /* active page color */

  display: inline-block;
  padding: .4rem .8rem;
  border: 1px solid var(--blog-btn-border);
  border-radius: 999px;
  background: var(--blog-btn-bg);
  color: var(--blog-btn-fg);
  text-decoration: none;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
}
.blog_btn:hover,
.blog_btn:focus {
  background: var(--blog-btn-bg-hover);
  text-decoration: none;
  outline: none;
}

/* Active (current page) */
.blog_page_item.blog_active .blog_btn {
  background: var(--blog-accent);
  border-color: var(--blog-accent);
  color: #fff;
}

/* Optional: darker themes can override vars on a wrapper, e.g.
#blog_index { --blog-btn-bg:#0b1420; --blog-btn-fg:#e7efff; --blog-btn-border:#2b3e5c; --blog-btn-bg-hover:#122033; }
.blog_page_item.blog_active .blog_btn { --blog-accent:#1f5fa8; }
*/


































/* Magic Items                                                                                    */
/* ---------------------------------------------------------------------------------------------- */


/* -- scope to your page wrapper -- */
#magicItems{
  --bs-body-color: var(--primary);
  --bs-body-bg: var(--background);
}

#magicItems .magicItem_wrap{ color: var(--primary); }

/* Inputs */
#magicItems .magicItem_wrap .form-control,
#magicItems .magicItem_wrap .form-select{
  background: var(--soft);
  border-color: var(--border);
  color: var(--primary);
}
#magicItems .magicItem_wrap .form-control:focus,
#magicItems .magicItem_wrap .form-select:focus{
  box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--primary) 24%, transparent);
  border-color: var(--primary);
}

/* Cards / Surfaces */
#magicItems .magicItem_card{
  background: var(--background);
  border: 1px solid rgb(from var(--primary) r g b / 0.375);
  border-radius: 6px;
}

/* Buttons */
#magicItems .magicItem_wrap .btn.btn-primary{
  background: var(--primary);
  border-color: var(--primary);
  color: var(--background) !important;
}
#magicItems .magicItem_wrap .btn.btn-outline-primary{
  color: var(--primary) !important;
  border-color: var(--primary);
}
#magicItems .magicItem_wrap .btn.btn-outline-primary:hover{
  background: var(--primary);
  color: var(--background) !important;
  border-color: var(--primary);
}

/* Toolbar layout (no attunement filter) */
#magicItems .magicItem_toolbar{ display:grid; gap:.5rem .75rem; }
@media (min-width: 992px){
  #magicItems .magicItem_toolbar{
    grid-template-columns: 1fr 200px 200px 200px auto;
    grid-template-areas: "live type rarity source right";
    align-items: end;
  }
}
@media (min-width: 768px) and (max-width: 991.98px){
  #magicItems .magicItem_toolbar{
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "live live"
      "type rarity"
      "source right";
  }
}
@media (max-width: 767.98px){
  #magicItems .magicItem_toolbar{
    grid-template-columns: 1fr;
    grid-template-areas: "live" "type" "rarity" "source" "right";
  }
}
#magicItems .magicItem_area_live{ grid-area: live; }
#magicItems .magicItem_area_type{ grid-area: type; }
#magicItems .magicItem_area_rarity{ grid-area: rarity; }
#magicItems .magicItem_area_source{ grid-area: source; }
#magicItems .magicItem_area_right{ grid-area: right; display:flex; justify-content:flex-end; gap:.5rem; }

/* Accordion */
#magicItems .magicItem_acc .accordion-item{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .75rem;
  overflow: hidden;
}
#magicItems .magicItem_acc .accordion-item + .accordion-item{ margin-top:.5rem; }
#magicItems .magicItem_acc .accordion-button{
  background: var(--soft);
  color: var(--primary);
  border: none;
  box-shadow: none;
  padding: .75rem 1rem;
  transition: none; /* instant header tap */
}
#magicItems .magicItem_acc .accordion-button::after{ display:none !important; }
#magicItems .magicItem_acc .accordion-button:focus{ box-shadow: inset 0 0 0 1px var(--border); }
#magicItems .magicItem_acc .accordion-body{
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--primary);
}
/* Faster collapse */
#magicItems .collapsing{ transition: height .12s ease; }

/* Badges */
#magicItems .magicItem_badge{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.15rem .5rem;
  border:1px solid var(--border);
  background: var(--soft);
  color: var(--primary);
  border-radius: 999px;
  font-size:.8rem;
}
#magicItems .magicItem_badge i{ opacity:.9; }

.attunementBadge {
  background-color: #477fe7 !important;
  font-weight: 300 !important;
  font-size: 0.65rem !important;
}

/* Summary + Pager */
#magicItems .magicItem_summary{ opacity:.85; }
#magicItems .magicItem_pager{ display:flex; align-items:center; gap:.5rem; }
#magicItems .magicItem_pager .btn{ min-width: 2.5rem; }

.magicItem_badge{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.15rem .5rem;
  border:1px solid var(--border, rgba(255,255,255,.2));
  background: var(--soft, rgba(255,255,255,.06));
  color: var(--primary, #e6edf3);
  border-radius:5px !important;   /* per your request */
  font-size:.8rem;
  line-height:1.2;
  vertical-align:middle;
}
.magicItem_badge i{ opacity:.9; }


/* Hover (optional, for consistency) */
.magicItem_sort.btn-outline-primary:hover{
  background-color: transparent;
  color: #fff;
  border-color: var(--primary);
}

/* Active states */
.magicItem_sort.btn-outline-primary.active,
.magicItem_sort.btn-outline-primary:active,
.btn-check:checked + .magicItem_sort.btn-outline-primary,
.magicItem_sort.btn-outline-primary.dropdown-toggle.show{
  background-color: transparent;
  color: #fff;
  border-color: var(--primary);
}

  #magicItem_results .accordion-item{
    /* Works on Bootstrap 5 (uses vars if available, else our explicit rules below) */
    --bs-accordion-btn-padding-y: .45rem;
    --bs-accordion-btn-padding-x: .75rem;
    --bs-accordion-btn-icon-width: .8rem;
  }

  #magicItem_results .accordion-button{
    padding: var(--bs-accordion-btn-padding-y, .35rem) var(--bs-accordion-btn-padding-x, .75rem);
    min-height: 0;                 /* let content define height */
    line-height: 1.5;             /* tighter line height */
    font-size: .92rem;             /* slightly smaller text */
    border-bottom: 1px dotted rgb(from var(--primary) r g b / 0.35)
  }

  #magicItems .magicItem_head_row{
  display:grid;
  grid-template-columns: 1fr 180px 140px 160px 110px; /* Name grows; others fixed */
  gap:.75rem;
  align-items:center;
}
@media (max-width: 991.98px){
  #magicItems .magicItem_head_row{
    grid-template-columns: 1fr 150px 120px 120px 90px;
    gap:.5rem;
  }
}
@media (max-width: 575.98px){
  /* Stack secondaries on narrow screens */
  #magicItems .magicItem_head_row{
    grid-template-columns: 1fr;
  }
}

/* Compact header (you already started this; these finish the “no seam” feel) */
#magicItems #magicItem_results .accordion-item{
  --bs-accordion-btn-padding-y: .45rem;
  --bs-accordion-btn-padding-x: .75rem;
  --bs-accordion-btn-icon-width: .8rem;
}
#magicItems #magicItem_results .accordion-button{
  padding: var(--bs-accordion-btn-padding-y, .35rem) var(--bs-accordion-btn-padding-x, .75rem);
  min-height: 0;
  line-height: 1;
  font-size: .92rem;
  border-bottom: 1px dotted rgb(from var(--primary) r g b / 0.35);
}
#magicItems #magicItem_results .accordion-button:focus{ box-shadow:none; }
#magicItems #magicItem_results .accordion-button:not(.collapsed){ box-shadow:none; }
#magicItems #magicItem_results .accordion-collapse{ border-top:0; }

/* Detail “card” surface inside body (mirrors potions) */
#magicItems .magicItem_detail{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius:.75rem;
}

/* Speed up collapse (you already have a global; keep here scoped too) */
#magicItems .collapsing{ transition: height .12s ease; }
#magicItems .magicItem_acc .accordion-item + .accordion-item{ margin-top:0; }


.magic_accordionItemPane {
  background-color: #fff !important;
  border-radius: 0px !important;
}

.magicItem_accordionHeader {
  line-height: 1rem !important;
  max-height: 34px;
  padding: 0 !important;
  border-bottom: 1px dotted rgb(from var(--primary) r g b / .475);
}

.mi_accordionTitle {
  color:var(--primary); 
  font-weight:400;
  font-size: 0.8rem !important;
}

.mi_accordionBody {
  color: var(--text);
  font-size: 0.85rem;
  padding-bottom: 25px;
}










































/* Potions                                                                                        */
/* ---------------------------------------------------------------------------------------------- */

/* ===== Potions — Header Layout Cleanup ===== */

#potion_app {
  color: var(--primary);
  background-color: var(--background);
  border-radius: 7px;
}

.potion_badge {
  color: var(--primary);
  font-weight: 300;
  font-size: 0.8rem;
  margin-right: 10px;
}

.potion_badge i {
  font-size: 0.675rem;
}

/* Cards / Controls look */
#potion_app .potion_card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

/* Inputs on dark theme */
#potion_app .form-control,
#potion_app .form-select{
  background: var(--soft);
  border-color: var(--border);
  color: var(--primary);
}
#potion_app .form-control:focus,
#potion_app .form-select:focus{
  box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--primary) 24%, transparent);
  border-color: var(--primary);
}

/* Primary & outline button text colors (per your scheme) */
#potion_app .btn.btn-primary{
  background: var(--primary);
  border-color: var(--primary);
  color: var(--background) !important;
}
#potion_app .btn.btn-outline-primary{
  color: var(--primary) !important;
  border-color: var(--primary);
}
#potion_app .btn.btn-outline-primary:hover{
  background: var(--primary);
  color: var(--background) !important;
  border-color: var(--primary);
}

/* ---------- Filters Toolbar Grid ---------- */
#potion_app .potion_toolbar{ display:grid; gap:.75rem; align-items:end; }

/* ≥992px: live | itemtype | category | rounding (right) */
@media (min-width: 992px){
  #potion_app .potion_toolbar{
    grid-template-columns: 1fr 220px 220px auto;
    grid-template-areas: "live itemtype category round";
  }
}
/* 768–991px: live full row, then itemtype | category, then rounding right */
@media (min-width:768px) and (max-width:991.98px){
  #potion_app .potion_toolbar{
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "live live"
      "itemtype category"
      "round round";
  }
}
/* <768px: stacked */
@media (max-width:767.98px){
  #potion_app .potion_toolbar{
    grid-template-columns: 1fr;
    grid-template-areas: "live" "itemtype" "category" "round";
  }
}

#potion_app .potion_area_live{ grid-area: live; }
#potion_app .potion_area_itemtype{ grid-area: itemtype; }
#potion_app .potion_area_category{ grid-area: category; }
#potion_app .potion_area_round{ 
  grid-area: round; 
  display:flex; 
  justify-content:flex-end; 
}

/* Input-group clear button height match */
#potion_app .potion_input_group .btn{ white-space:nowrap; }

/* ---------- Actions Row Grid ---------- */
/* Three logical zones: Left (Refresh/Reset), Center (List/Card + Export), Right (Mode + Slider) */

#potion_app .potion_actions{
  display:grid; gap:.75rem; align-items:center;
}

/* ≥1200px gives a bit more breathing room */
@media (min-width: 1200px){
  #potion_app .potion_actions{
    grid-template-columns: 1fr auto 360px;
    grid-template-areas: "left center right";
  }
}
/* 992–1199px */
@media (min-width: 992px) and (max-width:1199.98px){
  #potion_app .potion_actions{
    grid-template-columns: 1fr auto 320px;
    grid-template-areas: "left center right";
  }
}
/* 768–991px: left & center on first row, right on its own aligned right */
@media (min-width:768px) and (max-width:991.98px){
  #potion_app .potion_actions{
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "left center"
      "right right";
  }
}
/* <768px: stacked */
@media (max-width:767.98px){
  #potion_app .potion_actions{
    grid-template-columns: 1fr;
    grid-template-areas: "left" "center" "right";
  }
}

#potion_app .potion_actions_left{ grid-area:left; display:flex; gap:.5rem; flex-wrap:wrap; }
#potion_app .potion_actions_center{ grid-area:center; display:flex; justify-content:center; gap:.5rem; flex-wrap:wrap; }
#potion_app .potion_actions_right{ grid-area:right; display:flex; justify-content:flex-end; gap:.75rem; align-items:end; flex-wrap:wrap; }

/* Mode group block + slider column */
#potion_app .potion_modeblock{ display:flex; gap:.5rem; align-items:center; }
#potion_app .potion_random_col{
  min-width: 240px;
}
#potion_app #potion_random_wrap{
  display:none;           /* toggled by JS */
}
#potion_app #potion_random_wrap .form-label{
  margin-bottom:.25rem; 
}

/* ---------- Summary, Sort & Pager ---------- */
#potion_app .potion_summary{ opacity:.85; }

/* Pager flex — stays tidy on wrap */
#potion_app .potion_pager{
  display:flex; align-items:center; gap:.5rem; flex-wrap:wrap;
}
#potion_app .potion_pager .btn{ min-width:2.5rem; }
#potion_app .potion_pageinfo{ opacity:.85; }

/* Page-size select compact */
#potion_app .potion_pagesize{ width:auto; }

#potion_results .card{
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  background-color: var(--background);
  color: var(--text-900);
}
#potion_results .card-title{
  color: var(--primary);
  font-weight: 600;
}
#potion_results .potion_badge{
  display:inline-block;
  padding:.15rem .45rem;
  border-radius:.5rem;
  background: rgb(from var(--btn_info) r g b / .2);
  border: 1px solid var(--btn_info-accent);
  font-size:.8rem;
  font-weight:500;
  color: var(--text-900);
}

  #potion_app .potion_actions.equal-columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .75rem;
  }
  /* Clickable list rows */
  #potion_app .potion-list-row { cursor: pointer; }
  #potion_app .potion-detail { background: var(--surface); border:1px solid var(--border); border-radius:.75rem; }

#potion_app .potion_actions.equal-columns {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: .75rem;
}
/* Clickable list rows */
#potion_app .potion-list-row { cursor: pointer; }
#potion_app .potion-detail { background: var(--surface); border:1px solid var(--border); border-radius:.75rem; }


/* Active/selected button styles */
#potion_app .btn-check:checked + .btn-outline-primary{
background: var(--primary);
color: var(--background) !important;
border-color: var(--primary);
}
#potion_app .btn.btn-outline-primary.active,
#potion_app .btn.btn-outline-primary:active{
background: var(--primary);
color: var(--background) !important;
border-color: var(--primary);
}


  #potion_results .potion-acc{
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms ease;
    will-change: max-height;
  }

 #potion_results .potion-acc {
    overflow: hidden;
  }

  /* Column headers (desktop) and row header layout */
  #potion_results .potion_list_header,
  #potion_results .potion_head_row {
    display: grid;
    grid-template-columns: 1fr 200px 200px 140px;
    gap: .5rem;
    align-items: center;
  }
  @media (max-width: 991.98px){
    #potion_results .potion_list_header { display:none; }
    #potion_results .potion_head_row { grid-template-columns: 1fr; }
  }
  /* Tidy accordion look */
  #potion_results .accordion-item { border: 1px solid var(--border); border-radius: .5rem; overflow: hidden; }
  #potion_results .accordion-item + .accordion-item { margin-top: .5rem; }
  #potion_results .accordion-button { background: var(--surface); color: var(--primary); }
  #potion_results .accordion-button:not(.collapsed) { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }

#potion_results .accordion-item + .accordion-item{
    margin-top: 0;        /* kill vertical gap */
    border-top: 0;        /* avoid double border seam */
  }
  /* Optional: square middle items, keep rounding only on ends */
  #potion_results .accordion-item{ border-radius: 0; }
  #potion_results .accordion-item:first-child{ border-top-left-radius:.5rem; border-top-right-radius:.5rem; }
  #potion_results .accordion-item:last-child{ border-bottom-left-radius:.5rem; border-bottom-right-radius:.5rem; }

  #potion_app .potion_modebar { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
  @media (min-width: 768px){
    #potion_app .potion_modebar { flex-wrap: nowrap; }
  }
  /* Make the count select compact inline */
  #potion_app #potion_random_inline .form-select { width:auto; min-width:84px; }

#potion_results .accordion-item{
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-bg: var(--surface);
    --bs-accordion-border-color: var(--border);
  }
  #potion_results .accordion-button:focus{ box-shadow: none !important; }
  #potion_results .accordion-button:not(.collapsed){ box-shadow: none !important; } /* removes the inset bottom line */
  #potion_results .accordion-collapse{ border-top: 0 !important; } /* no seam above body */

  .potion_head_row  {
    font-size: 0.85rem;
    color: var(--primary);
  }



  .potion_headerText {
    transform: translateX(-50px);
  }

  #potion_results .accordion-item{
    /* Works on Bootstrap 5 (uses vars if available, else our explicit rules below) */
    --bs-accordion-btn-padding-y: .45rem;
    --bs-accordion-btn-padding-x: .75rem;
    --bs-accordion-btn-icon-width: .8rem;
  }

  #potion_results .accordion-button{
    padding: var(--bs-accordion-btn-padding-y, .35rem) var(--bs-accordion-btn-padding-x, .75rem);
    min-height: 0;                 /* let content define height */
    line-height: 1.5;             /* tighter line height */
    font-size: .92rem;             /* slightly smaller text */
    border-bottom: 1px dotted rgb(from var(--primary) r g b / 0.35)
  }

  /* Make the caret smaller on older Bootstrap too */
  #potion_results .accordion-button::after{
    background-size: .65rem .65rem;  /* shrink the chevron */
    margin-left: 10px;
  }

  /* Tighter grid inside the header row */
  #potion_results .potion_head_row{
    gap: .5rem;
    align-items: center;
  }
  #potion_results .potion_head_row .potion_detailItem{
    font-size: .88rem;             /* compact secondary columns */
  }

  /* Optional: even tighter on wide screens; comment out if you don't want this */
  @media (min-width: 992px){
    #potion_results .accordion-button{
      padding: .30rem .65rem;
      font-size: .9rem;
    }
  }

  .potion_detailItem {
    font-size: 0.75rem !important;
    text-transform: capitalize;
    color: var(--text);
  }

.potion_capitalize{
  text-transform: capitalize;
}

.potion_longDesc {
  color: var(--text);
  font-size: 0.75rem;
}

.potion_cardTitle {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 300;
}

















/* Spellbook                                                                                        */
/* ---------------------------------------------------------------------------------------------- */

#spellList {

/* ===== spellBook table view (prefixed .spell_) ===== */

.spell_cardPage .card-body { padding: 1rem; }

/* Toolbar */
.spell_filters .form-label.small { font-weight: 600; }



/* Body container */
.spell_tableBody { margin-top: .25rem; }

/* Each row wrapper (header + detail collapse) */
.spell_rowWrap { border-bottom: 1px solid var(--bs-border-color); }

/* Header grid for each spell (≥ md shows columns, < md collapses to single-left stack + toggle) */
.spell_tableRow {
  display: grid;
  grid-template-columns: 2fr .8fr 1fr 1.6fr 1fr .8fr .8fr .8fr;
  gap: .25rem;
  padding: .5rem .5rem;
}
.spell_tableRow:hover { background: rgba(255,255,255,.02); }


/* Toggle button chevron rotate */
.spell_btnToggle[aria-expanded="true"] i { transform: rotate(180deg); transition: transform .12s ease; }
.spell_btnToggle i { transition: transform .12s ease; }

/* Badges */
.spell_badge {
  background: rgba(255, 193, 7, .12);
  border: 1px solid rgba(255, 193, 7, .35);
  color: var(--bs-body-color);
}


/* Detail area */
.spell_rowDetail { padding: .25rem .5rem .7rem; }
.spell_detailQuick > div { margin-bottom: .25rem; }
.spell_detailDesc { line-height: 1.5; }

/* Loader overlay */
.spell_loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(1px);
  border-radius: .5rem;
  font-weight: 600;
}
.spell_loader.show { display: flex; }

/* ===== Responsive ===== */

/* md (<768px): hide table header; row grid collapses to [name | toggle]; others move into the compact line already placed in .spell_cellName */
@media (max-width: 767.98px){
  .spell_tableHeader { display: none !important; }
  .spell_tableRow { 
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .spell_cellLevel,
  .spell_cellSchool,
  .spell_cellClasses,
  .spell_cellTime,
  .spell_cellRange,
  .spell_cellSource { display: none !important; }
}

/* lg (<1200px and ≥768px): slightly tighter columns */
@media (min-width: 768px) and (max-width: 1199.98px){
  .spell_tableHeader,
  .spell_tableRow {
    grid-template-columns: 2fr .7fr 1fr 1.4fr .9fr .8fr .8fr .7fr;
  }
}

.spell_rowHeader { cursor: pointer; }
.spell_rowHeader:focus-visible {
  outline: 2px solid var(--bs-warning);
  outline-offset: 2px;
}

/* Ensure source shows the abbreviation "phb 24" cleanly */
.spell_cellSource { text-transform: none; }


.spell_tableRow {
  display: grid;
  grid-template-columns: auto 2fr .8fr 1fr 1.6fr .8fr; /* matches header */
  gap: .75rem;
  padding: .5rem .5rem;
}

.spell_cellToggle { display:flex; align-items:center; justify-content:center; }

/* mobile: toggle left, name right; other columns hidden via d-md-none */
@media (max-width: 767.98px){
  .spell_tableHeader { display: none !important; }
  .spell_tableRow { grid-template-columns: auto 1fr; } /* [toggle] [name] */
  /* the removed columns are already hidden on mobile by d-md-none */
}

.spell_tableHeader,
.spell_tableRow {
  display: grid;
  grid-template-columns: auto clamp(240px, 32vw, 420px) .8fr 1fr 1.6fr .9fr;
  gap: .75rem;
}

.spell_tableHeader {
  font-size: .85rem;
  font-weight: 400;
  color: var(--primary);
  border-bottom: 1px solid var(--bs-border-color);
}



/* Toggle: flush left */
.spell_cellToggle { display:flex; align-items:center; justify-content:flex-start; }

/* Name column: avoid collapsing to a few pixels on wide tables */
.spell_cellName { min-width: 150px; }

/* Alignments */
.spell_cellLevel, .spell_cellSchool { text-align: left; }
.spell_cellClasses, .spell_cellSource { text-align: right; }

/* Mobile: only [toggle][name]; others hidden via d-md-none */
@media (max-width: 767.98px){
  .spell_tableHeader { display: none !important; }
  .spell_tableRow { grid-template-columns: auto 1fr; }
  .spell_cellName { min-width: 0; } /* allow name to shrink on small screens */
}

.spell_classBadgesMobile .spell_badgeClass {
  font-size: .8rem;
  padding: .15rem .45rem;
}

@media print{
  #spell_filters, .spell_pager, .btn-group[aria-label="View mode"] { display: none !important; }
  .spell_card { break-inside: avoid; page-break-inside: avoid; }
  /* Ensure the visible view prints cleanly */
  #spell_tableHeader.d-none, #spell_results.d-none, #spell_cards_results.d-none { display: none !important; }
}



#spell_print_root { display: none; }

/* When printing, show only the print root; hide the app UI entirely */
@media print {
  body * { visibility: hidden !important; }
  #spell_print_root, #spell_print_root * {
    visibility: visible !important;
  }
  #spell_print_root {
    display: block !important;
    position: static !important;
    inset: auto !important;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  /* Cards grid: 3-up, no cut-offs */
  #spell_print_root.spell_print_mode_cards {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 12pt;
  }
  #spell_print_root.spell_print_mode_cards .spell_print_card {
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
  }
  /* Spellbook list: avoid splitting a spell block */
  #spell_print_root.spell_print_mode_book .spell_print_block {
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 12pt;
  }
}

/* Spell Cards: put class badges on their own line */
.spell_cardClassLine{
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .35rem;
}
.spell_cardClassLine .spell_badgeClass{ margin: 0; }

/* Small tightening for the top badges row */
.spell_cardBadgesTop .spell_badge{ margin-bottom: .25rem; }



.spell_levelsMenu{
  min-width: 260px;
  max-width: 320px;
}
.form-check.form-check-sm .form-check-input{
  width: 0.95em; height: 0.95em; margin-top: .2rem;
}
.form-check.form-check-sm .form-check-label{
  font-size: .9rem;
}

#spellBookSwitchButtons{
  --active-bg: var(--bs-danger);
  --active-border: var(--bs-danger);
  --active-color: #fff;
}

#spellBookSwitchButtons #spell_view_book:checked + label.btn {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-100);
}

#spellBookSwitchButtons #spell_view_book + label.btn {
  background-color: rgb(from var(--primary) r g b / 0.25);
  border-color: var(--primary);
  color: var(--primary);
}

#spellBookSwitchButtons #spell_view_cards:checked + label.btn {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-100);
}

#spellBookSwitchButtons #spell_view_cards + label.btn {
  background-color: rgb rgb(from var(--primary) r g b / 0.25);
  border-color: var(--primary);
  color: var(--primary);
}

#spellBookSwitchButtons .btn-outline-secondary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 300;
}

#spellBookSwitchButtons .btn-outline-secondary:hover {
  color: var(--text-100);
  border-color: var(--primary);
  background-color: rgb(from var(--primary) r g b / 0.65);
  font-weight: 300;
}

.spellToolbar {
  color: var(--primary);
  font-weight: 300;
}

.spell_wrap {
  --gap: .6rem;

  /* md default (≥768px) */
  --cols: 
    /* [0] toggle  */ auto
    /* [1] name    */ clamp(150px, 32vw, 480px)
    /* [2] level   */ max-content
    /* [3] school  */ max-content
    /* [4] classes */ minmax(180px, 1.2fr)
    /* [5] source  */ max-content;
}

/* lg (≥1200px): give name & classes more room so badges don’t fall off */
@media (min-width: 1200px){
  .spell_wrap {
    --cols: 
      auto
      clamp(260px, 34vw, 560px)
      max-content
      max-content
      minmax(220px, 1.4fr)
      max-content;
  }
}


.spell_tableRow {
  padding: .5rem .5rem;
}
.spell_tableRow:hover { background: rgba(255,255,255,.02); }

/* Toggle column: flush left */
.spell_cellToggle { display:flex; align-items:center; justify-content:flex-start; }

/* Name column: never collapse to ultra-narrow; clamp to 2 lines */
.spell_cellName { 
  min-width: 200px; 
  overflow: hidden; 
}
.spell_rowTitle {
  font-weight: 600;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;         /* allow up to 2 lines before truncation */
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;         /* break long words if needed */
}

/* Keep these readable & compact */
.spell_cellLevel,
.spell_cellSchool { 
  text-align: left; 
  white-space: nowrap;            /* "Cantrip", "Level 3" stays in one piece */
}
.spell_cellSource { 
  text-align: right; 
  white-space: nowrap;            /* "phb 24" never wraps */
}

/* Classes: allow wrapping but keep right-aligned; limit extreme growth */
.spell_cellClasses { 
  text-align: right;
  overflow: hidden;
  /* prefer wrap instead of forcing scroll */
  white-space: normal;
}

/* Badges spacing */
.spell_badge { 
  background: rgba(255, 193, 7, .12);
  border: 1px solid rgba(255, 193, 7, .35);
  color: var(--bs-body-color);
}
.spell_badgeClass { margin: 0 .25rem .25rem 0; }

/* Row wrapper + details */
.spell_rowWrap { border-bottom: 1px solid var(--bs-border-color); }
.spell_rowDetail { padding: .25rem .5rem .7rem; }

/* Mobile (<768px): collapse to [toggle | name]; rest moves into the mobile line under name */
@media (max-width: 767.98px){
  .spell_tableHeader { display: none !important; }
  .spell_tableRow { grid-template-columns: auto 1fr; }
  .spell_cellName { min-width: 0; } /* let it flex */
  .spell_cellLevel,
  .spell_cellSchool,
  .spell_cellClasses,
  .spell_cellSource { display: none !important; }
}

/* Slight squeeze for mid-range widths to keep everything visible longer */
@media (min-width: 768px) and (max-width: 991.98px){
  .spell_wrap { 
    --gap: .5rem;
    --cols:
      auto
      clamp(220px, 38vw, 420px)
      max-content
      max-content
      minmax(160px, 1fr)
      max-content;
  }
}

/* Accessibility & misc */
.spell_rowHeader { cursor: pointer; }
.spell_rowHeader:focus-visible {
  outline: 2px solid var(--bs-warning);
  outline-offset: 2px;
}
.spell_btnToggle[aria-expanded="true"] i { transform: rotate(180deg); transition: transform .12s ease; }
.spell_btnToggle i { transition: transform .12s ease; }

#spell_levels_btn.btn.btn-outline-primary{
  /* your theme vars with Bootstrap fallbacks */
  --btn-base-color:  var(--primary);
  --btn-base-border: var(--primary, var(--bs-primary));
  --btn-active-bg:   var(--primary);      /* pick your red or var(--bs-danger) */
  --btn-active-color: var(--text-100);

  /* Bootstrap button variables */
  --bs-btn-color:              var(--btn-base-color);
  --bs-btn-border-color:       var(--btn-base-border);
  --bs-btn-hover-color:        var(--btn-active-color);
  --bs-btn-hover-bg:           var(--btn-active-bg);
  --bs-btn-hover-border-color: var(--btn-active-bg);
  --bs-btn-active-color:       var(--btn-active-color);
  --bs-btn-active-bg:          var(--btn-active-bg);
  --bs-btn-active-border-color:var(--btn-active-bg);
  --bs-btn-disabled-color:     var(--btn-base-color);
  --bs-btn-disabled-bg:        transparent;
  --bs-btn-disabled-border-color: var(--btn-base-border);
}

/* When the dropdown is open, force the active look */
#spell_levels_btn[aria-expanded="true"]{
  background-color: var(--btn-active-bg);
  color: var(--btn-active-color);
  border-color: var(--btn-active-bg);
}

.spell_badgeSchool {
  color: var(--primary);
  background-color: rgb(from var(--primary) r g b / .2);
  border-color: rgb(from var(--primary) r g b / .65);
  border-radius: 7px !important;
  font-weight: 300;
  font-size: .7rem;
  padding-left: 10px;
  padding-right: 10px;
  line-height: 1.15;
  height: 1.5rem;
}

.spell_badgeLevel {
  color: var(--primary);
  background-color: transparent;
  border-color: rgb(from var(--primary) r g b / .65);
  font-weight: 300;
  font-size: .7rem;
  border-radius: 7px !important;
  padding-left: 10px;
  padding-right: 10px;
  line-height: 1.15;
  height: 1.5rem;
}

.spell_badgeClass {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  width: 100px;
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--text-700) !important;
  background-color: rgb(from var(--primary) r g b / 0.1) !important;
  border-color: rgb(from var(--primary) r g b / .35) !important;
  border-radius: 7px !important;

}
.spell_badgeClass .spell_classIcon {
  width: 1.5em;   /* scales with text */
  height: 1.5em;
  flex: 0 0 auto;
  vertical-align: -0.15em;
  color: var(--primary);
}

.spell_cellSource  {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 300;
}

/* Name block */
.spell_rowTitle { 
  color: var(--text-700);
  font-weight: 500; 
  line-height: 1.15; 
  word-break: break-word; 
  text-transform: capitalize;
}

.spell_title {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.2rem;
}

.spell_badgeFlag {
  background: rgb(from var(--warning) r g b / .375);
  border-color: rgb(from var(--warning) r g b / 0.675);
  color: var(--text);
  font-weight: 300;
  border-radius: 7px !important;
}

.alert-warning {
  margin-top: 15px !important;
  background-color:   rgb(from var(--warning) r g b / .375);
  border-color: rgb(from var(--warning) r g b / 0.675);
  color: var(--text);
  font-weight: 300;
}

.alert-warning i {
  color: var(--danger);
  font-size: 1.1rem;
}

.spell_detailQuick div>i {
  color: var(--primary);
}

.spell_detailQuick div>strong {
  color: var(--primary);
}

.spell_detailQuick div {
  color: var(--text);
}

.spell_detailDesc {
  color: var(--text);
  margin-right: 50px;
  margin-top: 25px !important;

}

.spell_detailBox {
  margin-left: 50px;
  margin-top: 10px;
}

.spell_meta dt{
  font-weight:500;
  color: var(--primary);
}
.spell_meta dd{
  margin-bottom:.25rem;
  margin-left: 25px;
  color: var(--text);
}

.spell_desc {
  color: var(--primary);
}

.spell_pager_top .btn-outline-primary {
    border-color: rgb(from var(--primary) r g b / 0.35);
    color: var(--primary);
}

.spell_pager_top .btn-outline-primary:hover {
    border-color: rgb(from var(--primary) r g b / 0.65);
    border-color: var(--primary);
    background-color: rgb(from var(--primary) r g b / 0.85);
    color: var(--text-50);
}

.spell_pager_bottom .btn-outline-primary {
    border-color: rgb(from var(--primary) r g b / 0.35);
    color: var(--primary);
}

.spell_pager_bottom .btn-outline-primary:hover {
    border-color: rgb(from var(--primary) r g b / 0.65);
    border-color: var(--primary);
    background-color: rgb(from var(--primary) r g b / 0.85);
    color: var(--text-50);
}

#collapseBtnBar {
  .btn-outline-primary {
    border-color: rgb(from var(--primary) r g b / 0.35);
    color: var(--primary);
  }

  .btn-outline-primary:hover {
      border-color: rgb(from var(--primary) r g b / 0.65);
      border-color: var(--primary);
      background-color: rgb(from var(--primary) r g b / 0.85);
      color: var(--text-50);
  }
}

.spellTableRow {
  /* background-color: rgb(from var(--primary) r g b / 0.15); */
  border-bottom: 1px dotted rgb(from var(--primary) r g b / .375);
  padding-bottom: 4px;
  padding-top: 3px;
  
}

.spellTableRow-last {
  /* background-color: rgb(from var(--primary) r g b / 0.15); */
  padding-top: 7px;
  
}


/* ends spellList block */
} 






















/* Bookshelf                                                                                        */
/* ---------------------------------------------------------------------------------------------- */


.rndBooks_controls .form-group { margin-right: 24px; margin-bottom: 10px; }

#rndBooks_filtersBox .form-group select { min-width: 200px; }
#rndBooks_filtersBox .form-group select[size] { height: auto; }

.rndBooks_sliderValues { font-size: .9rem; color: #6c757d; }

/* Result cards */
.rndBooks_card + .rndBooks_card { margin-top: 12px; }
.rndBooks_card .rndBooks_ribbons .badge { margin-left: 6px; }
.rndBooks_valueLine { font-weight: 600; }
.rndBooks_card details summary { cursor: pointer; }

/* Sentience highlight */
.rndBooks_badgeSentient {
  display: inline-block;
  padding: 5px !important;
  border-radius: 5px !important;
  background: #f3e6ff;
  color: #6f42c1;
  border: 1px solid #e0c8ff;
  font-size: .85rem;
  margin-left: 6px;
}

/* Simple helper */
.rndBooks_hidden { display: none !important; }

/* Meta counters */
.rndBooks_metaCounters { font-size: .95rem; color: #6c757d; }
.rndBooks_metaCounters .rndBooks_sep { margin: 0 6px; color: #adb5bd; }

/* Random Books UI — all selectors prefixed with rndBooks_ */
.rndBooks_wrap { background-color: var(--background); border: 1px solid rgb(from var(--primary) r g b / .275); border-radius: 10px; margin: 12px auto;}

/* Toolbar row */
.rndBooks_controls .form-group { margin-bottom: .75rem; margin-top: 100px;}
.rndBooks_toolbarRow { align-items: flex-end; }
.rndBooks_toolbarRight { margin-left: auto; display: flex; align-items: center; gap: 12px; }

#rndBooks_minGp, #rndBooks_maxGp { width: 140px; }
.rndBooks_sliderValues { font-size: .9rem; color: #6c757d; min-width: 160px; }

/* Filter row (3 equal columns) */
#rndBooks_filtersBox { margin-top: .5rem; }
#rndBooks_filtersBox .form-group select { min-height: 220px; }
#rndBooks_filtersBox .form-group label { font-weight: 600; }

/* Accordion cards */
#rndBooks_accordion .rndBooks_card { border: 0; border-bottom: 1px dotted var(--primary); border-radius: 0; }
.rndBooks_card:last-child { border-bottom: 1px dotted var(--primary); }

/* Clickable header */
.rndBooks_accHeader { background: transparent; padding: 0; }
.rndBooks_accToggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: .85rem 0;
  text-decoration: none !important; color: inherit;
}
.rndBooks_accToggle:hover { text-decoration: none; color: inherit; }

/* Header content */
.rndBooks_hTitle { 
  font-weight: 400; 
  color: var(--primary);
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}

.rndBooks_hMeta .fa, .rndBooks_hMeta .fas { opacity: .7; margin-right: 6px; }

/* Body */
.rndBooks_body { padding: .25rem 0 1rem 0; }
.rndBooks_valueLine { font-weight: 600; }

/* Sentience badge (shown in body) */
.rndBooks_badgeSentient {
  display: inline-block; padding: 2px 6px; border-radius: 999px;
  background: #f3e6ff; color: #6f42c1; border: 1px solid #e0c8ff; font-size: .85rem;
}

/* Helpers */
.rndBooks_hidden { display: none !important; }

/* Meta counters */
.rndBooks_metaCounters { font-size: .95rem; color: #6c757d; }
.rndBooks_metaCounters .rndBooks_sep { margin: 0 6px; color: #adb5bd; }
/* Container card for results */
.rndBooks_resultsCard { border: 0; }
.rndBooks_resultsCard .card-body { padding: 0; }

/* Keep bottom divider look for each book row */
#rndBooks_accordion .rndBooks_card { border: 0; border-bottom: 1pt dotted var(--primary); border-radius: 0; }
.rndBooks_accHeader { background: transparent; padding: 0; }
.rndBooks_accToggle {
  display:flex; align-items:center; justify-content:space-between;
  width:100%; padding:.85rem 0; text-decoration:none!important; color:inherit;
}
.rndBooks_hMeta { 
  display:flex; 
  align-items:center; 
  gap:16px; 
  color: var(--text); 
  font-size:.85rem; 
}

/* Inline checks */
.rndBooks_inlineChecks { display:flex; align-items:center; gap:16px; }

.rndBooks_resultsCard {
  padding: 20px;  
}

#RandomBooks .tgl-btn {
  width: 80px;
}

#RandomBooks .rndBook_RndSwtch_checkbox{
  display:flex; align-items:center; gap:.5rem;
}
#RandomBooks .rndBook_RndSwtch_switch_text{ white-space:nowrap; }

#RandomBooks .rndBook_RndSwtch_exoticCheck .tgl.tgl-flip + .tgl-btn{
  width: 70px;               /* ↑ widen the switch */
  height: 32px;              /* ↑ height if needed */
}

/* Keep the inner labels centered in the new size */
#RandomBooks .rndBook_RndSwtch_exoticCheck .tgl.tgl-flip + .tgl-btn::before,
#RandomBooks .rndBook_RndSwtch_exoticCheck .tgl.tgl-flip + .tgl-btn::after{
  line-height: 36px;         /* match height */
  font-size: 12px;           /* readable at the larger size */
  padding: 0 .5rem;
  white-space: nowrap;
}

#RandomBooks #rndBook_RndSwtch_roundToggleWrap{
  gap: .5rem;
  flex-wrap: wrap;
  white-space: nowrap;
}
#RandomBooks .rndBook_RndSwtch_switch_text{ white-space: nowrap; }

 /* If you used the earlier size tweaks for the flip, keep them; optional recap: */
#RandomBooks .rndBook_RndSwtch_exoticCheck .tgl.tgl-flip + .tgl-btn{
  width: 92px; height: 36px;   /* or your preferred size */
}
#RandomBooks .rndBook_RndSwtch_exoticCheck .tgl.tgl-flip + .tgl-btn::before,
#RandomBooks .rndBook_RndSwtch_exoticCheck .tgl.tgl-flip + .tgl-btn::after{
  line-height: 36px; font-size: 12px; padding: 0 .5rem; white-space: nowrap;
}


#RandomBooks {
  input {
  box-shadow: 0;
  outline: 0;
}
.range-slider {
  width: 300px;
  margin: auto;
  text-align: center;
  position: relative;
  height: 3.5em;
}
.range-slider svg,
.range-slider input[type=range] {
  position: absolute;
  left: 0;
  bottom: 0;
}
input[type=number] {
  border: 1px solid #ddd;
  text-align: center;
  font-size: 1.6em;
  -moz-appearance: textfield;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type=number]:invalid,
input[type=number]:out-of-range {
  border: 2px solid #ff6347;
}
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]:focus::-webkit-slider-runnable-track {
  background: var(--background-500);
}
input[type=range]:focus::-ms-fill-lower {
  background: var(--background-500);
}
input[type=range]:focus::-ms-fill-upper {
  background: var(--background-500);
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  animate: 0.2s;
  background: var(--background-500);
  border-radius: 1px;
  box-shadow: none;
  border: 0;
}
input[type=range]::-webkit-slider-thumb {
  z-index: 2;
  position: relative;
  box-shadow: 0px 0px 0px #000;
  border: 1px solid var(--primary);
  height: 18px;
  width: 18px;
  border-radius: 25px;
  background: rgb(from var(--background) r g b / 0.675);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -7px;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  animate: 0.2s;
  background: #2497e3;
  border-radius: 1px;
  box-shadow: none;
  border: 0;
}
input[type=range]::-moz-range-thumb {
  z-index: 2;
  position: relative;
  box-shadow: 0px 0px 0px #000;
  border: 1px solid var(--primary);
  height: 18px;
  width: 18px;
  border-radius: 25px;
  background: #a1d0ff;
  cursor: pointer;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  animate: 0.2s;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
input[type=range]::-ms-fill-lower,
input[type=range]::-ms-fill-upper {
  background: var(--primary);
  border-radius: 1px;
  box-shadow: none;
  border: 0;
}
input[type=range]::-ms-thumb {
  z-index: 2;
  position: relative;
  box-shadow: 0px 0px 0px #000;
  border: 1px solid #2497e3;
  height: 18px;
  width: 18px;
  border-radius: 25px;
  background: #a1d0ff;
  cursor: pointer;
}

}

#RandomBooks .range-slider > span{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;   /* <-- centers the line */
  text-align: center;        /* centers the text inside */
  gap: .35rem .5rem;
  width: 100%;
  margin-bottom: .35rem;
}

/* make the <br> force a full-width line break within flex */
#RandomBooks .range-slider > span br{
  flex-basis: 100%;
  height: 0;
  content: "";
}

/* compact numeric fields (keep your earlier tweaks) */
#RandomBooks .range-slider > span input[type="number"]{
  width: 72px;
  height: 28px;
  padding: 2px 6px;
  font-size: .85rem;
  line-height: 1.2;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: var(--text, #e6e6e6);
  outline: none;
}

/* add space between the Low input and the 'High:' label */
#RandomBooks .range-slider > span input[type="number"]:first-of-type{
  margin-right: 12px;
}


/* === Responsive enhancements layered on top of your existing rules === */
/* Make container responsive (keep centered) */
#RandomBooks .range-slider{
  width: 100%;              /* was fixed 300px */
  max-width: 420px;         /* tweak as you like */
  margin-left: auto;
  margin-right: auto;

  /* Responsive tokens */
  --rs-input-w: 72px;       /* number input width (base)  */
  --rs-input-h: 28px;       /* number input height (base) */
  --rs-thumb:   18px;       /* thumb size (base)          */
  --rs-track-h: 5px;        /* your current track height  */

  /* compute vertical offset so thumb centers on track */
  --rs-offset-y: calc((var(--rs-track-h) - var(--rs-thumb)) / 2);
}

/* Use the tokens for your compact numeric fields */
#RandomBooks .range-slider > span input[type="number"]{
  width: var(--rs-input-w);
  height: var(--rs-input-h);
}

/* Ensure the track height follows the token (keeps your background color) */
#RandomBooks input[type=range]::-webkit-slider-runnable-track{
  height: var(--rs-track-h) !important;
}
#RandomBooks input[type=range]::-moz-range-track{
  height: var(--rs-track-h) !important;
}
#RandomBooks input[type=range]::-ms-track{
  height: var(--rs-track-h) !important;
}

/* Size and vertically align thumbs using tokens (preserves your colors/borders) */
#RandomBooks input[type=range]::-webkit-slider-thumb{
  width: var(--rs-thumb) !important;
  height: var(--rs-thumb) !important;
  margin-top: calc((var(--rs-track-h) - var(--rs-thumb)) / 2) !important; /* WebKit centers via margin */
}
#RandomBooks input[type=range]::-moz-range-thumb{
  width: var(--rs-thumb) !important;
  height: var(--rs-thumb) !important;
  /* Firefox ignores margin-top on thumb; use translateY */
  transform: translateY(var(--rs-offset-y));
}

/* --- Breakpoints: scale inputs, thumb, and track --- */

/* Mobile */
@media (max-width: 575.98px){
  #RandomBooks .range-slider{
    --rs-input-w: 96px;
    --rs-input-h: 36px;
    --rs-thumb:   26px;
    --rs-track-h: 6px;
  }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991.98px){
  #RandomBooks .range-slider{
    --rs-input-w: 84px;
    --rs-input-h: 32px;
    --rs-thumb:   22px;
    --rs-track-h: 5px;
  }
}

/* Large / Desktop (tighten slightly) */
@media (min-width: 1200px){
  #RandomBooks .range-slider{
    --rs-input-w: 80px;
    --rs-input-h: 30px;
    --rs-thumb:   18px;
    --rs-track-h: 4px;  /* a hair thinner on big screens */
  }
}

/* Keep the Low/High row from wrapping by allowing inputs to shrink */
#RandomBooks .range-slider > span{
  /* we still want the label line-break from your <br> */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;            /* second line exists (after <br>) */
  gap: .35rem .5rem;          /* base gaps */
  white-space: nowrap;        /* keep "Low:" and "High:" on one line */
}

/* Inputs honor a shrinkable basis and won’t force wrap */
#RandomBooks .range-slider > span input[type="number"]{
  flex: 0 1 var(--rs-input-w);   /* allow shrinking */
  min-width: 48px;               /* safety floor so it never gets tiny */
  width: var(--rs-input-w);
}

/* Slight space after the Low value (can be reduced at tight widths) */
#RandomBooks .range-slider > span input[type="number"]:first-of-type{
  margin-right: 12px;
}

/* ---------- targeted breakpoints to avoid the 1955px wrap ---------- */

/* First, reduce gaps a touch as space tightens */
@media (max-width: 2200px){
  #RandomBooks .range-slider > span{ gap: .3rem .45rem; }
}

/* 2116px: narrow the inputs a bit so both stay on one line */
@media (max-width: 2116px){
  #RandomBooks .range-slider{ --rs-input-w: 66px; }
  #RandomBooks .range-slider > span input[type="number"]:first-of-type{ margin-right: 10px; }
}

/* 2000px: trim a little more and tighten gaps */
@media (max-width: 2000px){
  #RandomBooks .range-slider{ --rs-input-w: 60px; }
  #RandomBooks .range-slider > span{ gap: .26rem .38rem; }
  #RandomBooks .range-slider > span input[type="number"]:first-of-type{ margin-right: 8px; }
}

/* 1955px (your problem point): make sure they **stay** on one line */
@media (max-width: 1955px){
  #RandomBooks .range-slider{ --rs-input-w: 56px; }
  #RandomBooks .range-slider > span{ gap: .22rem .32rem; }
  #RandomBooks .range-slider > span input[type="number"]{ padding: 1px 4px; }
  #RandomBooks .range-slider > span input[type="number"]:first-of-type{ margin-right: 6px; }
}

/* If the column gets even tighter later, keep shrinking gracefully */
@media (max-width: 1800px){
  #RandomBooks .range-slider{ --rs-input-w: 52px; }
}
@media (max-width: 1680px){
  #RandomBooks .range-slider{ --rs-input-w: 50px; }
  #RandomBooks .range-slider > span{ gap: .2rem .28rem; }
}


@-moz-document url-prefix() {
  #RandomBooks .range-slider {
    display: none !important;   /* removes the whole widget (inputs + sliders + svg) */
  }
}

/* Keep 3 columns at md+ without wrapping */
/* keep 3 columns at md+ */
@media (min-width: 768px){
  #rndBooks_filtersBox .form-group { margin-right: 0 !important; }
  #rndBooks_filtersBox .form-group select { min-width: 0 !important; width: 100%; }
}


/* Responsive header stacking for book cards */
@media (max-width: 768px){
  /* let the two header blocks wrap to a new line */
  .rndBooks_accToggle > .d-flex { flex-wrap: wrap; }

  /* title goes full width on its own line and can wrap */
  .rndBooks_hTitle{
    flex: 0 0 100%;
    margin-bottom: .25rem;
    white-space: normal;        /* override your nowrap */
    overflow: visible;          /* override hidden */
    text-overflow: initial;     /* override ellipsis */
  }

  /* meta row goes under the title and can wrap across lines */
  .rndBooks_hMeta{
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;              /* smaller gaps for mobile */
    justify-content: flex-start;
  }
}

@media (max-width: 576px){
  /* gentle font-size step-down on very small screens */
  .rndBooks_hTitle{ font-size: 1rem; }
  .rndBooks_hMeta { font-size: .9rem; gap: 6px 10px; }
}

/* Optional: if ultra-narrow screens still clip long author/language combos,
   let individual pills wrap too */
@media (max-width: 360px){
  .rndBooks_hMeta span{ white-space: normal; }
}

@media (max-width: 945px){
  .rndBooks_pickButton {
    margin-top: 20px;
  }
}


@media (min-width: 768px){
  .rndBooks_toolbarRow > .col-auto:first-child{
    flex: 0 0 35%;
    max-width: 35%;
    box-sizing: border-box;
  }
  /* make sure the slider fills that column but doesn't overflow */
  .rndBooks_toolbarRow > .col-auto:first-child .range-slider{
    max-width: 100%;
    width: 100%;
  }
  /* button column stays auto; spacer .col takes the leftover space */
  .rndBooks_toolbarRow .rndBooks_pickButton{ flex: 0 0 auto; }
}
@media (max-width: 767.98px){
  .rndBooks_toolbarRow > .col-auto:first-child{
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.rndBooks_rangeTextSpan {
  color: var(--primary);
  font-size: 0.85rem;
}

.rndBooks_rangeTextResults {
  color: var(--primary-800);
}

.rndBooks_indent {
  margin: 20px;
  padding: 10px;
  border: 1px dotted rgb(from var(--primary) r g b / 0.5);
}


/* Badge row spacing */
.rndBooks_badgeRow .badge { margin-right: .35rem; margin-bottom: .25rem; }

/* Neutralize default badge background to match your theme (optional) */
.rndBooks_badge { 
  background: rgb(from var(--primary) r g b / 0.85); 
  padding: 6px;
  padding-left: 12px;
  padding-right: 12px;
  color: var(--text-50);
  font-weight: 300;
  font-style: italic;
}

.rndBooks_badge i { opacity: .8; }

/* Info table tweaks */
.rndBooks_infoTable th { font-weight: 600; vertical-align: top; }
.rndBooks_infoTable td { white-space: normal; }


.rndBooks_bookCardTitle {
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--primary);
  width: 100%;
  border-bottom: 1px dotted var(--primary);
  margin-top: 15px;
}

.rndBooks_traitTitle {
  color: var(--primary) !important;
  font-weight: 400 !important;
}

.rndBooks_traitData {
  color: var(--text-800) !important;
  font-weight: 400 !important;
  font-size: 0.9rem;
}

.rndBooks_infoTable{
  border-collapse: separate !important;  /* override Bootstrap's collapse */
  border-spacing: 0 .65rem;               /* 0 = no col gap, .5rem = row gap */
}

.rndBooks_infoTable th,
.rndBooks_infoTable td{
  padding-top: .5rem;
  padding-bottom: .5rem;
  margin-bottom: 5px !important;
   border-bottom: 1px dotted rgb(from var(--primary) r g b / 0.35) !important;
}

.rndBook_bookBodyDescr {
  color: var(--text-800);
  margin-left: 25px;
  margin-bottom: 25px !important;
}

.rndBooks_exportBar{
  display: flex;
  justify-content: flex-end;   /* right align */
  align-items: center;
  margin-top: .75rem;          /* space above the buttons */
  margin-bottom: 0;            /* flush with card bottom */
}

.rndBooks_exportBar .btn-group .btn{
  white-space: nowrap;         /* keep labels tidy */
}

.bookBadgeLegendary {
  margin-left: 15px;
  font-weight: 300;
  background-color: #dfa60a !important;
  color: var(--text) !important;
}

.bookBadgeMythic {
  margin-left: 15px;
  font-weight: 300;
  background-color: #0076d6 !important;
  color: var(--text-50) !important;
}

.bookBadgeUnique {
  margin-left: 15px;
  font-weight: 300;
  background-color: #007a33 !important;
  color: var(--text-50) !important;
}

.bookBadgeSentient {
  margin-left: 15px;
  font-weight: 300;
  background-color: #9a2bbc !important;
  color: var(--text-50) !important;
}

#rndBooks_accordion .rndBooks_accToggle{
  /* Potions uses ~.30/.65 at ≥992px and ~.45/.75 below; do the same */
  padding: .45rem .75rem;
  line-height: 1.5;
  min-height: 0; /* let content define height */
}

/* Tighten on lg+ like Potions */
@media (min-width: 992px){
  #rndBooks_accordion .rndBooks_accToggle{
    padding: .30rem .65rem;
  }
}

/* Typography to match Potions header scale */
#rndBooks_accordion .rndBooks_hTitle{
  font-size: .9rem;          /* Potions header text size on lg+ */
  font-weight: 400;          /* optional: closer to .card-title feel */
}

#rndBooks_accordion .rndBooks_hMeta{
  font-size: .88rem;         /* matches Potions secondary cols */
  align-items: center;
}

/* If you show a chevron/icon on the right, keep it compact like Potions */
#rndBooks_accordion .rndBooks_accToggle .fa,
#rndBooks_accordion .rndBooks_accToggle .fas{
  font-size: .8rem;          /* Potions shrinks chevron to ~.65rem bg-size */
  margin-left: 10px;
  opacity: .85;
}

/* Keep the dotted divider vibe consistent with Potions */
#rndBooks_accordion .rndBooks_card .rndBooks_accHeader{
  border-bottom: 1px dotted rgb(from var(--primary) r g b / 0.35);
}













/* Coinage                                                                                        */
/* ---------------------------------------------------------------------------------------------- */


.coin-price{ display:inline-flex; flex-wrap:wrap; gap:8px; align-items:center; }
.coin-chunk{ display:inline-flex; gap:4px; align-items:center; }
.coin-icon{ width:18px; height:18px; object-fit:contain; vertical-align:middle; }
.coin-amt{ font-variant-numeric: tabular-nums; }
.coin-unit{ margin-left:-2px; text-transform:uppercase; font-size:.75em; opacity:.85; }









  
/* Random Store Generator                                                                          */
/* ---------------------------------------------------------------------------------------------- */

.genStore_mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: .9rem; }

.genStore_sidebar { position: sticky; top: 1rem; }

.genStore_mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: .9rem; }
.genStore_sidebar { position: sticky; top: 1rem; }
.genStore_inventoryGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.genStore_labelMuted { color: var(--bs-secondary-color, #6c757d); font-size: .875rem; }
.genStore_kv { display: flex; align-items: baseline; gap: .5rem; }
.genStore_kv .k { color: var(--bs-secondary-color, #6c757d); min-width: 7rem; }


.genStore_toggleBtn {
  width: 75px !important;
}

.genStore_invCount {
width: 75px;
min-width: 75px;
max-width: 75px;
margin-left: auto;   /* push to the right inside the flex row */
text-align: right;   /* numbers align to the right inside the input */
padding-right: .4rem;/* small breathing room for digits */
}

/* Header is two rows: title on top, buttons below */
#genStore_headerBar {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

/* Buttons row: right-aligned, wraps gracefully */
.genStore_actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
}

/* Keep button labels on one line */
.genStore_actions .genStore-btn { white-space: nowrap; }

/* Busy state: hide buttons, show spinner */
.genStore_actions.is-busy .genStore_actionRow { display: none !important; }
.genStore_actions.is-busy .genStore_loading   { display: inline-flex !important; }

/* sm: two-per-row, Generate full width */
@media (max-width: 767.98px) {
  .genStore_actions .genStore-btn { flex: 1 1 calc(50% - .5rem); }
  .genStore_actions .genStore-btn.genStore-btn-primary { flex: 1 1 100%; }
}

/* xs: each button full width */
@media (max-width: 575.98px) {
  .genStore_actions .genStore-btn { flex: 1 1 100%; }
}

/* Header is already stacked into two rows (title, then buttons) */
#genStore_headerBar {
  display: flex;
  flex-direction: column;
  gap: .25rem;

  /* enable container queries based on this row's inline size */
  container-type: inline-size;
}

/* Base title size */
#genStore_storeName {
  line-height: 1.2;
  /* h4 default is fine; explicitly set if you want: */
  font-size: 1.5rem; /* ~24px */
}

/* When the title row is under 500px wide, shrink the font */
@container (max-width: 570px) {
  #genStore_storeName { font-size: 1.25rem; }  /* ~20px */
}

/* Extra step for very narrow containers */
@container (max-width: 380px) {
  #genStore_storeName { font-size: 1.125rem; } /* ~18px */
}

/* (unchanged) Buttons row styles/spinner state */
.genStore_actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem;
}
.genStore_actions .genStore-btn { white-space: nowrap; }
.genStore_actions.is-busy .genStore_actionRow { display: none !important; }
.genStore_actions.is-busy .genStore_loading   { display: inline-flex !important; }

/* Responsive wrapping (optional, keep as you had) */
@media (max-width: 767.98px) {
  .genStore_actions .genStore-btn { flex: 1 1 calc(50% - .5rem); }
  .genStore_actions .genStore-btn.genStore-btn-primary { flex: 1 1 100%; }
}
@media (max-width: 575.98px) {
  .genStore_actions .genStore-btn { flex: 1 1 100%; }
}
.genStore_actions .genStore-btn { white-space: nowrap; }
.genStore_actions .btn,
.genStore_actions .genStore-btn {
  display: inline-flex !important;      /* fix cases where display: contents was used */
  align-items: center;
  justify-content: center;
  padding: .25rem .5rem;                /* keep your current size */
  position: relative;                   /* raise above any accidental overlays */
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
  white-space: nowrap;
}

/* Ensure inner content can't intercept the click */
.genStore_actions .btn * ,
.genStore_actions .genStore-btn * {
  pointer-events: none;
}

/* If you show a loading row, make sure it doesn't block clicks when visible/hidden */
.genStore_actions .genStore_loading {
  pointer-events: none;                 /* the spinner shouldn't block buttons */
}


#genStore .card {
    background-color: rgb(from var(--background-50) r g b / 0.675);
    color: var(--primary);
}

#genStore .bg-body-tertiary {
    background-color:  var(--background-100) !important;
}

#genStore .card-body {
  border-radius: 0.5rem;       
  border-color: var(--background);
  padding: 1rem 1.25rem;     
  box-shadow: 0 2px 4px rgba(0,0,0,0.08); 
  font-size: 0.95rem;    
  color: var(--text-700);     
}

.genStore_badgeHeader {
  font-weight: 500;
  color: var(--background) !important;
}

#genStore .badge.bg-info {
  background-color: var(--primary-600) !important;  
  color: var(--background-100) !important;
  height: 24px;
  display: inline-flex;        
  align-items: center;         
  justify-content: center;      
  padding: 0 0.6em;             
  line-height: 1;      
  font-weight: 300;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 0.85rem;
}


.genStore_headerTitles {
  color: var(--primary);
  padding-bottom: 20px;
}

.genStore_innkeepName {
  color: var(--primary-800);
  font-size: 1.1rem;
}

.genStore_employeeName {
  display: inline-block;
}

.genStore_itemCard{
  display: flex;
  flex-direction: column;
  min-height: 100%;     /* lets cards stretch evenly in the grid */
}

.genStore_item_meta{
  padding-top: 20px;
  margin-top: auto;     /* <-- anchors to bottom inside flex column */
  display: block;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  width: 100%;
}

.genStore_item_nameHeader {
  background-color: rgb(from var(--primary) r g b / 0.15);
  margin-left: -8px;
  margin-right: -8px;
  margin-top: -8px;
}

.genStore_item_name {
    font-size: 1.05rem;
    font-weight: 400;
  color: var(--primary);
  margin-left: 10px;
}

.genStore_item_desc {
  margin-top: 5px;
  font-weight: 300;
  font-size: .85rem;
  padding: 10px;
  color: var(--text);
}

.genStore_item_price {
  flex: 0 1;
  text-align: left;
    color: var(--text);

}

.genStore_item_stock {
  flex: 1 1;
  text-align: left;
  color: var(--text);
  margin-bottom: 10px;
}

.genStore_item_stockQuantity {
  color: var(--primary);
}

.genStore_item_price .coin-price{
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.genStore_item_meta .coin-chunk {
  color: var(--primary);
}

.genStore_item_meta .coin-unit {
  color: var(--text);
  font-weight: 500;
  font-size: .7rem;
}

/* Optional: on very narrow cards, stack both lines left for readability */
@media (max-width: 576px){
  .genStore_item_stock,
  .genStore_item_price{
    flex: 1 1 100%;
    text-align: left;
  }
  .genStore_item_price .coin-price{ justify-content: flex-start; }
}






























/* Random Name Generator                                                                          */
/* ---------------------------------------------------------------------------------------------- */

#rndName_sexBtn > * { pointer-events: none; }

  /* tiny floating 'Copied!' bubble (namespaced) */
  .rndName_copiedTip{
    position:absolute; z-index:2000;
    background: rgba(25,25,25,.9); color:#fff;
    padding:4px 8px; border-radius:6px; font-size:12px;
    pointer-events:none; opacity:0;
    transform: translate(-50%, -100%) scale(.98);
    transition: opacity .12s ease, transform .18s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
  }
  .rndName_copiedTip.show{
    opacity:1; transform: translate(-50%, -120%) scale(1);
  }

  /* Force list-group container to be block so columns can work */
  #rndName_results.list-group { display: block !important; padding-left: 0; }

  /* 3 responsive columns */
  #rndName_results{
    column-gap: 1rem;
    -webkit-column-gap: 1rem;
    column-count: 1;
    -webkit-column-count: 1;
  }
  @media (min-width: 768px){
    #rndName_results{ column-count: 2; -webkit-column-count: 2; }
  }
  @media (min-width: 1200px){
    #rndName_results{ column-count: 3; -webkit-column-count: 3; }
  }

  /* Keep items intact within a column and add a little spacing */
  #rndName_results .list-group-item{
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: .5rem;
    border-radius: .375rem;
  }

    #rndName_results.list-group { display: block !important; padding-left: 0; background: transparent; }

  #rndName_results .list-group-item{
    background-color: transparent !important;
    color: var(--text) !important;
    border: none;                 /* or keep a subtle border if you prefer */
    margin-bottom: .5rem;         /* pairs nicely with multi-column layout */
    border-radius: .375rem;
    font-weight: 300;
  }

  #rndName .fw-semibold {
    font-weight: 300 !important;
  }

  /* Optional: a very soft hover so items feel clickable */
  #rndName_results .list-group-item:hover{
    background-color: rgba(0,0,0,.04); /* tweak if you have a dark theme */
  }

  /* Ensure the little number badge doesn't clash with your palette */
  .rndName_bg-secondary-subtle{
    background-color: rgb(from var(--primary-700) r g b / .275) !important; 
    border: 1px solid rgb(from var(--primary) r g b / .375);
  }

  .rndName_text-secondary-emphasis{ 
    color: var(--text) !important; font-weight: 300; 
  }

  /* Make the per-item Copy button match the text color */
  #rndName_results [data-copy].btn{
    color: var(--text);
    border-color: currentColor;
  }
  #rndName_results [data-copy].btn:hover{
    background: var(--text);
    color: var(--bs-body-bg, #fff);
  }

  #rndName .btn-primary {
      background-color: var(--primary-700);
      border-color: var(--primary-700);
  }

  #rndName .btn-secondary {
      border-color: var(--background-500);
      background-color: var(--background-500);
  }

  #rndName .btn-secondary:hover{
      border-color: var(--background-600);
      background-color: var(--background-600);
  }

  #rndName .btn-outline-secondary {
      border-color: var(--btn_primary);
      background-color: transparent;
      color: var(--text-900);
  }

  #rndName .card {
      background-color: rgb(from var(--background-50) r g b / 0.675);
      color: var(--primary);
  }

  #rndName .bg-body-tertiary {
      background-color:  var(--background-100) !important;
  }



#rndName {

    input[type=range] {
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1;
    height: 2em;
    background-color: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    width: 100%;
  }
  input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
  }
  input[type=range]:focus {
    outline: none;
  }
  input[type=range]::-ms-track {
    width: 100%;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    color: transparent;
  }
  input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 2em;
    height: 2em;
    margin-top: -5;
    background-color: var(--primary);
    border-radius: 1em;
    border: 2px solid rgb(from var(--background-darker) r g b / .475);
    cursor: pointer;
  }
  input[type=range]::-moz-range-thumb {
    width: 2em;
    height: 2em;
    margin-top: 0px;
    background-color:  var(--primary);
    border-radius: 1em;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
      transform: translateY(var(--bar-offset-y)); /* works; margins are ignored */
  transform-origin: center;
  }



  input[type=range]::-ms-thumb {
    width: 2em;
    height: 2em;
    margin-top: -5;
    background-color: #16a085;
    border-radius: 1em;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
  }
  input[type=range]:hover::-webkit-slider-thumb {
    border-color: rgba(255, 255, 255, 0.7);
  }
  input[type=range]:hover::-moz-range-thumb {
    border-color: rgba(255, 255, 255, 0.7);
  }
  input[type=range]:hover::-ms-thumb {
    border-color: rgba(255, 255, 255, 0.7);
  }
  input[type=range]:active::-webkit-slider-thumb {
    border-color: #ffffff;
  }
  input[type=range]:active::-moz-range-thumb {
    border-color: #ffffff;
  }
  input[type=range]:active::-ms-thumb {
    border-color: #ffffff;
  }

}

#rndName input[type=range]:focus,
#rndName input[type=range]:focus-visible,
#rndName .form-range:focus{
  outline: none !important;
  box-shadow: none !important;
}

/* Firefox outer focus ring */
#rndName input[type=range]::-moz-focus-outer{
  border: 0;
}

/* Nuke any thumb focus shadow/glow */
#rndName input[type=range]:focus::-webkit-slider-thumb{
  box-shadow: none !important;
  outline: none !important;
}
#rndName input[type=range]:focus::-moz-range-thumb{
  box-shadow: none !important;
  outline: none !important;
}

#rndName input[type=range]{
  accent-color: var(--primary); 
}

#rndName { --bar-offset-y: 5px; }

#rndName input[type=range]::-webkit-slider-runnable-track{
  height: 1em;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(var(--primary), var(--primary))
    no-repeat;
  background-size: 100% 2px;                   
  background-position: 50% calc(50% + var(--bar-offset-y));
}

/* Firefox */
#rndName input[type=range]::-moz-range-track{
  height: 1em;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(var(--primary), var(--primary))
    no-repeat;
  background-size: 100% 2px;
  background-position: 50% calc(50% + var(--bar-offset-y));
}


.rndName_resultsHeader{
    background-color: rgb(from var(--secondary-600) r g b / 0.6) !important; 
    color: #fff;
  }
  
  .rndName_resultsHeader .badge{ background: rgba(255,255,255,.2); color:#fff; }
  .rndName_resultsHeader .btn svg,
  .rndName_resultsHeader .btn i{ color: inherit; }

.rndName_resultBadge {
  background-color: var(--primary-700) !important;
  color: var(--background);
  font-weight: 300;
}


















  


/* Random Inn Generator                                                                           */
/* ---------------------------------------------------------------------------------------------- */


#rndInn_page .card {
  border-radius: 0.5rem;
  background-color: rgb(from var(--background-50) r g b / 0.675) !important; 
  overflow: hidden;            
}

#rndInn_page .card-body {
  background: transparent;     
}

#rndInn_page .card-body {
  border-radius: 0.5rem;       
  border-color: var(--background);
  padding: 1rem 1.25rem;     
  box-shadow: 0 2px 4px rgba(0,0,0,0.08); 
  font-size: 0.95rem;    
  color: var(--text-700);     
}

.rndInn_innName {
  color: var(--text);
}

#rndInn_page .badge.bg-info {
  background-color: var(--primary-600) !important;  
  color: var(--background-100) !important;
  height: 24px;
  display: inline-flex;        
  align-items: center;         
  justify-content: center;      
  padding: 0 0.6em;             
  line-height: 1;      
  font-weight: 300;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 0.85rem;
}

#rndInn_page .badge.bg-secondary {
  background-color: var(--text-800) !important; 
  color: var(--background-100) !important;
  height: 24px;
  display: inline-flex;        
  align-items: center;         
  justify-content: center;      
  padding: 0 0.6em;             
  line-height: 1;      
  font-weight: 300;  
  padding-left: 10px;
  padding-right: 10px;
  font-size: 0.85rem;
  margin-top: 5px;
}

.rndInn_badgeHeader {
  font-weight: 500;
  color: var(--background) !important;
}

#rndInn_page .rndInn-stats .card-body h4 {
  background-color: rgb(from var(--primary-600) r g b / .25);
  color: var(--primary-700);
  margin: -1rem -2rem 0.5rem;
  padding: 0.65rem 1rem;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.rndInn_headerTitles {
  color: var(--primary);
  padding-bottom: 20px;
}

.rndInn_DetailHeader {
  color: var(--primary-800);
  padding-left: 25px;
  font-size: 1rem;
}

.rndInn_DetailText {
  color: var(--primary);
  padding-left: 35px;
  font-size: 0.825rem;
}

.rndInn_DetailText2 {
  color: var(--primary-500);
  padding-left: 35px;
  font-size: 0.825rem;
}

.rndInn_innkeepName {
  color: var(--primary-800);
  font-size: 1.1rem;
}

.rndInn_innkeepTraits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; 
  margin: 0;
  padding: 0;
  list-style: none;
}

.rndInn_innkeepTraits dt {
  margin: 0;
  padding: 0.75rem 1rem;  
  border-radius: 6px;
  font-weight: 300;
  color: var(--primary);
}

.rndInn_kv-entry {
  text-align: center;
  margin-bottom: 0.25rem;
}

.rndInn_kv-label {
  display: inline-block;
  min-width: 100px;     
  font-weight: 500;    
  color: var(--primary) !important; 
  font-size: 1.05rem;
}

.rndInn_kv-value {
  color: var(--text) !important;       
}

.rndInn_exoticLabel {
  display: inline-flex;
  font-size: 0.9rem;
  color: var(--text);
}

.rndInn_exoticCheck {
  display: inline-flex;
  position: relative;
  top: 11px;
}

.rndInn_innSecret {
  margin-left: 30px;
  color: var(--primary);
  font-size: 0.95rem;
}

.rndInn_innSecret2 {
  color: var(--primary-700);
}

.rndInn_patronList ul {

}

.rndInn_minusTop25 > span {
  flex: 1;
}
.rndInn_minusTop25 > span.text-muted {
  text-align: left;
}
.rndInn_minusTop25 > span.text-end {
  text-align: right;
}

.rndInn_offeringsList {
  color: var(--text);
}

.rndInn_offeringsList span {
  color: var(--primary) !important;
}

/* Base sign wrapper */
.rndInn_sign {
  display: inline-block;
  max-width: 480px;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  line-height: 1.25;
  margin: .5rem 0;
  position: relative;
  user-select: none;
  box-sizing: border-box;
  text-align: center;
  font-weight: 600;
}

/* Size helpers */
.rndInn_sign--sm { max-width: 360px; font-size: .95rem; }
.rndInn_sign--lg { max-width: 640px; font-size: 1.2rem; }

/* Parchment */
.rndInn_sign--parchment {
  background: radial-gradient(120% 80% at 50% 20%, #fff7d6, #e6d3a3 60%, #d1b980 100%);
  color: #3b2a15;
  box-shadow: 0 1px 0 #c3ad7e inset, 0 0 0 2px #b7924d inset, 0 10px 18px rgba(0,0,0,.25);
  border-radius: 8px;
}
.rndInn_sign--parchment:before,
.rndInn_sign--parchment:after {
  content: "";
  position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: #a33;
  top: 8px;
  box-shadow: 0 1px 0 #711 inset, 0 1px 5px rgba(0,0,0,.4);
}
.rndInn_sign--parchment:before { left: 10px; }
.rndInn_sign--parchment:after  { right: 10px; }

/* Woodboard / hanging shingle vibe */
.rndInn_sign--wood {
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 1px, transparent 1px 8px),
    linear-gradient(#7a5532, #6a4728 40%, #5b3d22);
  color: #f1e7d3;
  text-shadow: 0 -1px 0 rgba(0,0,0,.4), 0 1px 0 rgba(0,0,0,.4);
  box-shadow: 0 0 0 2px #3f2a17 inset, 0 12px 18px rgba(0,0,0,.35);
}
.rndInn_sign--wood:before, .rndInn_sign--wood:after{
  content:""; position:absolute; top:-10px; width:14px; height:14px; border-radius:50%;
  background:#c9b07a; box-shadow:0 1px 0 #9a875e inset, 0 1px 4px rgba(0,0,0,.4);
}
.rndInn_sign--wood:before{ left:14px; } .rndInn_sign--wood:after{ right:14px; }

/* Carved door (engraved) */
.rndInn_sign--carved {
  background: linear-gradient(#3e2a18, #2f2115);
  color: #d6bb8a;
  /* Engraved effect: light top-left, dark bottom-right */
  text-shadow:
    1px 1px 0 rgba(0,0,0,.65),
   -1px -1px 0 rgba(255,255,255,.08);
  box-shadow: 0 0 0 2px #1f150d inset, 0 10px 16px rgba(0,0,0,.35);
  letter-spacing: .5px;
}

/* Chalkboard */
.rndInn_sign--chalk {
  background:
    radial-gradient(150% 100% at 20% 20%, rgba(255,255,255,.04), transparent 60%),
    linear-gradient(#0f1414, #121a1a);
  color: #f4f4f4;
  font-family: "Georgia", "Times New Roman", serif;
  text-shadow: 0 1px 0 rgba(255,255,255,.05), 0 0 2px rgba(255,255,255,.15);
  box-shadow: 0 0 0 2px #0b1010 inset, 0 10px 18px rgba(0,0,0,.35);
  border-radius: 6px;
}

/* Painted notice on door/plaster */
.rndInn_sign--paint {
  background: linear-gradient(#f6f6f6, #f0f0f0);
  color: #222;
  box-shadow: 0 0 0 2px #e2e2e2 inset, 0 12px 18px rgba(0,0,0,.2);
  border-radius: 6px;
}
.rndInn_sign--paint .rndInn_stroke {
  /* fake brush stroke edges */
  display:inline; padding: 0 .15em; box-shadow: 0 -2px 0 rgba(200,0,0,.25) inset;
}

/* Metal plaque (bronze) */
.rndInn_sign--plaque {
  background: linear-gradient(180deg, #8a6a3d, #6f522c 40%, #845f36 75%, #4e3a22);
  color: #f2e7d6;
  text-shadow: 0 1px 0 rgba(0,0,0,.5);
  box-shadow: 0 0 0 2px #2c2114 inset, 0 10px 16px rgba(0,0,0,.4);
}
.rndInn_sign--plaque:before, .rndInn_sign--plaque:after {
  /* rivets */
  content:""; position:absolute; width:10px; height:10px; border-radius:50%;
  background:#d5bf8b; top:8px; box-shadow: 0 1px 0 #9d8a5f inset, 0 1px 3px rgba(0,0,0,.4);
}
.rndInn_sign--plaque:before{ left:8px; } .rndInn_sign--plaque:after{ right:8px; }

/* Text fit/format */
.rndInn_signText {
  display:block;
  word-wrap: break-word;
}

.rndInn_sign--fluid { display:block; width:100%; max-width:100%; }

.rndInn_signTypeNarrative {
  color: var(--primary-700);
  font-size: 1.05em;
  font-weight: 600;

}

.rndInn_sign--fluid { display:block; width:100%; max-width:100%; }

/* Right header actions alignment */
.rndInn_headerActions { margin-left: auto; } /* belt & suspenders with ms-auto */
.rndInn_headerActions .btn,
.rndInn_headerActions .btn-group,
.rndInn_headerActions .dropdown-toggle {
  align-self: center;
}

/* Keep the label text and toggle vertically centered */
.rndInn_exoticLabel { margin: 0 .25rem 0 0; line-height: 1; align-self: center; }

/* The custom flip toggle tends to sit a few px low unless we flex it */
.rndInn_exoticCheck {
  display: inline-flex;
  align-items: center;
}
.rndInn_exoticCheck .tgl,
.rndInn_exoticCheck .tgl-btn {
  vertical-align: middle;
  line-height: 1;
  /* If your toggle skin has extra top/bottom padding, uncomment the next line: */
  /* transform: translateY(-1px); */
}

/* Ensure the dropdown aligns to the right edge (already using .dropdown-menu-end) */
.rndInn_headerActions .dropdown-menu { right: 0; left: auto; }

.rndInn_headerActions { align-items: center; }

/* Toggle container participates in the same baseline */
.rndInn_exoticCheck { display: inline-flex; align-items: center; }

.rndInn_exoticCheck { transform: translateY(-10px); }

@media (max-width: 767.98px) {
  .rndInn_headerActions {
    align-items: flex-end;   /* keep the block right-aligned */
    gap: .5rem;
  }
  .rndInn_actionBtns {
    width: 100%;
    display: flex;
    flex-direction: column;  /* stack */
    align-items: stretch;    /* full width buttons */
    gap: .5rem;
  }
  .rndInn_actionBtns .btn,
  .rndInn_actionBtns .btn-group,
  .rndInn_actionBtns .dropdown-toggle {
    width: 100%;
  }
  /* Optional: if your -10px shim makes the toggle look high on mobile, reset it */
  /* .rndInn_exoticCheck { transform: none !important; } */
}

.rndInn_npcLeftMargin {
  margin-left: 25px;
  color: var(--text-900) !important;
  font-size: .9rem;
}


#innRumors_detailed .btn-link {
  color: var(--text-900) !important;
}

.rndInn_rumorSource {
  color: var(--text-800);
  margin-bottom: 15px;
}

.rndInn_rumorLocation {
  color: var(--text-800);
  margin-bottom: 15px;
}

.rndInn_rumorReward {
  font-size: .9rem;
  color: var(--primary) !important;
  line-height: 1.1rem;
  font-weight: 400;
  font-style: italic;
  margin-top: 20px;
  margin-bottom: 20px;
}

.rndInn_badgeDanger {
  line-height: 1.1rem;
  padding: 7px;
}

.rndInn_rumorTruth {
  line-height: 1.1rem;
  padding: 7px;
  margin-left: 5px;
}

.rndInn_rumorTruth {
  padding: 7px;
}

.rndInn_rumorLeads {
  margin-left: 5px;
}

.rndInn_rumorTags {
  margin-left: 5px;
}

.rndInn_rumorTagsLine {
  margin-left: 10px;
}

.rndInn_rumorTagsLine .badge {
  line-height: 1.1rem;
  background-color: var(--secondary) !important;
  color: var(--text-50);
  font-size: .9rem;
  font-weight: 400;
}

/* Align control group to the right and keep items centered */
.innMenu-controls {
  margin-left: auto;           /* push to the right side */
  gap: .5rem;                  /* spacing between toggle and button */
  display: flex;
  align-items: center;
}

/* Ensure the toggle wrapper keeps the toggle vertically centered */
#rndInn_page .customCheckbox-wrapper-10.rndInn_exoticCheck {
  display: inline-flex;
  align-items: center;
  margin: 0;                   /* spacing handled by .innMenu-controls gap */
}

/* Optional: slightly tighten regenerate button spacing on small screens */
@media (max-width: 480px) {
  .innMenu-controls { gap: .35rem; }
  .innMenu-controls .btn { padding: .25rem .5rem; font-size: .85rem; }
}

#rndInn_page .rndInn_roundPricesTgl .tgl.tgl-flip + .tgl-btn{
  width: 70px;               /* ↑ widen the switch */
  height: 32px;              /* ↑ height if needed */
}

/* Keep the inner labels centered in the new size */
#rndInn_page .rndInn_roundPricesTgl .tgl.tgl-flip + .tgl-btn::before,
#rndInn_page .rndInn_roundPricesTgl .tgl.tgl-flip + .tgl-btn::after{
  line-height: 36px;         /* match height */
  font-size: 12px;           /* readable at the larger size */
  padding: 0 .5rem;
  white-space: nowrap;
}

#innMenuPanel .card {
  --bs-card-border-width: 0;   /* BS5+: disables all card borders, including header/footer separators */
  border: 0 !important;        /* fallback/safety */
  box-shadow: none;            /* optional: if the card appears bordered via shadow */
}

/* Extra safety: ensure sub-sections don’t reintroduce borders */
#innMenuPanel .card-header,
#innMenuPanel .card-footer,
#innMenuPanel .card-body,
#innMenuPanel .card > .list-group,
#innMenuPanel .list-group-item {
  border: 0 !important;
}

/* Optional: make headers/footers blend with the background */
#innMenuPanel .card-header,
#innMenuPanel .card-footer {
  background-color: transparent;
}

#innMenuPanel .card > .card-header {
  border-bottom: 1px dotted rgb(from var(--primary) r g b / 0.35) !important;
  /* keep other sides off */
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  background-color: transparent; /* optional */
}

#innMenuPanel .card > .card-header strong{
  font-weight: 500;
  color: var(--text-700);
  font-size: .95rem;
  margin-left: 15px;
  font-style: italic;
}

#innMenu_appetizers_content, #innMenu_entrees_content, #innMenu_soups_content, #innMenu_drinks_content, #innMenu_baked_content, #innMenu_smokes_content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
}

/* Medium screens: 2 columns */
@media (max-width: 1300px) {
  #innMenu_appetizers_content, #innMenu_entrees_content, #innMenu_soups_content, #innMenu_drinks_content, #innMenu_baked_content, #innMenu_smokes_content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Small screens: 1 column */
@media (max-width: 950px) {
  #innMenu_appetizers_content, #innMenu_entrees_content, #innMenu_soups_content, #innMenu_drinks_content, #innMenu_baked_content, #innMenu_smokes_content {
    grid-template-columns: 1fr;
  }
}

.innMenu_MenuItemBlock {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 110px;          /* tweak as needed */
  padding: 0.75rem;
  border: 1px solid rgb(from var(--primary) r g b / .175);
  border-radius: 6px;
  background-color: rgb(from var(--primary) r g b / .065);
  text-align: center;         /* center text in each block */
  max-width: 500px;
}

/* Name at the top */
.innMenu_menuItemName {
  display: block;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

/* Description below name */
.innMenu_menuItemDescr {
  display: block;
  font-size: 0.92rem;
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text);
  margin-left: 23%;
  margin-right: 23%;
}

/* Price anchored to the bottom of the box */
.innMenu_menuItemPrice {
  margin-top: auto; 
  display:inline-flex; 
  justify-content:center;
  gap:0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-700);
}

.innMenu_menuItemPricePlain {
  margin-top: auto; 
  display:inline-flex; 
  justify-content:center;
  gap:0.4rem;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--primary);
}

/* coin-price / coin-chunk styling (keeps icons small and aligned) */
#rndInn_page .coin-price { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: nowrap; }
#rndInn_page .coin-chunk { display:inline-flex; align-items:center; gap:0.25rem; white-space:nowrap; }
#rndInn_page .coin-icon { width: 18px; height: auto; display: inline-block; vertical-align: middle; margin-right: 2px; }

/* Small adjustments for very compact cards */
.innMenu_MenuItemBlock.small { padding: 0.5rem; min-height: 92px; }
.innMenu_menuItemDescr.small { font-size: 0.85rem; }

/* Optional hover effect */
.innMenu_MenuItemBlock:hover {
  box-shadow: 0 6px 12px rgb(from var(--primary) r g b / 0.125);
  border-color: rgb(from var(--primary) r g b / .475);
  background-color: rgb(from var(--primary) r g b / .0975)
}

/* Accessibility: ensure adequate contrast on small text */
@media (prefers-reduced-motion: reduce) {
  .innMenu_MenuItemBlock:hover { transform: none; transition: none; box-shadow: none; }
}


/* Center all text/content inside each menu item box */
.innMenu_MenuItemBlock {
  text-align: center;
}


#innMenu_appetizers_content .innMenu_MenuItemBlock:last-child:nth-child(3n+1),
#innMenu_entrees_content .innMenu_MenuItemBlock:last-child:nth-child(3n+1),
#innMenu_soups_content .innMenu_MenuItemBlock:last-child:nth-child(3n+1),
#innMenu_drinks_content .innMenu_MenuItemBlock:last-child:nth-child(3n+1),
#innMenu_baked_content .innMenu_MenuItemBlock:last-child:nth-child(3n+1),
#innMenu_smokes_content .innMenu_MenuItemBlock:last-child:nth-child(3n+1)  {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(640px, 66%);
}

/* For 2-col layout, use odd last-child behavior */
@media (max-width: 1300px) {
  #innMenu_appetizers_content .innMenu_MenuItemBlock:last-child:nth-child(odd),
  #innMenu_entrees_content .innMenu_MenuItemBlock:last-child:nth-child(odd), 
  #innMenu_soups_content .innMenu_MenuItemBlock:last-child:nth-child(odd), 
  #innMenu_drinks_content .innMenu_MenuItemBlock:last-child:nth-child(odd), 
  #innMenu_baked_content .innMenu_MenuItemBlock:last-child:nth-child(odd), 
  #innMenu_smokes_content .innMenu_MenuItemBlock:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(540px, 60%);
  }
}

/* Undo spanning on single-column layout */
@media (max-width: 950px) {
  #innMenu_appetizers_content .innMenu_MenuItemBlock:last-child:nth-child(3n+1),
  #innMenu_appetizers_content .innMenu_MenuItemBlock:last-child:nth-child(odd),
  #innMenu_entrees_content .innMenu_MenuItemBlock:last-child:nth-child(3n+1),
  #innMenu_entrees_content .innMenu_MenuItemBlock:last-child:nth-child(odd),
  #innMenu_soups_content .innMenu_MenuItemBlock:last-child:nth-child(3n+1),
  #innMenu_soups_content .innMenu_MenuItemBlock:last-child:nth-child(odd),
  #innMenu_drinks_content .innMenu_MenuItemBlock:last-child:nth-child(3n+1),
  #innMenu_drinks_content .innMenu_MenuItemBlock:last-child:nth-child(odd),
  #innMenu_baked_content .innMenu_MenuItemBlock:last-child:nth-child(3n+1),
  #innMenu_baked_content .innMenu_MenuItemBlock:last-child:nth-child(odd),
  #innMenu_smokes_content .innMenu_MenuItemBlock:last-child:nth-child(3n+1),
  #innMenu_smokes_content .innMenu_MenuItemBlock:last-child:nth-child(odd)
  {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }
}

.innMenu_menuItemNameSub {
  font-size: .9rem;
  color: var(--text-500);
}

.rndInn_spanShowLabel {
  color: var(--primary);
  margin-right: 10px;
  font-size: .85rem;
}










/* PC Background Panel */
/* ---------------------------------------------------------------------------------------------- */

/* Left menu container + items */

#showBackgroundPicker {

  .card {
    background: transparent !important;
    background-color: transparent !important;
  }

.pcShowBg_bgMenu { 
  max-height: 70vh; 
  overflow: auto; 
}

.pcShowBg_bgItem.active { 
  background: var(--bs-light); 
  border-left: 3px solid var(--bs-warning); 
}

/* Title bar */
.pcShowBg_titleBar { 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:.5rem; 
  margin-bottom:.5rem; 
}

/* Preserve line breaks in description  */
.pcShowBg_desc { 
  white-space: pre-line; 
  color: var(--text) !important;
}  

.pcShowBg_desc2 {
  color: var(--text) !important;
}

/* Traits/details table */
.pcShowBg_traitsTable { 
  width:100%; 
  border-collapse: collapse; 
  table-layout: fixed; 
}

.pcShowBg_traitsTable td { 
  vertical-align: top; 
  text-align: left; 
  padding:.5rem .75rem; 
  word-break: break-word; 
}

.pcShowBg_traitTableHeader { 
  font-weight:500; 
  color: var(--primary-700); 
  white-space: nowrap; 
  padding-right:15px; 
  width:34%; 
}

.pcShowBg_traitTableData { 
  width:66%; 
  font-weight:400; 
  color: var(--primary); 
}

.pcShowBg_traitTableData2 {
  width:66%; 
  font-weight:400; 
  color: var(--primary-700); 
  font-size: 0.85rem;
}

.pcShowBg_traitsTable tr + tr td { 
  border-top: 1px dotted rgba(0,0,0,.12); 
}

.pcShowBg_traitsTable2 tr + tr td { 
  border-top: none; 
}

/* Stack header then data below 1150px */
@media (max-width: 1150px) {
  .pcShowBg_traitsTable,
  .pcShowBg_traitsTable tbody,
  .pcShowBg_traitsTable tr,
  .pcShowBg_traitsTable td { display:block; width:100% !important; }
  .pcShowBg_traitsTable tr { padding:.5rem .75rem; border-bottom: 1px dotted rgba(0,0,0,.12); }
  .pcShowBg_traitTableHeader { padding:0 0 .25rem 0 !important; text-transform: uppercase; font-size:.85rem; letter-spacing:.02em; white-space: normal !important; }
  .pcShowBg_traitTableData { padding:0 0 .25rem 0 !important; }
  .pcShowBg_traitsTable tr + tr td { border-top: 0 !important; }
}

/* Transparent list group in our module */
#pcShowBg_bgMenu {
  --bs-list-group-bg: transparent;
  --bs-list-group-border-color: transparent;
  --bs-list-group-action-hover-bg: transparent;
  --bs-list-group-action-active-bg: transparent;
}
#pcShowBg_bgMenu .pcShowBg_bgItem {
  background-color: transparent !important;
  border: 0 !important;
  color: var(--primary);
}
#pcShowBg_bgMenu .pcShowBg_bgItem.active {
  background-color: rgb(from var(--primary) r g b / 0.25) !important;
  border-left: 3px solid var(--primary) !important;
  color: var(--primary-700) !important;
  font-weight: 400;
}
#pcShowBg_bgMenu .pcShowBg_bgItem:focus {
  box-shadow: none; /* optional: remove blue focus ring */
}

/* Stack both columns at ≤1000px */
@media (max-width: 1000px) {
  .pcShowBg_col { flex: 0 0 100% !important; max-width: 100% !important; }
  #pcShowBg_listGroupWrap { display: none !important; }   /* hide list on mobile */
  #pcShowBg_bgSelect { display: block !important; }       /* show select on mobile */
}

/* Wide: show list; hide select */
@media (min-width: 1001px) {
  #pcShowBg_listGroupWrap { display: block !important; }
  #pcShowBg_bgSelect { display: none !important; }
}

.pcShowBg_title {
  color: var(--primary) !important;
}

.pcShowBg_FeyTrait {
  margin-top: 25px;
  margin-left: 25px;
}

.pcShowBg_hr {
  color: rgb(from var(--primary) r g b / .475);
  width: 80%;
  margin-top: 25px;
  margin-bottom: 25px;
}

#pcShowBg_bgMenu {
  max-height: none !important;
  overflow: visible !important;
}

#pcShowBg_listGroupWrap {
  max-height: none !important;
  overflow: visible !important;
}

.pcShowBg_card { 
  background-color:  rgb(from var(--background-50) r g b / 0.675) !important; 
}

.pcShowBg_cardInfo { 
  background-color: rgb(from var(--background-50) r g b / 0.675) !important;
}

}


  .pcShowBg_titleBar{display:flex;align-items:center;gap:.75rem}
  .pcShowBg_toolbar{margin-left:auto}

  
  @media print {

    .pcShowBg_pcPrint_page { padding: 16px; font: 12pt/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; }
    .pcShowBg_pcPrint_title { margin: 0 0 8px; font-size: 20pt; }
    .pcShowBg_pcPrint_desc { color: #333; margin: 8px 0 16px; white-space: pre-wrap; }
    .pcShowBg_pcPrint_hr   { border: 0; border-top: 1px solid #999; margin: 16px 0; }

    .pcShowBg_traitsTable { width:100%; border-collapse: separate; border-spacing: 0 6px; }
    .pcShowBg_traitTableHeader { font-weight:600; vertical-align: top; width: 240px; }
    .pcShowBg_traitsTable tr { border-bottom: 1px dotted #bbb; }
  }
























/* PC Origins */
/* ---------------------------------------------------------------------------------------------- */

#pcOrigin {
  .card {
      background-color: rgb(from var(--background) r g b / 0.675);
      color: var(--text-800);
  }

  .bg-body-tertiary {
      background-color:  rgb(from var(--background-700) r g b / 0.125) !important;
  }
}

.pcOrigin_hidden { 
    display: none !important; 
}

.pcOrigin_muted { 
    color: #6c757d; 
}

.pcOrigin_mono { 
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; 
}

.pcOrigin_card-soft { 
    border-radius: 1rem; 
    box-shadow: 0 4px 18px rgba(0,0,0,.06); 
}

.pcOrigin_stage-range {
    font-size: .9rem; 
    color: var(--primary-700);
}

.pcOrigin_stage-desc { 
    font-size: .9rem; 
    color: var(--primary-500);
}

.pcOrigin_min-w-240 { 
    min-width: 240px; 
}

.pcOrigin_preline { 
    white-space: pre-line; 
}

.pcorigin_indent {
    margin-top: 15px;
    margin-left: 25px;
}

.pcorigin_indent strong {
    color: var(--text-700) !important;
    font-weight: 500;
    margin-right: 7px;
}

#bgReasonLine strong {

    color: var(--text-700) !important;
    font-weight: 500;
    border-bottom: 1px dotted rgb(from var(--text-700) r g b / 0.4);
    margin-right: 7px;
}

#classReasonLine strong {
            color: var(--text-700) !important;
    font-weight: 500;
    border-bottom: 1px dotted rgb(from var(--text-700) r g b / 0.4);
    margin-right: 7px;
}

#classReasonLine {
    margin-top: 20px !important;
}

.pcOrigin_you {
    display:inline-block; padding:2px 6px; border-radius:.375rem;
    background: rgb(from var(--background-700) r g b / 0.85);
    font-weight:500;
    color: var(--text-100);
}

.pcOrigin_hideText {
    display: none;
}

.pcOrigin_printHeader {
    font-size:1.5rem;
    font-weight:600;
    margin-bottom:.25rem
}

.pcOrigin_printSub {
    color:#6c757d;
    font-size:.9rem;
    margin-bottom:1rem
}

.pcOrigin_printGrid {
    display:grid;
    grid-template-columns:1fr;
    gap:12px
}

@media (min-width:768px) {
    .pcOrigin_printGrid {
        grid-template-columns:1fr 1fr
    }
}

.pcOrigin_printCard {
    border:1px solid rgba(0,0,0,.125);
    border-radius:.5rem;
    padding:1rem;
    background:#fff;
    page-break-inside:avoid
}

.pcOrigin_printTitle {
    font-weight:600;
    text-transform:uppercase;
    font-size:.8rem;
    color:#6c757d;
    margin-bottom:.25rem
}

.pcOrigin_printBody {
    white-space:pre-line;
    font-size:1rem
}

.pcOrigin_printKVs {
    font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
    font-size:.9rem
}

.pcOrigin_screenOnly {
    display:block
}

.pcOrigin_printOnly {
    display:none
}

.pcorigin-cardHeader {
    color: var(--primary-700) !important;
    font-size: 1em;
    font-weight: 600;
}

.pcorigin-cardHeader2 {
    color: var(--text-800) !important;
    font-size: 1em;
    font-weight: 500;
}

.pcorigin_sectionHeader {
    color: var(--primary-700) !important;
}

@media print{
    body *{ display:none !important; }
    #pcOrigin_printView, #pcOrigin_printView *{ display:block !important; }
    #pcOrigin_printView{ margin:0; padding:0; max-width:100%; }
    .pcOrigin_printGrid{ display:block !important; }      /* single column */
    .pcOrigin_printCard{ break-inside:auto; page-break-inside:auto; overflow:visible; }
    @page{ size:auto; margin:12mm; }
}

#pcOrigin .btn-primary {
    background-color: var(--primary-700);
    border-color: var(--primary-700);
}

#pcOrigin .btn-secondary {
    border-color: var(--background-500);
    background-color: var(--background-500);
}

#pcOrigin .btn-outline-secondary {
    border-color: var(--btn_primary-accent);
    background-color: rgb(from var(--btn_primary-accent) r g b / 0.5);
    color: var(--text-900);
}

#pcOrigin .btn-check:checked + .btn {
    background-color: var(--btn_primary);
    color: var(--background);
}

.pcorigin_traitTableHeader {
  color: var(--text-700) !important;
  font-weight: 500;
}

.pcorigin_traitTableData {
  color: var(--primary) !important;
}



/* Base: stacks naturally; ensure top-aligned & tidy */
.pcorigin_traitsList { margin: 0; }
.pcorigin_traitsList dt { 
  color: var(--text-700) !important;
  font-weight: 500;
  margin-top: .75rem;
  text-transform: none;
}
.pcorigin_traitsList dd { 
  margin: .25rem 0 0 0; 
}

/* Wide screens: line up as two columns */
@media (min-width: 1151px) {
  .pcorigin_traitsList { display: grid; grid-template-columns: 25% 1fr; column-gap: 15px; }
  .pcorigin_traitsList dt,
  .pcorigin_traitsList dd { margin: 0; padding: .25rem .25rem; }
  .pcorigin_traitsList dt { white-space: nowrap; }
  .pcorigin_traitsList dt:nth-of-type(n+2),
  .pcorigin_traitsList dd:nth-of-type(n+2) { border-top: 1px dotted rgb(from var(--primary-400) r g b / 0.1) }
}








































/* Races */
/* ---------------------------------------------------------------------------------------------- */

.species_card-custom {
    overflow: hidden;
    min-height: 450px;
    box-shadow: 0 0 15px rgb(from var(--primary-400) r g b / 0.3);
    background-color: var(--background);
    max-width: 600px;
    min-width: 300px;
}

.species_card-title {
    background-color: var(--background-300);
    width: 100%;
    font-family: "Faculty Glyphic", sans-serif;
    font-size: 1.25em;
    color: var(--text-700);
    border: 1px solid var(--primary);
    border-radius: 15px 15px 15px 15px;
    line-height: 1.5em;
    text-align: center;
}

.species_card-text {
    width: 100%;
    font-family: "Faculty Glyphic", sans-serif;
    font-size: 0.85em;
    color: var(--text-800);
}

.species_card-custom-img {
    height: 200px;
    min-height: 200px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-color: inherit;
    background-color: #000000;
    border: 1px solid var(--primary-700);

}

/* First border-left-width setting is a fallback */
.species_card-custom-img::after {
  position: absolute;
  content: '';
  top: 161px;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-top-width: 40px;
  border-right-width: 0;
  border-bottom-width: 0;
  border-left-width: 545px;
  border-left-width: calc(575px - 5vw);
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: var(--background);
}

.species_card-custom-avatar img {
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(10, 10, 10, 0.3);
  position: absolute;
  top: 100px;
  left: 1.25rem;
  width: 100px;
  height: 100px;
  background-color: var(--background);
  border: 5px solid var(--background-200);
}

.species_cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem; 
  }

.species_card-footer-border {
    border-color: #999B9B85 !important;
    border-top: 1px dotted;
    
}

.species_stat-badge { 
    border-radius: 7px !important; 
    height: 24px;
    font-weight: 300;
    font-size: 0.675em;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.species_stat-badge_size { 
    background-color: var(--btn_secondary);
    border-color: var(--btn_secondary-accent);
    color: var(--background-100);
}

.species_stat-badge_life { 
    background-color: var(--btn_info);
    border-color: var(--btn_info-accent);
    color: var(--background-100);
}

.species_stat-badge_playable { 
    background-color: var(--btn_success);
    border-color: var(--btn_success-accent);
    color: var(--background-100);
}

.species_stat-badge_nonplayable { 
    background-color: var(--btn_danger);
    border-color: var(--btn_danger-accent);
    color: var(--background-100);
}

#species_gridWrap { 
    position: relative; 
}


.species_race-overlay { 
    position: absolute; 
    top: 10px !important;
    inset:15px; 
    z-index:30; 
    opacity:0; 
    pointer-events:none;
    transition:opacity .2s ease; 
    background-color: rgb(from var(--background) r g b / 0.5);
}

.species_race-overlay.show { 
    opacity:1; 
    pointer-events:auto; 
}

.species_race-overlay-backdrop { 
    position:absolute;
    inset:0; 
    background:rgba(0,0,0,.45);
    backdrop-filter:saturate(120%) blur(2px);
}

.species_race-overlay-panel { 
    position:relative; 
    width:100%; 
    height: 100%; 
    background-color:rgb(from var(--background) r g b / 0.9) !important;
    background:#fff; border-radius:0rem; box-shadow:0 1rem 2rem rgba(0,0,0,.2);
    border: 3px solid var(--background-400); 
    overflow-y: auto; 
}

.species_race-overlay .btn-close { 
    position:absolute; 
    right:.75rem; 
    top:.75rem; 
    z-index:2; 
}

.species_overlay-imagewrapper {
    background: white;
    width: 100%;
    height: 480px;
    position: relative;
    overflow: hidden;
    border-radius: 0px !important;
}

.species_overlay-image-bg {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.species_overlay-blur-bg {
    position: absolute;
    left: -25px;
    right: -25px;
    top: -25px;
    bottom: -25px;
    background-color: white;
    -webkit-filter: blur(15px);
        -moz-filter: blur(15px);
            filter: blur(15px);
    transform: scale(2);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.species_overlay-close {
    /* border: 1px solid #ffffff !important; */
}

.species_race-header {
    color: #ffffff;
    padding: 1.5rem;
    text-align: center;
    font-size: 3rem;
}

.species_ov_title {
    color: var(--primary);
}

.species_ov_sourceText {
    font-size: 0.85rem;
    color: var(--primary-800);
}



.species_traits h5,
.species_long-description h5 {
    color: #b0c4de;
}

.species_traits p {
    margin-bottom: 0.5rem;
    color: var(--primary-900);
}

.species_long-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cccccc;
}

.species_info-card {
    background: transparent !important;
}

.species-padding-left {
    padding-left: 15px;
}

.species_info-card-headers {
    width: 100%;
    height: 40px;
    line-height: 40px;
    position: relative;
    margin-top: auto;
    margin-bottom: auto;
    border-bottom: 1px dotted rgb(from var(--primary-400) r g b / 0.6);
    color: var(--primary-700);
}

.species_info-card-data {
    min-height: 30px;
    position: relative;
    margin-top: auto;
    margin-bottom: auto;
    padding-left: 35px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-top: 5px;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.75rem;
    font-family: "Nunito Sans";
    color: var(--primary-900);
}

.species_info-card h6 {
    font-weight: 550;
    margin-bottom: 0.25rem;
    color: var(--primary-700);
}

.species_info-card h5 {
    font-weight: 550;
    margin-bottom: 0.25rem;
    color: var(--primary-700);
}

.species-border-right {
    border-right: 1px solid rgb(from var(--primary-400) r g b / 0.35);
}

.species_info-card p {
    margin-bottom: 0;
    color: var(--primary-900);
}

#races .card {
    width: 100%;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgb(from var(--background-900) r g b / 0.6);
}

#races .btn-primary {
    background-color: var(--primary-700);
    border-color: var(--primary-700);
}

#races .btn-secondary {
    border-color: var(--background-500);
    background-color: var(--background-500);
}

#races .btn-outline-secondary {
    border-color: var(--btn_primary);
    color: var(--primary);
}

#races .btn-check:checked + .btn {
    background-color: var(--btn_primary);
    color: var(--background);
}

#reset.btn-outline-secondary {
  color: var(--secondary);         
  border-color: var(--secondary);
  background-color: transparent;
}

/* Hover state */
#reset.btn-outline-secondary:hover {
  color: #fff;                  
  background-color: var(--btn_warning); 
  border-color: var(--btn_warning-accent);
}

/* Active (pressed) state */
#reset.btn-outline-secondary:active {
  color: #fff;
  background-color: var(--secondary-accent); 
  border-color: var(--secondary-accent);
  box-shadow: 0 0 0 .2rem rgba(154, 126, 73, .25);
}

#reset.btn-outline-secondary:focus {
  color: var(--secondary);
  background-color: transparent;
  border-color: var(--secondary);
  box-shadow: none; 
}

.raceOverlayModal {
    align-items: center;
    margin-top: 200px;
}

.species_check_success {
    color: var(--btn_success);
    margin-right: 5px;
}

.species_check_fail {
    color: var(--btn_danger);
    margin-right: 5px;
}

.species_ld_header {
    margin-top: 25px;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--primary);
    font-family: "Faculty Glyphic", sans-serif;
    margin-left: -15px;
}

.species_ld_text {
    color: var(--primary-900);
    margin-top: 15px;
    font-size: 1rem;
    line-height: 1.75rem;

}







































/* Equipment Tables */
/* ---------------------------------------------------------------------------------------------- */


#equipTables .btn-primary {
    background-color: var(--primary-700);
    border-color: var(--primary-700);
}

#equipTables .btn-secondary {
    border-color: var(--background-500);
    background-color: var(--background-500);
}

#equipTables .btn-outline-secondary {
    border-color: var(--btn_primary-accent);
    background-color: rgb(from var(--btn_primary-accent) r g b / 0.5);
    color: var(--text-900);
}

#equipTables .btn-check:checked + .btn {
    background-color: var(--btn_primary);
    color: var(--background);
}

/* Equipment Tables */
#equipTables {
  /* container-specific tweaks if needed */
}

/* Utility: flex row for little control groups */
#equipTables .equipTables_flex { display:flex; align-items:center; gap:.5rem; }

/* Utility: compact checkbox alignment when a checkbox gets a class applied */
#equipTables .equipTables_checkbox { vertical-align:middle; margin-right:.35rem; }

/* Utility: clamp long names/descriptions to 2 lines */
#equipTables .equipTables_truncate-2 {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}

#equipTables table.table {
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  background-color: var(--background);
  color: var(--text-900);
}

#equipTables thead th {
  background: linear-gradient(0deg, var(--background-200), var(--background-100));
  color: var(--primary-800);
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: sticky; top: 0; z-index: 1;
}

#equipTables tbody tr {
  border-bottom: 1px dotted rgba(0,0,0,.08);
}

#equipTables tbody tr.item-row:hover {
  background-color: rgb(from var(--btn_light) r g b / 0.35);
}

#equipTables tbody tr.details-row:hover {
  background: none;
}

#equipTables .form-control, 
#equipTables .form-select {
  background-color: var(--background-50);
  border-color: var(--background-400);
  color: var(--text-900);
}

#equipTables .form-control:focus, 
#equipTables .form-select:focus {
  border-color: var(--btn_primary-accent);
  box-shadow: 0 0 0 .2rem rgb(from var(--btn_primary-accent) r g b / .25);
}

/* Soft stat badges */
#equipTables .equipTables_badge {
  display:inline-block; padding:.15rem .45rem; border-radius:.5rem;
  background: rgb(from var(--btn_info) r g b / .2);
  border: 1px solid var(--btn_info-accent);
  font-size:.8rem; font-weight:500;
}

/* Hide Low/High Price columns below 1100px */
@media (max-width: 1100px) {
  #equipTables th.lowPrice,
  #equipTables td.lowPrice,
  #equipTables th.highPrice,
  #equipTables td.highPrice {
    display: none;
  }
}

/* Collapsible details row */
#equipTables .details-row[hidden] { display: none; }

#equipTables .equipTables_detailsPanel {
  padding: .75rem 1rem;
  border-left: 3px solid var(--primary-400);
  background: rgb(from var(--background-50) r g b / .8);
  border-radius: .25rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

/* Tiny chevron button */
#equipTables .row-toggle {
  line-height: 1;
  padding: .15rem .35rem;
  font-size: 1.25rem;
  margin-right: .4rem;
  color: var(--primary);
}

@media (max-width: 1099.98px) {
  #equipTables th.lowPrice,
  #equipTables td.lowPrice,
  #equipTables th.highPrice,
  #equipTables td.highPrice {
    display: none;
  }
}

#equipTables .equipTables_detailsPanel {
  padding: .75rem 1rem;
  border-left: 3px solid var(--primary-400);
  background: rgb(from var(--background) r g b / .875);
  border-radius: .25rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
  margin-left: 2.5rem;
}

#equipTables table.table.table-hover tbody tr.item-row:hover,
#equipTables table.table.table-hover tbody tr.item-row:hover > td {
  background-color: rgb(from var(--background) r g b / 0.05) !important; 
}

#equipTables table.table.table-hover tbody tr.details-row {
  --bs-table-hover-bg: transparent; 
}

/* Toggle switch (themed) */
#equipTables .equipTables_switch {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  user-select: none;
}

#equipTables .equipTables_switch_text {
  font-size: .95rem;
  line-height: 1.2;
  color: var(--text-900);
}

#equipTables .equipTables_switch_input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Track */
#equipTables .equipTables_switch_track {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 1px;
  background: var(--background-400);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.12);
  transition: background .2s ease;
}

/* Thumb */
#equipTables .equipTables_switch_thumb {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 10%;
  background: var(--background);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transform: translateY(-50%);
  transition: left .22s cubic-bezier(.35,.9,.3,1.3), box-shadow .2s;
}

/* ON state */
#equipTables .equipTables_switch_input:checked + .equipTables_switch_track {
  background: var(--btn_primary);
  box-shadow: inset 0 2px 6px rgb(0 0 0 / .08);
}

#equipTables .equipTables_switch_input:checked + .equipTables_switch_track .equipTables_switch_thumb {
  left: calc(100% - 3px - 24px);
}

/* Focus ring for accessibility */
#equipTables .equipTables_switch_input:focus-visible + .equipTables_switch_track {
  outline: 2px solid var(--btn_primary-accent);
  outline-offset: 2px;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  #equipTables .equipTables_switch_track,
  #equipTables .equipTables_switch_thumb {
    transition: none;
  }
}

.equipTables_coin {
    width: 28px;
    margin-right: 7px;
}

.equipTables_coinSection {
    margin-right: 25px;
    display: inline-block;
}

#equipTables .details-row[hidden] { display: none; }

#equipTables .equipTables_collapse {
  overflow: hidden;

  opacity: 0;
  transition: max-height .25s ease, opacity .2s ease;
}

.equipTables_detailsPanel strong {
    color: var(--primary);
    font-weight: 400;
    font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  #equipTables .equipTables_collapse {
    transition: none;
  }
}

#equipTables table.equipDetailsTable,
#equipTables table.equipDetailsCoin {
  width: 95%;
  margin: 0 auto;
  border-collapse: separate;            
  table-layout: fixed;                 
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: transparent;
  --bs-table-border-color: transparent;
}





#equipTables table.equipDetailsTable th,
#equipTables table.equipDetailsTable td,
#equipTables table.equipDetailsCoin th,
#equipTables table.equipDetailsCoin td {
  text-align: center;
  vertical-align: middle;
  padding: .5rem .75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent !important;
  border: 0 !important;
}

/* Header look */
#equipTables table.equipDetailsTable thead th,
#equipTables table.equipDetailsCoin thead th {
  position: static !important;          /* cancel sticky/gradients */
  box-shadow: none !important;
  border-bottom: 1px dotted color-mix(in srgb, var(--primary) 90%, transparent);
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
}


#equipTables table.equipDetailsTable col { width: calc(100% / 3); }


#equipTables table.equipDetailsCoin.table-hover tbody tr:hover > *,
#equipTables table.equipDetailsTable.table-hover tbody tr:hover > * {
  background-color: transparent !important;
}
#equipTables table.equipDetailsCoin.table-striped > tbody > tr:nth-of-type(odd) > *,
#equipTables table.equipDetailsTable.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: transparent !important;
}
#equipTables .nowrap { white-space: nowrap !important; }

/* =========================
   Desktop tweaks
   ========================= */

@media (min-width: 1000px) {
  #equipTables table.equipDetailsCoin tr {
    display: grid;
    grid-template-columns: 1fr auto;    /* label | value */
    gap: .25rem .75rem;
  }
  #equipTables table.equipDetailsCoin th,
  #equipTables table.equipDetailsCoin td { display: block; white-space: nowrap; }
}

/* =========================
   Mobile stacking (<1000px)
   ========================= */
@media (max-width: 1000px) {

  #equipTables table.equipDetailsTable thead,
  #equipTables table.equipDetailsCoin thead {
    position: absolute;
    left: -9999px; top: -9999px;
  }


  #equipTables table.equipDetailsTable,
  #equipTables table.equipDetailsTable tbody,
  #equipTables table.equipDetailsTable tr,
  #equipTables table.equipDetailsTable td,
  #equipTables table.equipDetailsCoin,
  #equipTables table.equipDetailsCoin tbody,
  #equipTables table.equipDetailsCoin tr,
  #equipTables table.equipDetailsCoin td {
    display: block;
    width: 100%;
  }

  #equipTables table.equipDetailsTable tr,
  #equipTables table.equipDetailsCoin tr {
    margin-bottom: .75rem;
  }

  /* Data-labels (inline style) */
  #equipTables .equipDetailsTable,
  #equipTables .equipDetailsCoin {
    --label-width: 10ch;
    --label-color: var(--primary);
  }

  #equipTables .equipDetailsTable td,
  #equipTables .equipDetailsCoin td {
    position: relative;
    white-space: normal;
    padding-left: calc(var(--label-width) + .75rem);
  }

  #equipTables .equipDetailsTable td::before,
  #equipTables .equipDetailsCoin td::before {
    content: attr(data-label) ":";
    position: absolute;
    left: .75rem; top: .5rem;
    min-width: var(--label-width);
    letter-spacing: .02em;
    font-weight: 300;
    white-space: nowrap;
  }
}


@media (min-width: 1000px) {
  #equipTables table.equipDetailsCoin {
    table-layout: auto;              
    width: 95%;
  }

  
  #equipTables table.equipDetailsCoin         { display: table; }
  #equipTables table.equipDetailsCoin thead   { display: table-header-group; }
  #equipTables table.equipDetailsCoin tbody   { display: table-row-group; }
  #equipTables table.equipDetailsCoin tr      { display: table-row; }
  #equipTables table.equipDetailsCoin th,
  #equipTables table.equipDetailsCoin td      { display: table-cell; }


  #equipTables table.equipDetailsCoin thead th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ===== Mobile (<1000px): stack rows and show data-labels ===== */
@media (max-width: 1000px) {
  #equipTables table.equipDetailsCoin thead {
    position: absolute; left: -9999px; top: -9999px;
  }
  #equipTables table.equipDetailsCoin,
  #equipTables table.equipDetailsCoin tbody,
  #equipTables table.equipDetailsCoin tr,
  #equipTables table.equipDetailsCoin td {
    display: block; width: 100%;
  }
  #equipTables table.equipDetailsCoin tr { margin-bottom: .75rem; }
  #equipTables table.equipDetailsCoin td {
    position: relative; padding-left: 8ch; white-space: normal;
  }
  #equipTables table.equipDetailsCoin td::before {
    content: attr(data-label);
    position: absolute; left: .75rem; top: .5rem; font-weight: 300;
  }
}

@media (max-width: 680px) {
  /* apply to BOTH tables;  */
  #equipTables .equipDetailsTable td,
  #equipTables .equipDetailsCoin  td {
    /* remove left gutter used by inline labels */
    padding-left: .75rem;
    white-space: normal;           /* allow value to wrap */
    overflow-wrap: anywhere;       /* break long tokens */
    word-break: break-word;        /* legacy fallback */
  }

  #equipTables .equipDetailsTable td::before,
  #equipTables .equipDetailsCoin  td::before {
    content: attr(data-label);     /* label without trailing colon, or add ":" if you like */
    position: static;              /* no absolute positioning */
    display: block;                /* put label on its own line */
    margin: .25rem 0 .125rem;      /* space between label and value */
    font-size: .85rem;
    font-weight: 300;
    white-space: nowrap;           /* keep the label itself on one line */
  }
}

@media (min-width: 680px) and (max-width: 1000px) {
  #equipTables .equipDetailsTable,
  #equipTables .equipDetailsCoin {
    --label-width: clamp(8ch, 28vw, 14ch); 
  }
}

/* Force stacked labels for equipDetailsCoin below 580px */
@media (max-width: 680px) {
  #equipTables table.equipDetailsCoin td {
    padding-left: .75rem !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  #equipTables table.equipDetailsCoin td::before {
    /* stack label above value */
    content: attr(data-label);
    position: static !important; 
    display: block !important;    
    margin: .25rem 0 .125rem;
    font-size: .85rem;
    font-weight: 300;
    min-width: 0;                
    left: auto; top: auto; 
    white-space: nowrap;
  }
}

  /* Make table + rows transparent */
  #equipTables table.table { background: #ffffff85 !important; }
  #equipTables table.table tbody tr,
  #equipTables table.table tbody tr > * {
    background-color: transparent !important;
  }

  /* Bootstrap 5: kill stripe/hover via CSS vars */
  #equipTables .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: transparent !important;
  }
  #equipTables .table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: transparent !important;
    background-color: transparent !important; /* extra belt */
  }

  /* Bootstrap 3/4 fallback (in case you’re mixing) */
  #equipTables .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: transparent !important;
  }
  #equipTables .table-hover > tbody > tr:hover {
    background-color: transparent !important;
  }

  /* Optional: subtle borders that work on transparent bg */
  #equipTables .table td, 
  #equipTables .table th {
    border-color: rgba(255,255,255,.12); /* tweak for your theme */
  }

  


#equipTables {
  input {
  box-shadow: 0;
  outline: 0;
}
.range-slider {
  width: 300px;
  margin: auto;
  text-align: center;
  position: relative;
  height: 6em;
}
.range-slider svg,
.range-slider input[type=range] {
  position: absolute;
  left: 0;
  bottom: 0;
}
input[type=number] {
  border: 1px solid #ddd;
  text-align: center;
  font-size: 1.6em;
  -moz-appearance: textfield;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type=number]:invalid,
input[type=number]:out-of-range {
  border: 2px solid #ff6347;
}
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]:focus::-webkit-slider-runnable-track {
  background: var(--background-500);
}
input[type=range]:focus::-ms-fill-lower {
  background: var(--background-500);
}
input[type=range]:focus::-ms-fill-upper {
  background: var(--background-500);
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  animate: 0.2s;
  background: var(--background-500);
  border-radius: 1px;
  box-shadow: none;
  border: 0;
}
input[type=range]::-webkit-slider-thumb {
  z-index: 2;
  position: relative;
  box-shadow: 0px 0px 0px #000;
  border: 1px solid var(--primary);
  height: 18px;
  width: 18px;
  border-radius: 25px;
  background: rgb(from var(--background) r g b / 0.675);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -7px;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  animate: 0.2s;
  background: #2497e3;
  border-radius: 1px;
  box-shadow: none;
  border: 0;
}
input[type=range]::-moz-range-thumb {
  z-index: 2;
  position: relative;
  box-shadow: 0px 0px 0px #000;
  border: 1px solid var(--primary);
  height: 18px;
  width: 18px;
  border-radius: 25px;
  background: #a1d0ff;
  cursor: pointer;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  animate: 0.2s;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
input[type=range]::-ms-fill-lower,
input[type=range]::-ms-fill-upper {
  background: var(--primary);
  border-radius: 1px;
  box-shadow: none;
  border: 0;
}
input[type=range]::-ms-thumb {
  z-index: 2;
  position: relative;
  box-shadow: 0px 0px 0px #000;
  border: 1px solid #2497e3;
  height: 18px;
  width: 18px;
  border-radius: 25px;
  background: #a1d0ff;
  cursor: pointer;
}

}

#equipTables .range-slider > span{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;   /* <-- centers the line */
  text-align: center;        /* centers the text inside */
  gap: .35rem .5rem;
  width: 100%;
  margin-bottom: .35rem;
}

/* make the <br> force a full-width line break within flex */
#equipTables .range-slider > span br{
  flex-basis: 100%;
  height: 0;
  content: "";
}

/* compact numeric fields (keep your earlier tweaks) */
#equipTables .range-slider > span input[type="number"]{
  width: 72px;
  height: 28px;
  padding: 2px 6px;
  font-size: .85rem;
  line-height: 1.2;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: var(--text, #e6e6e6);
  outline: none;
}

/* add space between the Low input and the 'High:' label */
#equipTables .range-slider > span input[type="number"]:first-of-type{
  margin-right: 12px;
}


/* === Responsive enhancements layered on top of your existing rules === */
/* Make container responsive (keep centered) */
#equipTables .range-slider{
  width: 100%;              /* was fixed 300px */
  max-width: 420px;         /* tweak as you like */
  margin-left: auto;
  margin-right: auto;

  /* Responsive tokens */
  --rs-input-w: 72px;       /* number input width (base)  */
  --rs-input-h: 28px;       /* number input height (base) */
  --rs-thumb:   18px;       /* thumb size (base)          */
  --rs-track-h: 5px;        /* your current track height  */

  /* compute vertical offset so thumb centers on track */
  --rs-offset-y: calc((var(--rs-track-h) - var(--rs-thumb)) / 2);
}

/* Use the tokens for your compact numeric fields */
#equipTables .range-slider > span input[type="number"]{
  width: var(--rs-input-w);
  height: var(--rs-input-h);
}

/* Ensure the track height follows the token (keeps your background color) */
#equipTables input[type=range]::-webkit-slider-runnable-track{
  height: var(--rs-track-h) !important;
}
#equipTables input[type=range]::-moz-range-track{
  height: var(--rs-track-h) !important;
}
#equipTables input[type=range]::-ms-track{
  height: var(--rs-track-h) !important;
}

/* Size and vertically align thumbs using tokens (preserves your colors/borders) */
#equipTables input[type=range]::-webkit-slider-thumb{
  width: var(--rs-thumb) !important;
  height: var(--rs-thumb) !important;
  margin-top: calc((var(--rs-track-h) - var(--rs-thumb)) / 2) !important; /* WebKit centers via margin */
}
#equipTables input[type=range]::-moz-range-thumb{
  width: var(--rs-thumb) !important;
  height: var(--rs-thumb) !important;
  /* Firefox ignores margin-top on thumb; use translateY */
  transform: translateY(var(--rs-offset-y));
}

/* --- Breakpoints: scale inputs, thumb, and track --- */

/* Mobile */
@media (max-width: 575.98px){
  #equipTables .range-slider{
    --rs-input-w: 96px;
    --rs-input-h: 36px;
    --rs-thumb:   26px;
    --rs-track-h: 6px;
  }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991.98px){
  #equipTables .range-slider{
    --rs-input-w: 84px;
    --rs-input-h: 32px;
    --rs-thumb:   22px;
    --rs-track-h: 5px;
  }
}

/* Large / Desktop (tighten slightly) */
@media (min-width: 1200px){
  #equipTables .range-slider{
    --rs-input-w: 80px;
    --rs-input-h: 30px;
    --rs-thumb:   18px;
    --rs-track-h: 4px;  /* a hair thinner on big screens */
  }
}

/* Keep the Low/High row from wrapping by allowing inputs to shrink */
#equipTables .range-slider > span{
  /* we still want the label line-break from your <br> */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;            /* second line exists (after <br>) */
  gap: .35rem .5rem;          /* base gaps */
  white-space: nowrap;        /* keep "Low:" and "High:" on one line */
}

/* Inputs honor a shrinkable basis and won’t force wrap */
#equipTables .range-slider > span input[type="number"]{
  flex: 0 1 var(--rs-input-w);   /* allow shrinking */
  min-width: 48px;               /* safety floor so it never gets tiny */
  width: var(--rs-input-w);
}

/* Slight space after the Low value (can be reduced at tight widths) */
#equipTables .range-slider > span input[type="number"]:first-of-type{
  margin-right: 12px;
}

/* ---------- targeted breakpoints to avoid the 1955px wrap ---------- */

/* First, reduce gaps a touch as space tightens */
@media (max-width: 2200px){
  #equipTables .range-slider > span{ gap: .3rem .45rem; }
}

/* 2116px: narrow the inputs a bit so both stay on one line */
@media (max-width: 2116px){
  #equipTables .range-slider{ --rs-input-w: 66px; }
  #equipTables .range-slider > span input[type="number"]:first-of-type{ margin-right: 10px; }
}

/* 2000px: trim a little more and tighten gaps */
@media (max-width: 2000px){
  #equipTables .range-slider{ --rs-input-w: 60px; }
  #equipTables .range-slider > span{ gap: .26rem .38rem; }
  #equipTables .range-slider > span input[type="number"]:first-of-type{ margin-right: 8px; }
}

/* 1955px (your problem point): make sure they **stay** on one line */
@media (max-width: 1955px){
  #equipTables .range-slider{ --rs-input-w: 56px; }
  #equipTables .range-slider > span{ gap: .22rem .32rem; }
  #equipTables .range-slider > span input[type="number"]{ padding: 1px 4px; }
  #equipTables .range-slider > span input[type="number"]:first-of-type{ margin-right: 6px; }
}

/* If the column gets even tighter later, keep shrinking gracefully */
@media (max-width: 1800px){
  #equipTables .range-slider{ --rs-input-w: 52px; }
}
@media (max-width: 1680px){
  #equipTables .range-slider{ --rs-input-w: 50px; }
  #equipTables .range-slider > span{ gap: .2rem .28rem; }
}


@-moz-document url-prefix() {
  #equipTables .range-slider {
    display: none !important;   /* removes the whole widget (inputs + sliders + svg) */
  }
}

#equipTables .equipTables_checkbox{
  display:flex; align-items:center; gap:.5rem;
}
#equipTables .equipTables_switch_text{ white-space:nowrap; }

#equipTables .equipTables_exoticCheck .tgl.tgl-flip + .tgl-btn{
  width: 70px;               /* ↑ widen the switch */
  height: 32px;              /* ↑ height if needed */
}

/* Keep the inner labels centered in the new size */
#equipTables .equipTables_exoticCheck .tgl.tgl-flip + .tgl-btn::before,
#equipTables .equipTables_exoticCheck .tgl.tgl-flip + .tgl-btn::after{
  line-height: 36px;         /* match height */
  font-size: 12px;           /* readable at the larger size */
  padding: 0 .5rem;
  white-space: nowrap;
}

#equipTables #equipTables_roundToggleWrap{
  gap: .5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}
#equipTables .equipTables_switch_text{ white-space: nowrap; }

 /* If you used the earlier size tweaks for the flip, keep them; optional recap: */
#equipTables .equipTables_exoticCheck .tgl.tgl-flip + .tgl-btn{
  width: 92px; height: 36px;   /* or your preferred size */
}
#equipTables .equipTables_exoticCheck .tgl.tgl-flip + .tgl-btn::before,
#equipTables .equipTables_exoticCheck .tgl.tgl-flip + .tgl-btn::after{
  line-height: 36px; font-size: 12px; padding: 0 .5rem; white-space: nowrap;
}

/* Optional: on very small screens, let it left-align instead of overflowing */
@media (max-width: 576px){
  #equipTables #equipTables_roundToggleWrap{ justify-content: flex-start; }
}

#equipTables table.equipDetailsTable {
  background-color: rgb(from var(--primary-600) r g b / 0.125) !important;
}