#practice-rivals { color:var(--ink,#183f35); margin-block:36px 48px; }
#practice-rivals > h2 { margin:0; font:750 clamp(27px,3.3vw,38px)/1.1 var(--display,system-ui); letter-spacing:-.055em; }
#practice-rivals > p { max-width:64ch; color:#425f52; margin:8px 0 18px; line-height:1.5; }
.rival-sheet {
  overflow:hidden; background:#fffdf4; border:1px solid #bccdbb; border-radius:20px;
  box-shadow:0 4px #cbd9c9,0 10px 23px -18px #2b5440;
}
.rival-top {
  display:flex; align-items:center; justify-content:space-between; padding:18px clamp(14px,3vw,28px);
  gap:12px; color:#fffbed; background:#24554a;
}
.rival-summary h3 { margin:0; font-size:15px; font-weight:650; color:#e1edda; }
.rival-summary p { margin:3px 0 0; font-size:14px; }
.rival-summary strong { font-variant-numeric:tabular-nums; font-size:30px; line-height:1.1; letter-spacing:-.055em; }
#rival-rank { margin-inline-start:12px; font-weight:700; }
#practice-rivals button {
  color:#234d40; background:#f3f3e3; border:1px solid #aec4af; border-radius:11px; padding:7px 12px;
  min-height:44px; font:710 13px/1.18 var(--display,system-ui); cursor:pointer; box-shadow:0 2px #bfcebb;
}
#practice-rivals button:hover:enabled { background:#e2eedc; }
#practice-rivals button:focus-visible { outline:3px solid #2f7a63; outline-offset:3px; }
#practice-rivals .rival-top button:focus-visible { outline-color:#f0ce84; }
#practice-rivals button[aria-pressed="true"] { color:#fffbee; border-color:#204c3e; background:#2a5e4f; box-shadow:0 1px #1c4438; }
#practice-rivals button:disabled { cursor:default; background:#f1f2e9; color:#6b756b; box-shadow:none; }
.rival-filters { display:flex; flex-wrap:wrap; gap:7px; padding:16px clamp(11px,2.4vw,25px); }
.rival-table { width:calc(100% - 2 * clamp(10px,2.4vw,25px)); margin:inline:auto; border-collapse:collapse; }
.rival-table caption { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.rival-table thead { background:#edf1e4; }
.rival-table th,.rival-table td { padding:8px clamp(5px,1.4vw,14px); text-align:start; }
.rival-table thead th { color:#4a6354; font-size:12px; }
.rival-table tbody tr { border-bottom:1px solid #d9e2d4; }
.rival-table td { font-size:14px; font-weight:650; font-variant-numeric:tabular-nums; }
.rival-table th:last-child,.rival-table td:last-child { text-align:end; }
.rival-table .rival-you { background:#e1eed8; }
.rival-name { display:flex; align-items:center; gap:10px; }
.rival-name strong,.rival-name small { display:block; }
.rival-name strong { font-weight:730; font-size:15px; }
.rival-name small { font-size:12px; font-weight:500; color:#4f6257; margin-top:2px; }
.rival-art { display:grid; place-items:center; flex:none; width:36px; height:36px; border:2px solid #fff8d9; border-radius:50%; box-shadow:0 0 0 1px #a8bfa7; background:#2e6652; color:#fff7cf; background-size:500% 300%; }
.rival-art[data-region="Africa"] { background-image:url("companions-africa.webp"); }
.rival-art[data-region="Asia"] { background-image:url("companions-asia.webp"); }
.rival-art[data-region="Europe"] { background-image:url("companions-europe.webp"); }
.rival-art[data-region="Americas"] { background-image:url("companions-americas.webp"); }
.rival-art[data-region="Oceania"] { background-image:url("companions-oceania.webp"); }
.rival-pages { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:13px clamp(11px,2.4vw,25px); }
#rival-page { font-size:13px; color:#486151; font-variant-numeric:tabular-nums; }
@media (max-width:450px) {
  .rival-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  #practice-rivals .rival-filters button { padding-inline:3px; }
  .rival-name { gap:6px; }
  .rival-art { width:28px; height:28px; }
  .rival-table thead th,.rival-table tbody td { padding-inline:4px; }
}
