.mg-page{max-width:1180px;margin:auto;padding:26px 0 70px;color:#10224a}.mg-kicker{font-size:12px;letter-spacing:.15em;font-weight:900;color:#318ca9}.mg-header h1{font-size:clamp(32px,4vw,54px);letter-spacing:-.045em;margin:8px 0 6px;line-height:1.08}.mg-header p{color:#60718a;max-width:640px;line-height:1.6}.mg-columns{display:grid;grid-template-columns:1.2fr .8fr;gap:22px;align-items:start;margin-top:26px}.mg-card{background:#fff;border:1px solid #dce5f1;border-radius:23px;padding:26px;box-shadow:0 14px 32px rgba(16,34,74,.045)}.mg-card h2{font-size:23px;letter-spacing:-.02em;margin:0 0 16px}.mg-field{display:grid;gap:8px;margin-bottom:18px}.mg-field label{font-size:13px;font-weight:800}.mg-field input,.mg-field select{width:100%;border:1px solid #cfdbea;border-radius:13px;background:#f8fafd;color:#10224a;padding:15px 16px;font-size:16px;outline:none}.mg-field input:focus,.mg-field select:focus{border-color:#1689bf;box-shadow:0 0 0 3px rgba(22,137,191,.1)}.mg-segments{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mg-segments label{display:flex;align-items:center;gap:9px;padding:16px 12px;border:1px solid #dce5f1;border-radius:15px;cursor:pointer;background:#f8fafd;font-weight:750}.mg-segments label:has(input:checked){border-color:#339ec1;background:#eaf8ff}.mg-segments input{accent-color:#178eb9}.mg-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;background:#102f5c;color:#fff;padding:15px 20px;border-radius:14px;font:800 15px inherit;font-weight:800;cursor:pointer;min-height:48px}.mg-btn:hover{filter:brightness(1.13)}.mg-btn:disabled{opacity:.45;cursor:not-allowed}.mg-btn.alt{background:#e9f0f9;color:#153966}.mg-btn.accent{background:#ffc24c;color:#152b48}.mg-btn.wide{width:100%}.mg-muted{color:#657792;line-height:1.6}.mg-info{background:#eff6fd;border-radius:15px;padding:18px;line-height:1.8;color:#304e70}.mg-panel{margin-top:24px}.mg-dark{background:#143764;border:0;color:#fff;padding:32px;border-radius:25px}.mg-dark h2,.mg-dark h3{color:#fff}.mg-dark .mg-muted{color:#cbdaf0}.mg-invite{display:grid;grid-template-columns:190px 1fr;gap:25px;align-items:center}.mg-qr{width:186px;height:186px;background:#fff;padding:13px;border-radius:14px;object-fit:contain}.mg-code{font-size:clamp(38px,6vw,68px);font-weight:900;letter-spacing:.13em;color:#fff;line-height:1.12;margin:10px 0}.mg-actions{display:flex;flex-wrap:wrap;gap:10px}.mg-link{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#c9eafa;border:1px solid #6884aa;border-radius:10px;padding:13px 14px;margin:13px 0;text-decoration:none}.mg-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:10px}.mg-person{background:#f4f7fc;border:1px solid #e0e9f2;border-radius:15px;padding:15px;display:flex;justify-content:space-between;align-items:center;gap:10px}.mg-tag{font-size:12px;font-weight:800;color:#2d6780}.mg-word{font-size:clamp(44px,8vw,80px);font-weight:900;letter-spacing:-.04em;text-align:center;padding:30px 12px;color:#102f5c}.mg-meter{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:17px;background:#f0f6fd;padding:18px 20px;margin:18px 0}.mg-timer{font-variant-numeric:tabular-nums;font-size:42px;font-weight:900;letter-spacing:-.05em}.mg-history{display:grid;gap:8px;max-height:270px;overflow:auto}.mg-clue{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #e7ecf2;padding:10px 0}.mg-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px;margin:20px 0}.mg-choice{background:#f3f7fd;border:2px solid #dce6f2;border-radius:17px;padding:20px 16px;text-align:left;font-weight:800;cursor:pointer;color:#173661}.mg-choice:hover{border-color:#40a4c8}.mg-choice.selected{background:#e6f7ff;border-color:#1a91bd}.mg-msg{border-radius:12px;padding:14px 18px;background:#fff8e9;color:#684a1b;margin:14px 0;font-weight:600}.mg-msg.error{background:#ffedf0;color:#a02343}.mg-msg:empty{display:none}.mg-status{display:inline-flex;background:#eaf8ef;border-radius:99px;color:#23724b;padding:5px 12px;font-size:12px;font-weight:800}.mg-result{font-size:34px;font-weight:900}.mg-toprow{display:flex;align-items:center;justify-content:space-between;gap:10px}.mg-hidden{display:none!important}.mg-tip{font-size:13px;color:#6a7e95;margin-top:10px}.mg-notes{display:grid;gap:10px}.mg-notes p{margin:0}.mg-vote-note{font-size:14px;color:#58718b}.mg-clue-form{display:flex;gap:10px}.mg-clue-form input{flex:1;min-width:0}.mg-connected{color:#4ca66a;font-weight:800}.mg-exit{background:none;border:none;color:#406280;text-decoration:underline;cursor:pointer}
@media(max-width:820px){.mg-columns{grid-template-columns:1fr}.mg-invite{grid-template-columns:1fr;text-align:center;justify-items:center}.mg-actions{justify-content:center}.mg-dark{padding:25px 20px}.mg-card{padding:20px}.mg-code{letter-spacing:.07em}.mg-link{width:100%}}@media(max-width:480px){.mg-segments{grid-template-columns:1fr}.mg-choices{grid-template-columns:1fr}.mg-timer{font-size:35px}.mg-clue-form{flex-direction:column}.mg-page{padding-top:12px}}

/* v19: clear guest identity and phone clue input */
.mg-join-identity{background:#f2f7fc;border:1px solid #d9e6f2;border-radius:15px;padding:13px 15px;margin-bottom:18px}.mg-join-identity label{display:block;margin-bottom:9px}.mg-join-identity input{width:100%;border:1px solid #cfdbea;border-radius:12px;background:#fff;color:#10224a;padding:14px 16px;font-size:16px}.mg-join-identity .mg-join-help{display:block;font-size:12px;line-height:1.5;margin-top:8px;color:#527395}.mg-join-identity input:disabled{background:#e8eff7;color:#304b70;opacity:1}.mg-clue-form:not(.mg-hidden){display:flex;align-items:stretch;margin:18px 0 10px}.mg-clue-form .mg-field input{min-height:50px}.mg-clue-form .mg-btn{white-space:nowrap}@media(max-width:480px){.mg-clue-form:not(.mg-hidden){flex-direction:column}}


/* v22 – režimų pasirinkimas kaip pavyzdyje */
.mg-segments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mg-segments .mg-mode-option{position:relative;display:flex;align-items:center;gap:14px;min-height:66px;padding:0 18px;border:2px solid #28364a;border-radius:8px;background:#2f3034;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s,color .18s;min-width:0;color:#fff;box-shadow:0 1px 0 rgba(0,0,0,.08) inset}
.mg-segments .mg-mode-option:hover{filter:brightness(1.05)}
.mg-segments .mg-mode-option:has(input:checked){background:#dff1fb;border-color:#1f9ad0;color:#10224a;box-shadow:0 0 0 1px rgba(31,154,208,.05), inset 0 1px 0 rgba(255,255,255,.7)}
.mg-segments .mg-mode-option:has(input:focus-visible){outline:3px solid #7ec8ea;outline-offset:2px}
.mg-segments .mg-mode-option input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.mg-mode-icon{display:grid;place-items:center;flex:none;width:auto;height:auto;background:none;border-radius:0;font-size:18px;line-height:1}
.mg-mode-content{display:flex;align-items:center;gap:9px;min-width:0;line-height:1.2;flex:1}
.mg-mode-content strong{font-size:16px;color:inherit;font-weight:900;white-space:nowrap}
.mg-mode-content small{font-size:13px;font-weight:500;color:rgba(255,255,255,.7);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mg-mode-content small::before{content:"—";margin-right:9px;color:inherit;opacity:.8}
.mg-segments .mg-mode-option:has(input:checked) .mg-mode-content small{color:#4d6683}
.mg-mode-check{display:grid;place-items:center;flex:none;width:17px;height:17px;border:2px solid rgba(255,255,255,.72);border-radius:50%;font-size:0;color:transparent;margin-left:auto;background:transparent}
.mg-segments .mg-mode-option:has(input:checked) .mg-mode-check{border-color:#1f9ad0;background:#1f9ad0;box-shadow:inset 0 0 0 3px #dff1fb}
@media(max-width:760px){.mg-segments{grid-template-columns:1fr}.mg-segments .mg-mode-option{min-height:60px;padding:0 14px}.mg-mode-content strong{font-size:15px}.mg-mode-content small{font-size:12px}}
@media(max-width:460px){.mg-mode-content{gap:6px}.mg-mode-content small{white-space:normal}.mg-mode-content small::before{margin-right:6px}}
