:root{color-scheme:dark;--ink:#f6efd9;--muted:#b9ad98;--table:#17130f;--line:rgba(236,210,157,.17);--gold:#d7aa54;--gold-bright:#f3cf79;--shadow:0 16px 40px rgba(0,0,0,.32);--card-width:150px}
*{box-sizing:border-box}
body{margin:0;min-width:320px;min-height:100vh;overflow:hidden;color:var(--ink);background:radial-gradient(circle at 20% -10%,rgba(125,85,45,.25),transparent 34rem),radial-gradient(circle at 100% 30%,rgba(36,72,58,.22),transparent 40rem),var(--table);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,select{font:inherit}button:focus-visible,select:focus-visible{outline:3px solid var(--gold-bright);outline-offset:3px}h1,h2,h3,p{margin:0}
.grain{position:fixed;inset:0;pointer-events:none;opacity:.25;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E")}
.game-shell{position:relative;height:100vh;max-width:1500px;margin:0 auto;padding:12px 24px 92px;overflow:hidden}
.topbar{display:grid;grid-template-columns:auto minmax(360px,1fr) auto auto;align-items:center;gap:18px;min-height:67px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px}.brand-mark{display:grid;place-items:center;width:40px;height:40px;color:#1d160e;border:1px solid #efca7b;border-radius:50%;background:linear-gradient(145deg,#f0cc78,#a8732c);box-shadow:inset 0 0 0 4px #372716;font-size:1.25rem}.brand h1{font-size:1.18rem;font-weight:600}.brand p{margin-top:1px;color:var(--muted);font-size:.69rem}
.resources{display:flex;flex-wrap:nowrap;justify-content:center;gap:6px}.resource{display:flex;align-items:center;gap:5px;min-width:47px;padding:6px 8px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.035)}.resource i{font-style:normal;font-size:1rem}.resource strong{font-size:.78rem;font-weight:500}
.counters{display:flex;align-items:center;border:1px solid var(--line);border-radius:11px;background:rgba(31,25,19,.76)}.counters>div{min-width:65px;padding:6px 12px;text-align:center}.counters>div+div{border-left:1px solid var(--line)}.counters span{display:block;color:var(--muted);font-size:.6rem;letter-spacing:.1em;text-transform:uppercase}.counters strong{font-size:1rem;font-weight:600}
.header-tools{position:relative;display:flex;align-items:center}.gear-button{width:39px;height:39px;color:var(--ink);border:1px solid transparent;background:transparent;cursor:pointer;font-size:1.05rem}.gear-button:hover,.gear-button[aria-expanded="true"]{color:var(--gold-bright);border-color:var(--line)}
.table-area{padding:13px 0 10px}.eyebrow{color:var(--gold);font-size:.67rem;letter-spacing:.15em;text-transform:uppercase}.board-scroll{overflow-x:hidden;overflow-y:hidden;padding:9px 2px 12px;scrollbar-color:#6b5336 transparent;scrollbar-width:thin}.card-grid{display:grid;grid-template-columns:repeat(var(--max-columns),var(--card-width));grid-auto-rows:auto;align-items:start;gap:10px;width:100%;min-width:0}.card-slot{width:var(--card-width);aspect-ratio:5/8;border-radius:12px;transition:box-shadow .16s ease}.card-slot.drag-over{box-shadow:0 0 0 2px var(--gold-bright)}
.game-card{position:relative;isolation:isolate;width:100%;height:100%;overflow:hidden;color:var(--ink);border:1px solid rgba(227,196,132,.38);border-radius:12px;background:#211a13;box-shadow:0 9px 22px rgba(0,0,0,.34);cursor:grab;transition:border-color .18s ease,box-shadow .18s ease,opacity .18s ease}.game-card:active{cursor:grabbing}.game-card:hover{border-color:rgba(239,202,123,.78);box-shadow:0 0 0 1px rgba(239,202,123,.18),0 9px 22px rgba(0,0,0,.34)}.game-card.dragging{opacity:.28;transform:scale(.96)}
.card-art-full{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;background:#332a20}.card-shade{position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,rgba(7,6,5,.75),rgba(7,6,5,.05) 32%,rgba(7,6,5,.03) 63%,rgba(7,6,5,.67));pointer-events:none}
.card-header{position:absolute;top:0;right:0;left:0;display:grid;gap:2px;min-height:56px;padding:7px 8px 8px;background:rgba(43,43,43,.62);box-shadow:0 3px 10px #0005;backdrop-filter:blur(4px);text-shadow:0 1px 3px #000}.card-header-row{display:flex;align-items:center;justify-content:space-between;gap:7px}.card-kind{overflow:hidden;color:#f2ead7;font-size:.56rem;font-weight:400;letter-spacing:.13em;text-transform:uppercase;white-space:nowrap;text-overflow:ellipsis}.card-header-bottom{align-items:flex-end;padding-top:2px}.game-card .card-header h3{overflow:hidden;font-size:.84rem;font-weight:400;line-height:1.15;white-space:nowrap;text-overflow:ellipsis}.card-points{flex:0 0 auto;font-size:.67rem;font-weight:500}.state-pips{display:flex;gap:3px;padding:2px;border:0;border-radius:999px;background:transparent}.state-pips span{width:7px;height:7px;border:1px solid rgba(255,255,255,.65);border-radius:50%;background:transparent}.state-pips .active{border-color:var(--gold-bright);background:var(--gold-bright)}button.state-pips{cursor:pointer}button.state-pips:hover{box-shadow:0 0 0 1px var(--gold-bright)}
.production-space{position:absolute;top:60px;right:0;left:0;display:flex;align-items:center;justify-content:flex-start;gap:3px;width:100%;min-height:42px;padding:6px 8px;color:#fff;border:0;background:transparent;cursor:pointer;text-align:left}.production-item{display:grid;place-items:center;width:27px;height:27px;padding:0;border:1px solid rgba(255,240,204,.52);border-radius:50%;background:rgba(22,18,14,.78);box-shadow:0 2px 5px #000b,inset 0 0 0 1px rgba(0,0,0,.24);font-size:1rem;line-height:1;transition:transform .16s ease}.production-space:hover .production-item{transform:scale(1.12)}.static-production{right:auto;width:auto;min-height:0;font-size:1rem;text-shadow:0 2px 3px #000;cursor:default}
.effect-panel{position:absolute;right:8px;bottom:49px;left:8px;min-height:43px;padding:7px 8px;overflow:hidden;color:#f9f2df;border:1px solid rgba(255,245,215,.3);border-radius:6px;background:rgba(24,20,16,.54);box-shadow:0 3px 12px #0006;backdrop-filter:blur(4px);font-size:.62rem;font-weight:400;line-height:1.25;text-align:left}button.effect-panel{cursor:pointer}.effect-panel.active-effect:hover{border-color:rgba(255,226,145,.8);background:rgba(37,30,21,.72)}
.upgrade-panel{position:absolute;right:7px;bottom:7px;left:7px;display:flex;align-items:center;gap:4px;min-height:34px;padding:5px 7px;color:#fff1c7;border:1px solid rgba(242,201,111,.72);border-radius:7px;background:rgba(40,27,15,.88);box-shadow:0 3px 10px #0008;backdrop-filter:blur(4px);cursor:pointer}.upgrade-panel>span{flex:0 0 auto;font-size:.86rem}.upgrade-panel strong{font-size:.69rem;font-weight:400;letter-spacing:0;white-space:nowrap}.upgrade-lines{display:grid;gap:2px;min-width:0}.upgrade-line{display:flex;align-items:center;gap:4px;min-width:0}.upgrade-line+.upgrade-line{padding-top:2px;border-top:1px solid rgba(255,255,255,.13)}.upgrade-panel:hover:not(:disabled){border-color:#ffe19a;background:rgba(92,62,25,.95)}.upgrade-panel:disabled{color:#b8ad97;border-color:rgba(180,169,147,.38);background:rgba(49,45,40,.72);cursor:not-allowed}.upgrade-panel:disabled span,.upgrade-panel:disabled strong{opacity:.78}.game-card.multiple-upgrades .effect-panel{bottom:76px}
.empty-state{padding:80px 0;color:var(--muted);text-align:center}.flying-card{position:fixed;z-index:50;margin:0;pointer-events:none;transform-origin:center}
.action-dock{position:fixed;z-index:20;right:24px;bottom:10px;left:24px;display:flex;justify-content:space-between;align-items:center;max-width:1452px;height:70px;margin:auto;padding:9px 12px;border:1px solid rgba(230,194,122,.26);border-radius:15px;background:rgba(29,23,17,.94);box-shadow:var(--shadow);backdrop-filter:blur(16px)}.dock-side,.pile-zone{display:flex;align-items:center}.dock-side{gap:13px}.pile-zone{gap:10px}.pile-zone strong{font-size:.76rem;font-weight:500}.deck-stack{position:relative;display:grid;place-items:center;width:35px;height:47px;border:1px solid #d5ab5f;border-radius:5px;background:repeating-linear-gradient(45deg,#5b3f25,#5b3f25 5px,#2d241b 5px,#2d241b 10px);box-shadow:-3px 3px #1b1712,-5px 5px #6c5337}.deck-stack b{display:grid;place-items:center;width:22px;height:22px;color:#1e170e;border-radius:50%;background:var(--gold-bright);font-size:.69rem}.discard-pile{opacity:.64}.discard-stack{border-color:#837b6e;background:repeating-linear-gradient(-35deg,#494641,#494641 5px,#242321 5px,#242321 10px);box-shadow:2px 2px #181715,4px 4px #55514a;transform:rotate(3deg)}.discard-stack b{color:#e7e1d7;background:#55514a}
.draw-two{position:relative;width:46px;height:56px;color:#241a0d;border:1px solid #e2b962;border-radius:7px;background:linear-gradient(145deg,#f1cf7d,#c8943f);box-shadow:-3px 3px #332514;cursor:pointer;font-size:1.1rem;font-weight:700}.draw-two:disabled{cursor:not-allowed;filter:grayscale(.8);opacity:.45}.end-turn,.secondary-action,.upgrade-action{min-height:38px;padding:8px 13px;color:var(--ink);border:1px solid var(--line);border-radius:9px;background:#373027;cursor:pointer}.upgrade-action{color:#23190b;border-color:#dfb65e;background:linear-gradient(#f1cf80,#c99740)}.upgrade-action:disabled{color:#aaa39a;border-color:#5d5953;background:#44413d;cursor:not-allowed}.end-turn:disabled{opacity:.45;cursor:not-allowed}
dialog{width:min(1100px,calc(100vw - 28px));max-height:calc(100vh - 28px);overflow:auto;color:var(--ink);border:1px solid rgba(232,199,130,.35);border-radius:17px;background:#1f1913;box-shadow:0 30px 90px #000}dialog::backdrop{background:rgba(7,6,5,.78);backdrop-filter:blur(7px)}.dialog-close{position:sticky;z-index:3;top:0;float:right;width:37px;height:37px;color:var(--ink);border:1px solid var(--line);border-radius:50%;background:#2e261d;font-size:1.3rem;cursor:pointer}.dialog-header{margin:7px 52px 18px 3px}.dialog-header h2{margin:4px 0;font-size:1.45rem;font-weight:550}.dialog-header p{color:var(--muted);font-size:.84rem}
.stage-gallery{clear:both;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stage-card{overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#2b241c}.stage-card.current{border-color:var(--gold-bright);box-shadow:0 0 0 2px rgba(243,207,121,.18)}.stage-card.unreachable{opacity:.72}.stage-card img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover}.stage-card-body{padding:11px}.stage-label{color:var(--gold);font-size:.68rem;text-transform:uppercase;letter-spacing:.1em}.stage-card h3{margin:5px 0 8px;font-size:1rem;font-weight:500}.stage-card p{min-height:45px;color:var(--muted);font-size:.76rem;line-height:1.35}.card-stats{display:flex;min-height:22px;gap:5px;margin:6px 0}.stat-chip{padding:3px 7px;border-radius:999px;background:rgba(255,255,255,.06);font-size:.74rem}.stage-card .upgrade-action{width:100%;margin-top:9px}
.upgrade-dialog{width:min(700px,calc(100vw - 28px));padding:23px}.upgrade-route{clear:both;display:grid;grid-template-columns:178px auto 178px;justify-content:center;align-items:center;gap:24px}.preview-label{display:block;margin-bottom:6px;color:var(--muted);font-size:.68rem;letter-spacing:.09em;text-align:center;text-transform:uppercase}.preview-card{width:178px;height:auto;aspect-ratio:5/8;cursor:default}.preview-card:hover{transform:none}.route-arrow{color:var(--gold-bright);font-size:1.7rem}.upgrade-targets{display:flex;justify-content:center;gap:7px;margin:-4px 0 16px}.upgrade-choice{display:flex;align-items:center;gap:8px;padding:7px 10px;color:var(--ink);border:1px solid var(--line);border-radius:999px;background:#2b241c;cursor:pointer}.upgrade-choice span{font-size:.76rem}.upgrade-choice strong{color:var(--gold-bright);font-size:.78rem;font-weight:400}.upgrade-choice.selected{border-color:var(--gold-bright)}.upgrade-choice:disabled{opacity:.45;cursor:not-allowed}.static-upgrade{cursor:default}.upgrade-confirm-bar{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.choice-dialog{width:min(720px,calc(100vw - 28px));padding:23px}.discard-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.discard-choice{display:grid;grid-template-columns:80px 1fr;overflow:hidden;padding:0;color:var(--ink);border:1px solid var(--line);border-radius:10px;background:#2b241c;cursor:pointer;text-align:left}.discard-choice.selected{border-color:var(--gold-bright);box-shadow:0 0 0 2px rgba(243,207,121,.14)}.discard-choice img{width:80px;height:68px;object-fit:cover}.discard-choice span{display:grid;align-content:center;gap:3px;padding:7px}.discard-choice small{color:var(--muted);font-size:.62rem;text-transform:uppercase}.discard-choice strong{font-size:.77rem;font-weight:500}
.rules-dialog,.settings-dialog{width:min(620px,calc(100vw - 28px));padding:25px}.rules-dialog h2,.settings-dialog h2{margin:5px 45px 14px 0;font-size:1.4rem;font-weight:550}.rules-dialog ol{padding-left:21px;color:#d9cfbe;line-height:1.55}.rules-dialog p,.settings-dialog p{color:var(--muted)}.settings-dialog label{display:block;margin:22px 0 7px;font-size:.8rem}.settings-dialog select{width:100%;padding:10px;color:var(--ink);border:1px solid var(--line);border-radius:8px;background:#30281f}
.round-transition[hidden]{display:none}.round-transition{position:fixed;z-index:100;inset:0;display:grid;place-items:center;background:radial-gradient(circle,rgba(61,45,25,.88),rgba(8,7,6,.97));animation:round-in .35s ease both}.round-transition.leaving{animation:round-out .32s ease both}.round-transition-copy{position:absolute;top:22%;display:grid;gap:7px;text-align:center}.round-transition-copy span{color:var(--gold);font-size:.78rem;letter-spacing:.18em;text-transform:uppercase}.round-transition-copy strong{font-size:1.8rem;font-weight:500}.shuffle-cards{position:relative;width:180px;height:210px;margin-top:80px}.shuffle-cards i{position:absolute;inset:0;margin:auto;width:112px;height:174px;border:2px solid #d2aa61;border-radius:9px;background:repeating-linear-gradient(45deg,#573d24,#573d24 8px,#241d16 8px,#241d16 16px);box-shadow:0 12px 25px #000;animation:shuffle 1.1s ease-in-out infinite}.shuffle-cards i:nth-child(2){animation-delay:.1s}.shuffle-cards i:nth-child(3){animation-delay:.2s}.shuffle-cards i:nth-child(4){animation-delay:.3s}.shuffle-cards i:nth-child(5){animation-delay:.4s}@keyframes shuffle{0%,100%{transform:translateX(0) rotate(0)}35%{transform:translateX(75px) rotate(12deg)}70%{transform:translateX(-42px) rotate(-7deg)}}@keyframes round-in{from{opacity:0}to{opacity:1}}@keyframes round-out{to{opacity:0}}
.toast{position:fixed;z-index:110;left:50%;bottom:90px;padding:10px 15px;color:var(--ink);border:1px solid rgba(236,204,140,.35);border-radius:9px;background:#30271d;box-shadow:var(--shadow);transform:translate(-50%,120px);opacity:0;transition:.25s ease}.toast.visible{transform:translate(-50%,0);opacity:1}

/* Karta se škáluje jako jeden celek podle skutečné šířky v aktivní zóně. */
.card-grid .game-card{border-radius:var(--cardRadius)}
.card-grid .card-header{gap:var(--headerGap);min-height:var(--headerHeight);padding:var(--headerPadTop) var(--headerPadSide) var(--headerPadBottom)}
.card-grid .card-header-row{gap:var(--rowGap)}
.card-grid .card-kind{font-size:var(--kindFont)}
.card-grid .card-header-bottom{padding-top:var(--headerGap)}
.card-grid .card-header h3{font-size:var(--titleFont)}
.card-grid .card-points{font-size:var(--pointsFont)}
.card-grid .state-pips{gap:var(--pipsGap);padding:var(--pipsPad)}
.card-grid .state-pips span{width:var(--pipSize);height:var(--pipSize)}
.card-grid .production-space{top:var(--productionTop);gap:var(--productGap);min-height:var(--productionHeight);padding:var(--productionPadY) var(--productionPadX)}
.card-grid .production-item{width:var(--productWidth);height:var(--productHeight);font-size:var(--productFont)}
.card-grid .effect-panel{right:var(--effectSide);bottom:var(--effectBottom);left:var(--effectSide);min-height:var(--effectHeight);padding:var(--effectPadY) var(--effectPadX);border-radius:var(--effectRadius);font-size:var(--effectFont)}
.card-grid .upgrade-panel{right:var(--upgradeSide);bottom:var(--upgradeBottom);left:var(--upgradeSide);gap:var(--upgradeGap);min-height:var(--upgradeHeight);max-width:none;padding:var(--upgradePadY) var(--upgradePadX);border-radius:var(--upgradeRadius)}
.card-grid .upgrade-panel span{font-size:var(--upgradeIcon)}
.card-grid .upgrade-panel strong{font-size:var(--upgradeFont)}

/* Běžné rozbalovací menu pod ozubeným kolem. */
.settings-popover[hidden]{display:none}.settings-popover{position:absolute;z-index:60;top:46px;right:0;width:238px;padding:9px;color:var(--ink);border:1px solid rgba(232,199,130,.3);border-radius:11px;background:rgba(35,28,21,.98);box-shadow:0 18px 48px #000b;backdrop-filter:blur(14px)}.settings-section{padding:7px 7px 10px}.settings-label{display:block;margin-bottom:8px;color:var(--muted);font-size:.75rem}.column-options{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.column-options button{height:34px;color:var(--ink);border:1px solid var(--line);border-radius:7px;background:#2c251d;cursor:pointer}.column-options button:hover{border-color:rgba(243,207,121,.55)}.column-options button.selected{color:#21170a;border-color:var(--gold-bright);background:linear-gradient(#f1cf80,#c99740);font-weight:700}.settings-actions{display:grid;padding-top:6px;border-top:1px solid var(--line)}.settings-actions button{display:flex;align-items:center;gap:9px;width:100%;padding:9px 8px;color:var(--ink);border:0;border-radius:7px;background:transparent;cursor:pointer;text-align:left}.settings-actions button:hover{background:rgba(255,255,255,.065)}.settings-actions span{display:grid;place-items:center;width:21px;color:var(--gold-bright);font-size:1rem}
.settings-toggle{display:flex;align-items:center;gap:8px;margin-top:12px;padding-top:11px;color:#ddd2bf;border-top:1px solid var(--line);font-size:.76rem;cursor:pointer}.settings-toggle input{width:16px;height:16px;accent-color:var(--gold)}
.build-number{padding:9px 14px 5px;color:#8f8475;border-top:1px solid var(--line);font-size:.68rem;text-align:right}.build-number strong{color:#b9aa91;font-weight:500}
.card-list-dialog{width:min(1500px,calc(100vw - 28px));max-width:none;height:min(92vh,1050px);padding:24px;overflow:auto}.card-list-dialog::backdrop{background:#090806df;backdrop-filter:blur(5px)}.card-list-rows{display:grid;gap:18px}.card-list-row{display:grid;grid-template-columns:54px minmax(0,1fr);gap:14px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#18140f}.card-list-number{padding-top:8px;color:var(--gold-bright);font:600 .9rem/1 ui-monospace,SFMono-Regular,Consolas,monospace}.card-list-states{display:flex;gap:12px;min-width:0;overflow-x:auto;padding:1px 2px 10px}.card-list-states .preview-card{flex:0 0 178px;width:178px}.card-list-states .game-card{--card-scale:1;--card-radius:12px;--header-height:56px;--header-gap:2px;--header-pad-top:7px;--header-pad-side:8px;--header-pad-bottom:8px;--row-gap:7px;--kind-font:9px;--title-font:13.5px;--points-font:10.7px;--pips-gap:3px;--pips-pad:2px;--pip-size:7px;--production-top:60px;--production-height:42px;--production-pad-y:6px;--production-pad-x:8px;--product-gap:2px;--product-width:27px;--product-height:27px;--product-font:16px;--effect-side:8px;--effect-bottom:49px;--effect-height:43px;--effect-pad-y:7px;--effect-pad-x:8px;--effect-radius:6px;--effect-font:10px;--upgrade-side:7px;--upgrade-bottom:7px;--upgrade-gap:4px;--upgrade-height:34px;--upgrade-max-width:128px;--upgrade-pad-y:5px;--upgrade-pad-x:7px;--upgrade-radius:7px;--upgrade-icon:13.8px;--upgrade-font:11px}
@media(max-width:680px){.card-list-dialog{padding:18px 10px}.card-list-row{grid-template-columns:40px;gap:7px;padding:9px}.card-list-states .preview-card{flex-basis:152px;width:152px}}

/* Odhazovací balíček je vodorovný, rolovatelný pás plných karet. */
.discard-browser-dialog{width:min(1180px,calc(100vw - 28px));padding:23px;overflow:hidden}.discard-card-strip{clear:both;display:flex;align-items:flex-start;gap:12px;width:100%;padding:3px 3px 16px;overflow-x:auto;overflow-y:hidden;scrollbar-color:#8a683d #17130f;scrollbar-width:thin}.discard-view-card,.full-card-choice{flex:0 0 178px;width:178px;padding:0;color:inherit;border:1px solid transparent;border-radius:13px;background:transparent;cursor:pointer}.discard-view-card:hover,.full-card-choice:hover,.full-card-choice.selected{border-color:var(--gold-bright);box-shadow:0 0 0 2px rgba(243,207,121,.16)}.discard-view-card .preview-card,.full-card-choice .preview-card{width:100%;pointer-events:none}.discard-empty{clear:both;padding:60px 20px;color:var(--muted);text-align:center}.discard-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.full-card-choice.selected{transform:translateY(-5px)}

/* Nejprve se ukážou nové karty, teprve potom animace míchání. */
.round-transition{grid-template-rows:auto 1fr}.round-transition-copy{position:static;align-self:end;margin-top:7vh}.round-new-cards{display:flex;align-items:center;justify-content:center;gap:18px;min-height:310px}.round-new-cards .preview-card{width:170px;box-shadow:0 24px 55px #000}.phase-discovery .shuffle-cards{display:none}.phase-shuffle .round-new-cards{display:none}.phase-shuffle .shuffle-cards{display:block;align-self:start}.phase-shuffle .round-transition-copy{align-self:end}
/* Pevná herní hlavička; pod ní se posouvají pouze karty. */
.game-shell{display:grid;grid-template-rows:auto minmax(0,1fr);height:100vh;max-width:none;padding:0 22px;overflow:hidden}
.topbar{position:relative;z-index:40;display:grid;grid-template-columns:auto minmax(250px,1fr) auto auto auto;align-items:center;gap:12px;min-height:78px;padding:9px 0;border-bottom:1px solid var(--line);background:rgba(23,19,15,.9);backdrop-filter:blur(16px)}
.brand{gap:9px;min-width:max-content}.brand-mark{display:block;width:48px;height:42px;overflow:hidden;border:1px solid rgba(239,202,123,.72);border-radius:9px;background:#2b241c;box-shadow:inset 0 0 0 2px #241b12,0 4px 12px #0008}.brand-mark img{display:block;width:100%;height:100%;object-fit:cover}.brand h1{font-family:Georgia,"Times New Roman",serif;font-size:1.35rem;font-weight:500;letter-spacing:.035em}
.resources{justify-content:flex-start;gap:4px}.resource{min-width:43px;padding:5px 7px}.resource i{font-size:.92rem}.resource strong{font-size:.75rem}
.counters>div{min-width:54px;padding:5px 9px}.counters span{font-size:.56rem}.counters strong{font-size:.9rem}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:max-content}.pile-zone{gap:7px;min-width:68px}.pile-zone strong{font-size:.69rem;font-weight:500;white-space:nowrap}.header-actions button.pile-zone{padding:3px 4px;color:var(--ink);border:0;background:transparent;cursor:pointer}.header-actions .deck-stack{width:29px;height:39px;box-shadow:-2px 2px #1b1712,-4px 4px #6c5337}.header-actions .deck-stack b{width:19px;height:19px;font-size:.6rem}.header-actions .discard-stack{box-shadow:2px 2px #181715,3px 3px #55514a}
.turn-action{display:flex;align-items:center;justify-content:center;gap:7px;width:116px;height:44px;min-height:44px;padding:7px 10px;border-radius:8px;cursor:pointer}.turn-action span{font-size:1rem}.turn-action strong{font-size:.74rem;font-weight:650}.header-actions .draw-two{position:static;color:#241a0d;border:1px solid #e2b962;background:linear-gradient(145deg,#f1cf7d,#c8943f);box-shadow:none}.header-actions .end-turn{color:var(--ink);border:1px solid rgba(230,194,122,.34);background:#373027}.turn-action:disabled{cursor:not-allowed;filter:grayscale(.75);opacity:.45}
.header-tools{align-self:center}.gear-button{position:relative;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid transparent;border-radius:8px}.gear-button span,.gear-button span::before,.gear-button span::after{display:block;width:20px;height:2px;border-radius:2px;background:currentColor;content:""}.gear-button span::before{transform:translateY(-6px)}.gear-button span::after{transform:translateY(4px)}
.settings-popover{top:50px}.table-area{min-height:0;padding:12px 0 0;overflow:hidden}.board-scroll{width:100%;max-height:100%;padding:0 2px 18px;overflow-x:hidden;overflow-y:auto}.card-grid{align-content:start}.empty-state{padding:80px 0}

.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.resources{display:flex;align-items:center;justify-content:flex-start;gap:5px;min-width:280px;min-height:44px;padding:7px 10px;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.025)}.resources.empty::after{content:"";display:block;min-height:25px}.produced-resource{flex:0 0 auto;filter:drop-shadow(0 2px 3px #0009);font-size:1.22rem;line-height:1}
.header-actions{gap:7px;padding:6px 9px;border:1px solid rgba(230,194,122,.22);border-radius:11px;background:rgba(38,31,24,.72)}.header-actions .pile-zone{min-width:36px}.header-actions button.pile-zone{width:38px;padding:2px}.turn-action{width:112px}.counters{margin-left:8px}.header-tools{margin-left:2px}
.round-transition-body{display:grid;align-content:center;justify-items:center;width:min(1050px,calc(100vw - 48px));min-height:430px;max-height:72vh;overflow-y:auto}.phase-intermission .shuffle-cards,.phase-discovery .shuffle-cards{display:none}.phase-shuffle .round-transition-body{display:none}.round-rest-panel{width:min(560px,100%);padding:0;text-align:center}.round-rest-panel p{max-width:520px;margin:0 auto 28px;color:#d6cab6;line-height:1.55}.round-rest-actions{display:grid;width:min(310px,100%);gap:11px;margin-inline:auto}.round-rest-actions button{width:100%;min-height:46px;justify-content:center}.round-primary-action,.shuffle-round-action{min-height:42px;padding:9px 16px;color:#21170a;border:1px solid #e5bd68;border-radius:9px;background:linear-gradient(#f1cf80,#c99740);cursor:pointer;font-weight:700}.round-hint{margin:0 0 16px;color:var(--muted);font-size:.84rem}.round-card-button{width:190px;padding:0;border:1px solid transparent;border-radius:14px;background:transparent;cursor:pointer}.round-card-button:hover{border-color:var(--gold-bright);box-shadow:0 0 0 2px rgba(243,207,121,.18);transform:translateY(-4px)}.round-card-button .preview-card{width:100%;pointer-events:none}.round-discovery-actions{display:flex;justify-content:center;margin-top:18px}.round-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(760px,100%);margin-top:16px;text-align:left}.round-notes h3{grid-column:1/-1;margin:0 0 2px;color:var(--gold-bright);font-size:.78rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}.round-note{padding:11px 13px;border-left:2px solid rgba(226,185,98,.52);background:rgba(25,21,17,.36)}.round-note strong{font-size:.82rem;font-weight:650}.round-note p{margin:5px 0 0;color:#cfc3b1;font-size:.75rem;line-height:1.4}.round-discovery-footer{display:flex;justify-content:center;width:100%;margin-top:20px;padding-top:16px;border-top:1px solid rgba(230,194,122,.18)}.shuffle-round-action{display:flex;align-items:center;gap:11px;min-width:180px;justify-content:center}.mini-deck{display:grid;place-items:center;width:28px;height:36px;color:#23180b;border:1px solid #7f5722;border-radius:5px;background:repeating-linear-gradient(45deg,#f1cf80,#f1cf80 5px,#c99740 5px,#c99740 10px);box-shadow:-2px 2px #513719;font-size:.65rem}.library-dialog{width:min(1220px,calc(100vw - 28px));padding:23px}.library-grid{clear:both;display:grid;grid-template-columns:repeat(auto-fill,178px);justify-content:center;gap:14px}.library-card{width:178px;padding:0;border:1px solid transparent;border-radius:13px;background:transparent;cursor:pointer}.library-card:hover{border-color:var(--gold-bright);box-shadow:0 0 0 2px rgba(243,207,121,.16);transform:translateY(-3px)}.library-card .preview-card{width:100%;pointer-events:none}

@media(max-width:1250px){.topbar{grid-template-columns:auto minmax(260px,1fr) auto auto auto;gap:8px}.turn-action{width:102px}.header-actions{gap:5px;padding-inline:7px}.counters{margin-left:3px}.stage-gallery{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.game-shell{padding:0 10px}.topbar{grid-template-columns:auto minmax(230px,1fr) auto auto auto;gap:6px;min-width:730px}.brand h1{display:none}.brand-mark{width:38px;height:34px}.resources{min-width:230px}.turn-action{width:88px;padding-inline:6px}.turn-action strong{font-size:.66rem}.counters{margin-left:0}.counters>div{min-width:44px;padding:4px 5px}.gear-button{width:38px}.upgrade-route{grid-template-columns:1fr}.route-arrow{justify-self:center;transform:rotate(90deg)}.discard-choices{grid-template-columns:1fr}.stage-gallery{grid-template-columns:1fr}.settings-popover{right:-2px;width:min(238px,calc(100vw - 20px))}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Číslo karty je volitelné a zůstává uprostřed prvního řádku hlavičky. */
.card-header-top{display:grid;grid-template-columns:1fr auto 1fr}.card-header-top .state-pips{justify-self:end}.card-number{color:#d8cebd;font-size:.53rem;font-weight:400;letter-spacing:.06em}
.settings-toggle{display:flex;align-items:center;gap:8px;margin-top:12px;padding-top:11px;color:#ddd2bf;border-top:1px solid var(--line);font-size:.76rem;cursor:pointer}.settings-toggle input{width:16px;height:16px;accent-color:var(--gold)}

/* Detail používá stejné celé karty jako hra, bez deformování obrázku. */
.stage-gallery{grid-template-columns:repeat(auto-fit,178px);justify-content:center;align-items:start;gap:16px}.stage-card{display:grid;gap:8px;padding:8px;overflow:visible}.stage-card .preview-card{width:100%;aspect-ratio:5/8}.stage-card>img,.stage-card-body{display:none}.stage-label{text-align:center}.stage-card .upgrade-action{margin-top:0}
.resource-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.resource-choice-grid button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px;color:var(--ink);border:1px solid var(--line);border-radius:9px;background:#30281f;cursor:pointer}.resource-choice-grid button:hover{border-color:var(--gold-bright)}.production-space:disabled{filter:grayscale(.9);opacity:.45;cursor:not-allowed}

/* Kolo je pevnou součástí ovládacího bloku; tah zůstává jen interním herním údajem. */
.topbar{grid-template-columns:auto minmax(250px,1fr) auto auto}.round-counter{display:grid;place-items:center;align-self:stretch;min-width:48px;padding:2px 8px;border-right:1px solid var(--line);border-left:1px solid var(--line)}.round-counter span{color:var(--muted);font-size:.52rem;letter-spacing:.1em;text-transform:uppercase}.round-counter strong{font-size:.92rem;font-weight:650}

@media(max-width:1180px){.brand h1{display:none}.brand-mark{width:42px;height:38px}.topbar{grid-template-columns:auto minmax(190px,1fr) auto auto;gap:8px}.resources{min-width:190px}.turn-action{width:98px}}
@media(max-width:930px){.turn-action{width:44px;padding:5px}.turn-action strong{display:none}.turn-action span{font-size:1rem}.header-actions{gap:5px;padding-inline:7px}.topbar{grid-template-columns:auto minmax(150px,1fr) auto auto;min-width:0;gap:6px}.resources{min-width:150px}}
@media(max-width:680px){body{overflow:hidden}.game-shell{padding:0 8px}.topbar{grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;min-width:0;gap:7px 8px;padding:7px 0}.brand{grid-column:1;grid-row:1}.brand-mark{width:40px;height:36px}.resources{grid-column:2;grid-row:1;width:100%;min-width:0;height:40px;min-height:40px;padding:5px 7px}.produced-resource{font-size:1.05rem}.header-tools{grid-column:1;grid-row:2;margin:0}.gear-button{width:40px;height:40px}.header-actions{grid-column:2;grid-row:2;justify-content:space-between;width:100%;min-width:0;padding:5px 6px}.header-actions .pile-zone{min-width:31px}.header-actions .deck-stack{width:26px;height:35px}.round-counter{min-width:39px;padding-inline:5px}.turn-action{width:40px;height:40px;min-height:40px}.settings-popover{top:44px;right:auto;left:0}.table-area{padding-top:8px}}
.discovered-side-choice{display:grid;gap:10px;justify-items:center}.side-pair{display:flex;gap:14px}.discovered-side-choice>span{color:var(--muted);font-size:.74rem}.discovered-side-choice .column-options{width:100%;grid-template-columns:repeat(2,1fr)}
.single-confirm-card{width:178px;margin:0 auto}.single-confirm-card .preview-card{width:100%}.round-transition.behind-dialog{visibility:hidden}.bandit-blocked{filter:saturate(.42) brightness(.72)}.bandit-mark{position:absolute;z-index:4;top:43%;left:50%;display:flex;align-items:center;padding:7px 9px;color:#fff1df;border:2px solid #e5684b;border-radius:8px;background:rgba(82,20,13,.9);box-shadow:0 5px 18px #000b;transform:translate(-50%,-50%);pointer-events:none}.bandit-mark span{font-size:.65rem;font-weight:750;text-transform:uppercase}.game-card.linked-highlight{filter:none;border-color:#ffdc82;box-shadow:0 0 0 3px rgba(255,197,82,.72),0 0 28px rgba(229,94,52,.45)}
.choice-dialog:has(.production-confirm){width:min(290px,calc(100vw - 28px));padding:18px}.choice-dialog:has(.production-confirm) .dialog-close{position:absolute;top:8px;right:8px;width:28px;height:28px;font-size:1rem}.production-confirm{display:grid;justify-items:center;gap:15px;padding:20px 12px 5px;text-align:center}.production-confirm strong{font-size:1rem;font-weight:550}.production-confirm .upgrade-action{min-width:130px}
.bandit-actions{display:grid;gap:5px}.bandit-actions>span{font-size:.62rem}.bandit-actions>div{display:grid;grid-template-columns:1fr 1fr;gap:5px}.bandit-actions button{min-width:0;padding:4px;color:var(--ink);border:1px solid rgba(255,226,145,.35);border-radius:5px;background:rgba(53,40,26,.9);cursor:pointer;font-size:.58rem}.bandit-actions button:disabled{opacity:.38;cursor:not-allowed}

/* Tři základní permanentní karty mají v hlavičce vlastní stálé místo. */
.permanent-panel{display:grid;grid-template-columns:repeat(3,42px);gap:5px;flex:0 0 136px;width:136px}.permanent-panel[hidden]{display:none}.permanent-mini{display:grid;grid-template-columns:1fr;place-items:center;height:48px;padding:3px;color:var(--ink);border:1px solid rgba(230,194,122,.25);border-radius:8px;background:rgba(38,31,24,.72);cursor:pointer}.permanent-mini span{font-size:1.08rem;line-height:1}.permanent-mini strong{color:var(--gold-bright);font-size:.63rem;font-weight:650}.permanent-mini:hover{border-color:var(--gold-bright);box-shadow:0 0 0 1px rgba(243,207,121,.16)}.permanent-detail{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 auto 18px;padding:11px 18px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.035)}.permanent-detail-icon{font-size:1.7rem}.permanent-detail div{display:grid}.permanent-detail div span{color:var(--muted);font-size:.65rem;text-transform:uppercase}.permanent-detail div strong{font-size:1.25rem}
@media(max-width:930px){.permanent-panel{grid-template-columns:repeat(3,34px);gap:3px;flex-basis:108px;width:108px}.permanent-mini{height:42px}.permanent-mini span{font-size:.92rem}}
.permanent-summary{display:flex;align-items:center;gap:18px;margin:0 0 16px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.035)}.permanent-summary>span{display:grid;color:var(--muted);font-size:.68rem;text-transform:uppercase}.permanent-summary strong{color:var(--gold-bright);font-size:1.18rem}.permanent-summary button{margin-left:auto}.permanent-track{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:7px}.track-row{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:8px;min-height:46px;padding:8px 10px;color:#bcb09e;border:1px solid var(--line);border-radius:8px;background:#251f19}.track-row strong{color:var(--ink);font-size:.76rem}.track-row em{font-size:.7rem;font-style:normal}.track-row.reached{border-color:rgba(222,181,91,.58);background:rgba(95,68,29,.42)}.track-row.claimed{opacity:.52}.track-row.claimed em{text-decoration:line-through}@media(max-width:560px){.permanent-summary{align-items:stretch;flex-wrap:wrap}.permanent-summary button{width:100%;margin:0}.permanent-track{grid-template-columns:1fr}}

/* Hlavička: značka, pružné suroviny, permanentní panel, balíčky, menu. */
.topbar{grid-template-columns:auto minmax(190px,1fr) auto auto auto}
@media(max-width:1180px){.topbar{grid-template-columns:auto minmax(150px,1fr) auto auto auto}}
@media(max-width:930px){.topbar{grid-template-columns:auto minmax(120px,1fr) auto auto auto}.resources{min-width:120px}}
@media(max-width:680px){.topbar{grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto auto}.brand{grid-column:1;grid-row:1}.resources{grid-column:2;grid-row:1}.permanent-panel{grid-column:2;grid-row:2;justify-self:end}.header-tools{grid-column:1;grid-row:3}.header-actions{grid-column:2;grid-row:3}}
.card-slot.empty-slot{visibility:hidden;pointer-events:none}

/* Úvodní vstup do hry. */
.welcome-screen[hidden]{display:none}.welcome-screen{position:fixed;z-index:200;inset:0;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 25%,rgba(94,70,37,.38),rgba(8,7,6,.97));backdrop-filter:blur(9px)}.welcome-card{position:relative;isolation:isolate;width:min(760px,100%);min-height:min(620px,calc(100vh - 40px));overflow:hidden;border:1px solid rgba(239,202,123,.55);border-radius:22px;background:#211a13;box-shadow:0 35px 100px #000}.welcome-card>img{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover}.welcome-shade{position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,rgba(8,7,6,.12),rgba(8,7,6,.35) 42%,rgba(8,7,6,.94) 80%)}.welcome-copy{position:absolute;right:8%;bottom:8%;left:8%;display:grid;justify-items:center;gap:13px;text-align:center;text-shadow:0 2px 8px #000}.welcome-copy>span{color:var(--gold-bright);font-size:.75rem;letter-spacing:.18em;text-transform:uppercase}.welcome-copy h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.8rem,9vw,5.8rem);font-weight:500}.welcome-copy p{max-width:560px;color:#e0d6c5;font-size:.95rem;line-height:1.55}.welcome-copy button{min-width:210px;margin-top:7px}
.stage-gallery .upgrade-line[data-route-target]{cursor:help}.stage-gallery .upgrade-line small{overflow:hidden;color:#d9c9ad;font-size:.52rem;white-space:nowrap;text-overflow:ellipsis}.stage-card.route-source{border-color:rgba(243,207,121,.62)}.stage-card.route-target{border-color:var(--gold-bright);box-shadow:0 0 0 3px rgba(243,207,121,.28),0 10px 30px #0009}.stage-card{transition:border-color .16s ease,box-shadow .16s ease}
.choice-dialog .upgrade-confirm-bar{position:sticky;z-index:6;bottom:-23px;margin-top:14px;padding:12px 0 5px;background:linear-gradient(180deg,rgba(31,25,19,.1),#1f1913 28%)}.choice-dialog .full-card-choice.selected{position:relative;border-color:#ffe19a;box-shadow:0 0 0 4px rgba(243,207,121,.32),0 14px 30px #000b}.choice-dialog .full-card-choice.selected::after{position:absolute;top:7px;right:7px;display:grid;place-items:center;width:27px;height:27px;color:#21170a;border-radius:50%;background:var(--gold-bright);box-shadow:0 3px 10px #0009;content:"✓";font-weight:800}.decree-resources{position:sticky;z-index:5;bottom:48px;margin-top:12px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#1f1913;box-shadow:0 -8px 22px #0008}.decree-resources button.selected{color:#21170a;border-color:var(--gold-bright);background:linear-gradient(#f1cf80,#c99740);font-weight:700}
.permanent-intro{text-align:center;max-width:34rem;margin-inline:auto}.permanent-intro-icon{display:block;font-size:3rem;margin-bottom:.45rem}.permanent-intro p{max-width:31rem;margin:.55rem auto;color:var(--muted)}
.immigrant-choice{width:min(100%,74rem);margin-inline:auto}.immigrant-cards{align-items:start}.immigrant-option{display:grid;gap:.7rem;padding:.55rem;border:1px solid transparent;border-radius:1rem;transition:border-color .18s,background .18s}.immigrant-option.selected{border-color:#d8ad4d;background:rgba(216,173,77,.1)}.immigrant-actions{display:grid;grid-template-columns:1fr 1fr;gap:.45rem}.immigrant-actions button{min-width:0}.immigrant-counter{text-align:center;color:#e3c276;font-weight:700;margin:.7rem 0 0}

/* Build 0.15: hlavní stránka a kompaktní mezifáze použitelné i na telefonu. */
.welcome-screen{overflow-y:auto;align-items:start}.welcome-card{margin:auto}.welcome-copy{gap:10px}.welcome-actions{display:grid;width:min(310px,100%);gap:8px}.welcome-actions button{width:100%;min-height:42px;margin:0}.welcome-link{padding:7px;color:#ead8b6;border:0;background:transparent;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.welcome-note{font-size:.72rem!important;opacity:.8}
.column-options{grid-template-columns:repeat(5,1fr)}
.card-grid{justify-content:start}
.round-transition{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:10px;padding:clamp(18px,5vh,52px) 18px;overflow-x:hidden;overflow-y:auto}.round-transition-copy{position:static;flex:0 0 auto;margin:0;text-align:center}.round-transition-body{display:grid;align-content:start;justify-items:center;width:min(1050px,100%);min-height:0;max-height:none;overflow:visible}.round-rest-panel p,.round-autosave-note{margin:0 auto 12px}.round-rest-actions{gap:9px}.round-new-cards{width:100%;min-height:0;padding:3px 2px 12px}.round-discovery-footer{margin-top:10px;padding-top:12px}.phase-shuffle{display:grid;place-items:center;padding:20px;overflow:hidden}.phase-shuffle .round-transition-copy{align-self:end}.phase-shuffle .shuffle-cards{align-self:start}
.choice-dialog .upgrade-confirm-bar,.upgrade-confirm-bar{justify-content:center}.upgrade-route .preview-label{display:none}

@media(max-width:760px){
  .upgrade-dialog{width:min(640px,calc(100vw - 16px));padding:16px}
  .upgrade-route{grid-template-columns:minmax(0,150px) auto minmax(0,150px);gap:10px}
  .upgrade-route .preview-card{width:100%}
  .route-arrow{transform:none}
  .round-transition{padding:14px 10px;gap:7px}
  .round-transition-copy strong{font-size:1.35rem}
  .round-transition-body{width:100%}
  .round-new-cards{justify-content:flex-start;gap:10px;overflow-x:auto;scroll-snap-type:x proximity}
  .round-card-button{flex:0 0 132px;width:132px;scroll-snap-align:center}
  .round-new-cards .preview-card{width:100%}
  .round-hint{margin-bottom:9px;text-align:center}
  .round-rest-actions button{min-height:42px}
}
@media(max-width:520px) and (orientation:portrait){
  .welcome-screen{padding:10px}.welcome-card{min-height:calc(100vh - 20px);border-radius:15px}.welcome-copy{right:6%;bottom:4%;left:6%}.welcome-copy h1{font-size:2.8rem}.welcome-copy p{font-size:.82rem;line-height:1.35}
  .upgrade-route{grid-template-columns:minmax(0,156px);gap:7px}.route-arrow{transform:rotate(90deg)}
  .upgrade-confirm-bar{flex-wrap:wrap;margin-top:10px;padding-top:10px}
  .round-transition{padding-top:10px}.round-transition-copy{gap:3px}.round-transition-copy span{font-size:.68rem}.round-transition-copy strong{font-size:1.15rem}
  .round-rest-panel p{font-size:.8rem;line-height:1.35}.round-rest-actions{width:min(280px,100%)}
  .round-card-button{flex-basis:118px;width:118px}
  .column-options{grid-template-columns:repeat(5,1fr);gap:3px}.column-options button{height:32px}
}

/* Build 0.15.1: vycentrované dialogy a pružná herní plocha. */
.dialog-header{
  clear:both;
  margin:7px 52px 24px;
  text-align:center;
}
.dialog-header h2{margin:5px 0 11px}
.dialog-header p{margin:0 auto;max-width:42rem}
.dialog-header p+p{margin-top:8px}
.rules-dialog>.eyebrow,.settings-dialog>.eyebrow{display:block;text-align:center}
.rules-dialog h2,.settings-dialog h2{margin:5px 52px 20px;text-align:center}
.board-scroll{padding-bottom:0}
.board-scroll::after{
  display:block;
  width:100%;
  padding:18px 0 14px;
  color:rgba(218,184,111,.38);
  content:"—  ◆  —";
  font-size:.58rem;
  letter-spacing:.3em;
  text-align:center;
}
.upgrade-dialog{position:relative;padding-top:10px}
.upgrade-corner-actions,.dialog-corner-actions{position:sticky;z-index:8;top:0;display:flex;justify-content:flex-end;gap:8px;width:100%;height:37px;margin:0 0 8px;pointer-events:none}
.upgrade-corner-actions .dialog-close,.dialog-corner-actions .dialog-close{position:static;float:none}
.upgrade-corner-actions button,.dialog-corner-actions button{pointer-events:auto}
.dialog-confirm-top{display:grid;place-items:center;width:37px;height:37px;padding:0;color:#21170a;border:1px solid #e5bd68;border-radius:50%;background:linear-gradient(#f1cf80,#c99740);box-shadow:0 4px 12px #0008;cursor:pointer;font-size:1.05rem;font-weight:800}
.dialog-confirm-top[hidden]{display:none}
.dialog-confirm-top:hover{filter:brightness(1.08)}
.dialog-confirm-top:disabled{filter:grayscale(.75);opacity:.42;cursor:not-allowed}
.card-focus-dialog{width:min(404px,calc(100vw - 24px));padding:12px;overflow:visible;background:rgba(24,19,14,.96)}
.card-focus-dialog::backdrop{cursor:pointer}
.focus-card-shell{width:var(--card-width);margin:auto;justify-content:center}
.focus-card-shell .game-card{cursor:default}
.game-card img{pointer-events:none;user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none}
.bandit-arrival{position:fixed;z-index:190;inset:0;background:radial-gradient(circle at center,rgba(119,31,19,.2),transparent 44%);pointer-events:auto}
.bandit-arrival-dagger{position:fixed;display:block;filter:drop-shadow(0 10px 14px #000) drop-shadow(0 0 10px rgba(255,188,91,.55));font-size:clamp(3.4rem,9vw,7rem);line-height:1;transform-origin:center}
@media(max-width:520px) and (orientation:portrait){
  .upgrade-dialog{padding:8px 12px 12px}
  .upgrade-route{grid-template-columns:minmax(0,min(156px,calc((100vh - 120px)*.315)));gap:5px}
  .upgrade-route .route-arrow{font-size:1.25rem;line-height:1}
  .upgrade-targets{margin:0 0 8px;overflow-x:auto;justify-content:flex-start}
}
@media(max-height:520px) and (orientation:landscape){
  .upgrade-dialog{width:min(680px,calc(100vw - 12px));max-height:calc(100vh - 12px);padding:7px 12px 10px}
  .upgrade-corner-actions{height:34px;margin-bottom:5px}
  .upgrade-corner-actions .dialog-close,.upgrade-corner-actions .dialog-confirm-top{width:34px;height:34px}
  .upgrade-route{grid-template-columns:minmax(0,min(160px,calc(62.5vh - 47.5px))) auto minmax(0,min(160px,calc(62.5vh - 47.5px)));gap:8px}
  .upgrade-route .preview-card{width:100%}
  .upgrade-route .route-arrow{font-size:1.2rem}
  .upgrade-targets{margin:0 0 5px;overflow-x:auto;justify-content:flex-start}
}

.column-slider{display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:center;gap:10px}
.column-slider input{width:100%;accent-color:#d5a84f;cursor:pointer}
.column-slider output{display:grid;place-items:center;width:32px;height:28px;color:#21170a;border:1px solid #e5bd68;border-radius:7px;background:linear-gradient(#f1cf80,#c99740);font-size:.78rem;font-weight:750}
.board-scroll{display:flex;flex-direction:column}
.card-grid{flex:0 0 auto;align-self:stretch}
.board-scroll::after{flex:0 0 auto;margin-top:auto}
.round-transition{justify-content:center;text-align:center}
.round-transition-copy{align-self:center;width:100%;margin:0 auto;text-align:center}
.round-transition-body{align-content:center;justify-content:center;justify-items:center;margin-inline:auto;text-align:center}
.round-rest-panel,.round-rest-actions{margin-inline:auto;text-align:center}
.round-new-cards{justify-content:center;margin-inline:auto}
.round-discovery-footer,.round-discovery-actions{justify-content:center;margin-inline:auto}
.phase-shuffle{display:flex;align-items:center;justify-content:center}
.phase-shuffle .round-transition-copy,.phase-shuffle .shuffle-cards{align-self:center;margin-inline:auto}

