/** /css/components.css */
/* ==========================================================
    Sudoku Paradise — Components ~ Diamond Feng Shui Edition
           Christined October 17, 2025 Pristinity Day
   ----------------------------------------------------------
   Buttons, toggles, swatch dots, and indicator lights
   Principles:
     - Pristine = untouched
     - Lift on hover
     - Indicators awaken only by intent
     - Modular & Feng Shui compliant
   ========================================================== */

/** ======================================= 
            --- Button Base ---
    ======================================= */
button {
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  /* border: 1px solid #ccc; */
  background: var(--panel-bg);
  /* background: transparent; */
  color: var(--panel-fg); /* inherit; */
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  border-radius: 0.4rem;
  /* border-radius: 0.25rem; */
  padding: 0.25em 0.6em;
}
button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  background: color-mix(in oklab, var(--accent) 10%, var(--panel-bg));
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/** ======================================= 
            --- Toggle Buttons ---
    ======================================= */
.toggle {
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 0.25em 0.5em;
}
.toggle.active {
  background-color: var(--highlight, #48cae4);
  color: var(--fg-color, #000);
}

/** ======================================= 
       --- Universal Indicator Dot ---
    ======================================= */
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #999;
  box-shadow: 0 0 4px color-mix(in oklab, var(--accent) 50%, transparent);
  background: transparent; /* pristine = untouched */
  transition: box-shadow 0.4s ease, background-color 0.4s ease;
  /* transition: background 0.2s ease, box-shadow 0.2s ease; */
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  position: relative;
  top: -1.5px;
  gap: 0.4em;
  background-color: var(--swatch-color);
  border: 1px solid var(--swatch-border);
  box-shadow: 0 0 6px var(--swatch-color);
  transition: var(--transition-env);
}

/** ======================================= 
                --- States ---
    ======================================= */
.dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transition: var(--transition-env);
}

.dot::after {
  content: "";
  position: absolute;
  inset: -4px;          /* halo thickness */
  border-radius: 50%;
  opacity: 0.6;
  filter: blur(6px);
  transition: inherit;
}

/* --- States --- */
.dot.pristine,
.dot.transparent {
  background: transparent;
  box-shadow: none;
}
.dot.transparent::after { background: transparent; }

.dot.green {
  background: #39ff14;
  box-shadow: 0 0 8px #39ff14, 0 0 12px #39ff14;
}
.dot.green::after { background: #39ff14; }

.dot.red {
  background: #ff073a;
  box-shadow: 0 0 8px #ff073a, 0 0 14px #ff4500;
}
.dot.red::after { background: #ff4500; }


/** ======================================= 
           --- Indicator Lights ---
    ======================================= */
.indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #999;
  background: transparent;
  transition: background 0.2s ease;
}
.indicator.active { background-color: var(--highlight, #48cae4); }

/** ======================================== --
            --- Start|Quit Button --- 
--- ======================================== */
#startBtn {
  display: inline-flex;       /* give it a layout box */
  align-items: center;        /* center dot and label */
  gap: 0.5em;
  cursor: pointer;
  user-select: none;
  background: var(--panel-bg);
  color: var(--panel-fg);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: 0.4rem;
  padding: 0.25em 0.6em;
  transition: var(--transition-env);
}


/** ======================================== --
            --- Reset Button --- 
--- ======================================== */
#resetBtn {
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  user-select: none;
  background: var(--panel-bg);
  color: var(--panel-fg);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: 0.4rem;
  padding: 0.25em 0.6em;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/** ======================================== --
            --- Tools Dropdown --- 
--- ======================================== */

.tools-pane {
  position: relative;
  display: inline-block;
}

#toolsBtn {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  user-select: none;
  background: var(--panel-bg);
  color: var(--panel-fg);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: 0.4rem;
  padding: 0.25em 0.6em;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.tools-menu,
.custom-menu {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  list-style: none;
  padding: 0.25em 0;
  min-width: 220px;
}

.tools-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25em;
  z-index: 1000;
}

/* Tools menu divider — old-school Windows separator */
.tools-menu .menu-divider {
  height: 0;
  margin: 6px 8px;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.35);
  list-style: none;
  pointer-events: none;
}

.custom-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 0.2em;
  z-index: 1100;
}

.tools-menu.hidden,
.custom-menu.hidden {
  display: none;
}

.tools-menu li,
.custom-menu li {
  position: relative;
  display: block;
  text-align: left;
  white-space: nowrap;
  padding: 0.34em 1.8em 0.34em 0.9em;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tools-menu li:hover,
.custom-menu li:hover {
  background: #f0f0f0;
}

.tools-menu li.active {
  font-weight: bold;
  background: #dff7ff;
}

.has-submenu {
  position: relative;
  padding-right: 2em;
}

/* submenu arrow */
.has-submenu::after {
  content: "▸";
  position: absolute;
  right: 0.7em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9em;
  opacity: 0.7;
  pointer-events: none;
}

/* open submenu on hover */
.has-submenu:hover > .custom-menu {
  display: block;
}

/* optional separators */
.tools-menu li.separator,
.custom-menu li.separator {
  height: 1px;
  padding: 0;
  margin: 0.25em 0;
  background: #ddd;
  cursor: default;
}

/* separator should not highlight */
.tools-menu li.separator:hover,
.custom-menu li.separator:hover {
  background: #ddd;
}

/** ======================================= --
          --- Difficulty Dropdown --- 
--- ======================================= */
.difficulty-pane { position: relative; display: inline-block; }

#difficultyButton {
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  user-select: none;
  background: var(--panel-bg);
  color: var(--panel-fg);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: 0.4rem;
  padding: 0.25em 0.6em;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.difficulty-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25em;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 1000;
  list-style: none;
  padding: 0.25em;
  width: 150px;
}
.difficulty-menu.hidden { display: none; }
.difficulty-menu li {
  padding: 0.25em 0.5em;
  cursor: pointer;
  transition: background 0.2s ease;
}
.difficulty-menu li:hover { background: #f0f0f0; }
.difficulty-menu li.active {
  font-weight: bold;
  background: #dff7ff;
}

/** ============================================================================================================================================================================ 
    -- Theme Manager Owner's Manual -- =========================================================================================================================================
--- ============================================================================================================================================================================
        Item            Example   Description
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    --bg:             #f8f3e3 ~ Wallpaper Background (Overall Tint) 
    --fg:             #2e2615 ~ Readability All Text (incl: Button Titles, chosen Swatch Dot Border, Footer & Website Text) & extra outer swatch border contrast if not selected
    --grid-bg:        #f4ebd4 ~ Grid Cells tone (Background layer behind cells)

                        These next four: give ideal contrast without harshness.
    --grid-line:      #b7a272 ~ Desaturated ~ (bright lines) Frame the 9×9 lattice, ideal contrast without harshness. The muted brass tone gives definition without glare. Lines are visible but never “neon” against --grid-bg.
    --cell-bg:        #faf6e9 ~ Soft polish surface layer ~ Surface under digits. Slightly lighter than grid background, so the eye reads separation through subtle luminance—not hard borders. 
    --cell-fg:        #352c18 ~ Crisp deep inked engraving color ~ Digit ink. Warm near-black yields high legibility but keeps the page organic; no cold black-on-white fatigue.
    --hover:          #ede3c8 ~ Flare of reflected light faintly deeper color tint when hovered ~ Tactile highlight. One step deeper in value, so focus is drawn by soft shadowing rather than brightness flash. 

    --panel-bg:       #f6eedc ~ Control panel texture ~ Swatch Pallet Background 
    --panel-fg:       #2e2615 ~ Consistent deep contrast readable text ~ eg. StoryBook Title text 
    --accent:         #c9ae76 ~ Accent for highlights ~ Grid Block & Swatch Border 
    --swatch-color:   #f0e6cc ~ Preview swatch tone matches cells polish ~ Swatch Sample (Swatch-Dot if chosen on hover only!) 

    ============================================================================================================================================================================
    ** END OWNER'S MANUAL ** ===================================================================================================================================================
    ============================================================================================================================================================================ */
/* ==========================================================
          Sudoku Paradise — Theme Dropdown (Retrofit)
   ----------------------------------------------------------
   • Unified Diamond hierarchy (no prefixes)
   • Pristine = untouched
   • Swatch-dot = functional state indicator (not decoration)
   • Dropdown behaves like Difficulty Menu
   • 4×5 grid restored (no flex redundancies)
   • Mirrors Difficulty Discipline | Feng Shui Balanced
   ========================================================== */

/* === Dropdown Container === */
/* ==========================================================
   Theme Dropdown — Feng Shui Retrofitted
   ----------------------------------------------------------
   Disciplined under DifficultyMenu doctrine.
   Compliant with universal .dot baseline.
   ========================================================== */
/* /css/components/theme-pane.css */
/* ==========================================================
   THEME PANE — DIAMOND DISCIPLINE EDITION
   ----------------------------------------------------------
   • Harmonized with ThemeManager + Switchboard lighting
   • Smooth entry/exit transitions via var(--transition-env)
   • Uses halo/accent colors dynamically
   • Enforces Feng Shui clarity and contrast balance
   ========================================================== */

.theme-pane {
  position: relative;
  display: inline-block;
  z-index: 2000;
  overflow: visible;
}

/* ========================== --
   Button + Dot Discipline
-- ========================== */
#themeButton {
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  user-select: none;
  background: var(--panel-bg);
  color: var(--panel-fg);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: 0.4rem;
  padding: 0.25em 0.6em;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
#themeButton:hover {
  background: color-mix(in oklab, var(--accent) 10%, var(--panel-bg));
  border-color: var(--accent);
}

/* Dot discipline — stays in harmony with --swatch-color */
#swatch-dot {
  position: relative;
  width: 7px;
  height: 7px;
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  gap: 0.4em;
  border-radius: 50%;
  background-color: var(--swatch-color);
  border: 1px solid var(--swatch-border);
  box-shadow: 0 0 4px color-mix(in oklab, var(--accent) 50%, transparent);
  transition: var(--transition-env);
}

/* Halo layer – same glow system as siblings */
#swatch-dot::after {
  content: "";
  position: absolute;
  inset: -3px;            /* halo reach around a 7 px core */
  border-radius: 50%;
  background: var(--swatch-color);
  opacity: 0.6;
  filter: blur(4px);
  transition: inherit;
}

/* Colorless state for pristine mode */
#swatch-dot[data-state="colorless"],
[data-theme="pristine"] #swatch-dot {
  background: transparent;
  border-color: #ccc;
  box-shadow: none;
}
#swatch-dot[data-state="colorless"]::after,
[data-theme="pristine"] #swatch-dot::after {
  background: transparent;
}

/* ========================== --
   Dropdown Menu Discipline
-- ========================== */
#themeMenu {
  display: grid;
  grid-template-columns: repeat(5, 32px);
  grid-template-rows: repeat(4, 32px);
  gap: 0.5em;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0.25em);
  background: var(--panel-bg);
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  border-radius: 0.4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 2500;
  list-style: none;
  padding: 0.5em;
  width: calc((32px * 5) + (0.5em * 5) + 0.75em);
  height: calc((32px * 4) + (0.5em * 4) + 0.75em);
  justify-items: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s var(--transition-env, ease), transform 0.25s var(--transition-env, ease);
}

#themeMenu.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-0.5em);
}

/* ========================== --
         Swatch Buttons
-- ========================== */
#themeMenu button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid color-mix(in oklab, var(--fg), transparent 60%);
  background-color: var(--accent);
  cursor: pointer;
  transition: transform 0.25s var(--transition-env, ease),
              box-shadow 0.25s var(--transition-env, ease),
              border-color 0.25s var(--transition-env, ease);
}

#themeMenu button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 6px color-mix(in oklab, var(--accent), white 40%);
  border-color: var(--accent);
}

#themeMenu button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

#themeMenu button.active {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ============================================
   TRUE PALETTE — per-theme swatch paint
   --------------------------------------------
   Each button uses the ACCENT of its OWN theme,
   NOT the LIVE active theme.
   ============================================ */

#themeMenu button[data-theme="glass"]         { background-color:#86c6ff; border-color:color-mix(in oklab,#86c6ff 25%, black); }
#themeMenu button[data-theme="paper"]         { background-color:#1e90ff; border-color:color-mix(in oklab,#1e90ff 25%, black); }
#themeMenu button[data-theme="tropics"]       { background-color:#00cc99; border-color:color-mix(in oklab,#00cc99 25%, black); }
#themeMenu button[data-theme="aurora"]        { background-color:#7fffd4; border-color:color-mix(in oklab,#7fffd4 25%, black); }
#themeMenu button[data-theme="polarborealis"] { background-color:#80ffea; border-color:color-mix(in oklab,#80ffea 25%, black); }
#themeMenu button[data-theme="ocean"]         { background-color:#6ae3ff; border-color:color-mix(in oklab,#6ae3ff 25%, black); }
#themeMenu button[data-theme="pastel"]        { background-color:#ff9eb5; border-color:color-mix(in oklab,#ff9eb5 25%, black); }
#themeMenu button[data-theme="beach"]         { background-color:#00aaff; border-color:color-mix(in oklab,#00aaff 25%, black); }
#themeMenu button[data-theme="ivory"]         { background-color:#c9ae76; border-color:color-mix(in oklab,#c9ae76 25%, black); }
#themeMenu button[data-theme="forest"]        { background-color:#7bd389; border-color:color-mix(in oklab,#7bd389 25%, black); }
#themeMenu button[data-theme="disneyland"]    { background-color:#ff3399; border-color:color-mix(in oklab,#ff3399 25%, black); }
#themeMenu button[data-theme="sunset"]        { background-color:#ff9b73; border-color:color-mix(in oklab,#ff9b73 25%, black); }
#themeMenu button[data-theme="sepia"]         { background-color:#d8b46e; border-color:color-mix(in oklab,#d8b46e 25%, black); }
#themeMenu button[data-theme="jungle"]        { background-color:#55cc88; border-color:color-mix(in oklab,#55cc88 25%, black); }

#themeMenu button[data-theme="midnight"]      { background-color:color-mix(in oklab,#7abfff 55%, black 45%); border-color:#7abfff; }
#themeMenu button[data-theme="blackforest"]   { background-color:color-mix(in oklab,#33ff33 55%, black 45%); border-color:#33ff33; }
#themeMenu button[data-theme="noir"]          { background-color:color-mix(in oklab,#8aa4ff 55%, black 45%); border-color:#8aa4ff; }
#themeMenu button[data-theme="cyberpunk"]     { background-color:color-mix(in oklab,#ff00ff 55%, black 45%); border-color:#ff00ff; }
#themeMenu button[data-theme="highcontrast"]  { background-color:color-mix(in oklab,#ffd400 55%, black 45%); border-color:#ffd400; }
#themeMenu button[data-theme="neon"]          { background-color:color-mix(in oklab,#ff2bd6 55%, black 45%); border-color:#ff2bd6; }

/* === Allow live preview & active-state painting === */
#themeMenu.locked button[data-theme="glass"] { background:#86c6ff; border-color:#86c6ff; }
#themeMenu.locked button[data-theme="paper"] { background:#1e90ff; border-color:#1e90ff; }

#themeMenu:not(.locked) button {
  background: var(--accent) !important;
  border-color: color-mix(in oklab, var(--accent) 25%, black) !important;
}

/** ======================================== --
            --- Pause Button --- 
--- ======================================== */
#pauseButton {
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  user-select: none;
  background: var(--panel-bg);
  color: var(--panel-fg);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: 0.4rem;
  padding: 0.25em 0.6em;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/** ======================================== --
            --- Fly Blind Button --- 
--- ======================================== */
#flyBlindBtn {
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  user-select: none;
  background: var(--panel-bg);
  color: var(--panel-fg);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: 0.4rem;
  padding: 0.25em 0.6em;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/** ======================================== --
              --- Hint Button --- 
--- ======================================== */
#hintBtn {
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  user-select: none;
  background: var(--panel-bg);
  color: var(--panel-fg);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: 0.4rem;
  padding: 0.25em 0.6em;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/** ======================================== --
          --- Pencil Marks Button --- 
--- ======================================== */
#snyderBtn {
  display: inline-flex;       /* give it a layout box */
  align-items: center;        /* center dot and label */
  gap: 0.5em;
  cursor: pointer;
  user-select: none;
  background: var(--panel-bg);
  color: var(--panel-fg);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: 0.4rem;
  padding: 0.25em 0.6em;
  transition: var(--transition-env);
}

/* ======================================= 
         Snyder Toggle Indicator
   ======================================= */
/* ============================================================ --
   💎 Snyder Dot — Neon Spectrum Harmonized (Diamond Correction)
-- ------------------------------------------------------------ --
   • Base color now neon-lime to match kin indicators
   • Still theme-aware via subtle accent modulation
-- ============================================================ */

#snyder-dot {
  border: 1px solid var(--swatch-border);
  background: transparent;
  box-shadow: none;
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* --- Pristine / Off --- */
#snyder-dot.pristine {
  background: transparent;
  border-color: var(--swatch-border);
  box-shadow: none;
}

/* ============================================================ --
   💎 Snyder Dot — Start-Dot Parity (Diamond Match Edition)
-- ------------------------------------------------------------ --
   Mirrors Start/Quit dot pigment & halo; accent influences only the outer aura
-- ============================================================ */

/* ============================================================ --
   💎 Snyder Dot — Crimson Fidelity Revision
-- ------------------------------------------------------------ --
   Keeps parity with Start/Quit green; red now true-crimson spectrum
-- ============================================================ */

/* --- Enabled / Snyder Active --- */
#snyder-dot.active,
#snyder-dot.green {
  --snyder-core: #39ff14; /* Neon green identical to Start */
  background: var(--snyder-core);
  border-color: var(--snyder-core);
  box-shadow:
    0 0 8px var(--snyder-core),
    0 0 12px var(--snyder-core),
    0 0 18px color-mix(in oklab, var(--snyder-core) 60%, var(--accent) 40%);
}

/* --- Snyder Off / Error --- */
#snyder-dot.red {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
  box-shadow:
    0 0 8px #ff0000,
    0 0 12px #ff0000,
    0 0 18px #ff4500,
    0 0 22px rgba(255, 80, 0, 0.8);
}

#snyderBtn #snyder-dot.red {
  background: #ff0015;
  border-color: #ff0015;
  box-shadow:
    0 0 8px #ff0015,
    0 0 12px #ff0015,
    0 0 18px #ff4500,
    0 0 22px rgba(255,80,0,0.8);
}

--snyder-core-red: #ff0015;
background: var(--snyder-core-red);
border-color: var(--snyder-core-red);
box-shadow:
  0 0 8px var(--snyder-core-red),
  0 0 12px var(--snyder-core-red),
  0 0 18px #ff4500,
  0 0 22px rgba(255,80,0,0.8);


/* ========================================================== --
              Universal Tool-Tip bubble Feng Shui
-- ========================================================== */
[data-tooltip] {
  position: relative;
  cursor: help;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4em 0.6em;
  background: var(--panel-bg);
  color: var(--panel-fg);
  border: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg) 60%);
  border-radius: 0.4em;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
[data-tooltip]:hover::after {
  opacity: 1;
}

/** ======================================== 
                --- StoryBook --- 
    ======================================== */
.storybook {
  background: #f8f8f8;
  border: 1px solid #ddd;
  padding: 0.5em;
  border-radius: 0.25rem;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  color: #333;
  margin-inline: auto;
}
.storybook-title { font-weight: bold; margin-bottom: 0.25em; }
.storybook-steps {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

/* /css/components.css */

.score-summary-grid {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 0.15rem 0.45rem;
  align-items: center;
  font-size: 0.72rem;
  line-height: 1.15;
  margin-top: 0.2rem;
}

.score-summary-grid span {
  opacity: 0.75;
  white-space: nowrap;
}

.score-summary-grid b {
  font-weight: 700;
  white-space: nowrap;
}

.story-win {
  font-size: 0.78rem;
  line-height: 1.15;
}

/* Drawer row */
.drawer {
  display: flex;
  /* justify-content: space-between; */
  justify-content: flex-start !important;   /* stop forced spacing */
  align-items: center !important;           /* vertical alignment */
  /*gap: 8px;*/
}

#toolsMenu .drawer-label {
  flex: 0 1 auto;
}

.drawer-chev {
  margin-left: 10px;          /* ✅ chevron stays on the right */
  font-weight: 900;
  /*opacity: 0.8;
  transform: rotate(0deg);
  transition: transform 0.12s ease;*/
}

/* When open, show v */
.drawer[aria-expanded="true"] .drawer-chev {
  transform: rotate(90deg);
}

/* Drawer submenu: indented, inline in the same column */
.drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px; /* indent */
}

.drawer-menu.hidden { display: none; }

.drawer-menu li {
  padding: 0.25em 0.5em;
  cursor: pointer;
}

.drawer-menu li:hover { background: #f0f0f0; }

/* 💎 Sudoku Paradise — Help Center Button Styles (Diamond Edition)
   Harmonized with Feng Shui palette and Pristine ergonomics.
   Non-intrusive accent, visible in dark/light themes alike.  */

#helpCenterPanel {
  display: inline-block;
  margin-left: 0.75rem;
}

#helpCenterBtn {
  font-family: var(--font-ui, 'Segoe UI', sans-serif);
  font-size: 0.95rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid color-mix(in oklab, var(--fg) 30%, transparent);
  border-radius: 0.5rem;
  background: color-mix(in oklab, var(--panel-bg) 90%, transparent);
  color: var(--fg);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

#helpCenterBtn:hover {
  background: color-mix(in oklab, var(--accent) 25%, var(--panel-bg));
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

#helpCenterBtn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Ultra-Blue Tool Dot — aggressive, no pulse */
.dot.ultra-blue {
  background: #004fd8;
  box-shadow:
    0 0 0 2px rgba(0, 79, 216, 0.95),
    0 0 10px rgba(0, 79, 216, 1),
    0 0 22px rgba(0, 79, 216, 0.9),
    0 0 40px rgba(0, 79, 216, 0.6);
  filter: saturate(1.25) brightness(1.15);
  animation: none !important;
}

.dot.ultra-blue::after {
  background: #004fd8;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
}

/* Ultra-Blue Tool Dot */
/*.dot.ultra-blue {
  background: #1e90ff;*/              /* core blue */
/*  box-shadow:
    0 0 4px #1e90ff,
    0 0 10px rgba(30,144,255,0.7),
    0 0 18px rgba(30,144,255,0.4);
  animation: ultraPulse 2.4s ease-in-out infinite;
}*/


/*@keyframes ultraPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}*/

/** ======================================== --
        --- Candidate (Pencil) Toggle ---
--- ======================================== */
#candidate-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}

/* ACTIVE = clear, unmistakable state */
#candidate-mode-btn.active {
  background: color-mix(in oklab, var(--accent) 25%, var(--panel-bg));
  border-color: var(--accent);
  box-shadow:
    0 0 6px color-mix(in oklab, var(--accent) 60%, transparent),
    inset 0 0 4px color-mix(in oklab, var(--accent) 30%, transparent);
  transform: translateY(-1px);
}

/* subtle glow pulse (optional but nice) */
#candidate-mode-btn.active::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  opacity: 0.35;
  background: var(--accent);
  filter: blur(4px);
  pointer-events: none;
}

/* Keep the Play navigation above SnyderOverlay */
.site-links {
  position: relative;
  z-index: 10000;
  overflow: visible;
}

#playMenu[popover] {
  position: fixed !important;
  inset: auto;
  margin: 0 !important;
  background: var(--panel-bg, #fff) !important;
  opacity: 1 !important;
}

.play-menu-list {
  position: absolute;
  z-index: 10002;
  background: var(--panel-bg, #fff) !important;
  opacity: 1 !important;
}