:root{--ink:#111827;--muted:#667085;--line:#e4e8f0;--soft:#f5f7fb;--white:#fff;--brand:#5b4ff2;--brand2:#04a99a;--danger:#c72c41;--warning:#b66b05;--success:#087f5b;--shadow:0 12px 34px rgba(17,24,39,.08)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--soft);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}
button,input,select,textarea{font:inherit}
button,.button{cursor:pointer}
.container{width:min(1180px,calc(100% - 32px));margin:auto}
.sr-only,.hidden-field{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.skip-link{position:fixed;top:-60px;left:16px;z-index:100;background:#fff;padding:10px 14px;border-radius:8px}
.skip-link:focus{top:10px}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav-wrap{width:min(1180px,calc(100% - 32px));margin:auto;min-height:72px;display:flex;gap:18px;align-items:center}
.brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-size:20px;font-weight:850;white-space:nowrap}
.brand:hover{text-decoration:none}
.site-search{display:flex;flex:1;max-width:600px;margin:auto}
.site-search input{width:100%;border:1px solid var(--line);border-radius:12px 0 0 12px;padding:11px 14px;background:#fafbfc}
.site-search button{border:0;border-radius:0 12px 12px 0;padding:0 18px;background:var(--ink);color:#fff}
.play-free,.primary{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--brand),#7668ff);color:#fff!important;border:0;border-radius:11px;padding:11px 17px;font-weight:750}
.play-free:hover,.primary:hover{text-decoration:none;filter:brightness(.96)}
main.container{padding-top:30px;padding-bottom:60px;min-height:65vh}
.hero{overflow:hidden;position:relative;display:grid;grid-template-columns:minmax(0,680px) 1fr;min-height:320px;align-items:center;padding:48px;border-radius:24px;color:#fff;background:radial-gradient(circle at 85% 15%,rgba(4,184,167,.8),transparent 32%),linear-gradient(135deg,#111827,#322c85);box-shadow:var(--shadow)}
.hero:after{content:"";position:absolute;right:7%;bottom:-60px;width:230px;height:230px;border:38px solid rgba(255,255,255,.09);border-radius:50%}
.hero h1{font-size:clamp(38px,6vw,66px);line-height:1.02;margin:7px 0 18px;letter-spacing:-.045em}
.hero p{max-width:640px;font-size:18px;color:#dbe2f2}
.eyebrow{margin:0;color:var(--brand2);text-transform:uppercase;letter-spacing:.14em;font-size:12px!important;font-weight:850}
.action-row{display:flex;gap:11px;flex-wrap:wrap;margin-top:22px}
.button{padding:11px 17px;font-weight:750;border-radius:11px}
.secondary{display:inline-flex;align-items:center;justify-content:center;border:1px solid #c9c5ff;background:#fff;color:var(--brand);border-radius:11px}
.secondary:hover{text-decoration:none;background:#f7f6ff}
.hero .secondary{border-color:rgba(255,255,255,.45);background:rgba(255,255,255,.12);color:#fff}
.section-heading,.page-heading,.admin-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:42px 0 18px}
.section-heading h2,.page-heading h1,.admin-heading h1{margin:0;letter-spacing:-.025em}
.section-heading p,.page-heading p,.admin-heading p{margin:4px 0 0;color:var(--muted)}
.chip-row{display:flex;gap:10px;overflow:auto;padding-bottom:5px}
.chip-row a{flex:none;display:flex;gap:10px;padding:9px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-weight:700}
.chip-row span{color:var(--muted);font-weight:500}
.game-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.game-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 5px 18px rgba(17,24,39,.035);transition:transform .2s,box-shadow .2s}
.game-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.game-card>a{display:block;color:inherit}
.game-card>a:hover{text-decoration:none}
.game-card img{display:block;width:100%;aspect-ratio:1;object-fit:cover;background:#eef0f6}
.card-body{padding:12px}
.card-body h2{margin:0;font-size:15px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-body p{margin:5px 0;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-meta{display:flex;justify-content:space-between;gap:5px;color:var(--muted);font-size:11px}
.card-meta span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.category-card{display:flex;flex-direction:column;padding:22px;border-radius:15px;background:#fff;border:1px solid var(--line);color:var(--ink)}
.category-card span{color:var(--muted)}
.breadcrumbs{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;margin-bottom:24px;overflow:hidden;white-space:nowrap}
.game-detail{background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:var(--shadow)}
.game-hero{display:flex;gap:25px;align-items:center}
.game-icon{width:160px;height:160px;border-radius:29px;object-fit:cover;background:#eef0f6;box-shadow:0 10px 24px rgba(17,24,39,.14)}
.game-hero h1{font-size:clamp(30px,5vw,52px);line-height:1.05;margin:5px 0 8px;letter-spacing:-.04em}
.developer{color:var(--muted);font-size:17px}
.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:30px 0}
.facts div{display:flex;flex-direction:column;padding:16px;background:var(--soft);border-radius:13px}
.facts span,.facts small{color:var(--muted);font-size:12px}
.facts strong{font-size:17px}
.prose{max-width:850px;background:#fff;border-radius:18px;padding:28px;border:1px solid var(--line)}
.game-detail .prose{border:0;padding:0;margin:28px 0}
.prose h1,.prose h2{letter-spacing:-.025em}
.prose p{color:#42506a}
.report-box{max-width:850px;margin:28px 0;padding:17px;border-radius:14px;background:#fff;border:1px solid var(--line)}
.report-box summary{font-weight:750;cursor:pointer}
.form-grid{display:grid;gap:16px}
.form-grid label,.inline-form label{display:grid;gap:6px;font-weight:650}
.form-grid input,.form-grid select,.form-grid textarea,.inline-form input,.filter-bar input,.filter-bar select,.bulk-bar select{width:100%;padding:11px 12px;border:1px solid #cfd6e3;border-radius:9px;background:#fff;color:var(--ink)}
.form-grid small{font-weight:400;color:var(--muted)}
.checkbox{display:flex!important;grid-template-columns:22px auto;align-items:center}
.checkbox input{width:18px!important}
.pagination{display:flex;justify-content:center;gap:7px;margin:30px 0}
.pagination a{min-width:39px;text-align:center;padding:8px;border-radius:8px;border:1px solid var(--line);background:#fff}
.pagination a.active{background:var(--brand);color:#fff}
.empty{text-align:center;padding:55px 20px;border:1px dashed #cbd2df;border-radius:16px;background:#fff}
.ad-wrap{min-height:90px;margin:25px 0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.alert{padding:12px 15px;margin:12px 0;border-radius:10px;border:1px solid}
.alert.success{color:var(--success);background:#eafaf4;border-color:#a8e0cb}
.alert.error{color:var(--danger);background:#fff1f2;border-color:#ffc9d0}
.alert.warning{color:var(--warning);background:#fff8e8;border-color:#f2d294}
.site-footer{background:var(--ink);color:#bdc6d8;padding:42px 0 90px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:35px}
.footer-grid strong{color:#fff;font-size:18px}
.footer-grid a{display:block;color:#dce2ef;margin-bottom:8px}
.copyright{text-align:center;margin:35px 16px 0;font-size:12px;color:#8490a7}
.mobile-nav{display:none}
.installer{width:min(760px,calc(100% - 28px));margin:35px auto}
.panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px;box-shadow:0 4px 18px rgba(17,24,39,.04)}
.panel h1,.panel h2{margin-top:0}
.narrow{max-width:600px}
.check-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.check-list li{padding:10px 12px;border-radius:8px;background:var(--soft)}
.check-list .pass{color:var(--success)}
.check-list .fail{color:var(--danger)}
.login-wrap{min-height:calc(100vh - 70px);display:grid;place-items:center;padding:30px}
.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;padding:32px;box-shadow:var(--shadow)}
.login-card>img{display:block;margin:auto}
.login-card h1{text-align:center;margin-bottom:0}
.login-card>p{text-align:center;color:var(--muted)}
.admin-body{background:#f1f4f8}
.admin-top{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:var(--ink);color:#fff}
.admin-top .brand{color:#fff}
.admin-top>div{display:flex;gap:18px}
.admin-top a{color:#fff}
.admin-shell{display:grid;grid-template-columns:230px 1fr;min-height:calc(100vh - 64px)}
.admin-nav{padding:20px 12px;background:#fff;border-right:1px solid var(--line)}
.admin-nav a{display:block;padding:10px 13px;margin:3px 0;border-radius:8px;color:#42506a;font-weight:650}
.admin-nav a.active{background:#eeecff;color:var(--brand)}
.admin-main{padding:28px;min-width:0}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:15px 0 25px}
.stat{display:flex;flex-direction:column;padding:22px;background:#fff;border:1px solid var(--line);border-radius:14px}
.stat strong{font-size:30px}
.stat span{color:var(--muted)}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.clean-list{list-style:none;padding:0;margin:0}
.clean-list li{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid var(--line)}
.clean-list li:last-child{border:0}
.clean-list small{display:block;color:var(--muted)}
.detail-list{display:grid;grid-template-columns:140px 1fr;margin:0}
.detail-list dt,.detail-list dd{padding:8px;border-bottom:1px solid var(--line);margin:0}
.detail-list dt{color:var(--muted)}
.inline-form{display:grid;grid-template-columns:1fr 2fr auto;align-items:end;gap:12px;margin-bottom:18px}
.filter-bar,.bulk-bar{display:flex;gap:9px;margin-bottom:13px}
.filter-bar input{max-width:380px}
.filter-bar select,.bulk-bar select{max-width:180px}
.filter-bar button,.bulk-bar button,table button{border:1px solid #cfd6e3;background:#fff;padding:8px 12px;border-radius:8px}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}
table{width:100%;border-collapse:collapse;font-size:13px}
th,td{text-align:left;vertical-align:top;padding:11px;border-bottom:1px solid var(--line)}
th{background:#f8f9fb;color:#5e6a80;white-space:nowrap}
td small{display:block;color:var(--muted);max-width:370px;word-break:break-word}
.badge{display:inline-block;border-radius:999px;padding:3px 8px;background:#edf0f5}
.badge.published{background:#e4f8f0;color:var(--success)}
.badge.review{background:#fff5dd;color:var(--warning)}
.badge.hidden,.badge.removed{background:#ffecef;color:var(--danger)}
code{display:block;overflow:auto;padding:13px;background:#111827;color:#dbe2ef;border-radius:9px}
.busy{opacity:.68;pointer-events:none}
@media(max-width:1000px){.game-grid{grid-template-columns:repeat(4,1fr)}.category-grid{grid-template-columns:repeat(3,1fr)}.admin-shell{grid-template-columns:190px 1fr}.admin-main{padding:20px}.stat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){
 .nav-wrap{min-height:64px;flex-wrap:wrap;padding:10px 0}.brand span{font-size:17px}.site-search{order:3;flex-basis:100%;max-width:none}.play-free{padding:9px 11px;font-size:13px}
 main.container{padding-top:22px;padding-bottom:85px}.hero{min-height:auto;padding:30px 23px;display:block}.hero h1{font-size:41px}.hero:after{display:none}
 .game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.category-grid{grid-template-columns:repeat(2,1fr)}
 .game-detail{padding:19px}.game-hero{align-items:flex-start}.game-icon{width:100px;height:100px;border-radius:20px}.game-hero h1{font-size:29px}.action-row{margin-top:14px}.game-hero .action-row{margin-left:-125px;padding-top:98px}
 .facts{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:1fr}.mobile-nav{position:fixed;z-index:60;bottom:0;left:0;right:0;display:flex;justify-content:space-around;padding:10px;background:#fff;border-top:1px solid var(--line)}.mobile-nav a{font-size:13px;font-weight:700}
 .admin-top{padding:0 12px}.admin-top>div a:first-child{display:none}.admin-shell{display:block}.admin-nav{display:flex;overflow:auto;border:0;border-bottom:1px solid var(--line);padding:8px}.admin-nav a{flex:none}.admin-main{padding:15px}.admin-heading{align-items:flex-start}.admin-grid,.stat-grid{grid-template-columns:1fr}.inline-form{grid-template-columns:1fr}.detail-list{grid-template-columns:1fr}.detail-list dt{border-bottom:0;padding-bottom:0}.filter-bar{flex-wrap:wrap}
}
