.espace {
  background: #f8f7f3;
  color: #151719;
  font-family: Inter, system-ui, sans-serif;
}

.espace-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.espace-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8c7355;
}

.espace h1,
.espace h2,
.espace h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
  color: #151719;
}

.espace h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.95;
}

.espace h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
}

.espace h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.espace-lede {
  max-width: 68ch;
  font-size: 1.08rem;
  line-height: 1.6;
}

.espace-progress,
.espace-prose,
.espace-catalog,
.espace-subnav,
.espace-cta {
  margin-top: 36px;
}

.espace-progress,
.espace-panel,
.espace-card,
.espace-position,
.espace-cta {
  background: #fff;
  border: 1px solid #e8e5dd;
}

.espace-progress,
.espace-panel,
.espace-position,
.espace-cta,
.espace-card__body {
  padding: 22px;
}

.espace p {
  line-height: 1.6;
}

.espace-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin: 16px 0 0;
}

.espace-stats dt {
  color: #5c5346;
}

.espace-stats dd {
  margin: 0;
  font-weight: 600;
}

.espace-daily {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 24px;
  align-items: center;
  margin: 28px 0;
  padding: 28px;
  background: #151719;
  color: #f8f7f3;
}

.espace-daily h2,
.espace-daily .espace-kicker {
  color: #f8f7f3;
}

.espace-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.espace-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.espace-card__hook {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.espace-card__level {
  color: #5c5346;
  font-size: 0.92rem;
}

.espace-playbtn,
.espace-textbtn,
.espace-choice,
.espace-position button,
.espace-actions button,
.espace-panel button {
  font-family: Inter, system-ui, sans-serif;
  cursor: pointer;
}

.espace-playbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 10px 18px;
  background: #151719;
  color: #f8f7f3;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
}

.espace-daily .espace-playbtn {
  background: #f8f7f3;
  color: #151719;
}

.espace-playbtn:hover,
.espace-textbtn:hover,
.espace-choice:hover {
  background: #2e3134;
  color: #f8f7f3;
}

.espace-stage {
  display: grid;
  grid-template-columns: minmax(260px, 480px) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.espace-board-wrap {
  width: min(92vw, 480px);
}

.espace-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #151719;
  user-select: none;
  touch-action: none;
}

.espace-sq {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: #f1efe9;
  color: inherit;
  aspect-ratio: 1;
}

.espace-sq.is-dark {
  background: #2e3134;
}

.espace-sq.is-last {
  box-shadow: inset 0 0 0 3px #c47a5a;
}

.espace-sq.is-check {
  background: #c47a5a;
}

.espace-sq.is-selected {
  box-shadow: inset 0 0 0 3px #8c7355;
}

.espace-sq.is-hint {
  box-shadow: inset 0 0 0 4px #8c7355;
}

.espace-dot,
.espace-ring {
  position: absolute;
  pointer-events: none;
}

.espace-dot {
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: #8c7355;
}

.espace-ring {
  width: 72%;
  height: 72%;
  border-radius: 50%;
  border: 3px solid #8c7355;
}

.espace-piece {
  width: 86%;
  height: 86%;
  pointer-events: none;
}

.espace-ghost {
  position: fixed;
  z-index: 80;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  pointer-events: none;
}

.espace-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #151719;
}

.espace-promo__row {
  display: flex;
  gap: 6px;
}

.espace-promo__row button {
  width: 52px;
  height: 52px;
  padding: 4px;
  background: #f1efe9;
  border: 1px solid #151719;
}

.espace-actions,
.espace-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.espace-textbtn,
.espace-choice,
.espace-position > button,
.espace-actions button,
.espace-panel > .espace-actions button {
  padding: 8px 12px;
  background: #f8f7f3;
  color: #151719;
  border: 1px solid #151719;
}

.espace-choice {
  text-align: left;
}

.espace-msg {
  min-height: 1.5em;
  font-weight: 600;
}

.espace-panel fieldset {
  margin: 0 0 14px;
  padding: 10px 12px 12px;
  border: 1px solid #e8e5dd;
}

.espace-panel label {
  display: block;
  margin: 6px 0;
}

.espace-panel textarea {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  font: inherit;
  color: #151719;
  background: #f8f7f3;
  border: 1px solid #151719;
}

.espace-cta a,
.espace-more a,
.espace-subnav a,
.espace-panel a {
  color: #151719;
}

.espace-subnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.espace-catalog .espace-position + .espace-position {
  margin-top: 12px;
}

.espace-position.is-current {
  border-color: #8c7355;
}

.espace-mini {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #151719;
}

.espace-mini__sq {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1efe9;
  font-size: clamp(9px, 1.5vw, 15px);
  line-height: 1;
}

.espace-mini__sq.is-dark {
  background: #2e3134;
}

.espace-mini__sq.is-w {
  color: #f7f6f2;
  text-shadow: 0 0 1px #151719;
}

.espace-mini__sq.is-b {
  color: #151719;
  text-shadow: 0 0 1px #f7f6f2;
}

.espace-plist {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

.espace-check {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 800px) {
  .espace-stage,
  .espace-daily {
    grid-template-columns: 1fr;
  }
  .espace-wrap {
    padding: 32px 16px 56px;
  }
  .espace-board-wrap {
    width: min(92vw, 480px);
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .espace-piece,
  .espace-sq,
  .espace-playbtn {
    transition: none;
  }
}
