/* Tiên Giới Truyện 3D · V16.29.34 Royal Language Selector
   Decorates, but does not alter, the existing locale service or application data. */
.tg-royal-locale{--rl-gold:#ecc57a;--rl-gold-dark:#98703a;--rl-ink:#0b1420;position:relative;display:inline-flex;align-items:center;vertical-align:middle;flex:0 0 auto;isolation:isolate;color:#f3dba7;font-family:"Times New Roman",Georgia,"Noto Serif CJK SC","Songti SC",serif;line-height:1.2}
.tg-royal-locale .tg-royal-native{position:absolute!important;left:0!important;top:0!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%)!important;overflow:hidden!important;z-index:-1!important;appearance:none!important}
.tg-royal-locale .tg-royal-trigger{box-sizing:border-box;display:flex;align-items:center;gap:8px;min-width:156px;max-width:191px;height:42px;padding:0 11px;border:1px solid #d3a156;border-radius:999px;background:linear-gradient(175deg,#172233 0%,#101725 50%,#090e19 100%);color:#f4d492;box-shadow:inset 0 1px 0 #ffe9ad33,0 0 0 2px #89642d1c,0 3px 14px #0007;cursor:pointer;font:700 13px/1.1 "Times New Roman",Georgia,"Noto Serif CJK SC","Songti SC",serif;white-space:nowrap;transition:border-color .16s,box-shadow .16s,background .16s}
.tg-royal-locale .tg-royal-trigger:hover,.tg-royal-locale.tg-royal-open .tg-royal-trigger{border-color:#f3cb7c;box-shadow:inset 0 1px 0 #ffe9ad55,0 0 0 2px #ac844533,0 0 12px #d6a55233; background:linear-gradient(180deg,#1d2b3e,#0c1521)}
.tg-royal-locale .tg-royal-trigger:focus-visible,.tg-royal-locale .tg-royal-option:focus-visible{outline:2px solid #ffe4a3;outline-offset:3px}
.tg-royal-locale .tg-royal-globe{display:grid;place-items:center;flex-shrink:0;color:#eac279;width:20px;height:20px}
.tg-royal-locale .tg-royal-globe svg{width:20px;height:20px;display:block}
.tg-royal-locale .tg-royal-rule{width:1px;height:22px;background:linear-gradient(transparent,#b68943,transparent);flex-shrink:0}
.tg-royal-locale .tg-royal-flag-anchor{display:inline-flex;align-items:center;flex-shrink:0}
.tg-royal-locale .tg-royal-flag{width:26px;height:18px;display:block;border-radius:3px;object-fit:cover;box-shadow:0 1px 4px #0009;flex-shrink:0}
.tg-royal-locale .tg-royal-current{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:95px;flex:1;text-align:left}
.tg-royal-locale .tg-royal-caret{display:grid;place-items:center;width:15px;height:15px;flex-shrink:0;color:#e8bc69;transition:transform .18s}
.tg-royal-locale.tg-royal-open .tg-royal-caret{transform:rotate(180deg)}
.tg-royal-locale .tg-royal-caret svg{width:15px;height:15px;display:block}
.tg-royal-locale .tg-royal-menu{box-sizing:border-box;position:absolute;top:calc(100% + 11px);left:50%;transform:translateX(-50%);width:242px;max-width:calc(100vw - 28px);padding:10px;z-index:2500;border:1px solid #d6a259;border-radius:17px;background:linear-gradient(145deg,#172438,#101a29 55%,#0a111e);box-shadow:0 25px 44px #000c,inset 0 1px 0 #e8bf6b33,0 0 0 3px #9a763122;animation:tg-royal-appear .16s ease-out}
.tg-royal-locale .tg-royal-menu[hidden]{display:none!important}
.tg-royal-locale .tg-royal-menu::before{content:'◆';position:absolute;top:-11px;left:calc(50% - 10px);font-size:17px;color:#e2b56c;text-shadow:0 1px 4px #000;pointer-events:none}
.tg-royal-locale .tg-royal-menu::after{content:'✦';position:absolute;left:calc(50% - 6px);bottom:-10px;color:#deb06d;font-size:12px;text-shadow:0 1px 4px #000;pointer-events:none}
.tg-royal-locale .tg-royal-menu-title{margin:2px 3px 10px;padding:7px 3px 8px;text-align:center;color:#f0cc8d;letter-spacing:.095em;font-size:11px;font-weight:700;border-bottom:1px solid #74563185;white-space:nowrap}
.tg-royal-locale .tg-royal-option{box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-height:45px;margin:3px 0;padding:9px 11px;border:1px solid #39495e;border-radius:11px;background:linear-gradient(120deg,#1d2b3d,#131e2c);color:#f3dfb9;text-align:left;font:700 14px/1.25 "Times New Roman",Georgia,"Noto Serif CJK SC","Songti SC",serif;cursor:pointer;transition:background .15s,border-color .15s}
.tg-royal-locale .tg-royal-option:hover{background:linear-gradient(110deg,#304053,#233347);border-color:#b88d4c}
.tg-royal-locale .tg-royal-option.tg-royal-active{color:#fff0ca;border-color:#efc273;background:linear-gradient(110deg,#765426,#3c2f23 55%,#67502c);box-shadow:inset 0 1px 0 #ffe3ac33,0 0 8px #ca964638}
.tg-royal-locale .tg-royal-option-name{flex:1;min-width:0}
.tg-royal-locale .tg-royal-check{color:#fbe0a3;font-size:18px;font-weight:700}
.tg-royal-locale .tg-royal-check[hidden]{display:none}
.tg-royal-mobile{display:flex!important;width:calc(100% - 6px);margin:10px 3px 14px;justify-content:stretch;z-index:30}
.tg-royal-mobile .tg-royal-trigger{width:100%;min-width:0;max-width:none;justify-content:flex-start;height:46px}
.tg-royal-mobile .tg-royal-menu{left:0;right:auto;transform:none;width:min(265px,100%)}
.tg-royal-mobile .tg-royal-menu::before{left:24px}
@media(min-width:1161px) and (max-width:1390px){.site-header .tg-royal-desktop .tg-royal-trigger{min-width:146px;padding:0 8px;gap:6px;font-size:12px}.site-header .tg-royal-desktop .tg-royal-flag{width:23px;height:16px}}
@media(max-width:1160px){.site-header .tg-royal-desktop{display:none!important}}
@media(prefers-reduced-motion:reduce){.tg-royal-locale *{animation:none!important;transition:none!important}}
@keyframes tg-royal-appear{from{opacity:0;transform:translate(-50%,-4px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:1160px){@keyframes tg-royal-appear{from{opacity:0}to{opacity:1}}}
/* Ensure the open dropdown floats above the nav row rather than beneath it. */
.tg-royal-locale.tg-royal-open{z-index:800}
