:root{
  --bg:#f6f2eb;
  --bg-soft:#efe9df;
  --panel:rgba(255,255,255,.82);
  --panel-strong:rgba(255,255,255,.94);
  --panel-warm:rgba(249,244,236,.92);
  --text:#243038;
  --muted:#5f6a71;
  --subtle:#879199;
  --line:rgba(214,206,191,.92);
  --primary:#b9783e;
  --primary-strong:#8d5526;
  --primary-soft:#f2d6b0;
  --accent:#86aef0;
  --accent-soft:#e9f0ff;
  --warm:#8ec8b0;
  --warm-soft:#e7f5ee;
  --danger:#cc675f;
  --shadow:0 18px 50px rgba(62,52,38,.08);
  --shadow-soft:0 10px 24px rgba(62,52,38,.05);
  --radius-xl:28px;
  --radius-lg:22px;
  --radius-md:16px;
  --radius-sm:12px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  overflow-x:hidden;
  color:var(--text);
  font-family:"DM Sans","Inter",-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
  line-height:1.62;
  background:
    linear-gradient(180deg,#faf7f2 0%,#f7f3ee 44%,#f1ece6 100%);
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(135deg,rgba(184,120,62,.05),rgba(134,174,240,.04) 48%,rgba(142,200,176,.04)),
    linear-gradient(180deg,transparent 0%,rgba(255,255,255,.1) 50%,transparent 100%);
  z-index:-1;
}

a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button,input,select{letter-spacing:0}
::selection{background:rgba(185,120,62,.22)}

.site-header{
  position:sticky;
  top:0;
  z-index:40;
  border-bottom:1px solid rgba(212,203,188,.42);
  background:linear-gradient(180deg,rgba(255,254,251,.92),rgba(250,247,242,.78));
  backdrop-filter:blur(22px) saturate(1.08);
  box-shadow:0 8px 30px rgba(62,52,38,.04);
}
.site-header::after{
  content:"";
  position:absolute;
  inset:auto 0 -1px;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(185,120,62,.34),rgba(134,174,240,.26),rgba(142,200,176,.24),transparent);
  pointer-events:none;
}
.nav{
  max-width:1440px;
  min-height:80px;
  margin:0 auto;
  padding:14px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:#1e2a31;
  font-size:20px;
  font-weight:900;
}
.brand strong{
  background:linear-gradient(135deg,#182229 0%,#7c4b1f 55%,#406d5f 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.brand-mark{
  width:42px;
  height:42px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#1d2530;
  font-weight:900;
  border:1px solid rgba(255,255,255,.76);
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(243,233,219,.82) 48%,rgba(227,240,247,.9));
  box-shadow:0 12px 26px rgba(86,68,43,.11),inset 0 1px 0 rgba(255,255,255,.82);
}
.nav-links{
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px;
  border-radius:999px;
  border:1px solid rgba(212,203,188,.74);
  background:rgba(255,255,255,.58);
  box-shadow:0 12px 26px rgba(62,52,38,.04),inset 0 1px 0 rgba(255,255,255,.8);
  min-width:0;
}
.nav-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  color:var(--muted);
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
  transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.nav-links a.active,
.nav-links a:hover{
  color:#1f2a31;
  background:linear-gradient(135deg,rgba(185,120,62,.18),rgba(134,174,240,.16),rgba(142,200,176,.14));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
  transform:translateY(-1px);
}
.nav-links sup{
  color:var(--primary-strong);
  font-size:10px;
}
.nav-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}
.publish-btn,
.dark-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border:0;
  border-radius:999px;
  color:#2d2317;
  font-size:14px;
  font-weight:850;
  background:linear-gradient(135deg,#b9783e,#e5c07c 56%,#92bfd8);
  box-shadow:0 14px 30px rgba(160,103,43,.18),inset 0 1px 0 rgba(255,255,255,.55);
}
.login-btn,
.light-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(212,203,188,.92);
  color:var(--text);
  background:rgba(255,255,255,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
  font-size:14px;
  font-weight:800;
}

.container{
  max-width:1320px;
  margin:0 auto;
  padding:0 28px;
}

.home-hero{padding:68px 0 28px}
.hero-shell{
  display:grid;
  gap:22px;
}
.hero-copy{
  max-width:980px;
  margin:0 auto;
  text-align:center;
}
.eyebrow{
  margin:0 0 12px;
  color:var(--primary-strong);
  font-size:11px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.home-hero h1{
  max-width:860px;
  margin:0 auto;
  font-size:44px;
  line-height:1.08;
  font-weight:950;
  letter-spacing:0;
  text-wrap:balance;
}
.home-hero p{
  max-width:760px;
  margin:14px auto 0;
  color:var(--muted);
  font-size:15px;
}
.home-hero code,
.list-hero code,
.detail-main code,
.install-list code,
.resource-pack-list code,
.markdown-body code{
  padding:2px 7px;
  border-radius:8px;
  border:1px solid rgba(212,203,188,.82);
  background:rgba(255,255,255,.72);
  color:#234047;
  font-size:.92em;
}

.hero-search{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  width:min(100%,940px);
  margin:32px auto 0;
  padding:10px;
  border-radius:28px;
  border:1px solid rgba(212,203,188,.76);
  background:linear-gradient(180deg,rgba(255,255,255,.78),rgba(249,244,236,.66));
  box-shadow:0 24px 60px rgba(62,52,38,.1),inset 0 1px 0 rgba(255,255,255,.9);
}
.hero-search::before{
  content:"";
  position:absolute;
  left:28px;
  top:50%;
  width:16px;
  height:16px;
  border:2px solid rgba(95,106,113,.42);
  border-radius:50%;
  transform:translateY(-52%);
  pointer-events:none;
}
.hero-search::after{
  content:"";
  position:absolute;
  left:43px;
  top:50%;
  width:9px;
  height:2px;
  border-radius:999px;
  background:rgba(95,106,113,.42);
  transform:translateY(5px) rotate(45deg);
  pointer-events:none;
}
.hero-search input,
.toolbar input,
.toolbar select,
.search-stack input,
.search-stack select{
  width:100%;
  height:52px;
  border:1px solid rgba(212,203,188,.92);
  border-radius:16px;
  padding:0 16px;
  color:var(--text);
  background:rgba(255,255,255,.82);
  outline:0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.82);
}
.hero-search input{
  border:0;
  padding-left:52px;
  background:transparent;
  border-radius:20px;
  box-shadow:none;
  font-size:16px;
}
.hero-search input:focus,
.toolbar input:focus,
.toolbar select:focus,
.search-stack input:focus,
.search-stack select:focus{
  border-color:rgba(185,120,62,.66);
  box-shadow:0 0 0 4px rgba(185,120,62,.12),inset 0 1px 0 rgba(255,255,255,.82);
}
.hero-search .dark-btn{
  min-width:160px;
  padding:0 28px;
  transition:transform .18s ease,box-shadow .18s ease;
}
.hero-search .dark-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 34px rgba(160,103,43,.22),inset 0 1px 0 rgba(255,255,255,.58);
}
.hero-stats{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin:18px auto 0;
}
.hero-stats span{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(212,203,188,.74);
  background:rgba(255,255,255,.62);
  color:var(--muted);
  font-size:13px;
  box-shadow:0 8px 18px rgba(62,52,38,.04),inset 0 1px 0 rgba(255,255,255,.82);
}
.hero-stats strong{color:var(--text);font-weight:800}

.hero-rail{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(320px,.82fr);
  gap:18px;
  align-items:stretch;
  margin-top:24px;
}
.hero-board,
.rank-panel,
.skill-list,
.detail-panel,
.install-panel,
.side-box,
.guide-card,
.category-card,
.metric-card{
  border:1px solid rgba(212,203,188,.76);
  background:linear-gradient(180deg,var(--panel-strong),rgba(247,242,234,.92));
  box-shadow:var(--shadow-soft);
}
.hero-board,
.rank-panel{
  min-height:420px;
  padding:20px;
  border-radius:var(--radius-xl);
  backdrop-filter:blur(16px);
}
.hero-board{
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(248,243,235,.9));
}
.rank-panel{
  background:linear-gradient(180deg,rgba(252,249,244,.94),rgba(244,239,230,.92));
}
.hero-board-head,
.section-head,
.resource-pack-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.hero-board-head{
  margin-bottom:14px;
}
.hero-board-head span{
  font-size:15px;
  font-weight:900;
}
.hero-board-head strong{
  max-width:46%;
  color:var(--subtle);
  font-size:12px;
  font-weight:800;
  text-align:right;
}
.hero-board-list{
  display:grid;
  gap:8px;
}
.section{padding:18px 0 54px}
.section-head{
  align-items:flex-end;
  margin-bottom:16px;
}
.section-head.compact{margin-bottom:12px}
.section-head h2{
  margin:0;
  font-size:22px;
  line-height:1.18;
}
.section-head a,
.section-note{
  color:var(--primary-strong);
  font-size:14px;
  font-weight:800;
}
.section-note{color:var(--subtle)}

.mini-metrics,
.category-grid,
.guide-grid,
.detail-summary{
  display:grid;
  gap:12px;
}
.mini-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.guide-grid{grid-template-columns:repeat(4,minmax(0,1fr))}

.metric-card,
.category-card,
.guide-card{
  display:grid;
  gap:8px;
  padding:18px;
  border-radius:var(--radius-lg);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;
}
.metric-card strong,
.category-card strong,
.guide-card h2{
  font-size:16px;
  line-height:1.22;
}
.metric-card span,
.category-card span,
.guide-card p{
  color:var(--muted);
  margin:0;
}
.metric-card:hover,
.category-card:hover,
.guide-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(62,52,38,.08);
  border-color:rgba(185,120,62,.26);
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(248,242,234,.94));
}

.listing-page{padding-top:28px}
.list-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:24px;
  align-items:end;
  padding-bottom:22px;
}
.list-hero h1{
  margin:0;
  font-size:38px;
  line-height:1.08;
}
.list-hero p{
  max-width:760px;
  margin:10px 0 0;
  color:var(--muted);
}
.hero-mascot,
.detail-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  color:#1f2a31;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(245,233,216,.88) 42%,rgba(225,239,248,.88));
  border:1px solid rgba(212,203,188,.74);
  box-shadow:0 14px 30px rgba(62,52,38,.08),inset 0 1px 0 rgba(255,255,255,.82);
}
.hero-mascot{
  width:88px;
  height:88px;
  border-radius:24px;
  font-size:30px;
}

.toolbar{
  display:flex;
  gap:12px;
  align-items:center;
}
.filter-shell{
  padding:14px;
  margin-bottom:12px;
  border-radius:var(--radius-xl);
  border:1px solid rgba(212,203,188,.76);
  background:linear-gradient(180deg,rgba(255,255,255,.7),rgba(248,243,235,.74));
  box-shadow:0 14px 34px rgba(62,52,38,.06),inset 0 1px 0 rgba(255,255,255,.82);
}
.filter-shell.solo{justify-content:space-between}
.search-stack{
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px;
  gap:10px;
  width:100%;
}
.toolbar-tip{
  margin:8px 0 0;
  color:var(--subtle);
  font-size:13px;
}
.toolbar input,
.toolbar select,
.search-stack input,
.search-stack select{height:50px}
.toolbar select,
.search-stack select{
  padding-right:40px;
  appearance:none;
  background-image:
    linear-gradient(45deg,transparent 50%,var(--subtle) 50%),
    linear-gradient(135deg,var(--subtle) 50%,transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size:6px 6px,6px 6px;
  background-repeat:no-repeat;
}
.reset-filters{white-space:nowrap}
.filter-tabs{
  display:flex;
  gap:10px;
  flex-wrap:nowrap;
  overflow:auto;
  padding:2px 1px 10px;
  margin:0 0 2px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.filter-tabs::-webkit-scrollbar{display:none}
.filter-tabs button{
  flex:0 0 auto;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(212,203,188,.86);
  background:rgba(255,255,255,.72);
  color:var(--muted);
  font-size:14px;
  font-weight:800;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease,border-color .18s ease;
}
.filter-tabs button:hover,
.filter-tabs button.active{
  color:#1d2730;
  border-color:transparent;
  background:linear-gradient(135deg,rgba(185,120,62,.2),rgba(134,174,240,.18),rgba(142,200,176,.18));
  box-shadow:0 10px 24px rgba(62,52,38,.08),inset 0 1px 0 rgba(255,255,255,.9);
  transform:translateY(-1px);
}

.filter-summary{
  margin:0 0 14px;
  color:var(--subtle);
  font-size:13px;
  font-weight:800;
}

.skill-list,
.detail-panel,
.install-panel,
.side-box{
  border-radius:var(--radius-xl);
}
.skill-list{
  overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(248,243,235,.84));
}
.skill-row{
  display:grid;
  grid-template-columns:42px 48px minmax(0,1fr) 160px;
  gap:14px;
  align-items:flex-start;
  padding:16px 18px;
  border-bottom:1px solid rgba(214,206,191,.78);
  transition:background .18s ease,transform .18s ease;
}
.skill-row:hover{background:rgba(255,255,255,.9)}
.skill-row:last-child{border-bottom:0}
.list-rank,
.top-num{
  color:var(--primary-strong);
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-weight:900;
}
.list-rank{
  display:inline-flex;
  align-items:flex-start;
  justify-content:center;
  padding-top:8px;
  font-size:13px;
}
.avatar{
  width:42px;
  height:42px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#1f2a31;
  border:1px solid rgba(212,203,188,.8);
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(235,240,251,.86),rgba(232,248,240,.84));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.avatar.large{width:46px;height:46px}
.rank-item{
  display:grid;
  grid-template-columns:36px 44px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:11px 12px;
  border-radius:18px;
  transition:background .18s ease,transform .18s ease;
}
.rank-item:hover{background:rgba(255,255,255,.82);transform:translateY(-1px)}
.rank-index{
  display:inline-flex;
  justify-content:center;
  padding-top:8px;
  font-size:13px;
}
.rank-copy,
.skill-row-main{
  display:grid;
  gap:4px;
  min-width:0;
}
.rank-copy strong,
.skill-row-main strong{
  font-size:15px;
  line-height:1.28;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.rank-copy small,
.skill-row-main span,
.skill-row-meta{
  color:var(--muted);
  font-size:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}
.rank-copy small span,
.skill-row-meta span{min-width:0}
.skill-row-main small{
  color:var(--subtle);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.skill-row-meta{
  justify-content:flex-end;
  align-items:flex-start;
  text-align:right;
  display:grid;
  gap:4px;
}
.skill-row-meta strong{
  font-size:14px;
  color:var(--text);
}
.skill-row-meta span{
  justify-content:flex-end;
}
.empty{
  margin:0;
  padding:24px 18px 28px;
  text-align:center;
  color:var(--subtle);
}

.detail-page{padding:24px 0 12px}
.detail-hero{padding-bottom:16px}
.breadcrumb{
  color:var(--subtle);
  font-size:13px;
  font-weight:800;
  margin-bottom:16px;
}
.breadcrumb a{color:var(--muted)}
.detail-intro{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:18px;
  align-items:flex-start;
  padding:24px;
  border-radius:var(--radius-xl);
  border:1px solid rgba(212,203,188,.76);
  background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(248,243,235,.9));
  box-shadow:var(--shadow);
}
.detail-badge{
  width:76px;
  height:76px;
  border-radius:22px;
  font-size:28px;
}
.detail-copy h1{
  margin:0;
  font-size:34px;
  line-height:1.12;
}
.detail-lead{
  margin:10px 0 0;
  font-size:16px;
  color:var(--muted);
}
.source-note{
  margin-top:12px;
  color:var(--muted);
  font-size:13px;
  line-height:1.75;
  word-break:break-word;
}
.source-note a{color:var(--primary-strong);font-weight:800}
.detail-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.pill{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 11px;
  border-radius:999px;
  border:1px solid rgba(212,203,188,.78);
  background:rgba(255,255,255,.72);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.detail-summary{
  margin-top:14px;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.summary-item{
  display:grid;
  gap:6px;
  padding:13px 14px;
  border-radius:18px;
  border:1px solid rgba(212,203,188,.76);
  background:rgba(255,255,255,.7);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.82);
}
.summary-item span{
  color:var(--subtle);
  font-size:12px;
  font-weight:800;
}
.summary-item strong{
  font-size:15px;
  line-height:1.25;
}
.detail-tabs{
  display:flex;
  gap:18px;
  overflow:auto;
  margin-top:22px;
  padding:0 0 6px;
  border-bottom:1px solid rgba(214,206,191,.78);
}
.detail-tabs a{
  flex:0 0 auto;
  padding:12px 2px 13px;
  color:var(--muted);
  font-size:15px;
  font-weight:900;
  white-space:nowrap;
}
.detail-tabs a:first-child{
  color:var(--text);
  border-bottom:2px solid var(--primary);
}
.detail-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:24px;
  margin-top:24px;
}
.detail-main{min-width:0}
.detail-main h2{
  margin:0 0 10px;
  font-size:26px;
}
.detail-main h3{
  margin:24px 0 10px;
  font-size:19px;
}
.detail-main p,
.detail-main li{
  color:var(--muted);
}
.detail-main ul{
  padding-left:20px;
}
.detail-main pre,
.markdown-body pre{
  overflow:auto;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(212,203,188,.76);
  background:rgba(255,255,255,.78);
}
.detail-panel{
  padding:20px;
  border-radius:var(--radius-xl);
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(248,243,235,.92));
}
.detail-metric-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.detail-metric-grid div{
  display:grid;
  gap:6px;
  padding:13px;
  border-radius:18px;
  border:1px solid rgba(212,203,188,.72);
  background:rgba(255,255,255,.72);
}
.detail-metric-grid span{
  color:var(--subtle);
  font-size:12px;
  font-weight:800;
}
.detail-metric-grid strong{font-size:15px}
.install-panel{
  padding:18px 20px;
  margin:8px 0 0;
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(247,241,233,.92));
}
.install-list{
  margin:0;
  padding-left:18px;
  display:grid;
  gap:10px;
  color:var(--muted);
}
.install-tip{
  margin:12px 0 0;
  color:var(--subtle);
  font-size:13px;
}
.install-tip a{color:var(--primary-strong);font-weight:900}
.detail-side{min-width:0}
.side-box{
  padding:18px;
  margin-bottom:16px;
  border-radius:var(--radius-xl);
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(247,241,233,.92));
}
.side-box h2{
  margin:0 0 12px;
  font-size:18px;
}
.side-box p{color:var(--muted)}
.resource-pack{
  position:relative;
  padding:20px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.96),rgba(247,239,228,.96)),
    linear-gradient(135deg,rgba(185,120,62,.08),rgba(134,174,240,.08),rgba(142,200,176,.08));
  border-color:rgba(185,120,62,.2);
  box-shadow:0 18px 38px rgba(160,103,43,.1);
}
.resource-pack::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);
}
.resource-pack-head{margin-bottom:12px}
.resource-pack-kicker{
  margin:0;
  font-size:12px;
  font-weight:900;
  color:var(--primary-strong);
  letter-spacing:.12em;
  text-transform:uppercase;
}
.resource-pack h2{
  margin:2px 0 0;
  font-size:20px;
}
.resource-pack-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 11px;
  border-radius:999px;
  background:linear-gradient(135deg,#f0c579,#96badb);
  color:#23333a;
  font-size:12px;
  font-weight:900;
}
.resource-pack-lead{
  margin:12px 0 16px;
  color:var(--muted);
  font-size:14px;
  line-height:1.68;
}
.resource-pack .dark-btn.full{
  width:100%;
  margin:0 0 12px;
  min-height:50px;
  font-size:16px;
  box-shadow:0 14px 28px rgba(160,103,43,.2),inset 0 1px 0 rgba(255,255,255,.55);
}
.resource-pack-metrics{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 10px;
}
.resource-pack-metrics span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(212,203,188,.76);
  background:rgba(255,255,255,.72);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.resource-pack-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:4px 0 10px;
  color:var(--primary-strong);
  font-size:13px;
  font-weight:800;
  opacity:.74;
  transition:opacity .18s ease,color .18s ease;
}
.resource-pack-link::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--primary-strong);
  box-shadow:0 0 0 4px rgba(185,120,62,.08);
}
.resource-pack-link:hover{opacity:1}
.resource-pack-list{
  margin:10px 0 0;
  padding:0 0 0 18px;
  display:grid;
  gap:8px;
  color:var(--muted);
  font-size:13px;
}
.resource-pack-list code{
  word-break:break-all;
}

.markdown-body{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(214,206,191,.78);
  overflow-wrap:anywhere;
}
.markdown-body h2,
.markdown-body h3,
.markdown-body h4{
  margin:22px 0 10px;
  color:var(--text);
}
.markdown-body p,
.markdown-body li{
  color:var(--muted);
}

.guide-card{
  min-height:180px;
  border-radius:var(--radius-lg);
}
.prose-page{
  max-width:880px;
  font-size:17px;
}
.prose-page h1{
  margin-top:0;
  font-size:36px;
}
.prose-page p{color:var(--muted)}

.site-footer{
  margin-top:52px;
  border-top:1px solid rgba(212,203,188,.68);
  background:linear-gradient(180deg,rgba(249,245,239,.72),rgba(242,236,229,.9));
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:24px;
  padding:24px 28px;
  color:var(--muted);
}
.footer-inner p{
  margin:0;
  max-width:820px;
}
.footer-links{
  display:flex;
  gap:16px;
  white-space:nowrap;
  flex-wrap:wrap;
}
.footer-links a{color:var(--text);font-weight:800}

.feedback{
  position:fixed;
  right:18px;
  top:62%;
  z-index:35;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(212,203,188,.74);
  background:rgba(255,255,255,.82);
  color:var(--text);
  font-size:13px;
  font-weight:900;
  box-shadow:0 14px 28px rgba(62,52,38,.08);
  writing-mode:vertical-rl;
  text-orientation:mixed;
}

.top-list{
  border:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
.top-row{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:12px;
  align-items:start;
}
.top-num{
  display:inline-flex;
  align-items:flex-start;
  justify-content:center;
  min-width:42px;
  padding-top:14px;
  font-size:18px;
}
.top-row .skill-row{
  grid-column:2;
  border-radius:22px;
  margin:0;
  background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(248,243,235,.9));
}
.top-row + .top-row{margin-top:12px}

.spotlight-grid{display:grid}

.detail-page-wrap .site-footer{margin-top:44px}

a,
button,
input,
select{
  transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease,opacity .18s ease;
}

@media (max-width:1180px){
  .hero-rail,
  .detail-grid,
  .category-grid,
  .guide-grid{
    grid-template-columns:1fr;
  }
  .mini-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:1040px){
  .nav{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .nav-links{
    order:3;
    width:100%;
    justify-content:flex-start;
    overflow:auto;
  }
  .nav-actions{
    margin-left:auto;
  }
  .hero-search,
  .search-stack,
  .toolbar.filter-shell{
    grid-template-columns:1fr;
  }
  .toolbar{
    flex-wrap:wrap;
  }
  .list-hero{
    grid-template-columns:1fr;
    align-items:flex-start;
  }
  .detail-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .detail-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:760px){
  .nav{
    padding:12px 16px;
  }
  .nav-links{
    gap:6px;
    padding:6px;
  }
  .nav-links a{
    min-height:38px;
    padding:0 14px;
  }
  .nav-actions{
    display:none;
  }
  .container{
    padding:0 16px;
  }
  .home-hero{
    padding:46px 0 20px;
  }
  .home-hero h1{
    font-size:30px;
  }
  .home-hero p{
    font-size:14px;
  }
  .hero-search{
    padding:10px;
    border-radius:24px;
  }
  .hero-search input{
    font-size:15px;
  }
  .hero-search .dark-btn{
    min-width:0;
    width:100%;
  }
  .hero-stats{
    justify-content:flex-start;
  }
  .hero-rail{
    margin-top:18px;
  }
  .hero-board,
  .rank-panel,
  .skill-list,
  .detail-intro,
  .side-box,
  .guide-card,
  .category-card,
  .metric-card{
    border-radius:20px;
  }
  .mini-metrics,
  .category-grid,
  .guide-grid{
    grid-template-columns:1fr;
  }
  .list-hero h1{
    font-size:32px;
  }
  .hero-mascot{
    width:72px;
    height:72px;
    border-radius:20px;
    font-size:24px;
  }
  .filter-shell{
    padding:12px;
  }
  .search-stack{
    grid-template-columns:1fr;
  }
  .filter-tabs{
    padding-bottom:8px;
  }
  .skill-row{
    grid-template-columns:36px minmax(0,1fr);
    gap:12px;
    padding:14px 14px 15px;
  }
  .skill-row .avatar{
    display:none;
  }
  .skill-row-main,
  .skill-row-meta{
    grid-column:2;
  }
  .skill-row-meta{
    justify-items:flex-start;
    text-align:left;
  }
  .rank-item{
    grid-template-columns:32px 40px minmax(0,1fr);
    padding:10px 10px;
  }
  .detail-intro{
    grid-template-columns:1fr;
    padding:18px;
  }
  .detail-copy h1{
    font-size:30px;
  }
  .detail-summary,
  .detail-metric-grid{
    grid-template-columns:1fr;
  }
  .footer-inner{
    display:grid;
    padding:20px 16px;
  }
  .footer-links{
    gap:10px;
  }
  .feedback{
    display:none;
  }
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,
  *::before,
  *::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
    scroll-behavior:auto !important;
  }
}
