*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

button:focus { outline: none; }
button:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 2px; }

body {
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #1a1d24;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

main {
  position: relative;
  z-index: 1;
}

/* ── Embed mode ── */
body.embed-mode {
  background: transparent;
  min-height: 0;
  height: 100vh;
  overflow: hidden;
}
body.embed-mode main {
  padding: 0;
  max-width: 100%;
  height: 100%;
}
body.embed-mode .avatar-wrapper {
  max-width: 100%;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  border-radius: 0;
  box-shadow: none;
}
body.embed-mode .credit-tag { display: none; }
body.embed-mode .back-btn { display: none; }
body.embed-mode .rotate-overlay { display: none !important; }

/* ── Main ── */
main {
  width: 100%;
  max-width: 960px;
  padding: 8px 24px 40px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Avatar wrapper ── */
.avatar-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1a1d24;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 4px 32px rgba(0, 0, 0, 0.5);
}

/* Fullscreen mode: laat alles het hele scherm vullen */
html:fullscreen, html:-webkit-full-screen { width: 100vw; height: 100vh; overflow: hidden; }
html:fullscreen body, html:-webkit-full-screen body { width: 100vw; height: 100vh; padding: 0; margin: 0; }
html:fullscreen main, html:-webkit-full-screen main {
  max-width: none;
  width: 100vw;
  height: 100vh;
  padding: 0;
}
html:fullscreen .avatar-wrapper, html:-webkit-full-screen .avatar-wrapper {
  width: 100vw;
  height: 100vh;
  aspect-ratio: unset;
  border-radius: 0;
  box-shadow: none;
}

/* Placeholder schalen mee op fullscreen */
html:fullscreen .placeholder-content,
html:-webkit-full-screen .placeholder-content {
  padding: 0 8vw;
  gap: 6vw;
  max-width: none;
}
html:fullscreen .placeholder-text,
html:-webkit-full-screen .placeholder-text {
  max-width: 50vw;
  flex: 0 1 50vw;
}
html:fullscreen .placeholder-label,
html:-webkit-full-screen .placeholder-label {
  font-size: 1.1vw;
  margin-bottom: 1vw;
}
html:fullscreen .placeholder-title,
html:-webkit-full-screen .placeholder-title {
  font-size: 3.5vw;
  line-height: 1.1;
}
html:fullscreen .placeholder-actions,
html:-webkit-full-screen .placeholder-actions {
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 1.2vw;
}

html:fullscreen #start-btn,
html:-webkit-full-screen #start-btn {
  font-size: 1.1vw;
  padding: 1.1vw 2vw;
  min-width: 20vw;
}

html:fullscreen .feedback-open-btn,
html:-webkit-full-screen .feedback-open-btn {
  font-size: 1.1vw;
  padding: 1.1vw 2vw;
  min-width: 20vw;
}

/* ── Fullscreen: stop-knop iets groter en hoger ── */
html:fullscreen .avatar-controls,
html:-webkit-full-screen .avatar-controls {
  bottom: 5vw;
}
html:fullscreen #stop-btn,
html:-webkit-full-screen #stop-btn {
  width: 3.5vw;
  height: 3.5vw;
}
html:fullscreen #stop-btn svg,
html:-webkit-full-screen #stop-btn svg {
  width: 1.7vw;
  height: 1.7vw;
}

/* ── Fullscreen: consent / code overlays ── */
html:fullscreen .consent-content,
html:-webkit-full-screen .consent-content {
  width: 42vw;
  max-width: none;
  max-height: 86vh;
  gap: 2vw;
  padding: 3vw 3vw;
  border-radius: 1.4vw;
}
html:fullscreen .consent-body,
html:-webkit-full-screen .consent-body { gap: 1vw; }
html:fullscreen .consent-heading,
html:-webkit-full-screen .consent-heading { font-size: 1vw; }
html:fullscreen .consent-body p,
html:-webkit-full-screen .consent-body p { font-size: 1.1vw; }
html:fullscreen .consent-checkbox-label,
html:fullscreen .consent-disclaimer,
html:-webkit-full-screen .consent-checkbox-label,
html:-webkit-full-screen .consent-disclaimer {
  font-size: 1.1vw;
  gap: 1vw;
  margin-top: 0.6vw;
}
html:fullscreen .consent-checkbox-label input[type="checkbox"],
html:-webkit-full-screen .consent-checkbox-label input[type="checkbox"] {
  width: 1.6vw;
  height: 1.6vw;
  border-radius: 0.3vw;
}
html:fullscreen .consent-checkbox-label input[type="checkbox"]:checked::after,
html:-webkit-full-screen .consent-checkbox-label input[type="checkbox"]:checked::after {
  font-size: 1vw;
}
html:fullscreen .consent-time,
html:-webkit-full-screen .consent-time {
  font-size: 1.2vw;
  padding: 0.4vw 0 0.6vw;
}
html:fullscreen .consent-actions,
html:-webkit-full-screen .consent-actions { gap: 0.8vw; }
html:fullscreen #consent-btn,
html:fullscreen .consent-btn-style,
html:-webkit-full-screen #consent-btn,
html:-webkit-full-screen .consent-btn-style {
  font-size: 1.1vw;
  padding: 1.1vw 2vw;
  border-radius: 4vw;
  max-width: none;
}
html:fullscreen .consent-cancel,
html:-webkit-full-screen .consent-cancel {
  font-size: 1.1vw;
  padding: 1.1vw 2vw;
  border-radius: 4vw;
}

/* ── Fullscreen: code input ── */
html:fullscreen .code-subtitle,
html:-webkit-full-screen .code-subtitle { font-size: 1vw; }
html:fullscreen .code-input,
html:-webkit-full-screen .code-input {
  font-size: 1.8vw;
  padding: 1.2vw;
  border-radius: 0.8vw;
  margin-top: 0.6vw;
}

/* ── Fullscreen: privacy screen ── */
html:fullscreen .privacy-screen,
html:-webkit-full-screen .privacy-screen {
  padding: 3vw 6vw;
  border-radius: 0;
}
html:fullscreen .privacy-scroll h3,
html:-webkit-full-screen .privacy-scroll h3 {
  font-size: 1.2vw;
  margin: 1.6vw 0 0.6vw;
}
html:fullscreen .privacy-scroll p,
html:fullscreen .privacy-scroll ul,
html:-webkit-full-screen .privacy-scroll p,
html:-webkit-full-screen .privacy-scroll ul {
  font-size: 1vw;
  line-height: 1.65;
}
html:fullscreen .privacy-back-btn,
html:-webkit-full-screen .privacy-back-btn {
  font-size: 1.1vw;
  padding: 1vw 2.4vw;
  border-radius: 4vw;
  margin-top: 1.4vw;
}

/* ── Fullscreen: feedback overlay ── */
html:fullscreen .feedback-card,
html:-webkit-full-screen .feedback-card {
  width: 38vw;
  max-width: none;
  gap: 1vw;
  padding: 3vw 3vw;
  border-radius: 1.4vw;
}
html:fullscreen .feedback-close,
html:-webkit-full-screen .feedback-close {
  font-size: 1.4vw;
  top: 1.2vw;
  right: 1.4vw;
}
html:fullscreen .feedback-heading,
html:-webkit-full-screen .feedback-heading { font-size: 1vw; }
html:fullscreen .feedback-smileys,
html:-webkit-full-screen .feedback-smileys { gap: 1vw; }
html:fullscreen .feedback-smiley,
html:-webkit-full-screen .feedback-smiley {
  width: 3.6vw;
  height: 3.6vw;
  padding: 0.3vw;
}
html:fullscreen .feedback-message,
html:fullscreen .feedback-email,
html:-webkit-full-screen .feedback-message,
html:-webkit-full-screen .feedback-email {
  font-size: 1vw;
  padding: 1vw;
  border-radius: 0.8vw;
}
html:fullscreen .feedback-newsletter-label,
html:-webkit-full-screen .feedback-newsletter-label {
  font-size: 0.9vw;
  gap: 0.8vw;
}
html:fullscreen .feedback-newsletter-check,
html:-webkit-full-screen .feedback-newsletter-check {
  width: 1.4vw;
  height: 1.4vw;
  border-radius: 0.3vw;
}
html:fullscreen .feedback-newsletter-check:checked::after,
html:-webkit-full-screen .feedback-newsletter-check:checked::after {
  font-size: 0.9vw;
}
html:fullscreen .feedback-submit,
html:-webkit-full-screen .feedback-submit {
  font-size: 1.1vw;
  padding: 1.1vw 2.4vw;
  border-radius: 4vw;
}

#avatar-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  display: block;
}

/* ── Language dropdown ── */
.lang-current {
  background-color: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
}

.lang-current:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
}

.lang-dropdown {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
}

.avatar-wrapper.session-active .lang-dropdown { display: none; }

/* ── Credit tag ── */
.credit-tag {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
  color: #ffffff;
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9px;
  letter-spacing: 0.06em;
  z-index: 10;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.credit-by { color: rgba(255, 255, 255, 0.6); }
.credit-sep { color: rgba(255, 255, 255, 0.6); margin: 0 2px; }
.credit-logo { height: 15px; width: auto; display: block; }
.credit-logo--bc { height: 12px; filter: brightness(0) invert(1); opacity: 0.85; }

.avatar-wrapper.session-active .credit-tag { display: none; }
.avatar-wrapper.session-active .info-overlay { display: none; }
.avatar-wrapper.session-active #corner-btns:not(.visible) { display: none !important; }
.avatar-wrapper.session-active #info-btn { display: none !important; }

/* ── Back button ── */
.back-btn {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.back-btn:hover { background-color: rgba(0, 0, 0, 0.45); }

.avatar-wrapper.session-active .back-btn { display: none; }

@media (max-width: 1024px) {
  .back-btn { display: flex; }
  .lang-dropdown { left: auto; right: 20px; }
}

/* ── Placeholder ── */
@keyframes drawingPulseSlow {
  0%, 100% { filter: none; opacity: 0.07; }
  35%      { filter: none; opacity: 0.07; }
  45%, 55% { filter: brightness(0.6) sepia(1) saturate(10) hue-rotate(-10deg) brightness(1.5); opacity: 0.15; }
  65%      { filter: none; opacity: 0.07; }
}

@keyframes drawingPulseMobile {
  0%, 100% { filter: none; opacity: 0.07; }
  35%      { filter: none; opacity: 0.07; }
  45%, 55% { filter: brightness(0.6) sepia(1) saturate(10) hue-rotate(-10deg) brightness(1.5); opacity: 0.15; }
  65%      { filter: none; opacity: 0.07; }
}

@keyframes drawingPulseOrangeFast {
  0%, 100% { opacity: 0; }
  50%      { opacity: 0.8; }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gradientShiftVertical {
  0%   { background-position: 50% 0%; }
  50%  { background-position: 50% 100%; }
  100% { background-position: 50% 0%; }
}

.avatar-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0 80px;
  background: linear-gradient(-45deg, #0c0e16, #283050, #12141c, #323a58, #0e1018, #242c48);
  background-size: 400% 400%;
  animation: gradientShift 16s ease infinite;
}


.avatar-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/linedrawingruud.png') center center / cover no-repeat;
  opacity: 0.07;
  z-index: 1;
}

.avatar-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/linedrawingruud.png') center center / cover no-repeat, #E8531E;
  background-blend-mode: multiply;
  mix-blend-mode: screen;
  opacity: 0;
  z-index: 1;
  animation: drawingPulseOrange 16s ease-in-out infinite;
}

@keyframes drawingPulseOrange {
  0%, 100% { opacity: 0; }
  42%      { opacity: 0; }
  48%, 52% { opacity: 0.8; }
  58%      { opacity: 0; }
}

.avatar-placeholder > * {
  position: relative;
  z-index: 2;
}


.placeholder-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  padding: 0 48px;
  width: 100%;
}

.placeholder-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  max-width: 520px;
}

.placeholder-label {
  display: block;
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff6b4a;
  margin-bottom: 6px;
}

.placeholder-title {
  color: #ffffff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  text-align: left;
  letter-spacing: -0.02em;
}

.placeholder-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-family: 'HedvigLetters', Georgia, serif;
  font-size: 15px;
  text-align: left;
  line-height: 1.7;
}

.placeholder-subtitle--muted {
  color: rgba(255, 255, 255, 0.3);
}

/* ── Placeholder actions ── */
.placeholder-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
}

#start-btn {
  background: linear-gradient(135deg, #E8531E, #f06a3a);
  color: #fff;
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 16px 48px;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(232, 83, 30, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.02em;
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

#start-btn:active:not(:disabled) { transform: translateY(0); }
#start-btn:hover:not(:disabled) { filter: brightness(1.1); }

.feedback-open-btn {
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 48px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.feedback-open-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

/* ── Feedback overlay ── */
.feedback-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.feedback-overlay.visible { opacity: 1; pointer-events: auto; }

.feedback-card {
  background: rgba(20, 22, 30, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 340px;
  max-width: calc(100% - 32px);
  position: relative;
}

.feedback-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.feedback-close:hover { color: #ffffff; }

.feedback-heading {
  color: #ffffff;
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feedback-smileys {
  display: flex;
  gap: 12px;
}

.feedback-smiley {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  width: 48px;
  height: 48px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.feedback-smiley svg { width: 100%; height: 100%; }
.feedback-smiley:hover { color: rgba(255, 255, 255, 0.7); transform: scale(1.1); }
.feedback-smiley.selected { color: #E8531E; transform: scale(1.1); }

.feedback-message {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  padding: 12px;
  resize: none;
}

.feedback-message::placeholder { color: rgba(255, 255, 255, 0.3); }
.feedback-message:focus { outline: none; border-color: #E8531E; }
.feedback-message { caret-color: #ffffff; }

.feedback-email {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  padding: 12px;
}

.feedback-email::placeholder { color: rgba(255, 255, 255, 0.3); }
.feedback-email:focus { outline: none; border-color: #E8531E; }
.feedback-email { caret-color: #ffffff; }

.feedback-newsletter-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.feedback-newsletter-check {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.feedback-newsletter-check:checked {
  border-color: #E8531E;
  background: #E8531E;
}

.feedback-newsletter-check:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.feedback-submit {
  background: linear-gradient(135deg, #E8531E, #f06a3a);
  color: #ffffff;
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  cursor: pointer;
  width: 100%;
  transition: filter 0.2s ease;
}

.feedback-submit:hover { filter: brightness(1.1); }

/* ── Capacity overlay ── */
.capacity-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.capacity-overlay.visible { opacity: 1; pointer-events: auto; }

.capacity-content {
  background: rgba(20, 22, 30, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 36px;
  max-width: 340px;
  text-align: center;
}

.capacity-message {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.capacity-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #E8531E;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
  display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

.capacity-ok-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 32px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.capacity-ok-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.capacity-ok-btn.capacity-connect-btn {
  background: linear-gradient(135deg, #E8531E, #f06a3a);
  color: #fff;
  border: none;
  font-weight: 700;
  box-shadow: 0 6px 28px rgba(232, 83, 30, 0.45);
}

.capacity-ok-btn.capacity-connect-btn:hover {
  filter: brightness(1.1);
}

/* ── Code input ── */
#code-overlay .consent-content { gap: 8px; align-items: stretch; }
#code-overlay .consent-body { gap: 8px; }
#code-overlay .consent-heading { text-align: left; }

@media (max-width: 1024px) and (orientation: portrait) {
  #code-overlay { align-items: flex-start; padding-top: 100px; }
}

.code-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.code-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #ffffff;
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
  padding: 16px;
  caret-color: #ffffff;
  margin-top: 8px;
}

.code-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.code-input:focus {
  outline: none;
  border-color: #E8531E;
}

.code-error {
  display: none;
}

.code-input.invalid {
  border-color: #E8531E;
  color: #E8531E;
}

#code-overlay .consent-actions { margin-top: 8px; }

.consent-btn-style {
  background: linear-gradient(135deg, #E8531E, #f06a3a);
  color: #ffffff;
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  cursor: pointer;
  flex: 1;
  transition: filter 0.2s ease;
}

.consent-btn-style:hover { filter: brightness(1.1); }
.consent-btn-style:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 1024px) and (orientation: portrait) {
  .feedback-overlay {
    align-items: flex-start;
    padding-top: 24px;
  }
}

#start-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
  cursor: default;
}

.info-btn-placeholder {
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  color: #1a1d24;
  cursor: pointer;
  padding: 10px;
  margin-top: 12px;
  align-self: center;
  transition: background-color 0.2s ease;
}

.info-btn-placeholder svg { width: 24px; height: 24px; }

.info-btn-placeholder:hover { background-color: #e8e8e8; }

/* Hide in embed mode (desktop iframe already has corner info btn) */
body.embed-mode .mobile-only { display: none !important; }
/* Also hide on standalone desktop */
@media (min-width: 1025px) { .mobile-only { display: none !important; } }

/* ── Overlay controls ── */
.avatar-controls {
  display: none;
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  z-index: 10;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.avatar-controls-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  position: relative;
}

.ptt-tooltip {
  background: rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  align-self: center;
}

.ptt-tooltip.visible { opacity: 1; }

#ptt-btn {
  position: absolute;
  left: 24px;
  background-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  padding: 0 26px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.6s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

#ptt-btn.visible { opacity: 1; }
#ptt-btn:hover { background-color: rgba(255, 255, 255, 0.12); }

@media (min-width: 601px) {
  #ptt-btn { display: none !important; }
}

/* ── PTT glow ── */
@keyframes pttGlow {
  0%, 100% { box-shadow: inset 0 0 50px 30px rgba(232, 83, 30, 0.55); }
  50%      { box-shadow: inset 0 0 90px 60px rgba(232, 83, 30, 0.9); }
}

.avatar-wrapper.ptt-active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: pttGlow 1.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 20;
}

/* ── Spacebar hint ── */
.spacebar-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 40px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 15;
  background: rgba(0, 0, 0, 0.5);
}

.spacebar-hint.visible { opacity: 1; }
.spacebar-hint svg { color: rgba(255, 255, 255, 0.95); }
.spacebar-hint span {
  color: rgba(255, 255, 255, 0.95);
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
}

.spacebar-hint kbd {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  padding: 2px 9px;
  font-size: 13px;
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

@media (max-width: 1024px) and (orientation: portrait) {
  .spacebar-hint { display: none; }
}

/* ── Touch hint ── */
.ptt-touch-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 40px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 15;
  background: rgba(0, 0, 0, 0.5);
}

.ptt-touch-hint.visible { opacity: 1; }
.ptt-touch-hint svg { color: rgba(255, 255, 255, 0.95); }
.ptt-touch-hint span {
  color: rgba(255, 255, 255, 0.95);
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

/* ── Stop button ── */
#stop-btn {
  background-color: #dc3c3c;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: background-color 0.2s ease, opacity 0.6s ease;
}

#stop-btn.visible { opacity: 1; pointer-events: auto; }
#stop-btn:hover { background-color: #c83030; }

/* ── Consent overlay ── */
.consent-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 24px;
}

.consent-overlay.visible { opacity: 1; pointer-events: auto; }

.consent-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 380px;
  max-height: 80vh;
  background: rgba(20, 22, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 28px;
}

.consent-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consent-heading {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.consent-body p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}

.consent-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'HedvigLetters', Georgia, serif;
  font-size: 14px;
  line-height: 1.65;
  margin-top: 8px;
}

.consent-disclaimer {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'HedvigLetters', Georgia, serif;
  font-size: 14px;
  line-height: 1.65;
  margin-top: 8px;
}

.consent-time {
  color: #E8531E;
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  padding: 4px 0 8px;
  letter-spacing: 0.02em;
}

.consent-checkbox-label input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.consent-checkbox-label input[type="checkbox"]:checked {
  border-color: #E8531E;
  background: #E8531E;
}

.consent-checkbox-label input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

#consent-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.consent-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

#consent-btn {
  background: linear-gradient(135deg, #E8531E, #f06a3a);
  color: #ffffff;
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: filter 0.2s ease;
  touch-action: manipulation;
  flex: 1;
  max-width: 220px;
}

#consent-btn:hover { filter: brightness(1.1); }

.consent-privacy-link {
  display: inline;
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.consent-privacy-link:hover { color: rgba(255, 255, 255, 1); }

.consent-cancel {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 24px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
  flex: 1;
}

.consent-cancel:hover { color: #ffffff; border-color: rgba(255, 255, 255, 0.5); }

/* ── Privacy screen ── */
.privacy-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: rgba(20, 22, 30, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.privacy-screen.visible { opacity: 1; pointer-events: auto; }

.privacy-scroll {
  flex: 1;
  overflow-y: scroll;
  padding-right: 14px;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
}

.privacy-scroll::-webkit-scrollbar { width: 8px; -webkit-appearance: none; display: block; }
.privacy-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 4px; }
.privacy-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; min-height: 40px; }

.privacy-scroll h3 { color: #ffffff; font-size: 14px; font-weight: 700; margin: 20px 0 8px; }
.privacy-scroll h3:first-of-type { margin-top: 16px; }
.privacy-scroll p { color: rgba(255, 255, 255, 0.7); font-family: 'HedvigLetters', Georgia, serif; font-size: 13px; line-height: 1.65; margin: 0 0 8px; }
.privacy-scroll strong { color: #ffffff; }
.privacy-scroll ul { color: rgba(255, 255, 255, 0.7); font-family: 'HedvigLetters', Georgia, serif; font-size: 13px; line-height: 1.65; margin: 0 0 8px; padding-left: 20px; }
.privacy-scroll ul li { margin-bottom: 4px; }

.privacy-back-btn {
  margin-top: 16px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s ease;
  touch-action: manipulation;
  align-self: center;
}

.privacy-back-btn:hover { background: rgba(255, 255, 255, 0.06); }

/* ── Loading overlay ── */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #0c0e16, #283050, #12141c, #323a58, #0e1018, #242c48);
  background-size: 400% 400%;
  animation: gradientShift 16s ease infinite;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.loading-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/linedrawingruud.png') center center / cover no-repeat;
  opacity: 0.07;
  z-index: 0;
}

.loading-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/linedrawingruud.png') center center / cover no-repeat, #E8531E;
  background-blend-mode: multiply;
  mix-blend-mode: screen;
  opacity: 0;
  z-index: 0;
  animation: drawingPulseOrangeFast 1.6s ease-in-out infinite;
}

.loading-overlay.visible { opacity: 1; pointer-events: auto; }

.loading-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading-percent {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.loading-percent::before,
.loading-percent::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 83, 30, 0.3);
  animation: loadPulse 2.4s ease-in-out infinite;
}

.loading-percent::after { animation-delay: 1.2s; }

@keyframes loadPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.loading-cancel {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 32px;
  transition: background-color 0.2s ease, color 0.2s ease;
  z-index: 10;
  pointer-events: auto;
}

.loading-cancel:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; }

/* ── Corner buttons ── */
#corner-btns {
  position: absolute;
  right: 24px;
  bottom: 30px;
  z-index: 11;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#corner-btns.visible { opacity: 1; pointer-events: auto; }

#info-btn {
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
}

#info-btn:hover { background-color: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.6); }

/* ── Chat button ── */
.chat-corner-btn {
  position: absolute;
  left: 24px;
  bottom: 30px;
  z-index: 11;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.chat-corner-btn.visible { opacity: 1; pointer-events: auto; }

#chat-btn {
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
}

#chat-btn:hover { background-color: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.6); }

.session-active .chat-corner-btn.visible #chat-btn {
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
}

/* ── Fullscreen corner btn (desktop only, tijdens sessie) ── */

#fullscreen-btn {
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
}

#fullscreen-btn [data-i18n="fullscreen_label"] { display: none; }

#fullscreen-btn:hover { background-color: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.6); }

/* Exit-fullscreen-knop verbergen tijdens sessie in fullscreen (escape werkt al) */
html:fullscreen .session-active #fullscreen-btn,
html:-webkit-full-screen .session-active #fullscreen-btn {
  display: none;
}

/* Verbergen op mobiel portrait */
@media (max-width: 1024px) and (orientation: portrait) {
  #fullscreen-btn { display: none !important; }
}

/* ── Chat overlay ── */
.chat-overlay {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: calc(100% - 160px);
  max-width: 600px;
  background: transparent;
  border: none;
  border-radius: 16px;
  padding: 0;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: none;
  overflow: visible;
}

.chat-overlay.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-input-row { display: flex; align-items: flex-end; gap: 10px; }

.chat-input {
  flex: 1;
  background: rgba(17, 17, 24, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 14px;
  resize: none;
  outline: none;
  box-sizing: border-box;
  overflow: hidden;
  height: 44px;
}

.chat-input::placeholder { color: rgba(255, 255, 255, 0.3); }
.chat-input:focus { border-color: rgba(255, 255, 255, 0.4); }

.chat-send-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  touch-action: manipulation;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.chat-send-btn:hover { background: rgba(255, 255, 255, 0.15); color: #ffffff; }

.chat-stop-btn {
  display: none;
  background: #dc3c3c;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  touch-action: manipulation;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.chat-stop-btn:hover { background: #c83030; }

@media (max-width: 1024px) and (orientation: portrait) {
  .chat-corner-btn { display: none !important; }
  .chat-overlay { display: none !important; }
}

/* ── Info overlay ── */
.info-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.info-overlay.visible { opacity: 1; pointer-events: auto; }

.info-card {
  background: rgba(20, 22, 30, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 240px;
  position: relative;
}

.info-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.info-close:hover { color: #ffffff; }

.info-label {
  color: rgba(255, 255, 255, 0.35);
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.info-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 1;
  margin-top: 4px;
}

.info-collab {
  color: rgba(255, 255, 255, 0.35);
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: 14px;
}

.info-logo--bc {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 1;
  margin-top: 4px;
}

.info-version {
  color: rgba(255, 255, 255, 0.2);
  font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: 16px;
}

/* ── Session time banner ── */
.session-time-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: auto;
  max-width: calc(100% - 32px);
  background: rgba(17, 17, 24, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 20px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: none;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.session-time-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.session-time-banner span { color: rgba(255, 255, 255, 0.9); font-size: 13px; line-height: 1.4; }

.session-time-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  cursor: pointer;
  touch-action: manipulation;
  padding: 0;
  flex-shrink: 0;
}

.session-time-close:hover { color: rgba(255, 255, 255, 0.8); }

.session-countdown-banner { background: rgba(80, 10, 0, 0.3); }

/* ── Rotate overlay ── */
@keyframes phoneRotate {
  0%   { transform: rotate(90deg); }
  30%  { transform: rotate(90deg); }
  60%  { transform: rotate(0deg); }
  80%  { transform: rotate(0deg); }
  100% { transform: rotate(90deg); }
}

.rotate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #0f1018, #222638, #14161e, #2a2e42, #121418, #1e2234);
  background-size: 400% 400%;
  animation: gradientShift 16s ease infinite;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
}

.rotate-phone-icon {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  animation: phoneRotate 3s ease-in-out infinite;
}

@media (max-width: 1024px) and (orientation: landscape) {
  html, body { background-color: #1a1d24; }
  .rotate-overlay { display: flex; }
}

/* ── Responsive: mobile ── */
@media (max-width: 1024px) {
  .consent-content { width: calc(100% - 32px); max-width: 380px; padding: 28px 20px; }
  .avatar-controls { bottom: 36px; }
  #ptt-btn { display: none; }
}

@media (max-width: 1024px) and (orientation: portrait) {
  html, body {
    min-height: 0;
    height: var(--real-vh, 100dvh);
    overflow: hidden;
    overscroll-behavior: none;
  }

  body { align-items: stretch; background-color: #1a1d24; }

  .avatar-placeholder {
    background: linear-gradient(180deg, #080a10, #1c2238, #0e1018, #252a3e, #0a0c14, #1a1e30);
    background-size: 100% 400%;
    animation: gradientShiftVertical 16s ease infinite;
  }

  .avatar-placeholder::before {
    opacity: 0.07;
    animation: none;
  }

  .avatar-placeholder::after {
    animation: drawingPulseOrange 16s ease-in-out infinite;
  }

  main { padding: 0; max-width: 100%; }

  .avatar-wrapper {
    width: 100vw;
    height: var(--real-vh, 100dvh);
    aspect-ratio: unset;
    border-radius: 0;
    box-shadow: none;
  }

  .avatar-placeholder { padding: 60px 0 60px; }

  .placeholder-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 52px;
    padding: 0 28px;
  }

  .placeholder-actions { align-self: stretch; align-items: center; }
  .placeholder-title { font-size: 22px; }

  .credit-tag {
    font-size: 8px;
    gap: 5px;
    bottom: 16px;
  }
  .credit-logo { height: 13px; }
  .credit-logo--bc { height: 11px; }

  .info-btn-placeholder { display: none !important; }
}

/* ── Tablet portrait ── */
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) {
  .avatar-placeholder { padding: 0; display: flex; align-items: center; justify-content: center; }

  .placeholder-content { align-items: center; text-align: left; padding: 0 28px; gap: 48px; }

  .placeholder-text { display: flex; flex-direction: column; align-items: center; width: 100%; }

  .placeholder-title { font-size: 52px; text-align: left; width: 100%; }

  .placeholder-subtitle { font-size: 22px; line-height: 1.7; width: 100%; }

  .placeholder-actions { align-self: stretch; margin-top: 16px; }

  #start-btn { font-size: 22px; padding: 22px 40px; }

  .credit-tag { font-size: 12px; top: 20px; right: 28px; }
  .credit-logo { height: 20px; }
}

/* ── Desktop ── */
@media (min-width: 601px) {
  .avatar-placeholder { padding: 32px 0; }

  .placeholder-actions { align-items: center; }

  #start-btn { width: auto; min-width: 260px; padding: 16px 48px; }
  .feedback-open-btn { width: auto; min-width: 260px; padding: 14px 48px; }

  /* Titel verticaal centreren door label absoluut boven de titel te plaatsen */
  .placeholder-text { position: relative; }
  .placeholder-label { position: absolute; left: 0; bottom: 100%; margin: 0 0 12px 0; }

  #consent-btn,
  .consent-cancel { font-size: 14px; padding: 14px 24px; }

  .loading-overlay.visible ~ #corner-btns #info-btn { display: none; }
  .loading-overlay.visible ~ .chat-corner-btn { display: none !important; }

  #corner-btns { opacity: 1; pointer-events: auto; bottom: 24px; }

  .session-active #corner-btns { opacity: 0; pointer-events: none; }
  .session-active #corner-btns.visible { opacity: 1; pointer-events: auto; bottom: 24px; }

  .chat-corner-btn { bottom: 24px; }

  .chat-active #stop-btn { display: none; }
  .chat-active .chat-stop-btn { display: flex; }
}

@media (min-width: 1025px) {
  .avatar-controls { bottom: 24px; }
}
