/* ==========================================================================
   Autodefinidos y Crucigramas - Estilos canónicos
   Fijate Tools - https://fijate.com/tools/autodefinidos-crucigramas/
   ========================================================================== */

:root {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Paleta oscura Midnight Slate */
  --bg-body: #0b0f17;
  --bg-card: #111827;
  --bg-card-header: #1e293b;
  --bg-input: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --border-light: rgba(255, 255, 255, 0.08);

  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.15);
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;

  /* Acabado papel de cuaderno de pasatiempos auténtico */
  --paper-bg: #fcfbf7;
  --paper-border: #e2dcd0;
  --paper-ink: #111827;
  --paper-ink-muted: #475569;
  --paper-highlight: rgba(254, 240, 138, 0.6);

  --cell-bg: #ffffff;
  --cell-block: #111827;
  --cell-border: #111827;
  --cell-text: #0f172a;
  --cell-active-word: rgba(254, 240, 138, 0.55);
  --cell-active-border: #0284c7;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

[data-theme="light"],
body.light-theme {
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-header: #f1f5f9;
  --bg-input: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #cbd5e1;
  --border-light: rgba(0, 0, 0, 0.06);

  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: rgba(79, 70, 229, 0.1);
  --accent-cyan: #0284c7;

  --cell-bg: #ffffff;
  --cell-block: #111827;
  --cell-border: #111827;
  --cell-text: #0f172a;
  --cell-active-word: rgba(254, 240, 138, 0.65);
  --cell-active-border: #0284c7;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Reset y estructura básica */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6,
.brand-title,
.section-title,
.modal-title {
  font-family: var(--font-heading);
  margin-top: 0;
}

.mono, code, .cw-cell-letter, #cw-timer-display {
  font-family: var(--font-mono);
}

/* Layout de la herramienta */
.tool-layout {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1440px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.tool-with-sidebar {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-sizing: border-box;
}

/* Sidebar vertical sticky canónico de AdSense (300x600) solo en desktop >= 1536px */
.tool-ad-sidebar {
  display: none !important;
  width: 300px !important;
  flex: 0 0 300px !important;
  flex-shrink: 0 !important;
  position: sticky;
  top: 85px;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 1536px) {
  .tool-ad-sidebar {
    display: block !important;
  }
}

.ad-sticky-box {
  position: sticky;
  top: 85px;
  width: 300px;
}

.ad-unit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  box-sizing: border-box;
}

.card-main {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 1199px) {
  .tool-with-sidebar {
    flex-direction: column;
  }
  .tool-ad-sidebar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}

@media (max-width: 768px) {
  .tool-layout {
    margin-top: 1rem;
    padding: 0 0.75rem;
  }
  .card-main {
    padding: 1rem;
    border-radius: var(--radius-md);
    gap: 1.25rem;
  }
}

/* ==========================================================================
   Cabecera de Cuaderno Editorial y Acabado de Papel
   ========================================================================== */
.cw-edition-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.85rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
}

.cw-edition-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cw-edition-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-edition-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.25rem 0.65rem;
  font-size: 0.775rem;
  font-weight: 600;
  font-family: var(--font-main);
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.btn-edition-pill:hover {
  background-color: var(--border-color);
  border-color: var(--text-muted);
}

.btn-edition-pill.is-muted {
  color: var(--text-muted);
  opacity: 0.8;
}

/* ==========================================================================
   Tira selectora de los 6 niveles (Pills tipo catálogo editorial)
   ========================================================================== */
.cw-levels-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cw-levels-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-muted);
}

.cw-levels-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0.1rem 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cw-levels-strip::-webkit-scrollbar {
  display: none;
}

.cw-level-pill {
  flex: 0 0 auto;
  min-width: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.65rem;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.cw-level-pill:hover {
  transform: translateY(-1px);
  border-color: var(--primary-color);
  background-color: var(--bg-card-header);
}

.cw-level-pill.is-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(245, 158, 11, 0.15) 100%);
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cw-level-pill .pill-num {
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 1px 5px;
  border-radius: 4px;
}

.cw-level-pill.is-active .pill-num {
  background-color: var(--accent-amber);
  color: #0b0f17;
}

.cw-level-pill .pill-name {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.cw-level-pill .pill-dim {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-top: 1px;
}

.cw-level-pill.is-active .pill-dim {
  color: var(--accent-amber);
}

.cw-level-pill .pill-meta {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ==========================================================================
   Medidor de progreso en vivo del Cuaderno
   ========================================================================== */
.cw-progress-panel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  background-color: var(--bg-card-header);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.cw-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.cw-progress-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--text-main);
}

.cw-progress-title svg {
  color: var(--accent-green);
}

.cw-progress-stat {
  font-weight: 700;
  color: var(--accent-amber);
  font-size: 0.8125rem;
}

.cw-progress-track {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.cw-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #06b6d4 50%, #f59e0b 100%);
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Refinamientos de contraste armónicos para tema claro
   ========================================================================== */
[data-theme="light"] .cw-edition-header {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, rgba(79, 70, 229, 0.06) 100%);
  border-color: #cbd5e1;
}

[data-theme="light"] .cw-edition-badge {
  color: #b45309;
}

[data-theme="light"] .cw-level-pill.is-active {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.25);
}

[data-theme="light"] .cw-level-pill .pill-num {
  background-color: rgba(0, 0, 0, 0.06);
  color: #475569;
}

[data-theme="light"] .cw-clue-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .cw-clues-card-header {
  background-color: #e2e8f0;
}

/* Barra superior de estado (Timer, Badges y Acciones) */
.cw-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.cw-status-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cw-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.cw-badge.badge-daily {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

.cw-timer-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
}

.cw-timer-box svg {
  color: var(--accent-cyan);
}

#cw-timer-display {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-main);
  min-width: 60px;
}

.btn-icon-subtle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background-color 0.2s;
}

.btn-icon-subtle:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-icon-subtle.is-paused svg {
  color: var(--accent-amber);
}

/* Barra de herramientas principal */
.cw-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cw-toolbar-left,
.cw-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.btn-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
  color: var(--text-main);
  touch-action: manipulation;
}

.btn-tool:hover {
  background-color: var(--border-color);
}

.btn-tool.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.btn-tool.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-tool.is-active {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Dropdown de ayudas */
.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 100;
  min-width: 190px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.dropdown-wrapper:hover .dropdown-menu,
.dropdown-wrapper:focus-within .dropdown-menu {
  display: flex;
}

.dropdown-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.15s;
}

.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

/* Panel de dos columnas: Tablero a la izquierda, Pistas a la derecha */
.cw-game-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.25fr);
  gap: 1.5rem;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .cw-game-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}

#cw-board-container {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.cw-clues-panel {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Barra de pista activa contextual (Sticky) */
.cw-active-clue-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--bg-card-header);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cw-clue-nav-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s, color 0.15s;
}

.cw-clue-nav-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.cw-active-clue-content {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
}

.cw-active-clue-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cw-active-clue-text {
  font-size: clamp(0.8125rem, 2.5vw, 0.9375rem);
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 0%;
  min-width: 0;
}

/* Cuadrícula del crucigrama - Lámina de Papel Editorial */
.cw-board-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.85rem;
  background: var(--paper-bg);
  border: 1.5px solid var(--paper-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  box-sizing: border-box;
  position: relative;
}

.cw-grid {
  display: grid;
  grid-template-columns: repeat(var(--cw-cols, 11), minmax(0, 1fr));
  gap: 1.5px;
  background-color: #111827;
  border: 2px solid #111827;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.cw-cell {
  position: relative;
  aspect-ratio: 1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.12s ease-in-out;
}

.cw-cell.is-block {
  background-color: #111827 !important;
  cursor: default;
}

.cw-cell:not(.is-block):not(.is-clue-cell):hover {
  background-color: #f1f5f9;
}

.cw-cell.is-active-word {
  background-color: var(--cell-active-word) !important;
}

.cw-cell.is-active-cell {
  background-color: rgba(6, 182, 212, 0.25) !important;
  box-shadow: inset 0 0 0 2.5px var(--cell-active-border);
  z-index: 2;
}

.cw-cell.is-error {
  background-color: rgba(239, 68, 68, 0.3) !important;
  animation: cellShake 0.25s ease-in-out;
}

.cw-cell.is-correct {
  background-color: rgba(16, 185, 129, 0.25) !important;
}

.cw-cell.is-revealed .cw-cell-letter {
  color: var(--accent-cyan);
}

@keyframes cellShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.cw-cell-num {
  position: absolute;
  top: 1px;
  left: 2px;
  font-size: clamp(0.48rem, 1.2vw, 0.72rem);
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
  color: #111827;
  pointer-events: none;
}

.cw-cell-arrow {
  position: absolute;
  bottom: 1px;
  right: 2px;
  font-size: clamp(0.55rem, 1.2vw, 0.78rem);
  font-weight: 800;
  line-height: 1;
  color: var(--primary-color);
  pointer-events: none;
}

.cw-cell-letter {
  font-size: clamp(0.85rem, 2.5vw, 1.45rem);
  font-weight: 800;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: #0f172a;
  pointer-events: none;
}

.cw-cell-letter.is-pencil {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 500;
}

/* ==========================================================================
   Casillas de Pistas en Autodefinidos Reales (Foto 1)
   ========================================================================== */
.cw-cell.is-clue-cell {
  background-color: #0f172a;
  background-image: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  cursor: pointer;
  padding: 2px 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.12);
  user-select: none;
  overflow: hidden;
  transition: all 0.15s ease-in-out;
}

[data-theme="light"] .cw-cell.is-clue-cell {
  background-color: #f1f5f9;
  background-image: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  border-color: #94a3b8;
}

.cw-cell.is-clue-cell:hover {
  filter: brightness(1.15);
  box-shadow: inset 0 0 0 1.5px var(--accent-cyan);
}

.cw-cell.is-clue-cell.is-active-clue-box {
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.28) 0%, rgba(99, 102, 241, 0.28) 100%);
  box-shadow: inset 0 0 0 2px var(--accent-cyan), 0 0 10px rgba(6, 182, 212, 0.4);
  z-index: 3;
}

.cw-clue-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  justify-content: space-evenly;
  gap: 2px;
}

.cw-inline-clue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2px;
  line-height: 1.05;
  padding: 1px 2px;
  border-radius: 2px;
}

.cw-inline-clue:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.cw-inline-clue-text {
  font-family: var(--font-heading);
  font-size: clamp(0.42rem, 1vw, 0.62rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #f8fafc;
  letter-spacing: -0.01em;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 1;
}

[data-theme="light"] .cw-inline-clue-text {
  color: #0f172a;
}

.cw-inline-clue-arrow {
  font-size: clamp(0.65rem, 1.3vw, 0.9rem);
  font-weight: 900;
  color: var(--accent-amber);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

[data-theme="light"] .cw-inline-clue-arrow {
  color: #d97706;
}

/* ==========================================================================
   Selector de modalidad directa (Crucigrama clásico vs Autodefinido)
   ========================================================================== */
.cw-mode-selector-wrap {
  display: flex;
  width: 100%;
}

.cw-mode-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

@media (max-width: 600px) {
  .cw-mode-strip {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.btn-mode-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-main);
  text-align: left;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 52px;
}

.btn-mode-tab:hover {
  border-color: var(--primary-color);
  background-color: var(--bg-card-header);
  transform: translateY(-1px);
}

.btn-mode-tab.is-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(6, 182, 212, 0.12) 100%);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1.5px var(--primary-color), 0 4px 12px rgba(0, 0, 0, 0.18);
}

.btn-mode-tab svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.btn-mode-tab.is-active svg {
  color: var(--primary-color);
}

.mode-tab-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mode-tab-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}

.mode-tab-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Teclado virtual táctil para móvil */
.cw-virtual-keyboard {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 1rem;
  user-select: none;
  -webkit-user-select: none;
}

.cw-kb-row {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.cw-kb-key {
  flex: 1 1 0%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card-header);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.1s ease;
  touch-action: manipulation;
  padding: 0;
}

.cw-kb-key:active {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(1px);
}

.cw-kb-key.key-action {
  flex: 1.5 1 0%;
  background-color: var(--border-color);
  font-size: 0.8rem;
  gap: 3px;
}

.cw-kb-key.key-action:active {
  background-color: var(--accent-cyan);
}

.cw-kb-key .key-label {
  font-size: 0.72rem;
  font-weight: 600;
}

/* Columna de pistas (Horizontales y Verticales) - Acabado Cuaderno Papel */
.cw-clues-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  min-height: 100%;
}

.cw-clues-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 100%;
}

@media (max-width: 640px) {
  .cw-clues-columns {
    grid-template-columns: 1fr;
  }
}

.cw-clues-card {
  background-color: var(--paper-bg);
  border: 1.5px solid var(--paper-border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cw-clues-card-header {
  padding: 0.65rem 0.9rem;
  background-color: rgba(0, 0, 0, 0.04);
  border-bottom: 1.5px solid var(--paper-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cw-clues-card-title {
  font-size: 0.875rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cw-clues-card-title svg {
  color: #4f46e5;
}

.clue-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: rgba(79, 70, 229, 0.12);
  color: #4338ca;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.cw-clues-card-list {
  padding: 0.5rem;
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cw-clue-item {
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  line-height: 1.28;
  transition: all 0.12s ease-in-out;
}

.cw-clue-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.cw-clue-item.is-selected {
  background-color: #fef3c7; /* Marcador amarillo pastel auténtico */
  color: #1e1b4b;
  font-weight: 700;
  box-shadow: inset 3.5px 0 0 #4f46e5;
}

.cw-clue-item .clue-num {
  font-weight: 800;
  color: #4338ca;
  min-width: 22px;
  flex-shrink: 0;
}

.cw-clue-item .clue-desc {
  flex: 1;
}

.cw-clue-item .clue-len {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

/* Indicador de carga */
.cw-loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.cw-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Modales canónicos (HTML/CSS sin alerts)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.is-active {
  display: flex;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-dialog {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.btn-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background-color 0.15s;
}

.btn-modal-close:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card-header);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Formulario en modal nuevo juego */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 40px 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
  color: var(--text-main);
  font-size: 0.9375rem;
  font-family: var(--font-main);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.form-select option {
  background-color: var(--bg-card);
  color: var(--text-main);
}

/* Modal de Victoria */
.victory-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.victory-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.victory-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.victory-stat-card {
  background-color: var(--bg-card-header);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.victory-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.victory-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   DISEÑO RESPONSIVE Y CONTROLES TÁCTILES MÓVILES (Estándar Fijate)
   ========================================================================== */

/* Reglas universales de papel editorial (resistentes a modo oscuro) */
.cw-board-wrapper {
  background: #fcfbf7 !important;
  border: 1.5px solid #dcd5c7 !important;
  color: #111827 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.6) !important;
}

.cw-grid {
  background-color: #111827 !important;
  border: 2px solid #111827 !important;
}

.cw-cell {
  background-color: #ffffff !important;
}

.cw-cell.is-block {
  background-color: #111827 !important;
}

.cw-cell-letter {
  color: #0f172a !important;
  font-weight: 800;
}

.cw-cell-num {
  color: #111827 !important;
  font-weight: 800;
}

.cw-cell.is-active-word {
  background-color: #fef9c3 !important;
}

.cw-cell.is-active-cell {
  background-color: #fef08a !important;
  box-shadow: inset 0 0 0 2.5px #0284c7 !important;
}

.cw-cell.is-correct {
  background-color: #d1fae5 !important;
}

.cw-cell.is-error {
  background-color: #fee2e2 !important;
}

.cw-clues-card {
  background-color: #fcfbf7 !important;
  border: 1.5px solid #dcd5c7 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
}

.cw-clues-card-header {
  background-color: #f1ede4 !important;
  border-bottom: 1.5px solid #dcd5c7 !important;
  color: #111827 !important;
}

.cw-clues-card-title {
  color: #111827 !important;
}

.cw-clue-item {
  color: #1e293b !important;
}

.cw-clue-item:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

.cw-clue-item.is-active {
  background-color: #fef3c7 !important;
  border-left: 3.5px solid #d97706 !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

/* Tablet y pantallas medianas (<= 1024px) */
@media (max-width: 1024px) {
  .tool-layout {
    padding: 0 0.85rem;
    margin: 1rem auto 2.5rem;
  }

  .card-main {
    padding: 1.25rem 1rem;
    gap: 1.25rem;
  }

  .cw-game-workspace {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cw-board-wrapper {
    max-width: 100%;
    padding: 0.75rem;
  }

  .cw-clues-panel {
    height: auto;
    min-height: 0;
  }

  .cw-clues-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: auto;
  }

  .cw-clues-card {
    height: 480px;
    max-height: 480px;
  }

  .cw-clues-card-list {
    max-height: 420px;
    overflow-y: auto;
  }
}

/* Móviles estándar (<= 768px) */
@media (max-width: 768px) {
  .tool-layout {
    margin: 0.75rem auto 2rem;
    padding: 0 0.5rem;
  }

  .card-main {
    padding: 0.85rem 0.6rem;
    gap: 1rem;
    border-radius: var(--radius-md);
  }

  .cw-levels-strip {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0.5rem;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .cw-levels-strip::-webkit-scrollbar {
    display: none;
  }

  .cw-level-pill {
    flex: 0 0 auto;
    min-width: 95px;
    scroll-snap-align: start;
    padding: 0.45rem 0.65rem;
  }

  .cw-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .cw-status-group {
    justify-content: space-between;
    width: 100%;
  }

  .cw-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cw-toolbar-left,
  .cw-toolbar-right {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    box-sizing: border-box;
  }

  .dropdown-wrapper {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .btn-tool {
    width: 100%;
    height: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0 0.5rem;
  }

  .cw-board-wrapper {
    padding: 0.35rem 0.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
  }

  .cw-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* Para crucigramas clásicos grandes (13x13, 15x15, 17x17) fijar cota mínima táctil ergonómica (27px por celda) */
  .cw-grid.cw-mode-crucigrama[style*="--cw-cols: 13"],
  .cw-grid.cw-mode-crucigrama[style*="--cw-cols: 15"],
  .cw-grid.cw-mode-crucigrama[style*="--cw-cols: 17"],
  .cw-grid.cw-mode-crucigrama[style*="--cw-cols:13"],
  .cw-grid.cw-mode-crucigrama[style*="--cw-cols:15"],
  .cw-grid.cw-mode-crucigrama[style*="--cw-cols:17"] {
    min-width: calc(var(--cw-cols, 11) * 27px);
  }

  /* Para Autodefinidos, las celdas contienen textos de definición y flechas */
  .cw-grid.cw-mode-autodefinido {
    min-width: max(100%, calc(var(--cw-cols, 11) * 54px));
  }

  .cw-cell-letter {
    font-size: clamp(0.68rem, 3.2vw, 1.25rem);
  }

  .cw-cell-num {
    font-size: clamp(0.42rem, 1.8vw, 0.65rem);
    top: 0;
    left: 1px;
  }

  .cw-inline-clue-text {
    font-size: clamp(0.5rem, 1.4vw, 0.68rem);
    line-height: 1.1;
  }

  .cw-inline-clue-arrow {
    font-size: 0.75rem;
  }

  .cw-virtual-keyboard {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.25rem 0;
    gap: 3px;
    box-sizing: border-box;
  }

  .cw-kb-row {
    gap: 3px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .cw-kb-key {
    height: 42px;
    min-height: 42px;
    font-size: 0.95rem;
  }

  .cw-kb-key.key-action {
    font-size: 0.75rem;
  }
}

/* Móviles compactos (<= 640px) */
@media (max-width: 640px) {
  .cw-clues-columns {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .cw-clues-card {
    height: 320px;
    max-height: 320px;
  }

  .cw-clues-card-list {
    max-height: 260px;
    overflow-y: auto;
  }

  .cw-active-clue-bar {
    padding: 0.45rem 0.6rem;
    margin-bottom: 0.5rem;
    gap: 0.4rem;
  }

  .cw-active-clue-text {
    font-size: 0.8125rem;
  }

  .cw-clue-nav-btn {
    width: 32px;
    height: 32px;
  }
}

/* Indicador de desplazamiento horizontal del tablero */
.cw-scroll-hint-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  user-select: none;
  background-color: var(--bg-card-header);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  margin-top: 0.45rem;
  box-sizing: border-box;
  width: 100%;
}

.cw-scroll-hint-bar svg {
  color: var(--accent-amber);
  flex-shrink: 0;
  animation: hintArrowMove 1.8s ease-in-out infinite;
}

@keyframes hintArrowMove {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* ==========================================================================
   Vista de impresión A4 (.print-sheet)
   ========================================================================== */
.print-sheet {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .app-header,
  .tools-ad-banner-section,
  .tool-ad-sidebar,
  .card-main,
  .fijate-footer,
  .seo-guide-section,
  .modal-overlay {
    display: none !important;
  }

  .print-sheet {
    display: block !important;
    width: 100%;
    max-width: 190mm;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
  }

  .print-header {
    text-align: center;
    border-bottom: 2px solid #000000;
    padding-bottom: 6px;
    margin-bottom: 10px;
  }

  .print-header h1 {
    font-size: 16pt;
    font-weight: 900;
    margin: 0 0 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .print-header p {
    font-size: 8pt;
    margin: 0;
    color: #333333;
  }

  .print-main-layout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }

  .print-grid-col {
    flex: 0 0 auto;
  }

  .print-grid {
    display: grid;
    grid-template-columns: repeat(var(--cw-cols, 11), 1fr);
    width: 110mm;
    height: 110mm;
    border: 2px solid #000000;
  }

  .print-grid.print-mode-autodefinido {
    width: 170mm;
    height: 170mm;
    margin: 0 auto 10px auto;
  }

  .print-cell {
    position: relative;
    border: 1px solid #000000;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .print-cell.is-block {
    background-color: #000000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-cell.is-clue-cell {
    background-color: #000000 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 1.5px;
    overflow: hidden;
  }

  .print-clue-box {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 100%;
    height: 100%;
  }

  .print-inline-clue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    line-height: 1;
    gap: 2px;
  }

  .print-inline-clue-text {
    font-size: 4.8pt;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff !important;
    overflow: hidden;
    white-space: normal;
  }

  .print-inline-clue-arrow {
    font-size: 6pt;
    font-weight: 900;
    color: #ffffff !important;
    flex-shrink: 0;
  }

  .print-num {
    position: absolute;
    top: 1px;
    left: 2px;
    font-size: 6pt;
    font-weight: bold;
  }

  .print-clues {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 7.2pt;
    line-height: 1.25;
    flex: 1;
  }

  .print-clues-column h2 {
    font-size: 8.5pt;
    font-weight: bold;
    border-bottom: 1px solid #000000;
    margin: 0 0 4px 0;
    padding-bottom: 2px;
    text-transform: uppercase;
  }

  .print-clues ol {
    margin: 0;
    padding-left: 12px;
  }

  .print-clues li {
    margin-bottom: 2px;
  }

  /* Pie de página con caja de SOLUCIÓN invertida a 180° (Foto 2) */
  .print-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px dashed #666666;
  }

  .print-footer-info {
    font-size: 7pt;
    color: #555555;
  }

  .print-solution-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transform: rotate(180deg);
    margin: 0;
    padding: 0;
  }

  .print-solution-label {
    font-size: 6.5pt;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    padding: 0;
  }

  .print-solution-grid {
    display: grid;
    grid-template-columns: repeat(var(--cw-cols, 11), minmax(0, 1fr));
    grid-template-rows: repeat(var(--cw-rows, 11), minmax(0, 1fr));
    width: clamp(34mm, calc(var(--cw-cols, 11) * 2.5mm), 46mm);
    height: clamp(34mm, calc(var(--cw-rows, 11) * 2.5mm), 46mm);
    border: 1px solid #000000;
    box-sizing: border-box;
    overflow: hidden;
  }

  .print-sol-cell {
    border: 0.35px solid #000000;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.2pt, calc(38pt / var(--cw-cols, 11)), 5pt);
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
    padding: 0;
    margin: 0;
  }

  .print-sol-cell.is-block {
    background-color: #000000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
