:root{color-scheme:dark;--bg:#080a0d;--panel:#12171d;--line:#2b333d;--text:#f2f4f8;--muted:#a9b3c0;--accent:#88baff}
*{box-sizing:border-box}
html{min-width:280px;background:var(--bg)}
body{margin:0;background:radial-gradient(ellipse at 50% 0,rgba(47,86,137,.14),transparent 55%),var(--bg);color:var(--text);font:17px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
[hidden]{display:none!important}
a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
a:focus-visible{outline:3px solid var(--accent);outline-offset:5px}
.entry{min-height:100svh;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:36px max(20px,env(safe-area-inset-right)) max(36px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));text-align:center}
.brand{width:330px;max-width:82vw;height:auto;display:block;margin:0 auto 32px;filter:drop-shadow(0 8px 22px #0006)}
.screen{width:100%;max-width:900px;animation:arrive .24s ease-out both}
h1{font-size:clamp(24px,3.5vw,32px);line-height:1.25;letter-spacing:-.025em;font-weight:600;margin:0 0 10px}
.subtitle{color:var(--muted);font-size:14px;margin:14px 0 0}
.language-picker{position:relative;width:min(320px,100%);margin:0 auto;text-align:left}
.language-picker > button{appearance:none;-webkit-appearance:none;width:100%;min-height:56px;padding:14px 44px 14px 50px;border:1px solid #465360;border-radius:12px;background:linear-gradient(145deg,#1a222c,#10151b);color:var(--text);font:600 16px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer;box-shadow:0 8px 26px #0003;transition:border-color .18s,background .18s;-webkit-tap-highlight-color:transparent}
.language-picker > button:hover{border-color:#7198ca}
.language-picker > button:focus-visible{outline:3px solid var(--accent);outline-offset:5px}
#language-picker{text-align:left}
.language-options{position:absolute;z-index:10;inset:calc(100% + 8px) 0 auto;padding:6px;max-height:360px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;border:1px solid #465360;border-radius:12px;background:#121920;box-shadow:0 12px 32px #0008}
.language-options.opens-up{top:auto;bottom:calc(100% + 8px)}
.language-option{display:flex;align-items:center;gap:13px;min-height:46px;padding:10px 12px;border-radius:7px;color:var(--text);font-size:16px;font-weight:500}
.language-option img{width:29px;height:21px;object-fit:cover;flex-shrink:0;border-radius:2px;box-shadow:0 0 0 1px #ffffff20}
.language-option:hover,.language-option:focus-visible{background:#243444;outline:none}
.language-option:focus-visible{box-shadow:inset 0 0 0 2px var(--accent)}
#language-picker[aria-expanded="true"]~.picker-chevron{transform:translateY(-50%) rotate(180deg)}
.language-picker svg{position:absolute;top:50%;transform:translateY(-50%);width:21px;height:21px;fill:none;stroke:var(--accent);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.picker-globe{left:17px}
.picker-chevron{right:15px}
.languages{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.language-card{flex:0 1 calc(25% - 9px);display:flex;align-items:center;gap:13px;padding:19px 18px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(145deg,#171e26,#11161b);text-align:left;min-height:72px;font-weight:550;transition:border-color .18s,background .18s,transform .18s}
.language-card img,.current-language img{width:29px;height:21px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px #ffffff20;flex-shrink:0}
.language-card:hover{border-color:#7198ca;background:#1c2734;transform:translateY(-2px)}
.language-card:active{transform:translateY(0)}
.selection-top{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:760px;margin:0 auto 24px;font-size:15px}
.current-language{display:flex;align-items:center;gap:10px;color:#ced7e2}
.change-language{color:var(--muted);padding:10px 0;text-underline-offset:5px}
.change-language:hover{text-decoration:underline;color:var(--text)}
.choices{width:min(760px,100%);margin:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.choice{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:22px;min-height:232px;padding:32px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#1a222c,#10151b);text-align:left;transition:border-color .18s,background .18s,transform .18s}
.choice:hover{border-color:#7198ca;transform:translateY(-3px);background:#1b2633}
.choice-icon{width:58px;height:48px;fill:none;stroke:var(--accent);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.choice-title{font-size:clamp(23px,3vw,29px);font-weight:600;line-height:1.3;max-width:100%;overflow-wrap:anywhere}
.choice-arrow{position:absolute;top:30px;right:28px;color:#90a4bd;font-size:24px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:700px){.language-card{flex-basis:calc(50% - 6px);max-width:250px}.screen{max-width:520px}.entry{padding-top:24px}.brand{width:300px;margin-bottom:24px}.choices{gap:12px}.choice{padding:24px 20px;min-height:210px}.choice-arrow{top:20px;right:18px}.selection-top{gap:12px}}
@media(max-width:420px){.language-card{padding:16px 12px;gap:10px;font-size:16px;min-height:64px}.choices{grid-template-columns:1fr}.choice{min-height:140px;display:grid;grid-template-columns:48px 1fr;align-items:center;gap:20px;padding:26px 24px}.choice-icon{width:44px;height:40px}.choice-arrow{display:none}.choice-title{font-size:23px}.selection-top{font-size:14px;flex-wrap:wrap}.brand{max-width:82vw}.subtitle{margin-bottom:24px}}
@media(max-height:500px) and (min-width:601px){.entry{padding:20px}.brand{width:190px;margin-bottom:16px}h1{font-size:24px}.subtitle{margin-bottom:18px}.language-card{padding:12px 16px;min-height:56px}.choice{min-height:140px;padding:22px;gap:12px}.choice-icon{width:44px;height:35px}.selection-top{margin-bottom:12px}.choice-title{font-size:24px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.language-card:hover,.choice:hover{transform:none}}
