@import url('/font.css');
:root{font-family:'Inter',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;color:#172443;background:#f3f5fa;font-synthesis:none;--navy:#102453;--blue:#254a9c;--yellow:#f6c445;--muted:#66728a;--line:#dce2ef;--green:#158957;--red:#ce4260;--radius:22px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}a{color:var(--blue)}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #5e92ed;outline-offset:3px}button,.button{border:1px solid transparent;border-radius:14px;padding:13px 19px;min-height:48px;font-weight:750;font-size:1rem;display:inline-flex;align-items:center;justify-content:center;gap:9px;text-decoration:none;background:#e8edf7;color:var(--navy)}button.primary,.button.primary{background:var(--yellow);color:var(--navy)}button.blue,.button.blue{background:var(--navy);color:white}button.ghost,.button.ghost{background:transparent;border-color:var(--line)}.small-button{padding:9px 14px;min-height:42px;font-size:.875rem}.muted{color:var(--muted)}.eyebrow{font-size:.78rem;letter-spacing:.17em;text-transform:uppercase;font-weight:800}.logo{display:flex;align-items:center;gap:11px;font-weight:850;letter-spacing:-.04em;font-size:1.3rem;color:inherit;text-decoration:none}.logo img{width:39px;height:39px;object-fit:contain}.logo small{font-size:.7rem;letter-spacing:.15em;font-weight:650;margin-left:3px;opacity:.6}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.spread{justify-content:space-between}.stack{display:grid;gap:14px}h1,h2,h3,p{margin:0}h1{letter-spacing:-.055em}input,select{width:100%;min-height:50px;border:1px solid var(--line);background:white;border-radius:12px;padding:10px 13px;color:var(--navy);font-size:1rem}select{appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%23102453' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}label{display:grid;gap:7px;font-size:.875rem;font-weight:700}.card{border:1px solid var(--line);border-radius:var(--radius);padding:23px;background:white;box-shadow:0 8px 25px #10245305}.loading{min-height:100dvh;display:grid;place-content:center;justify-items:center;gap:20px}.loading img{width:80px}.home{min-height:100dvh;background:var(--navy);color:white;position:relative;overflow:hidden}.home:before{content:'';position:absolute;width:650px;height:650px;border:1px solid #ffffff0b;border-radius:50%;top:40px;right:-260px;box-shadow:0 0 0 90px #ffffff03,0 0 0 180px #ffffff02;pointer-events:none}.home-header{max-width:1140px;margin:auto;padding:30px 28px;display:flex;justify-content:space-between;align-items:center}.home-tag{border:1px solid #ffffff26;border-radius:999px;padding:9px 14px;color:#c4d2ee;font-size:.8rem}.home-main{max-width:1140px;margin:auto;padding:65px 28px 90px;display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;position:relative}.home-title{font-size:clamp(3.8rem,7vw,6.3rem);line-height:.98;margin:22px 0 26px;font-weight:850}.home-title em{color:var(--yellow);font-style:normal}.home-intro{font-size:1.1rem;line-height:1.7;color:#c3cfe6;max-width:420px}.home-steps{display:flex;gap:20px;margin-top:36px;font-size:.85rem;color:#c3cfe6}.home-steps span{display:flex;align-items:center;gap:9px}.step-dot{width:25px;height:25px;border-radius:50%;border:1px solid #ffffff30;display:grid;place-content:center;color:var(--yellow);font-size:.75rem}.home-options{display:grid;gap:18px}.start-card{padding:28px;border:1px solid #ffffff22;border-radius:24px;background:#ffffff08;display:grid;gap:15px;backdrop-filter:blur(10px)}.start-card.featured{background:#fff;color:var(--navy);border-color:white;box-shadow:0 24px 70px #0002}.start-card h2{font-size:1.5rem;letter-spacing:-.04em}.start-card p{font-size:.96rem;line-height:1.6;opacity:.72}.start-card button{width:100%}.start-card .tag{display:inline-flex;width:max-content;background:#fff1c3;border-radius:6px;padding:5px 8px;font-size:.75rem;font-weight:800;color:#8b6100}.home-footer{padding:0 28px 30px;text-align:center;color:#8fa2c6;font-size:.8rem}.resume{color:#dce6fa;font-size:.9rem;text-align:center;padding:10px}.resume a{color:var(--yellow)}.control{max-width:1040px;margin:auto;padding:0 20px 35px}.control-header{position:sticky;top:0;z-index:5;background:#f3f5faf2;backdrop-filter:blur(10px);padding:18px 0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:20px;gap:10px}.connection{font-size:.78rem;font-weight:700;padding:8px 12px;border-radius:999px;background:#e5ebf7;color:#5d6e91;display:flex;align-items:center;gap:7px;white-space:nowrap}.connection:before{content:'';width:7px;height:7px;background:currentColor;border-radius:50%}.connection.online{background:#e0f3e9;color:#157449}.connection.offline{background:#fce6e9;color:#a12946}.control-grid{display:grid;grid-template-columns:1.25fr .85fr;gap:20px;align-items:start}.control-main,.control-side{display:grid;gap:16px}.session-strip{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.session-strip h1{font-size:1.65rem}.session-strip .eyebrow{color:var(--muted);margin-bottom:5px}.session-strip .number{color:var(--blue);font-weight:800}.selectors{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mode-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:17px}.mode-tabs button{flex:1;padding:10px;min-height:44px;font-size:.875rem}.mode-tabs button.active{background:var(--navy);color:white}.word-card{background:var(--navy);color:white;border:0;position:relative;overflow:hidden;padding:25px}.word-card:after{content:'';position:absolute;right:-35px;top:-50px;width:170px;height:170px;border:26px solid #ffffff04;border-radius:40px;transform:rotate(30deg);pointer-events:none}.word-card .eyebrow{color:#a5b8de;letter-spacing:.12em;font-size:.72rem}.expected-word{font-size:clamp(2rem,7vw,3.5rem);font-weight:800;letter-spacing:-.035em;line-height:1.15;margin:15px 0 20px;overflow-wrap:anywhere}.word-card .private-note{font-size:.8rem;color:#a5b8de}.word-nav{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:23px}.word-nav button{background:#ffffff14;color:white;border-color:#ffffff20}.word-nav .primary{background:var(--yellow);color:var(--navy);border-color:var(--yellow)}.preview-title{font-size:.8rem;color:var(--muted);font-weight:750;margin-bottom:13px}.slots{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;align-content:center;min-height:68px}.slot{display:grid;place-content:center;border-bottom:3px solid #b5bfd4;font-weight:800;min-width:27px;height:43px;font-size:1.6rem;color:#a8b2c6}.slot.correct{color:var(--green);border-color:#76c3a3}.slot.wrong{color:var(--red);border-color:#e995a8}.slot.empty{color:transparent}.preview-result{text-align:center;font-size:.9rem;font-weight:800;margin-top:12px}.preview-result.correct{color:var(--green)}.preview-result.wrong{color:var(--red)}.keyboard{display:grid;grid-template-columns:repeat(9,1fr);gap:6px;margin-top:15px}.keyboard button{padding:0;border-radius:9px;background:#f0f3fa;color:var(--navy);min-width:0;min-height:47px;box-shadow:0 2px 0 #d6deed;font-size:1rem}.keyboard button:last-child{background:#dfe6f5}.typing-tools{display:flex;gap:8px;margin-top:13px}.typing-tools button{flex:1;font-size:.82rem;min-height:43px;padding:8px}.native-input{letter-spacing:.12em;text-transform:uppercase;font-weight:750}.native-label{margin-top:17px}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.action-grid button{font-size:.875rem;padding:12px 8px;min-height:50px}.action-grid button.ok{background:#ddf2e7;color:#136f45}.action-grid button.no{background:#fde6eb;color:#aa2e4a}.action-grid button.selected{outline:2px solid currentColor;outline-offset:-2px}.help{font-size:.82rem;line-height:1.6;color:var(--muted)}.share-link{word-break:break-all;font-size:.8rem;padding:12px;background:#f2f5fb;border-radius:10px;color:var(--blue)}.aside-title{font-size:1rem;margin-bottom:16px;letter-spacing:-.02em}.card-preview{width:100%;max-height:210px;object-fit:contain;display:block;margin:10px auto;border-radius:10px;background:white}.share-actions{display:flex;gap:8px;flex-wrap:wrap}.share-actions>*{flex:1}.banner{border-radius:14px;padding:13px 16px;font-size:.9rem;line-height:1.5;background:#fff0c7;color:#735000}.banner.error{background:#fde7eb;color:#a52e48}.modal-shade{position:fixed;inset:0;background:#071331d9;z-index:50;display:grid;place-items:center;padding:22px;backdrop-filter:blur(9px)}.pair-card{background:white;color:var(--navy);border-radius:30px;padding:30px;width:min(480px,100%);text-align:center;display:grid;gap:16px;box-shadow:0 35px 120px #0005}.pair-card h2{font-size:1.8rem;letter-spacing:-.05em}.pair-card p{line-height:1.55;color:var(--muted);font-size:1rem}.qr-img{width:min(280px,65vw);height:auto;display:block;margin:auto;border:1px solid var(--line);border-radius:18px}.pair-footer{font-size:.85rem;color:var(--muted)}.pair-card .row{justify-content:center}.tv{height:100dvh;min-height:500px;display:flex;flex-direction:column;background:#101f43;color:white;overflow:hidden;position:relative}.tv:before{content:'';position:absolute;inset:0;background-image:radial-gradient(#ffffff10 1px,transparent 1px);background-size:30px 30px;mask-image:linear-gradient(100deg,transparent,#000);pointer-events:none}.tv-header{padding:24px 38px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff14;z-index:1;gap:20px}.tv-header .logo{font-size:1.65rem}.tv-header .logo img{width:48px;height:48px}.tv-meta{display:flex;align-items:center;gap:14px;color:#adc0e7;font-size:.9rem}.tv-chip{padding:7px 13px;border-radius:999px;background:#ffffff0d;border:1px solid #ffffff16}.tv-stage{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:30px;padding:30px 5vw;min-height:0;position:relative;z-index:1}.tv-kicker{color:var(--yellow);font-weight:750;font-size:clamp(.9rem,1.5vw,1.25rem);letter-spacing:.2em;text-transform:uppercase}.tv .slots{gap:clamp(5px,1.2vw,16px);min-height:140px;max-width:94vw}.tv .slot{font-size:clamp(26px,calc(76vw / var(--letters,8)),105px);width:clamp(22px,calc(72vw / var(--letters,8)),115px);height:clamp(58px,calc(100vw / var(--letters,8)),140px);border-width:5px;border-color:#ffffff27;color:white}.tv .slot.empty{color:transparent}.tv .slot.correct{color:#63e2a3;border-color:#63e2a3}.tv .slot.wrong{color:#ff8fa7;border-color:#ff8fa7}.tv-revealed{font-size:clamp(35px,7vw,104px);font-weight:850;letter-spacing:.06em;text-align:center;text-transform:uppercase;overflow-wrap:anywhere;line-height:1.2}.tv-result{font-size:clamp(1.4rem,3vw,2.8rem);font-weight:800;color:#67e6a6;min-height:1.4em;text-align:center}.tv-result.wrong{color:#ff9cb0}.tv-hint{font-size:clamp(.85rem,1.5vw,1.2rem);color:#8fa6d3;text-align:center}.tv-image{max-height:55vh;max-width:82vw;object-fit:contain;border-radius:18px;background:white;padding:8px}.tv-footer{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:17px 30px;border-top:1px solid #ffffff14;gap:10px;color:#93a8ce;font-size:.8rem}.tv-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.tv-toolbar button{background:#ffffff0b;color:#bdcdea;border:1px solid #ffffff18;font-size:.78rem;min-height:38px;padding:8px 13px}.tv .connection{background:#ffffff08;color:#a5b9dd;font-size:.75rem}.tv .connection.online{color:#81dcaf}.tv .connection.offline{color:#ffa6b9}.tv-toolbar button.sound-on{color:#8de2b6;border-color:#8de2b644}.confetti{position:fixed;top:-20px;width:10px;height:16px;z-index:60;animation:fall 2.6s ease-in forwards;pointer-events:none}@keyframes fall{to{transform:translateY(110vh) rotate(720deg)}}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;background:#172443;color:white;border-radius:13px;padding:14px 20px;box-shadow:0 8px 35px #0003;width:max-content;max-width:90vw;font-size:.9rem}.error-page{max-width:560px;margin:15vh auto;padding:30px;display:grid;gap:20px}.error-page h1{font-size:2rem}.connecting{min-height:100dvh;display:grid;place-content:center;justify-items:center;gap:20px;padding:25px;text-align:center;background:var(--navy);color:white}.connecting p{color:#a9bce1;line-height:1.6;max-width:400px}[hidden]{display:none!important}@media(max-width:760px){.home-main{grid-template-columns:1fr;gap:32px;padding-top:35px;max-width:540px}.home-header{padding:22px}.home-title{font-size:4.5rem}.home-intro{font-size:1rem}.home-steps{margin-top:24px;gap:15px}.home-tag{font-size:.7rem;padding:7px 10px}.home-options{gap:14px}.start-card{padding:24px}.home-footer{font-size:.75rem}.control{padding:0 13px 25px}.control-header{padding:13px 0;margin-bottom:17px}.control-header .logo{font-size:1.1rem;gap:7px}.control-header .logo img{width:30px;height:30px}.control-header .logo small{display:none}.connection{font-size:.7rem;padding:7px 10px}.control-grid{grid-template-columns:1fr;gap:15px}.control-main{gap:13px}.control-side{gap:13px}.card{padding:18px;border-radius:19px}.word-card{padding:21px}.expected-word{font-size:2.5rem;margin-bottom:14px}.session-strip{margin-bottom:16px}.session-strip h1{font-size:1.4rem}.session-strip .eyebrow{font-size:.68rem}.keyboard{gap:5px}.keyboard button{min-height:46px}.native-label{font-size:.8rem}.tv-header{padding:15px 20px;gap:10px}.tv-header .logo{font-size:1.1rem}.tv-header .logo img{width:32px;height:32px}.tv-header .logo small{display:none}.tv-meta{gap:6px;font-size:.75rem}.tv-chip{padding:6px 9px}.tv-stage{gap:20px;padding:20px}.tv-footer{padding:12px 16px;flex-wrap:wrap}.tv-footer .tv-credit{display:none}.tv-toolbar{gap:6px}.tv-toolbar button{padding:8px 10px}.pair-card{padding:24px}.pair-card h2{font-size:1.5rem}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
