
.cg-wrap,.cg-card,.cg-platbar,.cg-search,#cg-viewer{font-family:Arial,Helvetica,sans-serif;box-sizing:border-box}
.cg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:12px;margin:14px 0}
.cg-card{border:1px solid #C9DCD9;border-left:5px solid #0A8F8F;border-radius:12px;padding:14px;background:#fff;color:#0B2830;min-width:0;scroll-margin-top:90px}
.cg-card.cg-unknown{border-left-color:#C9DCD9}
.cg-card.cg-hit{box-shadow:0 0 0 3px #D7255F}
.cg-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 10px;align-items:baseline}
.cg-name{font-size:1.12em;line-height:1.25}
.cg-tag{font-size:.74em;font-weight:700;padding:3px 9px;border-radius:999px;background:#E3F1EF;color:#0A6E6E}
.cg-desc{color:#476369;font-size:.95em;margin-top:4px}
.cg-req{margin-top:8px;font-size:.95em}.cg-req span{display:block;font-size:.72em;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#476369}
.cg-note{margin-top:8px;font-size:.85em;color:#555}
.cg-none{margin-top:10px;border:1.5px dashed #C9DCD9;border-radius:8px;padding:8px 10px;font-size:.9em;color:#476369}
ul.cg-codes{margin:10px 0 0;padding-left:18px}
.cg-block{margin-top:12px;padding:10px;border-radius:10px;background:#F0F7F5;cursor:pointer}
.cg-block:hover{background:#E3F1EF}
.cg-plabel{font-size:.72em;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#476369;margin-bottom:6px;display:flex;justify-content:space-between;gap:8px}
.cg-keys{display:flex;flex-wrap:wrap;gap:5px}
.cg-key{display:inline-flex;align-items:center;justify-content:center;background:#0B2830;color:#fff;border-radius:8px;box-shadow:inset 0 -3px 0 rgba(0,0,0,.35);flex:0 0 auto;font-weight:800;line-height:1}
.cg-key svg{display:block}
.cg-words{font-size:.8em;color:#476369;margin-top:5px}
.cg-text{font-family:Consolas,'Courier New',monospace;font-weight:800;font-size:1.2em;letter-spacing:.06em;color:#0B2830;word-break:break-all}
.cg-alt{font-size:.82em;color:#476369;margin-top:4px}
.cg-btn{font:inherit;font-weight:700;font-size:.88em;padding:8px 12px;border-radius:8px;border:2px solid #D7255F;background:#D7255F;color:#fff;cursor:pointer}
.cg-btn.cg-ghost{background:transparent;color:#D7255F}
.cg-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.cg-others{margin-top:8px;font-size:.9em}.cg-others summary{cursor:pointer;color:#0A6E6E;font-weight:700}
.cg-miss{margin-top:10px;font-size:.88em;color:#8A4B00;background:#FFF4E0;border-radius:8px;padding:8px 10px}
.cg-platbar{margin:12px 0 4px;padding:12px;border-radius:12px;background:#0B2830;color:#fff}
.cg-platbar .cg-pt{font-size:.85em;font-weight:700;margin-bottom:8px}
.cg-pills{display:flex;flex-wrap:wrap;gap:6px}
.cg-pill{font:inherit;font-size:.88em;font-weight:700;padding:7px 12px;border-radius:999px;border:1.5px solid rgba(255,255,255,.35);background:transparent;color:#fff;cursor:pointer}
.cg-pill[aria-pressed="true"]{background:#FF4F8B;border-color:#FF4F8B;color:#fff}
.cg-search{position:relative;max-width:720px;margin:0 auto;padding:12px 0}
.cg-search input{width:100%;box-sizing:border-box;font:inherit;font-size:16px;padding:13px 14px 13px 42px;border-radius:12px;border:2px solid #C9DCD9;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='6.5' fill='none' stroke='%23476369' stroke-width='2.4'/%3E%3Cpath d='M15 15l5 5' stroke='%23476369' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 13px center;color:#0B2830}
.cg-search input:focus{outline:none;border-color:#D7255F}
.cg-sugs{position:absolute;left:0;right:0;top:calc(100% - 6px);z-index:9998;background:#fff;border:1px solid #C9DCD9;border-radius:12px;box-shadow:0 12px 30px rgba(11,40,48,.18);max-height:70vh;overflow:auto;padding:6px;margin:0;list-style:none}
.cg-sug{display:block;padding:10px;border-radius:9px;cursor:pointer;color:#0B2830;text-decoration:none}
.cg-sug[aria-selected="true"],.cg-sug:hover{background:#F0F7F5}
.cg-sug-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cg-sug-game{font-size:.72em;font-weight:800;padding:2px 8px;border-radius:999px;background:#0B2830;color:#fff;white-space:nowrap}
.cg-sug-name{font-weight:700}
.cg-sug-prev{margin-top:6px}
.cg-sug-miss{font-size:.8em;color:#8A4B00;margin-top:4px}
.cg-sug-empty{padding:12px;color:#476369;font-size:.92em}
#cg-viewer{position:fixed;inset:0;z-index:99999;background:rgba(5,20,25,.88);display:none;align-items:center;justify-content:center;padding:16px}
#cg-viewer.cg-open{display:flex}
.cg-dialog{background:#fff;color:#0B2830;border-radius:16px;width:100%;max-width:620px;max-height:100%;overflow:auto;padding:18px 16px;box-sizing:border-box}
.cg-vtop{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.cg-vgame{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#D7255F;font-weight:800}
.cg-vtitle{font-size:22px;font-weight:800;line-height:1.2;margin-top:4px}
.cg-close{flex:0 0 auto;width:44px;height:44px;border-radius:50%;border:0;background:#F0F7F5;color:#0B2830;font-size:26px;line-height:1;cursor:pointer}
.cg-vtabs{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 4px}
.cg-vtab{font:inherit;font-size:.85em;font-weight:700;padding:6px 11px;border-radius:999px;border:1.5px solid #C9DCD9;background:#fff;color:#0B2830;cursor:pointer}
.cg-vtab[aria-pressed="true"]{background:#0B2830;border-color:#0B2830;color:#fff}
.cg-vhow{font-size:15px;margin:10px 0 6px;color:#0B2830}
.cg-vkeys{display:grid;justify-content:center;margin:16px 0 8px}
.cg-vnum{font-size:13px;font-weight:800;color:#D7255F;text-align:center;margin-top:4px}
.cg-vtext{text-align:center;font-family:Consolas,'Courier New',monospace;font-weight:900;letter-spacing:.05em;word-break:break-all;margin:18px 0 6px;line-height:1.15}
.cg-vwords{text-align:center;font-size:15px;color:#476369;margin-top:6px}
.cg-vfoot{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:16px}
.cg-vfoot a{color:#0A6E6E;font-weight:700;align-self:center}
@media (prefers-reduced-motion:no-preference){.cg-dialog{animation:cgin .16s ease-out}@keyframes cgin{from{transform:translateY(10px);opacity:0}}}
