:root{color-scheme:dark;--bg:#06121d;--panel:#0a1b2b;--line:#183044;--text:#f5f7fa;--muted:#8599ac;--blue:#1b95ed;--gold:#f7bb18;--silver:#d1d8dd;--bronze:#ff7626;font-family:Arial,Helvetica,sans-serif;font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth;-webkit-tap-highlight-color:transparent}body{margin:0;background:var(--bg);color:var(--text);min-width:320px}button,select{font:inherit}button{cursor:pointer;touch-action:manipulation;user-select:none}button:active{transform:scale(.98)}button:focus-visible,select:focus-visible,a:focus-visible,.table-scroll:focus-visible{outline:3px solid #60b9ff;outline-offset:3px}::selection{background:#248fe4;color:#fff}.wrap{width:min(100% - 48px,1290px);margin-inline:auto}
.site-header{min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:20px}.logo{font-weight:950;font-size:31px;letter-spacing:-2.1px;text-decoration:none;color:#f3f7fa;line-height:1}.logo span{color:var(--blue)}.header-tag{font-size:12px;font-weight:800;letter-spacing:.17em;color:#8fa6b9}
.logo{display:inline-flex;align-items:center;gap:13px}.school-logo{width:61px;height:61px;object-fit:contain;flex:none}.logo .logo-text{color:#f3f7fa}.logo .logo-text span{color:var(--blue)}.crown{position:absolute;top:26px;width:28px;height:24px}
.hero-panel{min-height:330px;border:1px solid #10283b;background:linear-gradient(135deg,#0b1c2b,#081725);border-radius:22px;display:flex;align-items:center;flex-direction:column;text-align:center;padding:31px 28px 26px}.event-tag{display:flex;align-items:center;gap:10px;background:#081523;color:#64b5f2;border-radius:999px;padding:7px 14px;font-size:11px;font-weight:850;letter-spacing:.21em}.event-dot{width:6px;height:6px;border-radius:50%;background:#1896ef}.hero h1{font-size:clamp(46px,6.4vw,86px);line-height:.95;letter-spacing:-.055em;margin:29px 0 23px;font-weight:950}.ranking-controls{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}.ranking-switch{display:flex;gap:4px;padding:4px;border-radius:10px;background:#071320;border:1px solid #193149}.ranking-switch button{padding:10px 16px;color:#8cb9d7;background:transparent;border:0;border-radius:7px;font-size:14px;font-weight:750}.ranking-switch button[aria-pressed="true"]{background:#173a55;color:#eff8ff}.sport-select{display:flex;align-items:center;gap:8px;color:#9fc6e1;font-size:13px;font-weight:700}.sport-select[hidden]{display:none}.sport-select select{appearance:none;min-width:132px;border:1px solid #204b68;border-radius:9px;background:#0b2234;color:#e7f6ff;padding:10px 32px 10px 12px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23a3d9ff' stroke-width='2'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;cursor:pointer}.preview-note{font-size:12px;color:#7f91a3;margin:19px 0 0}
.podium-section{padding-top:32px}.podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:end}.podium-card{border-radius:16px;border:1px solid;display:flex;flex-direction:column;align-items:center;position:relative;background:#0b151f}.podium-card--second{height:178px;border-color:#536472}.podium-card--first{height:250px;border-color:#a48218;background:#101518}.podium-card--third{height:178px;border-color:#a34b18;background:#111319}.podium-card .crest{position:relative;display:grid;place-items:center;overflow:visible;background:linear-gradient(135deg,#263c4b,#0d1723);border:2px solid;border-radius:14px;width:80px;height:80px;flex:none;margin-top:17px}.podium-card--first .crest{width:96px;height:96px;margin-top:57px}.podium-card--second .crest{border-color:var(--silver)}.podium-card--first .crest{border-color:var(--gold)}.podium-card--third .crest{border-color:var(--bronze)}.crest strong{font-size:26px;z-index:1;letter-spacing:-.08em;text-shadow:0 2px 5px #000}.podium-card--first .crest strong{font-size:30px}.place-badge{position:absolute;right:-10px;top:-10px;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;color:#101820;font-size:13px;font-weight:900;z-index:2}.podium-card--second .place-badge{background:var(--silver)}.podium-card--first .place-badge{background:var(--gold)}.podium-card--third .place-badge{background:var(--bronze);color:#fff}.podium-card h2{margin:12px 0 7px;font-size:18px;letter-spacing:-.025em}.podium-points{display:flex;align-items:center;gap:5px;font-size:20px}.podium-card--second .podium-points{color:var(--silver)}.podium-card--first .podium-points{color:var(--gold)}.podium-card--third .podium-points{color:var(--bronze)}.trophy{width:19px;height:19px;flex:none}
.ranking-panel{margin-top:24px}.ranking-panel-inner{border:1px solid #122b3f;background:#0a1b2b;border-radius:18px;padding:28px 26px 20px}.ranking-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}.ranking-heading h2{margin:0;font-size:26px;letter-spacing:-.04em}.ranking-heading h2 span{font-weight:400;color:#8295a8}.ranking-heading p{margin:7px 0 0;color:#8197a9;font-size:14px}.team-count{color:#71879b;font-size:14px;padding-top:6px;white-space:nowrap}.table-scroll{overflow-x:auto;scrollbar-color:#31516a #0a1b2b;scrollbar-width:thin}table{border-collapse:separate;border-spacing:0 9px;width:100%;margin-top:27px;font-variant-numeric:tabular-nums}th{text-align:left;color:#8195a7;font-size:14px;font-weight:600;padding:0 17px 11px;white-space:nowrap}th:last-child{text-align:right}td{background:#0b1928;border-top:1px solid #153147;border-bottom:1px solid #153147;padding:12px 17px;height:63px;font-size:17px}td:first-child{border-left:1px solid #153147;border-radius:11px 0 0 11px}td:last-child{border-right:1px solid #153147;border-radius:0 11px 11px 0}
/* The medal colors carry across the entire top-three row. */
.top-1 {
  --row-fill: #232419;
  --row-border: #79642a;
}
.top-2 {
  --row-fill: #252c34;
  --row-border: #7b858f;
}
.top-3 {
  --row-fill: #261e1d;
  --row-border: #794629;
}
:is(.top-1, .top-2, .top-3) td {
  background: var(--row-fill);
  border-color: var(--row-border);
}
:is(.top-1, .top-2, .top-3) :is(.points, .sport-points, .breakdown-score) {
  color: #f5f7fa;
}
.position{white-space:nowrap;font-size:17px}.position .place-icon{display:inline-flex;vertical-align:middle;width:25px}.position .trophy{width:16px;height:16px}.top-1 .position{color:var(--gold)}.top-2 .position{color:var(--silver)}.top-3 .position{color:var(--bronze)}.team{white-space:nowrap}.team strong{margin-left:12px}.mini-crest{display:inline-grid;place-items:center;vertical-align:middle;width:35px;height:35px;border-radius:7px;background:#1d3448;border:1px solid #47677e;color:#eff7fc;font-size:12px;font-weight:850}
.points, .sport-points, .breakdown-score {
  color: #9aabbb;
  font-family: Sora, Arial, sans-serif;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.points { text-align: right; font-size: 22px; }
.sport-points { font-size: 18px; }
.sport-points small { font: 12px Arial, sans-serif; color: #8399aa; }
.breakdown-score { font-size: 13px; }
.breakdown-item { white-space: nowrap; }
.ranking-footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #183348;margin-top:15px;padding-top:17px;color:#71879b;font-size:12px}.site-footer{display:flex;justify-content:space-between;gap:15px;padding-block:30px 45px;font-size:12px;color:#60798e;font-weight:700;letter-spacing:.04em}
@media(max-width:900px){.wrap{width:min(100% - 32px,1290px)}.hero h1{font-size:clamp(44px,7.5vw,70px)}.podium-section{padding-top:25px}.ranking-panel-inner{padding:23px 18px}.table-scroll table{min-width:680px}.site-header{min-height:78px}}
@media(max-width:600px){.wrap{width:min(100% - 24px,1290px)}.site-header{min-height:70px}.logo{font-size:24px}.header-tag{font-size:10px;letter-spacing:.08em}.hero-panel{min-height:0;padding:31px 15px 28px;border-radius:16px}.event-tag{font-size:9px;letter-spacing:.12em}.hero h1{font-size:clamp(38px,10vw,58px);margin:27px 0 25px}.ranking-controls{flex-direction:column;width:100%}.ranking-switch{width:100%;max-width:350px}.ranking-switch button{flex:1;font-size:12px;padding:11px 8px}.preview-note{font-size:11px;max-width:280px;line-height:1.5}
  .podium { gap: 10px; }
  .podium-card { border-radius: 14px; }
  .podium-card--second,
  .podium-card--third { height: 144px; }
  .podium-card--first { height: 198px; }
  .podium-card .crest {
    width: clamp(48px, 15vw, 64px);
    height: auto;
    aspect-ratio: 1;
    margin-top: 16px;
    border-radius: 12px;
  }
  .podium-card--first .crest {
    width: clamp(58px, 18vw, 78px);
    margin-top: 44px;
  }
  .podium-card .crest strong { font-size: 22px; }
  .podium-card--first .crest strong { font-size: 26px; }
  .podium-card .place-badge {
    width: 21px;
    height: 21px;
    top: -7px;
    right: -7px;
    font-size: 11px;
  }
  .podium-card h2 { margin: 8px 0 5px; font-size: 15px; }
  .podium-points { font-size: 17px; }
  .podium-points .trophy { width: 15px; height: 15px; }
  .crown { top: 15px; width: 23px; height: 20px; }
  .ranking-panel{margin-top:16px}.ranking-panel-inner{border-radius:15px;padding:20px 10px}.ranking-heading{padding-inline:7px}.ranking-heading h2{font-size:20px}.ranking-heading p{font-size:12px}.team-count{font-size:12px}.table-scroll table{min-width:620px;margin-top:20px}th{font-size:12px;padding-inline:11px}td{padding-inline:11px;font-size:15px}.points{font-size:19px}.ranking-footer,.site-footer{flex-direction:column;gap:7px}.ranking-footer{padding-inline:7px}.site-footer{padding-block:23px 30px}}
@media(max-width:600px){.school-logo{width:48px;height:48px}.header-tag{display:none}}
@media(max-width:600px){.table-scroll table{min-width:0;width:100%}.sport-points,th:nth-child(n+3):not(:last-child){display:none}.position{width:76px}.team{width:auto}.points{width:65px}.team strong{margin-left:7px}.mini-crest{width:30px;height:30px}.ranking-panel-inner{padding-inline:10px}}
@media(hover:hover) and (pointer:fine){.ranking-switch button:not([aria-pressed="true"]):hover{background:#102a3f;color:#d5efff}.sport-select select:hover{border-color:#4096d0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.mobile-breakdown{display:none}
@media(max-width:900px){.table-scroll{overflow-x:visible}.table-scroll table{min-width:0;width:100%}.sport-points,th:nth-child(n+3):not(:last-child){display:none}.mobile-breakdown{display:block;color:#8da0ae;font-size:12px;font-weight:400;margin:6px 0 0 47px;white-space:normal;line-height:1.35}.team{white-space:normal}.team strong{white-space:nowrap}}

@media (max-width: 380px) {
  .mobile-breakdown { margin-left: 0; }
}

.podium-card .crest,
.mini-crest {
  background-image: linear-gradient(#1020319c, #0d1723b8), var(--school-crest, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover, 90% auto;
}
.mini-crest {
  text-shadow: 0 1px 4px #000, 0 1px 2px #000;
}

.team-finder {
  width: fit-content;
  flex-wrap: wrap;
  margin: 16px 0 0;
  gap: 10px;
}
.team-finder select { min-height: 44px; font-size: 16px; }
.team-finder + .table-scroll table { margin-top: 14px; }
tr[id^="turma-"]:focus { outline: none; }
tr.team-found td {
  background: #153b56;
  border-color: #68baff;
}
@media (max-width: 600px) {
  .team-finder { margin-inline: 7px; }
}
