/* TENET5 Scene Template styling — used by all 5 Act entry pages.
   Pairs with js/scene-template.js + js/unified-walkthrough.js.
   Powered by LIRIL AI | SEED 118400. */

.walkthrough-host {
  position: relative;
  width: 100%;
  min-height: 70vh;
  background: #050810;
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 10px;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s 0.6s;
  color: #f5f5f5;
}

.scene--active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0s 0s;
  z-index: 2;
}

.scene__inner {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.scene__act {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  color: #c9a84c;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.scene__rome {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #c9a84c;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scene__headline {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1rem 0;
  color: #ffffff;
  font-weight: 700;
}

.scene__subhead {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: rgba(245, 245, 245, 0.78);
  margin: 0;
  line-height: 1.5;
}

.scene--quote .scene__quote {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.4;
  color: #ffffff;
  margin: 0 0 1.5rem 0;
  border: none;
  padding: 0;
}

.scene--quote .scene__cite {
  display: block;
  font-style: normal;
  font-size: 1rem;
  color: #c9a84c;
  margin-bottom: 0.3rem;
}

.scene--quote .scene__cite-meta {
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.6);
  margin-bottom: 1.2rem;
}

.scene--stat .scene__stat-value {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: #dc2626;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.scene--stat .scene__stat-unit {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: #f5f5f5;
  margin-bottom: 1.2rem;
}

.scene--stat .scene__stat-context {
  font-size: 0.95rem;
  color: rgba(245, 245, 245, 0.75);
  max-width: 720px;
  margin: 0 auto 1.2rem;
  line-height: 1.55;
}

.scene--impact .scene__headline {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1.4rem;
}

.scene--impact .scene__body {
  font-size: 1.05rem;
  color: rgba(245, 245, 245, 0.85);
  line-height: 1.65;
  text-align: left;
  max-width: 760px;
  margin: 0 auto;
}

.scene--impact .scene__body p {
  margin-bottom: 1rem;
}

.scene__source {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 4px;
  color: #c9a84c;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: background 0.2s, border-color 0.2s;
}

.scene__source:hover,
.scene__source:focus {
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.7);
  outline: none;
}

.scene--error {
  background: rgba(220, 38, 38, 0.06);
}

.walkthrough-chrome {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 8px;
}

.wt-btn {
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: #c9a84c;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.wt-btn:hover:not(:disabled),
.wt-btn:focus:not(:disabled) {
  background: rgba(201, 168, 76, 0.22);
  border-color: rgba(201, 168, 76, 0.7);
  outline: none;
}

.wt-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.wt-progress {
  flex: 1;
  height: 6px;
  background: rgba(245, 245, 245, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.wt-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c9a84c, #dc2626);
  transition: width 0.5s ease;
}

.wt-counter {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 0.95rem;
  color: rgba(245, 245, 245, 0.7);
  min-width: 60px;
  text-align: center;
}

@media (max-width: 720px) {
  .scene { padding: 3rem 1rem; }
  .walkthrough-chrome { gap: 0.5rem; padding: 0.5rem; }
  .wt-btn { width: 40px; height: 40px; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scene { transition: opacity 0.1s ease; }
  .wt-progress__fill { transition: none; }
}
