@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500&display=swap");

:root {
  --ink: #f4ead7;
  --muted: rgba(244, 234, 215, 0.72);
  --line: rgba(244, 234, 215, 0.14);
  --accent: #d75a2d;
  --glass: rgba(18, 13, 11, 0.84);
  --glass-soft: rgba(38, 29, 24, 0.42);
  --band-h: 18vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 200, 130, 0.08), transparent 30%),
    linear-gradient(180deg, #130d0b 0%, #0f0b09 100%);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
}

a {
  color: inherit;
}

.page {
  position: relative;
  height: 100vh;
  width: 100vw;
}

.corner-note {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 20;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(17, 12, 10, 0.72);
  backdrop-filter: blur(10px);
}

.corner-note p,
.corner-note a {
  margin: 0;
  font-size: 0.84rem;
}

.corner-note a {
  color: var(--muted);
  text-decoration: none;
}

.scroll-frame {
  height: calc(100vh - var(--band-h));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 234, 215, 0.18) transparent;
  cursor: grab;
}

.scroll-frame:active {
  cursor: grabbing;
}

.scroll-inner {
  position: relative;
  width: max-content;
  height: 100%;
}

#full-scroll-image {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.scroll-hotspots {
  position: absolute;
  inset: 0;
}

.scroll-hotspot {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid rgba(215, 90, 45, 0.1);
  border-right: 1px solid rgba(215, 90, 45, 0.1);
  background: rgba(215, 90, 45, 0.03);
  cursor: pointer;
}

.scroll-hotspot::after {
  content: attr(data-scene-id);
  position: absolute;
  right: 8px;
  bottom: 10px;
  padding: 2px 6px 3px;
  font-size: 0.72rem;
  color: rgba(244, 234, 215, 0.84);
  background: rgba(19, 13, 11, 0.62);
  opacity: 0;
  transition: opacity 140ms ease;
}

.scroll-hotspot:hover::after,
.scroll-hotspot.active::after {
  opacity: 1;
}

.scroll-hotspot.active {
  background:
    linear-gradient(180deg, rgba(215, 90, 45, 0.22), transparent 24%, transparent 76%, rgba(215, 90, 45, 0.24)),
    rgba(215, 90, 45, 0.08);
  border-left-color: rgba(215, 90, 45, 0.38);
  border-right-color: rgba(215, 90, 45, 0.38);
}

.info-band {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  height: var(--band-h);
  max-height: 20vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
  padding: 16px 22px 18px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(55, 37, 29, 0.2), rgba(18, 13, 11, 0.96)),
    var(--glass);
  backdrop-filter: blur(20px);
}

.info-primary,
.info-secondary {
  min-width: 0;
}

.info-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.band-kicker,
.band-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#scene-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 2.6vw, 2.8rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.band-translation,
.band-copy,
.band-literal {
  margin: 0;
  line-height: 1.45;
}

.translation-block {
  position: relative;
  margin-top: 8px;
  display: grid;
  gap: 8px;
  align-items: start;
}

.band-translation {
  max-width: 56ch;
  font-size: 1rem;
}

.literal-toggle {
  justify-self: start;
  padding: 3px 8px 4px;
  border: 1px solid rgba(244, 234, 215, 0.18);
  background: var(--glass-soft);
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.band-literal {
  max-width: 64ch;
  padding-top: 2px;
  color: rgba(244, 234, 215, 0.92);
  font-size: 0.92rem;
}

.band-copy {
  color: var(--muted);
  font-size: 0.93rem;
}

@media (max-width: 960px) {
  :root {
    --band-h: 24vh;
  }

  .info-band {
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: none;
  }

  .info-secondary {
    grid-template-columns: 1fr 1fr;
  }

  .scroll-frame {
    height: calc(100vh - var(--band-h));
  }
}

@media (max-width: 720px) {
  :root {
    --band-h: 31vh;
  }

  .corner-note {
    top: 10px;
    left: 10px;
    padding: 8px 10px;
  }

  .info-band {
    padding: 12px 14px 14px;
  }

  .info-secondary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .band-translation,
  .band-copy {
    font-size: 0.9rem;
  }
}
