.reveal-page { margin: 0; color: var(--ink); background: var(--cream); }
.reveal-wrap { max-width: 1320px; margin: 0 auto; padding: 22px 20px 68px; }

.reveal-header {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 34px 34px 38px;
  border: 2px solid var(--chalk-deep);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--chalk-deep), var(--leaf));
  color: #fffdf7;
}
.reveal-header::after {
  position: absolute;
  top: -100px;
  right: -62px;
  width: 320px;
  height: 320px;
  content: '';
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}
.reveal-header-content { position: relative; z-index: 1; max-width: 780px; }
.reveal-header .back-btn { display: inline-flex; margin-bottom: 22px; }
.reveal-eyebrow { margin: 0; color: #ffe49a; font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.reveal-header h1 { margin: 6px 0 10px; color: #fffdf7 !important; font-family: 'DM Serif Display', 'Noto Sans SC', serif; font-weight: 400; font-size: clamp(2.1rem, 4.5vw, 3.6rem); line-height: 1.02; }
.reveal-header-content > p:not(.reveal-eyebrow) { margin: 0; color: rgba(255,253,247,.9); font-size: 1.05rem; line-height: 1.6; }
.reveal-hero-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.reveal-hero-points span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #fffdf7; font-size: .84rem; font-weight: 760; }

.reveal-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr); gap: 22px; align-items: start; }

.reveal-panel, .reveal-preview-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 26px);
  margin-bottom: 18px;
}
.reveal-builder { display: block; }

.reveal-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.reveal-panel h2, .reveal-preview-panel h2 { margin: 3px 0 0; color: var(--chalk-deep); font-family: 'DM Serif Display', 'Noto Sans SC', serif; font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 400; }
.reveal-kicker { margin: 0; color: var(--leaf); font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.reveal-step { display: inline-grid; place-items: center; margin-bottom: 8px; width: 29px; height: 29px; border-radius: 50%; background: var(--sun); color: var(--chalk-deep); font-weight: 900; font-size: .9rem; }

.reveal-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 4px; }
label { display: block; color: var(--chalk); font-size: .85rem; font-weight: 750; }
input[type="number"] {
  width: 100%;
  margin-top: 7px;
  padding: 10px 12px;
  font-weight: 500;
}
input[type="range"] { width: 100%; margin-top: 10px; accent-color: var(--leaf); }

.reveal-help { margin: 10px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }

.reveal-mode-switch { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 18px; }
.reveal-mode-switch label { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); }
.reveal-mode-switch input { width: auto; margin: 0; }

.reveal-preset-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.reveal-preset {
  border: 1px solid #cadbc1;
  background: var(--tag-bg, #edf5df);
  color: var(--chalk-deep);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .reveal-preset:hover { transform: translateY(-2px); background: #e2f0cc; }
}
.reveal-preset.is-active { background: var(--leaf); color: #fffdf7; border-color: var(--leaf); }

.reveal-upload-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px dashed #cadbc1;
  border-radius: 16px;
  padding: 22px;
  color: var(--chalk-deep);
  font-weight: 700;
  background: #f7fbf1;
  cursor: pointer;
  transition: background .15s ease;
}
.reveal-upload-drop:hover { background: #edf5df; }
.reveal-upload-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--leaf); color: #fffdf7; font-size: 1.2rem; font-weight: 900; flex: 0 0 auto; }

.reveal-image-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.reveal-image-list-item { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #f1f2e8; aspect-ratio: 1 / 1; }
.reveal-image-list-item.is-current { border-color: var(--leaf); }
.reveal-image-list-item img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.reveal-image-list-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 62, 55, .72);
  color: #fff;
  font-size: .78rem;
  padding: 0;
  cursor: pointer;
}
.reveal-image-list-remove:hover { background: var(--coral); }

.reveal-setup-status { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 700; }

.reveal-preview-panel { position: sticky; top: 20px; }
.reveal-preview-heading p { margin: 4px 0 0; }
.reveal-progress-text { color: var(--chalk) !important; font-weight: 700; }

.reveal-stage {
  position: relative;
  width: 100%;
  min-height: 220px;
  margin: 0 auto;
  border-radius: 16px;
  background: var(--chalk-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.reveal-stage:fullscreen,
.reveal-stage.is-pseudo-fullscreen {
  border-radius: 0;
}
.reveal-stage.is-pseudo-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 999;
  width: 100vw;
  height: 100vh;
}
.reveal-stage-empty { color: #cfe3da; font-size: .95rem; padding: 60px 20px; text-align: center; }

.reveal-media { position: relative; line-height: 0; }
.reveal-media img { display: block; width: 100%; height: 100%; }

.reveal-overlay { position: absolute; inset: 0; display: grid; }
.reveal-tile {
  background: var(--leaf);
  border: 1px solid rgba(255,255,255,.1);
  transition: opacity .25s ease, transform .25s ease;
}
.reveal-tile.is-revealed { opacity: 0; transform: scale(.92); pointer-events: none; }

.reveal-stage-controls, .reveal-nav-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.reveal-nav-controls { justify-content: space-between; }

.reveal-primary, .reveal-secondary {
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.reveal-primary {
  padding: 13px 22px;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 5px 0 #9d392f;
}
@media (hover: hover) and (pointer: fine) {
  .reveal-primary:hover:not(:disabled) { transform: translateY(-2px); background: #d75d49; box-shadow: 0 7px 0 #9d392f; }
}
.reveal-primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 #9d392f; }

.reveal-secondary {
  padding: 11px 18px;
  border-color: #cadbc1;
  background: #edf5df;
  color: var(--chalk-deep);
}
@media (hover: hover) and (pointer: fine) {
  .reveal-secondary:hover:not(:disabled) { transform: translateY(-2px); background: #e2f0cc; }
}

.reveal-primary:disabled, .reveal-secondary:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }

@media (max-width: 980px) {
  .reveal-layout { grid-template-columns: 1fr; }
  .reveal-preview-panel { position: static; }
}
@media (max-width: 680px) {
  .reveal-wrap { padding: 14px 12px 48px; }
  .reveal-header { padding: 22px 18px 26px; }
  .reveal-form-grid { grid-template-columns: 1fr; }
}
