.homeDashboard {
  --desk-edge: #294451;
  --desk-panel: #09161e;
  --desk-light: #62e6f1;
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(310px, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  padding: clamp(18px, 3vw, 38px) 0 40px;
}
.homeMain, .homeRail, .homeBoard { min-width: 0; }
.homeDashboard :is(h1,h2,h3,p) { margin: 0; }
.homeDashboard :is(.homeLookupBanner,.modeCard,.homeBoard) {
  background: var(--frame-surfaces);
  border: 5px solid transparent;
  border-radius: 20px;
  box-shadow: var(--frame-depth);
  transition: border-color .16s, box-shadow .16s;
}
.homeDashboard :is(.homeLookupBanner,.modeCard,.homeBoard):focus-within {
  border-color: var(--desk-light);
  box-shadow: 0 0 14px #29c6df20;
}
@media (hover:hover) {
  .homeDashboard :is(.homeLookupBanner,.modeCard,.homeBoard):hover { border-color:#4395a5; box-shadow:0 0 14px #29c6df20; }
}
@media (prefers-reduced-motion:reduce) {
  .homeDashboard :is(.homeLookupBanner,.modeCard,.homeBoard) { transition:none; }
}
.homeLookupBanner { position:relative; isolation:isolate; overflow:hidden; padding:clamp(15px,2vw,24px); }
.homeLookupBanner img {
  position:absolute; z-index:-1; inset:0 0 0 auto; width:43%; height:100%;
  object-fit:cover; object-position:center 36%; opacity:.22; mask-image:linear-gradient(90deg,transparent,#000);
}
.homeDashboard :is(.lookupBannerCopy h2,.homeMain h1,.homeBoard h3) {
  display:flex; align-items:center; gap:.45em; font-weight:750; line-height:1.25; letter-spacing:-.035em;
}
.homeDashboard :is(.lookupBannerCopy h2,.homeMain h1,.homeBoard h3,.homeMode h2)::before {
  content:''; flex:0 0 1.28em; height:1.28em;
  background:var(--heading-icon) center / contain no-repeat;
}
.lookupBannerCopy h2 { --heading-icon:url('home-search-icon.webp'); }
.homeMain h1 { --heading-icon:url('home-stats-icon.webp'); }
.homeBoard[data-board=servers] h3 { --heading-icon:url('home-servers-icon.webp'); }
.homeBoard[data-board=players] h3 { --heading-icon:url('home-summoner-icon.webp'); }
.lookupBannerCopy h2 { font-size:clamp(23px,2.5vw,30px); }
.homeLookupForm { display:flex; gap:8px; margin-top:12px; }
.homeLookupForm input, .homeLookupForm button { font:inherit; border-radius:5px; min-height:42px; }
.homeLookupForm input { min-width:0; flex:1; padding:7px 12px; color:#eefaff; background:#071119; border:1px solid #49b5c7; }
.homeLookupForm input::placeholder { color:#9bb1c0; }
.homeLookupForm button { padding:6px clamp(15px,3vw,30px); background:var(--desk-light); color:#06202a; border:0; font-weight:750; cursor:pointer; }
.homeDashboard :focus-visible { outline:2px solid var(--desk-light); outline-offset:2px; }
.homeDashboard .homeMain h1 { margin:22px 0 12px; font-size:clamp(20px,2vw,26px); }
.homeModes,.homeBoards { display:grid; gap:13px; }
.homeDashboard .modeCard { overflow:hidden; }
.modeCard .homeMode {
  position:relative; isolation:isolate; display:grid; grid-template-columns:1fr auto;
  align-content:center; align-items:center; column-gap:8px; min-height:94px; padding:14px clamp(14px,2vw,22px);
  border-bottom:1px solid var(--desk-edge); text-decoration:none; color:#fff; background:#0c2029;
}
.homeMode.rift { --mode-art:url('home-rift-arena.webp'); --heading-icon:url('home-rift-icon.webp'); }
.homeMode.aram { --mode-art:url('home-aram-bridge.webp'); --heading-icon:url('home-aram-icon.webp'); }
.homeMode::before {
  content:''; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(90deg,#05121aee,#07131b80 35%,transparent 67%,#04111b66),var(--mode-art) center/cover;
}
.homeMode h2 { grid-area:1 / 1; display:flex; align-items:center; gap:.32em; font-size:clamp(20px,2.1vw,28px); text-shadow:0 2px 5px #000; }
.homeMode small { grid-column:1; font-size:13px; margin-top:3px; text-shadow:0 1px 3px #000; }
.homeMode .homeCta { grid-area:1 / 2 / span 2; align-self:center; display:flex; gap:6px; align-items:center; padding:5px 9px; background:#07131ae6; border:1px solid #577783; border-radius:4px; font-size:12px; color:#c5f5fc; }
.modeCard .modeRanks { padding:12px clamp(10px,1.5vw,18px) 14px; }
.modeRanks header h3 { font-size:15px; }
.homeDashboard :is(.modeRanks header a,.homeRankLink) { color:var(--desk-light); font-size:13px; }
.modeRanks ol { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; }
.modeRanks ol li { min-width:0; border:0; }
.modeRanks li button {
  position:relative; display:grid; grid-template-columns:1fr; grid-template-rows:16px 32px auto auto;
  justify-items:center; align-content:start; gap:3px; height:100%; min-height:103px; padding:6px 2px;
  text-align:center; border:1px solid #243d48; border-radius:5px; background:#0e202b;
}
.modeRanks button .place { grid-area:1/1; justify-self:start; padding-left:4px; font:700 12px/16px system-ui,sans-serif; color:#b5ccd4; }
.modeRanks button .tierbadge { grid-area:1/1; justify-self:end; margin-right:3px; line-height:16px; }
.modeRanks button .portrait { grid-area:2/1; align-self:center; }
.modeRanks button b { grid-area:3/1; align-self:start; font-size:13px; overflow-wrap:anywhere; line-height:1.2; }
.modeRanks button>span:last-child { grid-area:4/1; font-size:12px; color:#a5dce2; }
.homeRankHead, .homeBoard header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
.homeRankHead { margin:0 0 10px; }
.homeRankHead h2 { font-size:17px; }
.homeSwitch { display:flex; gap:2px; padding:2px; background:#08151c; border:1px solid var(--desk-edge); border-radius:5px; }
.homeSwitch button,.homeBoard>button { font:inherit; font-size:13px; padding:4px 9px; cursor:pointer; border:0; border-radius:3px; color:#c2d6df; background:transparent; }
.homeSwitch button[aria-pressed=true] { color:#a6f5fd; background:#17414d; }
.homeBoard { padding:clamp(12px,1.6vw,19px); }
.homeBoard header { padding-bottom:10px; border-bottom:1px solid #365460; }
.homeBoard h3 { font-size:clamp(16px,1.45vw,20px); }
.homeBoard ol { list-style:none; margin:0; padding:0; }
.homeBoard li { display:grid; grid-template-columns:29px 1fr auto; gap:8px; align-items:center; min-height:44px; }
.homeBoard li+li { border-top:1px solid #233944; }
.homeBoard li>span:last-child { color:var(--desk-light); font-variant-numeric:tabular-nums; }
.homeBoard .homePlace { text-align:center; }
.homePlace.withMedal { height:28px; background:center/contain no-repeat; }
.homeBoard p { margin-top:12px; font-size:14px; color:#aec1cb; }
.homeBoard>button { margin-top:8px; border:1px solid var(--desk-edge); }
@media(max-width:880px) {
  .homeDashboard { grid-template-columns:minmax(0,1fr); }
  .homeBoards { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  .homeBoards { grid-template-columns:minmax(0,1fr); }
  .modeCard .homeMode { min-height:85px; }
  .modeRanks ol { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .modeRanks li button { grid-template-columns:30px minmax(0,1fr) auto; grid-template-rows:auto auto; align-content:center; gap:2px 4px; min-height:56px; padding:5px; }
  .modeRanks button .portrait { grid-area:1/1 / span 2; }
  .modeRanks button b { grid-area:1/2; text-align:left; justify-self:start; }
  .modeRanks button .place { grid-area:1/3; justify-self:end; }
  .modeRanks button .tierbadge { grid-area:2/3; justify-self:end; margin:0; }
  .modeRanks button>span:last-child { grid-area:2/2; justify-self:start; }
}
