#odls-role-screen {
  --odls-abyss: #071524;
  --odls-navy: #0d1d2d;
  --odls-gold: #ffc627;
  --odls-gold-btn: #ebba38;
  --odls-cyan: #6ed0f2;
  --odls-paper: #f5f7f4;
  --odls-muted: #b5c7d5;
  width: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  background: var(--odls-abyss);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
}

#odls-role-screen * {
  box-sizing: border-box;
}

#odls-role-screen .role-viewport {
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  height: 100dvh;
  min-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: #081726;
  color: var(--odls-paper);
  border: 1px solid #1a2f42;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.45);
}

#odls-role-screen .role-viewport.is-leaving {
  animation: role-screen-leave 240ms ease-in both;
}

/* Ambient arc decoration in background */
#odls-role-screen .role-viewport::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  top: -260px;
  left: -280px;
  border: 65px solid rgba(110, 208, 242, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

#odls-role-screen .role-viewport::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  bottom: -180px;
  right: -240px;
  border: 55px solid rgba(110, 208, 242, 0.03);
  border-radius: 50%;
  pointer-events: none;
}

#odls-role-screen .role-header {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: max(4px, env(safe-area-inset-top)) 8px 4px;
  min-height: 48px;
  border-bottom: 1px solid rgba(159, 178, 193, 0.2);
}

#odls-role-screen .role-back {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--odls-paper);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 28px;
  transition: opacity 160ms ease, transform 160ms ease;
}

#odls-role-screen .role-back:hover {
  opacity: 0.8;
  transform: translateX(-2px);
}

#odls-role-screen .role-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.01em;
  text-align: center;
}

#odls-role-screen .role-brand b {
  font-weight: 850;
  color: #ffffff;
}

#odls-role-screen .role-header-spacer {
  width: 44px;
  height: 44px;
}

#odls-role-screen .role-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 28px;
}

#odls-role-screen .role-eyebrow {
  margin: 0 0 16px;
  color: var(--odls-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

#odls-role-screen .role-title {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 700;
  color: var(--odls-paper);
  letter-spacing: -0.3px;
  text-wrap: balance;
}

#odls-role-screen .role-copy {
  margin: 0 0 16px;
  color: var(--odls-muted);
  font-size: 15px;
  line-height: 1.52;
}

#odls-role-screen .role-divider {
  width: 100%;
  height: 1px;
  background: rgba(159, 178, 193, 0.28);
  margin: 22px 0;
  border: 0;
}

#odls-role-screen .role-callout {
  margin: 0;
  color: var(--odls-gold);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

#odls-role-screen .role-actions {
  margin-top: auto;
  padding-top: 24px;
  width: 100%;
}

#odls-role-screen .role-primary-btn {
  width: 100%;
  min-height: 50px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--odls-gold-btn);
  color: #06111c;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(235, 186, 56, 0.25);
  transition: background 160ms ease, transform 160ms ease;
}

#odls-role-screen .role-primary-btn:hover {
  background: var(--odls-gold);
  transform: translateY(-1px);
}

@keyframes role-screen-leave {
  to {
    opacity: 0;
    transform: scale(0.98);
  }
}

@media (max-width: 350px) {
  #odls-role-screen .role-title {
    font-size: 28px;
  }
  #odls-role-screen .role-body {
    padding: 24px 18px 20px;
  }
}
