:root {
  --background_color: #f0efe9;
  --poster-scale: 1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--background_color);
}

.hall {
  width: 100%;
  height: 100%;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  background-color: var(--background_color);
}

.hall.dragging {
  cursor: grabbing;
}

.wall {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -200vw;
  width: 500vw;
  z-index: 0;
  pointer-events: none;
  background-color: var(--background_color);
  background-image: url("assets/wall-texture.png");
  background-repeat: repeat;
  background-size: 420px auto;
  will-change: transform;
}

.track {
  display: flex;
  align-items: center;
  height: 100%;
  will-change: transform;
  position: relative;
  z-index: 1;
}

.reveal {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-fill {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  width: 100dvw;
  background: #1e1b4b;
}

.reveal.is-open {
  width: 100%;
  pointer-events: auto;
}

.exit-session {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 40px;
  right: 64px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #2a2a35;
  border-radius: 100px;
  background: rgba(17, 24, 39, 0.7);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  color: #f3f4f6;
  font-family: Geist, Inter, sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.6);
  transform-origin: center center;
}

.hall.session-open:has(.meta-sidebar.is-on-vivid) .exit-session {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.hall.session-open:has(.meta-sidebar.is-on-vivid) .exit-session img {
  filter: brightness(0) invert(1);
}

.exit-session img {
  width: 16px;
  height: 16px;
  display: block;
}

.exit-session.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: exit-pop 0.32s ease-out both;
}

.exit-session.is-leaving {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  animation: exit-unpop 0.32s ease-in both;
}

@keyframes exit-pop {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  45% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes exit-unpop {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  45% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
}

.hall.session-open {
  cursor: default;
}

.meta-sidebar {
  --meta-accent: #eab308;
  --meta-badge-bg: rgba(234, 179, 8, 0.16);
  --meta-badge-border: rgba(234, 179, 8, 0.32);
  position: absolute;
  z-index: 100;
  width: calc(380px * var(--poster-scale));
  display: flex;
  visibility: hidden;
  pointer-events: none;
}

.meta-sidebar.is-open {
  visibility: visible;
  pointer-events: auto;
}

.meta-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: calc(32px * var(--poster-scale));
  width: 100%;
  position: relative;
}

.meta-panel-main {
  display: flex;
  flex-direction: column;
  gap: calc(32px * var(--poster-scale));
  width: 100%;
}

.meta-panel-next {
  display: none;
  width: 100%;
}

.meta-sidebar.is-next .meta-panel-main {
  display: none;
}

.meta-sidebar.is-next {
  width: min(42vw, 460px);
}

.meta-sidebar.is-next .meta-panel-next {
  display: block;
}

.meta-next-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(84vh, 860px);
  overflow: hidden;
  border-radius: 8px;
  background: #0b0b0f;
  clip-path: inset(0 0 100% 0);
}

.meta-next-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.meta-main {
  display: flex;
  flex-direction: column;
  gap: calc(12px * var(--poster-scale));
}

.meta-kicker,
.meta-title,
.meta-blurb,
.meta-tech-label {
  display: block;
}

.meta-kicker {
  font-family: Geist, Inter, sans-serif;
  font-weight: 700;
  font-size: calc(12px * var(--poster-scale));
  text-transform: uppercase;
  color: var(--meta-accent);
}

.meta-title {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: calc(44px * var(--poster-scale));
  line-height: 1.05;
  color: #f3f4f6;
}

.meta-blurb {
  font-family: Geist, Inter, sans-serif;
  font-size: calc(14px * var(--poster-scale));
  line-height: 1.5;
  color: #9ca3af;
}

.meta-rule {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  transform: scaleX(0);
  transform-origin: left center;
  margin-bottom: calc(4px * var(--poster-scale));
}

.meta-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: calc(16px * var(--poster-scale));
}

.meta-tech-label {
  font-family: Geist, Inter, sans-serif;
  font-weight: 700;
  font-size: calc(11px * var(--poster-scale));
  text-transform: uppercase;
  color: #9ca3af;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8px * var(--poster-scale));
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: calc(4px * var(--poster-scale)) calc(8px * var(--poster-scale));
  border: 1px solid var(--meta-badge-border);
  border-radius: 4px;
  background: var(--meta-badge-bg);
  color: var(--meta-accent);
  font-family: Geist, Inter, sans-serif;
  font-weight: 600;
  font-size: calc(11px * var(--poster-scale));
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.6);
  transform-origin: center center;
}

.meta-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: calc(8px * var(--poster-scale));
}

.meta-git {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f3f4f6;
  font-family: Geist, Inter, sans-serif;
  font-weight: 600;
  font-size: calc(14px * var(--poster-scale));
  text-decoration: underline;
}

.meta-git span {
  display: inline-block;
}

.meta-git img {
  width: 20px;
  height: 20px;
  display: block;
  clip-path: inset(0 100% 0 0);
}

.meta-date {
  font-family: Geist, Inter, sans-serif;
  font-size: calc(13px * var(--poster-scale));
  color: #9ca3af;
  white-space: nowrap;
}

.meta-sidebar.is-on-vivid .meta-title,
.meta-sidebar.is-on-vivid .meta-git {
  color: #ffffff;
}

.meta-sidebar.is-on-vivid .meta-blurb,
.meta-sidebar.is-on-vivid .meta-tech-label,
.meta-sidebar.is-on-vivid .meta-date {
  color: rgba(255, 255, 255, 0.78);
}

.meta-sidebar.is-on-vivid .meta-rule {
  background: rgba(255, 255, 255, 0.28);
}

.meta-sidebar.is-on-vivid .meta-git img {
  filter: brightness(0) invert(1);
}

.meta-sidebar.is-on-vivid .meta-demo {
  color: #2e1065;
}

.meta-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: calc(16px * var(--poster-scale)) calc(24px * var(--poster-scale));
  border-radius: 8px;
  background: var(--meta-accent);
  color: #111827;
  font-family: Geist, Inter, sans-serif;
  font-weight: 700;
  font-size: calc(14px * var(--poster-scale));
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.6);
  transform-origin: center center;
}

.focus-layer {
  position: absolute;
  inset: 0;
  z-index: 21;
  pointer-events: none;
}

.focus-layer .poster-slot {
  position: absolute;
  z-index: 2;
  pointer-events: auto;
}

.hang {
  position: relative;
  flex: 0 0 calc((var(--poster-w, 540px) + 226px) * var(--poster-scale));
  height: 100%;
  isolation: isolate;
}

.wall-award {
  position: absolute;
  left: calc(-118px * var(--poster-scale));
  top: max(56px, calc(50% - (var(--poster-h, 760px) * var(--poster-scale)) / 2 + 16px));
  z-index: 0;
  width: calc(92px * var(--poster-scale));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(2px * var(--poster-scale));
  pointer-events: none;
  opacity: 0.9;
  transform: translate3d(0, 0, 0);
}

.wall-award-seal {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transform: translateZ(0);
}

.wall-award-seal img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 2px 1px rgba(90, 55, 12, 0.2))
    drop-shadow(0 6px 8px rgba(0, 0, 0, 0.28))
    drop-shadow(0 1px 0 rgba(255, 240, 180, 0.4));
}

.wall-award-label {
  margin: 0;
  width: calc(100px * var(--poster-scale));
  font-family: Inter, Geist, sans-serif;
  font-weight: 700;
  font-size: calc(11px * var(--poster-scale));
  line-height: 1.2;
  text-align: center;
  color: #73591a;
  opacity: 0.85;
  text-shadow:
    0.5px 1px 0 rgba(242, 224, 140, 0.6),
    -0.3px -0.5px 0.5px rgba(89, 71, 13, 0.4),
    0 2px 3px rgba(0, 0, 0, 0.18);
}

.wall-award-label span {
  display: block;
}

.swing-rig {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-origin: 0 0;
  will-change: transform;
}

.strings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}

.strings polyline {
  fill: none;
  stroke: #4d4d4d;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.poster-slot {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--poster-w, 540px) * var(--poster-scale));
  height: calc(var(--poster-h, 760px) * var(--poster-scale));
  transform-origin: center center;
  cursor: grab;
}

.poster {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--poster-w, 540px);
  height: var(--poster-h, 760px);
  transform: scale(var(--poster-scale));
  transform-origin: top left;
  border: 1px solid #bdb8af;
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  filter: drop-shadow(0 32px 32px rgba(0, 0, 0, 0.9));
}

.poster-fill {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(235deg, rgb(229, 225, 216) 25%, rgb(216, 210, 199) 75%);
  pointer-events: none;
}

.weave {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
}

.edge {
  position: absolute;
  background: #d1d5db;
  pointer-events: none;
}

.edge-t,
.edge-b {
  left: -1px;
  width: var(--poster-w, 540px);
  height: 2px;
}

.edge-t {
  top: -1px;
}

.edge-b {
  bottom: -1px;
}

.edge-l,
.edge-r {
  top: -1px;
  width: 2px;
  height: var(--poster-h, 760px);
}

.edge-l {
  left: -1px;
}

.edge-r {
  right: -1px;
}

.sheet-header,
.cols,
.col,
section {
  position: relative;
  z-index: 1;
}

.sheet-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

.kicker {
  font-family: Geist, Inter, sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  color: #1f1f26;
}

.sheet-header h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  color: #111827;
}

.byline {
  display: flex;
  gap: 8px;
  padding-top: 4px;
  font-family: Geist, Inter, sans-serif;
  font-size: 10px;
}

.byline strong {
  font-weight: 600;
  color: #111827;
}

.byline span {
  color: #6b7280;
}

.cols {
  display: flex;
  flex: 1;
  gap: 16px;
  min-height: 0;
}

.col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

section h3 {
  font-family: Geist, Inter, sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: #111827;
}

section p {
  font-family: Geist, Inter, sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: #374151;
}

section p strong {
  font-weight: 700;
}

.chart {
  background: #f3f4f6;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chart p {
  font-weight: 600;
  font-size: 9px;
  color: #4b5563;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
  padding-top: 8px;
}

.bar {
  flex: 1;
  min-width: 0;
  border-radius: 2px 2px 0 0;
}

.inset {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 2;
}

.construction-sign {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%) rotate(-12deg);
  pointer-events: none;
  filter: drop-shadow(4px 8px 8px rgba(0, 0, 0, 0.4));
}

.construction-diamond {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130px;
  height: 130px;
  margin: -65px 0 0 -65px;
  background: #f5c400;
  border: 6px solid #1a1a1a;
  border-radius: 10px;
  transform: rotate(45deg);
}

.construction-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #1a1a1a;
  text-align: center;
}

.construction-warn {
  font-family: Geist, Inter, sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
}

.construction-ko {
  font-family: Geist, Inter, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}

.construction-en {
  font-family: Geist, Inter, sans-serif;
  font-weight: 600;
  font-size: 6px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.construction-bolt {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d1d5db, #6b7280 70%, #374151);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.construction-bolt.bolt-top {
  left: 84.94px;
  top: 14.05px;
}

.construction-bolt.bolt-bottom {
  left: 85.17px;
  top: 157.22px;
}

.construction-bolt.bolt-left {
  left: 13.47px;
  top: 85.75px;
}

.construction-bolt.bolt-right {
  left: 158.6px;
  top: 85.93px;
}

.poster--image {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.poster--image .poster-fill {
  background: #111827;
}

.poster-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
}

.poster--llm-notify .poster-fill {
  background: #0b1f4d;
}

.poster--llm-notify .edge {
  background: #16356e;
}

.llm {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: Geist, Inter, sans-serif;
  font-size: 10px;
  line-height: 1.3;
  color: #111827;
}

.poster--llm-notify section {
  gap: 0;
}

.poster--llm-notify section h3,
.poster--llm-notify section p {
  font-size: inherit;
  line-height: inherit;
  text-transform: none;
  color: inherit;
}

.llm h2,
.llm h3,
.llm p,
.llm li {
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
}

.llm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: #fff;
  border-radius: 4px;
}

.llm-header h2 {
  font-family: Geist, Inter, sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  color: #111827;
}

.llm p.llm-authors,
.llm p.llm-affil {
  margin-top: 2px;
  font-size: 8px;
}

.llm-affil {
  color: #4b5563;
}

.llm-logo {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #9ca3af;
  border-radius: 4px;
  background: #f9fafb;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 700;
}

.llm-window {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.llm-chrome {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.llm-chrome p {
  margin-left: 4px;
  font-weight: 700;
  color: #4b5563;
}

.llm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.llm-dot.red {
  background: #ef4444;
}

.llm-dot.yellow {
  background: #eab308;
}

.llm-dot.green {
  background: #22c55e;
}

.llm-window-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px 8px 6px;
}

.llm-block h3,
.llm-compare-title,
.llm-step-title,
.llm-card > h3 {
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
  color: #111827;
}

.llm-card > h3 {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.llm-block p,
.llm-step p,
.llm-compare p,
.llm ol {
  font-size: 10px;
  line-height: 1.3;
  color: #374151;
}

.llm-related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 2px;
}

.llm-compare {
  padding: 3px 4px;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
}

.llm-pro,
.llm-con {
  margin-top: 2px;
  padding: 2px 4px;
  border-radius: 2px;
}

.llm-pro {
  background: #dcfce7;
  color: #166534;
}

.llm-con {
  background: #fee2e2;
  color: #991b1b;
}

.llm-proposed {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.llm-proposed > div:first-child {
  flex: 1;
  min-width: 0;
}

.llm-qr {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #9ca3af;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 700;
}

.llm-bottom {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.llm-right {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.llm-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #111827;
}

.llm-card > h3 {
  padding: 3px 7px;
  background: #111827;
  color: #fff;
}

.llm-card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
}

.llm-design {
  min-height: 0;
}

.llm-arch {
  flex: 1.15;
}

.llm-arch .llm-card-body {
  background: #111827;
}

.llm-arch ol,
.llm-arch li {
  color: #e5e7eb;
}

.llm-conc {
  flex: 0.85;
}

.llm-step {
  display: flex;
  gap: 5px;
  padding: 4px 5px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.llm-step > span,
.llm ol span {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  color: #111827;
}

.llm-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: auto;
}

.llm-shot,
.llm-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #9ca3af;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 700;
}

.llm-shot {
  height: 78px;
  border-radius: 8px;
}

.llm-diagram {
  height: 64px;
  border-radius: 4px;
  background: #1f2937;
  border-color: #4b5563;
}

.llm ol {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  list-style: none;
}

.llm ol li {
  display: flex;
  gap: 4px;
}

.llm-arch ol span {
  color: #facc15;
}

.llm-venue {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #dbeafe;
}

@media (prefers-reduced-motion: reduce) {
  .track,
  .wall {
    transition: none !important;
  }
}
