/* Native2032 menu on LD960x540. The palette, font, wrapping and footer match the captured frames. */
#npcDialog[data-special-city-dialog]{position:fixed;inset:calc(50% - 19px * var(--special-npc-scale,1)) auto auto 50%;margin:0;width:450px;max-width:none;max-height:none;height:auto;min-height:0;padding:8px;border:2px ridge #9cb5ab;border-radius:0;background:#083031;transform:translate(-50%,-50%) scale(var(--special-npc-scale,1));transform-origin:center;overflow:visible;box-shadow:none}
#npcDialog[data-special-city-dialog]::backdrop{background:transparent}
#npcDialog[data-special-city-dialog] header{display:none}
#npcDialog[data-special-city-dialog] #dialogText{flex:none;min-height:0;max-height:none;padding:0 2px;overflow:visible;color:#eee;font:28.5px/28.5px LDDialog,Arial,sans-serif;letter-spacing:0;text-shadow:1px 1px #000}
#npcDialog[data-special-city-dialog] #dialogText p{margin:0;white-space:pre-line;text-indent:28px;word-break:break-all;line-break:anywhere;overflow-wrap:anywhere}
#npcDialog[data-special-city-dialog] #dialogChoices{display:flex;flex-direction:column;flex:none;min-height:0;max-height:none;gap:0;margin:10px 0 2px;padding:0;overflow:visible}
#npcDialog[data-special-city-dialog] #dialogChoices button{display:flex;align-items:center;gap:3px;flex:none;width:100%;height:60px;min-height:60px;padding:8px 2px;border:0;border-radius:0;background:transparent;color:#e6e1b5;font:28.5px/30px LDDialog,Arial,sans-serif;text-shadow:1px 1px #000;text-align:left;letter-spacing:0;overflow:hidden}
#npcDialog[data-special-city-dialog] #dialogChoices button.selected{background:#fff79c;color:#e6e1b5}
#npcDialog[data-special-city-dialog] .npc-key{flex:none;align-self:center;color:#e72416;border:1px solid #d8b535;background:#ffec79;font:16px/18px LDDialog,Arial,sans-serif;text-shadow:none}
#npcDialog[data-special-city-dialog] .game-dialog-actions{display:flex;flex:none;justify-content:flex-start;gap:0;margin:0;padding:0;border:0;background:transparent}
#npcDialog[data-special-city-dialog] .game-dialog-actions button{display:block;flex:none;height:60px;min-height:60px;margin:0;padding:3px;border:3px ridge #7b9592;border-radius:0;background:#293c42;color:#e6e9e0;font:28px/32px LDDialog,Arial,sans-serif;text-shadow:1px 1px #000;overflow:hidden;letter-spacing:0}
#npcDialog[data-special-city-dialog] #confirmNpc,#npcDialog[data-special-city-dialog] #closeNpc{width:90px}
#npcDialog[data-special-city-dialog] #npcUp,#npcDialog[data-special-city-dialog] #npcDown{width:74px}
#npcDialog[data-special-city-dialog] #npcUp{margin-left:40px}
#npcDialog[data-special-city-dialog] #npcDown{margin-left:10px}
#npcDialog[data-special-city-dialog] #closeNpc{margin-left:auto}
#npcDialog[data-special-city-dialog] .npc-choice-text,#npcDialog[data-special-city-dialog] .special-npc-footer-text{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-align:left}
#npcDialog[data-special-city-dialog] .special-npc-footer-text{width:100%}
#npcDialog[data-special-city-dialog] .npc-choice-text>span,#npcDialog[data-special-city-dialog] .special-npc-footer-text>span{display:inline-block;width:max-content;min-width:100%;white-space:nowrap;transform:translateX(0);animation:none}
#npcDialog[data-special-city-dialog] #dialogChoices .npc-choice-text.special-npc-overflow>span,#npcDialog[data-special-city-dialog] .special-npc-footer-text.special-npc-overflow>span{animation:special-npc-scroll var(--special-npc-text-duration,20s) linear var(--special-npc-text-delay,0s) infinite}
@keyframes special-npc-scroll{from{transform:translateX(var(--special-npc-text-window))}to{transform:translateX(calc(-1 * var(--special-npc-text-width)))}}
@media(prefers-reduced-motion:reduce){#npcDialog[data-special-city-dialog] .special-npc-overflow{overflow-x:auto;scrollbar-width:none}#npcDialog[data-special-city-dialog] #dialogChoices .npc-choice-text.special-npc-overflow>span,#npcDialog[data-special-city-dialog] .special-npc-footer-text.special-npc-overflow>span{animation:none}}

#npcDialog[data-special-city-dialog]:not([data-special-city-source="100132"]) #dialogText span{text-shadow:1px 1px #183a3b}
#npcDialog[data-special-city-dialog]:not([data-special-city-source="100132"]):not([data-festival-city-dialog]):not([data-mount-equipment-dialog]):not([data-city-six-dialog]) #dialogText span{color:#e4e8df!important}
#npcDialog[data-special-city-dialog] button:focus{outline:none}
#npcDialog[data-special-city-source="100137"] #dialogChoices{max-height:240px;overflow-y:auto;scrollbar-width:none}
#npcDialog[data-special-city-source="100127"] #dialogChoices{max-height:240px;overflow-y:auto;scrollbar-width:none}
#npcDialog[data-mount-equipment-dialog] #dialogChoices{max-height:240px;overflow-y:auto;scrollbar-width:none}
#npcDialog[data-city-six-dialog] #dialogChoices{max-height:240px;overflow-y:auto;scrollbar-width:none}

/* Hoàng Đạo Bà: native2032 pages show four60px rows, then scroll to the remaining choices.
   Keep the source dye/material colors; these spans include cyan, red, orange and yellow. */
#npcDialog[data-special-city-source="100132"] #dialogChoices{max-height:240px;overflow-y:auto;scrollbar-width:none}
#npcDialog[data-special-city-source="100132"] #dialogText span{text-shadow:1px 1px #183a3b}

/* Both observed palace y-quan actors use the same native dialogue; map binding is set by the controller. */
#npcDialog[data-palace-medic-dialog]{background:#083031}

/* Sứ giả 2500/9000/9003: u9.ui is360x360 at the observed1.5native scale.
   The body anchor follows native reflow; confirm is a visible no-op here. */
#npcInformation[data-festival-information]{position:fixed;inset:0 auto auto 50%;margin:0;padding:0;width:540px;height:540px;max-width:none;max-height:none;min-height:0;box-sizing:border-box;border:2px solid #83a8a2;background:#083031;overflow:visible;transform:translateX(-50%) scale(var(--festival-information-scale,1));transform-origin:top center}
#npcInformation[data-festival-information]::backdrop{background:transparent}
#npcInformation[data-festival-information] header{display:flex;align-items:center;justify-content:center;flex:none;height:34px;min-height:34px;margin:0;padding:0;border:0;background:#6baca8 url('./native/apk-title-cloud.png') repeat-x center}
#npcInformation[data-festival-information] h2{margin:0;padding:0;font:28.5px/34px LDDialog,Arial,sans-serif;color:#ecefe6;text-shadow:1px 2px #49675f;white-space:nowrap}
#npcInformation[data-festival-information] h2::before,#npcInformation[data-festival-information] h2::after{content:'※'}
#npcInformation[data-festival-information] #npcInformationText{position:absolute;left:13px;top:98px;width:510px;max-height:420px;box-sizing:border-box;margin:0;padding:0;overflow:auto;scrollbar-width:none;font:28.5px/28.5px LDDialog,Arial,sans-serif;letter-spacing:0;white-space:pre-wrap;word-break:break-all;overflow-wrap:anywhere;text-shadow:1px 1px #183a3b}
#npcInformation[data-festival-information]>.game-dialog-actions{position:absolute;left:658px;top:238px;width:81px;height:201px;margin:0;padding:0;border:0;background:transparent;display:block;pointer-events:none}
#npcInformation[data-festival-information]>.game-dialog-actions button{position:absolute;left:0;width:81px;height:81px;min-height:81px;margin:0;padding:0;border:0;border-radius:50%;background-color:transparent;background-position:center;background-size:contain;background-repeat:no-repeat;color:transparent;font-size:0;text-shadow:none;pointer-events:auto}
#npcInformation[data-festival-information] #confirmFestivalInformation{top:0;background-image:url('./native/confirm.png')}
#npcInformation[data-festival-information] #closeNpcInformation{top:120px;background-image:url('./native/back.png')}
#confirmFestivalInformation[hidden]{display:none!important}
#toast.game-general-notice.city-npc-notice.festival-npc-notice{width:calc(536px * var(--city-notice-scale,1));max-height:none;padding:calc(5px * var(--city-notice-scale,1)) calc(15px * var(--city-notice-scale,1));border-width:calc(2px * var(--city-notice-scale,1));font:calc(28.5px * var(--city-notice-scale,1))/calc(28.5px * var(--city-notice-scale,1)) LDDialog,Arial,sans-serif;letter-spacing:0;text-align:left;word-break:break-all;overflow:hidden}

/* Vietnamese confirm/back labels must fit their native dialog buttons. */
#npcDialog[data-special-city-dialog] #confirmNpc,#npcDialog[data-special-city-dialog] #closeNpc{width:112px}

#npcDialog[data-special-city-dialog] #confirmNpc{width:140px}
