
*{box-sizing:border-box}
:root{
  --bg:#f6f8fb; --panel:#fff; --text:#171a1f; --sub:#6f7782; --line:#e8ebef;
  --nav:#12161b; --accent:#3d73ff; --accent-soft:#edf3ff; --ok:#1eaf67;
  --warn:#f0a43c; --danger:#e25353; --shadow:0 14px 40px rgba(25,33,45,.07);
}
html{scroll-behavior:smooth}
body{
  margin:0;color:var(--text);
  background:
    radial-gradient(circle at 75% 10%,rgba(255,255,255,.96),transparent 34%),
    linear-gradient(180deg,#fff 0%,var(--bg) 100%);
  font-family:Inter,"Noto Sans JP",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body.menu-open{overflow:hidden}
a{color:inherit}
button,input,select{font:inherit}

.topbar{
  height:82px;padding:0 34px;display:grid;grid-template-columns:290px 1fr 160px;
  align-items:center;position:sticky;top:0;z-index:100;
  background:linear-gradient(180deg,#161b20,#111519);color:#fff;
  box-shadow:0 8px 28px rgba(0,0,0,.08);
}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:750;font-size:20px;min-width:0}
.brand-logo-wrap{width:48px;height:48px;border-radius:11px;background:#fff;display:grid;place-items:center;overflow:hidden;box-shadow:0 4px 14px rgba(0,0,0,.24);flex:0 0 auto}
.brand-logo-wrap img{width:44px;height:44px;object-fit:contain;display:block}
.brand-name{white-space:nowrap;letter-spacing:-.02em}

.nav{display:flex;justify-content:center;gap:34px;align-items:center}
.nav-item{position:relative}
.nav>a,.nav-item>button{
  color:#edf0f3;text-decoration:none;background:none;border:0;cursor:pointer;
  padding:28px 2px 24px;position:relative;font-size:15px
}
.nav>a:hover,.nav-item>button:hover{color:#fff}
.nav>a.active::after,.nav-item>button.active::after{
  content:"";position:absolute;left:0;right:0;bottom:10px;height:3px;
  border-radius:999px;background:var(--accent)
}
.nav-arrow{font-size:12px;opacity:.7;margin-left:5px;transition:.18s ease}
.nav-item:hover .nav-arrow,.nav-item.open .nav-arrow{display:inline-block;transform:rotate(180deg)}

.mega-menu{
  position:absolute;top:66px;left:50%;transform:translate(-50%,-8px) scale(.985);
  min-width:470px;padding:14px;background:rgba(20,25,30,.985);
  border:1px solid rgba(255,255,255,.07);border-radius:16px;
  box-shadow:0 22px 54px rgba(0,0,0,.28);opacity:0;pointer-events:none;
  transition:.18s ease;display:grid;grid-template-columns:1fr 1fr;gap:10px;
}
.nav-item:hover .mega-menu,.nav-item.open .mega-menu{
  opacity:1;pointer-events:auto;transform:translate(-50%,0) scale(1)
}
.menu-group{padding:8px}
.menu-group-title{
  color:#8f98a2;font-size:11px;font-weight:800;letter-spacing:.12em;
  text-transform:uppercase;margin:0 0 7px;padding:0 7px
}
.menu-group a{
  display:block;color:#f6f8fa;text-decoration:none;padding:10px 11px;border-radius:9px;
  font-size:14px;line-height:1.2
}
.menu-group a:hover{background:#2e353d}
.menu-group a small{display:block;color:#97a1ab;font-size:11px;margin-top:4px}
.small-menu{min-width:210px;grid-template-columns:1fr}


.social-links{justify-self:end;display:flex;align-items:center;gap:8px}
.social-link{width:40px;height:40px;border:1px solid rgba(255,255,255,.16);border-radius:11px;display:grid;place-items:center;color:#f6f8fa;text-decoration:none;background:rgba(255,255,255,.035);transition:.18s ease}
.social-link:hover{background:#fff;color:#111519;transform:translateY(-2px);border-color:#fff}
.social-link svg{width:19px;height:19px;fill:currentColor;display:block}

.profile{
  justify-self:end;width:44px;height:44px;border-radius:50%;
  border:2px solid #f0f3f6;background:transparent;position:relative;cursor:pointer
}
.profile:before{content:"";position:absolute;width:10px;height:10px;border:2px solid #fff;border-radius:50%;left:15px;top:8px}
.profile:after{content:"";position:absolute;width:20px;height:10px;border:2px solid #fff;border-bottom:0;border-radius:12px 12px 0 0;left:10px;bottom:7px}

.mobile-menu-button{
  display:none;justify-self:end;width:44px;height:44px;border:0;background:transparent;cursor:pointer;
  position:relative
}
.mobile-menu-button span{
  position:absolute;left:8px;width:28px;height:2px;background:#fff;border-radius:99px;transition:.2s ease
}
.mobile-menu-button span:nth-child(1){top:13px}
.mobile-menu-button span:nth-child(2){top:21px}
.mobile-menu-button span:nth-child(3){top:29px}
.mobile-menu-button.open span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.mobile-menu-button.open span:nth-child(2){opacity:0}
.mobile-menu-button.open span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

.container{max-width:1240px;margin:0 auto;padding:58px 30px 80px}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:34px}
.page-head h1{margin:0;font-size:38px;letter-spacing:-.03em}
.page-head p{margin:7px 0 0;color:var(--sub);font-size:14px}
.breadcrumb{color:var(--sub);font-size:13px;margin-bottom:14px}
.card{background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}
.section-title{font-size:20px;margin:0 0 18px}
.muted{color:var(--sub)}
.reveal{opacity:0;transform:translateY(18px)}
.reveal.visible{animation:reveal .55s ease forwards}
@keyframes reveal{to{opacity:1;transform:none}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}


.hero-brand{display:flex;align-items:center;gap:22px}
.hero-logo{width:112px;height:112px;object-fit:contain;border-radius:20px;background:#fff;box-shadow:0 18px 40px rgba(25,33,45,.10);border:1px solid var(--line)}
.hero-kicker{font-size:12px;letter-spacing:.24em;color:var(--sub);font-weight:800;margin-bottom:10px}
.hero-brand h1{font-size:48px;line-height:1;margin:0;letter-spacing:-.055em}
.hero-brand-copy{margin:0;color:var(--sub);font-size:17px;letter-spacing:.02em}

.hero{min-height:470px;display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:30px;margin-top:8px}
.hero-copy{padding:20px 0}.hero-title-space{min-height:155px}.hero-desc-space{min-height:78px}
.hero-actions{display:flex;gap:12px;margin-top:26px}
.btn{
  min-width:160px;height:48px;border-radius:10px;border:1px solid var(--line);background:#fff;
  cursor:pointer;transition:.18s ease;font-weight:600
}
.btn:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(25,33,45,.08)}
.btn.primary{background:var(--accent);color:white;border-color:var(--accent)}
.scene{height:370px;position:relative;perspective:1000px}
.iso{
  position:absolute;width:145px;height:145px;border-radius:28px;
  background:linear-gradient(145deg,#fff,#edf0f4);box-shadow:0 24px 45px rgba(50,61,73,.12);
  transform:rotate(30deg) skewY(-8deg);animation:float 6s ease-in-out infinite
}
.iso.one{left:30%;top:50px}.iso.two{left:50%;top:150px;animation-delay:.8s}
.iso.three{left:12%;top:210px;width:70px;height:70px;animation-delay:1.5s}
.iso.four{right:5%;top:80px;width:64px;height:64px;animation-delay:1s}

.home-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:24px;margin-top:24px}
.news-preview,.stats-card{padding:26px}
.news-item{
  display:grid;grid-template-columns:100px 100px 1fr 20px;gap:16px;align-items:center;
  min-height:66px;border-top:1px solid var(--line);font-size:14px
}
.news-item:first-of-type{border-top:0}
.tag{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 12px;border-radius:999px;background:#f1f3f6;color:#58616c;font-size:12px}
.mini-stat{display:flex;justify-content:space-between;align-items:center;padding:17px 0;border-top:1px solid var(--line)}
.mini-stat:first-of-type{border-top:0}.mini-stat strong{font-size:24px}

.ranking-switch{display:flex;gap:10px;margin-bottom:24px}
.rank-type{border:1px solid var(--line);background:#fff;border-radius:11px;padding:12px 18px;cursor:pointer;font-weight:700}
.rank-type.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}
.metric-card{padding:20px;text-decoration:none;transition:.18s ease;cursor:pointer}
.metric-card:hover,.metric-card.active{transform:translateY(-2px);border-color:#cfdcff;box-shadow:0 16px 36px rgba(61,115,255,.10)}
.metric-card.active{background:var(--accent-soft)}
.metric-card h3{margin:0 0 6px;font-size:17px}.metric-card p{margin:0;color:var(--sub);font-size:13px;line-height:1.5}
.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:20px}
.search{margin-left:auto;width:260px;height:40px;border:1px solid var(--line);border-radius:10px;padding:0 13px;background:#fff}
.ranking-card{overflow:hidden}
.ranking-head,.ranking-row{display:grid;grid-template-columns:84px 1fr 150px 150px 120px;gap:14px;align-items:center;padding:0 22px}
.ranking-head{min-height:48px;background:#fafbfc;border-bottom:1px solid var(--line);color:var(--sub);font-size:12px;font-weight:700;text-transform:uppercase}
.ranking-row{min-height:74px;border-bottom:1px solid var(--line);transition:.18s ease}
.ranking-row:hover{background:#fafcff;transform:translateX(3px)}
.ranking-row:last-child{border-bottom:0}
.rank-badge{width:38px;height:38px;border-radius:10px;background:#f1f3f6;display:flex;align-items:center;justify-content:center;font-weight:800}
.rank-badge.top{background:#eef3ff;color:var(--accent)}
.player{display:flex;align-items:center;gap:12px}.avatar{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,#dfe5ed,#f7f8fa)}
.skin-head{width:38px;height:38px;border-radius:10px;object-fit:cover;image-rendering:pixelated;background:#eef2f6;border:1px solid var(--line);box-shadow:0 7px 18px rgba(25,33,45,.08)}
.skin-head-lg{width:86px;height:86px;border-radius:18px}
.skin-head-sm{width:30px;height:30px;border-radius:8px}
.player-profile-head{display:flex;align-items:center;gap:18px;margin-bottom:20px}
.player-profile-head h2{margin:0 0 6px}
.player-profile-head p{margin:0;color:var(--sub);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;word-break:break-all}
.player small{display:block;color:var(--sub);margin-top:3px}.time{font-variant-numeric:tabular-nums;font-weight:700}
.hidden{display:none!important}

.info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.info-card{padding:24px;min-height:170px;text-decoration:none;transition:.18s ease}
.info-card:hover{transform:translateY(-3px);box-shadow:0 18px 46px rgba(25,33,45,.09)}
.info-card h3{margin:0 0 10px;font-size:19px}.info-card p{margin:0;color:var(--sub);line-height:1.7;font-size:14px}
.info-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.info-pill{padding:7px 10px;background:#f3f5f7;border-radius:999px;font-size:12px;color:#5f6873}

.detail-layout{display:grid;grid-template-columns:280px 1fr;gap:22px}
.side-card{padding:20px;align-self:start;position:sticky;top:104px}
.side-card a{
  display:block;padding:11px 12px;border-radius:9px;text-decoration:none;color:#56606b;font-size:14px
}
.side-card a:hover,.side-card a.active{background:var(--accent-soft);color:var(--accent);font-weight:700}
.detail-stack{display:grid;gap:20px}
.detail-card{padding:26px}
.detail-card h2{margin:0 0 14px;font-size:20px}
.detail-card p{margin:0;color:var(--sub);line-height:1.8}
.info-table{width:100%;border-collapse:collapse}
.info-table th,.info-table td{padding:14px 10px;border-bottom:1px solid var(--line);text-align:left;font-size:14px}
.info-table th{width:180px;color:var(--sub);font-weight:600}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.stat-box{padding:20px}
.stat-box span{display:block;color:var(--sub);font-size:12px;margin-bottom:8px}
.stat-box strong{font-size:27px}
.list-row{display:flex;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid var(--line)}
.list-row:last-child{border-bottom:0}
.list-row small{color:var(--sub)}
.rich-list-row{align-items:center}
.rich-list-main{display:flex;align-items:center;gap:12px;min-width:0}
.rich-list-main>a,.rich-list-main>span{min-width:0}
.mini-map-thumb{width:54px;height:34px;border-radius:8px;object-fit:cover;background:#eef2f6;border:1px solid var(--line);flex:0 0 auto}

.status-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}
.status-box{padding:24px}.status-dot{width:10px;height:10px;border-radius:50%;display:inline-block;margin-right:8px}
.status-dot.ok{background:var(--ok);box-shadow:0 0 0 6px rgba(30,175,103,.10)}
.status-dot.warn{background:var(--warn);box-shadow:0 0 0 6px rgba(240,164,60,.10)}
.status-box strong{display:block;font-size:28px;margin-top:14px}
.status-box small{display:block;color:var(--sub);font-size:12px;margin-top:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.server-live-card{overflow:hidden}
.player-chip-list{display:flex;flex-wrap:wrap;gap:10px}
.player-chip{display:inline-flex;align-items:center;min-height:32px;padding:6px 12px;border-radius:999px;background:#f3f7ff;border:1px solid #dbe7ff;color:#2254a5;font-size:13px;font-weight:700}
.service-list{padding:10px 24px}
.service-row{min-height:68px;display:grid;grid-template-columns:1fr 140px 120px;align-items:center;border-bottom:1px solid var(--line)}
.service-row:last-child{border-bottom:0}.service-state{font-weight:700}.service-state.ok{color:var(--ok)}.service-state.warn{color:var(--warn)}

.news-page-list{overflow:hidden}
.news-page-row{display:grid;grid-template-columns:120px 110px 1fr 28px;gap:18px;align-items:center;min-height:78px;padding:0 22px;border-bottom:1px solid var(--line);text-decoration:none}
.news-page-row:hover{background:#fafcff}.news-page-row:last-child{border-bottom:0}
.other-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.other-card{padding:24px;min-height:150px;text-decoration:none;transition:.18s ease}
.other-card:hover{transform:translateY(-3px);box-shadow:0 18px 46px rgba(25,33,45,.09)}
.other-card h3{margin:0 0 10px;font-size:19px}.other-card p{margin:0;color:var(--sub);line-height:1.7;font-size:14px}

.footer{border-top:1px solid var(--line);padding:28px 30px 38px;color:var(--sub);font-size:12px;text-align:center;background:rgba(255,255,255,.6)}

@media(max-width:1000px){
  .topbar{grid-template-columns:72px 1fr 150px;padding:0 16px}.brand-name{display:none}.nav{gap:20px}
  .mega-menu{min-width:420px}.hero{grid-template-columns:1fr}.scene{height:300px}
  .home-grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:1fr 1fr}.info-grid{grid-template-columns:1fr}
  .status-overview{grid-template-columns:1fr}.detail-layout{grid-template-columns:220px 1fr}.stat-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:760px){
  .topbar{
    height:72px;grid-template-columns:1fr auto;padding:0 14px
  }
  .brand{font-size:18px}
  .social-links{display:none}
  .hero-brand{gap:14px}
  .hero-logo{width:82px;height:82px;border-radius:16px}
  .hero-brand h1{font-size:36px}
  .brand-name{display:block}
  .profile{display:none}
  .mobile-menu-button{display:block}

  .nav{
    position:fixed;left:0;right:0;top:72px;bottom:0;
    display:block;background:#12161b;padding:16px;
    transform:translateX(100%);transition:.22s ease;overflow-y:auto;
  }
  .nav.open{transform:none}
  .nav>a,.nav-item>button{
    width:100%;display:flex;justify-content:space-between;align-items:center;
    padding:15px 12px;font-size:16px;text-align:left;border-radius:10px
  }
  .nav>a.active,.nav-item>button.active{background:#1d2530}
  .nav>a.active::after,.nav-item>button.active::after{display:none}
  .nav-item{width:100%}
  .nav-item:hover .mega-menu{opacity:0;pointer-events:none;transform:none}
  .nav-item.open .mega-menu{
    opacity:1;pointer-events:auto;display:block
  }
  .mega-menu,.small-menu{
    position:static;min-width:0;width:100%;transform:none;opacity:0;
    display:none;box-shadow:none;border:0;background:#171d23;border-radius:10px;
    margin:0 0 8px;padding:8px
  }
  .menu-group{padding:4px}
  .menu-group-title{margin-top:7px}
  .menu-group a{padding:12px}
  .nav-arrow{margin-left:auto}

  .container{padding:34px 16px 56px}
  .page-head{display:block;margin-bottom:24px}
  .page-head h1{font-size:30px}
  .hero{min-height:auto;display:block}
  .hero-title-space{min-height:120px}
  .hero-brand h1{font-size:31px}
  .hero-kicker{font-size:10px}
  .hero-desc-space{min-height:60px}
  .hero-actions{flex-direction:column}
  .hero-actions a,.hero-actions .btn{width:100%}
  .scene{height:260px;overflow:hidden}
  .iso.one{left:25%;top:30px}.iso.two{left:48%;top:115px}.iso.three{left:6%;top:155px}.iso.four{right:2%;top:65px}

  .home-grid,.info-grid,.other-grid{grid-template-columns:1fr}
  .news-item{grid-template-columns:88px 86px 1fr;gap:10px}
  .news-item>span:last-child{display:none}

  .metric-grid{grid-template-columns:1fr}
  .ranking-switch{display:grid;grid-template-columns:1fr 1fr}
  .rank-type{padding:11px 10px}
  .toolbar{display:block}
  .search{width:100%;margin:0}
  .ranking-card{overflow-x:auto}
  .ranking-head,.ranking-row{min-width:660px}
  .ranking-head,.ranking-row{grid-template-columns:64px 1fr 130px 130px 110px}

  .detail-layout{grid-template-columns:1fr}
  .side-card{position:static;display:flex;gap:8px;overflow-x:auto;padding:10px}
  .side-card a{white-space:nowrap;background:#f7f8fa}
  .stat-grid{grid-template-columns:1fr}
  .info-table th{width:120px}
  .service-row{grid-template-columns:1fr auto;gap:12px}
  .service-row>span:last-child{display:none}

  .news-page-row{grid-template-columns:90px 85px 1fr;gap:10px;padding:0 14px}
  .news-page-row>:last-child{display:none}
}

@media(max-width:460px){
  .brand-name{font-size:16px}
  .brand-mark{transform:scale(.9) rotate(30deg)}
  .container{padding-left:12px;padding-right:12px}
  .page-head h1{font-size:27px}
  .card{border-radius:13px}
  .detail-card{padding:20px}
  .news-item{grid-template-columns:80px 78px 1fr;font-size:12px}
  .tag{padding:0 8px}
}


.rank-category-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-bottom:26px;
}
.rank-category-card{
  display:block;
  padding:24px;
  text-decoration:none;
  transition:.18s ease;
}
.rank-category-card:hover{
  transform:translateY(-3px);
  border-color:#cfdbff;
  box-shadow:0 18px 42px rgba(61,115,255,.10);
}
.rank-category-card h3{
  margin:0 0 8px;
  font-size:19px;
}
.rank-category-card p{
  margin:0;
  color:var(--sub);
  font-size:13px;
  line-height:1.65;
}
@media(max-width:760px){
  .rank-category-grid{grid-template-columns:1fr}
}


/* v7 additions */
.rank-detail-layout{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:22px;
  align-items:start;
}
.rank-side-card{
  padding:12px;
  position:sticky;
  top:104px;
}
.rank-side-card a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  border-radius:9px;
  text-decoration:none;
  color:#56606b;
  font-size:14px;
  font-weight:600;
  transition:.18s ease;
}
.rank-side-card a:hover{
  background:#f4f7fb;
  color:var(--text);
}
.rank-side-card a.active{
  background:var(--accent-soft);
  color:var(--accent);
  font-weight:800;
}
.rank-main{
  min-width:0;
}
.rank-main .metric-grid{
  margin-top:0;
}
.other-detail-layout{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:22px;
  align-items:start;
}
.other-side-card{
  padding:12px;
  position:sticky;
  top:104px;
}
.other-side-card a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  border-radius:9px;
  text-decoration:none;
  color:#56606b;
  font-size:14px;
  font-weight:600;
}
.other-side-card a:hover{background:#f4f7fb;color:var(--text)}
.other-side-card a.active{background:var(--accent-soft);color:var(--accent);font-weight:800}

.map-filter-card{padding:22px}
.map-filter-row{
  display:grid;
  grid-template-columns:1fr 180px 180px;
  gap:12px;
}
.filter-input,.filter-select{
  width:100%;
  height:44px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  padding:0 13px;
  outline:none;
}
.filter-input:focus,.filter-select:focus{
  border-color:#b8c9ff;
  box-shadow:0 0 0 3px rgba(61,115,255,.08);
}
.map-result-list{overflow:hidden}
.map-result-row{
  display:grid;
  grid-template-columns:86px 1fr 120px 140px 100px;
  gap:14px;
  align-items:center;
  min-height:76px;
  padding:0 20px;
  border-bottom:1px solid var(--line);
}
.map-result-row:last-child{border-bottom:0}
.map-result-row:hover{background:#fafcff}
.map-thumb{width:76px;height:46px;border-radius:10px;object-fit:cover;background:#eef2f6;border:1px solid var(--line);box-shadow:0 8px 22px rgba(25,33,45,.08)}
.map-detail-hero{display:grid;grid-template-columns:260px 1fr;gap:20px;align-items:start;margin-bottom:18px}
.map-detail-hero h2{margin-top:2px}
.map-cover{width:100%;aspect-ratio:16/9;border-radius:18px;object-fit:cover;background:#eef2f6;border:1px solid var(--line);box-shadow:0 18px 42px rgba(25,33,45,.10)}
.map-title strong{display:block}
.map-title small{display:block;color:var(--sub);margin-top:4px}
.difficulty{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#f2f4f7;
  color:#5d6670;
  font-size:12px;
  font-weight:700;
}
.rate{font-weight:800}

.content-card{padding:26px}
.content-card h2{margin:0 0 14px;font-size:20px}
.content-card p{margin:0;color:var(--sub);line-height:1.85}
.content-list{margin:0;padding-left:20px;color:var(--sub);line-height:1.9}

@media(max-width:1000px){
  .rank-detail-layout,.other-detail-layout{grid-template-columns:190px 1fr}
}
@media(max-width:760px){
  .rank-detail-layout,.other-detail-layout{grid-template-columns:1fr}
  .rank-side-card,.other-side-card{
    position:static;
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:10px;
    scrollbar-width:none;
  }
  .rank-side-card::-webkit-scrollbar,.other-side-card::-webkit-scrollbar{display:none}
  .rank-side-card a,.other-side-card a{
    white-space:nowrap;
    flex:0 0 auto;
    background:#f7f8fa;
  }
  .rank-side-card a.active,.other-side-card a.active{background:var(--accent-soft)}
  .map-filter-row{grid-template-columns:1fr}
  .map-result-list{overflow-x:auto}
  .map-result-row{
    min-width:610px;
    grid-template-columns:1fr 110px 130px 90px;
  }
}


/* v10 News pagination */
.news-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:26px;
}
.news-page-btn{
  min-width:38px;
  height:38px;
  padding:0 11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  color:#59626d;
  cursor:pointer;
  font-weight:700;
  transition:.18s ease;
}
.news-page-btn:hover{
  transform:translateY(-1px);
  border-color:#cbd7fb;
  color:var(--accent);
}
.news-page-btn.active{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.news-page-btn:disabled{
  opacity:.35;
  cursor:default;
  transform:none;
}
.news-count{
  margin-top:14px;
  text-align:center;
  color:var(--sub);
  font-size:12px;
}
.news-page-row[hidden]{
  display:none !important;
}

@media(max-width:760px){
  .news-controls{gap:6px}
  .news-page-btn{
    min-width:36px;
    height:36px;
    padding:0 9px;
  }
}

/* MonolithNetwork DB integration */
.db-notice{
  margin:0 0 22px;padding:14px 16px;border:1px solid #f0c8c8;border-radius:12px;
  background:#fff5f5;color:#9a4242;font-size:13px;line-height:1.6
}
.db-notice code{background:#f7eaea;padding:2px 5px;border-radius:5px}
.inline-search{display:flex;gap:10px;align-items:center}
.inline-search .search{margin-left:0}
.search-grow{flex:1;width:auto}
.empty-state{padding:28px;color:var(--sub);text-align:center}
.uuid-text{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;word-break:break-all}
.tag-cloud{display:flex;flex-wrap:wrap;gap:9px}
.profile-tag{display:inline-flex;gap:7px;align-items:center;padding:8px 11px;border-radius:999px;background:#f2f4f7;font-weight:700;font-size:13px}
.profile-tag small{color:var(--sub);font-weight:600}
.profile-tag.selected{background:var(--accent-soft);color:var(--accent)}
.map-filter-row{grid-template-columns:minmax(260px,1fr) 180px 180px 140px}
.map-result-link{text-decoration:none;color:inherit}
.map-detail-highlight{border-color:#dce5ff}
.creator-list{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.creator{display:inline-flex;padding:7px 10px;border-radius:8px;font-weight:800;font-size:13px}
.creator.owner{background:#fff1df;color:#a55a00}
.creator.co{background:#fff8d7;color:#8b7300}
.ranking-head.oj,.ranking-row.oj{grid-template-columns:84px 1fr 160px 160px}
.oj-row,.strat-row{display:grid;grid-template-columns:1fr auto;gap:22px;align-items:start;padding:17px 0;border-bottom:1px solid var(--line)}
.oj-row:last-child,.strat-row:last-child{border-bottom:0}
.oj-row strong,.strat-row strong{display:block}
.oj-row small,.strat-row small{display:block;color:var(--sub);margin-top:4px}
.oj-row p,.strat-row p{margin:8px 0 0!important}
.oj-row>div:last-child,.strat-row>div:last-child{display:grid;gap:5px;text-align:right;color:var(--sub);font-size:13px;white-space:nowrap}
.metric-card{text-decoration:none;color:inherit;display:block}
.ranking-row a,.list-row a{color:inherit;text-decoration:none}
.ranking-row a:hover,.list-row a:hover{color:var(--accent)}
@media(max-width:760px){
  .inline-search{align-items:stretch;flex-direction:column}
  .inline-search .search{width:100%}
  .map-filter-row{grid-template-columns:1fr}
  .map-result-list{overflow-x:auto}
  .map-result-row{min-width:720px;grid-template-columns:86px 1fr 120px 140px 100px}
  .map-detail-hero{grid-template-columns:1fr}
  .ranking-head.oj,.ranking-row.oj{min-width:560px;grid-template-columns:70px 1fr 120px 120px}
  .ranking-card{overflow-x:auto}
  .oj-row,.strat-row{grid-template-columns:1fr}
  .oj-row>div:last-child,.strat-row>div:last-child{text-align:left}
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.profile-nav-link{display:inline-flex;align-items:center;gap:8px;color:#dce6ec;text-decoration:none;font-weight:700;font-size:13px;min-height:34px;padding:0 10px;border:1px solid #394650;border-radius:6px;background:#171d22}.profile-nav-link:hover{border-color:#66cfe0;color:#fff}.profile-nav-linked,.profile-nav-guest{width:40px;height:40px;padding:0;border-radius:50%;overflow:hidden;border:0;background:transparent}.profile-nav-linked img{width:100%;height:100%;display:block;image-rendering:auto}.profile-guest-avatar{position:relative;display:block;width:100%;height:100%;overflow:hidden;border:3px solid #f4f7f9;border-radius:50%;background:#d9e1e7}.profile-guest-avatar:before{content:"";position:absolute;top:17%;left:29%;width:42%;height:43%;border-radius:46% 46% 41% 41%;background:#6e8191}.profile-guest-avatar:after{content:"";position:absolute;bottom:-20%;left:11%;width:78%;height:55%;border-radius:50% 50% 0 0;background:#6e8191}.profile-page{min-height:100vh;display:grid;place-items:center;padding:32px;background:#10151a;color:#f4f7f5;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}.profile-card{width:min(100%,760px);display:flex;align-items:flex-start;gap:34px;padding:40px;border:1px solid #34414a;border-radius:8px;background:#182027;box-shadow:0 20px 50px rgba(0,0,0,.22)}.profile-copy{min-width:0;flex:1}.profile-page h1{margin:7px 0 12px;font-size:38px;line-height:1.1}.profile-kicker{font-size:12px;font-weight:800;color:#61d7e8;text-transform:uppercase}.profile-summary{margin:0;color:#b8c4cd;font-size:16px;line-height:1.7}.profile-avatar-large{flex:0 0 148px;width:148px;height:148px;image-rendering:auto}.profile-guest-avatar-large{flex:0 0 112px;width:112px;height:112px}.profile-details{display:grid;gap:10px;margin:24px 0 0}.profile-details div{display:grid;grid-template-columns:120px 1fr;gap:14px;padding-top:10px;border-top:1px solid #303b44}.profile-details dt{color:#90a0aa;font-size:13px}.profile-details dd{margin:0;overflow-wrap:anywhere;font-weight:700}.profile-uuid{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}.profile-steps{display:grid;gap:10px;margin:22px 0;padding-left:22px;color:#c7d1d8;line-height:1.55}.profile-steps code{padding:2px 5px;border-radius:3px;background:#0d1216;color:#67d6e8}.profile-action{display:inline-flex;min-width:0;height:auto;margin-top:12px;padding:10px 15px;border-color:#405460;border-radius:5px;background:#202c34;color:#eaf3f7;text-decoration:none}.profile-action:hover{background:#293b46;box-shadow:none;transform:none}@media(max-width:620px){.profile-page{padding:18px}.profile-card{flex-direction:column;gap:22px;padding:26px}.profile-page h1{font-size:31px}.profile-avatar-large,.profile-guest-avatar-large{flex-basis:auto}.profile-details div{grid-template-columns:1fr;gap:4px}}
