/**********************************************
 * SECTION A — Purpose
 * Add-on styles that DO NOT override main rules.
 * Safe to load after styles/rollend.css.
 **********************************************/

/**********************************************
 * SECTION B — Accessibility Helpers
 **********************************************/
#dice:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* Screen-reader only helper */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/**********************************************
 * SECTION C — Micro Utilities (optional, low-risk)
 **********************************************/
/* Small spacing helpers you can use in markup if needed */
.u-mt-8  { margin-top: 8px;  }
.u-mt-12 { margin-top: 12px; }
.u-mt-16 { margin-top: 16px; }
.u-mb-8  { margin-bottom: 8px;  }
.u-mb-12 { margin-bottom: 12px; }
.u-mb-16 { margin-bottom: 16px; }

.u-flex      { display: flex; }
.u-flex-wrap { flex-wrap: wrap; }
.u-center    { justify-content: center; align-items: center; }

/**********************************************
 * SECTION D — Optional Theme Hooks (commented)
 **********************************************/
/* Example (uncomment to use)
:root {
  --rc-shadow-strong: 0 4px 12px rgba(0,0,0,0.35);
}
#resultsTableContainer { box-shadow: var(--rc-shadow-strong); }
*/

/* === Results panel pinned at the board's bottom-right === */
#grid { position: relative; } /* ensure positioning context */

.at-grid-bottom-right {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: min(340px, 36%);
  max-height: 46vh;
  overflow: auto;

  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.22);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  backdrop-filter: blur(2px);
}

.at-grid-bottom-right table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.at-grid-bottom-right th,
.at-grid-bottom-right td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.at-grid-bottom-right th {
  background: #f3f6fb;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* === Tiny black border for bottom "ROLLCYCLING" title === */
/* Use whichever selector matches your footer element.
   If none match, add id="bottomTitle" OR class="rollcycling-footer-title" to that element. */
#bottomTitle,
.bottom-title,
.rollcycling-footer-title {
  -webkit-text-stroke: 0.6px #000; /* crisp hairline stroke where supported */
  paint-order: stroke fill;
  /* Fallback outline for browsers without text-stroke */
  text-shadow:
    0 0 0.5px #000,
    0.4px 0   0   #000,
   -0.4px 0   0   #000,
    0   0.4px 0   #000,
    0  -0.4px 0   #000;
}












