.festival-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.festival-card,.festival-future{padding:22px}.festival-card h3{margin:16px 0 8px}.festival-future{margin-top:24px;color:#667568}
.festival-editor,.festival-sponsors-dialog,.festival-preview{border:0;border-radius:14px;padding:0;color:#18211c;box-shadow:0 24px 80px #0004;max-height:92vh;width:min(1180px,96vw);overflow-y:auto}.festival-editor::backdrop,.festival-sponsors-dialog::backdrop,.festival-preview::backdrop{background:#08201699}.festival-editor-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px 24px;background:#f3f7f1;border-bottom:1px solid #dce5da}.festival-editor-head h2{margin:4px 0}.festival-editor-head p{margin:0}.festival-editor form{padding:0}.festival-editor fieldset{border:0;margin:0;padding:0}.festival-section{padding:22px 24px;border-bottom:1px solid #e0e7de}.festival-section h3{margin:0 0 16px}.festival-section p{font-size:12px;color:#647367}.festival-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.festival-editor label,.festival-sponsors-dialog label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600}.festival-editor input,.festival-editor select,.festival-sponsors-dialog input,.festival-sponsors-dialog select{border:1px solid #cdd8cc;border-radius:6px;padding:10px;width:100%;min-width:0;background:white;color:#18211c}.festival-editor input:focus-visible,.festival-editor select:focus-visible{outline:2px solid #397856}.festival-themes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.festival-themes label{background:var(--festival-theme);color:var(--festival-accent);padding:20px;display:flex;flex-direction:row;align-items:center;gap:10px;border-radius:8px}.festival-themes input{width:17px;height:17px;margin:0;accent-color:#54b179}.festival-line{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.festival-line label{max-width:300px}.festival-table-wrap{overflow-x:auto;margin-top:18px}.festival-games{border-collapse:collapse;width:100%;min-width:940px}.festival-games td,.festival-games th{padding:8px;border-bottom:1px solid #e0e7de;text-align:center}.festival-games th{font-size:11px}.festival-games td:nth-child(1){width:118px}.festival-games td:nth-child(4),.festival-games td:nth-child(6){width:78px}.festival-games td:nth-child(2),.festival-games td:nth-child(8){width:112px}.festival-upload{display:flex;flex-direction:column;gap:6px;max-width:180px}.festival-upload img{width:70px;height:70px;object-fit:contain;border:1px solid #e0e7de;background:#fff;border-radius:6px;align-self:center}.festival-upload small{font-size:10px;overflow-wrap:anywhere;color:#647367}.festival-upload input{font-size:10px;padding:4px}.festival-upload span{font-size:10px;padding:12px;color:#71806f}.festival-asset-row{display:flex;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid #e0e7de}.festival-asset-row label{flex:1}.festival-toolbar{position:sticky;bottom:0;display:flex;gap:12px;padding:16px 24px;background:#fff;border-top:1px solid #dce5da;align-items:center;flex-wrap:wrap;z-index:2}.festival-toolbar span{margin-right:auto;font-size:11px;color:#637360}.festival-final-btn{padding:12px 18px;border-radius:6px;background:#862e28;color:#fff;font-weight:700}.festival-toolbar button:disabled{opacity:.55;cursor:wait}.festival-sponsors-dialog{width:min(850px,95vw);padding:24px}.festival-sponsors-dialog .festival-line{margin-top:20px}.festival-preview{width:min(620px,95vw);padding-bottom:20px}.festival-preview img,.festival-preview canvas{display:block;width:100%;height:auto}.festival-preview>p,.festival-preview>[data-download]{margin:16px}.festival-preview .festival-editor-head{position:sticky;top:0;z-index:1}.festival-editor input[type=radio]{flex:none}@media(max-width:700px){.festival-grid{grid-template-columns:1fr}.festival-themes{grid-template-columns:1fr 1fr}.festival-asset-row{flex-wrap:wrap}.festival-section{padding:16px}.festival-toolbar{padding:12px}.festival-editor input,.festival-editor select{font-size:16px}}
.festival-editor fieldset,.festival-editor form,.festival-section,.festival-grid{min-width:0}.festival-editor{overflow-x:hidden}.festival-editor-head{position:sticky;top:0;z-index:3}.festival-table-wrap{max-width:100%}
.festival-upload img{background:transparent;border:0}.festival-scorer-btn{font-size:10px;text-decoration:underline;color:#176b45;margin-top:7px;padding:4px}.festival-scorer-summary{font-size:10px;text-align:left;max-width:200px;overflow-wrap:anywhere}.festival-scorer-summary span{display:block;margin:3px 0}.festival-games td{vertical-align:top}.festival-games td:nth-child(3),.festival-games td:nth-child(7){min-width:170px}#festival-custom-theme{margin-top:16px}#festival-custom-theme[hidden]{display:none}.festival-preview [data-print]{margin:16px 0}
.festival-format-options{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.festival-format-options button{flex:1;min-width:170px;padding:20px}.festival-format-options b,.festival-format-options span{display:block}.festival-format-options span{font-size:12px;margin-top:8px}
.festival-games .festival-upload img[tabindex]{cursor:pointer}.festival-games .festival-upload img[tabindex]:focus{outline:3px solid #397856;outline-offset:3px}
.festival-layout-controls{padding:16px;display:grid;gap:12px;background:#f3f7f1}.festival-layout-controls label{display:grid;gap:8px;font-weight:600}.festival-layout-controls select{width:100%;padding:8px;min-width:0}.festival-layout-controls input[type=range]{width:100%;accent-color:#267448}.festival-layout-controls p{font-size:12px;margin:0}.festival-layout-stage{position:relative}.festival-layout-layer{position:absolute;inset:0;pointer-events:none}.festival-image-handle{position:absolute;background:transparent;border:1px solid transparent;border-radius:4px;pointer-events:auto;touch-action:none;cursor:move;padding:0;min-width:0;min-height:0}.festival-image-handle.selected,.festival-image-handle:focus-visible{border:2px solid #ffee58;background:#ffee5815;outline:1px solid #172a22}.festival-sponsor-boundary{position:absolute;border:1px dashed #ffee5890;box-sizing:border-box;pointer-events:none}
.festival-editable-preview[open]{display:grid;grid-template-columns:250px minmax(0,1fr);width:min(1040px,96vw);align-items:start;gap:0}.festival-editable-preview>.festival-editor-head{grid-column:1/-1}.festival-editable-preview>.festival-layout-controls{position:sticky;top:100px;grid-column:1;grid-row:2}.festival-editable-preview>.festival-preview-image{grid-column:2;grid-row:2}.festival-editable-preview>[data-download],.festival-editable-preview>[data-print]{margin:12px}.festival-drag-ghost{pointer-events:none;opacity:.9}.festival-image-handle:has(.festival-drag-ghost){z-index:3}@media(max-width:700px){.festival-editable-preview[open]{display:block}.festival-editable-preview>.festival-layout-controls{position:static}.festival-layout-controls{gap:8px;padding:12px}}
.festival-game-penalties{min-width:170px;padding:10px;background:#f1f6ed;border:1px solid #ceddca;border-radius:8px;text-align:left;margin-bottom:10px;display:grid;gap:8px}.festival-game-penalties[hidden]{display:none}.festival-game-penalties strong{font-size:12px}.festival-game-penalties small{font-size:10px;color:#52634e}.festival-game-penalties input{max-width:150px}
.festival-archive-controls{margin:16px;display:grid;gap:12px}.festival-archive-controls[hidden]{display:none}.festival-archive-controls label{display:grid;gap:6px}.festival-archive-controls select{padding:10px;border:1px solid #cdd8cc;border-radius:6px}
.festival-themes label small{display:block;margin-top:5px;font-weight:500;color:#f4f7f5;line-height:1.35}.festival-themes label:has(input:checked){outline:3px solid var(--festival-accent);outline-offset:-3px}
