/* Intelli reference: Inter Display, black/graphite surfaces and neutral actions.
   UI only: the Vice Cuts renderers and video caption styles keep their own system. */
@font-face{font-family:'Inter Display';src:url('/static/fonts/inter-display-regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Inter Display';src:url('/static/fonts/inter-display-medium.woff2') format('woff2');font-weight:500 600;font-display:swap}
@font-face{font-family:'Inter Display';src:url('/static/fonts/inter-display-bold.woff2') format('woff2');font-weight:650 900;font-display:swap}
:root{
  --sans:'Inter Display',Arial,sans-serif;
  --bg:#000;--panel:#0d0d0d;--raised:#141414;--line:#292929;--strong-line:#535353;
  --ink:#fff;--muted:#ccc;--dim:#999;--inverse:#000;--avatar:#242424;
  --action:#fff;--action-ink:#000;--blue:#fff;--blue-text:#000;--accent:#fff;--focus:#49ccc1;
  --type-title:40px;--type-heading:24px;--type-body:16px;--type-caption:13px;
  --inset:32px;
}
:root[data-theme=light]{
  --bg:#f7f7f7;--panel:#fff;--raised:#ebebeb;--line:#d6d6d6;--strong-line:#999;
  --ink:#141414;--muted:#535353;--dim:#666;--inverse:#fff;--avatar:#ddd;
  --action:#141414;--action-ink:#fff;--blue:#141414;--blue-text:#fff;--accent:#141414;--focus:#007d74;
}
body{font:400 16px/1.5 var(--sans);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:var(--sans)}
h1,h2,h3{font-weight:500;letter-spacing:-.035em;text-wrap:balance}
.button{font-size:14px;line-height:20px;gap:8px;min-height:40px;padding:10px 16px;font-weight:500}
.button.primary{background:var(--action);color:var(--action-ink);border-color:var(--action)}
.button.primary:hover{background:color-mix(in srgb,var(--action) 85%,var(--bg));color:var(--action-ink)}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px}

/* Navigation keeps its three anchors: identity, centered search, account. */
.top{background:var(--panel)}
.top .top-inner{padding:14px 24px;min-height:76px}
.top .brand{font-size:18px;font-weight:600;letter-spacing:-.04em;gap:10px}
.top .header-identity{gap:24px}
.top .header-discovery .header-discovery-link{font-size:15px;font-weight:500}
.top #creator-search{height:44px;max-width:400px}
.top #creator-query{font-size:14px;line-height:22px;padding:10px 14px;background:var(--raised)}
.top #creator-search button{width:44px;background:var(--raised)}
.top #site-nav .button{font-size:14px;min-height:42px;padding:10px;gap:8px}
.top .account-button{font-size:14px!important;gap:10px!important}
.top .account-button .follow-avatar{width:34px;height:34px}
.top .account-button small{font-size:12px;line-height:17px}
.top .profile-trigger{color:var(--ink);gap:10px}
.top .profile-trigger-copy strong{font-size:14px;line-height:20px;font-weight:500}
.top .profile-trigger-copy small{font-size:12px;line-height:17px}

/* Catalog: content determines the height, including the coverless search view. */
main:has(#screen-lives:not([hidden])){padding-inline:32px}
.game-profile,.game-profile:has(.game-cover[hidden]){min-height:0;padding:28px 0 20px;gap:22px;align-items:center}
.game-profile:has(.game-cover[hidden]){padding:28px 0 18px}
.game-cover{width:72px;height:96px;border-radius:5px}
.game-heading{margin-bottom:8px}
.game-info h1{font-size:40px;line-height:1.1;letter-spacing:-.045em;font-weight:500;margin:0}
.game-meta{font-size:14px;line-height:21px;gap:8px}
.game-genres{gap:6px}.game-genres span{font-size:12px;line-height:16px;padding:2px 7px}
.game-actions{margin-top:10px}
.game-actions button{min-height:28px;width:30px;padding:4px}
.catalog-tabs{min-height:48px;gap:28px;overflow-y:hidden;overflow-x:auto;scrollbar-width:none}
.category-tab{font-size:15px;line-height:22px;min-height:48px;gap:8px;flex:none}
.category-tab[aria-pressed=true]{font-weight:500}
.catalog-heading,.catalog-heading:has(#catalog-title.sr-only){margin:20px 0;gap:0}
.catalog-controls{gap:10px}
.catalog-controls :is(#catalog-audience,#catalog-minimum,#catalog-platform,#catalog-language,#catalog-sort,#catalog-tags){font:400 14px/20px var(--sans);min-height:42px;padding:10px 12px;border-radius:8px}
.catalog-controls #catalog-tags{width:220px}
.catalog-controls .sort-label{font-size:13px}
.catalog-controls .refresh-button{width:42px;height:42px;flex:none}
.group-heading{min-height:28px;margin:0 0 16px;align-items:center}
.group-heading h2{font-size:20px;font-weight:500;line-height:28px;letter-spacing:-.025em}
.directory-stats{gap:14px;flex-wrap:wrap;justify-content:flex-end}
#catalog-count,#source-coverage>summary{font-size:13px;line-height:20px}
.directory-stats{position:relative}
#catalog-context{position:static;font-size:13px;color:var(--muted)}
#catalog-context:not(:has(p:not([hidden]))){display:none}
#catalog-context>summary{cursor:pointer;list-style:none;padding-block:4px}
#catalog-context>summary::after{content:'+';margin-left:6px}
#catalog-context[open]>summary::after{content:'−'}
.catalog-context-copy{position:absolute;right:0;top:100%;width:min(360px,calc(100vw - 48px));padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:10px;z-index:5;box-shadow:0 8px 24px #0002;text-align:left}
#catalog-context :is(#catalog-filter-scope,#replays-hint){font-size:13px;line-height:1.6;margin:0}
#catalog-context #replays-hint:not([hidden]){margin-top:8px}
.catalog-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:32px 20px}
.language-rail .catalog-list{grid-auto-columns:calc((100% - (var(--rail-columns) - 1)*20px)/var(--rail-columns));gap:20px;--rail-columns:5}
.thumb{aspect-ratio:16/9;border-radius:8px}
.card-info{grid-template-columns:36px minmax(0,1fr);gap:10px;padding-top:12px}
.channel-avatar{width:36px;height:36px}
.card-title{font-size:16px;line-height:22px;font-weight:500;letter-spacing:-.015em}
.card-creator{font-size:14px;line-height:20px;margin-top:3px}
.card-category{font-size:13px;line-height:18px}
.card-meta{margin-top:8px;height:22px;gap:6px}
.platform-mark,.stream-tag{font-size:11px;line-height:18px;padding:1px 6px}
.platform-mark{padding-left:0}
.card-options{margin-top:calc(56.25% + 10px)}
.opportunity-reason{font-size:13px;line-height:20px;color:var(--muted)}
.catalog-list .empty{font-size:16px;padding-block:32px}

/* Sidebar remains dense enough for discovery without microscopic labels. */
.following-sidebar{padding:20px 12px}
.following-heading h2,.following-sidebar h3{font-size:14px;font-weight:500;line-height:22px}
.following-sidebar section{margin-bottom:28px}
.follow-channel{min-height:52px;gap:9px}
.follow-channel-text strong{font-size:14px;line-height:19px;font-weight:500}
.follow-channel-text small{font-size:12px;line-height:18px}
.follow-status{font-size:11px;line-height:16px}
.following-more,.following-manage{font-size:12px;padding-block:10px}
.sidebar-category strong{font-size:13px;line-height:18px;font-weight:500}
.sidebar-category small{font-size:12px;line-height:18px}

/* Production, library, templates and account share the same hierarchy. */
.workspace-page,#screen-history,#screen-job{padding-block:32px 56px}
.workspace-head{padding-bottom:28px;align-items:start}
.workspace-head h1,.job-head h1,.directory-heading h1{font-size:40px;line-height:1.12;font-weight:500;letter-spacing:-.045em}
.workspace-head p,.job-head p{font-size:16px;line-height:24px;max-width:60ch}
.workspace-head .workspace-eyebrow,.directory-eyebrow{font-size:13px;line-height:20px;letter-spacing:0;text-transform:none;margin-bottom:8px}
.workspace-head>.button,.queue-toolbar .button{font-size:14px;min-height:42px}
.workspace-metrics{gap:48px;padding-bottom:24px;margin-bottom:24px}
.workspace-metrics strong{font-size:32px;line-height:36px;font-weight:500;letter-spacing:-.035em}
.workspace-metrics span{font-size:14px;line-height:20px}
.workspace-section-label h2,.queue-group-title{font-size:20px;font-weight:500;line-height:28px;letter-spacing:-.025em}
.workspace-section-label>span,.queue-toolbar p,.queue-settings,.queue-progress-copy,.browser-note,.project-date,.project-counts,.project-error{font-size:13px;line-height:20px}
.queue-item-copy h3,.library-card h2,.model-card h2{font-size:18px;line-height:25px;font-weight:500;letter-spacing:-.025em}
.queue-item-meta,.project-eyebrow{font-size:13px;line-height:20px}
.library-filters label{font-size:13px;line-height:20px}
.library-filters :is(input,select){font-size:14px;min-height:42px;padding:10px 12px}
.studio-empty{padding:40px 24px}.studio-empty h2{font-size:24px;font-weight:500}.studio-empty p{font-size:15px;line-height:24px}
.model-card p,.model-custom-hint p{font-size:14px;line-height:22px}
.category-directory{padding-top:32px}
.directory-heading{margin-bottom:24px}
.category-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:28px 18px}
.directory-category>strong{font-size:16px;line-height:22px;font-weight:500;letter-spacing:-.015em}
.category-audience{font-size:14px;line-height:20px;margin-top:4px}
.category-tags>span{font-size:11px;line-height:16px}
.category-toolbar :is(input,select,button),.category-platforms button{font-size:14px}
.directory-source-note{font-size:13px;line-height:20px}
#account-dialog .account-dialog-top h2{font-size:32px;font-weight:500;letter-spacing:-.04em}
#account-dialog .account-dialog-top p{font-size:16px;line-height:24px}
#account-dialog .account-section-title h3,#account-dialog .account-provider strong{font-size:16px;font-weight:500}
#account-dialog .account-provider small,#account-dialog .account-storage p,#account-dialog .account-privacy{font-size:14px;line-height:22px}
#account-dialog .account-provider .button{font-size:14px;min-height:40px}

@media(max-width:1599px){.language-rail .catalog-list{--rail-columns:4}}
@media(max-width:1240px){.language-rail .catalog-list{--rail-columns:3}}
@media(max-width:900px){
  main:has(#screen-lives:not([hidden])){padding-inline:24px}
  .game-info h1,.workspace-head h1,.directory-heading h1{font-size:34px}
  .catalog-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .language-rail .catalog-list{--rail-columns:2}
  .catalog-controls .sort-label{margin-left:0}
}
@media(max-width:700px){
  .top .top-inner{padding:10px 16px;gap:6px}
  .top .header-identity{gap:6px 16px}
  .top .header-identity .brand{font-size:17px}
  .top .header-discovery .header-discovery-link{font-size:14px}
  .top #creator-query{font-size:16px}
}
@media(max-width:600px){
  :root{--inset:20px}
  main:has(#screen-lives:not([hidden])){padding-inline:20px}
  .game-profile,.game-profile:has(.game-cover[hidden]){padding:24px 0 16px;gap:16px;align-items:start}
  .game-cover{width:54px;height:72px}
  .game-info h1,.workspace-head h1,.directory-heading h1{font-size:30px;line-height:1.15}
  .game-meta{font-size:13px;line-height:20px}
  .catalog-tabs{gap:24px}.category-tab{font-size:14px}
  .catalog-heading,.catalog-heading:has(#catalog-title.sr-only){margin:16px 0 20px}
  .catalog-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .catalog-controls :is(#catalog-audience,#catalog-minimum,#catalog-platform,#catalog-language,#catalog-sort,#catalog-tags){width:100%;min-width:0;font-size:14px}
  .catalog-controls #catalog-tags{font-size:16px;grid-column:auto}
  .catalog-controls #catalog-audience{grid-column:auto}
  .catalog-list{grid-template-columns:minmax(0,1fr);gap:28px}
  .language-rail .catalog-list{grid-auto-columns:85%;gap:16px}
  .group-heading{align-items:start;gap:8px;flex-wrap:wrap}.group-heading h2{font-size:19px}
  .directory-stats{gap:12px;justify-content:start;margin-left:0;width:100%}
  .catalog-context-copy{left:0;right:auto;width:min(360px,calc(100vw - 40px))}
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}
  .directory-category>strong{font-size:15px}.category-audience{font-size:13px}
  .workspace-metrics{gap:20px}.workspace-metrics strong{font-size:28px}
  .workspace-head p{font-size:15px;line-height:23px}
  #account-dialog .account-dialog-top h2{font-size:28px}
}
