/* Ekran tłumaczenia, układ A · Strumień. Paleta i typografia jak salon.gaia-institute.com. */
:root {
  --brand: #2270B9;
  --text: #000000;
  --text-3: #76777A;
  --text-4: #B5B5B5;
  --line: #E8E8E8;
  --bg: #FFFFFF;
  --bg-2: #F5F5F5;
  --font: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow: hidden;
}

.screen { height: 100vh; display: flex; flex-direction: column; }

.head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2.2vw 3.4vw; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 1.6vw; }
.brand img { height: 3.4vw; display: block; }
.brand span {
  font-family: var(--mono); font-size: 1.05vw; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); border-left: 1px solid #CCCCCC; padding-left: 1.6vw;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw;
}

.lines {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 1.6vw;
  padding: 2vw 3.4vw 2.6vw;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
}
.line { margin: 0; text-wrap: pretty; }
.line.older2 { font-size: 2.6vw; color: var(--text-4); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.line.older1 { font-size: 3.2vw; color: var(--text-3); font-weight: 500; line-height: 1.22; letter-spacing: -.015em; }
.line.newest {
  font-size: 4.4vw; font-weight: 700; line-height: 1.15; letter-spacing: -.025em;
  border-left: .5vw solid var(--brand); padding-left: 1.8vw;
}
.line.newest.long { font-size: 3.5vw; }
.line.newest.very-long { font-size: 2.8vw; }
.line.older1.long, .line.older1.very-long { font-size: 2.6vw; }
.line.fresh { animation: appear .35s ease-out; }
@keyframes appear { from { opacity: 0; transform: translateY(.6vw); } }

.foot {
  display: flex; gap: 1.4vw; align-items: baseline;
  border-top: 1px solid var(--line); background: var(--bg-2);
  padding: 1.4vw 3.4vw; min-height: 4.6vw;
}
.foot b {
  font-family: var(--mono); font-size: 1.1vw; color: var(--brand); letter-spacing: .12em;
  font-weight: 500; white-space: nowrap;
}
.foot span {
  flex: 1; min-width: 0; font-size: 1.6vw; color: var(--text-3); font-style: italic;
  white-space: nowrap; overflow: hidden;
}

/* Slajd prelegenta nad napisami (prezentacje dodawane w panelu); napisy robią się wtedy mniejsze, ale zostają czytelne. */
.slide-box { flex: 0 0 auto; height: 54vh; margin: 1.4vw 3.4vw 0; display: flex; justify-content: center; }
.slide-box[hidden] { display: none; }
.slide-box img { height: 100%; max-width: 100%; object-fit: contain; border-radius: .4vw; box-shadow: 0 .3vw 1.4vw rgba(0, 0, 0, .14); }
.with-slides .lines { gap: 1vw; padding-top: 1vw; padding-bottom: 1.6vw; }
.with-slides .line.older2 { font-size: 1.9vw; }
.with-slides .line.older1, .with-slides .line.older1.long, .with-slides .line.older1.very-long { font-size: 2.3vw; }
.with-slides .line.newest { font-size: 3.3vw; }
.with-slides .line.newest.long { font-size: 2.8vw; }
.with-slides .line.newest.very-long { font-size: 2.3vw; }
