/* Hands-on workshop slides — kid-friendly, big type, side-by-side with ChatGPT */

body.slide {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.slide-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 3rem);
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.slide-num {
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--pm-mint);
  text-transform: uppercase;
}

.slide-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin: 0;
}

.slide-lead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--pm-dark);
  margin: 0;
  max-width: 60ch;
}

.slide-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.2rem;
  counter-reset: step;
}

.slide-steps > li {
  position: relative;
  padding: 1.4rem 1.6rem 1.4rem 5.2rem;
  background: #fff;
  border-radius: var(--pm-radius-lg);
  box-shadow: var(--pm-shadow);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.5;
}

.slide-steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 1.4rem;
  left: 1.6rem;
  width: 2.4em;
  height: 2.4em;
  background: var(--pm-mint);
  color: var(--pm-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
}

.slide-steps code,
.slide-steps kbd {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  background: var(--pm-tint);
  padding: 0.1em 0.5em;
  border-radius: 6px;
  font-size: 0.92em;
  color: var(--pm-dark);
}

.slide-steps a {
  font-weight: 600;
  word-break: break-all;
}

.slide-tip {
  background: var(--pm-tint);
  border-radius: var(--pm-radius);
  padding: 1rem 1.2rem;
  font-size: 1rem;
  color: var(--pm-dark);
  max-width: 60ch;
  line-height: 1.5;
}
.slide-tip strong { font-weight: 800; margin-right: 0.3rem; }

.slide-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 2rem;
}
.slide-nav .dots {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.slide-nav .dots a {
  width: 14px;
  height: 14px;
  display: block;
  border-radius: 50%;
  background: var(--pm-tint);
  border: 2px solid transparent;
  text-decoration: none;
}
.slide-nav .dots a[aria-current="step"] {
  background: var(--pm-mint);
  border-color: var(--pm-dark);
}

.slide-cover {
  display: grid;
  place-items: center;
  text-align: center;
  flex: 1;
  gap: 1.5rem;
}

.slide-cover .slide-title {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
}

/* Publish form */

.publish-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  gap: 1.5rem;
}

.publish-shell label {
  display: block;
  font-weight: 700;
  color: var(--pm-dark);
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.publish-shell input[type=text],
.publish-shell textarea {
  font-size: 1rem;
}

.publish-shell textarea#html {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  min-height: 18em;
  font-size: 0.9rem;
  line-height: 1.4;
}

.publish-status {
  padding: 1rem 1.2rem;
  border-radius: var(--pm-radius);
  font-weight: 600;
  display: none;
}
.publish-status.error { background: #ffd9d9; color: #7a1a1a; display: block; }
.publish-status.ok { background: var(--pm-tint); color: var(--pm-dark); display: block; }

.workshop-game-iframe {
  width: 100%;
  height: calc(100vh - 60px);
  border: 0;
  display: block;
  background: #fff;
}

.workshop-game-bar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  background: var(--pm-dark);
  color: var(--pm-cream);
  font-weight: 600;
}
/* Scope to direct (and one-deep) anchors — without this, the cream colour
   cascades into <chat-panel> (display:contents) and bleaches the entire
   feed's anchors. */
.workshop-game-bar > a,
.workshop-game-bar > span > a {
  color: var(--pm-cream);
  text-decoration-color: var(--pm-mint);
}
.workshop-game-bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.workshop-game-bar .btn-remix {
  background: var(--pm-mint);
  color: var(--pm-dark);
  border: 2px solid var(--pm-cream);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.workshop-game-bar .btn-remix:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Source-tabs on the publish form (paste vs. URL) */
.source-tabs {
  display: inline-flex;
  gap: 0;
  border-radius: 999px;
  background: var(--pm-tint);
  padding: 4px;
}
.source-tab {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: 0;
  background: transparent;
  color: var(--pm-dark);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.source-tab.is-active {
  background: var(--pm-mint);
  color: var(--pm-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* Wrapper-page modals (Remix + 45 s Prototype-Feedback) */
.ws-modal {
  border: 0;
  background: transparent;
  padding: 0;
  max-width: min(560px, 92vw);
}
.ws-modal::backdrop {
  background: rgba(20, 25, 30, 0.55);
}
.ws-modal-card {
  background: var(--pm-cream);
  color: var(--pm-dark);
  border-radius: var(--pm-radius);
  padding: 1.6rem 1.6rem 1.4rem;
  display: grid;
  gap: 0.9rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.ws-modal-card h3 {
  margin: 0;
  font-size: 1.4rem;
}
.ws-modal-card p,
.ws-modal-card ol,
.ws-modal-card li {
  margin: 0;
  line-height: 1.45;
}
.ws-modal-card ol {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.3rem;
}
.ws-modal-card textarea {
  width: 100%;
  min-height: 5em;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--pm-tint);
  border-radius: var(--pm-radius);
  background: #fff;
  resize: vertical;
}
.ws-modal-card textarea:focus {
  outline: none;
  border-color: var(--pm-mint);
}
.ws-modal-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--pm-dark);
  opacity: 0.85;
}
.ws-modal-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
