:root { --ink:#20232a; --muted:#626873; --line:#e1e4e9; --accent:#285fea; --paper:#f7f8fa; --green:#247248; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:system-ui,-apple-system,"Segoe UI",sans-serif; line-height:1.55; }
button,input,textarea { font:inherit; }
a { color:inherit; text-decoration:none; }
button,a,input,textarea,summary { -webkit-tap-highlight-color:transparent; }
button,summary { cursor:pointer; }
button:disabled { cursor:default; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible { outline:3px solid #7e9ff2; outline-offset:3px; }
[hidden] { display:none!important; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); }
.skip-link { position:absolute; top:-80px; left:20px; padding:10px 16px; background:white; z-index:30; }
.skip-link:focus { top:12px; }
.site-header,main,footer { max-width:1056px; margin:auto; padding-left:28px; padding-right:28px; }
.site-header { height:82px; display:flex; align-items:center; }
.brand { display:inline-flex; gap:10px; align-items:center; font-size:18px; font-weight:700; }
.brand-mark { width:32px; height:32px; display:grid; place-items:center; border-radius:9px; background:var(--ink); color:white; font-size:18px; }
main { padding-top:12px; padding-bottom:44px; }
h1 { margin:0 0 22px; font-size:32px; line-height:1.25; letter-spacing:-.8px; font-weight:700; }
.catalog-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--line); padding-bottom:16px; }
.filters { display:flex; align-items:center; gap:8px; }
.filters button { min-width:68px; min-height:44px; padding:8px 18px; border:0; border-radius:10px; background:transparent; color:var(--muted); font-size:14px; }
.filters button[aria-pressed=true] { background:var(--ink); color:white; font-weight:600; }
.icon-button { min-width:44px; height:44px; border:0; border-radius:10px; background:transparent; display:inline-flex; align-items:center; justify-content:center; color:var(--muted); font-size:28px; }
.icon-button:hover,.text-button:hover { background:#edf0f5; color:var(--ink); }
.search-toggle[aria-expanded=true] { background:#eaf0ff; color:var(--accent); }
.search-panel { margin-top:16px; }
.search-panel input { width:100%; min-height:46px; border:1px solid var(--line); border-radius:10px; padding:10px 14px; background:white; color:var(--ink); }
.catalog-section { margin-top:26px; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.section-heading h2 { font-size:19px; font-weight:650; margin:0; }
.section-heading>span { font-size:12px; color:var(--muted); }
.game-grid,.app-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.product-card { display:flex; gap:18px; padding:22px; min-width:0; background:white; border:1px solid var(--line); border-radius:16px; }
.product-icon { width:56px; height:56px; flex:none; display:grid; place-items:center; border-radius:14px; color:white; }
.product-icon svg { width:34px; height:34px; }
.sky .product-icon { background:#487f93; }
.defense .product-icon { background:#3d4c48; }
.piano .product-icon { background:#65588c; }
.kfc .product-icon { background:#b84447; font-size:29px; font-weight:700; }
.words .product-icon { background:#3e7a5e; font-size:22px; font-weight:600; }
.quiz .product-icon { background:#4d6ca6; }
.product-content { min-width:0; flex:1; }
.card-heading h3 { margin:0; font-size:18px; font-weight:650; line-height:1.4; }
.summary { margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.5; }
.app-meta { color:var(--muted); font-size:12px; margin:7px 0 0; }
.card-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:15px; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 18px; border:0; border-radius:10px; font-size:14px; font-weight:600; line-height:1.5; }
.primary { background:var(--accent); color:white; }
.primary:hover { background:#1c50cf; }
.primary:active { background:#1744b7; transform:translateY(1px); }
.secondary { background:#edf0f5; color:#414854; }
.disabled { background:#f0f2f5; color:#68707c; }
.button:disabled { background:#f0f2f5; color:#68707c; transform:none; }
.text-button { min-height:44px; padding:9px 10px; border:0; border-radius:8px; background:transparent; color:var(--muted); font-size:13px; }
.more-button { margin-left:auto; }
.badge { display:inline-flex; color:var(--muted); background:#f0f2f5; padding:4px 9px; border-radius:6px; font-size:12px; }
.badge.available { color:var(--green); background:#edf6f0; }
.empty { padding:32px 0; text-align:center; color:var(--muted); }
footer { border-top:1px solid var(--line); display:flex; gap:20px; align-items:start; justify-content:space-between; padding-top:20px; padding-bottom:32px; color:var(--muted); font-size:12px; }
footer a { padding:8px 0; }
.installation-help summary,.local-options summary { padding:8px 0; min-height:36px; }
.installation-help p { max-width:650px; margin:8px 0; line-height:1.7; }
dialog { width:min(540px,calc(100vw - 28px)); max-height:calc(100dvh - 28px); overflow:auto; border:1px solid var(--line); border-radius:18px; padding:26px; color:var(--ink); box-shadow:0 20px 60px #18233a26; }
dialog::backdrop { background:#16202e66; }
.dialog-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; font-size:12px; color:var(--muted); }
.dialog-top .icon-button { margin-right:-10px; margin-top:-9px; }
dialog h2 { font-size:26px; line-height:1.3; margin:0 0 10px; letter-spacing:-.5px; }
dialog h3 { font-size:15px; margin:22px 0 10px; }
.detail-identity { display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.detail-identity .product-icon { width:52px; height:52px; }
.detail-identity h2 { margin-bottom:4px; font-size:24px; }
.muted { font-size:13px; color:var(--muted); }
.detail-meta { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin:20px 0; }
.detail-meta dt { font-size:12px; color:var(--muted); }
.detail-meta dd { margin:4px 0 0; font-size:14px; }
.notes { margin-top:0; padding-left:18px; color:var(--muted); font-size:13px; }
.notes li { margin-bottom:8px; }
form label { display:block; margin-top:18px; font-size:14px; }
form input,form textarea,#share-url { width:100%; display:block; border:1px solid #d7dce4; border-radius:10px; padding:12px; background:#fafbfc; color:var(--ink); font-size:15px; margin-top:8px; }
textarea { resize:vertical; }
.draft-note { font-size:12px; color:var(--muted); line-height:1.6; }
.channel-note { margin:16px 0; font-size:13px; color:var(--muted); line-height:1.6; }
.form-actions { display:flex; justify-content:space-between; gap:12px; margin-top:20px; }
.form-status { font-size:13px; color:#a34b27; margin-top:16px; overflow-wrap:anywhere; }
.form-status:empty { display:none; }
.form-status.success { color:var(--green); }
.local-options { margin-top:20px; color:var(--muted); font-size:12px; }
#share-url { margin:16px 0; font-size:13px; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); padding:12px 18px; border-radius:10px; background:var(--ink); color:white; font-size:13px; max-width:calc(100vw - 30px); z-index:20; }
.feedback-history { border-top:1px solid var(--line); margin-top:24px; }
.feedback-history ul { list-style:none; padding:0; margin:0; }
.feedback-history li { border-bottom:1px solid var(--line); padding:12px 0; }
.feedback-history li p { font-size:13px; margin:4px 0; }
.pending-preview { white-space:pre-wrap; overflow-wrap:anywhere; color:var(--muted); }
.pending-actions { display:flex; gap:12px; }
.pending-actions button:disabled { color:#7d8590; }
.no-script { max-width:800px; padding:24px; margin:24px auto; }
.no-script a { display:block; margin:12px 0; color:var(--accent); }
@media(max-width:650px) {
 .site-header,main,footer { padding-left:20px; padding-right:20px; }
 .site-header { height:68px; }
 main { padding-top:10px; padding-bottom:30px; }
 h1 { font-size:28px; margin-bottom:20px; }
 .catalog-tools { padding-bottom:14px; }
 .filters { gap:4px; }
 .filters button { min-width:64px; padding:8px 15px; }
 .catalog-section { margin-top:23px; }
 .section-heading { margin-bottom:12px; }
 .section-heading h2 { font-size:18px; }
 .game-grid,.app-grid { grid-template-columns:1fr; gap:12px; }
 .product-card { gap:14px; padding:18px 16px; border-radius:14px; }
 .product-icon { width:48px; height:48px; border-radius:12px; }
 .product-icon svg { width:30px; height:30px; }
 .card-heading h3 { font-size:17px; }
 .summary { font-size:13px; }
 .card-actions { gap:8px; margin-top:13px; }
 .button { padding:10px 15px; font-size:13px; }
 footer { padding-top:14px; padding-bottom:24px; }
 dialog { padding:22px; }
 dialog h2 { font-size:24px; }
 .detail-identity .product-icon { width:46px; height:46px; }
 .detail-identity h2 { font-size:22px; }
}
@media(prefers-reduced-motion:reduce) { .primary:active { transform:none; } }

.sleep .product-icon { background:#566a92; }
