/* Crossword Demo - module-specific styles
   Reuses maze_demo.css + wordsearch.css design tokens. */

/* ── Mobile tab bar ── */
.cw-tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--mg-surface);
  border-top: 1px solid var(--mg-border);
  z-index: 1000;
}

.cw-tabbar .cw-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: var(--mg-text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  min-height: 44px;
}

.cw-tabbar .cw-tab.active {
  color: var(--mg-primary);
}

.cw-tabbar .cw-tab i {
  font-size: 1.1rem;
}

.cw-tabbar .cw-tab:focus-visible {
  outline: 2px solid var(--mg-primary);
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .cw-col {
    display: none;
  }
  .cw-col.active-panel {
    display: block;
  }
  .cw-tabbar {
    display: flex;
  }
  /* Leave room for the fixed tab bar so scrollable content isn't hidden behind it. */
  #maze-app.maze-app {
    padding-bottom: 60px;
  }
}

/* ── Print ── */
@media print {
  .cw-tabbar {
    display: none !important;
  }
  .cw-col {
    display: block !important;
  }
}
