/* Pulau Marvis v1 responsive landscape lobby patch. */
html,
body,
#root {
  width: 100%;
  height: 100%;
  min-height: 100svh;
  overflow: hidden;
}

#root > .fixed.inset-0.overflow-y-auto {
  overflow: hidden !important;
  padding: clamp(8px, 1.5vh, 16px) clamp(10px, 1.5vw, 18px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  align-items: center !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
  width: min(96vw, 1180px) !important;
  max-width: 1180px !important;
  max-height: calc(100svh - 20px) !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: minmax(220px, .78fr) minmax(430px, 1.35fr);
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
  padding: clamp(12px, 2vw, 22px) !important;
  border-radius: clamp(18px, 2.5vw, 34px) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
  margin-bottom: 0 !important;
  min-height: 100%;
  padding-right: clamp(10px, 1.8vw, 22px);
  border-right: 1px solid rgba(96, 165, 250, .25);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
  font-size: clamp(27px, 4.7vw, 56px) !important;
  line-height: 1.03 !important;
  letter-spacing: 0 !important;
  margin-bottom: clamp(5px, 1vh, 10px) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p {
  font-size: clamp(12px, 1.55vw, 17px) !important;
  line-height: 1.35 !important;
  max-width: 30ch;
  margin-inline: auto;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex {
  margin-top: clamp(8px, 1.5vh, 14px) !important;
  padding: 4px 12px !important;
  font-size: clamp(10px, 1.15vw, 13px) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
  min-height: 0;
  max-height: calc(100svh - 56px);
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: clamp(7px, 1.1vh, 12px);
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > :not(:last-child) {
  margin-block-end: clamp(7px, 1.1vh, 12px) !important;
}

#root > .fixed.inset-0.overflow-y-auto label {
  font-size: clamp(9px, 1.05vw, 12px) !important;
  margin-bottom: 4px !important;
  letter-spacing: .02em !important;
}

#root > .fixed.inset-0.overflow-y-auto input[type="text"],
#root > .fixed.inset-0.overflow-y-auto input[type="password"] {
  min-height: 0 !important;
  height: clamp(36px, 6.3vh, 48px) !important;
  padding: 0 clamp(12px, 1.6vw, 18px) !important;
  font-size: clamp(14px, 1.55vw, 19px) !important;
  border-radius: clamp(12px, 1.5vw, 18px) !important;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 {
  gap: clamp(7px, 1.2vw, 12px) !important;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
  height: clamp(38px, 8vh, 58px) !important;
  border-width: 3px !important;
  border-radius: clamp(12px, 1.6vw, 18px) !important;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
  width: clamp(26px, 4.7vh, 39px) !important;
  height: clamp(26px, 4.7vh, 39px) !important;
}

#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center {
  justify-content: flex-start !important;
  gap: clamp(5px, .8vw, 8px) !important;
}

#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button {
  padding: clamp(5px, .9vh, 8px) clamp(8px, 1vw, 12px) !important;
  font-size: clamp(10px, 1.05vw, 12px) !important;
  line-height: 1.1 !important;
  border-radius: 10px !important;
}

#root > .fixed.inset-0.overflow-y-auto button.w-full {
  min-height: 0 !important;
  height: clamp(39px, 6.5vh, 52px) !important;
  padding-block: 0 !important;
  font-size: clamp(14px, 1.45vw, 18px) !important;
  border-radius: clamp(13px, 1.6vw, 20px) !important;
}

#root > .fixed.inset-0.overflow-y-auto .mt-4 {
  margin-top: clamp(6px, 1vh, 12px) !important;
}

@media (max-width: 780px), (orientation: portrait) {
  #root > .fixed.inset-0.overflow-y-auto {
    padding: 8px !important;
    overflow: hidden !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    width: min(96vw, 620px) !important;
    max-height: calc(100svh - 16px) !important;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow: hidden !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    min-height: 0;
    border-right: 0;
    padding-right: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(96, 165, 250, .25);
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    font-size: clamp(22px, 6.6vw, 34px) !important;
    margin-bottom: 4px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex {
    margin-top: 6px !important;
    padding: 3px 9px !important;
    font-size: 10px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    max-height: calc(100svh - 142px);
    overflow: auto;
    padding-right: 2px;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > :not(:last-child) {
    margin-block-end: 6px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto label {
    font-size: 9px !important;
    margin-bottom: 2px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto input[type="text"],
  #root > .fixed.inset-0.overflow-y-auto input[type="password"] {
    height: 42px !important;
    font-size: 14px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 {
    gap: 6px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    height: 43px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: 28px !important;
    height: 28px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button {
    padding: 4px 7px !important;
    font-size: 9px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    height: 42px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 780px), (orientation: portrait) {
  #root > .fixed.inset-0.overflow-y-auto {
    overscroll-behavior: contain !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex {
    align-items: flex-start !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    min-height: auto !important;
    overflow: visible !important;
  }
}

#root > .fixed.inset-0.overflow-y-auto,
#root > .fixed.inset-0.overflow-y-auto *,
#root > .fixed.inset-0.overflow-y-auto *::before,
#root > .fixed.inset-0.overflow-y-auto *::after {
  box-sizing: border-box !important;
}

/* v1 gpt-taste pass: artistic asymmetry, gapless bento, and motion-ready surfaces. */
#root > .fixed.inset-0.overflow-y-auto {
  --pm-font-ui: "Cabinet Grotesk", "Geist", "Satoshi", "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --pm-stage: #f3eee4;
  --pm-paper: #fffaf1;
  --pm-ink: #161512;
  --pm-muted: #665d50;
  --pm-copper: #a6793b;
  background:
    radial-gradient(115% 80% at 8% 8%, rgba(255, 252, 243, .9), transparent 62%),
    linear-gradient(135deg, rgba(255, 253, 247, .95), rgba(232, 221, 199, .48)),
    var(--pm-stage) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
  isolation: isolate;
  overflow: hidden !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div::before {
  content: "";
  position: absolute;
  inset: clamp(10px, 1vw, 16px);
  z-index: 0;
  pointer-events: none;
  border-radius: clamp(14px, 1.9vw, 24px);
  background:
    linear-gradient(90deg, rgba(166, 121, 59, .08), transparent 36%),
    repeating-linear-gradient(90deg, rgba(22, 21, 18, .04) 0 1px, transparent 1px 90px);
  opacity: .52;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
  position: relative;
  z-index: 1;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .98), rgba(251, 244, 232, .9)),
    var(--pm-paper) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::before {
  content: "Pulau Marvis - Kuala Lumpur";
  max-width: 19rem;
  border-radius: 999px;
  color: #5f513a;
  background: rgba(238, 228, 209, .78);
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
  max-width: 9ch;
  font-family: "PP Editorial New", "Cabinet Grotesk", "Playfair Display", Georgia, serif !important;
  font-size: clamp(72px, 7.4vw, 122px) !important;
  letter-spacing: -.078em !important;
  line-height: .76 !important;
  transform: translateX(-.05em);
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1::after {
  content: "";
  display: inline-block;
  width: .92em;
  height: .28em;
  margin-left: .1em;
  border-radius: 999px;
  vertical-align: .08em;
  background:
    linear-gradient(rgba(22, 21, 18, .18), rgba(22, 21, 18, .18)),
    url("https://picsum.photos/seed/pulau-marvis-island/320/160");
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .65),
    0 12px 34px rgba(87, 68, 37, .18);
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p::after {
  content: "Cipta watak, pilih gaya, kemudian masuk ke dunia Pulau Marvis.";
  max-width: 29ch;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::after {
  content: "Buka dunia. Pilih watak. Mula cerita.";
  color: #6d6253;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
  grid-auto-flow: dense !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .95), rgba(250, 244, 233, .88)),
    var(--pm-paper) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
  background:
    linear-gradient(180deg, rgba(255, 255, 253, .94), rgba(249, 241, 227, .9)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(84, 67, 38, .085),
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 18px 48px rgba(79, 61, 31, .07) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2)::before,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3)::before,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4)::before,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5)::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pm-ink), rgba(166, 121, 59, .22));
}

#root > .fixed.inset-0.overflow-y-auto input[type="text"],
#root > .fixed.inset-0.overflow-y-auto input[type="password"] {
  background:
    linear-gradient(180deg, #fffdf8, #f7efe0) !important;
  color: var(--pm-ink) !important;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button,
#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
#root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button {
  overflow: hidden !important;
  transition:
    transform .72s cubic-bezier(.32, .72, 0, 1),
    box-shadow .72s cubic-bezier(.32, .72, 0, 1),
    background .72s cubic-bezier(.32, .72, 0, 1) !important;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button::before,
#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button::before,
#root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 35%, rgba(255, 255, 255, .72) 48%, transparent 62% 100%);
  opacity: 0;
  transform: translateX(-70%);
  transition:
    opacity .72s cubic-bezier(.32, .72, 0, 1),
    transform .72s cubic-bezier(.32, .72, 0, 1);
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button:hover::before,
#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button:hover::before,
#root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button:hover::before {
  opacity: .58;
  transform: translateX(70%);
}

#root > .fixed.inset-0.overflow-y-auto button.w-full {
  background: #171614 !important;
  color: #fffaf1 !important;
  letter-spacing: .015em;
}

#root > .fixed.inset-0.overflow-y-auto button.w-full:disabled {
  background: #d7cfbf !important;
  color: #5e5547 !important;
}

#root > .fixed.inset-0.overflow-y-auto button.w-full:disabled::after {
  color: #5e5547;
  background: rgba(255, 250, 241, .78);
}

.pm-gpttaste-ready #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > * {
  will-change: transform, opacity;
}

@media (max-width: 780px), (orientation: portrait) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div::before {
    inset: 6px;
    background: repeating-linear-gradient(0deg, rgba(22, 21, 18, .035) 0 1px, transparent 1px 58px);
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    max-width: none;
    transform: none;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1::after {
    display: none;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2)::before,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3)::before,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4)::before,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5)::before {
    width: 30px;
    height: 2px;
    margin-bottom: 5px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    grid-template-columns: minmax(190px, .65fr) minmax(480px, 1.6fr);
    padding: 10px !important;
    gap: 12px;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    font-size: clamp(24px, 4vw, 42px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    max-height: calc(100svh - 36px);
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    height: clamp(34px, 7vh, 46px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p {
    font-size: clamp(11px, 1.45vw, 13px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex {
    padding: 3px 9px !important;
    font-size: 10px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    display: grid;
    grid-template-columns: minmax(260px, .95fr) minmax(280px, 1.05fr);
    grid-auto-flow: dense;
    column-gap: 10px;
    row-gap: 5px;
    align-content: start;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > :not(:last-child) {
    margin-block-end: 0 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1) {
    grid-column: 1 / -1;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2) {
    grid-column: 1;
    grid-row: 2 / span 3;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    grid-column: 2;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > button.w-full,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    grid-column: 1 / -1;
  }

  #root > .fixed.inset-0.overflow-y-auto input[type="text"],
  #root > .fixed.inset-0.overflow-y-auto input[type="password"] {
    height: 32px !important;
    font-size: 13px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto label {
    font-size: 8.5px !important;
    margin-bottom: 2px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 {
    gap: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    height: 34px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: 22px !important;
    height: 22px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button {
    padding: 4px 7px !important;
    font-size: 9.5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    height: 34px !important;
    font-size: 13px !important;
  }
}

@media (max-height: 620px) and (orientation: landscape) and (min-width: 760px) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    grid-template-columns: minmax(160px, .5fr) minmax(650px, 1.8fr);
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    font-size: clamp(24px, 3.4vw, 34px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: minmax(170px, .8fr) minmax(150px, .7fr) minmax(250px, 1.25fr);
    column-gap: 8px;
    row-gap: 4px;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2) {
    grid-column: 1;
    grid-row: 2 / span 4;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) {
    grid-column: 3;
    grid-row: 2 / span 2;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    grid-column: 3;
    grid-row: 4;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > button.w-full {
    grid-column: 2;
    grid-row: 3;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    grid-column: 2;
    grid-row: 4;
    justify-content: flex-start !important;
    margin-top: 0 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button {
    padding: 3px 6px !important;
    font-size: 9px !important;
  }
}

/* v1 space-fit pass: use the whole landscape viewport instead of leaving a large
   decorative band above and below the lobby. */
@media (orientation: landscape) and (min-width: 781px) {
  #root > .fixed.inset-0.overflow-y-auto {
    padding: clamp(8px, 1.25vh, 14px) clamp(10px, 1.25vw, 22px) !important;
    align-items: stretch !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex {
    align-items: stretch !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    width: min(97.5vw, 1760px) !important;
    max-width: 1760px !important;
    height: calc(100svh - clamp(16px, 2.5vh, 28px)) !important;
    max-height: none !important;
    align-self: center;
    align-items: stretch;
    grid-template-columns: clamp(220px, 22vw, 360px) minmax(0, 1fr);
    gap: clamp(12px, 1.8vw, 28px);
    padding: clamp(14px, 2vh, 26px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    align-self: stretch;
    min-height: 0;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    height: 100%;
    max-height: none;
    overflow: auto;
    align-content: center;
    scrollbar-width: thin;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > * {
    min-width: 0;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button span {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

@media (orientation: landscape) and (min-width: 1200px) and (min-height: 640px) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    grid-template-columns: clamp(270px, 22vw, 390px) minmax(0, 1fr);
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    font-size: clamp(46px, 4.4vw, 70px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p {
    font-size: clamp(15px, 1.15vw, 20px) !important;
    max-width: 34ch;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex {
    font-size: clamp(12px, .9vw, 15px) !important;
    padding: 6px 16px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    display: grid;
    grid-template-columns: minmax(240px, .85fr) minmax(250px, .85fr) minmax(340px, 1.15fr);
    grid-auto-flow: dense;
    column-gap: clamp(12px, 1.2vw, 24px);
    row-gap: clamp(10px, 1.6vh, 22px);
    align-content: center;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > :not(:last-child) {
    margin-block-end: 0 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2) {
    grid-column: 1;
    grid-row: 2 / span 4;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) {
    grid-column: 3;
    grid-row: 2 / span 3;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    grid-column: 3;
    grid-row: 5;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > button.w-full {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    grid-column: 2;
    grid-row: 4;
    justify-content: flex-start !important;
    margin-top: 0 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    height: clamp(58px, 7.2vh, 76px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: clamp(34px, 4.8vh, 46px) !important;
    height: clamp(34px, 4.8vh, 46px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center {
    align-content: flex-start;
    gap: clamp(7px, .65vw, 11px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button {
    min-height: 32px;
    padding: 6px 12px !important;
    font-size: clamp(11px, .75vw, 13px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    height: clamp(44px, 6vh, 58px) !important;
  }
}

@media (orientation: landscape) and (min-width: 1500px) and (min-height: 760px) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    grid-template-columns: clamp(320px, 22vw, 420px) minmax(0, 1fr);
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: minmax(290px, .85fr) minmax(280px, .8fr) minmax(430px, 1.25fr);
  }
}

@media (orientation: landscape) and (max-height: 620px) {
  #root > .fixed.inset-0.overflow-y-auto {
    padding: 6px 8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    height: calc(100svh - 12px) !important;
    width: calc(100vw - 16px) !important;
    border-radius: 22px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    align-content: start;
  }
}

@media (max-width: 780px), (orientation: portrait) {
  #root > .fixed.inset-0.overflow-y-auto {
    align-items: stretch !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex {
    align-items: stretch !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    height: calc(100svh - 16px) !important;
    align-self: center;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    max-height: none;
  }
}

/* v1 clean login UI pass: consistent controls, safer wrapping, no cramped overlap. */
#root > .fixed.inset-0.overflow-y-auto,
#root > .fixed.inset-0.overflow-y-auto * {
  box-sizing: border-box;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
  isolation: isolate;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > * {
  min-width: 0;
}

#root > .fixed.inset-0.overflow-y-auto label {
  display: block;
  color: rgb(107 114 128) !important;
  line-height: 1.15 !important;
}

#root > .fixed.inset-0.overflow-y-auto input[type="text"],
#root > .fixed.inset-0.overflow-y-auto input[type="password"] {
  width: 100% !important;
  border-width: 2px !important;
  box-shadow: none !important;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button,
#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
#root > .fixed.inset-0.overflow-y-auto button.w-full {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-width: 2px !important;
  box-shadow: none !important;
  transform: none !important;
}

#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center {
  align-items: flex-start !important;
  min-width: 0;
}

#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button {
  min-width: 0;
  min-height: clamp(28px, 3.6vh, 34px);
  max-width: 100%;
  flex: 0 1 auto;
  white-space: nowrap;
}

#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button * {
  line-height: 1.1 !important;
  overflow-wrap: anywhere;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
  flex: 0 0 auto;
}

/* Keep the character picker selection frame inside its own safe area. */
#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 {
  overflow: visible !important;
  padding: 3px !important;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
  background-clip: padding-box;
  outline: 0 !important;
  overflow: hidden !important;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button.border-blue-500 {
  box-shadow: inset 0 0 0 1px rgb(59 130 246) !important;
}

@media (orientation: landscape) and (min-width: 1200px) and (min-height: 640px) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    width: min(96vw, 1640px) !important;
    max-width: 1640px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: minmax(240px, .85fr) minmax(260px, .95fr) minmax(340px, 1.2fr);
    column-gap: clamp(16px, 1.35vw, 24px);
    row-gap: clamp(14px, 1.8vh, 22px);
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > button.w-full,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    width: 100%;
    max-width: 340px;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) button {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    border-radius: 12px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 {
    gap: 12px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    height: clamp(56px, 7vh, 70px) !important;
    border-radius: 14px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: clamp(32px, 4.4vh, 42px) !important;
    height: clamp(32px, 4.4vh, 42px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center {
    gap: 8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button {
    height: 32px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    height: 48px !important;
    border-radius: 15px !important;
  }
}

@media (orientation: landscape) and (min-width: 781px) and (max-width: 1199px) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    row-gap: clamp(6px, 1.2vh, 10px);
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button {
    white-space: normal;
  }
}

@media (orientation: landscape) and (max-height: 620px) and (min-width: 760px) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    grid-template-columns: minmax(170px, .58fr) minmax(0, 1.9fr) !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: minmax(170px, .82fr) minmax(0, 1.18fr) !important;
    column-gap: 8px !important;
    row-gap: 5px !important;
    align-content: start !important;
    overflow: auto !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2) {
    grid-column: 1 !important;
    grid-row: 2 / span 3 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    grid-column: 2 !important;
    grid-row: 4 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > button.w-full {
    grid-column: 1 !important;
    grid-row: 5 !important;
    width: 100% !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    grid-column: 2 !important;
    grid-row: 5 !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 {
    gap: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    height: 34px !important;
    border-radius: 10px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: 20px !important;
    height: 20px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center {
    gap: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button {
    min-height: 26px !important;
    padding: 3px 6px !important;
    font-size: 8.5px !important;
    border-radius: 9px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    height: 32px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 780px), (orientation: portrait) {
  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center {
    gap: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button {
    min-height: 28px !important;
    padding: 4px 7px !important;
    white-space: normal;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    border-radius: 11px !important;
  }
}

/* v1 taste-fit pass: uniform typography, balanced density, and no clipped login actions. */
#root > .fixed.inset-0.overflow-y-auto {
  --pm-font-ui: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --pm-label-size: clamp(9px, .78vw, 12px);
  --pm-control-size: clamp(11px, .86vw, 13px);
  --pm-input-size: clamp(14px, 1vw, 16px);
  --pm-radius: 14px;
  --pm-gap: clamp(8px, 1.1vw, 14px);
  font-family: var(--pm-font-ui) !important;
}

#root > .fixed.inset-0.overflow-y-auto h1 {
  letter-spacing: 0 !important;
}

#root > .fixed.inset-0.overflow-y-auto p,
#root > .fixed.inset-0.overflow-y-auto label,
#root > .fixed.inset-0.overflow-y-auto input,
#root > .fixed.inset-0.overflow-y-auto button {
  font-family: var(--pm-font-ui) !important;
}

#root > .fixed.inset-0.overflow-y-auto label {
  font-size: var(--pm-label-size) !important;
  font-weight: 800 !important;
  text-transform: uppercase;
}

#root > .fixed.inset-0.overflow-y-auto input[type="text"],
#root > .fixed.inset-0.overflow-y-auto input[type="password"] {
  font-size: var(--pm-input-size) !important;
  font-weight: 500 !important;
}

#root > .fixed.inset-0.overflow-y-auto button {
  font-size: var(--pm-control-size) !important;
  font-weight: 700 !important;
}

@media (orientation: landscape) and (min-width: 1200px) and (min-height: 640px) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    height: calc(100svh - clamp(16px, 2.5vh, 28px)) !important;
    max-height: calc(100svh - 16px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    align-content: center !important;
  }
}

@media (max-width: 780px), (orientation: portrait) {
  #root > .fixed.inset-0.overflow-y-auto {
    --pm-label-size: 8.5px;
    --pm-control-size: 10.5px;
    --pm-input-size: 13px;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    padding: 10px !important;
    gap: 6px !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-content: start !important;
    height: calc(100svh - 16px) !important;
    max-height: calc(100svh - 16px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    padding-bottom: 6px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    font-size: clamp(21px, 8.2vw, 30px) !important;
    line-height: .96 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p {
    font-size: 10px !important;
    line-height: 1.18 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex {
    width: 100%;
    justify-content: center;
    margin-top: 5px !important;
    height: 24px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    display: grid !important;
    align-content: start !important;
    gap: 5px !important;
    height: 100% !important;
    max-height: none !important;
    overflow: auto !important;
    padding-right: 1px;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > :not(:last-child) {
    margin-block-end: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto input[type="text"],
  #root > .fixed.inset-0.overflow-y-auto input[type="password"] {
    height: 38px !important;
    border-radius: 12px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 {
    gap: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    height: 36px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: 24px !important;
    height: 24px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) .flex.flex-wrap.justify-center,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex.flex-wrap.justify-center,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) .flex.flex-wrap.justify-center {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible !important;
    justify-content: stretch !important;
    gap: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) .flex.flex-wrap.justify-center button,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex.flex-wrap.justify-center button,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) .flex.flex-wrap.justify-center button {
    width: 100% !important;
    height: auto !important;
    min-height: 28px !important;
    padding: 4px 6px !important;
    white-space: nowrap !important;
    font-size: 10px !important;
    line-height: 1.08 !important;
    border-radius: 10px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) .flex.flex-wrap.justify-center button span,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex.flex-wrap.justify-center button span,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) .flex.flex-wrap.justify-center button span {
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    height: 38px !important;
    border-radius: 12px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    min-height: 17px;
  }
}

@media (max-width: 380px) and (max-height: 780px) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    padding: 8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    font-size: clamp(18px, 7.5vw, 25px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p {
    font-size: 9px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    gap: 4px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    height: 32px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: 21px !important;
    height: 21px !important;
  }
}

@media (max-width: 380px) and (max-height: 700px) {
  #root > .fixed.inset-0.overflow-y-auto {
    --pm-label-size: 8px;
    --pm-control-size: 9px;
    --pm-input-size: 12px;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    padding: 7px !important;
    gap: 3px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    padding-bottom: 3px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    font-size: clamp(17px, 6.8vw, 23px) !important;
    line-height: .9 !important;
    margin-bottom: 2px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p {
    font-size: 8px !important;
    line-height: 1.08 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex {
    height: 20px !important;
    margin-top: 3px !important;
    padding: 2px 7px !important;
    font-size: 9px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    gap: 3px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > :not(:last-child) {
    margin-block-end: 3px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto label {
    margin-bottom: 1px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto input[type="text"],
  #root > .fixed.inset-0.overflow-y-auto input[type="password"] {
    height: 32px !important;
    border-radius: 10px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 {
    gap: 4px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    height: 27px !important;
    border-radius: 9px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: 18px !important;
    height: 18px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) .flex.flex-wrap.justify-center {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex.flex-wrap.justify-center {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) .flex.flex-wrap.justify-center {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) .flex.flex-wrap.justify-center,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex.flex-wrap.justify-center,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) .flex.flex-wrap.justify-center {
    gap: 4px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) .flex.flex-wrap.justify-center button,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex.flex-wrap.justify-center button,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) .flex.flex-wrap.justify-center button {
    min-height: 23px !important;
    padding: 2px 4px !important;
    font-size: 8.5px !important;
    line-height: 1 !important;
    border-radius: 8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    height: 32px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    min-height: 14px;
    transform: scale(.92);
    transform-origin: left center;
  }
}

/* v1 minimalist-login pass: premium utilitarian lobby with dense bento layout. */
#root > .fixed.inset-0.overflow-y-auto {
  --pm-canvas: #f7f6f3;
  --pm-ink: #1f1f1d;
  --pm-muted: #706f6b;
  --pm-soft: #fbfbfa;
  --pm-line: #e7e2d8;
  --pm-line-strong: #1f1f1d;
  --pm-accent-bg: #edf3ec;
  --pm-accent-text: #346538;
  --pm-blue-soft: #e9f1f8;
  --pm-blue-text: #255f86;
  --pm-font-ui: "Aptos", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--pm-canvas) !important;
  color: var(--pm-ink) !important;
  padding: clamp(10px, 1.6svh, 18px) !important;
  font-family: var(--pm-font-ui) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .absolute.inset-0 {
  display: none !important;
}

#root > .fixed.inset-0.overflow-y-auto::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(31, 31, 29, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 31, 29, .035) 1px, transparent 1px);
  background-size: 34px 34px;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex {
  min-height: calc(100svh - clamp(20px, 3.2svh, 36px)) !important;
  align-items: stretch !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
  width: min(98vw, 1540px) !important;
  height: calc(100svh - clamp(20px, 3.2svh, 36px)) !important;
  max-width: 1540px !important;
  max-height: none !important;
  display: grid !important;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr) !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--pm-line) !important;
  border-radius: 14px !important;
  background: rgba(251, 251, 250, .96) !important;
  box-shadow: 0 16px 48px rgba(50, 43, 31, .045) !important;
  backdrop-filter: none !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
  position: relative;
  display: grid !important;
  grid-template-rows: minmax(56px, 1fr) auto auto minmax(64px, 1fr);
  align-content: stretch !important;
  justify-content: stretch !important;
  gap: clamp(14px, 2svh, 24px);
  min-height: 0 !important;
  padding: clamp(24px, 4svh, 44px) clamp(22px, 3vw, 34px) !important;
  border-right: 1px solid var(--pm-line) !important;
  border-bottom: 0 !important;
  background: #ffffff !important;
  text-align: left !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::before {
  content: "Bahasa Melayu · Kuala Lumpur · Open world";
  align-self: start;
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--pm-line);
  border-radius: 6px;
  color: var(--pm-muted);
  background: var(--pm-soft);
  font-size: clamp(9px, .72vw, 11px);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::after {
  content: "Nama. Watak. Gaya. Masuk pulau.";
  align-self: end;
  display: block;
  max-width: 23ch;
  color: var(--pm-muted);
  font-size: clamp(12px, .95vw, 15px);
  line-height: 1.55;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
  align-self: end;
  max-width: 8ch;
  margin: 0 !important;
  color: var(--pm-ink) !important;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif !important;
  font-size: clamp(48px, 6.2vw, 92px) !important;
  font-weight: 500 !important;
  letter-spacing: -.055em !important;
  line-height: .88 !important;
  text-wrap: balance;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p {
  width: 100% !important;
  max-width: 24ch !important;
  margin: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p::after {
  content: "Sediakan watak anda untuk masuk ke Pulau Marvis.";
  display: block;
  max-width: 24ch;
  color: var(--pm-muted);
  font-family: var(--pm-font-ui) !important;
  font-size: clamp(14px, 1.15vw, 18px) !important;
  font-weight: 500;
  line-height: 1.45 !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex {
  justify-self: start;
  align-self: start;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  border: 1px solid #dce6dc;
  border-radius: 999px !important;
  background: var(--pm-accent-bg) !important;
  color: var(--pm-accent-text) !important;
  font-size: clamp(11px, .85vw, 13px) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex svg {
  color: var(--pm-accent-text) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
  display: grid !important;
  grid-template-columns: minmax(240px, .82fr) minmax(275px, .9fr) minmax(360px, 1.22fr);
  grid-template-rows: auto auto auto auto auto;
  grid-auto-flow: dense;
  align-content: center !important;
  align-items: start;
  gap: clamp(10px, 1.4vw, 18px) !important;
  height: 100% !important;
  max-height: none !important;
  overflow: auto !important;
  padding: clamp(18px, 3svh, 34px) clamp(18px, 3vw, 42px) !important;
  background: #fbfbfa;
  scrollbar-width: thin;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > * {
  min-width: 0;
  animation: pm-minimal-in .56s cubic-bezier(.16, 1, .3, 1) both;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > :not(:last-child) {
  margin-block-end: 0 !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1) {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  animation-delay: .02s;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
  padding: clamp(12px, 1.4vw, 18px) !important;
  border: 1px solid var(--pm-line) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2) {
  grid-column: 1 !important;
  grid-row: 2 / span 4 !important;
  animation-delay: .06s;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) {
  grid-column: 2 !important;
  grid-row: 2 !important;
  animation-delay: .1s;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) {
  grid-column: 3 !important;
  grid-row: 2 / span 4 !important;
  animation-delay: .14s;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
  grid-column: 2 !important;
  grid-row: 3 !important;
  animation-delay: .18s;
}

#root > .fixed.inset-0.overflow-y-auto label {
  display: block;
  margin: 0 0 10px !important;
  color: #77736b !important;
  font-family: var(--pm-font-ui) !important;
  font-size: clamp(9px, .72vw, 11px) !important;
  font-weight: 850 !important;
  letter-spacing: .08em !important;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

#root > .fixed.inset-0.overflow-y-auto input[type="text"],
#root > .fixed.inset-0.overflow-y-auto input[type="password"] {
  width: 100% !important;
  height: clamp(42px, 5.4svh, 54px) !important;
  border: 1px solid var(--pm-line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--pm-ink) !important;
  padding: 0 clamp(14px, 1.5vw, 18px) !important;
  font-family: var(--pm-font-ui) !important;
  font-size: clamp(15px, 1.05vw, 17px) !important;
  font-weight: 620 !important;
  box-shadow: none !important;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

#root > .fixed.inset-0.overflow-y-auto input[type="text"]:focus,
#root > .fixed.inset-0.overflow-y-auto input[type="password"]:focus {
  border-color: var(--pm-line-strong) !important;
  background: var(--pm-soft) !important;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(8px, 1vw, 12px) !important;
  padding: 0 !important;
  overflow: visible !important;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 1.45 / 1;
  width: 100% !important;
  height: auto !important;
  min-height: 44px !important;
  border: 1px solid var(--pm-line) !important;
  border-radius: 10px !important;
  background: var(--pm-soft) !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transform: none !important;
  scale: 1 !important;
  translate: none !important;
  rotate: none !important;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button::after {
  content: attr(aria-label);
  position: absolute;
  right: 7px;
  bottom: 5px;
  color: #9a968e;
  font-family: "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button:nth-child(1)::after { content: "01"; }
#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button:nth-child(2)::after { content: "02"; }
#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button:nth-child(3)::after { content: "03"; }
#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button:nth-child(4)::after { content: "04"; }
#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button:nth-child(5)::after { content: "05"; }
#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button:nth-child(6)::after { content: "06"; }
#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button:nth-child(7)::after { content: "07"; }
#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button:nth-child(8)::after { content: "08"; }
#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button:nth-child(9)::after { content: "09"; }

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button:hover {
  background: #ffffff !important;
  border-color: #cfc8bb !important;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button.border-blue-500 {
  border-color: var(--pm-line-strong) !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px var(--pm-line-strong) !important;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
  width: clamp(22px, 3.8svh, 34px) !important;
  height: clamp(22px, 3.8svh, 34px) !important;
  border-radius: 7px !important;
}

#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center,
#root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center {
  display: grid !important;
  justify-content: stretch !important;
  gap: 7px !important;
  width: 100%;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) .flex,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) .flex {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
#root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button {
  position: relative;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 30px !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 7px !important;
  border: 1px solid var(--pm-line) !important;
  border-radius: 7px !important;
  background: var(--pm-soft) !important;
  color: transparent !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transform: none !important;
  scale: 1 !important;
  translate: none !important;
  rotate: none !important;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button:hover,
#root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button:hover {
  border-color: #cfc8bb !important;
  background: #ffffff !important;
}

#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button.border-blue-500,
#root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button.border-blue-500 {
  border-color: var(--pm-line-strong) !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px var(--pm-line-strong) !important;
}

#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button::after,
#root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 5px;
  color: var(--pm-ink);
  font-family: var(--pm-font-ui);
  font-size: clamp(10px, .76vw, 12px);
  font-weight: 780;
  line-height: 1.15;
  word-break: normal !important;
  overflow-wrap: normal !important;
  text-wrap: pretty;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) button:nth-child(1)::after { content: "Tiada"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) button:nth-child(2)::after { content: "Kucing"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) button:nth-child(3)::after { content: "Ketam"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) button:nth-child(4)::after { content: "Burung"; }

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button:nth-child(1)::after { content: "Tiada"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button:nth-child(2)::after { content: "Topi Hitam"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button:nth-child(3)::after { content: "Cermin Mata"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button:nth-child(4)::after { content: "Pita Kepala"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button:nth-child(5)::after { content: "Mahkota Raja"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button:nth-child(6)::after { content: "Aura Api"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button:nth-child(7)::after { content: "Petir Thunder"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button:nth-child(8)::after { content: "Mahkota Bunga"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button:nth-child(9)::after { content: "Rama-rama Ajaib"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button:nth-child(10)::after { content: "Topeng Hantu Raya"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button:nth-child(11)::after { content: "Selendang Naga"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button:nth-child(12)::after { content: "Bintang Pusingan"; }

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) button:nth-child(1)::after { content: "Tiada"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) button:nth-child(2)::after { content: "Jubah Wira"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) button:nth-child(3)::after { content: "Perisai Ksatria"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) button:nth-child(4)::after { content: "Pakaian Ninja"; }

#root > .fixed.inset-0.overflow-y-auto button.w-full {
  grid-column: 2 !important;
  grid-row: 4 !important;
  align-self: end !important;
  width: 100% !important;
  height: clamp(42px, 5.2svh, 52px) !important;
  border: 1px solid var(--pm-ink) !important;
  border-radius: 7px !important;
  background: var(--pm-ink) !important;
  color: #ffffff !important;
  font-family: var(--pm-font-ui) !important;
  font-size: clamp(14px, 1vw, 16px) !important;
  font-weight: 850 !important;
  box-shadow: none !important;
  transition: background-color .2s ease, transform .18s ease;
  animation-delay: .22s;
}

#root > .fixed.inset-0.overflow-y-auto button.w-full:disabled {
  border-color: #d9d4ca !important;
  background: #d9d4ca !important;
  color: #ffffff !important;
}

#root > .fixed.inset-0.overflow-y-auto button.w-full:not(:disabled):hover {
  background: #33322f !important;
}

#root > .fixed.inset-0.overflow-y-auto button:active {
  transform: scale(.985) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
  grid-column: 2 !important;
  grid-row: 5 !important;
  align-self: start !important;
  justify-content: flex-start !important;
  min-height: 24px !important;
  margin: 0 !important;
  gap: 8px !important;
  animation-delay: .26s;
}

#root > .fixed.inset-0.overflow-y-auto input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  border-radius: 4px !important;
  accent-color: var(--pm-ink);
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center label {
  margin: 0 !important;
  color: var(--pm-muted) !important;
  font-size: clamp(9px, .72vw, 11px) !important;
  letter-spacing: .03em !important;
  line-height: 1.25 !important;
  text-transform: none;
}

@keyframes pm-minimal-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (orientation: landscape) and (max-height: 620px) and (min-width: 760px) {
  #root > .fixed.inset-0.overflow-y-auto {
    padding: 8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex {
    min-height: calc(100svh - 16px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    height: calc(100svh - 16px) !important;
    width: calc(100vw - 16px) !important;
    grid-template-columns: minmax(160px, 210px) minmax(0, 1fr) !important;
    border-radius: 12px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    padding: 16px !important;
    gap: 8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::before,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::after {
    font-size: 8px;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    font-size: clamp(30px, 5vw, 52px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p::after {
    font-size: 11px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: minmax(145px, .72fr) minmax(165px, .84fr) minmax(220px, 1fr) !important;
    gap: 8px !important;
    padding: 12px !important;
    align-content: start !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    padding: 8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto label {
    margin-bottom: 5px !important;
    font-size: 8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto input[type="text"],
  #root > .fixed.inset-0.overflow-y-auto input[type="password"] {
    height: 32px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 {
    gap: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    min-height: 28px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: 18px !important;
    height: 18px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center {
    gap: 4px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button {
    min-height: 23px !important;
    padding: 3px 4px !important;
    border-radius: 6px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button::after,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button::after {
    font-size: 8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    height: 32px !important;
    font-size: 12px !important;
  }
}

@media (orientation: landscape) and (min-width: 781px) and (max-width: 1100px) and (min-height: 621px) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    padding: 22px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    font-size: clamp(42px, 6.5vw, 68px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: minmax(230px, .88fr) minmax(0, 1.12fr) !important;
    grid-template-rows: auto auto auto auto auto auto !important;
    gap: 12px !important;
    padding: 18px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2) {
    grid-column: 1 !important;
    grid-row: 2 / span 5 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    grid-column: 2 !important;
    grid-row: 4 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    grid-column: 2 !important;
    grid-row: 5 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    grid-column: 2 !important;
    grid-row: 6 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 780px), (orientation: portrait) {
  #root > .fixed.inset-0.overflow-y-auto {
    padding: 8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex {
    min-height: calc(100svh - 16px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    width: calc(100vw - 16px) !important;
    height: calc(100svh - 16px) !important;
    max-height: calc(100svh - 16px) !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 6px 10px !important;
    padding: 10px 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--pm-line) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::before,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::after {
    display: none;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    align-self: end;
    font-size: clamp(27px, 9vw, 42px) !important;
    line-height: .86 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p {
    grid-column: 1;
    grid-row: 2;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p::after {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    white-space: nowrap;
    padding: 6px 8px !important;
    font-size: 10px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    align-content: start !important;
    gap: 7px !important;
    padding: 10px 12px 12px !important;
    overflow: auto !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5),
  #root > .fixed.inset-0.overflow-y-auto button.w-full,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    padding: 9px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto label {
    margin-bottom: 5px !important;
    font-size: 8.5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto input[type="text"],
  #root > .fixed.inset-0.overflow-y-auto input[type="password"] {
    height: 36px !important;
    font-size: 13px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 {
    gap: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    aspect-ratio: auto !important;
    height: 30px !important;
    min-height: 30px !important;
    border-radius: 8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: 20px !important;
    height: 20px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) .flex {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) .flex {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center {
    gap: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button {
    min-height: 22px !important;
    padding: 3px 4px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button::after,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button::after {
    font-size: 7.8px !important;
    line-height: 1.05;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    height: 36px !important;
    margin-top: 0 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    margin: 0 !important;
    min-height: 18px !important;
  }
}

@media (max-width: 380px) and (max-height: 700px) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    padding: 8px 10px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    font-size: clamp(23px, 7.2vw, 32px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p::after {
    font-size: 8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex {
    font-size: 8px !important;
    padding: 4px 6px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    gap: 4px !important;
    padding: 7px 10px 8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    padding: 6px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto label {
    margin-bottom: 3px !important;
    font-size: 7.5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto input[type="text"],
  #root > .fixed.inset-0.overflow-y-auto input[type="password"] {
    height: 30px !important;
    font-size: 12px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    aspect-ratio: auto !important;
    height: 24px !important;
    min-height: 25px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: 16px !important;
    height: 16px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button {
    min-height: 20px !important;
    padding: 2px 3px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button::after,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button::after {
    font-size: 6.8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    height: 30px !important;
    font-size: 10.5px !important;
  }
}

/* Dense phone composition: keep the whole login usable without vertical clipping. */
@media (max-width: 430px) and (orientation: portrait) {
  #root > .fixed.inset-0.overflow-y-auto {
    padding: 6px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex {
    min-height: calc(100svh - 12px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    width: calc(100vw - 12px) !important;
    height: calc(100svh - 12px) !important;
    max-height: calc(100svh - 12px) !important;
    border-radius: 12px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    gap: 6px !important;
    padding: 8px 10px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    grid-row: 1 !important;
    font-size: clamp(24px, 7.4vw, 34px) !important;
    line-height: .86 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p {
    display: none !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex {
    grid-row: 1 !important;
    padding: 4px 6px !important;
    font-size: 8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto auto auto auto !important;
    gap: 5px !important;
    padding: 7px 9px 8px !important;
    overflow: hidden !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2) {
    grid-column: 1 !important;
    grid-row: 2 / span 2 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    grid-column: 1 / -1 !important;
    grid-row: 5 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    grid-column: 1 / -1 !important;
    grid-row: 6 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    padding: 6px !important;
    border-radius: 9px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto label {
    margin-bottom: 3px !important;
    font-size: 7.5px !important;
    letter-spacing: .055em !important;
  }

  #root > .fixed.inset-0.overflow-y-auto input[type="text"],
  #root > .fixed.inset-0.overflow-y-auto input[type="password"] {
    height: 30px !important;
    padding-inline: 10px !important;
    font-size: 12px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 {
    gap: 4px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    height: 23px !important;
    min-height: 23px !important;
    border-radius: 7px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button::after {
    right: 4px !important;
    bottom: 3px !important;
    font-size: 6.2px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: 15px !important;
    height: 15px !important;
    border-radius: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center {
    gap: 4px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) .flex,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) .flex {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button {
    min-height: 19px !important;
    padding: 2px 3px !important;
    border-radius: 6px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button::after,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button::after {
    font-size: 6.4px !important;
    line-height: 1 !important;
    white-space: nowrap;
    text-wrap: nowrap;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    height: 30px !important;
    min-height: 30px !important;
    border-radius: 6px !important;
    font-size: 10.5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto input[type="checkbox"] {
    width: 13px !important;
    height: 13px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    min-height: 16px !important;
    gap: 6px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center label {
    font-size: 7px !important;
    line-height: 1.1 !important;
  }
}

@media (max-width: 370px) and (orientation: portrait) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    padding: 7px 9px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    font-size: clamp(22px, 7vw, 30px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    gap: 4px !important;
    padding: 6px 8px 7px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    padding: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button::after,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button::after {
    font-size: 5.8px !important;
  }
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p {
  justify-self: stretch !important;
  max-width: none !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p::after {
  width: min(100%, 18rem);
  max-width: 100%;
  text-wrap: pretty;
}

@media (max-width: 430px) and (orientation: portrait) {
  #root > .fixed.inset-0.overflow-y-auto {
    overflow: auto !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex {
    min-height: calc(100svh - 12px) !important;
    align-items: center !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100svh - 12px) !important;
    overflow: auto !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    padding: 9px 10px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    gap: 6px !important;
    padding: 8px 10px 10px !important;
    overflow: visible !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5),
  #root > .fixed.inset-0.overflow-y-auto button.w-full,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    padding: 7px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    height: 24px !important;
    min-height: 24px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button {
    min-height: 24px !important;
    padding: 3px 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button::after,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button::after {
    font-size: 7px !important;
    line-height: 1.05 !important;
    white-space: normal !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    text-wrap: balance;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) .flex,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) .flex {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex button {
    min-height: 30px !important;
  }
}

/* v1 redesign-existing-projects pass: remove AI-gradient fingerprints and improve states. */
#root > .fixed.inset-0.overflow-y-auto {
  --pm-font-ui: "Geist", "Satoshi", "Aptos", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  scroll-behavior: smooth;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::before {
  content: "Bahasa Melayu - Kuala Lumpur - Dunia terbuka";
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--pm-ink) !important;
  color: var(--pm-ink) !important;
  text-shadow: none !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1) > label,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2) > label,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) > label,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) > label,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) > label {
  position: relative;
  display: block !important;
  margin: 0 0 8px !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1) > label::after,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2) > label::after,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) > label::after,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) > label::after,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) > label::after {
  display: block;
  color: #6f6a60;
  font-family: var(--pm-font-ui);
  font-size: clamp(9px, .78vw, 12px);
  font-weight: 780;
  letter-spacing: .015em;
  line-height: 1.2;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1) > label::after { content: "Nama watak"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2) > label::after { content: "Pilih watak"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) > label::after { content: "Haiwan peliharaan"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) > label::after { content: "Aksesori pilihan"; }
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) > label::after { content: "Pakaian pilihan"; }

#root > .fixed.inset-0.overflow-y-auto input:focus-visible,
#root > .fixed.inset-0.overflow-y-auto button:focus-visible,
#root > .fixed.inset-0.overflow-y-auto [role="button"]:focus-visible {
  outline: 2px solid var(--pm-ink) !important;
  outline-offset: 2px !important;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button,
#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
#root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 430px) and (orientation: portrait) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1) > label,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2) > label,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) > label,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) > label,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) > label {
    margin-bottom: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1) > label::after,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2) > label::after,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) > label::after,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) > label::after,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) > label::after {
    font-size: 8px;
  }
}

/* v1 high-end-visual-design pass: editorial luxury with double-bezel depth. */
#root > .fixed.inset-0.overflow-y-auto {
  --pm-canvas: #f5f1e8;
  --pm-ink: #171614;
  --pm-muted: #71695d;
  --pm-surface: #fffdf8;
  --pm-tray: #ebe3d4;
  --pm-line: rgba(65, 53, 34, .105);
  --pm-focus: #2d2a24;
  --pm-font-ui: "Geist", "Satoshi", "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(120% 85% at 15% 0%, rgba(255, 255, 255, .86), transparent 58%),
    radial-gradient(90% 75% at 85% 105%, rgba(213, 196, 164, .34), transparent 64%),
    var(--pm-canvas) !important;
}

#root > .fixed.inset-0.overflow-y-auto::before {
  opacity: .18;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(47, 38, 22, .13) 1px, transparent 0),
    linear-gradient(rgba(47, 38, 22, .03) 1px, transparent 1px);
  background-size: 22px 22px, 44px 44px;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
  border: 0 !important;
  border-radius: clamp(18px, 2.2vw, 30px) !important;
  padding: clamp(5px, .55vw, 9px) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(218, 204, 177, .48)),
    var(--pm-tray) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .82),
    inset 0 -1px 0 rgba(72, 59, 37, .055),
    0 28px 80px rgba(80, 66, 43, .12) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
  border: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 252, 245, .88)),
    var(--pm-surface) !important;
  box-shadow:
    inset 0 0 0 1px rgba(65, 53, 34, .075),
    inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
  border-radius: calc(clamp(18px, 2.2vw, 30px) - 7px) 0 0 calc(clamp(18px, 2.2vw, 30px) - 7px) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
  border-radius: 0 calc(clamp(18px, 2.2vw, 30px) - 7px) calc(clamp(18px, 2.2vw, 30px) - 7px) 0 !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::before {
  border: 0;
  background: rgba(235, 227, 212, .72);
  box-shadow:
    inset 0 0 0 1px rgba(65, 53, 34, .09),
    inset 0 1px 0 rgba(255, 255, 255, .85);
  border-radius: 999px;
  color: #615743;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
  font-family: "PP Editorial New", "IvyPresto Display", "Playfair Display", Georgia, Cambria, serif !important;
  font-size: clamp(70px, 7.2vw, 116px) !important;
  font-weight: 520 !important;
  letter-spacing: -.072em !important;
  line-height: .78 !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p::after {
  color: #4f493f;
  font-size: clamp(14px, 1vw, 17px) !important;
  line-height: 1.55 !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex {
  border: 0 !important;
  background: #edf3ec !important;
  box-shadow:
    inset 0 0 0 1px rgba(52, 101, 56, .16),
    inset 0 1px 0 rgba(255, 255, 255, .86) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
  border: 0 !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(253, 249, 241, .92)),
    var(--pm-surface) !important;
  box-shadow:
    inset 0 0 0 1px rgba(65, 53, 34, .085),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 14px 38px rgba(83, 67, 41, .06) !important;
  transition: transform .72s cubic-bezier(.32, .72, 0, 1), box-shadow .72s cubic-bezier(.32, .72, 0, 1);
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2):hover,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3):hover,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4):hover,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5):hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(65, 53, 34, .11),
    inset 0 1px 0 rgba(255, 255, 255, .94),
    0 18px 48px rgba(83, 67, 41, .085) !important;
}

#root > .fixed.inset-0.overflow-y-auto input[type="text"],
#root > .fixed.inset-0.overflow-y-auto input[type="password"] {
  border: 0 !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, #fffdf9, #fbf6ec) !important;
  box-shadow:
    inset 0 0 0 1px rgba(65, 53, 34, .105),
    inset 0 2px 3px rgba(89, 72, 41, .035) !important;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button,
#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
#root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button {
  border: 0 !important;
  background:
    linear-gradient(180deg, #fffefb, #f7f1e7) !important;
  box-shadow:
    inset 0 0 0 1px rgba(65, 53, 34, .095),
    inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  transition:
    transform .62s cubic-bezier(.32, .72, 0, 1),
    box-shadow .62s cubic-bezier(.32, .72, 0, 1),
    background-color .62s cubic-bezier(.32, .72, 0, 1);
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button:hover,
#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button:hover,
#root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button:hover {
  transform: translateY(-1px);
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button.border-blue-500,
#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button.border-blue-500,
#root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button.border-blue-500 {
  background:
    linear-gradient(180deg, #fffefb, #f2eadb) !important;
  box-shadow:
    inset 0 0 0 2px rgba(23, 22, 20, .76),
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 10px 28px rgba(52, 42, 25, .09) !important;
}

#root > .fixed.inset-0.overflow-y-auto button.w-full {
  position: relative;
  border: 0 !important;
  border-radius: 999px !important;
  background: #171614 !important;
  color: #fffdf8 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 18px 40px rgba(55, 44, 26, .16) !important;
  transition:
    transform .72s cubic-bezier(.32, .72, 0, 1),
    box-shadow .72s cubic-bezier(.32, .72, 0, 1),
    background-color .72s cubic-bezier(.32, .72, 0, 1) !important;
}

#root > .fixed.inset-0.overflow-y-auto button.w-full::after {
  content: ">";
  position: absolute;
  right: 9px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #171614;
  background: #fffdf8;
  font-size: 14px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform .72s cubic-bezier(.32, .72, 0, 1);
}

#root > .fixed.inset-0.overflow-y-auto button.w-full:not(:disabled):hover {
  background: #292722 !important;
  transform: translateY(-1px);
}

#root > .fixed.inset-0.overflow-y-auto button.w-full:not(:disabled):hover::after {
  transform: translate(2px, calc(-50% - 1px));
}

#root > .fixed.inset-0.overflow-y-auto button.w-full:disabled::after {
  opacity: .45;
}

#root > .fixed.inset-0.overflow-y-auto input:focus-visible,
#root > .fixed.inset-0.overflow-y-auto button:focus-visible,
#root > .fixed.inset-0.overflow-y-auto [role="button"]:focus-visible {
  outline: 2px solid var(--pm-focus) !important;
  outline-offset: 3px !important;
}

@media (prefers-reduced-motion: no-preference) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    animation: pm-highend-rise .9s cubic-bezier(.32, .72, 0, 1) both;
  }
}

@keyframes pm-highend-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 780px), (orientation: portrait) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    padding: 4px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    border-radius: 14px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    font-size: clamp(26px, 7.2vw, 40px) !important;
    letter-spacing: -.05em !important;
    line-height: .9 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full::after {
    width: 22px;
    height: 22px;
    right: 6px;
    font-size: 11px;
  }
}

/* v1 gpt-taste desktop fit fix: keep the editorial rail readable on wide Chrome viewports. */
@media (min-width: 1180px) and (orientation: landscape) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    grid-template-columns: clamp(360px, 23.5vw, 440px) minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    overflow: hidden !important;
    padding-inline: clamp(28px, 2.5vw, 46px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::before {
    max-width: min(100%, 22rem) !important;
    white-space: normal !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    max-width: 100% !important;
    font-size: clamp(78px, 5.85vw, 112px) !important;
    letter-spacing: -.072em !important;
    transform: none !important;
    overflow-wrap: normal !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1::after {
    display: block;
    width: .78em;
    height: .23em;
    margin: .22em 0 0 .08em;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: minmax(245px, .78fr) minmax(275px, .9fr) minmax(410px, 1.24fr) !important;
    gap: clamp(14px, 1.15vw, 22px) !important;
    padding-inline: clamp(26px, 2.5vw, 48px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    margin-top: clamp(8px, 1vh, 14px) !important;
  }
}

@media (min-width: 781px) and (max-width: 1179px) and (orientation: landscape) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    max-width: 100% !important;
    font-size: clamp(52px, 6vw, 78px) !important;
    transform: none !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1::after {
    display: none;
  }
}

@media (min-width: 781px) and (max-width: 980px) and (orientation: landscape) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    grid-template-columns: clamp(216px, 30vw, 258px) minmax(0, 1fr) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: minmax(156px, .82fr) minmax(132px, .7fr) minmax(178px, 1fr) !important;
    grid-template-rows: auto auto auto auto auto !important;
    gap: 7px !important;
    align-content: start !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2) {
    grid-column: 1 !important;
    grid-row: 2 / span 4 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) {
    grid-column: 3 !important;
    grid-row: 2 / span 4 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    grid-column: 2 !important;
    grid-row: 4 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    grid-column: 2 !important;
    grid-row: 5 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    padding: 8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 {
    gap: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    min-height: 38px !important;
    border-radius: 10px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: 20px !important;
    height: 20px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center {
    gap: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex.flex-wrap.justify-center {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button {
    min-height: 21px !important;
    padding: 3px 4px !important;
    font-size: 7.4px !important;
    line-height: 1 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto label {
    font-size: 8.5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    min-height: 30px !important;
    font-size: 11px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center label {
    font-size: 8px !important;
    line-height: 1.05 !important;
  }
}

@media (max-width: 430px) and (orientation: portrait) {
  .pm-character-preview {
    display: grid !important;
    width: min(34vw, 124px) !important;
    min-height: 68px !important;
  }
}

/* Final portrait hard override: no clipped cards, no horizontal scroll on phones. */
@media (max-width: 780px), (orientation: portrait) {
  #root > .fixed.inset-0.overflow-y-auto {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex {
    min-height: 100svh !important;
    align-items: stretch !important;
    padding: clamp(8px, 2.2vw, 14px) !important;
    overflow-x: hidden !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    width: calc(100vw - clamp(16px, 4.4vw, 28px)) !important;
    max-width: calc(100vw - clamp(16px, 4.4vw, 28px)) !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: calc(100svh - clamp(16px, 4.4vw, 28px)) !important;
    overflow: hidden !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(88px, 124px) !important;
    grid-template-rows: auto auto !important;
    gap: 8px 10px !important;
    min-height: 0 !important;
    padding: 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--pm-line, rgba(42, 36, 25, .12)) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::before,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::after {
    display: none !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(30px, 9vw, 46px) !important;
    line-height: .94 !important;
    letter-spacing: -.045em !important;
    text-wrap: balance !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    justify-self: end !important;
    max-width: 100% !important;
    padding: 6px 8px !important;
    font-size: 9px !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .pm-character-preview {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: grid !important;
    justify-self: end !important;
    grid-template-columns: 1fr !important;
    width: min(100%, 124px) !important;
    min-height: 66px !important;
    padding: 6px !important;
    border-radius: 13px !important;
  }

  .pm-preview-copy {
    display: none !important;
  }

  .pm-avatar-stage {
    min-height: 54px !important;
  }

  .pm-real-character {
    bottom: -14px !important;
    transform: translateX(-50%) scale(.43) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: none !important;
    grid-auto-flow: row !important;
    gap: 10px !important;
    align-content: start !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    padding: 12px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5),
  #root > .fixed.inset-0.overflow-y-auto button.w-full,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto input[type="text"],
  #root > .fixed.inset-0.overflow-y-auto input[type="password"] {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 40px !important;
    font-size: 13px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 {
    width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    min-width: 0 !important;
    min-height: 40px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: 20px !important;
    height: 20px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex.flex-wrap.justify-center {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button {
    min-width: 0 !important;
    min-height: 30px !important;
    padding: 5px 6px !important;
    font-size: 8px !important;
    line-height: 1.05 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    min-height: 38px !important;
    margin-top: 0 !important;
  }
}

@media (min-width: 1280px) and (max-width: 1499px) and (orientation: landscape) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: minmax(210px, .76fr) minmax(230px, .86fr) minmax(300px, 1fr) !important;
    gap: 12px !important;
    padding-inline: 22px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    padding: 12px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button {
    min-width: 0 !important;
    padding-inline: 8px !important;
    font-size: clamp(9px, .72vw, 11px) !important;
  }
}

@media (min-width: 1180px) and (max-width: 1279px) and (orientation: landscape) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: minmax(210px, .82fr) minmax(0, 1.18fr) !important;
    grid-template-rows: auto auto auto auto auto auto !important;
    gap: 12px !important;
    padding-inline: 22px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2) {
    grid-column: 1 !important;
    grid-row: 2 / span 5 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    grid-column: 2 !important;
    grid-row: 4 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    grid-column: 2 !important;
    grid-row: 5 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    grid-column: 2 !important;
    grid-row: 6 !important;
    justify-content: flex-start !important;
  }
}

/* v1 brandkit login identity pass: island compass, KL origin, and premium game-system details. */
#root > .fixed.inset-0.overflow-y-auto {
  --pm-brand-paper: #fffaf0;
  --pm-brand-ink: #11100d;
  --pm-brand-charcoal: #23201a;
  --pm-brand-sea: #0e7c86;
  --pm-brand-gold: #b7812f;
  --pm-brand-coral: #e85d4f;
  --pm-brand-moss: #3d6f4f;
  --pm-brand-line: rgba(42, 36, 25, .12);
  --pm-brand-soft: rgba(183, 129, 47, .12);
  color: var(--pm-brand-charcoal) !important;
  background:
    linear-gradient(90deg, rgba(14, 124, 134, .07) 0 1px, transparent 1px 80px),
    linear-gradient(0deg, rgba(183, 129, 47, .055) 0 1px, transparent 1px 80px),
    linear-gradient(135deg, #fbf6eb 0%, #fffdf7 45%, #efe6d5 100%) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
  border: 1px solid rgba(44, 36, 22, .08) !important;
  background:
    linear-gradient(90deg, rgba(14, 124, 134, .035), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 248, 236, .9)) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div::before {
  background:
    linear-gradient(90deg, rgba(183, 129, 47, .11), transparent 28%),
    linear-gradient(90deg, rgba(17, 16, 13, .045) 0 1px, transparent 1px 96px),
    linear-gradient(0deg, rgba(17, 16, 13, .035) 0 1px, transparent 1px 96px) !important;
  opacity: .7;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::before {
  content: "PM / Kuala Lumpur / Dunia Terbuka" !important;
  color: #4d432f !important;
  background:
    linear-gradient(90deg, rgba(183, 129, 47, .16), rgba(14, 124, 134, .08)),
    #ede3cf !important;
  box-shadow:
    inset 0 0 0 1px rgba(44, 36, 22, .09),
    inset 0 1px 0 rgba(255, 255, 255, .86) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
  color: var(--pm-brand-ink) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1::after {
  content: "PM" !important;
  width: clamp(58px, 6.4vw, 96px) !important;
  height: clamp(28px, 2.4vw, 38px) !important;
  display: grid !important;
  place-items: center !important;
  margin: clamp(12px, 1.6vw, 20px) 0 0 .04em !important;
  border: 1px solid rgba(17, 16, 13, .18);
  border-radius: 999px;
  color: var(--pm-brand-paper);
  font-family: var(--pm-font-ui);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 36%),
    linear-gradient(135deg, var(--pm-brand-ink), #2c261b 56%, var(--pm-brand-sea)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    0 16px 38px rgba(43, 36, 23, .16);
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p::after {
  content: "Cipta watak, pilih gaya, dan mula cerita Pulau Marvis." !important;
  color: #4c463c !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex {
  color: #23523c !important;
  background:
    linear-gradient(90deg, rgba(14, 124, 134, .12), rgba(61, 111, 79, .12)),
    #edf4ec !important;
  box-shadow:
    inset 0 0 0 1px rgba(61, 111, 79, .18),
    inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::after {
  content: "Brand system 01 / Pulau Marvis" !important;
  color: rgba(36, 31, 23, .64) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1)::before {
  content: "Watak anda bermula di sini." !important;
  display: block;
  margin-bottom: 8px;
  color: rgba(76, 66, 47, .78);
  font-family: var(--pm-font-ui);
  font-size: clamp(10px, .72vw, 12px);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#root > .fixed.inset-0.overflow-y-auto input[type="text"],
#root > .fixed.inset-0.overflow-y-auto input[type="password"] {
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, #fffdf8, #f8f0e1) !important;
  box-shadow:
    inset 0 0 0 1px rgba(44, 36, 22, .12),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    0 8px 24px rgba(58, 46, 26, .035) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
  background:
    linear-gradient(180deg, rgba(255, 255, 253, .96), rgba(248, 240, 225, .92)),
    var(--pm-brand-paper) !important;
  box-shadow:
    inset 0 0 0 1px rgba(44, 36, 22, .095),
    inset 0 1px 0 rgba(255, 255, 255, .94),
    0 18px 44px rgba(67, 52, 27, .065) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2)::before,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3)::before,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4)::before,
#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5)::before {
  background: linear-gradient(90deg, var(--pm-brand-ink), var(--pm-brand-gold) 56%, var(--pm-brand-sea)) !important;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button.border-blue-500,
#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button.border-blue-500,
#root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button.border-blue-500 {
  background:
    linear-gradient(180deg, #fffaf0, #f3e5c9) !important;
  box-shadow:
    inset 0 0 0 2px var(--pm-brand-ink),
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 10px 24px rgba(183, 129, 47, .12) !important;
}

#root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button.border-blue-500 {
  color: var(--pm-brand-ink) !important;
}

#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button.border-blue-500,
#root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button.border-blue-500 {
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

#root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button.border-blue-500::after,
#root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button.border-blue-500::after {
  color: var(--pm-brand-ink) !important;
  font-weight: 850 !important;
}

#root > .fixed.inset-0.overflow-y-auto button.w-full {
  background:
    linear-gradient(135deg, var(--pm-brand-ink), #292317 62%, #0b6570) !important;
  color: var(--pm-brand-paper) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 18px 42px rgba(14, 124, 134, .12),
    0 12px 34px rgba(43, 34, 20, .14) !important;
}

#root > .fixed.inset-0.overflow-y-auto button.w-full:disabled {
  background:
    linear-gradient(135deg, #d8d0c1, #cfc6b5) !important;
  color: rgba(54, 47, 36, .58) !important;
}

#root > .fixed.inset-0.overflow-y-auto button.w-full::after {
  color: var(--pm-brand-ink);
  background: linear-gradient(180deg, #fff9eb, #ead7b2);
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-wrap: balance;
  line-height: 1.08 !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button * {
  white-space: inherit !important;
  overflow-wrap: inherit !important;
  line-height: inherit !important;
}

@media (min-width: 1280px) and (max-width: 1499px) and (orientation: landscape) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button {
    min-height: 31px !important;
    font-size: clamp(8.5px, .66vw, 10px) !important;
    padding-inline: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button * {
    font-size: inherit !important;
  }
}

@media (max-width: 780px), (orientation: portrait) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1::after,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1)::before {
    display: none !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button {
    min-height: 30px !important;
    font-size: 8px !important;
    padding-inline: 4px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex.flex-wrap.justify-center button {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    min-height: 30px !important;
    font-size: 8px !important;
    line-height: 1.05 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) button * {
    font-size: inherit !important;
  }
}

/* v1 character preview fit pass: full-viewport login, no clipping, live 2.5D avatar preview. */
#root > .fixed.inset-0.overflow-y-auto {
  --pm-preview-skin: #d9a77f;
  --pm-preview-hair: #15171d;
  --pm-preview-accent: #ff676c;
  --pm-preview-deep: #24201b;
  --pm-preview-cloth: #1f6f86;
  overflow: hidden !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex {
  min-height: 100svh !important;
  padding: clamp(10px, 1.45vw, 24px) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
  width: calc(100vw - clamp(20px, 2.9vw, 52px)) !important;
  max-width: none !important;
  height: calc(100svh - clamp(20px, 2.9vw, 52px)) !important;
  grid-template-columns: clamp(350px, 24vw, 500px) minmax(0, 1fr) !important;
  contain: layout paint;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
  grid-template-rows: auto minmax(0, 1fr) auto auto auto minmax(34px, .32fr) !important;
  gap: clamp(10px, 1.45svh, 18px) !important;
  overflow: hidden !important;
  padding-inline: clamp(28px, 2.7vw, 54px) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::before {
  grid-row: 1 !important;
  max-width: 100% !important;
  white-space: normal !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
  grid-row: 2 !important;
  align-self: end !important;
  width: min(100%, 7.45ch) !important;
  max-width: 100% !important;
  overflow: visible !important;
  font-size: clamp(58px, 5.15vw, 100px) !important;
  letter-spacing: -.055em !important;
  line-height: .9 !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1::after {
  margin-top: clamp(10px, 1.1vw, 16px) !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p {
  grid-row: 3 !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex {
  grid-row: 4 !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::after {
  grid-row: 6 !important;
}

#root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
  grid-template-columns: minmax(245px, .72fr) minmax(275px, .86fr) minmax(420px, 1.28fr) !important;
  align-content: start !important;
  padding: clamp(18px, 2.4svh, 30px) clamp(18px, 2.4vw, 38px) !important;
}

.pm-character-preview {
  grid-row: 5 !important;
  align-self: start !important;
  display: grid;
  grid-template-columns: minmax(90px, .72fr) minmax(110px, 1fr);
  gap: clamp(10px, 1.2vw, 18px);
  width: min(100%, 390px);
  min-height: clamp(132px, 17svh, 184px);
  padding: clamp(12px, 1.4vw, 18px);
  border: 1px solid rgba(42, 36, 25, .12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 22%, rgba(14, 124, 134, .16), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 248, .94), rgba(240, 229, 209, .86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 18px 44px rgba(50, 42, 28, .08);
  overflow: hidden;
}

.pm-preview-copy {
  align-self: center;
  min-width: 0;
}

.pm-preview-kicker,
.pm-preview-copy span,
.pm-preview-copy strong {
  display: block;
  font-family: var(--pm-font-ui, ui-sans-serif, system-ui, sans-serif);
}

.pm-preview-kicker {
  color: rgba(76, 66, 47, .7);
  font-size: clamp(9px, .72vw, 11px);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.pm-preview-copy strong {
  margin-top: 7px;
  color: var(--pm-brand-ink, #11100d);
  font-size: clamp(18px, 1.55vw, 26px);
  font-weight: 900;
  line-height: .96;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-preview-copy span:last-child {
  margin-top: 8px;
  color: rgba(35, 32, 26, .68);
  font-size: clamp(10px, .82vw, 13px);
  font-weight: 750;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.pm-avatar-stage {
  --pm-preview-skin: #d9a77f;
  --pm-preview-hair: #15171d;
  --pm-preview-accent: #ff676c;
  --pm-preview-cloth: #1f6f86;
  position: relative;
  min-height: clamp(112px, 15svh, 156px);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(34, 29, 22, .18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(183, 129, 47, .09));
  overflow: hidden;
}

.pm-avatar-stage[data-character="2"] { --pm-preview-accent: #3fc3b9; --pm-preview-cloth: #245d73; --pm-preview-hair: #18232a; }
.pm-avatar-stage[data-character="3"] { --pm-preview-accent: #f3cf54; --pm-preview-cloth: #8a6122; --pm-preview-hair: #4b2a19; }
.pm-avatar-stage[data-character="4"] { --pm-preview-accent: #9edfc9; --pm-preview-cloth: #406a54; --pm-preview-hair: #211816; }
.pm-avatar-stage[data-character="5"] { --pm-preview-accent: #ce86d6; --pm-preview-cloth: #57446f; --pm-preview-hair: #2b2232; }
.pm-avatar-stage[data-character="6"] { --pm-preview-accent: #eea400; --pm-preview-cloth: #87491b; --pm-preview-hair: #1f1814; }
.pm-avatar-stage[data-character="7"] { --pm-preview-accent: #79c4df; --pm-preview-cloth: #325e84; --pm-preview-hair: #1b202c; }
.pm-avatar-stage[data-character="8"] { --pm-preview-accent: #ffa493; --pm-preview-cloth: #8a4538; --pm-preview-hair: #3b2119; }
.pm-avatar-stage[data-character="9"] { --pm-preview-accent: #9edfc9; --pm-preview-cloth: #3f7566; --pm-preview-hair: #15171d; }

.pm-avatar-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, .44), transparent 36%),
    radial-gradient(circle at 72% 20%, color-mix(in srgb, var(--pm-preview-accent) 28%, transparent), transparent 24%);
  pointer-events: none;
}

.pm-avatar-shadow {
  position: absolute;
  left: 50%;
  bottom: 13px;
  width: 76px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(30, 25, 19, .22);
  filter: blur(4px);
}

.pm-real-character {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 72px;
  height: 126px;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: pm-avatar-idle 2.8s ease-in-out infinite;
}

.pm-hair {
  position: absolute;
  left: 15px;
  top: 2px;
  z-index: 3;
  width: 44px;
  height: 36px;
  border-radius: 56% 48% 40% 42%;
  background:
    radial-gradient(circle at 27% 18%, rgba(255, 255, 255, .2), transparent 24%),
    var(--pm-preview-hair);
  box-shadow:
    -8px 10px 0 -2px var(--pm-preview-hair),
    9px 12px 0 -3px var(--pm-preview-hair);
}

.pm-face {
  position: absolute;
  left: 18px;
  top: 20px;
  z-index: 4;
  width: 38px;
  height: 43px;
  border-radius: 47% 47% 45% 45%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .48), transparent 18%),
    linear-gradient(180deg, #f5cda8, var(--pm-preview-skin));
  box-shadow:
    inset 0 -4px 0 rgba(99, 59, 34, .1),
    0 2px 0 rgba(44, 24, 16, .16);
}

.pm-eye {
  position: absolute;
  top: 18px;
  width: 4px;
  height: 6px;
  border-radius: 999px;
  background: #15120f;
}

.pm-eye-left { left: 11px; }
.pm-eye-right { right: 11px; }

.pm-mouth {
  position: absolute;
  left: 15px;
  bottom: 10px;
  width: 9px;
  height: 4px;
  border-bottom: 2px solid rgba(103, 49, 42, .58);
  border-radius: 999px;
}

.pm-neck {
  position: absolute;
  left: 30px;
  top: 58px;
  z-index: 2;
  width: 14px;
  height: 16px;
  border-radius: 6px;
  background: var(--pm-preview-skin);
}

.pm-body {
  position: absolute;
  left: 18px;
  top: 68px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 14px 14px 12px 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .28), transparent 38%),
    linear-gradient(180deg, var(--pm-preview-accent), var(--pm-preview-cloth));
  box-shadow:
    inset 0 -7px 0 rgba(0, 0, 0, .12),
    0 4px 0 rgba(23, 18, 14, .12);
}

.pm-sash {
  position: absolute;
  left: 18px;
  top: 78px;
  z-index: 3;
  width: 40px;
  height: 7px;
  transform: rotate(-18deg);
  border-radius: 999px;
  background: rgba(255, 248, 214, .92);
  box-shadow: 0 1px 0 rgba(49, 38, 20, .18);
}

.pm-arm,
.pm-leg {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
}

.pm-arm {
  top: 72px;
  width: 12px;
  height: 36px;
  background: linear-gradient(180deg, var(--pm-preview-skin), #a36c4f);
}

.pm-arm-left {
  left: 10px;
  transform: rotate(12deg);
}

.pm-arm-right {
  right: 10px;
  transform: rotate(-12deg);
}

.pm-leg {
  top: 101px;
  width: 13px;
  height: 30px;
  background: linear-gradient(180deg, #232532, #171820);
}

.pm-leg-left {
  left: 23px;
  transform: rotate(4deg);
}

.pm-leg-right {
  right: 22px;
  transform: rotate(-4deg);
}

.pm-gear {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.pm-avatar-stage[data-accessory="topi-hitam"] .pm-gear::before,
.pm-avatar-stage[data-accessory="mahkota-raja"] .pm-gear::before,
.pm-avatar-stage[data-accessory="mahkota-bunga"] .pm-gear::before,
.pm-avatar-stage[data-accessory="pita-kepala"] .pm-gear::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -1px;
  width: 32px;
  height: 16px;
  border-radius: 12px 12px 5px 5px;
  background: var(--pm-preview-deep);
  box-shadow: 0 11px 0 -6px var(--pm-preview-deep);
}

.pm-avatar-stage[data-accessory="mahkota-raja"] .pm-gear::before,
.pm-avatar-stage[data-accessory="mahkota-bunga"] .pm-gear::before {
  top: 4px;
  height: 14px;
  background:
    linear-gradient(135deg, #f8dc6e, #b7812f);
  clip-path: polygon(0 100%, 9% 28%, 28% 78%, 50% 10%, 72% 78%, 91% 28%, 100% 100%);
  box-shadow: none;
}

.pm-avatar-stage[data-accessory="pita-kepala"] .pm-gear::before {
  top: 19px;
  left: 17px;
  width: 42px;
  height: 6px;
  border-radius: 999px;
  background: var(--pm-preview-accent);
  box-shadow: none;
}

.pm-avatar-stage[data-accessory="cermin-mata"] .pm-face::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 16px;
  width: 24px;
  height: 8px;
  border: 2px solid #171717;
  border-left-width: 3px;
  border-right-width: 3px;
  border-radius: 999px;
  box-shadow: 12px 0 0 -2px transparent;
}

.pm-avatar-stage[data-accessory="aura-api"] .pm-gear::after,
.pm-avatar-stage[data-accessory="petir-thunder"] .pm-gear::after,
.pm-avatar-stage[data-accessory="bintang-pusingan"] .pm-gear::after,
.pm-avatar-stage[data-accessory="loceng-angin"] .pm-gear::after,
.pm-avatar-stage[data-accessory="rama-rama-ajaib"] .pm-gear::after,
.pm-avatar-stage[data-accessory="selendang-naga"] .pm-gear::after,
.pm-avatar-stage[data-accessory="topeng-hantu-raya"] .pm-gear::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 45px;
  width: 22px;
  height: 22px;
  border-radius: 44% 56% 58% 42%;
  background: var(--pm-preview-accent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--pm-preview-accent) 58%, transparent);
}

.pm-avatar-stage[data-outfit="jubah-wira"] .pm-body::after,
.pm-avatar-stage[data-outfit="perisai-ksatria"] .pm-body::after,
.pm-avatar-stage[data-outfit="pakaian-ninja"] .pm-body::after {
  content: "";
  position: absolute;
  inset: 5px 7px 6px;
  border-radius: 10px;
  border: 2px solid rgba(255, 248, 214, .76);
}

.pm-avatar-stage[data-outfit="pakaian-ninja"] .pm-hair {
  filter: saturate(.7) brightness(.82);
}

.pm-preview-pet {
  position: absolute;
  right: 12px;
  bottom: 18px;
  width: 30px;
  height: 24px;
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 36% 42%, rgba(255, 255, 255, .88) 0 3px, transparent 4px),
    linear-gradient(180deg, #f0c477, #9d7047);
  box-shadow: 0 10px 20px rgba(37, 28, 18, .18);
  opacity: 0;
  transform: translateY(8px) scale(.82);
  transition: opacity .24s ease, transform .24s ease;
}

.pm-avatar-stage:not([data-pet="tiada"]) .pm-preview-pet {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pm-avatar-stage[data-pet="ketam"] .pm-preview-pet {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e85d4f, #9d332f);
}

.pm-avatar-stage[data-pet="burung"] .pm-preview-pet {
  width: 28px;
  height: 30px;
  border-radius: 48% 48% 56% 56%;
  background: linear-gradient(180deg, #79c4df, #2e7187);
}

@keyframes pm-avatar-idle {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-.4deg); }
  50% { transform: translateX(-50%) translateY(-4px) rotate(.5deg); }
}

@media (min-width: 1500px) and (orientation: landscape) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: minmax(290px, .72fr) minmax(300px, .84fr) minmax(500px, 1.28fr) !important;
  }
}

@media (min-width: 1180px) and (max-width: 1399px) and (orientation: landscape) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    grid-template-columns: clamp(330px, 25vw, 380px) minmax(0, 1fr) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    font-size: clamp(56px, 4.85vw, 78px) !important;
  }

  .pm-character-preview {
    grid-template-columns: 1fr 96px;
    min-height: 126px;
  }

  .pm-real-character {
    transform: translateX(-50%) scale(.82);
  }

  .pm-preview-copy strong {
    font-size: clamp(17px, 1.3vw, 22px);
  }
}

@media (max-height: 720px) and (orientation: landscape) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    grid-template-rows: auto minmax(0, .9fr) auto auto auto minmax(20px, .18fr) !important;
    gap: 9px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    font-size: clamp(46px, 4.4vw, 70px) !important;
  }

  .pm-character-preview {
    grid-template-columns: 1fr 84px;
    min-height: 108px;
    padding: 10px;
  }

  .pm-avatar-stage {
    min-height: 88px;
  }

  .pm-real-character {
    bottom: 6px;
    transform: translateX(-50%) scale(.62);
  }

  .pm-preview-copy span:last-child {
    display: none;
  }
}

@media (max-width: 780px), (orientation: portrait) {
  #root > .fixed.inset-0.overflow-y-auto {
    overflow: auto !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex {
    min-height: 100svh !important;
    padding: clamp(8px, 2.4vw, 14px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    width: calc(100vw - clamp(16px, 4.8vw, 28px)) !important;
    height: auto !important;
    min-height: calc(100svh - clamp(16px, 4.8vw, 28px)) !important;
    grid-template-columns: 1fr !important;
    contain: layout paint;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    gap: 8px 12px !important;
    padding: 14px !important;
    overflow: visible !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::before,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::after {
    display: none !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    width: min(100%, 9ch) !important;
    font-size: clamp(31px, 9vw, 48px) !important;
    line-height: .92 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    justify-self: end !important;
    white-space: nowrap !important;
  }

  .pm-character-preview {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: end;
    grid-template-columns: 1fr;
    width: min(34vw, 132px);
    min-height: 74px;
    padding: 7px;
    border-radius: 14px;
  }

  .pm-preview-copy {
    display: none;
  }

  .pm-avatar-stage {
    min-height: 58px;
    border-radius: 12px;
  }

  .pm-avatar-shadow {
    bottom: 5px;
    width: 42px;
    height: 10px;
  }

  .pm-real-character {
    bottom: -12px;
    transform: translateX(-50%) scale(.46);
  }

  .pm-preview-pet {
    right: 6px;
    bottom: 7px;
    transform: translateY(0) scale(.72);
  }
}

@media (max-width: 430px) and (orientation: portrait) {
  .pm-character-preview {
    display: none !important;
  }
}

@media (min-width: 781px) and (max-width: 1179px) and (orientation: landscape) {
  #root > .fixed.inset-0.overflow-y-auto {
    overflow: hidden !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex {
    padding: clamp(8px, 1.8vw, 14px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    width: calc(100vw - clamp(16px, 3.6vw, 28px)) !important;
    height: calc(100svh - clamp(16px, 3.6vw, 28px)) !important;
    grid-template-columns: clamp(220px, 30vw, 270px) minmax(0, 1fr) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    grid-template-rows: auto minmax(0, .72fr) auto auto auto minmax(16px, .12fr) !important;
    gap: 7px !important;
    padding: clamp(14px, 2vw, 22px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::before {
    padding: 5px 7px !important;
    font-size: 8px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    font-size: clamp(42px, 5vw, 58px) !important;
    width: min(100%, 7.2ch) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1::after {
    display: none !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p::after {
    font-size: 12px !important;
    line-height: 1.28 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::after {
    display: none !important;
  }

  .pm-character-preview {
    grid-template-columns: minmax(0, 1fr) 78px;
    width: 100%;
    min-height: 84px;
    padding: 8px;
    gap: 7px;
    border-radius: 14px;
  }

  .pm-preview-kicker {
    font-size: 8px;
  }

  .pm-preview-copy strong {
    margin-top: 4px;
    font-size: 16px;
  }

  .pm-preview-copy span:last-child {
    margin-top: 4px;
    font-size: 9px;
    line-height: 1.15;
  }

  .pm-avatar-stage {
    min-height: 68px;
    border-radius: 12px;
  }

  .pm-avatar-shadow {
    bottom: 7px;
    width: 46px;
    height: 10px;
  }

  .pm-real-character {
    bottom: -9px;
    transform: translateX(-50%) scale(.5);
  }

  .pm-preview-pet {
    right: 5px;
    bottom: 7px;
    transform: translateY(0) scale(.7);
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: minmax(170px, .78fr) minmax(0, 1.22fr) !important;
    grid-template-rows: auto auto auto auto auto auto !important;
    gap: 8px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: clamp(10px, 1.7vw, 16px) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > * {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2) {
    grid-column: 1 !important;
    grid-row: 2 / span 5 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    grid-column: 2 !important;
    grid-row: 4 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    grid-column: 2 !important;
    grid-row: 5 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    grid-column: 2 !important;
    grid-row: 6 !important;
    justify-content: flex-start !important;
  }

  #root > .fixed.inset-0.overflow-y-auto input[type="text"],
  #root > .fixed.inset-0.overflow-y-auto input[type="password"] {
    min-height: 36px !important;
    padding-block: 8px !important;
    font-size: 13px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    padding: 9px !important;
    border-radius: 14px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 {
    gap: 6px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    min-height: 42px !important;
    border-radius: 11px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: 22px !important;
    height: 22px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex.flex-wrap.justify-center {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button {
    min-width: 0 !important;
    min-height: 24px !important;
    padding: 4px 5px !important;
    font-size: 8.5px !important;
    line-height: 1.05 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    min-height: 34px !important;
    margin-top: 0 !important;
  }
}

/* Final hard override for small landscape devices: keep the login usable in one viewport. */
@media (min-width: 781px) and (max-width: 980px) and (orientation: landscape) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: minmax(156px, .82fr) minmax(132px, .7fr) minmax(178px, 1fr) !important;
    grid-template-rows: auto auto auto auto auto !important;
    gap: 7px !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2) {
    grid-column: 1 !important;
    grid-row: 2 / span 4 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) {
    grid-column: 3 !important;
    grid-row: 2 / span 4 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5) {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto button.w-full {
    grid-column: 2 !important;
    grid-row: 4 !important;
    min-height: 30px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    grid-column: 2 !important;
    grid-row: 5 !important;
    min-height: 18px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    min-height: 38px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: 20px !important;
    height: 20px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex.flex-wrap.justify-center {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button {
    min-height: 21px !important;
    padding: 3px 4px !important;
    font-size: 7.4px !important;
    line-height: 1 !important;
  }
}

/* Absolute final UI guard: these rules must remain last. */
#root > .fixed.inset-0.overflow-y-auto,
#root > .fixed.inset-0.overflow-y-auto *,
#root > .fixed.inset-0.overflow-y-auto *::before,
#root > .fixed.inset-0.overflow-y-auto *::after {
  box-sizing: border-box !important;
}

#root > .fixed.inset-0.overflow-y-auto input[type="text"],
#root > .fixed.inset-0.overflow-y-auto input[type="password"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

@media (min-width: 1280px) and (max-width: 1499px) and (orientation: landscape) {
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    grid-template-columns: minmax(210px, .74fr) minmax(230px, .82fr) minmax(300px, 1.02fr) !important;
    overflow-x: hidden !important;
  }
}

@media (max-width: 780px), (orientation: portrait) {
  #root > .fixed.inset-0.overflow-y-auto {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex {
    width: 100% !important;
    min-height: 100svh !important;
    padding: clamp(8px, 2.2vw, 14px) !important;
    overflow-x: hidden !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    width: calc(100vw - clamp(16px, 4.4vw, 28px)) !important;
    max-width: calc(100vw - clamp(16px, 4.4vw, 28px)) !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: calc(100svh - clamp(16px, 4.4vw, 28px)) !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(88px, 124px) !important;
    grid-template-rows: auto auto !important;
    gap: 8px 10px !important;
    padding: 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--pm-line, rgba(42, 36, 25, .12)) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::before,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child p,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child::after {
    display: none !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child h1 {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(30px, 9vw, 46px) !important;
    line-height: .94 !important;
    text-wrap: balance !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:first-child .inline-flex {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    max-width: 100% !important;
    padding: 6px 8px !important;
    font-size: 9px !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .pm-character-preview {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: grid !important;
    justify-self: end !important;
    grid-template-columns: 1fr !important;
    width: min(100%, 124px) !important;
    min-height: 66px !important;
    padding: 6px !important;
  }

  .pm-preview-copy {
    display: none !important;
  }

  .pm-avatar-stage {
    min-height: 54px !important;
  }

  .pm-real-character {
    bottom: -14px !important;
    transform: translateX(-50%) scale(.43) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: none !important;
    grid-auto-flow: row !important;
    gap: 10px !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    padding: 12px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(1),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(2),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(3),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4),
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(5),
  #root > .fixed.inset-0.overflow-y-auto button.w-full,
  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > .flex.items-center.justify-center {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 {
    width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button {
    min-width: 0 !important;
    min-height: 40px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .grid.grid-cols-3.gap-3 button > div {
    width: 20px !important;
    height: 20px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  #root > .fixed.inset-0.overflow-y-auto > .relative.z-10.flex > div > div:nth-child(2) > div:nth-child(4) .flex.flex-wrap.justify-center {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #root > .fixed.inset-0.overflow-y-auto .flex.flex-wrap.justify-center button,
  #root > .fixed.inset-0.overflow-y-auto .flex.gap-2.justify-center button {
    min-width: 0 !important;
    min-height: 30px !important;
    padding: 5px 6px !important;
    font-size: 8px !important;
    line-height: 1.05 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}
