/* Playables Radar — one stylesheet for every page.
   Look: system type set large and tight, white page with borderless grey cards, frosted sticky bar, pill buttons.
   Colour roles: neutral chrome, one blue for links, buttons and data marks, green only for growth. */
:root{
  color-scheme:light;
  --page:#ffffff;--surface:#f5f5f7;--raise:#ffffff;--ink:#1d1d1f;--ink2:#424245;--muted:#6e6e73;
  --line:#d2d2d7;--axis:#c7c7cc;--chip:#e8e8ed;--chip-hover:#dcdce1;--hover:#ebebef;
  --link:#0066cc;--accent:#0071e3;--accent-hover:#0077ed;--series:#0071e3;--up:#1a7f37;--new:#b64400;
  --bar:rgba(255,255,255,.72);--ring:rgba(0,113,227,.35);
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Inter","Helvetica Neue",Arial,sans-serif;
}
@media (prefers-color-scheme:dark){:root{
  color-scheme:dark;
  --page:#000000;--surface:#1d1d1f;--raise:#2c2c2e;--ink:#f5f5f7;--ink2:#d2d2d7;--muted:#86868b;
  --line:#424245;--axis:#48484a;--chip:#2c2c2e;--chip-hover:#3a3a3c;--hover:#28282a;
  --link:#2997ff;--accent:#0071e3;--accent-hover:#0077ed;--series:#2997ff;--up:#30d158;--new:#ff9f0a;
  --bar:rgba(22,22,23,.72);--ring:rgba(41,151,255,.45);
}}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--page);color:var(--ink);font:17px/1.47 var(--font);letter-spacing:-.011em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:4px solid var(--ring);outline-offset:1px;border-radius:8px}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-weight:600;letter-spacing:-.022em}
img{max-width:100%}
.wrap{max-width:1080px;margin:0 auto;padding:0 22px}

/* frosted bar */
.top{position:sticky;top:0;z-index:20;background:var(--bar);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid color-mix(in srgb,var(--line) 60%,transparent)}
.top .wrap{display:flex;align-items:center;gap:24px;min-height:48px}
.brand{display:flex;align-items:center;gap:8px;font-weight:600;font-size:15px;color:var(--ink);letter-spacing:-.015em;white-space:nowrap}
.brand:hover{text-decoration:none}
.brand svg{width:22px;height:22px;flex:none}
.nav{display:flex;gap:2px;margin-left:auto;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.nav::-webkit-scrollbar{display:none}
.nav a{color:var(--ink);opacity:.8;padding:6px 11px;border-radius:980px;font-size:13px;white-space:nowrap}
.nav a:hover{opacity:1;text-decoration:none}
.nav a[aria-current=page]{opacity:1;font-weight:600}

/* page head */
.head{padding:56px 0 6px;display:flex;flex-direction:column;gap:12px}
.head h1{font-size:clamp(32px,5vw,48px);line-height:1.08;text-wrap:balance}
.lede{color:var(--ink2);font-size:clamp(17px,2vw,21px);line-height:1.38;max-width:64ch;letter-spacing:-.012em}
.asof{color:var(--muted);font-size:13px}
.hero{align-items:center;text-align:center;padding:76px 0 12px;gap:16px}
.hero h1{font-size:clamp(38px,6.6vw,68px);line-height:1.05;letter-spacing:-.028em;max-width:16ch}
.hero .lede{font-size:clamp(18px,2.3vw,24px);max-width:46ch;color:var(--muted)}
.hero .search{margin-top:10px;width:100%;max-width:520px}
.crumbs{font-size:13px;color:var(--muted);display:flex;gap:6px;flex-wrap:wrap}
.crumbs a{color:var(--muted)}
main{padding-bottom:96px}
section{margin-top:64px}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.sec-head h2{font-size:clamp(22px,2.6vw,28px);line-height:1.14}
.sec-head .more{font-size:15px;white-space:nowrap}
.sec-note{color:var(--muted);font-size:13px;margin:-4px 0 12px;max-width:84ch}

/* cards and tiles */
.card{background:var(--surface);border-radius:20px}
.pad{padding:28px 30px}
.kpis{display:grid;grid-template-columns:repeat(var(--n,5),minmax(0,1fr));gap:12px;margin-top:28px}
@media (max-width:1000px){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:560px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.kpi{padding:20px 22px;display:flex;flex-direction:column;gap:3px;min-width:0}
.kpi .l{color:var(--muted);font-size:13px;line-height:1.3}
.kpi .v{font-size:clamp(26px,2.8vw,34px);font-weight:600;letter-spacing:-.025em;line-height:1.15}
.kpi .d{font-size:13px;color:var(--muted);line-height:1.35}
.up{color:var(--up);font-weight:600}
.two{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:20px 24px}
.two>section{margin-top:0}

/* search, buttons, chips */
.search{display:flex;gap:8px;max-width:560px}
input[type=search],select{font:inherit;font-size:15px;color:var(--ink);background:var(--page);border:1px solid var(--line);border-radius:12px;padding:10px 14px;min-width:0;letter-spacing:inherit}
input[type=search]{flex:1 1 220px}
input[type=search]:focus,select:focus{outline:4px solid var(--ring);outline-offset:0;border-color:var(--accent)}
.hero input[type=search]{border-radius:980px;padding:12px 20px;font-size:17px;background:var(--surface);border-color:transparent}
.btn{font:inherit;font-size:15px;border:0;border-radius:980px;padding:10px 20px;background:var(--accent);color:#fff;cursor:pointer;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;letter-spacing:inherit}
.btn:hover{text-decoration:none;background:var(--accent-hover)}
.hero .btn{font-size:17px;padding:12px 24px}
.btn.ghost{background:var(--chip);color:var(--ink)}
.btn.ghost:hover{background:var(--chip-hover)}
.chip{display:inline-block;background:var(--surface);color:var(--ink);border-radius:980px;padding:5px 13px;font-size:13px;white-space:nowrap}
a.chip:hover{background:var(--chip);text-decoration:none}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.badge{display:inline-block;margin-left:7px;color:var(--new);font-size:12px;font-weight:600;white-space:nowrap;letter-spacing:0}

/* ranked bars (home) */
.rank{list-style:none;margin:0;padding:10px}
.rank a{display:grid;grid-template-columns:20px 44px minmax(0,1fr) auto;gap:5px 12px;align-items:center;padding:9px 12px;color:inherit;border-radius:14px}
.rank a:hover{background:var(--hover);text-decoration:none}
.rank a>span{min-width:0}
.rank .t,.rank .s{display:block}
.rank .n{color:var(--muted);font-size:13px;text-align:right;font-variant-numeric:tabular-nums}
.rank .t{font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank .s{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank .val{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:15px}
.rank .val b{font-weight:600}
.rank .val span{display:block;color:var(--muted);font-size:12px}
.track{grid-column:3/5;height:5px;display:block}
.fill{display:block;height:5px;min-width:3px;background:var(--series);border-radius:0 4px 4px 0}
.thumb{width:44px;height:44px;border-radius:10px;object-fit:cover;object-position:top;background:var(--chip);display:block;flex:none}
.hbars{display:grid;grid-template-columns:max-content minmax(60px,1fr) max-content;gap:13px 14px;align-items:center;padding:24px 26px;font-size:15px}
.hbars a{color:var(--ink)}
.hbars .fill{height:8px}
.hbars .num{font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap;font-size:13px}
.hbars .num b{color:var(--ink);font-weight:600;font-size:15px}

/* game tiles */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.tile{display:flex;gap:14px;padding:14px;color:inherit;align-items:center;min-width:0;transition:background .15s}
.tile:hover{text-decoration:none;background:var(--hover)}
.tile .thumb{width:60px;height:60px;border-radius:14px}
.tile div{min-width:0}
.tile .t{font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile .s{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* tables */
.tablecard{overflow:hidden;padding:6px 8px}
.scroll{overflow-x:auto}
table{border-collapse:collapse;width:100%;font-size:15px}
th,td{padding:11px 12px;text-align:left;border-bottom:1px solid color-mix(in srgb,var(--line) 55%,transparent);vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
thead th{font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap;letter-spacing:0}
thead th button{all:unset;cursor:pointer;color:inherit;font:inherit}
thead th button:hover{color:var(--ink)}
thead th[aria-sort] button{color:var(--ink);font-weight:600}
thead th[aria-sort=descending] button::after{content:" ↓"}
thead th[aria-sort=ascending] button::after{content:" ↑"}
td.n,th.n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
td.rk{color:var(--muted);width:1%;font-variant-numeric:tabular-nums;text-align:right;padding-right:0;font-size:13px}
tbody tr:hover{background:var(--hover)}
tbody tr:hover td:first-child{border-radius:12px 0 0 12px}
tbody tr:hover td:last-child{border-radius:0 12px 12px 0}
.g{display:flex;align-items:center;gap:13px;min-width:0}
.g div{min-width:0}
.g .t{font-weight:600;color:var(--ink);display:block;overflow-wrap:anywhere}
.g .s{color:var(--muted);font-size:13px;display:block}
.g .s a{color:inherit}
.dim{color:var(--muted)}
@media (max-width:860px){.c-genre,.c-ppd{display:none}}
@media (max-width:620px){.c-age,.c-peer,td.rk,th.rk{display:none}th,td{padding:10px 8px}.wrap{padding:0 16px}.g .thumb{width:38px;height:38px}.tablecard{padding:4px 2px}.pad{padding:22px}}

/* explorer filters */
.filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:24px 0 10px}
.filters select{flex:1 1 160px;max-width:240px}
@media (max-width:620px){.filters select{max-width:none}}
.seg{display:inline-flex;background:var(--chip);border-radius:10px;padding:2px;gap:0;flex-wrap:wrap}
.seg button{font:inherit;font-size:13px;border:0;background:none;color:var(--ink);padding:6px 12px;border-radius:8px;cursor:pointer;letter-spacing:inherit}
.seg button[aria-pressed=true]{background:var(--raise);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.12),0 0 0 .5px rgba(0,0,0,.04)}
.summary{color:var(--muted);font-size:15px;margin:6px 0 14px;font-variant-numeric:tabular-nums}
.summary b{color:var(--ink);font-weight:600}
.center{display:flex;justify-content:center;padding:18px}
.empty{padding:48px 20px;text-align:center;color:var(--muted)}

/* game page */
.ghead{display:flex;gap:28px;align-items:center;padding:28px 0 4px;flex-wrap:wrap}
.cover{width:148px;border-radius:32px;background:var(--chip);display:block;flex:none;box-shadow:0 0 0 .5px var(--line),0 10px 30px rgba(0,0,0,.10)}
.ghead .info{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:12px}
.ghead h1{font-size:clamp(30px,4.8vw,48px);line-height:1.08;overflow-wrap:anywhere}
.by{color:var(--muted);font-size:17px}
.note{background:var(--surface);border-radius:14px;padding:14px 18px;color:var(--ink2);font-size:15px}
.prose{max-width:70ch;color:var(--ink2);display:flex;flex-direction:column;gap:12px}
.prose h2{color:var(--ink);font-size:24px;line-height:1.17;margin-top:26px}
.prose h3{color:var(--ink);font-size:19px;margin-top:10px}
.prose ul,.prose ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:7px}
.prose strong{color:var(--ink)}
pre,code{font-family:"SF Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;letter-spacing:0}
code{background:var(--surface);border-radius:6px;padding:2px 6px}
pre{background:var(--surface);border-radius:14px;padding:16px 18px;overflow-x:auto;margin:0;color:var(--ink)}
pre code{background:none;padding:0}
.card code{background:var(--chip)}

/* chart */
.chartcard{padding:26px 28px 20px}
.chartcard h2{font-size:21px;line-height:1.2}
.chartcard .sub{color:var(--muted);font-size:13px;margin-top:4px}
.chart{position:relative;margin-top:14px;min-height:240px}
.chart svg{display:block;width:100%;overflow:visible;touch-action:pan-y}
.chart svg:focus-visible{outline:none}
.chart .grid{stroke:color-mix(in srgb,var(--line) 70%,transparent);stroke-width:1}
.chart .base{stroke:var(--axis);stroke-width:1}
.chart .tick{fill:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;letter-spacing:0}
.chart .line{fill:none;stroke:var(--series);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.chart .dot{fill:var(--series);stroke:var(--surface);stroke-width:2}
.chart .end{fill:var(--ink);font-size:13px;font-weight:600}
.chart .cross{stroke:var(--axis);stroke-width:1}
.tip{position:absolute;pointer-events:none;background:var(--raise);border-radius:12px;padding:9px 13px;box-shadow:0 0 0 .5px var(--line),0 8px 28px rgba(0,0,0,.16);font-size:13px;white-space:nowrap;z-index:2}
.tip b{display:block;font-size:15px}
.tip span{color:var(--muted);display:block}
details.tv{margin-top:10px;font-size:15px}
details.tv summary{cursor:pointer;color:var(--link);width:max-content}
details.tv table{margin-top:8px;max-width:440px}

/* footer */
footer{background:var(--surface);padding:22px 0 30px;color:var(--muted);font-size:12px;line-height:1.5;letter-spacing:0}
footer .wrap{display:flex;flex-direction:column;gap:10px}
footer nav{display:flex;gap:6px 22px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid var(--line)}
footer a{color:var(--ink2)}
footer p{max-width:96ch}
