/* Keep the home bezel consistent at three scales: panels, inset sections and tiles. */
:root {
  --frame-width:5px;
  --frame-radius:20px;
  --frame-rim: linear-gradient(165deg,#96cbff 0%,#497de9 9%,#3464cf 32%,#20438d 63%,#101e46 89%,#36549c 100%);
  --frame-surfaces: linear-gradient(115deg,#0d202a,#09161e 65%) padding-box, var(--frame-rim) border-box;
  --frame-depth: inset 0 1px 3px #060f2599,0 1px 0 #719cfc7d,0 5px 0 #101e3c,0 8px 15px #02050c73;
}

#statsPanel > .panel, .fixture #settings-panel,
main :is(.hero[data-mode],.panel,.draftEntry,.draftCard,.drawPanel,.tour .box,.fixture-panel,.connectBox,
  .lookupHero,.myScrims,.guideFold,.catalog,.plate-example,.count-guide,.art-library,.stamp-library,
  .raceGuide,.machine,.console),
.guildRanks > section, .playerInvitation > main, .auctionUi :is(.sbox,.stage,.queue,.panel),
dialog:is(#detail,.standingDetail,.awardDialog) {
  box-sizing:border-box;
  border:var(--frame-width) solid transparent;
  border-radius:var(--frame-radius);
  background:var(--frame-surfaces);
  box-shadow:var(--frame-depth);
}

/* The scroll container and table retain their native semantics and aligned columns. */
.champTable { border-collapse:separate; border-spacing:0 4px; }
.champTable tbody tr > :is(td,th) {
  border-block:1px solid #435f92;
  background-color:#101f2e;
}
.champTable tbody tr > :first-child {
  border-inline-start:2px solid #608fea;
  border-radius:9px 0 0 9px;
}
.champTable tbody tr > :last-child {
  border-inline-end:2px solid #324f85;
  border-radius:0 9px 9px 0;
}
.champTable tbody tr:is(:hover,:focus-within) > :is(td,th) { background-color:#182e43; }

#detail .buildSection {
  margin-block:10px; padding:clamp(10px,2vw,16px);
  border:2px solid transparent; border-radius:12px;
  background:var(--frame-surfaces);
}
.tierBoard .tierEntry, .homeDashboard .modeRanks li button {
  border:2px solid transparent; border-radius:9px;
  background:var(--frame-surfaces);
}
:is(.tierBoard .tierEntry,.homeDashboard .modeRanks li button):is(:hover,:focus-visible) {
  border-color:#78d3ef;
}
@media(max-width:600px) {
  :root { --frame-width:3px; --frame-radius:15px; }
}
