/* FCC Family Games - Phase 7C.1 Family Fun Board */

.fcc-games-board-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fcc-games-board-page .fcc-games-board-hero,
.fcc-games-board-page .fcc-games-board-play-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 213, 128, 0.28), rgba(122, 214, 194, 0.18));
  border: 1px solid rgba(122, 160, 214, 0.22);
}

.fcc-games-board-page .fcc-games-board-hero h2,
.fcc-games-board-page .fcc-games-board-play-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.fcc-games-board-page .fcc-games-board-eyebrow {
  margin-bottom: 6px;
  color: rgba(35, 47, 62, 0.68);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.fcc-games-board-page .fcc-games-board-setup {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
}

.fcc-games-board-page .fcc-games-board-setup > .section-card:last-child {
  grid-column: 1 / -1;
}

.fcc-games-board-page .fcc-games-board-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fcc-games-board-page .fcc-games-board-choice,
.fcc-games-board-page .fcc-games-board-segment,
.fcc-games-board-page .fcc-games-board-roster__item {
  border: 1px solid rgba(120, 120, 128, 0.2);
  background: rgba(255, 255, 255, 0.62);
  color: inherit;
  cursor: pointer;
}

.fcc-games-board-page .fcc-games-board-choice {
  display: flex;
  min-height: 86px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  text-align: left;
}

.fcc-games-board-page .fcc-games-board-choice span {
  font-weight: 800;
}

.fcc-games-board-page .fcc-games-board-choice small,
.fcc-games-board-page .fcc-games-board-tile small {
  color: rgba(35, 47, 62, 0.62);
  font-size: 12px;
}

.fcc-games-board-page .fcc-games-board-choice.is-selected,
.fcc-games-board-page .fcc-games-board-segment.is-selected,
.fcc-games-board-page .fcc-games-board-roster__item.is-selected {
  border-color: rgba(44, 121, 107, 0.62);
  background: rgba(122, 214, 194, 0.22);
  box-shadow: 0 0 0 3px rgba(122, 214, 194, 0.16);
}

.fcc-games-board-page .fcc-games-board-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fcc-games-board-page .fcc-games-board-segment {
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.fcc-games-board-page .fcc-games-board-spaced {
  margin-top: 18px;
}

.fcc-games-board-page .fcc-games-board-roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.fcc-games-board-page .fcc-games-board-roster__item {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
}

.fcc-games-board-page .fcc-games-board-roster__item input {
  width: 18px;
  height: 18px;
}

.fcc-games-board-page .fcc-games-board-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fcc-games-board-page .fcc-games-board-play-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: start;
}

.fcc-games-board-page .fcc-games-board-map-card {
  overflow: visible;
}

.fcc-games-board-page .fcc-games-board-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 10px;
}

.fcc-games-board-page .fcc-games-board-tile {
  position: relative;
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(120, 120, 128, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  text-align: left;
}

/* 7C.7: focus rings — merged selector list (additive; includes prior tile/choice/segment/roster targets) */
.fcc-games-board-page .fcc-games-board-tile:focus-visible,
.fcc-games-board-page .fcc-games-board-choice:focus-visible,
.fcc-games-board-page .fcc-games-board-segment:focus-visible,
.fcc-games-board-page .fcc-games-board-roster__item:focus-within,
.fcc-games-board-page .fcc-games-board-roster__item input:focus-visible,
.fcc-games-board-page .fcc-games-btn:focus-visible,
.fcc-games-board-page button:focus-visible,
.fcc-games-board-page .fcc-games-board-tile-panel:focus-visible,
.fcc-games-board-page .fcc-games-board-recap:focus-visible,
.fcc-games-board-page .fcc-games-challenge-card__actions .fcc-games-btn:focus-visible,
.fcc-games-board-page .fcc-games-board-tile-panel__actions .fcc-games-btn:focus-visible {
  outline: 3px solid rgba(44, 121, 107, 0.55);
  outline-offset: 2px;
}

.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile:focus-visible,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-choice:focus-visible,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-segment:focus-visible,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-roster__item:focus-within,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-roster__item input:focus-visible,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-btn:focus-visible,
.fcc-games-board-page[data-theme="high-contrast"] button:focus-visible,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile-panel:focus-visible,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-recap:focus-visible,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-challenge-card__actions .fcc-games-btn:focus-visible,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile-panel__actions .fcc-games-btn:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 2px;
}

.fcc-games-board-page .fcc-games-board-tile--kindness { background: rgba(255, 190, 198, 0.32); }
.fcc-games-board-page .fcc-games-board-tile--learning { background: rgba(190, 202, 255, 0.32); }
.fcc-games-board-page .fcc-games-board-tile--mini-game { background: rgba(157, 213, 246, 0.34); }
.fcc-games-board-page .fcc-games-board-tile--bonus { background: rgba(255, 224, 137, 0.36); }
.fcc-games-board-page .fcc-games-board-tile--rest { background: rgba(216, 225, 229, 0.38); }

.fcc-games-board-page .fcc-games-board-tile__index {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(35, 47, 62, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.fcc-games-board-page .fcc-games-board-tile__label {
  font-size: 15px;
  font-weight: 800;
}

.fcc-games-board-page .fcc-games-board-token-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 28px;
}

.fcc-games-board-page .fcc-games-board-token {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.45);
}

.fcc-games-board-page .fcc-games-board-token--0 { background: #2f7d73; }
.fcc-games-board-page .fcc-games-board-token--1 { background: #8f5cc2; }
.fcc-games-board-page .fcc-games-board-token--2 { background: #c45d61; }
.fcc-games-board-page .fcc-games-board-token--3 { background: #3f6fb5; }
.fcc-games-board-page .fcc-games-board-token--4 { background: #9a6a17; }
.fcc-games-board-page .fcc-games-board-token--5 { background: #4b7751; }

.fcc-games-board-page .fcc-games-board-sidebar {
  position: sticky;
  top: 12px;
}

.fcc-games-board-page .fcc-games-board-player-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fcc-games-board-page .fcc-games-board-player-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px;
  border: 1px solid rgba(120, 120, 128, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.fcc-games-board-page .fcc-games-board-player-row strong {
  font-size: 12px;
}

@media (max-width: 1023px) {
  .fcc-games-board-page .fcc-games-board-setup,
  .fcc-games-board-page .fcc-games-board-play-grid {
    grid-template-columns: 1fr;
  }

  .fcc-games-board-page .fcc-games-board-map {
    grid-template-columns: repeat(3, minmax(96px, 1fr));
  }

  .fcc-games-board-page .fcc-games-board-sidebar {
    position: static;
  }
}

@media (max-width: 520px) {
  .fcc-games-board-page .fcc-games-board-hero,
  .fcc-games-board-page .fcc-games-board-play-head,
  .fcc-games-board-page .fcc-games-board-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .fcc-games-board-page .fcc-games-board-choice-grid,
  .fcc-games-board-page .fcc-games-board-map {
    grid-template-columns: 1fr 1fr;
  }

  .fcc-games-board-page .fcc-games-board-tile {
    min-height: 104px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .fcc-games-board-page .fcc-games-board-choice,
  .fcc-games-board-page .fcc-games-board-segment,
  .fcc-games-board-page .fcc-games-board-tile,
  .fcc-games-board-page .fcc-games-board-roster__item {
    transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  }

  .fcc-games-board-page .fcc-games-board-token {
    transition: transform 0.24s ease, box-shadow 0.24s ease;
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .fcc-games-board-page .fcc-games-board-choice:hover,
  .fcc-games-board-page .fcc-games-board-segment:hover,
  .fcc-games-board-page .fcc-games-board-tile:hover,
  .fcc-games-board-page .fcc-games-board-roster__item:hover {
    transform: translateY(-1px);
  }
}

/* ---------- 7C.2 HUD ---------- */
.fcc-games-board-page .fcc-games-board-hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(120, 120, 128, 0.18);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 224, 137, 0.22), rgba(122, 214, 194, 0.14));
}

.fcc-games-board-page .fcc-games-board-hud__active {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fcc-games-board-page .fcc-games-board-hud__active strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.fcc-games-board-page .fcc-games-board-hud__active p {
  margin: 4px 0 0;
}

.fcc-games-board-page .fcc-games-board-hud__status p {
  margin: 4px 0 0;
}

.fcc-games-board-page .fcc-games-board-hud__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fcc-games-board-page .fcc-games-board-hud__actions .fcc-games-btn {
  min-height: 56px;
}

.fcc-games-board-page .fcc-games-board-rollchip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid rgba(44, 121, 107, 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  min-width: 64px;
}

.fcc-games-board-page .fcc-games-board-rollchip__die {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.fcc-games-board-page .fcc-games-board-rollchip small {
  font-size: 11px;
  color: rgba(35, 47, 62, 0.6);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- 7C.2 tile prompt panel ---------- */
.fcc-games-board-page .fcc-games-board-tile-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 4px solid rgba(44, 121, 107, 0.62);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(122, 214, 194, 0.16));
}

.fcc-games-board-page .fcc-games-board-tile-panel--kindness { border-left-color: #c45d61; }
.fcc-games-board-page .fcc-games-board-tile-panel--learning { border-left-color: #4b6fd0; }
.fcc-games-board-page .fcc-games-board-tile-panel--bonus    { border-left-color: #b78d12; }
.fcc-games-board-page .fcc-games-board-tile-panel--rest     { border-left-color: #6a7785; }

.fcc-games-board-page .fcc-games-board-tile-panel__title {
  margin: 0;
  font-size: 18px;
}

.fcc-games-board-page .fcc-games-board-tile-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fcc-games-board-page .fcc-games-board-tile-panel__actions .fcc-games-btn {
  min-height: 56px;
}

.fcc-games-board-page .fcc-games-board-tile.is-pending {
  outline: 3px solid rgba(255, 184, 0, 0.55);
  outline-offset: 2px;
  transform: scale(1.03);
  transform-origin: center;
  will-change: transform;
  animation: fccBoardTilePulseShadow 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .fcc-games-board-page .fcc-games-board-tile.is-pending {
    animation: none;
    transform: none;
    will-change: auto;
  }
}

@keyframes fccBoardTilePulseShadow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 184, 0, 0.22); }
}

/* ---------- 7C.2 stars + sidebar ---------- */
.fcc-games-board-page .fcc-games-board-player-row.is-active {
  border-color: rgba(44, 121, 107, 0.5);
  background: rgba(122, 214, 194, 0.18);
}

.fcc-games-board-page .fcc-games-board-player-row > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fcc-games-board-page .fcc-games-board-player-row > div small {
  font-size: 11px;
}

.fcc-games-board-page .fcc-games-board-stars {
  font-weight: 900;
  color: #9a6a17;
  white-space: nowrap;
}

/* ---------- 7C.2 recap + 7C.7 celebration ---------- */
.fcc-games-board-page .fcc-games-board-recap {
  position: relative;
  overflow: visible;
  background: linear-gradient(135deg, rgba(255, 224, 137, 0.34), rgba(157, 213, 246, 0.24));
  border: 1px solid rgba(184, 134, 38, 0.32);
}

.fcc-games-board-page .fcc-games-board-recap__inner {
  position: relative;
  z-index: 1;
}

.fcc-games-board-page .fcc-games-board-recap h3 {
  margin: 4px 0 6px;
}

.fcc-games-board-page .fcc-games-board-recap__actions .fcc-games-btn {
  min-height: 56px;
}

@media (prefers-reduced-motion: no-preference) {
  .fcc-games-board-page .fcc-games-board-recap::before,
  .fcc-games-board-page .fcc-games-board-recap::after {
    content: "";
    position: absolute;
    inset: -6px;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    animation: fccBoardRecapCelebrate 2s ease-out forwards;
  }

  .fcc-games-board-page .fcc-games-board-recap::before {
    background:
      radial-gradient(circle at 12% 20%, rgba(255, 210, 120, 0.55) 0, transparent 38%),
      radial-gradient(circle at 88% 18%, rgba(122, 214, 194, 0.45) 0, transparent 36%),
      radial-gradient(circle at 50% 88%, rgba(157, 213, 246, 0.4) 0, transparent 42%);
  }

  .fcc-games-board-page .fcc-games-board-recap::after {
    background-image:
      radial-gradient(circle, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 55%);
    background-size: 8px 8px, 12px 12px;
    background-position: 10% 30%, 70% 20%, 40% 60%, 85% 55%, 25% 80%, 60% 75%;
    mix-blend-mode: screen;
    animation-name: fccBoardRecapSparkle;
    animation-duration: 2s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
  }
}

@keyframes fccBoardRecapCelebrate {
  0%   { opacity: 0; transform: scale(0.98); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.02); }
}

@keyframes fccBoardRecapSparkle {
  0%   { opacity: 0; transform: rotate(0deg); }
  20%  { opacity: 0.85; }
  100% { opacity: 0; transform: rotate(12deg); }
}

@media (prefers-reduced-motion: reduce) {
  .fcc-games-board-page .fcc-games-board-recap::before,
  .fcc-games-board-page .fcc-games-board-recap::after {
    display: none;
  }
}

.fcc-games-board-page .fcc-games-board-recap__list {
  margin: 6px 0;
  padding-left: 18px;
}

.fcc-games-board-page .fcc-games-board-recap__actions {
  display: flex;
  gap: 8px;
}

/* ---------- 7C.3 mini-game return banner ---------- */
.fcc-games-board-return-banner {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: calc(16px + var(--fcc-bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  max-width: calc(100vw - 24px);
  border-radius: 12px;
  background: rgba(35, 47, 62, 0.94);
  color: #fff;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.45);
  font-weight: 700;
}

.fcc-games-board-return-banner .fcc-games-btn {
  flex: 0 0 auto;
  min-height: 56px;
}

.fcc-games-board-return-banner__icon {
  font-size: 22px;
}

.fcc-games-board-return-banner__text {
  font-size: 14px;
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 769px) {
  .fcc-games-board-return-banner {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 520px) {
  .fcc-games-board-return-banner {
    left: 12px;
    right: 12px;
    transform: none;
  }

  .fcc-games-board-page .fcc-games-board-hud {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .fcc-games-board-page .fcc-games-board-hud__actions {
    justify-content: stretch;
  }

  .fcc-games-board-page .fcc-games-board-hud__actions .fcc-games-btn {
    flex: 1 1 auto;
  }
}

/* ---------- 7C.6 theme variants ----------
 * Base (.fcc-games-board-page) is the "classic-warm" palette. Variants override
 * hero/hud/tile backgrounds via [data-theme] attribute on the page wrapper.
 * Tile-type color washes still come from .fcc-games-board-tile--TYPE rules above.
 */

.fcc-games-board-page[data-theme="sunny-table"] .fcc-games-board-hero,
.fcc-games-board-page[data-theme="sunny-table"] .fcc-games-board-play-head {
  background: linear-gradient(135deg, rgba(255, 196, 127, 0.42), rgba(255, 236, 152, 0.34));
  border-color: rgba(214, 145, 50, 0.34);
}

.fcc-games-board-page[data-theme="sunny-table"] .fcc-games-board-hud {
  background: linear-gradient(135deg, rgba(255, 213, 138, 0.34), rgba(255, 230, 165, 0.24));
}

.fcc-games-board-page[data-theme="sunny-table"] .fcc-games-board-tile {
  background: rgba(255, 247, 226, 0.78);
}

.fcc-games-board-page[data-theme="sunny-table"] .fcc-games-board-recap {
  background: linear-gradient(135deg, rgba(255, 213, 138, 0.42), rgba(255, 188, 121, 0.28));
}

.fcc-games-board-page[data-theme="high-contrast"] {
  --fcc-board-line: rgba(0, 0, 0, 0.78);
}

.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-hero,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-play-head,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-hud {
  background: #ffffff;
  border: 2px solid var(--fcc-board-line);
}

.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile {
  background: #ffffff;
  border: 2px solid var(--fcc-board-line);
  color: #111;
}

.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile small,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-choice small,
.fcc-games-board-page[data-theme="high-contrast"] .muted {
  color: rgba(0, 0, 0, 0.7);
}

.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile--kindness,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile--learning,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile--mini-game,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile--bonus,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile--teamwork,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile--rest {
  background: #ffffff;
}

.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile--kindness  { box-shadow: inset 0 0 0 4px #c45d61; }
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile--learning  { box-shadow: inset 0 0 0 4px #4b6fd0; }
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile--mini-game { box-shadow: inset 0 0 0 4px #2f7d73; }
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile--bonus     { box-shadow: inset 0 0 0 4px #b78d12; }
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile--teamwork  { box-shadow: inset 0 0 0 4px #2f7d73; }
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile--rest      { box-shadow: inset 0 0 0 4px #6a7785; }

.fcc-games-board-page[data-theme="autumn-cozy"] .fcc-games-board-hero,
.fcc-games-board-page[data-theme="autumn-cozy"] .fcc-games-board-play-head {
  background: linear-gradient(135deg, rgba(196, 93, 97, 0.28), rgba(184, 119, 38, 0.22));
  border-color: rgba(146, 64, 14, 0.34);
}

.fcc-games-board-page[data-theme="autumn-cozy"] .fcc-games-board-hud {
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.22), rgba(146, 64, 14, 0.16));
}

.fcc-games-board-page[data-theme="autumn-cozy"] .fcc-games-board-tile {
  background: rgba(255, 240, 219, 0.78);
}

.fcc-games-board-page[data-theme="autumn-cozy"] .fcc-games-board-tile--kindness  { background: rgba(220, 130, 100, 0.32); }
.fcc-games-board-page[data-theme="autumn-cozy"] .fcc-games-board-tile--learning  { background: rgba(180, 130, 80, 0.32); }
.fcc-games-board-page[data-theme="autumn-cozy"] .fcc-games-board-tile--mini-game { background: rgba(202, 138, 4, 0.30); }
.fcc-games-board-page[data-theme="autumn-cozy"] .fcc-games-board-tile--bonus     { background: rgba(180, 92, 46, 0.32); }
.fcc-games-board-page[data-theme="autumn-cozy"] .fcc-games-board-tile--teamwork  { background: rgba(146, 64, 14, 0.24); }
.fcc-games-board-page[data-theme="autumn-cozy"] .fcc-games-board-tile--rest      { background: rgba(146, 90, 60, 0.22); }

.fcc-games-board-page[data-theme="autumn-cozy"] .fcc-games-board-recap {
  background: linear-gradient(135deg, rgba(220, 130, 100, 0.32), rgba(180, 92, 46, 0.24));
  border-color: rgba(146, 64, 14, 0.42);
}

/* Teamwork tile color (used by coop-quest board) — defined here since 7C.2
   only seeded the original 5 tile types. */
.fcc-games-board-page .fcc-games-board-tile--teamwork {
  background: rgba(157, 213, 196, 0.32);
}

/* ---------- 7C.7 lobby sound row + token hop clone ---------- */
.fcc-games-board-page .fcc-games-board-sound-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(120, 120, 128, 0.18);
  background: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  min-height: 56px;
}

.fcc-games-board-page .fcc-games-board-sound-opt input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.fcc-games-board-page .fcc-games-board-actions .fcc-games-btn {
  min-height: 56px;
}

.fcc-games-board-page .fcc-games-board-hero .fcc-games-btn,
.fcc-games-board-page .fcc-games-board-play-head .fcc-games-btn {
  min-height: 56px;
}

.fcc-games-board-page .fcc-games-challenge-card__actions .fcc-games-btn {
  min-height: 56px;
}

.fcc-games-board-token-clone {
  position: fixed;
  z-index: 10050;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: left 280ms cubic-bezier(0.22, 1, 0.36, 1),
    top 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .fcc-games-board-token-clone {
    transition: none;
  }
}

@media (min-width: 1280px) {
  .fcc-games-board-page .fcc-games-board-tile__label {
    font-size: 16px;
  }
}

@keyframes fccBoardTilePulseShadowHigh {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.18); }
}

.fcc-games-board-page[data-theme="sunny-table"] .fcc-games-board-tile.is-pending {
  outline-color: rgba(214, 145, 50, 0.75);
}

.fcc-games-board-page[data-theme="autumn-cozy"] .fcc-games-board-tile.is-pending {
  outline-color: rgba(146, 64, 14, 0.65);
}

.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-tile.is-pending {
  outline-color: #000000;
  animation-name: fccBoardTilePulseShadowHigh;
}

.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-recap {
  background: #ffffff;
  border-color: #000000;
}

.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-recap h3 {
  color: #000000;
}

.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-recap p,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-recap li {
  color: #111111;
}

.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-recap .muted,
.fcc-games-board-page[data-theme="high-contrast"] .fcc-games-board-recap strong {
  color: #111111;
}