/* Emilia — menu de idioma + botão */
html.i18n-wait body { visibility: hidden; }
html.lang-lock, html.lang-lock body { overflow: hidden; }

#langBtn { position: fixed; left: 60px; bottom: 14px; z-index: 96; height: 38px; padding: 0 12px 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid rgba(255, 162, 77, .35); background: rgba(26, 15, 38, .85); color: #f1eefb; backdrop-filter: blur(8px); cursor: pointer; font: 800 12px 'Manrope', system-ui, sans-serif; letter-spacing: .06em; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); transition: transform .2s, border-color .2s; }
#langBtn:hover { transform: translateY(-2px); border-color: rgba(255, 162, 77, .7); }
#langBtn .lg { font-size: 15px; line-height: 1; }

#langOverlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(ellipse at 50% 20%, rgba(122, 43, 184, .35), rgba(8, 4, 14, .94) 70%); backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s; font-family: 'Manrope', system-ui, sans-serif; }
#langOverlay[hidden] { display: none; }
#langOverlay.on { opacity: 1; }
.lang-box { position: relative; width: min(440px, 100%); text-align: center; padding: 34px 26px 28px; border-radius: 26px; background: linear-gradient(160deg, rgba(48, 24, 62, .96), rgba(18, 10, 26, .98)); border: 1px solid rgba(255, 162, 77, .32); box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 60px rgba(255, 140, 50, .12); transform: translateY(14px) scale(.97); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
#langOverlay.on .lang-box { transform: none; }
.lang-globe { font-size: 40px; line-height: 1; margin-bottom: 10px; filter: drop-shadow(0 0 16px rgba(255, 140, 50, .55)); animation: lang-bob 3.6s ease-in-out infinite; }
@keyframes lang-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(4deg); } }
.lang-box h2 { margin: 0 0 22px; color: #f7f1ff; font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.lang-box h2 span { display: block; }
.lang-box h2 span + span { color: #cdbde4; font-size: 17px; font-weight: 700; margin-top: 3px; }
.lang-box h2 span:nth-child(3) { font-size: 15px; opacity: .85; }
.lang-opts { display: grid; gap: 11px; }
.lang-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #f1eefb; cursor: pointer; text-align: left; font: inherit; transition: transform .18s, border-color .18s, background .18s, box-shadow .18s; }
.lang-opt svg { width: 38px; height: 27px; flex: none; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.lang-opt span { display: flex; flex-direction: column; line-height: 1.2; }
.lang-opt b { font-size: 16px; font-weight: 800; }
.lang-opt small { color: #b9a5c9; font-size: 12px; font-weight: 600; margin-top: 2px; }
.lang-opt:hover, .lang-opt:focus-visible { transform: translateY(-2px); border-color: rgba(255, 162, 77, .75); background: rgba(255, 162, 77, .1); box-shadow: 0 10px 30px -12px rgba(255, 140, 50, .6); outline: none; }
.lang-opt.sel { border-color: rgba(255, 162, 77, .55); }
.lang-opt.sel::after { content: "✓"; margin-left: auto; color: #ffa24d; font-weight: 800; }
.lang-x { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #d9c8ff; cursor: pointer; font-size: 14px; display: none; }
#langOverlay.manual .lang-x { display: block; }
.lang-x:hover { background: rgba(255, 255, 255, .16); }
@media (max-width: 480px) { #langBtn { left: 58px; } .lang-box { padding: 28px 18px 22px; } }
@media (prefers-reduced-motion: reduce) { .lang-globe, .lang-box { animation: none; transition: none; } }
