/* UTEC English Live Scoring v1.0.74 — public score rules overlay only.
   No changes to scoring, timer, judge, admin, or leaderboard rendering. */
.utec-rules-overlay[hidden], .utec-rules-content [hidden] {display:none !important}
body.utec-rules-open {overflow:hidden !important}
.utec-rules-overlay {
 position:fixed;inset:0;z-index:10020;display:flex;align-items:center;justify-content:center;
 padding:22px;background:rgba(8,27,63,.67);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
 box-sizing:border-box;overscroll-behavior:contain;
}
.utec-rules-dialog {
 --ur-navy:#0a306d;--ur-blue:#1167d8;--ur-line:#d8e7fa;
 position:relative;box-sizing:border-box;width:min(1120px,100%);max-height:min(92dvh,900px);
 background:#fff;border:1px solid #d3e4fb;border-radius:24px;
 display:flex;flex-direction:column;overflow:hidden;color:#12366f;
 font-family:inherit;box-shadow:0 28px 90px rgba(3,22,61,.32);outline:none;
}
.utec-rules-header {flex:none;padding:23px 32px 0;position:relative;text-align:center;background:linear-gradient(110deg,#f6fbff 0%,#fffdfa 58%,#fff3cb 100%);border-bottom:1px solid #e0e9f6}
.utec-rules-brand {display:flex;justify-content:center;gap:8px;align-items:center;font-weight:900;letter-spacing:1.4px;font-size:11px;color:#0b55a8}
.utec-rules-brand-sep {color:#f5b218;padding:0 2px}
.utec-rules-symbol{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:8px;color:#9a6400;background:#ffedbb;font-size:18px}
.utec-rules-header h2 {font-size:clamp(21px,2.4vw,29px);font-weight:850;color:#092d67;line-height:1.25;margin:12px 38px 7px;letter-spacing:-.6px}
.utec-rules-header>p {font-size:13px;color:#5b7399;line-height:1.5;margin:0 18px 16px}
.utec-rules-close {position:absolute;right:20px;top:16px;border:1px solid #d9e7f8;border-radius:50%;height:41px;width:41px;background:#f0f6fd;color:#12386f;display:grid;place-items:center;font-size:29px;line-height:1;cursor:pointer}
.utec-rules-close:hover,.utec-rules-close:focus-visible{background:#e0edff;outline:2px solid #247bf5;outline-offset:2px}
.utec-rules-tabs {display:flex;justify-content:center;gap:8px;padding-bottom:17px;flex-wrap:wrap}
.utec-rules-tabs button {border:1px solid #d5e5fa;background:#fff;color:#284c81;font:inherit;font-size:13px;font-weight:800;padding:10px 20px;border-radius:14px;cursor:pointer;transition:background .15s,color .15s}
.utec-rules-tabs button[aria-selected="true"]{background:linear-gradient(105deg,#ffdf73,#ffc843);border-color:#f5c451;color:#14386d;box-shadow:0 4px 10px rgba(232,176,49,.13)}
.utec-rules-tabs button:focus-visible,.utec-rules-done:focus-visible{outline:3px solid #268aff;outline-offset:2px}
.utec-rules-content {flex:1;min-height:0;overflow:auto;padding:22px 30px 26px;scrollbar-color:#a5bedf #eef4ff;overscroll-behavior:contain}
.utec-rules-grid {display:grid;grid-template-columns:minmax(0,.93fr) minmax(0,1.07fr);align-items:stretch;gap:18px}
/* Keep the existing #aturan structure so v1.0.53 dynamically updates the displayed penalty values. */
.utec-rules-overlay #aturan.side-card,
.utec-rules-overlay .utec-rules-card,
.utec-rules-mini {background:#fff;border:1px solid var(--ur-line,#d8e7fa);border-radius:17px;box-shadow:0 5px 20px rgba(15,55,121,.035)}
.utec-rules-overlay #aturan.side-card {margin:0;padding:20px;min-height:0;max-width:none}
.utec-rules-overlay #aturan .card-title{margin:0 0 9px}
.utec-rules-overlay #aturan .card-title h2{color:#0b306c;font-size:19px;line-height:1.2}
.utec-rules-overlay #aturan .rule-row {gap:9px;min-height:43px}
.utec-rules-overlay #aturan .rule-row span:not(.rule-symbol){font-size:13px}
.utec-rules-overlay #aturan .rule-row strong{font-size:13px;white-space:nowrap}
.utec-rules-overlay #aturan .penalty-note {margin:10px 0 12px}
.utec-rules-overlay #aturan .small-note {font-size:12px;line-height:1.6;color:#59759c}
.utec-rules-right {display:grid;gap:15px}
.utec-rules-card{padding:18px}
.utec-rules-card h3{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:850;margin:0 0 14px;color:#0d326b}
.utec-rules-card-icon{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:9px;background:#e4f0ff;color:#1466d0;font-weight:900;font-size:17px}
.utec-rules-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.utec-rules-steps>div {border-radius:12px;background:#edf6ff;padding:13px 10px;min-height:115px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}
.utec-rules-steps>div:nth-child(3){background:#fff5db}
.utec-rules-steps>div>span{background:#126cdb;color:white;font-size:14px;font-weight:900;width:28px;height:28px;display:grid;place-items:center;border-radius:50%}
.utec-rules-steps>div:nth-child(3)>span{background:#f6ae11;color:#724c00}
.utec-rules-steps strong{font-size:12px;line-height:1.3;color:#113978}
.utec-rules-steps small{font-size:11px;line-height:1.42;color:#557095}
.utec-rules-help-grid {display:grid;grid-template-columns:1fr 1fr;gap:11px}
.utec-rules-help {background:#f4f9ff;border:1px solid #dceafb;border-radius:12px;padding:12px}
.utec-rules-help strong{font-size:13px;color:#123d83}
.utec-rules-help p,.utec-rules-mini p{font-size:12px;color:#5e7598;line-height:1.55;margin:5px 0 0}
.utec-rules-tip {border:1px solid #f2dfad;background:#fff8e8;color:#775718;border-radius:12px;padding:11px 13px;font-size:12px;line-height:1.6;margin:12px 0 0}
.utec-rules-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:17px}
.utec-rules-mini{padding:14px;display:flex;align-items:flex-start;gap:10px}
.utec-rules-mini-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:11px;background:#e8f2ff;font-size:22px;color:#116ddd;font-weight:850}
.utec-rules-mini-icon.ok{background:#e0f8ed;color:#008e62}.utec-rules-mini-icon.no{background:#ffecf0;color:#dc2d53}
.utec-rules-mini h3{font-size:14px;color:#10386f;line-height:1.3;margin:2px 0 0}
.utec-rules-stage-head{background:linear-gradient(105deg,#eef6ff,#fff9e9);border:1px solid #dce9fa;border-radius:16px;padding:22px 24px}
.utec-rules-stage-head span{font-size:11px;letter-spacing:1px;color:#0a69d1;font-weight:850}
.utec-rules-stage-head h3{font-size:22px;color:#103675;line-height:1.3;margin:6px 0 6px}
.utec-rules-stage-head p{font-size:13px;line-height:1.6;color:#577094;margin:0}
.utec-rules-winning{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.utec-rules-winning-step{padding:16px;border:1px solid #d7e7fa;border-radius:14px;display:flex;gap:12px;background:#fafcff}
.utec-rules-winning-step b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#1778e3;color:#fff;flex:none}
.utec-rules-winning-step strong{display:block;color:#173c73;font-size:14px}
.utec-rules-winning-step p{color:#597395;font-size:12px;line-height:1.55;margin:5px 0 0}
.utec-rules-footer{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 30px;border-top:1px solid #e0eaf7;background:#f8fbff;color:#6e83a2;font-size:11px}
.utec-rules-done{border:0;border-radius:11px;padding:11px 23px;font:inherit;font-size:12px;font-weight:800;background:#086ad7;color:white;cursor:pointer}
.utec-rules-done:hover{background:#0554a9}
@media(max-width:800px){
 .utec-rules-overlay{padding:10px;align-items:center}
 .utec-rules-dialog{width:100%;max-height:94dvh;border-radius:18px}
 .utec-rules-header{padding:17px 16px 0}
 .utec-rules-brand{font-size:9px;letter-spacing:.7px;max-width:calc(100% - 42px);margin:auto}
 .utec-rules-header h2{margin:12px 30px 6px;font-size:20px}
 .utec-rules-header>p{font-size:11px;margin:0 0 13px}
 .utec-rules-close{width:33px;height:33px;right:9px;top:9px;font-size:25px}
 .utec-rules-tabs{gap:5px;padding-bottom:13px}
 .utec-rules-tabs button{font-size:11px;padding:9px 11px}
 .utec-rules-content{padding:14px 12px 20px}
 .utec-rules-grid{grid-template-columns:1fr;gap:11px}
 .utec-rules-overlay #aturan.side-card,.utec-rules-card{padding:14px}
 .utec-rules-three{grid-template-columns:1fr;gap:9px;margin-top:10px}
 .utec-rules-footer{padding:11px 14px}
 .utec-rules-footer>span{max-width:175px}
 .utec-rules-winning{grid-template-columns:1fr;gap:9px}
}
@media(max-width:380px){.utec-rules-steps{gap:5px}.utec-rules-steps>div{padding:10px 6px}.utec-rules-help-grid{grid-template-columns:1fr}.utec-rules-footer>span{display:none}.utec-rules-footer{justify-content:flex-end}}
@media(prefers-reduced-motion:reduce){.utec-rules-tabs button{transition:none}}
