@font-face {
  font-family: "Manaaki Lora";
  src: url("/static/fonts/Lora-Medium.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Manaaki Netflix Sans";
  src: url("/static/fonts/NetflixSans-Rg.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

.mws-overlay[hidden] { display: none !important; }

.mws-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3.5vw, 44px);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px),
    radial-gradient(circle at 22% 18%, rgba(53,163,170,.14), transparent 32%),
    linear-gradient(135deg, #2f696e 0%, #35747a 52%, #2e676c 100%);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.mws-shell {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100dvh - 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(22px, 4vw, 44px);
  outline: none;
}

.mws-skip,
.mws-arrow,
.mws-continue,
.mws-position {
  font-family: "Manaaki Netflix Sans", sans-serif !important;
}

.mws-skip {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 8px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  cursor: pointer;
  border-radius: 10px;
  padding: 9px 11px;
}

.mws-skip:hover { background: rgba(255,255,255,.10); color: #fff; }

.mws-visual {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 700px);
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 460px;
  overflow: visible;
}

.mws-avatar-frame,
.mws-content {
  isolation: isolate;
}

.mws-avatar-frame {
  position: relative;
  z-index: 4;
  width: 320px;
  height: 360px;
  overflow: hidden;
  border-radius: 32px 32px 0 146px;
  background:
    radial-gradient(circle at 42% 24%, rgba(255,255,255,.2), transparent 32%),
    linear-gradient(145deg, #ead85f 0%, #d9cf63 48%, #7ab8a8 100%);
  box-shadow: 0 26px 66px rgba(7,47,52,.30), inset 0 1px 0 rgba(255,255,255,.16);
  transform: translateX(64px);
  will-change: transform, opacity;
}

.mws-avatar-frame.is-platform {
  background: linear-gradient(145deg, #e2d467 0%, #80b6a9 100%);
}

.mws-avatar-initials,
.mws-avatar-image,
.mws-icon-layer,
.mws-avatar-sheen,
/* central readability zone keeps the text area calmer than the denser icon edges */
.mws-readability-zone {
  position: absolute;
}


.mws-avatar-initials {
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.98);
  font-family: "Manaaki Netflix Sans", sans-serif !important;
  font-size: clamp(52px, 7vw, 78px);
  letter-spacing: -.05em;
  background: linear-gradient(145deg, rgba(31,102,108,.74), rgba(36,153,161,.62));
}

.mws-avatar-image {
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mws-avatar-frame.is-platform .mws-avatar-initials {
  font-size: 68px;
  letter-spacing: -.04em;
}

.mws-icon-layer {
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.mws-eco-icon {
  position: absolute;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: rgba(255,255,255,.145);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.mws-icon-layer--avatar .mws-eco-icon { stroke: rgba(255,255,255,.14); }
.mws-icon-layer--status .mws-eco-icon { stroke: rgba(255,255,255,.22); }
.mws-eco-icon--a1 { width: 44px; height: 44px; left: 8%; top: 13%; transform: rotate(-8deg); }
.mws-eco-icon--a2 { width: 36px; height: 36px; right: 8%; top: 48%; transform: rotate(7deg); }
.mws-eco-icon--a3 { width: 31px; height: 31px; left: 22%; bottom: 9%; transform: rotate(5deg); }
.mws-eco-icon--a4 { width: 28px; height: 28px; right: 14%; top: 14%; transform: rotate(11deg); opacity: .9; }
.mws-eco-icon--a5 { width: 26px; height: 26px; left: 10%; bottom: 19%; transform: rotate(-8deg); opacity: .78; }

.mws-eco-icon--s1 { left: 4%; top: 8%; width: 35px; height: 35px; transform: rotate(-7deg); }
.mws-eco-icon--s2 { right: 6%; top: 10%; width: 34px; height: 34px; transform: rotate(8deg); }
.mws-eco-icon--s3 { left: 10%; top: 32%; width: 31px; height: 31px; transform: rotate(-11deg); opacity: .86; }
.mws-eco-icon--s4 { right: 3.5%; top: 39%; width: 42px; height: 42px; transform: rotate(6deg); }
.mws-eco-icon--s5 { left: 4%; bottom: 11%; width: 38px; height: 38px; transform: rotate(5deg); }
.mws-eco-icon--s6 { right: 19%; bottom: 7%; width: 31px; height: 31px; transform: rotate(-5deg); }
.mws-eco-icon--s7 { right: 34%; top: 6%; width: 28px; height: 28px; opacity: .82; }
.mws-eco-icon--s8 { left: 33%; bottom: 6%; width: 36px; height: 36px; transform: rotate(4deg); opacity: .8; }
.mws-eco-icon--s9 { right: 8%; bottom: 24%; width: 29px; height: 29px; transform: rotate(-8deg); opacity: .86; }
.mws-eco-icon--s10 { left: 23%; top: 12%; width: 25px; height: 25px; transform: rotate(8deg); opacity: .75; }
.mws-eco-icon--s11 { left: 14%; top: 14%; width: 37px; height: 37px; transform: rotate(5deg); opacity: .85; }
.mws-eco-icon--s12 { right: 12%; top: 23%; width: 34px; height: 34px; transform: rotate(-5deg); opacity: .88; }
.mws-eco-icon--s13 { right: 25%; top: 30%; width: 36px; height: 36px; transform: rotate(4deg); opacity: .84; }
.mws-eco-icon--s14 { left: 8%; top: 56%; width: 30px; height: 30px; transform: rotate(-10deg); opacity: .82; }
.mws-eco-icon--s15 { right: 14%; bottom: 14%; width: 33px; height: 33px; transform: rotate(5deg); opacity: .88; }
.mws-eco-icon--s16 { left: 20%; bottom: 12%; width: 34px; height: 34px; transform: rotate(-3deg); opacity: .84; }
.mws-eco-icon--s17 { right: 30%; bottom: 9%; width: 30px; height: 30px; transform: rotate(11deg); opacity: .78; }
.mws-eco-icon--s18 { left: 42%; top: 18%; width: 27px; height: 27px; transform: rotate(7deg); opacity: .7; }
.mws-eco-icon--s19 { left: 17%; top: 6%; width: 28px; height: 28px; transform: rotate(-4deg); opacity: .78; }
.mws-eco-icon--s20 { right: 18%; top: 15%; width: 33px; height: 33px; transform: rotate(7deg); opacity: .86; }
.mws-eco-icon--s21 { left: 13%; bottom: 23%; width: 30px; height: 30px; transform: rotate(5deg); opacity: .83; }
.mws-eco-icon--s22 { right: 7%; bottom: 8%; width: 37px; height: 37px; transform: rotate(-4deg); opacity: .84; }
.mws-eco-icon--s23 { left: 47%; bottom: 7%; width: 28px; height: 28px; transform: rotate(9deg); opacity: .76; }
.mws-eco-icon--s24 { right: 37%; top: 18%; width: 26px; height: 26px; transform: rotate(-11deg); opacity: .72; }

.mws-screen-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .96;
}

.mws-avatar-sheen {
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 36%, rgba(8,77,84,.08)),
    radial-gradient(circle at 72% 16%, rgba(255,255,255,.08), transparent 30%);
}

.mws-content {
  position: relative;
  z-index: 3;
  min-width: 0;
  min-height: 460px;
  max-height: min(690px, calc(100dvh - 180px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 56px 52px 128px;
  border-radius: 44px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(circle at 86% 14%, rgba(124,226,228,.15), transparent 27%),
    radial-gradient(circle at 12% 84%, rgba(255,255,255,.06), transparent 30%),
    linear-gradient(145deg, rgba(27,140,151,.985), rgba(8,101,113,.995));
  box-shadow: 0 32px 78px rgba(5,52,58,.34), inset 0 1px 0 rgba(255,255,255,.17);
  will-change: transform, opacity;
}

/* central readability zone keeps the text area calmer than the denser icon edges */
.mws-readability-zone {
  z-index: 5;
  inset: 9% 8% 8% 13%;
  pointer-events: none;
  border-radius: 38px;
  background: radial-gradient(ellipse at 50% 45%, rgba(15,126,136,.56) 0%, rgba(15,126,136,.34) 46%, rgba(15,126,136,0) 78%);
  filter: blur(4px);
}

.mws-status-scroll,
.mws-identity {
  position: relative;
  z-index: 6;
}

.mws-status-scroll {
  max-height: min(430px, calc(100dvh - 325px));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.35) transparent;
  padding-right: 8px;
  outline: none;
}

.mws-status-scroll::-webkit-scrollbar { width: 6px; }
.mws-status-scroll::-webkit-scrollbar-track { background: transparent; }
.mws-status-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 999px; }
.mws-status-scroll:focus-visible { outline: 2px solid rgba(255,255,255,.8); outline-offset: 5px; border-radius: 10px; }

.mws-quote {
  margin: 0;
  max-width: 100%;
  color: rgba(255,255,255,.995);
  font-family: "Manaaki Lora", Georgia, serif !important;
  font-size: 36px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 1.34 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  white-space: normal;
  hyphens: none;
  text-wrap: pretty;
}

.mws-quote-mark,
.mws-quote-text {
  display: inline;
  margin: 0;
  padding: 0;
  font-family: "Manaaki Lora", Georgia, serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: inherit;
}

.mws-quote-mark {
  font-size: 1.04em;
  color: rgba(255,255,255,.88);
}

.mws-shell[data-density="medium"] .mws-quote { font-size: 32px !important; line-height: 1.37 !important; }
.mws-shell[data-density="long"] .mws-quote { font-size: 28px !important; line-height: 1.41 !important; }
.mws-shell[data-density="very-long"] .mws-quote { font-size: 25px !important; line-height: 1.45 !important; }

.mws-shell[data-density="long"] .mws-content { min-height: 520px; }
.mws-shell[data-density="very-long"] .mws-content { min-height: 560px; }

.mws-shell[data-density="long"] .mws-status-scroll { max-height: min(455px, calc(100dvh - 315px)); }
.mws-shell[data-density="very-long"] .mws-status-scroll { max-height: min(485px, calc(100dvh - 300px)); }

.mws-identity {
  margin-top: 30px;
  min-height: 52px;
  font-family: "Manaaki Netflix Sans", sans-serif !important;
}

.mws-name {
  color: #fff;
  font-family: "Manaaki Netflix Sans", sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.mws-title {
  margin-top: 6px;
  color: rgba(255,255,255,.86);
  font-family: "Manaaki Netflix Sans", sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

.mws-controls {
  display: grid;
  grid-template-columns: 48px minmax(180px, 1fr) 48px auto;
  align-items: center;
  gap: 14px;
  width: min(840px, 100%);
  margin: 0 auto;
}

.mws-arrow,
.mws-continue {
  min-height: 44px;
  border-radius: 13px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.mws-arrow {
  width: 48px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.09);
  color: #fff;
  font-size: 23px;
}

.mws-arrow:hover:not(:disabled) { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.mws-arrow:disabled { opacity: .32; cursor: not-allowed; }

.mws-progress-wrap {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.mws-position {
  color: rgba(255,255,255,.94);
  font-size: 13px;
  white-space: nowrap;
}

.mws-dots {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 8px 3px;
}

.mws-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: 1.5px solid rgba(255,255,255,.82);
  border-radius: 999px;
  background: transparent;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
  opacity: .8;
}

.mws-dot.is-reached { background: #fff; opacity: 1; }
.mws-dot.is-current { transform: scale(1.35); box-shadow: 0 0 0 2px rgba(255,255,255,.10); }

.mws-dot-gap {
  flex: 0 0 auto;
  color: rgba(255,255,255,.58);
  font-family: "Manaaki Netflix Sans", sans-serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .08em;
  transform: translateY(-1px);
}

.mws-continue {
  border: 1px solid rgba(255,255,255,.25);
  background: #fff;
  color: #245e63;
  padding: 0 18px;
  font-size: 14px;
  white-space: nowrap;
}

.mws-continue:hover { transform: translateY(-1px); background: rgba(255,255,255,.95); }

.mws-overlay button:focus-visible {
  outline: 3px solid rgba(255,255,255,.95);
  outline-offset: 3px;
}

body.mws-active { overflow: hidden !important; }

@keyframes mwsAvatarInitialIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(64px); }
}

@keyframes mwsContentInitialIn {
  from { opacity: 0; transform: translateX(34px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes mwsAvatarIn {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(64px); }
}

@keyframes mwsContentIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

.mws-avatar-frame.is-entering-initial { animation: mwsAvatarInitialIn 980ms cubic-bezier(.22,.8,.24,1) both; }
.mws-content.is-entering-initial { animation: mwsContentInitialIn 1120ms 140ms cubic-bezier(.22,.8,.24,1) both; }
.mws-avatar-frame.is-entering { animation: mwsAvatarIn 620ms cubic-bezier(.22,.8,.24,1) both; }
.mws-content.is-entering { animation: mwsContentIn 700ms 70ms cubic-bezier(.22,.8,.24,1) both; }
.mws-avatar-frame.is-leaving { opacity: 0; transform: translateX(46px); transition: opacity 150ms ease, transform 150ms ease; }
.mws-content.is-leaving { opacity: 0; transform: translateX(-16px); transition: opacity 150ms ease, transform 150ms ease; }

@media (max-width: 980px) {
  .mws-shell { width: min(920px, 100%); }
  .mws-visual { grid-template-columns: 260px minmax(0, 600px); min-height: 420px; }
  .mws-avatar-frame { width: 260px; height: 310px; transform: translateX(52px); border-radius: 30px 30px 0 122px; }
  .mws-content { min-height: 420px; padding: 50px 42px 46px 104px; border-radius: 38px; }
  .mws-shell[data-density="long"] .mws-content { min-height: 490px; }
  .mws-shell[data-density="very-long"] .mws-content { min-height: 530px; }
  .mws-quote { font-size: 34px !important; }
  .mws-shell[data-density="medium"] .mws-quote { font-size: 30px !important; }
  .mws-shell[data-density="long"] .mws-quote { font-size: 27px !important; }
  .mws-shell[data-density="very-long"] .mws-quote { font-size: 24px !important; }
  @keyframes mwsAvatarInitialIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(52px); } }
  @keyframes mwsAvatarIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(52px); } }
}

@media (max-width: 760px) {
  .mws-overlay { padding: 14px; align-items: start; overflow-y: auto; }
  .mws-shell { min-height: calc(100dvh - 28px); max-height: none; padding: 54px 18px 24px; gap: 18px; }
  .mws-visual { grid-template-columns: 1fr; min-height: 0; }
  .mws-avatar-frame {
    width: 164px;
    height: 174px;
    transform: translate(18px, 26px);
    border-radius: 26px 26px 0 70px;
    justify-self: start;
    margin-left: 12px;
  }
  .mws-content {
    min-height: 360px;
    max-height: min(650px, calc(100dvh - 245px));
    padding: 62px 26px 32px;
    border-radius: 30px;
  }
  .mws-shell[data-density="long"] .mws-content { min-height: 430px; }
  .mws-shell[data-density="very-long"] .mws-content { min-height: 470px; }
  .mws-status-scroll { max-height: min(370px, calc(100dvh - 370px)); }
  .mws-quote { font-size: 31px !important; }
  .mws-shell[data-density="medium"] .mws-quote { font-size: 28px !important; }
  .mws-shell[data-density="long"] .mws-quote { font-size: 25px !important; }
  .mws-shell[data-density="very-long"] .mws-quote { font-size: 22px !important; }
  .mws-identity { margin-top: 24px; }
  .mws-controls { grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 10px; }
  .mws-continue { grid-column: 1 / -1; width: 100%; }
  .mws-eco-icon--s11,
  .mws-eco-icon--s12,
  .mws-eco-icon--s18,
  .mws-eco-icon--s22,
  .mws-eco-icon--s24 { display: none; }
  @keyframes mwsAvatarInitialIn { from { opacity: 0; transform: translate(-22px, 26px); } to { opacity: 1; transform: translate(18px, 26px); } }
  @keyframes mwsAvatarIn { from { opacity: 0; transform: translate(-12px, 26px); } to { opacity: 1; transform: translate(18px, 26px); } }
}

@media (max-width: 480px) {
  .mws-overlay { padding: 0; }
  .mws-shell { min-height: 100dvh; padding: 48px 14px 18px; }
  .mws-skip { right: 10px; top: 8px; }
  .mws-avatar-frame { width: 136px; height: 146px; transform: translate(14px, 22px); margin-left: 4px; }
  .mws-content { min-height: 340px; padding: 54px 20px 26px; border-radius: 26px; }
  .mws-shell[data-density="long"] .mws-content { min-height: 405px; }
  .mws-shell[data-density="very-long"] .mws-content { min-height: 445px; }
  .mws-status-scroll { max-height: calc(100dvh - 365px); min-height: 0; }
  .mws-quote { font-size: 28px !important; line-height: 1.38 !important; }
  .mws-shell[data-density="medium"] .mws-quote { font-size: 25px !important; }
  .mws-shell[data-density="long"] .mws-quote { font-size: 23px !important; }
  .mws-shell[data-density="very-long"] .mws-quote { font-size: 21px !important; line-height: 1.45 !important; }
  .mws-progress-wrap { gap: 8px; }
  .mws-dot { width: 6px; height: 6px; }
  .mws-icon-layer--status .mws-eco-icon:nth-child(n+15) { display: none; }
  @keyframes mwsAvatarInitialIn { from { opacity: 0; transform: translate(-22px, 22px); } to { opacity: 1; transform: translate(14px, 22px); } }
  @keyframes mwsAvatarIn { from { opacity: 0; transform: translate(-10px, 22px); } to { opacity: 1; transform: translate(14px, 22px); } }
}

@media (prefers-reduced-motion: reduce) {
  .mws-avatar-frame.is-entering,
  .mws-content.is-entering,
  .mws-avatar-frame.is-entering-initial,
  .mws-content.is-entering-initial {
    animation: none !important;
    opacity: 1;
  }
  .mws-avatar-frame.is-leaving,
  .mws-content.is-leaving,
  .mws-dot,
  .mws-arrow,
  .mws-continue {
    transition: none !important;
  }
  .mws-screen-particles { opacity: .42; }
}
