:root {
  --presentation-bg: #07141a;
  --presentation-surface: rgba(10, 28, 36, 0.82);
  --presentation-border: rgba(191, 214, 220, 0.12);
  --presentation-text: #ecf5f6;
  --presentation-muted: #aac3c8;
  --presentation-accent: #9de0cf;
  --presentation-accent-strong: #d5f36f;
  --presentation-shadow: 0 20px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--presentation-text);
  background:
    radial-gradient(circle at top left, rgba(157, 224, 207, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(213, 243, 111, 0.14), transparent 28%),
    linear-gradient(160deg, #081216 0%, #0d2026 48%, #07141a 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

.presentation-shell {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.presentation-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 90%);
  pointer-events: none;
}

.presentation-main {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.4vw, 24px);
  overflow: hidden;
}

.language-screen,
.presentation-stage {
  width: min(1080px, 100%);
}

.presentation-stage {
  height: min(760px, calc(100vh - 32px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.6vh, 16px);
  padding: clamp(10px, 1.4vh, 16px);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 20, 26, 0.22);
  backdrop-filter: blur(10px);
}

.language-panel,
.slide-card {
  border: 1px solid var(--presentation-border);
  box-shadow: var(--presentation-shadow);
  background: var(--presentation-surface);
  backdrop-filter: blur(18px);
}

.slide-card {
  height: 100%;
  display: flex;
  min-height: 0;
}

.language-panel {
  padding: 28px;
}

.language-kicker,
.slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--presentation-accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.language-title,
.slide-title {
  margin: 14px 0 14px;
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.language-title {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  max-width: 10ch;
}

.slide-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4.1vw, 3.1rem);
  max-width: 16ch;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.language-copy,
.slide-description {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--presentation-muted);
}

.slide-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.presentation-stage.is-compact .slide-title {
  margin: 10px 0 10px;
  font-size: clamp(1.5rem, 3.8vw, 2.8rem);
  max-width: 22ch;
  -webkit-line-clamp: 2;
}

.presentation-stage.is-compact .slide-description {
  font-size: clamp(0.96rem, 2.1vw, 1.08rem);
  -webkit-line-clamp: 2;
}

.presentation-stage.is-compact .slide-content {
  margin-top: 12px;
}

.presentation-stage.is-compact .slide-statement {
  font-size: clamp(1rem, 2vw, 1.1rem);
  -webkit-line-clamp: 5;
}

.presentation-stage.is-ultra .slide-card-body {
  padding: 14px;
}

.presentation-stage.is-ultra .slide-title {
  margin: 8px 0 8px;
  font-size: clamp(1.35rem, 3.4vw, 2.4rem);
  -webkit-line-clamp: 2;
}

.presentation-stage.is-ultra .slide-description {
  -webkit-line-clamp: 1;
}

.presentation-stage.is-ultra .slide-content {
  overflow: auto;
  padding-right: 6px;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior: contain;
}

.presentation-stage.is-ultra .slide-list,
.presentation-stage.is-ultra .slide-statement-list,
.presentation-stage.is-ultra .slide-bullets {
  gap: 10px;
}

.presentation-stage.is-ultra .slide-list-item,
.presentation-stage.is-ultra .slide-bullet,
.presentation-stage.is-ultra .slide-statement {
  padding: 12px 14px;
}

.presentation-stage.is-ultra .slide-list-item-text,
.presentation-stage.is-ultra .slide-bullet-text {
  font-size: 0.96rem;
  line-height: 1.45;
}

.language-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.language-button {
  min-width: 150px;
}

.is-hidden {
  display: none !important;
}

.presentation-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
}

.presentation-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.presentation-brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--presentation-accent-strong);
}

.presentation-subbrand {
  margin-top: 6px;
  color: var(--presentation-muted);
  font-size: 0.92rem;
}

.presentation-progress-wrap {
  margin: 0;
}

.presentation-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--presentation-muted);
}

.presentation-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.presentation-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--presentation-accent), var(--presentation-accent-strong));
  transition: width 180ms ease;
}

.slide-card-body {
  padding: clamp(18px, 3vw, 34px);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.slide-content {
  margin-top: clamp(14px, 2.2vh, 18px);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.presentation-stage.is-dense .slide-content {
  overflow: auto;
  padding-right: 6px;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior: contain;
}

.presentation-stage.is-dense .slide-list-numbered {
  gap: 10px;
}

.presentation-stage.is-dense .slide-list-item {
  padding: 10px 12px;
}

.presentation-stage.is-dense .slide-list-item-text {
  font-size: 0.98rem;
  line-height: 1.5;
}

.presentation-stage.is-dense .slide-list-item-number {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  font-size: 0.9rem;
}

.slide-list {
  display: grid;
  gap: clamp(10px, 1.8vh, 14px);
}

.slide-list-numbered {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slide-statement-list {
  display: grid;
  gap: clamp(10px, 1.8vh, 14px);
}

.slide-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: clamp(12px, 2.2vh, 14px) clamp(12px, 2vw, 16px);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.slide-list-item-number {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(157, 224, 207, 0.14);
  color: var(--presentation-accent-strong);
  font-weight: 700;
}

.slide-list-item-text,
.slide-bullet-text {
  color: var(--presentation-text);
  line-height: 1.6;
}

.slide-bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.8vh, 14px);
}

.slide-bullet {
  padding: clamp(12px, 2.2vh, 16px);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.slide-bullet-label {
  display: block;
  margin-bottom: 8px;
  color: var(--presentation-accent-strong);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.slide-statement {
  padding: clamp(16px, 2.6vh, 22px);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(157, 224, 207, 0.12), rgba(213, 243, 111, 0.08));
  border: 1px solid rgba(157, 224, 207, 0.18);
  color: var(--presentation-text);
  font-size: clamp(1.05rem, 2.2vw, 1.18rem);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.presentation-footer {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
}

.slide-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 140ms ease, background 140ms ease;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.slide-dot.is-active {
  background: var(--presentation-accent-strong);
  transform: scale(1.2);
}

.slide-dot:focus-visible {
  outline: 2px solid rgba(213, 243, 111, 0.7);
  outline-offset: 3px;
}

@media (max-width: 840px) {
  .presentation-stage {
    height: calc(100vh - 24px);
    padding: 12px;
  }

  .slide-content {
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .presentation-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .presentation-topbar-actions {
    width: 100%;
  }

  .presentation-progress-meta {
    font-size: 0.86rem;
  }

  .slide-list-numbered {
    grid-template-columns: 1fr;
  }

  .slide-bullets {
    grid-template-columns: 1fr;
  }

  .slide-statement {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}

@media (max-height: 760px) {
  .presentation-stage {
    height: calc(100vh - 18px);
    gap: 10px;
    padding: 10px;
  }

  .slide-card-body {
    padding: 16px;
  }

  .slide-description {
    -webkit-line-clamp: 2;
  }

  .slide-statement {
    -webkit-line-clamp: 5;
  }
}
