:root {
  --ink: #201e1d;
  --bg: #f3f2f2;
  --mute: #8a8683;
  --line: #d8d5d3;
  --accent: #ed6309;
  --white: #ffffff;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  overflow: hidden;
  position: fixed;
  inset: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

body.booth-kiosk {
  font-family: "Archivo", sans-serif;
  color: var(--ink);
}

.booth {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.stage-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--accent);
}

.stage {
  width: 1600px;
  height: 1000px;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--bg);
  overflow: hidden;
  transform-origin: 0 0;
}

.stage-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 92px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  padding: 0 56px;
  gap: 24px;
  background: var(--bg);
  z-index: 5;
}

.brand {
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.brand-rule {
  width: 2px;
  height: 34px;
  background: var(--ink);
}

.brand-kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.header-steps {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-bar {
  width: 34px;
  height: 8px;
  background: var(--line);
}

.step-bar.is-on {
  background: var(--accent);
}

.step-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-left: 8px;
}

.scene {
  position: absolute;
  inset: 0;
  top: 92px;
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
  will-change: transform;
}

.scene-call {
  transform: translateX(0);
  opacity: 1;
}

.booth[data-scene="analysis"] .scene-call,
.booth[data-scene="ready"] .scene-call {
  transform: translateX(-110%);
  opacity: 0;
}

.scene-analysis {
  transform: translateX(110%);
  opacity: 0;
}

.booth[data-scene="analysis"] .scene-analysis {
  transform: translateX(0);
  opacity: 1;
}

.booth[data-scene="ready"] .scene-analysis {
  transform: translateX(-110%);
  opacity: 0;
}

.scene-ready {
  transform: translateX(110%);
  opacity: 0;
}

.booth[data-scene="ready"] .scene-ready {
  transform: translateX(0);
  opacity: 1;
}

.call-layout {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 56px 28px;
  gap: 24px;
}

.call-parties {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 32px;
  align-items: center;
  flex-shrink: 0;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.panel-box {
  width: 100%;
  height: 168px;
  border: 2px solid var(--ink);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 6px 6px 0 rgba(32, 30, 29, 0.1);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.booth[data-scene="call"] .panel.is-live .panel-box {
  border-color: var(--accent);
}

.booth[data-scene="call"][data-speaking="guest"] .panel.is-reception .panel-box,
.booth[data-scene="call"][data-speaking="reception"] .panel.is-guest .panel-box {
  border-color: var(--line);
  background: var(--white);
}

.panel-label {
  margin-top: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.booth[data-scene="call"] .panel.is-live .panel-label {
  color: var(--accent);
}

.booth[data-scene="call"][data-speaking="guest"] .panel.is-reception .panel-label,
.booth[data-scene="call"][data-speaking="reception"] .panel.is-guest .panel-label {
  color: var(--ink);
}

.booth[data-scene="call"][data-speaking="guest"] .panel.is-guest .panel-box,
.booth[data-scene="call"][data-speaking="reception"] .panel.is-reception .panel-box {
  border-color: var(--accent);
  background: #fff8f3;
}

.panel-sub {
  margin-top: 2px;
  font-size: 16px;
  color: var(--mute);
}

.transcript {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(32, 30, 29, 0.1);
  padding: 22px 28px 20px;
}

.transcript-kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--mute);
  margin-bottom: 16px;
}

.bubbles {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.bubbles::-webkit-scrollbar {
  display: none;
}

.bubble {
  box-sizing: border-box;
  width: fit-content;
  max-width: 72%;
  align-self: flex-start;
  padding: 14px 18px 16px 16px;
  border: 2px solid var(--ink);
  border-left-width: 6px;
  background: var(--bg);
  box-shadow: 4px 4px 0 rgba(32, 30, 29, 0.08);
  animation: bubble-in 0.4s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

.bubble.is-reception {
  align-self: flex-end;
  text-align: right;
  background: #fff7f1;
  border-left-width: 2px;
  border-right-width: 6px;
  border-right-color: var(--accent);
}

.bubble-who {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--mute);
  margin-bottom: 6px;
}

.bubble.is-reception .bubble-who {
  color: var(--accent);
}

.bubble-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  min-height: 1.4em;
  overflow-wrap: break-word;
}

.bubble.is-typing .bubble-text::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 1.05em;
  margin-left: 3px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 0.7s steps(2) infinite;
}

.wave-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.call-clock {
  display: flex;
  align-items: center;
  gap: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
}

.live-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  animation: blink 0.8s steps(2) infinite;
}

.wave {
  margin-top: 16px;
  height: 72px;
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.wave-bar {
  width: 7px;
  height: 8px;
  background: var(--ink);
  transform-origin: center;
}

.wave-bar:nth-child(4n) {
  background: var(--accent);
}

.booth[data-scene="call"] .wave-bar {
  animation: wave 0.7s ease-in-out infinite alternate;
}

.analysis-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-bottom: 40px;
}

.analysis-card {
  position: relative;
  width: 800px;
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 40px;
  box-shadow: 6px 6px 0 rgba(32, 30, 29, 0.1);
}

.analysis-top {
  display: flex;
  align-items: center;
  gap: 24px;
}

.analysis-copy h2 {
  margin: 0;
  font-weight: 800;
  font-size: 34px;
}

.analysis-copy p {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--mute);
}

.analysis-pct {
  margin-left: auto;
  font-weight: 900;
  font-size: 88px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.booth[data-scene="ready"] .analysis-pct {
  color: var(--accent);
}

.analysis-bar {
  margin-top: 28px;
  height: 18px;
  background: var(--line);
}

.analysis-bar-fill {
  height: 18px;
  width: 0;
  background: var(--ink);
}

.analysis-lines {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.analysis-line {
  height: 12px;
  background: #eceae9;
  transition: background 0.35s ease;
}

.booth[data-scene="analysis"] .analysis-line.is-on,
.booth[data-scene="ready"] .analysis-line.is-on {
  background: #c9c6c4;
}

.chip {
  position: absolute;
  top: -52px;
  left: 28px;
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 4px 4px 0 rgba(32, 30, 29, 0.12);
  opacity: 0;
  transform: translateX(-80px);
}

.booth[data-scene="analysis"] .chip {
  animation: chip-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.ready-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 98px;
}

.ready-check {
  width: 130px;
  height: 130px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop 0.55s cubic-bezier(0.22, 1.4, 0.36, 1) both;
}

.ready-title {
  margin-top: 34px;
  font-weight: 900;
  font-size: 74px;
  line-height: 1;
}

.ready-note {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 26px;
}

.ready-cta {
  margin-top: 56px;
  width: 640px;
  height: 128px;
  background: var(--accent);
  color: var(--white);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  font-family: inherit;
  font-weight: 800;
  font-size: 42px;
  letter-spacing: 0.01em;
  box-shadow: 8px 8px 0 rgba(32, 30, 29, 0.18);
  animation: pulse-scale 2s ease-in-out infinite;
}

.ready-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 6px 6px 0 rgba(32, 30, 29, 0.18);
}

.caption {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 36px;
  font: 600 30px "Archivo", sans-serif;
  z-index: 6;
  min-height: 1.2em;
}

.booth[data-scene="idle"] .caption,
.booth[data-scene="call"] .caption {
  opacity: 0;
}

.cover {
  position: fixed;
  inset: 0;
  background: var(--accent);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.7s ease;
  pointer-events: auto;
  -webkit-touch-callout: none;
}

.booth:not([data-scene="idle"]) .cover {
  opacity: 0;
  pointer-events: none;
}

.cover-title {
  position: relative;
  z-index: 1;
  font-weight: 900;
  font-size: clamp(48px, 8vw, 104px);
  color: var(--white);
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.05;
}

.cover-hint {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 56px;
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
}

.cover-key {
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cover-ring {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 80px;
  height: 80px;
  margin-left: -40px;
  margin-top: -40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
  animation: ring 1.8s linear infinite;
}

.cover-ring:nth-child(2) {
  animation-delay: 0.9s;
}

.cable-status {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 40;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 12px;
}

.report {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: auto;
}

.icon {
  display: block;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes wave {
  from {
    height: 10px;
  }
  to {
    height: 64px;
  }
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateX(-420px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse-scale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@keyframes ring {
  from {
    width: 80px;
    height: 80px;
    margin-left: -40px;
    margin-top: -40px;
    opacity: 0.6;
  }
  to {
    width: 640px;
    height: 640px;
    margin-left: -320px;
    margin-top: -320px;
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .call-layout {
    gap: 16px;
    padding: 20px 24px;
  }
}
