:root{color-scheme:light;--ink:#213e34;--forest:#214d3e;--muted:#5b685d;--line:#dad7c9;--paper:#f7f5ee;--cream:#fcfaf4;--gold:#b68540;--serif:"Georgia Pro",Georgia,serif;--sans:"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--paper);font:1rem/1.5 var(--sans);-webkit-tap-highlight-color:transparent}
button,select{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:default}
button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #377ba2;outline-offset:4px}
button:hover:not(:disabled){filter:brightness(.97)}
[hidden]{display:none!important}
.symbols{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
.outline-btn,.check-btn,.undo-btn,.eyebrow,.primary-btn,.icon-btn{display:inline-flex;align-items:center;justify-content:center}
.brandmark{width:.85em;height:.85em;vertical-align:-.05em}
.undo-btn,.icon-btn{border:0;background:transparent}
.undo-btn:hover:not(:disabled){color:#956321}
.loop-progress{display:flex;align-items:center;flex-wrap:wrap;gap:4px 13px;margin:0;color:var(--ink);font-size:0.9375rem;font-variant-numeric:tabular-nums}
.loop-progress>span{white-space:nowrap}
.loop-stars{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:20px;color:#684b20;background:#f3e7cb}
.loop-stars>span{color:#8d601c}
@media(max-width:759px){.loop-progress{gap:3px 8px;font-size:0.875rem}}
.round-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-bottom:16px}
#round-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:var(--cream)}
.eyebrow{text-transform:uppercase;letter-spacing:1.85px;font-size:0.6875rem;font-weight:750;line-height:1.4;gap:6px;color:#655637}
.gold-rule{width:21px;height:2px;background:#b88b47;margin-right:2px}
.round-head h2{font:500 clamp(1.5rem,3vw,2rem)/1.12 var(--serif);letter-spacing:-.7px;margin:2px 0 0;color:#233e33}
.tray-hint{margin:0;color:var(--muted)}
.outline-btn,.primary-btn{border:1px solid #c7c9bb;border-radius:9px;padding:10px 15px;gap:9px;font-size:0.875rem;font-weight:650;background:#fbfaf5;white-space:nowrap;min-height:43px}
.game-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:24px;align-items:stretch}
.play-panel,.tray-panel{border:1px solid var(--line);border-radius:20px;background:var(--cream);box-shadow:0 3px 10px #27362608;min-width:0}
.play-panel{display:flex;flex-direction:column;overflow:hidden}
.felt{position:relative;flex:1;display:grid;place-items:center;isolation:isolate;overflow:hidden;padding:18px;
  background-color:#244f40;background-image:radial-gradient(ellipse at 44% 28%,#51735c 0,transparent 69%),linear-gradient(135deg,#355d49,#194638 82%);color:#f5eed7}
.felt::before{content:"";inset:0;position:absolute;z-index:-1;pointer-events:none;opacity:.34;background-image:radial-gradient(#f4f2d636 .75px,transparent .95px),radial-gradient(#0a211d4d .65px,transparent .9px);background-size:6px 6px,8px 8px;background-position:0 0,2px 3px}
.corner{width:24px;height:24px;position:absolute;pointer-events:none;opacity:.55;border-color:#cfb67a;border-style:solid;border-width:0}
.corner::after{content:"";position:absolute;width:4px;height:4px;background:#d0b977;transform:rotate(45deg);top:4px;left:4px}
.tl{top:15px;left:15px;border-width:1px 0 0 1px}
.tr{top:15px;right:15px;border-width:1px 0 0 1px;transform:rotate(90deg)}
.bl{bottom:15px;left:15px;border-width:1px 0 0 1px;transform:rotate(-90deg)}
.br{bottom:15px;right:15px;border-width:1px 0 0 1px;transform:rotate(180deg)}
.wheel{--correct:#73cb93;--neighbor:#f8c34c;width:min(100%,475px);aspect-ratio:1;position:relative}
.orbit{position:absolute;inset:8%;border-radius:50%;border:1.5px solid #c7b27c;box-shadow:0 0 0 4px #294c3b,0 0 0 5px #c7b27c70;pointer-events:none}
#orbit-links{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.orbit-segment{fill:none;stroke:transparent;stroke-width:6px;vector-effect:non-scaling-stroke}
.orbit-segment.is-correct{stroke:var(--correct)}
.orbit-segment.is-neighbor{stroke:var(--neighbor)}
#board{position:absolute;inset:0}
.tile{appearance:none;user-select:none;-webkit-user-select:none;position:relative;padding:0;transition:border-color .15s,box-shadow .15s,background-color .15s}
.tile:focus-visible{z-index:5}
.slot{display:grid;place-items:center;position:absolute;left:var(--x);top:var(--y);width:15.1%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;border:1.5px dashed #afbd94;background:#345d49;color:#ece8cc;font:500 clamp(1.125rem,1.7vw,1.5625rem)/1 var(--serif);box-shadow:0 0 0 4px #2a513e}
.slot.is-empty{background:radial-gradient(circle at 45% 37%,#507158,#3d624d)}
.slot.is-filled{background:#f7f0df;border:2.5px solid #e5d6b0}
.slot.is-anchor{border:3px solid #e2be79;box-shadow:0 0 0 3px #355440,0 0 0 4px #ccb278}
.slot.is-filled .tile-number{display:none}
.slot .tile-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.tile-image{display:block;object-fit:contain;pointer-events:none;-webkit-user-drag:none}
.slot .tile-image{width:100%;height:100%;border-radius:50%;object-fit:cover}
.slot.is-selected{outline:3px solid #ffda89;outline-offset:3px}
.slot.is-correct{border:4px solid var(--correct)}
.slot.is-neighbor{border:4px solid var(--neighbor)}
.slot.is-wrong{border:4px solid #ec7974}
.tile-mark{position:absolute;right:-1px;bottom:0;font:800 0.75rem/1.25rem var(--sans);width:20px;height:20px;border-radius:50%;background:#e4bd78;color:#283b2e;box-shadow:0 0 0 1px #253c2d}
.is-correct .tile-mark{background:var(--correct)}.is-neighbor .tile-mark{background:var(--neighbor)}.is-wrong .tile-mark{background:#f3958f}
#preview{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:54%;display:grid;justify-items:center;text-align:center;pointer-events:none}
.preview-image{width:clamp(68px,11.4vw,147px);max-width:64%;aspect-ratio:1;object-fit:cover;display:block;border-radius:50%;border:5px solid #f4efdc;box-shadow:0 0 0 1px #ac986a,0 0 0 7px #b8b38c20,0 6px 16px #12362945}
.preview-label{font:500 clamp(1.125rem,2.1vw,1.9375rem)/1.12 var(--serif);color:#fff7df;max-width:100%;margin-top:14px;text-wrap:balance}
.board-controls{background:#eeede2;padding:15px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #d7d6c7}
.attempt-title{display:flex;align-items:baseline;gap:8px;font-size:0.875rem;font-weight:700}
#attempts{color:#5d6c5d;font-size:0.8125rem;font-weight:500}
#attempt-dots{display:flex;gap:5px;margin-top:6px;align-items:center;min-height:8px}
#attempt-dots>*{background:#3c6c55;border:1px solid #3c6c55;width:9px;height:9px;border-radius:50%;display:block}
#attempt-dots .is-used,#attempt-dots .used,#attempt-dots .is-spent{background:none;border-color:#9da896}
.check-btn,.primary-btn{background:var(--forest);color:white;border:0;border-radius:9px;gap:9px;font-size:0.9375rem;font-weight:650;min-height:44px;padding:10px 18px}
.check-btn:disabled{background:#d9dece;color:#536454}
.tray-panel{padding:22px 23px 11px;display:flex;flex-direction:column}
.tray-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px 12px}
.tray-title-group{display:flex;align-items:center;gap:8px}
.tray-switches{display:flex;align-items:center;flex-wrap:wrap;gap:2px 14px}
.name-switch{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:0.875rem;font-weight:600;color:var(--forest);cursor:pointer}
.name-switch input{appearance:none;margin:0;width:35px;height:21px;padding:2px;border:1px solid #8a9587;border-radius:20px;background:#dee2d6;cursor:pointer}
.name-switch input::before{content:"";display:block;width:15px;height:15px;background:#5d6b5d;border-radius:50%;transition:transform .15s}
.name-switch input:checked{border-color:var(--forest);background:var(--forest)}
.name-switch input:checked::before{transform:translateX(14px);background:var(--cream)}
.name-switch input:focus-visible{outline:3px solid #377ba2;outline-offset:3px}
.tray-head h2{font:500 1.9375rem/1.12 var(--serif);letter-spacing:-.9px;margin:0}
.tray-count{color:#486353;font-size:0.8125rem;font-weight:650;background:#e8eddf;border:1px solid #d5dfce;border-radius:22px;padding:3px 10px}
.tray-hint{font-size:0.875rem;margin-top:4px;line-height:1.45}
#tray{margin-top:17px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:1;align-content:stretch}
.tray-tile{background:#f5efdf;border:1px solid #ded6c2;border-radius:11px;min-width:0;min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;overflow:hidden;padding:5px 4px;color:#223e32}
.tray-tile .tile-image{width:clamp(52px,5.2vw,75px);aspect-ratio:1}
.tray-tile .tile-label{display:block;font-size:0.8125rem;line-height:1.18;font-weight:600;text-align:center;text-wrap:balance;overflow-wrap:anywhere}
body:not(.with-names) .tray-tile .tile-label,body:not(.with-names) .preview-label{display:none}
.tray-tile.is-filled:hover{border-color:#a5a57f;box-shadow:0 2px 6px #6653341c}
.tray-tile.is-selected{border-color:#a87930;box-shadow:inset 0 0 0 2px #cc9c4d;background:#f5e9cf}
.tray-tile.is-empty{background:transparent;border:1px dashed #d9d6c5}
.tray-tile.is-empty::after{content:"";width:13px;height:13px;border:1px solid #d5d4c4;border-radius:50%}
.tray-tile.is-empty .tile-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.tray-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 12px;margin-top:7px}
.undo-btn{padding:5px 0;gap:7px;font-size:.94rem;min-height:44px;color:#365840;font-weight:600}
.pair-hint{margin:8px 0 0;padding:10px 12px;border-radius:8px;border:1px solid #c6d3bd;background:#eef2e6;line-height:1.45}
.undo-btn:disabled{color:#778272}
.undo-btn .icon{width:15px;height:15px}
.status{font-size:0.9375rem;color:#496048;margin:12px 0 0;text-wrap:pretty}
.status:empty{display:none}
#last-attempt{font-size:0.875rem;margin-top:10px;color:#47604f}
#last-attempt summary{cursor:pointer}
.is-drop-target,.is-drag-over{outline:3px solid #f2c771!important;outline-offset:3px}
.is-dragging{opacity:.55}
.drag-ghost,.tile-ghost{z-index:100;pointer-events:none}
dialog{color:var(--ink);background:var(--cream);border:1px solid #d7cdb8;border-radius:18px;width:min(460px,calc(100% - 30px));padding:0;box-shadow:0 20px 90px #071d1740;max-height:90dvh;overflow:auto}
dialog::backdrop{background:#122d26a8}
.dialog-inner{padding:25px}
.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.dialog-inner h2,#results h2{font:500 2.0625rem/1.15 var(--serif);letter-spacing:-1px;margin:0}
.icon-btn{width:42px;height:42px;border:1px solid var(--line);border-radius:50%;padding:0}
.dialog-inner p,.rules{color:#435848;font-size:1rem}
#names-warning{margin:0 0 7px}
.names-actions{display:flex;gap:10px;margin-top:22px}
.names-actions button{flex:1}
.rules{padding-left:23px}.rules li{margin:10px 0;padding-left:3px}
.legend{display:flex;gap:9px 15px;flex-wrap:wrap;margin:20px 0;font-size:0.875rem}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend b{width:23px;height:23px;color:#183d30;text-align:center;border-radius:50%;line-height:23px}
.good{background:#a7dbad}.near{background:#f3d581}.bad{background:#f4b2a4}
.select-label{display:block;margin:20px 0 7px}
#round-choices{list-style:none;max-height:40vh;overflow:auto;overscroll-behavior:contain;margin:12px 0 0;padding:3px;border:1px solid var(--line);border-radius:8px;background:#fffef9}
#round-choices:empty{display:none}
.round-choice{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:8px 10px;border:0;border-radius:5px;background:transparent;text-align:left;color:var(--ink);font:inherit;cursor:pointer}
.round-choice:hover,.round-choice[aria-current=true]{background:#eaf0e1}
.round-choice:focus-visible{outline:2px solid #9a602a;outline-offset:-2px}
.round-choice .round-state{flex:none;font-size:.85rem;color:#445e4e}
#results{margin-top:20px;background:var(--cream);border:1px solid var(--line);border-radius:16px;padding:24px}
.result-list{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 22px;margin:20px 0 0;padding:0}
.result-step{border-top:1px solid #dedacd;padding:12px 0}
.result-images{display:flex;align-items:center;gap:5px}
.result-images img,.result-step img{width:48px;height:48px;border-radius:50%;object-fit:cover}
.result-caption{font-weight:700;line-height:1.35}
.result-link{color:#4b5a4d;margin:4px 0 0}
.tray-empty{display:none}
.tray-tile .tile-image{border-radius:50%;mix-blend-mode:normal}
.drag-ghost{border-radius:50%;box-shadow:0 4px 15px #19342655}
.tray-panel.is-complete #tray{display:block;flex:0}
.tray-panel.is-complete .tray-foot{margin-top:auto}
.round-end-actions{display:grid;justify-items:start;align-content:start;gap:16px}
.pair-viewer{width:100%;background:#f3eedf;border:1px solid #e0d6bf;border-radius:13px;text-align:center;padding:clamp(12px,2vw,22px)}
.pair-photos,.pair-controls{display:flex;align-items:center;justify-content:center;gap:clamp(9px,1.6vw,20px)}
.pair-photo{width:clamp(52px,7.3vw,98px);height:auto;aspect-ratio:1;border-radius:50%;border:1px solid #d8cba9;object-fit:cover}
.pair-arrow{color:#9e804a;font-size:1.4375rem}
.pair-names{font:500 clamp(1.1875rem,2vw,1.5625rem)/1.15 var(--serif);margin:13px 0 6px;text-wrap:balance}
.pair-explanation{margin:0 auto 12px;max-width:32ch;color:#4e5d4f;font-size:0.9375rem;line-height:1.4}
.pair-prev,.pair-next{border:1px solid #c9c5ae;border-radius:50%;background:#fdfaf1;color:#294d3d;width:40px;height:40px;font:1.5625rem/1 var(--sans)}
.pair-count{font-size:0.8125rem;font-weight:650;color:#536350}
.solution-toggle{border:1px solid #afbbab;background:#e5ecdd;border-radius:9px;padding:10px 16px;font-weight:600}
.result-jump{color:#2d5946;text-underline-offset:4px}
.slot.is-solution{border-color:#e5c783}
.result-caption{font-size:1.125rem;margin:7px 0 0}
.result-arrow{color:#8d7749}
#results{scroll-margin-top:20px}
.feedback-key{display:none;gap:8px 14px;flex-wrap:wrap;color:#455646;font-size:0.875rem;margin:14px 0 0}
.page.has-feedback .feedback-key{display:flex}
.feedback-key span{display:inline-flex;gap:5px;align-items:center}
.feedback-key b{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;color:#173d2d}
@media(min-width:800px) and (max-height:790px){.round-head{margin-bottom:12px}.wheel{max-width:416px}.felt{padding:14px}.tray-panel{padding-top:15px}#tray{margin-top:11px;gap:6px}.tray-tile{min-height:68px}.tray-tile .tile-image{width:49px}.board-controls{padding-block:12px}.tray-foot{margin-top:3px}}
@media(max-width:960px) and (min-width:760px){.game-layout{gap:15px}.tray-panel{padding:16px 13px 8px}.tray-tile .tile-label{font-size:0.75rem}.felt{padding:13px}.board-controls{padding:13px}.tray-tile{min-height:75px}}
@media(max-width:759px){.round-head{margin-bottom:13px;gap:8px}.eyebrow{font-size:0.625rem;letter-spacing:1.3px}.outline-btn{font-size:0.8125rem;gap:5px;padding:7px 9px;min-height:38px}.outline-btn .icon{width:16px}.game-layout{grid-template-columns:1fr;gap:12px}.play-panel,.tray-panel{border-radius:15px}.felt{padding:12px}.wheel{width:min(100%,370px)}.preview-image{width:clamp(82px,22vw,123px);max-width:65%;border-width:4px}.preview-label{font-size:clamp(1.0625rem,4vw,1.375rem);margin-top:10px}.slot{font-size:1.25rem}.corner{width:15px;height:15px}.tl,.tr{top:10px}.tl,.bl{left:10px}.tr,.br{right:10px}.bl,.br{bottom:10px}.board-controls{padding:9px 14px}.check-btn{padding:7px 12px;min-height:39px;font-size:0.875rem}.attempt-title{font-size:0.8125rem}#attempt-dots{margin-top:3px}.tray-panel{padding:12px 12px 6px}.tray-head h2{font-size:1.5625rem}.tray-count{font-size:0.75rem}.tray-hint{font-size:0.8125rem;margin-top:1px}#tray{grid-template-columns:repeat(6,minmax(0,1fr));margin-top:10px;gap:5px}.tray-tile{padding:3px;min-height:0;aspect-ratio:1;border-radius:8px}.tray-tile .tile-image{width:100%;height:100%;object-fit:contain}.tray-tile .tile-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.tray-foot{margin-top:2px}.status{font-size:0.8125rem;margin-top:9px}.result-list{grid-template-columns:1fr}#results{padding:17px}.dialog-inner{padding:19px}}
@media(max-width:365px){.felt{padding:9px}}
@media(max-width:759px){
  .name-switch{font-size:0.8125rem}
  .with-names #tray{grid-template-columns:repeat(4,minmax(0,1fr))}
  .with-names .tray-tile{aspect-ratio:auto;min-height:78px;justify-content:flex-start;padding:6px 3px}
  .with-names .tray-tile.is-empty{justify-content:center}
  .with-names .tray-tile .tile-image{width:min(46px,100%);height:auto}
  .with-names .tray-tile.is-filled .tile-label{position:static;width:auto;height:auto;overflow:visible;clip-path:none;font-size:max(0.9375rem,.95rem);line-height:1.18;overflow-wrap:anywhere}
}
@media(max-width:365px){.with-names #tray{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(forced-colors:active){.name-switch input{appearance:auto;width:21px;height:21px}.name-switch input::before{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Verzia 2.3: čitateľnejšie drobné texty a väčšie tlačidlá. */
.eyebrow{font-size:.8125rem}
#attempts,.tray-count{font-size:.875rem}
.tray-tile .tile-label{font-size:.875rem}
.pair-prev,.pair-next{width:44px;height:44px}
@media(max-width:960px) and (min-width:760px){.tray-tile .tile-label{font-size:.8125rem}}
@media(max-width:759px){.check-btn,.outline-btn{min-height:44px}}
/* Tablet na šírku: kruh podľa výšky obrazovky, aby sa zmestil aj s tlačidlom Skontrolovať. */
@media(min-width:760px) and (orientation:landscape){
  .wheel{width:min(100%,475px,max(300px,calc(100vh - 345px)));width:min(100%,475px,max(300px,calc(100dvh - 345px)))}
  #tray{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:760px) and (orientation:landscape) and (max-height:790px){
  .tray-panel{padding-top:12px}#tray{margin-top:6px;gap:5px}.tray-tile{min-height:0;padding:4px 3px}.tray-tile .tile-image{width:46px}.tray-foot{margin-top:0}
}
/* Vysoký tablet na výšku: kruh na celú šírku, ponuka obrázkov pod ním. */
@media(min-width:760px) and (orientation:portrait) and (min-height:1100px){
  .game-layout{grid-template-columns:1fr;gap:12px}
  .wheel{width:min(100%,660px,calc(100vh - 745px));width:min(100%,660px,calc(100dvh - 745px))}
  .preview-image{width:58%;max-width:230px}
  .preview-label{font-size:clamp(1.25rem,3.2vw,2rem)}
  #tray{grid-template-columns:repeat(6,minmax(0,1fr));margin-top:10px}
  .tray-tile{min-height:0}
  .tray-tile .tile-image{width:min(100%,72px)}
}
/* Verzia 2.5 – nízke okno na šírku: názov kola v jednom riadku, nižšie lišty, kruh podľa výšky. */
@media(min-width:760px) and (orientation:landscape) and (max-height:700px){
  .round-head{margin-bottom:6px}
  .round-head>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 12px}
  .round-head h2{font-size:1.5rem;margin:0}
  .felt{padding:8px}
  .board-controls{padding:6px 14px}
  .wheel{width:min(100%,475px,max(300px,calc(100vh - 262px)));width:min(100%,475px,max(300px,calc(100dvh - 262px)))}
  .tray-panel{padding:8px 12px 6px}
  .tray-panel>.tray-hint:not(#mode-note){display:none}
  .tray-tile .tile-image{width:40px}
  .tray-tile .tile-label{line-height:1.1}
}
/* 2.6.6: dva obrázky z nápovedy „Ukáž jedno spojenie“ */
.tile.is-hinted{box-shadow:0 0 0 4px #f2b632,0 0 14px 5px rgba(242,182,50,.7)}
.tile.tile.no-image .tile-label,body .tile.tile.no-image .tile-label{position:static;display:block;width:auto;height:auto;overflow:hidden;clip-path:none;font-size:.8125rem;line-height:1.12;text-align:center;overflow-wrap:anywhere;padding:2px}
