/**
 * ModalGameWizard.css
 * Styles for the guided new-game wizard. Design-token only (Theme tier
 * --color-* tokens; no Core palette).
 */

.wizard-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  overflow: hidden;
}

.wizard-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.wizard-back {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--color-text-dark);
}

:where(html[data-pointer='mouse']) .wizard-back:hover,
.wizard-back:focus-visible {
  color: var(--color-text);
  outline: none;
  text-decoration: underline;
}

.wizard-description {
  flex-shrink: 0;
}

.wizard-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  /* Room for a tile's hover grow (style.css): without it the scroll box
     clips the grown tile's edges */
  padding: var(--space-2);
}

/* A .tile-grid (common/style.css) that packs its rows at the top. */
.wizard-grid {
  align-content: start;
}

/* Tiles reuse the .game-card look (Section.css); add only the
   keyboard-focus ring. */
.wizard-tile:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

/* Subheading sits in the footer below the thumbnail, matching the
   play/share/remix/favorite button row on game cards. */
.wizard-tile-desc {
  flex: 1;
  padding: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-dark);
}

/* The mode step's "You can switch modes at any time!", in the button row
   (shown on that step only) */
.wizard-note {
  color: var(--color-text-dark);
}

/* The mode step's tile suggested (the mode picked last, Easy Mode the
   first time), lit with the accent border */
.wizard-tile.selected {
  border-color: var(--color-accent);
}

/* The mode drawings (MODE_ART), filling their tile's picture box (the
   drawing keeps its shape, centered), in theme colors so they follow light
   and dark */
.build-mode-art {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-background);
}

.build-mode-art .art-tile {
  fill: var(--color-success);
}

.build-mode-art .art-tile.alt {
  fill-opacity: 0.7;
}

.build-mode-art .art-slot {
  fill: none;
  stroke: var(--color-border-light);
  stroke-dasharray: 4 3;
}

.build-mode-art .art-lifted {
  stroke: var(--color-accent);
  stroke-width: 2;
}

.build-mode-art .art-trail {
  fill: none;
  stroke: var(--color-text-dark);
  stroke-dasharray: 3 3;
}

/* The pointer is a glyph, so it takes the text color */
.build-mode-art .art-pointer {
  fill: var(--color-text);
  stroke: var(--color-background);
}

.build-mode-art .art-face {
  stroke: var(--color-border-light);
}

.build-mode-art .art-face.top {
  fill: var(--color-surface-light);
}

.build-mode-art .art-face.left {
  fill: var(--color-border);
}

.build-mode-art .art-face.right {
  fill: var(--color-border-light);
}

/* The move arrows in the builder's colors: X red, Y green, Z blue */
.build-mode-art .art-axis {
  stroke-width: 3;
}

.build-mode-art .x {
  stroke: var(--color-error);
  fill: var(--color-error);
}

.build-mode-art .y {
  stroke: var(--color-success);
  fill: var(--color-success);
}

.build-mode-art .z {
  stroke: var(--color-accent);
  fill: var(--color-accent);
}
