:root{
  color-scheme:dark;
  --bg:#0b1020;--header:#0c1020;--panel:#151d33;--panel-soft:#171e36;--hero:#1b2440;
  --line:#2b3455;--text:#f6f5ff;--muted:#abb5cf;--dim:#838da9;--accent:#9564f4;--accent-light:#b69aff;
  --focus:rgba(174,141,255,.4);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:92px}
body{margin:0;background:radial-gradient(ellipse 900px 340px at 51% 80px,rgba(69,36,114,.13),transparent 85%),var(--bg);color:var(--text);min-height:100vh}
a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent-light);outline-offset:3px}
[hidden]{display:none!important}
.site-header{position:sticky;top:0;z-index:30;background:rgba(11,15,30,.95);border-bottom:1px solid #242942;backdrop-filter:blur(14px)}
.header-inner{max-width:1160px;margin:auto;min-height:74px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.site-brand{display:inline-flex;align-items:center;gap:11px;font-weight:750;font-size:16px;white-space:nowrap;letter-spacing:-.035em}
.brand-icon{background:linear-gradient(145deg,#a16bff,#7d48e6);color:#fff;display:grid;place-items:center;width:31px;height:31px;border-radius:8px;font-size:23px;line-height:1}
.main-nav{display:flex;align-items:center;gap:5px}
.main-nav a{color:#c5c9dc;font-size:13px;padding:11px 17px;border-radius:10px;transition:background .18s,color .18s}
.main-nav a:hover,.main-nav a:focus-visible{color:var(--text);background:#1d2540}
.main-nav a.active{background:#222a44;color:var(--text)}
.language-picker{display:inline-flex;align-items:center;gap:4px;border:1px solid #303957;background:#1a2137;padding:5px 10px;border-radius:9px;color:#dedcf2;white-space:nowrap}
.language-picker select{color:inherit;border:0;appearance:none;background:transparent;cursor:pointer;font-size:13px;width:26px}
.language-picker select option{background:#182038;color:#fff}
.mobile-nav-toggle{display:none;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);font-size:22px;padding:5px 10px}
.page-container{width:min(100% - 48px,1160px);margin:0 auto}
.hero{position:relative;isolation:isolate;overflow:hidden;margin-top:56px;border-radius:23px;border:1px solid #333757;background:linear-gradient(112deg,#232844 0%,#1a223b 55%,#172039 100%);min-height:372px;padding:50px 52px;box-shadow:0 10px 35px #080b1b25}
.hero:before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(ellipse 480px 320px at 4% 0%,rgba(125,83,226,.11),transparent 90%)}
.hero-copy{position:relative;z-index:1;max-width:650px}
.eyebrow{color:#b39ae8;font-size:11px;font-weight:750;letter-spacing:.16em;line-height:1.4;margin:0 0 7px}
.hero h1{font-size:clamp(32px,3.4vw,37px);letter-spacing:-.055em;line-height:1.04;margin:0 0 10px;font-weight:780}
.hero h1 span{display:block}
.hero-subtitle{color:#e4e3f7;margin:0 0 3px;font-size:17px;font-weight:500}
.hero-description{font-size:15px;max-width:535px;color:#bbc2dd;line-height:1.5;margin:0}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px}
.button{display:inline-flex;justify-content:center;align-items:center;gap:11px;font-size:13px;font-weight:730;padding:13px 17px;border-radius:9px;min-height:43px;transition:transform .17s,background .17s,border .17s}
.button:hover{transform:translateY(-2px)}
.button-primary{background:linear-gradient(120deg,#a272ff,#8050e5);box-shadow:0 5px 15px rgba(129,75,237,.16);color:white}
.button-primary:hover{background:linear-gradient(120deg,#b18aff,#9666ee)}
.button-secondary{background:#252d49;border:1px solid #434663;color:#f2f0fe}
.button-secondary:hover{background:#313a56}
.hero-orbit{position:absolute;z-index:-1;border:1px solid #574889;border-radius:50%;opacity:.55}
.hero-orbit-1{height:460px;width:460px;bottom:-365px;right:-235px;box-shadow:0 0 0 28px #4d3b8524,0 0 0 52px #4d3b851d}
.hero-orbit-2{height:290px;width:290px;bottom:-228px;right:-135px;opacity:.38}
.browse-section{margin-top:50px}
.browse-section h2,.directory-section h2,.contribute-section h2,.about-section h2{font-size:clamp(20px,2.5vw,26px);letter-spacing:-.045em;line-height:1.15;margin:3px 0 19px}
.featured-categories{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}
.featured-category{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;min-height:105px;padding:16px;border-radius:14px;background:#161e34;border:1px solid #30395a;color:#edf0ff;text-align:left;transition:border-color .18s,transform .18s,background .18s}
.featured-category:hover,.featured-category:focus-visible{border-color:#9b79ed;background:#202843;transform:translateY(-3px)}
.featured-category[aria-pressed="true"]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.featured-category .category-symbol{font-size:23px;line-height:1.2;color:#c3a4ff;font-family:system-ui,sans-serif}
.featured-category strong{font-size:13px;font-weight:700}
.featured-category small{display:none;font-size:11px;color:var(--dim)}
.directory-section{margin-top:43px}
.directory-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:17px}
.directory-heading h2{margin-bottom:0}
.view-all{font-size:13px;color:#c2a5ff;white-space:nowrap;font-weight:650;padding-bottom:4px}
.view-all:hover{color:white}
.library-toolbar{display:flex;gap:9px;margin:18px 0 16px;align-items:center}
.search-box{display:flex;align-items:center;gap:10px;flex:1;min-width:160px;min-height:48px;border-radius:11px;background:#161d33;border:1px solid #323a5a;padding:0 13px}
.search-box:focus-within{border-color:#9162e9;box-shadow:0 0 0 3px #9162e91d}
.search-icon{font-size:26px;color:#9b9abb}
.search-box input{width:100%;min-width:0;color:#fff;font-size:14px;border:0;outline:0;background:transparent}
.search-box input::placeholder{color:#8b94b0}
.search-hotkey{font-size:11px;color:#9ea4b9;border-radius:5px;border:1px solid #3c4460;padding:3px 7px}
#clear-search{border:0;color:#bab8da;background:transparent;font-size:23px}
.toolbar-button{border:1px solid #383e61;background:#1b243d;color:#efedff;padding:12px 15px;border-radius:10px;font-weight:650;font-size:13px;min-height:48px}
.toolbar-button:hover{background:#29314e}
.view-switch{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid #383e61;border-radius:10px}
.view-switch button{font-size:20px;line-height:1;color:#989bbb;background:transparent;border:0;border-radius:7px;padding:10px}
.view-switch button[aria-pressed="true"]{color:#fff;background:#604495}
.filter-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:end;padding:18px;margin-bottom:18px;background:#131a2e;border:1px solid #303656;border-radius:13px}
.filter-panel label{display:grid;gap:7px;color:#a9b2cf;font-size:12px}
.filter-panel select{width:100%;min-width:0;color:#f4f1ff;background:#202841;border:1px solid #3a4365;border-radius:8px;padding:12px;font-size:12px}
.category-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 17px;scrollbar-width:thin;scrollbar-color:#3b3c61 transparent}
.category-chip{flex:0 0 auto;background:#151b2f;border:1px solid #343b59;border-radius:999px;color:#b6bfd9;font-size:12px;padding:8px 13px;white-space:nowrap}
.category-chip:hover,.category-chip:focus-visible{color:#fff;border-color:#a287e7}
.category-chip[aria-pressed="true"]{color:#fff;background:#63479a;border-color:#8c68d0}
.result-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:4px 0 14px}
.result-heading h3{font-size:16px;margin:0;letter-spacing:-.02em}
.result-heading span{font-size:12px;color:var(--dim);text-align:right}
.mechanics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.mechanic-card{display:flex;flex-direction:column;align-items:stretch;gap:10px;background:#171e34;border:1px solid #303957;color:var(--text);padding:20px;text-align:left;border-radius:14px;min-height:181px;transition:background .16s,border-color .16s,transform .16s}
.mechanic-card:hover,.mechanic-card:focus-visible{background:#202944;border-color:#8f6bd7;transform:translateY(-2px)}
.mechanic-card .entry-tag{align-self:flex-start;border-radius:5px;background:#30294f;color:#c5a8ff;font-size:10px;font-weight:670;padding:6px 9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mechanic-card h3{font-size:17px;line-height:1.3;margin:0;letter-spacing:-.02em}
.mechanic-card p{font-size:12px;color:#9faac8;line-height:1.55;margin:0;flex:1}
.mechanic-card .entry-meta{display:flex;gap:8px;align-items:center;justify-content:space-between;color:#8e9ab9;font-size:10px;margin-top:auto}
.mechanics-grid.list-view{grid-template-columns:1fr}
.mechanics-grid.list-view .mechanic-card{min-height:0;display:grid;grid-template-columns:minmax(170px,1fr) minmax(160px,2fr);align-items:center}
.mechanics-grid.list-view .mechanic-card h3{grid-column:1}
.mechanics-grid.list-view .mechanic-card p{grid-column:2;grid-row:1/3}
.mechanics-grid.list-view .entry-meta{grid-column:1/-1}
.empty-state{grid-column:1/-1;background:#151c31;border:1px dashed #474160;border-radius:13px;padding:50px 20px;text-align:center;color:#aab1cb}
.page-summary{text-align:center;color:#8a94b2;font-size:12px;margin-top:18px}
.pagination{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap;margin:18px 0 0}
.pagination button{border:1px solid #3b4162;background:#1b233d;color:#dbdaec;min-width:35px;padding:10px 12px;border-radius:8px;font-size:12px}
.pagination button[aria-current="page"]{background:#8357d3;border-color:#8357d3;color:white}
.pagination button:disabled{opacity:.38;cursor:default}
.pagination .dots{color:var(--dim);padding:0 5px}
.contribute-section{margin-top:65px;padding:27px 30px;background:linear-gradient(110deg,#1c2340,#171c34);border-radius:16px;border:1px solid #353957;display:flex;align-items:center;justify-content:space-between;gap:20px}
.contribute-section h2{margin:0 0 7px}.contribute-section p:not(.eyebrow){font-size:13px;line-height:1.55;color:#a9b5d1;margin:0;max-width:610px}
.contribute-section .button{flex-shrink:0}
.about-section{display:flex;align-items:center;justify-content:space-between;gap:40px;margin-top:50px}
.about-section>div:first-child{max-width:580px}
.about-section h2{margin-bottom:10px}
.about-section p:not(.eyebrow){font-size:13px;line-height:1.7;color:var(--muted);margin:0}
.library-stats{display:flex;gap:24px;text-align:center;flex-shrink:0}
.library-stats div{display:grid;gap:3px}.library-stats strong{font-size:27px;color:#cbaeff}.library-stats span{font-size:10px;color:var(--dim)}
.site-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;border-top:1px solid #252c45;margin:45px 0 0;padding:24px 0 33px;font-size:12px;color:#8c96b4}
.site-footer div{display:flex;flex-wrap:wrap;gap:21px}.site-footer a:hover{color:#c7a6ff}
dialog{border:1px solid #49446f;color:var(--text);background:#171d35;border-radius:19px;width:min(94vw,630px);max-height:88vh;padding:0;box-shadow:0 20px 70px #070b1d95}
dialog::backdrop{background:#06091abf;backdrop-filter:blur(5px)}
.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;padding:25px 27px;border-bottom:1px solid var(--line)}
.dialog-heading h2{margin:3px 0 0;font-size:25px;letter-spacing:-.035em}
.dialog-heading button{border:1px solid #434362;background:#262b47;color:#fff;border-radius:9px;font-size:22px;padding:4px 10px}
.dialog-content{padding:8px 27px 22px;max-height:66vh;overflow-y:auto}
.detail-row{border-bottom:1px solid #303754;padding:17px 0}
.detail-row strong{display:block;color:#ddd7fa;font-size:12px}
.detail-row p{font-size:13px;color:#adb8d1;line-height:1.65;margin:7px 0}
.detail-row small{color:#8b97b5;font-size:11px;display:block}
.detail-row a{color:#c3a0ff;overflow-wrap:anywhere}
.detail-footer{font-size:12px;margin:18px 0}.detail-footer a{color:#c3a0ff}
.subpage{padding-top:40px}.subpage h1{font-size:clamp(30px,4vw,44px);margin:3px 0 14px;letter-spacing:-.045em}
.subpage .lead{max-width:750px;font-size:15px;line-height:1.6;color:var(--muted)}
.back-link{display:inline-block;color:#bd9bff;font-size:13px;margin-bottom:23px}
.source-entry{background:#171e34;border:1px solid #303957;padding:23px;border-radius:13px;margin:13px 0}
.source-entry h2{font-size:20px;margin:0 0 10px}.source-entry a{color:#c3a0ff;font-weight:650;font-size:14px}
.source-entry p,.subpage section p{color:#aab5cf;font-size:13px;line-height:1.7}.source-entry small{color:#8c97b4;font-size:11px}
.subpage section{margin-top:32px}.subpage section h2{font-size:23px}
@media(min-width:1200px){.page-container{width:min(100% - 70px,1160px)}}
@media(max-width:850px){.page-container{width:calc(100% - 36px)}.hero{padding:40px 34px;min-height:330px}.featured-categories{grid-template-columns:repeat(3,minmax(0,1fr))}.mechanics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.contribute-section{align-items:flex-start}.about-section{flex-direction:column;align-items:stretch;gap:20px}.library-stats{justify-content:flex-start}}
@media(max-width:610px){.header-inner{padding:0 17px;gap:11px;min-height:62px}.site-brand{font-size:14px;margin-right:auto}.brand-icon{width:29px;height:29px}.mobile-nav-toggle{display:block}.main-nav{position:absolute;top:61px;left:0;right:0;display:none;background:#10162a;border-bottom:1px solid var(--line);padding:12px 18px;box-shadow:0 12px 20px #0406108c}.main-nav.open{display:grid;gap:2px}.main-nav a{display:block}.language-picker{padding:5px 7px}.page-container{width:calc(100% - 30px)}.hero{margin-top:20px;padding:29px 24px;min-height:0;border-radius:17px}.hero h1{font-size:clamp(27px,7.4vw,38px)}.hero-subtitle{font-size:15px}.hero-description{font-size:13px}.hero-actions{gap:8px}.hero-actions .button{font-size:12px;padding:11px 12px}.hero-orbit-1{right:-360px;bottom:-300px}.browse-section,.directory-section{margin-top:33px}.browse-section h2,.directory-section h2{font-size:23px}.featured-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.featured-category{min-height:100px;padding:14px}.featured-category:last-child{grid-column:span 2}.library-toolbar{flex-wrap:wrap}.search-box{flex:1 1 100%}.search-hotkey{display:none}.toolbar-button{min-height:40px}.filter-panel{grid-template-columns:1fr}.mechanics-grid{grid-template-columns:1fr}.mechanic-card{min-height:145px}.mechanics-grid.list-view .mechanic-card{display:flex}.result-heading{align-items:flex-start}.result-heading span{max-width:45%}.contribute-section{flex-direction:column;padding:25px 22px;gap:16px}.about-section{margin-top:37px}.site-footer{align-items:flex-start;flex-direction:column}.library-stats{gap:30px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;transform:none!important}}

/* Keep supporting-page navigation reachable on narrow screens. */
@media(max-width:610px){
  .header-inner:has(.subpage-nav){flex-wrap:wrap;padding-top:9px;padding-bottom:9px}
  .site-header .subpage-nav{position:static;display:flex;flex:1 1 100%;justify-content:flex-start;overflow-x:auto;gap:0;top:auto;left:auto;right:auto;border:0;box-shadow:none;padding:3px 0 0;background:transparent}
  .site-header .subpage-nav a{white-space:nowrap;padding:8px 12px;font-size:12px}
}
