#remi-app .competition-view{padding:28px clamp(14px,4vw,48px);min-height:70vh;background:var(--paper-texture),#f4e5c3;color:#29472f}
#remi-app .competition-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:20px}
#remi-app .competition-heading h1{font:700 clamp(28px,4vw,42px)/1.2 var(--teras-font);margin:6px 0}
#remi-app .competition-eyebrow{font:700 11px system-ui;letter-spacing:2px;color:#686449}
#remi-app .competition-actions,#remi-app .competition-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}
#remi-app .competition-view button,#remi-app .competition-dialog button{min-height:42px;background:#f7edda;color:#29472f;border:1px solid #bba77c;border-radius:7px;font-weight:600}
#remi-app .competition-view button.primary,#remi-app .competition-dialog button.primary{background:#31583d;color:#fff2cc;border-color:#31583d}
#remi-app #competition-status{min-height:20px;color:#91412d}
#remi-app .competition-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:22px}
#remi-app .competition-card{overflow:hidden;border:1px solid #cbb88d;border-radius:10px;background:#fff4d8;box-shadow:2px 5px 0 #b7a07933}
#remi-app .competition-card>img,#remi-app .competition-banner{display:block;width:100%;height:155px;object-fit:cover}
#remi-app .competition-banner{display:grid;place-items:center;background:repeating-linear-gradient(35deg,#31583d,#31583d 8px,#355e42 8px,#355e42 10px);font:60px Georgia;color:#f1d69b}
#remi-app .competition-card-body{padding:22px}#remi-app .competition-card h2{font:700 27px var(--teras-font);margin:12px 0}
#remi-app .competition-card p{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
#remi-app .competition-tag{display:inline-block;padding:5px 10px;background:#dfe7cc;color:#345239;border-radius:20px;font:600 12px system-ui}
#remi-app .competition-detail{max-width:1080px;margin:20px auto}
#remi-app .competition-cover{width:100%;max-height:280px;object-fit:cover;border-radius:10px}
#remi-app .competition-title h2{font:700 36px var(--teras-font);margin:12px 0}
#remi-app .competition-facts{display:flex;flex-wrap:wrap;gap:16px;margin:24px 0}
#remi-app .competition-facts>div{flex:1;min-width:170px;background:#fff6df;border:1px solid #d3c295;border-radius:8px;padding:14px}
#remi-app .competition-facts small,#remi-app .competition-facts b{display:block;margin:4px 0}
#remi-app .competition-panel{padding:18px;border:1px solid #cbb88d;border-radius:9px;background:#fff6df8a;margin:20px 0}
#remi-app .competition-panel summary{cursor:pointer;font-weight:700;padding:8px 0}
#remi-app .competition-matches{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}
#remi-app .competition-match{padding:16px;border:1px solid #d6c59e;border-radius:9px;background:#fffaec}
#remi-app .competition-match-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}
#remi-app .competition-match-heading h4{margin:4px 0;font-size:18px}
#remi-app .competition-match p,#remi-app .competition-match-heading span{font-size:13px}
#remi-app .competition-match ol{list-style:none;padding:0}
#remi-app .competition-match li,#remi-app .competition-participants>div{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #ded3b5;padding:6px 0}
#remi-app .competition-match li span{font-size:11px;white-space:nowrap}
#remi-app button[data-profile]{padding:2px 5px;min-height:32px;border:0;background:transparent;color:inherit;font:inherit;text-align:left;text-decoration:underline;text-decoration-color:#58734c66;text-underline-offset:3px;overflow-wrap:anywhere}
#remi-app .competition-notice{border-left:3px solid #ac7933;background:#f2e0af;padding:13px;line-height:1.5}
#remi-app .competition-winner{text-align:center;background:#f5e1ad;border:1px solid #c0a36d;border-radius:10px;padding:24px;margin:20px 0}
#remi-app .competition-winner>span{font-size:64px;color:#a37425}
#remi-app .competition-scores{min-width:0;font-size:13px}
#remi-app .competition-editor{max-width:900px;margin:20px auto}
#remi-app .competition-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#remi-app .competition-wide{grid-column:1/-1}
#remi-app .competition-editor label,#remi-app .competition-dialog label{display:grid;gap:7px;font-size:13px;font-weight:600;margin:10px 0}
#remi-app .competition-editor input,#remi-app .competition-editor textarea,#remi-app .competition-dialog input,#remi-app .competition-dialog textarea{font:16px system-ui;width:100%;min-width:0;box-sizing:border-box;padding:11px;border:1px solid #c7b58b;border-radius:7px;background:#fffaee;color:#29472f}
#remi-app .competition-editor textarea,#remi-app .competition-dialog textarea{min-height:90px;resize:vertical}
#remi-app .competition-editor small{font-weight:400;font-size:11px}
#remi-app .competition-dialog{width:min(620px,calc(100vw - 24px))}
#remi-app .competition-dialog [data-error]{color:#a4362d}
#remi-app .competition-check{display:flex;align-items:center}#remi-app .competition-check input{width:auto}
#remi-app .competition-badges{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}
#remi-app .competition-badges button>*{display:block;margin:5px 0}#remi-app .competition-badges button>span{font-size:42px;color:#a37425}
#remi-app .competition-notification{display:block;width:100%;padding:15px;margin:10px 0;text-align:left}#remi-app .competition-notification small{display:block;margin-top:8px}#remi-app .competition-notification.unread{border-left:4px solid #31583d;background:#e8eccf}
@media(max-width:600px){#remi-app .competition-heading{display:block}#remi-app .competition-form-grid{grid-template-columns:1fr}#remi-app .competition-facts>div{min-width:120px}#remi-app .competition-panel{padding:12px}#remi-app .competition-view{padding:22px 14px}}

#remi-app button[data-profile]:disabled{opacity:1;text-decoration:none;cursor:default}
#remi-app .competition-unread{background:#a63835;color:#fff;padding:2px 6px;border-radius:10px;font:700 11px system-ui;margin-left:auto}
