:root {
  --bg: #ffffff;
  --panel: rgba(255, 255, 255, 0.92);
  --ink: #17202a;
  --muted: #5e615c;
  --line: rgba(23, 32, 42, 0.14);
  --accent: #a4551e;
  --accent-2: #0f84b8;
  --shadow: 0 28px 64px rgba(45, 33, 22, 0.12);
  --hover: rgba(15, 132, 184, 0.2);
  --active: rgba(255, 170, 23, 0.3);
  --solved: rgba(116, 123, 130, 0.24);
  --success: #25784c;
  --warning: #8f521d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}

a {
  color: #67260c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.creator-topbar {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 18px 0;
}

.creator-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 100%;
}

.creator-topbar__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 70px;
}


.creator-shell {
  width: min(1360px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 22px 0 46px;
}

.creator-panel,
.creator-hero {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.creator-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
  gap: 24px;
  padding: 30px;
  border-radius: 30px;
}

.creator-eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.creator-eyebrow--small {
  margin-bottom: 8px;
}

.creator-hero h1,
.creator-panel h2,
.creator-panel h3 {
  margin: 0;
  line-height: 1.02;
}

.creator-hero h1 {
  font-size: clamp(2.05rem, 4vw, 3.8rem);
  max-width: 14ch;
}

.creator-lead,
.creator-panel p,
.creator-panel li {
  font-size: 1.03rem;
  line-height: 1.72;
}

.creator-lead {
  max-width: 68ch;
}

.hero-card {
  display: grid;
  gap: 12px;
  height: 100%;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246, 246, 246, 0.86));
  border: 1px solid rgba(23, 32, 42, 0.1);
}

.hero-card__image {
  width: 100%;
  border-radius: 18px;
  background: #fff;
}

.creator-map-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.82fr) minmax(0, 1.7fr);
  gap: 20px;
  margin-top: 22px;
}

.creator-stage {
  display: grid;
  gap: 20px;
}

.creator-panel {
  padding: 22px;
  border-radius: 26px;
}

.creator-steps {
  margin: 14px 0 0;
  padding-left: 20px;
}

.creator-status {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(247, 240, 226, 0.85);
  border: 1px solid rgba(164, 85, 30, 0.15);
}

.creator-status__label,
.creator-status__meta {
  margin: 0;
}

.creator-progress {
  margin: 10px 0;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(23, 32, 42, 0.08);
}

.creator-progress__bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ffb72f 0%, #0c93c7 100%);
  transition: width 240ms ease;
}

.creator-message,
.board-caption,
.fact-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 251, 244, 0.92);
  border: 1px solid rgba(23, 32, 42, 0.09);
}

.creator-message {
  margin-top: 18px;
}

.piece-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.piece-list__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 18px;
  background: #fffdf7;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 180ms ease;
}

.piece-list__item:hover,
.piece-list__item:focus-visible,
.creator-viewbar__button:hover,
.creator-viewbar__button:focus-visible,
.quiz-option:hover,
.quiz-option:focus-visible,
.creator-button:hover,
.creator-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 132, 184, 0.42);
  box-shadow: 0 12px 26px rgba(15, 132, 184, 0.12);
}

.piece-list__item.is-active {
  border-color: rgba(255, 170, 23, 0.42);
  background: rgba(255, 246, 224, 0.95);
}

.piece-list__item.is-solved {
  opacity: 0.76;
  background: rgba(240, 241, 242, 0.96);
  cursor: default;
}

.piece-list__item:disabled {
  cursor: default;
}

.piece-list__index {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(15, 132, 184, 0.11);
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 700;
}

.piece-list__title,
.piece-list__blurb {
  display: block;
}

.piece-list__title {
  font-size: 0.96rem;
  font-weight: 700;
}

.piece-list__blurb {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.creator-viewbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.creator-viewbar__button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(23, 32, 42, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.creator-viewbar__button.is-active {
  border-color: rgba(15, 132, 184, 0.38);
  background: linear-gradient(180deg, rgba(235, 248, 252, 0.98), rgba(223, 241, 248, 0.92));
  box-shadow: 0 10px 24px rgba(15, 132, 184, 0.1);
}

.creator-board {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246, 241, 234, 0.98));
  border: 1px solid rgba(23, 32, 42, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.board-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.creator-board[data-view="exploded"] .board-scene--exploded,
.creator-board[data-view="reverse"] .board-scene--reverse {
  opacity: 1;
  pointer-events: auto;
}

.board-scene image {
  pointer-events: none;
}

.board-overlay {
  pointer-events: all;
}

.map-hotspot {
  background: transparent;
  cursor: pointer;
  outline: none;
  pointer-events: all;
}

.map-hotspot__shape {
  fill: rgba(15, 132, 184, 0.001);
  stroke: rgba(15, 132, 184, 0.001);
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
  pointer-events: all;
  transition: fill 160ms ease, stroke 160ms ease;
}

.map-hotspot:hover .map-hotspot__shape,
.map-hotspot:focus-visible .map-hotspot__shape {
  fill: var(--hover);
  stroke: rgba(15, 132, 184, 0.86);
}

.map-hotspot.is-active .map-hotspot__shape {
  stroke: rgba(255, 170, 23, 0.98);
  fill: var(--active);
}

.map-hotspot.is-solved .map-hotspot__shape {
  stroke: rgba(116, 123, 130, 0.98);
  fill: var(--solved);
}

.map-hotspot__badge {
  background: rgba(255,255,255,0.98);
  fill: rgba(255,255,255,0.98);
  stroke: rgba(23, 32, 42, 0.16);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.map-hotspot__index {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}

.question-header {
  margin-bottom: 14px;
}

.quiz-options {
  display: grid;
  gap: 12px;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 18px;
  background: #fffdf8;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.quiz-option.is-correct {
  border-color: rgba(37, 120, 76, 0.55);
  background: rgba(228, 247, 235, 0.9);
}

.quiz-option.is-wrong {
  border-color: rgba(164, 85, 30, 0.45);
  background: rgba(255, 243, 232, 0.95);
}

.quiz-option__letter {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(15, 132, 184, 0.11);
  color: var(--accent-2);
  font-weight: 700;
}

.fact-card {
  margin-top: 18px;
}

.fact-card h3 {
  margin-bottom: 8px;
}

.creator-panel--finish {
  margin-top: 22px;
}

.finish-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.creator-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 132, 184, 0.42);
  background: linear-gradient(180deg, #fff6dd, #ffd783);
  color: #40220d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.creator-button--ghost {
  background: #fff;
}

.creator-footer {
  padding: 0 18px 28px;
}

.creator-footer__inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}

.creator-footer__logo {
  display: block;
  height: 28px;
  width: auto;
}

@media (max-width: 1120px) {
  .creator-map-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .creator-shell {
    width: min(100vw - 20px, 1360px);
  }

  .creator-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .creator-panel {
    padding: 18px;
  }

  .creator-viewbar {
    gap: 8px;
  }

  .creator-viewbar__button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .creator-footer__inner {
    gap: 28px;
  }
}
