@font-face{font-family:WesternSerif;src:url('assets/DejaVuSerif-Bold.ttf')}@font-face{font-family:BodySerif;src:url('assets/DejaVuSerif.ttf')}@font-face{font-family:StudioSans;src:url('assets/DejaVuSans.ttf')}*{box-sizing:border-box}body{margin:0;background:#f4f3ee;color:#252d28;font:13px StudioSans,Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button,a.button{transition:background .15s,transform .15s}button:hover,a.button:hover{filter:brightness(.96)}button:active{transform:translateY(1px)}button{border:0}button.primary,.button.primary{background:#e6a450;color:#241d12;padding:12px 18px;border-radius:7px;font-weight:700}.secondary,a.button{background:#fff;border:1px solid #d7dcd4;padding:10px 14px;border-radius:6px;color:#303b32;text-decoration:none}.text-btn{background:none;color:#536354;padding:9px 4px}.wide{width:100%}.icon-btn{font-size:23px;background:#f0f2ec;border-radius:5px;width:31px;height:31px;color:#3a483d}.small{font-size:10px}.muted{color:#8a938b}.topbar{min-height:88px;background:#19211c;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:20px;border-bottom:3px solid #dba058}.brand{color:#f3eee2;display:flex;gap:11px;align-items:center;text-decoration:none;font-family:WesternSerif,Georgia,serif;font-size:23px;letter-spacing:1.8px}.brand small{display:block;font:8px StudioSans,sans-serif;letter-spacing:2px;color:#a9b4a9;margin-top:6px}.brandmark{position:relative;font-size:39px;border:1px solid #b68b53;border-radius:7px;width:45px;height:52px;line-height:50px;text-align:center;color:#e5b473;transform:rotate(-7deg)}.brandmark span{position:absolute;font-size:15px;bottom:-12px;right:-5px}.topbar nav{display:flex;gap:5px}.nav{background:transparent;color:#afb8ae;padding:13px 16px;border-radius:6px}.nav.active{background:#303c31;color:#f5e6cc}.nav span{background:#435044;padding:2px 6px;border-radius:4px;margin-left:5px;font-size:10px}.nav .spark{background:none;color:#e5b473}.top-actions{display:flex;gap:18px;align-items:center}#saveStatus{font-size:10px;color:#adb8ac}main{max-width:1560px;margin:auto;padding:32px 36px 24px}.page-intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.eyebrow{font-size:9px;font-weight:700;color:#8a795c;letter-spacing:1.8px;margin:0 0 11px}h1{font:27px WesternSerif,Georgia,serif;letter-spacing:-.8px;margin:0 0 10px}p{line-height:1.6}.page-intro p:last-child{color:#7b8278;margin:0;font-size:11px}.version{font-size:9px;letter-spacing:2px;color:#93988b;align-self:end}.workspace{display:grid;grid-template-columns:224px minmax(320px,1fr) 326px;gap:20px;align-items:start}.panel{background:#fff;border:1px solid #dde0d7;border-radius:10px}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding-bottom:18px}.panel-heading h2{font-size:13px;margin:0}.tiny-label{font-size:8px;letter-spacing:1.2px;color:#899186}.deck-panel{padding:19px 15px;min-height:705px;display:flex;flex-direction:column}.deck-panel #deckName{background:#f5f5f0;font-weight:700;font-size:11px;margin-bottom:18px}.card-list{display:flex;flex-direction:column;gap:8px}.card-item{display:flex;gap:10px;align-items:center;text-align:left;background:transparent;border:1px solid transparent;border-radius:7px;padding:8px;width:100%;color:#354234}.card-item.active{background:#f1f3e8;border-color:#d1d8bb}.card-item img{width:34px;height:53px;object-fit:contain;box-shadow:0 2px 4px #0002;border-radius:3px}.card-item strong{display:block;font-size:10px;margin-bottom:7px;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-item small{font-size:8px;color:#909585}.card-number{margin-left:auto;font-size:9px;color:#a5ac9a}.sidebar-bottom{margin-top:auto;padding-top:24px}.sidebar-bottom p{font-size:8px;color:#93998c;text-align:center}.preview-panel{background:#e9ece2;border:1px solid #dce1d4;border-radius:10px;overflow:hidden}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:17px 20px}.segmented{display:flex;background:#e0e4d8;padding:3px;border-radius:6px}.segmented button{padding:8px 11px;font-size:9px;color:#6b7766;background:transparent;border-radius:4px}.segmented .active{background:#fff;color:#354432;box-shadow:0 1px 4px #0001}.card-stage{min-height:498px;display:flex;align-items:center;justify-content:center;position:relative;background-image:radial-gradient(#a9b39c60 .65px,transparent .65px);background-size:13px 13px;padding:24px}.card-stage canvas{display:block;width:min(260px,85%);height:auto;box-shadow:0 16px 28px #222a2433,0 3px 6px #222a2422;border-radius:13px;position:relative}.stage-star{position:absolute;color:#b7bfa8;font-size:35px}.star-one{left:12%;top:19%;transform:rotate(10deg)}.star-two{right:10%;bottom:16%;font-size:45px}.preview-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #d9dfcf;margin:0 20px;padding:12px 0;font-size:9px}.preview-footer button{font-size:10px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#7b9062;margin-right:6px}.preview-note{background:#f4f5ef;display:flex;gap:10px;align-items:center;padding:18px}.preview-note>span{font-size:24px;color:#a48048}.preview-note strong{font-size:10px}.preview-note p{font-size:9px;color:#89907f;margin:6px 0 0}.preview-note button{font-size:9px;margin-left:auto;white-space:nowrap}.settings-panel{padding:20px}.settings-panel .panel-heading .tiny-label{font-size:7px}label{display:block;font-size:10px;font-weight:700;color:#525d50;margin-bottom:14px}input:not([type=checkbox]):not([type=range]):not([type=file]),select,textarea{width:100%;display:block;background:#fff;border:1px solid #dce0d5;border-radius:5px;padding:10px;color:#354333;min-width:0;margin-top:7px}textarea{resize:vertical;line-height:1.6}input[type=range]{display:block;width:100%;accent-color:#7d8b64;margin-top:10px}input[type=file]{font-size:9px;width:100%;margin-top:10px}select{padding-right:5px;font-size:11px}.optional{font-weight:400;color:#a0a697;font-size:8px;float:right}.field-row{display:flex;gap:12px;align-items:center}.field-row>label{flex:1;min-width:0}.field-row>button{flex:1}details{border-top:1px solid #e8eae1;padding:16px 0 2px}summary{font-weight:700;font-size:10px;cursor:pointer;list-style:none;padding-bottom:15px}summary:before{content:'＋';color:#a0ab90;margin-right:8px}details[open]>summary:before{content:'−'}summary span{float:right;color:#a6ad9c;font-size:8px}.upload-zone{border:1px dashed #cbd2bf;background:#f7f8f2;text-align:center;padding:14px 5px;border-radius:6px;cursor:pointer;margin-bottom:4px}.upload-zone span{display:block;font-size:20px;color:#97a37f;margin-bottom:6px}.upload-zone strong{display:block;font-size:10px}.upload-zone small{display:block;font-weight:400;font-size:8px;color:#9ba18e;margin-top:7px}.hint{font-size:10px;color:#818b78}.settings-bottom{border-top:1px solid #e8eae1;padding-top:15px;margin-top:13px}.settings-bottom button{font-size:10px}.danger{color:#a35d45}.card-warning{font-size:10px;color:#965c27;padding:0 20px 10px}.card-warning:empty{display:none}.app-footer{display:flex;justify-content:space-between;max-width:1560px;margin:auto;padding:0 36px 23px;color:#7b8573;font-size:8px;letter-spacing:.5px}.app-footer>span:first-child{font-weight:700}.deck-controls{display:flex;gap:12px;align-items:center;margin-bottom:25px}.deck-controls span{margin-left:auto;color:#8a927f;font-size:11px}.deck-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:20px}.deck-tile{padding:16px;background:#fff;border:1px solid #dce0d4;border-radius:10px}.deck-tile.selected{border-color:#97aa77;background:#f9fbf4}.deck-tile img{width:100%;border-radius:8px;box-shadow:0 5px 10px #0002;margin-bottom:12px}.deck-tile h3{font-size:12px;overflow-wrap:anywhere}.deck-tile .check{margin:0}.deck-tile input[type=number]{padding:6px;width:60px;margin:0}.deck-tile .tile-actions{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.guide-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:24px;max-width:1100px}.guide-form,.prompt-output{padding:28px}.guide-form .segmented{margin-bottom:25px}.prompt-output textarea{background:#f7f8f1;font-size:12px}.prompt-output .field-row{margin-top:18px}.big-spark{font-size:70px;color:#bf9a61}.howto{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;max-width:1100px;margin:35px 0}.howto b{font:25px WesternSerif;color:#b7a680}.howto h3{font-size:13px}.howto p{color:#7f8877;font-size:11px}.check{display:flex;align-items:center;gap:7px}.check input{accent-color:#6c8150}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#253c2c;color:white;padding:14px 23px;border-radius:7px;z-index:99;box-shadow:0 8px 30px #0003;max-width:90vw;font-size:12px}dialog{border:1px solid #d8ddce;border-radius:12px;max-width:900px;width:95%;padding:28px;color:#34412f}dialog::backdrop{background:#132016aa;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:start;justify-content:space-between;margin-bottom:25px}.dialog-heading h2{margin:0;font:24px WesternSerif}.print-layout{display:grid;grid-template-columns:1fr 1fr;gap:35px}.print-sheet{background:white;aspect-ratio:210/297;width:100%;border:1px solid #d0d6c7;position:relative;box-shadow:0 4px 16px #0001}.print-sheet img{position:absolute;object-fit:fill}.print-preview-wrap{background:#f0f2e9;padding:22px;border-radius:8px;align-self:start}.print-preview-wrap p{font-size:10px;color:#7d8872;margin-bottom:0}.dialog-bottom{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e2e5da;padding-top:20px;margin-top:20px}[hidden]{display:none!important}@media(min-width:1500px){.workspace{grid-template-columns:245px minmax(400px,1fr) 360px}.card-stage{min-height:560px}.card-stage canvas{width:288px}}@media(max-width:1120px){.topbar{padding:15px 22px;flex-wrap:wrap}.top-actions{margin-left:auto}.topbar nav{order:3;width:100%;justify-content:center}.workspace{grid-template-columns:175px minmax(270px,1fr) 285px;gap:12px}main{padding:25px 20px}.settings-panel{padding:15px}.preview-toolbar{flex-direction:column}.card-stage{min-height:460px}.card-item strong{max-width:88px}.preview-note{flex-wrap:wrap}.app-footer{padding:0 20px 20px}}@media(max-width:850px){.workspace{grid-template-columns:1fr 310px}.deck-panel{grid-column:1/-1;min-height:0}.card-list{flex-direction:row;overflow:auto}.card-item{min-width:150px;width:150px}.sidebar-bottom{display:flex;align-items:center;gap:15px;padding-top:10px}.sidebar-bottom p{margin:0}.sidebar-bottom button{width:auto;white-space:nowrap}.deck-panel #deckName{max-width:300px}.page-intro{margin-bottom:22px}h1{font-size:23px}.version{display:none}.top-actions #saveStatus{display:none}.guide-grid{grid-template-columns:1fr}}@media(max-width:600px){.topbar{padding:15px}.brand{font-size:18px}.brandmark{font-size:30px;width:35px;height:43px;line-height:42px}.brand small{font-size:6px}.top-actions button{font-size:10px;padding:11px}.topbar nav{gap:0;justify-content:space-between}.nav{padding:11px;font-size:11px}.workspace{display:flex;flex-direction:column}.workspace>*{width:100%}.settings-panel{padding:22px}.card-stage{min-height:460px}.card-stage canvas{width:250px}.preview-toolbar{flex-direction:row}.preview-note{flex-wrap:nowrap}.preview-note button{display:none}main{padding:24px 14px}.page-intro h1{font-size:21px}.page-intro .eyebrow{font-size:8px}.page-intro p:last-child{font-size:10px}.sidebar-bottom p{display:none}.app-footer{gap:16px;line-height:1.8;flex-direction:column}.print-layout{grid-template-columns:1fr}.print-preview-wrap{padding:30px 65px}.dialog-bottom{flex-wrap:wrap}.deck-controls{flex-wrap:wrap}.deck-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.deck-tile{padding:10px}.deck-tile .tile-actions{flex-wrap:wrap;gap:6px}.howto{grid-template-columns:1fr;gap:12px}.guide-form,.prompt-output{padding:20px}.field-row{gap:8px}.big-spark{display:none}}
.symbol-palette{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:10px 0 15px}.symbol-option{display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:65px;background:#f5f6ef;border:1px solid #e2e6d7;border-radius:5px;padding:7px 3px;gap:5px}.symbol-option>span:last-child{font-size:7px;line-height:1.4}.symbol-option img{width:28px;height:27px;object-fit:contain}.symbol-text{font-size:22px;line-height:1}.symbol-row{display:flex;gap:3px;align-items:center;padding:5px;border:1px solid #e0e4d7;border-radius:5px;margin-bottom:6px;min-height:40px;flex-wrap:wrap}.symbol-row.active{border-color:#99a87c;background:#f6f9ed}.row-selector{background:#e8eddc;width:20px;height:25px;font-size:9px;border-radius:3px}.symbol-chip{background:white;padding:3px;border-radius:3px;min-width:24px;height:29px}.symbol-chip img{max-width:24px;height:22px;object-fit:contain}.symbol-chip .symbol-text{font-size:19px}.symbol-row>.text-btn{margin-left:auto;font-size:17px;padding:3px}

@font-face{font-family:BangTitle;src:url("assets/original/BangatorPerdidoCZSK.ttf")}@font-face{font-family:CardText;src:url("assets/original/subtitle.ttf")}

.asset-spec{font-size:10px;line-height:1.7;background:#f0f3e8;border:1px solid #d9e1ca;border-radius:6px;padding:12px;color:#526345}.reference-tools{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;max-width:1100px;margin-top:24px}.reference-panel,.prepare-panel{padding:24px}.reference-panel h2,.prepare-panel h2{font-size:13px;margin:0 0 15px}.reference-panel .panel-heading{gap:10px}.reference-panel .panel-heading h2{margin:0}.reference-panel button{font-size:10px}#styleReference{display:block;width:100%;height:auto;background:#fff;border:1px solid #e6e7df;border-radius:7px}#preparedAssetPreview{max-width:160px;max-height:160px;display:block;object-fit:contain;margin:16px auto;background:repeating-conic-gradient(#eee 0% 25%,#fff 0% 50%) 0 0/14px 14px}.guide-form .segmented button{flex:1}.reference-panel a{color:#506748}@media(max-width:850px){.reference-tools{grid-template-columns:1fr}}@media(max-width:600px){.reference-panel,.prepare-panel{padding:18px}.guide-form .segmented button{padding:9px 6px;font-size:8px}}

.symbol-builder{border-top:1px solid #ddd;padding:14px 0;margin-top:14px}.check-suits label{display:flex;align-items:center;gap:5px;font-size:23px}.check-suits input{width:auto}.row-style{width:115px;font-size:11px;padding:5px}.symbol-row{flex-wrap:wrap}.check-icon{border:1px solid #999;border-radius:3px;padding:6px 3px;font-family:CardText;font-size:16px;background:white;color:#111}.symbol-builder .field-row{align-items:end}

.row-caption{flex-basis:100%;font-size:12px!important}

/* Keep the complete card in view while the page scrolls through its controls. */
@media(min-width:601px){
 .preview-panel{position:sticky;top:16px;align-self:start;max-height:calc(100dvh - 32px);overflow:auto;scrollbar-width:thin}
 .preview-toolbar{padding:12px 16px}
 .card-stage{min-height:0;padding:16px}
 .card-stage canvas{height:min(448px,calc(100dvh - 240px));width:auto;max-width:85%;object-fit:contain;aspect-ratio:662/1028}
 .preview-footer{padding:9px 0}
}
@media(min-width:601px) and (max-height:720px){.preview-note{display:none}.card-stage canvas{height:calc(100dvh - 180px)}}
@media(max-width:600px){
 .preview-panel{position:sticky;top:8px;z-index:10;max-height:44dvh;overflow:auto;box-shadow:0 5px 18px #19211c20}
 .preview-toolbar{padding:7px 12px}
 .card-stage{min-height:0;padding:6px}
 .card-stage canvas{height:min(170px,25dvh);width:auto;max-width:80%;object-fit:contain;aspect-ratio:662/1028}
 .preview-note{display:none}
 .preview-footer{margin:0 12px;padding:3px 0}
 .preview-footer .text-btn{padding:4px}
 .card-warning{padding:0 12px 6px}
}

.guide-howto{margin:0 0 28px}

/* Separate print selection from quantity so neither label is squeezed between controls. */
.deck-howto{margin:0 0 28px}
.deck-tile .tile-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:6px;row-gap:10px;align-items:center}
.deck-tile .check{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:10px;white-space:nowrap}
.deck-tile .check input{flex:0 0 16px;width:16px;height:16px;margin:0}
.deck-tile .tile-actions>.text-btn{white-space:nowrap;padding:6px 0;font-size:10px}
.deck-tile .copies-field{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;font-size:10px}
.deck-tile .copies-field input[type=number]{flex:0 0 64px;width:64px;margin:0;padding:7px;min-height:34px}
