@charset "UTF-8";
:root{--ink:#171717;--muted:#6b6b6b;--line:#e6e6e6;--soft:#f3f3f3;--accent:#181818;--radius:12px;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff;font-size:14px}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}a:hover{text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}img,video{max-width:100%;height:auto}button,input,select,textarea{border:1px solid #d2d2d2;border-radius:8px;background:#fff;color:inherit}input,select,textarea{padding:11px 13px;max-width:100%}textarea{min-height:112px;resize:vertical}label{font-weight:600;display:block;margin-bottom:7px}label:has(input[type=checkbox]){font-weight:400}input[type=checkbox]{margin-right:8px;accent-color:#171717}h1,h2,h3,p{overflow-wrap:anywhere}h1{font-size:30px;letter-spacing:-1px;line-height:1.15}h2{font-size:22px;letter-spacing:-.5px}h3{font-size:17px}p{line-height:1.65}small,.muted{color:var(--muted)}:focus-visible{outline:3px solid #335dce;outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;z-index:100;top:-60px;left:10px;background:#171717;color:white;padding:14px;border-radius:8px}.skip-link:focus{top:8px}.icon{width:23px;height:23px;flex:none}.topbar{height:56px;position:fixed;z-index:50;inset:0 0 auto;background:#fffffff7;display:flex;align-items:center;justify-content:space-between;padding:0 24px 0 16px;gap:24px}.brand-group{display:flex;align-items:center;gap:16px;flex:none}.brand{display:flex;align-items:center;gap:8px;font-size:24px;font-weight:800;letter-spacing:-1.3px}.icon-button{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:transparent}.icon-button:hover{background:var(--soft)}.header-search{display:flex;height:40px;max-width:650px;width:45%;margin-left:5vw}.header-search input{border-radius:24px 0 0 24px;width:100%;min-width:0;padding-left:20px;border-color:#c9c9c9;font-size:15px}.header-search button{width:64px;flex:none;border:1px solid #c9c9c9;border-left:0;border-radius:0 24px 24px 0;background:#f8f8f8;display:grid;place-items:center}.header-search button:hover{background:#eee}.header-actions{display:flex;gap:12px;align-items:center;white-space:nowrap}.publish-button{display:flex;align-items:center;gap:6px;background:var(--soft);padding:8px 13px;border-radius:22px;font-weight:600}.login-link{padding:8px}.avatar{width:34px;height:34px;border-radius:50%;background:#e9e1d7;color:#40392f;display:inline-flex;justify-content:center;align-items:center;font-weight:700;flex:none;object-fit:cover}.notification-bell{position:relative}.notification-dot{position:absolute;width:7px;height:7px;background:#ed5348;border-radius:50%;right:9px;top:7px}.account-menu{position:relative}.account-menu summary{cursor:pointer;list-style:none}.account-menu summary::-webkit-details-marker{display:none}.dropdown{position:absolute;top:44px;right:0;background:#fff;box-shadow:0 5px 30px #0002;border:1px solid var(--line);border-radius:12px;padding:12px;min-width:190px;display:grid;gap:4px}.dropdown>a,.dropdown>strong{padding:10px}.dropdown a:hover{background:var(--soft);border-radius:6px}.dropdown button{border:0;text-align:left;padding:10px;width:100%}.sidebar{position:fixed;left:0;top:56px;bottom:0;width:72px;padding:6px 4px;background:white;z-index:40;overflow:auto}.nav-item{height:74px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font-size:10px}.nav-item:hover,.nav-item.active{background:var(--soft)}.sidebar-footer{display:none}.main-content{margin-left:72px;padding:75px 24px 50px 16px;min-height:100vh}.nav-expanded .sidebar{width:220px;padding:12px}.nav-expanded .nav-item{height:44px;flex-direction:row;justify-content:flex-start;gap:22px;font-size:14px;padding:0 14px}.nav-expanded .sidebar-footer{display:flex;flex-wrap:wrap;gap:10px;padding:22px 14px;font-size:12px;color:var(--muted);line-height:1.5;border-top:1px solid var(--line);margin-top:16px}.nav-expanded .sidebar-footer span{width:100%;margin-top:8px}.nav-expanded .main-content{margin-left:220px}.sidebar-backdrop{display:none}.filters,.filter-chips,.chips{display:flex;align-items:center;gap:9px;overflow-x:auto;padding:0 0 19px;scrollbar-width:none;max-width:100%}.filter-chip,.chip{white-space:nowrap;border-radius:8px;padding:8px 13px;background:#f0f0f0;border:0;font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:5px}.filter-chip.active,.chip.active{background:#171717;color:#fff}.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:38px 16px}.game-card{min-width:0;position:relative}.game-card .cover,.game-card .game-cover,.game-card>a>img,.game-card>img,.card-cover{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px;display:block;background:#f1f1f1}.cover-placeholder{width:100%;aspect-ratio:16/9;background:linear-gradient(130deg,#e9e9e9,#f5f5f5);border-radius:12px;display:grid;place-items:center;color:#777}.game-card h2,.game-card h3,.game-title{font-size:16px;line-height:1.35;font-weight:650;letter-spacing:0;margin:0 0 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.game-card p{margin:3px 0;color:var(--muted);font-size:13px;line-height:1.45}.card-info,.game-card-info,.game-meta{display:flex;gap:12px;padding-top:12px}.card-info>div,.game-card-info>div{min-width:0}.card-info .avatar{width:36px;height:36px}.creator-link:hover{text-decoration:underline}.badge{display:inline-flex;align-items:center;background:var(--soft);border-radius:5px;padding:4px 7px;font-size:11px;line-height:1.3;color:#555;margin-top:6px}.badge.success{background:#eaf5eb;color:#236536}.page{max-width:1160px;margin:15px auto}.page.narrow,.narrow{max-width:680px;margin-left:auto;margin-right:auto}.page-header,.section-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.page-header h1{margin:0 0 8px}.page-header p{margin:0;color:var(--muted)}.panel{padding:26px;border:1px solid var(--line);border-radius:14px;background:#fff;margin-bottom:22px}.panel h2:first-child,.panel h3:first-child{margin-top:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.form-grid .full{grid-column:1/-1}.field,.form-field{margin-bottom:20px}.field input:not([type=checkbox]),.field textarea,.field select,.form-field input:not([type=checkbox]),.form-field textarea,.form-field select{width:100%}.field small,.form-field small{display:block;margin-top:6px;line-height:1.5}.form-grid input:not([type=checkbox]),.form-grid select,.form-grid textarea{width:100%}.button,button.primary,input[type=submit]{display:inline-flex;justify-content:center;align-items:center;gap:8px;background:#191919;color:white;border:1px solid #191919;border-radius:22px;padding:11px 19px;font-weight:600;line-height:1.2}.button:hover{background:#343434}.button.secondary,.button.outline{background:white;color:#222;border-color:#d6d6d6}.button.secondary:hover{background:#f2f2f2}.button.small,.small-button{padding:8px 14px;font-size:13px}.button.danger{background:#a52626;border-color:#a52626}.actions,.action-row,.inline-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.actions form,.inline-actions form{margin:0}.error,.field-error,.errors{color:#a02020;font-size:13px;line-height:1.6}.errors{padding-left:18px}.flash-stack{margin:0 auto 18px;max-width:1200px}.flash{padding:13px 17px;border-radius:10px;background:#edf5ee;border:1px solid #d4e7d6;line-height:1.5}.flash.error,.flash.danger{background:#fff0ef;border-color:#f0d7d5}.flash.warning{background:#fff9e8;border-color:#ece0ba}.flash.info{background:#f0f4fa;border-color:#dce4f0}.empty-state{max-width:680px;text-align:center;padding:90px 25px;margin:auto}.empty-state h1,.empty-state h2{font-size:27px;letter-spacing:-.7px}.empty-state p{color:var(--muted);margin-bottom:24px}.empty-icon{font-size:45px;margin-bottom:24px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:700;color:var(--muted)}.filter-form{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:26px;align-items:end}.filter-form label{font-size:12px}.filter-form input{min-width:180px}.pagination{display:flex;gap:16px;align-items:center;justify-content:center;margin:40px 0}.pagination a{padding:10px 16px;border:1px solid var(--line);border-radius:20px}.tabs{display:flex;border-bottom:1px solid var(--line);gap:25px;margin-bottom:24px;overflow:auto}.tabs a{white-space:nowrap;padding:14px 0;color:#666}.tabs a.active{border-bottom:2px solid #171717;color:#171717;font-weight:600}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.7px;font-weight:600}td .button{margin-bottom:4px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:25px 0}.stat{border:1px solid var(--line);border-radius:12px;padding:20px}.stat strong{display:block;font-size:28px;margin:9px 0}.stat span{font-size:12px;color:var(--muted)}.prose{max-width:760px;line-height:1.75}.prose a{text-decoration:underline}.prose h2{margin-top:32px}.list-item{padding:20px 0;border-bottom:1px solid var(--line)}.list-item:first-child{padding-top:0}.list-item:last-child{border-bottom:0}.notification.unread{border-left:3px solid #171717;padding-left:18px}.review{border-bottom:1px solid var(--line);padding:22px 0}.review p{white-space:pre-line}.review .reply{background:var(--soft);padding:14px 20px;border-radius:10px;margin-left:25px}.profile-heading{display:flex;align-items:center;gap:24px;margin:20px 0 40px}.profile-heading .avatar{width:88px;height:88px;font-size:30px}.auth-page{max-width:440px;margin:40px auto}.auth-page h1{margin-bottom:10px}.auth-page .button{width:100%}.auth-page>p{color:var(--muted)}.auth-links{display:flex;justify-content:space-between;margin-top:20px;font-size:13px}.auth-links a:hover{text-decoration:underline}.status{display:inline-flex;font-size:12px;padding:5px 8px;background:#f0f0f0;border-radius:6px}progress{width:100%;accent-color:#171717;height:12px}.help-text{font-size:12px;color:var(--muted);line-height:1.6}.danger-zone{border-color:#e8bcbc}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f6f6;padding:16px;border-radius:8px;font-size:12px}code{font-size:.9em}
@media(min-width:1800px){.game-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.header-search{margin-left:0}.header-actions{gap:6px}.publish-button span{display:none}.publish-button{padding:8px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.topbar{padding:0 12px;gap:8px;height:56px}.brand-group{gap:5px}.brand{font-size:21px}.brand img{width:24px;height:24px}.header-search{position:absolute;top:56px;left:12px;right:12px;width:auto;max-width:none;background:white;box-shadow:0 8px 0 8px #fff;height:36px}.header-search input{font-size:13px}.header-search button{width:48px}.header-actions .publish-button{display:none}.header-actions .button{padding:7px 10px}.header-actions .login-link{font-size:12px;padding:5px}.header-actions{gap:3px}.sidebar{transform:translateX(-100%);width:220px;top:56px;transition:transform .2s;z-index:70}.nav-expanded .sidebar{transform:translateX(0)}.sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:56px 0 0;background:#0005;z-index:60}.main-content,.nav-expanded .main-content{margin-left:0;padding:112px 12px 40px}.game-grid{grid-template-columns:1fr;gap:28px}.game-card h2,.game-card h3{font-size:15px}.filters,.filter-chips,.chips{padding-bottom:18px}.filter-chip,.chip{font-size:13px;padding:8px 12px}.page{margin:5px auto}.page-header{align-items:flex-start;flex-direction:column;gap:12px}.page-header h1{font-size:26px}.form-grid{grid-template-columns:1fr}.panel{padding:19px}.empty-state{padding:65px 18px}.filter-form{gap:8px}.filter-form>div{flex:1 1 42%}.filter-form input,.filter-form select{width:100%;min-width:0}.profile-heading{gap:16px}.profile-heading .avatar{width:64px;height:64px}.auth-page{margin:30px auto}.notification-bell{width:34px}.avatar{width:31px;height:31px}.stats-grid{gap:10px}.stat{padding:14px}h1{font-size:27px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Shared public template components. */
.filter-bar{display:flex;align-items:center;gap:9px;overflow-x:auto;padding-bottom:19px;scrollbar-width:none;max-width:100%}.game-cover-link{display:block;position:relative}.cover-badge{position:absolute;left:10px;bottom:10px;background:#fffffff0;padding:5px 8px;border-radius:5px;font-size:11px;font-weight:600}.game-card-details{display:flex;gap:12px;padding-top:12px}.game-card-copy{min-width:0}.game-card p.game-meta{display:block;padding:0;margin-top:4px;font-size:12px}.creator-name{color:#666;font-size:13px}.creator-name:hover{text-decoration:underline}.game-card h2 a:after{content:'';position:absolute;inset:0}.game-card .creator-name,.game-card .creator-avatar{position:relative;z-index:2}.creator-avatar img{border-radius:50%;width:100%;height:100%;object-fit:cover}.game-card:focus-within .game-cover{outline:2px solid #345cc2;outline-offset:2px}.catalog-filters{margin:8px 0 25px;border:1px solid #e6e6e6;border-radius:12px;padding:14px}.catalog-filters summary{cursor:pointer;font-weight:600;margin-bottom:10px}.catalog-filters .field{margin-bottom:0}.profile-header,.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:15px 0 30px}.profile-header .avatar{width:80px;height:80px;font-size:26px}.library-row{display:grid;grid-template-columns:220px 1fr auto;gap:22px;align-items:center;padding:20px 0;border-bottom:1px solid #e6e6e6}.library-row img{aspect-ratio:16/9;object-fit:cover;border-radius:10px}.auth-page .form-grid{grid-template-columns:1fr}.auth-page .field{margin-bottom:0}.creator-avatar{width:36px;height:36px}.account-menu .dropdown form{margin:0}.game-card .game-meta{gap:0}.notification-list{list-style:none;padding:0}.notification-list li{padding:20px;border-bottom:1px solid #eee}.notification-list .unread{background:#f7f8fb}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.settings-grid .form-grid{grid-template-columns:1fr}.page-heading h1{margin-bottom:8px}.table-scroll{overflow:auto}
@media(max-width:700px){.library-row{grid-template-columns:100px 1fr;gap:12px}.library-row>.actions{grid-column:1/-1}.profile-header,.page-heading{align-items:flex-start;flex-wrap:wrap}.settings-grid{grid-template-columns:1fr}}
.page-section{max-width:1240px;margin:12px auto}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.stat-grid .stat strong{font-size:24px;overflow-wrap:anywhere}.page-section .panel textarea{display:block;width:100%;margin:10px 0 16px}.page-section button{padding:9px 14px;border-radius:8px}.page-section .danger{color:#a52626;border-color:#d49e9e}.narrow .form-grid{grid-template-columns:1fr}.preserve-lines{white-space:pre-line}.page-section .notice{padding:15px;background:#f3f5f7;border-radius:8px}
@media(max-width:900px){.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-grid .stat strong{font-size:19px}}
/* Keep the catalog's search controls centered at every screen width. */
.catalog-filters {
  max-width: 1640px;
  margin-inline: auto;
}
.catalog-filters summary {
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 16px;
}
.catalog-filters .filter-form {
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
}
.catalog-filters .checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
}
.catalog-filters .checkbox input[type=checkbox] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  flex: 0 0 16px;
  padding: 0;
  margin: 0;
}
.avatar>img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
