.ce-explorer {
  --ce-cream: #f4f0e6;
  --ce-green: #193c32;
  --ce-sage: #819582;
  --ce-gold: #dfb55d;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  color: var(--ce-cream);
  font-family: inherit;
}
.ce-explorer *, .ce-explorer *::before, .ce-explorer *::after { box-sizing: border-box; }
.ce-selectors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-bottom: 15px; }
.ce-selector {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 68px;
  padding: 8px 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ce-cream);
  font: inherit;
  font-size: 11px;
  line-height: 1.3;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.ce-selector:hover { background: rgb(244 240 230 / 8%); border-color: rgb(244 240 230 / 25%); }
.ce-selector[aria-pressed="true"] { background: var(--ce-cream); color: var(--ce-green); }
.ce-selector .ce-piece { width: 32px; height: 30px; }
.ce-piece { display: block; fill: currentColor; overflow: visible; }
.ce-piece-detail { fill: none; stroke: var(--ce-cream); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.ce-piece-eye { fill: var(--ce-cream); }
.ce-selector:not([aria-pressed="true"]) .ce-piece-detail { stroke: var(--ce-green); }
.ce-selector:not([aria-pressed="true"]) .ce-piece-eye { fill: var(--ce-green); }
.ce-board {
  display: grid;
  grid-template-rows: repeat(8, 1fr);
  aspect-ratio: 1;
  width: 100%;
  min-width: 272px;
  overflow: hidden;
  border: 0;
  outline: 1px solid var(--ce-cream);
  box-shadow: 0 12px 35px rgb(0 0 0 / 12%);
}
.ce-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); min-height: 0; }
.ce-cell {
  position: relative;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  color: var(--ce-green);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ce-light { background: var(--ce-cream); }
.ce-dark { background: var(--ce-sage); }
.ce-cell.ce-current { background: var(--ce-gold); }
.ce-cell.ce-available:hover { box-shadow: inset 0 0 0 3px var(--ce-gold); }
.ce-cell .ce-piece { z-index: 1; width: 80%; height: 80%; max-height: 45px; }
.ce-cell .ce-piece-detail { stroke: var(--ce-gold); }
.ce-cell .ce-piece-eye { fill: var(--ce-gold); }
.ce-move-dot { width: 24%; height: 24%; min-width: 9px; min-height: 9px; border-radius: 50%; background: var(--ce-green); opacity: .43; outline: 2px solid rgb(223 181 93 / 62%); outline-offset: 2px; pointer-events: none; }
.ce-rank, .ce-file { position: absolute; z-index: 2; color: var(--ce-green); font-family: inherit; font-size: clamp(8px, 1.8vw, 10px); line-height: 1; font-weight: 650; pointer-events: none; }
.ce-rank { top: 4px; left: 4px; }
.ce-file { bottom: 3px; right: 4px; }
.ce-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.ce-board-label { color: rgb(244 240 230 / 75%); font-size: 10px; line-height: 1.5; letter-spacing: .025em; }
.ce-reset { appearance: none; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 4px 0 4px 8px; border: 0; background: none; color: var(--ce-cream); font: inherit; font-size: 12px; cursor: pointer; }
.ce-reset span { font-size: 22px; line-height: 1; }
.ce-reset:hover { color: var(--ce-gold); }
.ce-piece-copy { min-height: 98px; margin-top: 15px; padding-top: 18px; border-top: 1px solid rgb(244 240 230 / 20%); }
.ce-piece-name { margin: 0 0 7px; font-family: inherit; font-size: 19px; font-weight: 550; line-height: 1.25; letter-spacing: -.02em; color: var(--ce-cream); }
.ce-description { margin: 0; color: rgb(244 240 230 / 86%); font-size: 13px; line-height: 1.65; }
.ce-instruction { margin: 16px 0 0; color: rgb(244 240 230 / 75%); font-size: 11px; line-height: 1.6; }
.ce-status { min-height: 36px; margin: 10px 0 0; color: var(--ce-gold); font-size: 12px; line-height: 1.5; }
.ce-note { margin: 6px 0 0; color: rgb(244 240 230 / 65%); font-size: 10px; line-height: 1.65; }
.ce-explorer button:focus-visible { z-index: 3; outline: 3px solid var(--ce-gold); outline-offset: 3px; }
.ce-explorer .ce-cell:focus-visible { outline: 3px solid var(--ce-green); outline-offset: -4px; box-shadow: inset 0 0 0 6px var(--ce-gold); }
@media (max-width: 420px) {
  .ce-selectors { gap: 2px; }
  .ce-selector { font-size: 10px; }
  .ce-selector .ce-piece { width: 29px; }
  .ce-caption { align-items: center; }
  .ce-board-label { max-width: 175px; }
  .ce-piece-copy { min-height: 110px; }
}
@media (prefers-reduced-motion: reduce) { .ce-explorer * { transition: none !important; } }
