:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#181c24;background:#f2f4f7;font-synthesis:none;--blue:#155dfb;--orange:#f47a20;--ink:#181c24;--muted:#647083;--line:#d6dce5;--panel:#fff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[data-cell]:focus-visible{outline:3px solid #155dfb;outline-offset:3px}[hidden]{display:none!important}.skip{position:absolute;left:1rem;top:-5rem;z-index:30;background:white;padding:.7rem}.skip:focus{top:1rem}
.header{height:68px;padding:0 clamp(18px,3vw,48px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fff}.brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:-.04em;font-size:1.15rem}.brand-symbol{display:grid;place-items:center;width:34px;height:34px;background:var(--ink);color:#fff;border-radius:9px}.brand-label{font-size:.73rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);border-left:1px solid var(--line);padding-left:12px;margin-left:4px}.header nav{display:flex;gap:16px;align-items:center}.nav-link{font-weight:650}.preview-notice{padding:9px 18px;text-align:center;font-size:.8rem;background:#e7edf8;color:#435574}main{max-width:1480px;margin:auto;padding:clamp(18px,3vw,40px)}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.055em;line-height:1.08}h2,h3{letter-spacing:-.035em}.eyebrow{display:block;font-size:.72rem;font-weight:800;letter-spacing:.13em;color:#637086}.muted{color:var(--muted)}.small,small{font-size:.79rem}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.primary,.secondary,.text-button,.icon-button{border:0;border-radius:12px;padding:12px 18px;font-weight:700;min-height:45px}.primary{background:var(--blue);color:white}.primary:hover{background:#094bd6}.primary:disabled{opacity:.5;cursor:not-allowed}.secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}.secondary:hover,.source-card:hover,.quiz-card:hover{border-color:#95a8c9}.text-button{background:transparent;color:var(--blue)}.icon-button{min-width:42px;background:#edf0f5;padding:8px}.full{width:100%}.back{display:inline-block;font-size:.85rem;font-weight:700;color:var(--muted);margin-bottom:12px}.panel,.quiz-card,.turn-card,.board-panel,.start-form{background:var(--panel);border:1px solid var(--line);border-radius:20px}.panel{padding:clamp(20px,2.3vw,32px)}label{display:block;font-weight:700;font-size:.88rem}input:not([type=radio]):not([type=checkbox]):not([type=file]),textarea,select{width:100%;border:1px solid #cbd3df;background:#fff;border-radius:10px;padding:12px;color:var(--ink);margin-top:8px}textarea{resize:vertical}label small{font-weight:400;color:var(--muted)}
.header .brand{font-size:26px;letter-spacing:normal;color:#743759;white-space:nowrap}.header .brand svg{width:44px;height:40px;fill:none;stroke:currentColor;stroke-width:2;flex:none}.header .brand:hover{color:#592340}.header .brand-label{color:#647083}
@media(max-width:700px){.header .brand{font-size:22px}.header .brand svg{width:36px}.header .brand-label{font-size:.66rem}}
.hero{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;min-height:470px}.hero-copy h1{font-size:clamp(2.8rem,5vw,5rem);margin:18px 0}.hero-copy em{font-style:normal;color:var(--blue)}.hero-copy p{font-size:clamp(1rem,1.4vw,1.2rem);color:var(--muted);line-height:1.5}.hero-meta{display:flex;flex-wrap:wrap;gap:20px;margin-top:38px;color:var(--muted);font-size:.82rem}.hero-board{position:relative}.hero-board svg{width:100%;max-height:410px}.floating-label{position:absolute;right:0;bottom:0;padding:12px 18px;background:#fff;border:1px solid var(--line);border-radius:10px;font-weight:700}.dashboard-section{margin-top:32px}.section-heading,.panel-heading,.editor-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.section-heading h2,.panel-heading h2{margin:8px 0}.quiz-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}.quiz-card{overflow:hidden}.mini-art{height:150px;background:#f6f8fb;display:grid;place-items:center}.mini-art svg{height:140px}.quiz-card-body{padding:18px}.quiz-card-body h3{margin:12px 0 4px}.quiz-card-body p{color:var(--muted);font-size:.84rem}.quiz-card-footer{display:flex;justify-content:space-between;font-size:.82rem;color:var(--muted)}.text-link{color:var(--blue);font-weight:700}.new-card{min-height:265px;border:1px dashed #9ca9bb;border-radius:20px;background:#f8faff;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px}.new-card span{font-size:2rem;color:var(--blue)}.new-card small{color:var(--muted)}.pill{display:inline-block;padding:6px 10px;border-radius:99px;background:#e9eef8;font-size:.72rem;font-weight:700}.pill.sage{background:#def6e8;color:#166b45}.pill.review{background:#fff0cd;color:#6a5210}.count{font-size:.8rem;background:#e9eef8;border-radius:99px;padding:5px 9px}.steps-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:34px}.steps-strip>div{display:flex;gap:15px;padding:20px;border-top:1px solid var(--line)}.steps-strip b{color:var(--blue)}.steps-strip small{display:block;color:var(--muted);margin-top:4px}footer{padding:30px 0;text-align:center;color:var(--muted);font-size:.82rem}
.editor-heading{margin:10px 0 25px}.editor-heading h1{font-size:clamp(2rem,3vw,3rem);margin:0 0 8px}.editor-heading p{color:var(--muted)}.editor-actions{text-align:right}.editor-actions small{display:block;color:var(--muted);margin-bottom:9px}.title-dot{color:var(--blue)}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px}.editor-main{display:grid;gap:18px}.panel-heading{justify-content:flex-start;align-items:center;margin-bottom:22px}.panel-heading p{color:var(--muted);font-size:.85rem;margin:0}.step-number{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:9px;background:#e9effd;color:var(--blue);font-weight:800}.metadata-grid{display:grid;grid-template-columns:2fr 1fr;gap:15px}.metadata-grid .wide{grid-column:1/-1}.source-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.source-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;min-height:140px;padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff}.source-card small{color:var(--muted)}.source-card i{position:absolute;right:16px;top:18px;font-style:normal}.source-icon{font-size:1.35rem;color:var(--blue)}.source-icon.sage{color:#26976e}.source-icon.coral{color:var(--orange)}.source-icon.gold{color:#a67817}.bank-tools{display:flex;gap:12px;margin-bottom:14px}.search-label{flex:1}.search-label input{margin-top:0!important}.bank-tools select{width:185px;margin-top:0}.question-row{display:flex;align-items:center;gap:14px;width:100%;padding:15px 8px;border:0;border-bottom:1px solid var(--line);background:#fff;text-align:left}.q-number{color:var(--muted)}.q-copy{flex:1;min-width:0}.q-copy strong,.q-copy small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.q-copy small{color:var(--muted);margin-top:4px}.q-check{color:#20855a}.q-arrow{color:var(--blue)}.empty-bank{padding:36px 10px;text-align:center}.empty-bank>span{font-size:2rem;color:var(--blue)}.bank-footer{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.summary{position:sticky;top:20px}.summary-art svg{width:100%;height:200px}.progress-label{display:flex;justify-content:space-between;gap:10px;align-items:end}.progress-label strong{font-size:2rem}.progress-label small{font-weight:400;color:var(--muted)}progress{width:100%;accent-color:var(--blue)}.summary-rules{display:grid;gap:10px;margin-top:20px;font-size:.82rem}.summary-rules span:before{content:'✓';color:var(--blue);margin-right:8px}.tip{display:flex;gap:12px;margin-top:16px;color:var(--muted);font-size:.82rem}.tip span{color:var(--blue)}.tip strong{display:block;color:var(--ink)}.sidebar-actions{display:grid;gap:4px;margin-top:20px}.danger{color:#aa3636}.error-inline{color:#b33b31}.review-note{color:#85600b;background:#fff4d7;padding:10px;border-radius:8px}
.play-setup{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,420px);gap:25px;align-items:center;min-height:calc(100dvh - 150px)}.play-intro h1{font-size:clamp(2.7rem,5vw,5rem);margin:15px 0}.lead{font-size:1.35rem;color:var(--muted)}.setup-board svg{width:100%;max-height:400px}.start-form{padding:28px}.start-form h2{margin:14px 0 20px;font-size:1.9rem}.start-form label{margin:14px 0}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:8px}.segmented input{position:absolute;opacity:0}.segmented span{display:block;text-align:center;padding:12px;border:1px solid var(--line);border-radius:10px}.segmented input:checked+span{border-color:var(--blue);background:#edf3ff;color:var(--blue)}.setup-meta{text-align:center;color:var(--muted);font-size:.77rem;margin-top:17px}
body.playing{overflow:hidden}body.playing>.header,body.playing>.preview-notice{display:none}body.playing main{max-width:none;width:100%;height:100dvh;padding:clamp(8px,1.2vw,16px);overflow:hidden}body.playing .arena{height:100%;min-height:0;display:flex;flex-direction:column;gap:10px}.arena-heading{flex:none;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:55px}.arena-heading .back{margin:0;color:var(--muted)}.arena-heading h1{font-size:clamp(1.2rem,2vw,1.75rem);line-height:1.1;margin:2px 0;max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.arena-heading .row{justify-content:flex-end}.arena-heading button{min-height:40px;padding:8px 13px}.arena-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) clamp(220px,22vw,310px);gap:12px}.board-panel{min-width:0;min-height:0;padding:clamp(8px,1vw,15px);display:flex;flex-direction:column;align-items:center;gap:5px}.game-players{display:grid;grid-template-columns:1fr 1fr;gap:9px;flex:none;width:100%}.score-card{display:flex;align-items:center;gap:9px;min-width:0;border:1px solid var(--line);border-radius:10px;padding:7px 11px;background:#f6f8fa}.score-card.active.player0{border-color:var(--blue)}.score-card.active.player1{border-color:var(--orange)}.score-card strong,.score-card small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.score-card small{color:var(--muted)}.score-card b{margin-left:auto}.score-symbol{font-size:1.3rem}.player0,.score-symbol.player0{color:var(--blue)}.player1,.score-symbol.player1{color:var(--orange)}.game-board{flex:1;min-height:0;width:100%;display:flex;justify-content:center;align-items:center;overflow:hidden}.game-board svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.board-caption{flex:none;margin:0;text-align:center;color:var(--muted);font-size:.77rem}.turn-card{display:flex;flex-direction:column;padding:clamp(15px,2vw,28px);min-height:0}.turn-card .eyebrow{margin-bottom:12px}.turn-symbol{font-size:2rem}.turn-card h2{font-size:clamp(1.5rem,2.5vw,2.5rem);overflow-wrap:anywhere;margin:12px 0}.turn-card p{color:var(--muted);line-height:1.5}.turn-hint{margin-top:auto;color:var(--muted);line-height:2}.turn-hint span{color:var(--blue)}.turn-footer{margin-top:auto;padding-top:16px;border-top:1px solid var(--line);color:var(--muted);font-size:.8rem}.turn-footer small{display:block;margin-top:5px}.arena .hex{cursor:pointer}.hex polygon{fill:#fff;stroke:#aab4c2;stroke-width:1.2;transition:fill .18s,stroke .18s}.hex text{font-size:27px;fill:var(--ink);font-weight:800;pointer-events:none}.hex:not(.owned):hover polygon,.hex:not(.owned):focus-visible polygon{fill:#eaf1ff;stroke:var(--blue);stroke-width:3}.hex.player0 polygon{fill:var(--blue);stroke:var(--blue)}.hex.player1 polygon{fill:var(--orange);stroke:var(--orange)}.hex.owned text{fill:#fff}.hex .owner-symbol{font-size:12px}.hex.win polygon{stroke:#131923;stroke-width:3}.side-guide{fill:none;stroke:#aab5c5;stroke-width:2}
dialog{width:min(760px,calc(100vw - 24px));max-height:min(90dvh,950px);border:1px solid var(--line);border-radius:20px;padding:clamp(20px,3vw,32px);box-shadow:0 25px 100px #2027353d;color:var(--ink);background:#fff;overflow:auto}dialog::backdrop{background:#111823ae}.modal-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.modal-heading h2{margin:0 0 20px}.modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;margin-top:23px}.modal-actions button{min-width:120px}.answer-fields{border:0;padding:0;margin:18px 0}.answer-fields legend{font-weight:750}.answer-field{display:flex;align-items:center;gap:8px;margin-top:8px}.answer-field>input{margin:0!important}.correct-choice{display:flex;align-items:center;gap:5px}.correct-choice span{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#edf1f8}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.upload-zone{display:grid;gap:8px;text-align:center;padding:28px;border:1px dashed #aebad0;border-radius:12px;margin:15px 0}.upload-zone>span{font-size:2rem;color:var(--blue)}.check-line{display:flex;gap:10px;align-items:flex-start;margin-top:16px;line-height:1.5}.notice,.error-box,.success-box{padding:14px;border-radius:10px;margin:13px 0;background:#eaf0fb}.error-box{background:#fff0ee;color:#92382e}.success-box{background:#e4f5ec;color:#1c704d}.rules{line-height:1.65}.rules li{margin:8px 0}.center{text-align:center}.complete-mark{margin:auto;width:60px;height:60px;display:grid;place-items:center;border-radius:50%;background:#e3f7eb;color:#1d8758;font-size:2rem}#toast:not(:empty){position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#1a2332;color:#fff;padding:12px 18px;border-radius:9px;z-index:50}
.excel-template{padding:16px;border:1px solid var(--line);border-radius:14px;background:#f7f8fb}.excel-template p{margin:0 0 12px}.excel-template .small{margin:10px 0 14px}.excel-table-wrap{overflow-x:auto}.excel-template table{border-collapse:collapse;min-width:840px;width:100%;font-size:.79rem}.excel-template th,.excel-template td{padding:9px;border:1px solid #dbe1ea;text-align:left;vertical-align:top;min-width:100px}.excel-template th{background:#743759;color:white}.excel-template td{background:white}
dialog.game-question{width:min(1100px,calc(100vw - 24px));max-height:94dvh}.game-question .question-top{display:flex;align-items:center;gap:12px}.game-question .question-top>div{display:grid;gap:4px}.letter-badge{display:grid;place-items:center;width:54px;height:54px;background:#eaf1ff;color:var(--blue);border-radius:12px;font-size:1.5rem;font-weight:800}.question-counter{margin-left:auto;color:var(--muted);font-weight:700}.game-question #modal-title{font-size:clamp(1.5rem,3vw,2.5rem);line-height:1.18;margin:18px 0 24px}.game-answers{display:grid;grid-template-columns:1fr 1fr;gap:12px}.game-answer{display:flex;align-items:center;gap:15px;min-height:80px;padding:14px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--ink)}.game-answer>span{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:9px;background:#edf1f7;color:#344154;font-weight:800}.game-answer strong{font-size:clamp(1.1rem,2vw,1.55rem);overflow-wrap:anywhere}.game-answer.selected{border:2px solid var(--blue);background:#f1f6ff}.game-answer.correct{border:2px solid #158755;background:#eaf8f0}.game-answer.wrong{border:2px solid #d85245;background:#fff0ee}.game-answer.dimmed{opacity:.6}.game-answer b{margin-left:auto;color:#158755}.answer-feedback{margin-top:15px;padding:15px;border-radius:10px}.answer-feedback.good{background:#e6f7ee;color:#12643d}.answer-feedback.bad{background:#fff0ec;color:#963b2e}.answer-feedback p{margin:8px 0 0}
@media(max-width:900px){.editor-layout{grid-template-columns:1fr}.editor-sidebar{display:none}.arena-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}.turn-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:8px 14px;min-height:0}.turn-card .eyebrow,.turn-card p,.turn-hint,.turn-footer{display:none}.turn-card h2{margin:0;font-size:1.15rem}.turn-symbol{font-size:1.3rem}.board-panel{min-height:0}.game-board svg{max-height:100%}.arena-heading .back{display:none}}
@media(max-width:700px){.header{height:58px;padding:0 14px}.brand-label{display:none}main{padding:16px}.hero,.play-setup{grid-template-columns:1fr;min-height:0}.hero-board{order:-1}.hero-board svg{max-height:260px}.hero-copy h1{font-size:2.55rem}.desktop{display:none}.steps-strip{grid-template-columns:1fr}.section-heading,.editor-heading{display:block}.editor-actions{text-align:left}.source-grid,.metadata-grid{grid-template-columns:1fr}.bank-tools{display:block}.bank-tools select{width:100%;margin-top:8px}.two-col{grid-template-columns:1fr}.game-answers{grid-template-columns:1fr}.game-answer{min-height:64px}.game-question #modal-title{font-size:clamp(1.25rem,5vw,2rem)}body.playing{overflow:auto}body.playing main{height:auto;min-height:100dvh;overflow:visible;padding:8px}body.playing .arena{min-height:calc(100dvh - 16px);height:auto}.arena-heading h1{max-width:none}.arena-heading .row{width:100%}.arena-heading{align-items:flex-start;flex-wrap:wrap}.arena-heading button{font-size:.8rem}.arena-layout{display:flex;flex-direction:column}.game-board{height:68vw;min-height:290px;flex:none}.turn-card{margin-bottom:8px}dialog.game-question{width:calc(100vw - 12px);max-height:96dvh;padding:16px}.game-question .modal-actions button{flex:1}.question-counter{display:none}}
@media(max-height:720px) and (min-width:701px){body.playing main{padding:7px}.arena-heading{min-height:42px}.arena-heading button{min-height:34px;padding:5px 9px}.score-card{padding:4px 8px}.board-panel{padding:6px}.turn-card{padding:12px}.turn-card p{font-size:.84rem}.board-caption{display:none}dialog.game-question{max-height:97dvh}.game-question #modal-title{font-size:clamp(1.3rem,2.4vw,2rem);margin:10px 0}.game-answer{min-height:60px}}
.brand-group{display:flex;align-items:center;min-width:0}.header .brand-label{display:inline-flex;align-items:center;min-height:40px;white-space:nowrap;font-weight:800}.header .brand-label:hover{color:#743759}.header .nav-link{border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);padding:10px 15px;min-height:42px}.header .nav-link:hover{border-color:#95a8c9;background:#f7f8fb}
@media(max-width:700px){.header .brand-label{display:inline-flex;font-size:.66rem}.header .nav-link{padding:8px 10px;font-size:.83rem}}
@media(max-width:390px){.header .brand{font-size:0}.header .brand svg{width:32px;height:34px}.header .brand-label{margin-left:0;padding-left:8px}.header nav{gap:0}}

/* SVG skupina má obdĺžnikový focus outline. Zvýraznenie pri klávesnici
   už kreslí samotný polygon v pravidle .hex:focus-visible polygon vyššie. */

/* Súhrn patrí k tvorbe otázok, nie do plávajúceho bočného panela. */
.editor-layout{display:block;max-width:1100px;margin-inline:auto}
.editor-main{grid-template-columns:minmax(0,1fr);min-width:0}
.editor-main>.panel{min-width:0}
.creation-summary{margin-top:24px;padding:18px 20px;background:#f4f7fc;border:1px solid #dce5f2;border-radius:14px}
.creation-summary h3{margin:8px 0 12px}
.creation-summary .progress-label{align-items:center}
.creation-summary .progress-label strong{font-size:1.5rem}
.creation-summary .progress-label span{font-size:.85rem;color:var(--muted)}
.creation-summary p:last-child{margin-bottom:0}
.review-all{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px;padding:18px;background:#fff8e7;border:1px solid #ead399;border-radius:12px}
.review-all p{margin:5px 0 0;color:#635537;font-size:.85rem;line-height:1.45}
.review-all button{flex:none}
.editor-bottom-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}
@media(max-width:700px){.review-all{display:block}.review-all button{width:100%;margin-top:14px}.creation-summary{padding:15px}}
.source-url-row{display:flex;gap:9px;align-items:center}.source-url-row input{min-width:0;flex:1}.source-url-row button{white-space:nowrap}.student-share{display:grid;gap:10px;margin:18px 0;padding:18px;border-radius:13px;background:#edf3ff;border:1px solid #d5e1ff}.student-share a{overflow-wrap:anywhere;font-weight:750;color:var(--blue)}.student-share button{justify-self:start}
@media(max-width:700px){.source-url-row{display:grid}.source-url-row button,.student-share button{width:100%}}
.game-board .hex:focus,.game-board .hex:focus-visible{outline:none}
