.cg-app{--cg-screen:#151a23;--cg-screen-ink:#e7edf8;--cg-screen-muted:#a7b4c9;--cg-good:#28734e;--cg-danger:#b53840;padding-block:64px 76px;min-height:76vh}
.cg-app *{box-sizing:border-box}.cg-app [hidden]{display:none!important}
.cg-heading{margin-bottom:36px}.cg-back{display:inline-flex;gap:7px;align-items:center;color:var(--muted);font-size:12px;min-height:44px;margin-bottom:14px}.cg-back:hover{color:var(--ink)}
.cg-heading .eyebrow{margin:0 0 15px}.cg-heading h1{font-size:clamp(36px,4.2vw,56px);font-weight:570;letter-spacing:-.055em;line-height:1.28;margin:0 0 14px}.cg-heading>p:last-child{font-size:15px;color:var(--muted);margin:0;max-width:580px}
.cg-app svg{height:19px;width:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.cg-layout{display:grid;grid-template-columns:minmax(0,1fr) 302px;gap:24px;align-items:start}.cg-play,.cg-panel{border:1px solid var(--line);border-radius:22px;background:var(--surface);min-width:0}.cg-play{padding:22px}
.cg-main-column{display:flex;flex-direction:column;gap:22px;min-width:0}.cg-catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.cg-catalog-heading .cg-panel-label{font-size:9px;margin:0 0 10px;letter-spacing:.13em}.cg-catalog-heading h2{font-size:21px;line-height:1.5;letter-spacing:-.03em;font-weight:500;margin:0}.cg-catalog-tools{display:flex;align-items:center;gap:14px;flex-shrink:0}.cg-catalog-tools .cg-btn{background:transparent}.cg-catalog-tools .cg-btn svg{width:16px;height:16px}.cg-catalog-intro{font-size:12px;line-height:1.9;color:var(--muted);margin:10px 0 20px}.cg-catalog-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0;margin:0;list-style:none;max-height:306px;overflow:auto;overscroll-behavior:contain}.cg-catalog-list li{min-width:0}.cg-catalog-game{display:flex;align-items:center;gap:12px;width:100%;min-height:83px;padding:15px 13px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background .18s,border-color .18s,opacity .18s;touch-action:manipulation}.cg-catalog-game:hover{background:var(--wash);border-color:color-mix(in srgb,var(--blue) 30%,var(--line))}.cg-catalog-game:active{opacity:.75}.cg-catalog-game:disabled{opacity:.5;cursor:default}.cg-catalog-game[aria-current=true]{border-color:var(--blue);background:var(--wash)}.cg-catalog-art{height:42px;width:35px;border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:8px;display:grid;place-items:center;flex-shrink:0}.cg-catalog-art svg{height:21px;width:21px;stroke-width:1.2}.cg-catalog-copy{display:block;flex:1;min-width:0}.cg-catalog-copy strong{display:block;font-size:12px;line-height:1.6;font-weight:500;overflow-wrap:anywhere}.cg-catalog-copy small{display:block;font-size:10px;color:var(--muted);margin-top:4px;line-height:1.5}.cg-catalog-go{color:var(--muted);display:grid;place-items:center}.cg-catalog-go svg{height:13px;width:13px}.cg-catalog-message{font-size:12px;line-height:1.9;color:var(--muted);padding:22px 18px;background:var(--paper);border:1px dashed var(--line);border-radius:12px;margin:0}.cg-catalog-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:8px}.cg-catalog-footer>span{font-size:10px;color:var(--muted)}.cg-catalog-footer .cg-text-btn{display:inline-flex;align-items:center;gap:7px}.cg-catalog-footer svg{width:14px;height:14px}.cg-search{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;background:var(--paper);padding:0 12px;margin-bottom:15px;color:var(--muted)}.cg-search svg{width:16px;height:16px}.cg-search input{min-width:0;width:100%;border:0;color:var(--ink);background:transparent;font:inherit;font-size:14px;min-height:44px;padding:10px 0;outline-offset:5px}.cg-search input::placeholder{color:var(--muted)}.cg-code-choice{font-size:12px;line-height:1.8;color:var(--blue);margin:0 0 10px;overflow-wrap:anywhere}.cg-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.cg-play-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;min-height:44px}.cg-game-identity{display:flex;align-items:center;gap:12px;min-width:0}.cg-cartridge{height:40px;width:40px;border:1px solid var(--line);border-radius:11px;display:grid;place-items:center;background:var(--paper);flex-shrink:0;color:var(--muted)}
.cg-game-identity h2{font-size:15px;line-height:1.45;letter-spacing:-.02em;font-weight:550;overflow-wrap:anywhere;margin:0 0 3px}.cg-game-identity p{font-size:11px;line-height:1.4;color:var(--muted);margin:0}
.cg-sync{font-size:11px;line-height:1.5;display:flex;align-items:center;gap:7px;max-width:175px;color:var(--muted);text-align:right;flex-shrink:0}.cg-sync-dot{height:6px;width:6px;border-radius:50%;background:currentColor;flex-shrink:0}.cg-sync[data-tone=success]{color:var(--cg-good)}.cg-sync[data-tone=error]{color:var(--cg-danger)}.cg-sync[data-tone=busy] .cg-sync-dot{animation:cg-breathe 1.4s ease-in-out infinite}
.cg-screenbox{position:relative;background:var(--cg-screen);border-radius:13px;overflow:hidden;isolation:isolate}.cg-screen{position:relative;aspect-ratio:3/2;min-height:240px;color:var(--cg-screen-ink);background:radial-gradient(ellipse at 50% 0%,#26344944,transparent 74%),var(--cg-screen);display:grid;place-items:center}
.cg-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px 24px;text-align:center;width:100%;position:relative;z-index:1}.cg-empty-art{display:grid;place-items:center;width:84px;height:84px;margin-bottom:24px;position:relative;color:#93a6c6}.cg-empty-art::before{content:"";position:absolute;inset:0;border:1px solid #44536a;border-radius:22px;transform:rotate(-9deg);background:#ffffff03}.cg-empty-art svg{height:43px;width:43px;stroke-width:1.2}
.cg-empty h3{font-size:21px;line-height:1.5;font-weight:450;letter-spacing:-.025em;margin:0 0 10px}.cg-empty p{font-size:12px;line-height:1.9;color:var(--cg-screen-muted);margin:0 0 22px;max-width:310px}.cg-screen .cg-btn{background:#e7edf8;border-color:#e7edf8;color:#17202d;min-height:44px}.cg-screen .cg-btn:hover{background:#fff;border-color:#fff}
.cg-screen-caption{position:absolute;bottom:16px;left:20px;right:20px;display:flex;justify-content:space-between;align-items:center;gap:15px;color:#8d9db7;font-size:8px;letter-spacing:.15em;pointer-events:none}
.cg-runtime{position:absolute;inset:0;width:100%;height:100%;z-index:2;background:var(--cg-screen)}.cg-runtime iframe{border:0;display:block;width:100%;height:100%;background:var(--cg-screen)}
.cg-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;background:var(--cg-screen);z-index:3;color:var(--cg-screen-ink);font-size:13px;padding:30px;text-align:center}.cg-loader{width:27px;height:27px;border-radius:50%;border:1px solid #8c9ab53b;border-top-color:#c2d3ef;animation:cg-spin 1s linear infinite}.cg-loading small{display:block;color:var(--cg-screen-muted);font-size:11px;max-width:310px;line-height:1.7}
.cg-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding-top:16px}.cg-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:11px;padding:11px 14px;min-height:44px;font:inherit;font-size:12px;line-height:1.6;cursor:pointer;transition:background .18s,border-color .18s,opacity .18s;touch-action:manipulation;text-decoration:none;white-space:normal}.cg-btn:hover{background:var(--wash)}.cg-btn:active{opacity:.72}.cg-btn:disabled{opacity:.42;cursor:default}.cg-btn-primary{background:var(--ink);color:var(--paper);border-color:var(--ink)}.cg-btn-primary:hover{background:var(--ink);opacity:.84}.cg-btn-small{font-size:11px;padding:10px 11px}.cg-btn-icon{padding:10px;width:44px}.cg-actions .cg-btn-icon:nth-child(3){margin-left:auto}.cg-actions .cg-btn svg{width:16px;height:16px}
.cg-keyboard{display:flex;gap:12px 18px;flex-wrap:wrap;align-items:center;font-size:10px;color:var(--muted);line-height:1.7;margin:18px 0 1px}.cg-keyboard span{display:inline-flex;align-items:center;gap:5px}.cg-keyboard kbd{font:inherit;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;display:inline-grid;place-items:center;min-width:20px;height:20px;border:1px solid var(--line);border-radius:4px;background:var(--paper);padding:0 4px;color:var(--muted)}
.cg-actions .cg-btn:nth-child(3){margin-left:0}.cg-actions [data-open]{margin-left:auto}
.cg-side{display:flex;flex-direction:column;gap:18px;min-width:0}.cg-panel{padding:23px}.cg-panel-label{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;letter-spacing:.1em;color:var(--muted);margin:0 0 18px;font-weight:550}.cg-panel-label svg{width:16px;height:16px}.cg-vault h2{font-size:20px;letter-spacing:-.03em;line-height:1.5;font-weight:500;margin:0 0 13px}
.cg-code-form label{font-size:12px;display:block;margin-bottom:7px;color:var(--ink)}.cg-code-wrap{display:flex;gap:8px}.cg-code-form input{display:block;width:100%;min-width:0;min-height:48px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);padding:12px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:16px;letter-spacing:.02em;outline-offset:3px;line-height:1.5}.cg-code-form input::placeholder{color:var(--muted);font-size:12px;letter-spacing:0}.cg-code-form input[aria-invalid=true]{border-color:var(--cg-danger)}.cg-generate{min-width:44px;padding:10px}.cg-code-form>.cg-btn{width:100%;margin-top:12px}
.cg-helptext{color:var(--muted);font-size:11px;line-height:1.85;margin:13px 0 0;overflow-wrap:anywhere}.cg-code-error{font-size:12px;line-height:1.7;margin:9px 0 0;color:var(--cg-danger)}.cg-vault-connected{padding-top:1px}.cg-connected-title{display:flex;align-items:center;gap:8px;font-size:14px;margin:0 0 12px;line-height:1.6}.cg-connected-title svg{width:16px;height:16px;color:var(--cg-good)}
.cg-code-reveal{display:flex;align-items:center;gap:10px;justify-content:space-between;border:1px solid var(--line);background:var(--paper);padding:4px 5px 4px 13px;border-radius:10px;min-height:52px}.cg-code-reveal code{font:inherit;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;letter-spacing:.1em;overflow-wrap:anywhere;min-width:0}.cg-code-reveal button{background:transparent;border:0}.cg-code-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px}.cg-text-btn{border:0;background:transparent;color:var(--muted);font:inherit;font-size:11px;line-height:1.6;min-height:44px;padding:9px 0;cursor:pointer;text-align:left}.cg-text-btn:hover{color:var(--ink)}
.cg-library-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.cg-library-heading h2{font-size:14px;font-weight:550;margin:0}.cg-library-heading span{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.cg-library-list{display:flex;flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;max-height:350px;overflow:auto;overscroll-behavior:contain}
.cg-game-row{width:100%;background:transparent;border:1px solid transparent;display:flex;align-items:center;gap:10px;padding:11px 8px;min-height:60px;border-radius:10px;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background .18s,border-color .18s}.cg-game-row:hover{background:var(--paper)}.cg-game-row[aria-current=true]{background:var(--wash);border-color:var(--line)}.cg-game-mini{height:32px;width:32px;flex-shrink:0;border:1px solid var(--line);border-radius:9px;display:grid;place-items:center;background:var(--surface);color:var(--muted)}.cg-game-mini svg{width:15px;height:15px}.cg-game-copy{flex:1;min-width:0}.cg-game-copy strong{display:block;font-size:12px;font-weight:500;line-height:1.6;overflow-wrap:anywhere}.cg-game-copy time{display:block;font-size:10px;line-height:1.6;color:var(--muted)}.cg-game-row>svg{width:13px;height:13px;color:var(--muted)}.cg-library-empty{font-size:12px;line-height:1.9;color:var(--muted);padding:6px 0 2px;margin:0}
.cg-flash{padding:14px 16px;border:1px solid var(--line);border-radius:12px;font-size:12px;line-height:1.85;background:var(--paper);margin-top:16px;overflow-wrap:anywhere;color:var(--muted)}.cg-flash[data-tone=error]{border-color:color-mix(in srgb,var(--cg-danger) 35%,var(--line));color:var(--cg-danger)}.cg-flash-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.cg-note{margin-top:30px;border-top:1px solid var(--line);padding-top:22px;font-size:12px;color:var(--muted);line-height:1.9}.cg-note summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:10px;color:var(--ink);list-style:none}.cg-note summary::-webkit-details-marker{display:none}.cg-note summary::after{content:"+";margin-left:auto;font-size:18px;font-weight:300}.cg-note[open] summary::after{content:"−"}.cg-note-body{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:16px 0 5px}.cg-note-body h3{font-size:12px;font-weight:550;line-height:1.7;color:var(--ink);margin:0 0 7px}.cg-note-body p{margin:0;font-size:12px;line-height:1.9}
.cg-app :focus-visible{outline:3px solid var(--blue);outline-offset:4px}.cg-app input:focus-visible{outline-width:2px}.cg-drop-active .cg-screenbox{outline:3px solid var(--blue);outline-offset:4px}.cg-file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0;overflow:hidden;clip-path:inset(50%);pointer-events:none}
.cg-play:fullscreen{display:flex;flex-direction:column;justify-content:center;border:0;border-radius:0;padding:14px;background:var(--cg-screen);color:var(--cg-screen-ink);max-width:none;width:100%;height:100%;overflow:auto}.cg-play:fullscreen .cg-screenbox{width:min(100%,calc((100dvh - 130px)*1.5));margin-inline:auto}.cg-play:fullscreen .cg-play-heading{display:none}.cg-play:fullscreen .cg-actions{justify-content:center}.cg-play:fullscreen .cg-actions .cg-btn-icon{margin-left:0}.cg-play:fullscreen .cg-keyboard,.cg-play:fullscreen .cg-flash{display:none}.cg-play:fullscreen .cg-btn{color:var(--cg-screen-ink);background:#222c3c;border-color:#40506a}.cg-play:fullscreen .cg-screen{min-height:0}.cg-screenbox.cg-ready{animation:cg-arrive .28s ease-out}.cg-library-list li{animation:cg-arrive .2s ease-out both}

.cg-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:32px;border:1px solid var(--line);border-radius:20px;background:var(--surface);margin-top:28px}.cg-entry-copy .eyebrow{font-size:9px;margin:0 0 13px}.cg-entry-copy h2{font-size:28px;line-height:1.4;letter-spacing:-.04em;font-weight:530;margin:0 0 9px}.cg-entry-copy>p:last-child{font-size:13px;color:var(--muted);margin:0}.cg-entry-link{display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:46px;padding:12px 20px;border:1px solid var(--line);border-radius:30px;font-size:12px;flex-shrink:0;transition:background .18s}.cg-entry-link:hover{background:var(--wash)}.cg-entry-link svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5}
:root[data-theme=dark] .cg-app{--cg-good:#83cba6;--cg-danger:#f29aa0;--cg-screen:#10151e}.cg-app.cg-connected .cg-vault h2{display:none}
@keyframes cg-spin{to{transform:rotate(360deg)}}@keyframes cg-breathe{50%{opacity:.35}}@keyframes cg-arrive{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1050px){.cg-layout{grid-template-columns:minmax(0,1fr) 276px;gap:18px}.cg-play{padding:18px}.cg-panel{padding:20px}.cg-sync{max-width:125px}.cg-actions{gap:7px}.cg-actions .cg-btn{font-size:11px;padding-inline:11px}.cg-actions .cg-btn-icon{padding-inline:8px}.cg-keyboard{gap:10px}.cg-empty h3{font-size:18px}.cg-empty-art{margin-bottom:20px}}
@media(max-width:820px){.cg-layout{display:flex;flex-direction:column;gap:20px}.cg-play,.cg-side{width:100%}.cg-side{display:grid;grid-template-columns:1fr 1fr;align-items:start}.cg-app:not(.cg-connected) .cg-side{order:-1}.cg-app:not(.cg-connected) .cg-library{display:none}.cg-app:not(.cg-connected) .cg-side{display:block}.cg-app:not(.cg-connected) .cg-vault{max-width:100%}.cg-code-form{display:grid;grid-template-columns:1fr auto;gap:0 12px;align-items:start}.cg-code-form label{grid-column:1/-1}.cg-code-form>.cg-btn{margin:0;height:48px;min-width:110px}.cg-code-error{grid-column:1/-1}.cg-screen{min-height:0}.cg-empty{padding-block:40px}.cg-play-heading{margin-bottom:18px}.cg-sync{max-width:none}.cg-actions .cg-btn{font-size:12px;padding-inline:14px}.cg-actions .cg-btn-icon{padding-inline:10px}.cg-keyboard{gap:12px 18px}.cg-note-body{gap:20px}}
@media(max-width:550px){.cg-app{padding-block:32px 48px}.cg-heading{margin-bottom:26px}.cg-back{margin-bottom:9px}.cg-heading h1{font-size:38px;letter-spacing:-.05em}.cg-heading>p:last-child{font-size:14px;line-height:1.9}.cg-heading .eyebrow{font-size:9px;margin-bottom:12px}.cg-play{padding:14px;border-radius:17px}.cg-game-identity{gap:9px}.cg-cartridge{width:34px;height:34px;border-radius:9px}.cg-game-identity h2{font-size:13px}.cg-game-identity p{font-size:10px}.cg-play-heading{gap:8px;margin-bottom:14px;align-items:flex-start}.cg-sync{font-size:10px;max-width:112px;gap:5px;min-height:34px}.cg-empty{padding:29px 14px 37px}.cg-empty-art{width:54px;height:54px;margin-bottom:17px}.cg-empty-art::before{border-radius:15px}.cg-empty-art svg{height:30px;width:30px}.cg-empty h3{font-size:17px;margin-bottom:6px}.cg-empty p{font-size:11px;line-height:1.8;margin-bottom:17px;max-width:240px}.cg-screen .cg-btn{font-size:11px;padding:9px 12px}.cg-screen-caption{font-size:7px;left:13px;right:13px;bottom:11px;letter-spacing:.12em}.cg-screen{aspect-ratio:3/2}.cg-actions{padding-top:13px;gap:7px}.cg-actions .cg-btn{font-size:11px;gap:6px;padding-inline:10px;flex:1}.cg-actions .cg-btn-icon{flex:0 0 44px}.cg-actions .cg-btn svg{width:14px;height:14px}.cg-actions .cg-btn-icon:first-of-type{margin-left:0}.cg-keyboard{display:none}.cg-side{grid-template-columns:1fr;gap:16px}.cg-panel{padding:21px;border-radius:17px}.cg-vault h2{font-size:19px}.cg-panel-label{margin-bottom:13px}.cg-code-form{display:block}.cg-code-form>.cg-btn{width:100%;margin-top:12px}.cg-code-form input{font-size:16px}.cg-helptext{font-size:12px;line-height:1.8}.cg-library-list{max-height:300px}.cg-game-copy strong{font-size:13px}.cg-game-copy time{font-size:11px}.cg-note{margin-top:23px;padding-top:15px}.cg-note-body{grid-template-columns:1fr;gap:19px;padding-top:13px}.cg-note-body p{font-size:12px}.cg-flash{font-size:12px;padding:12px}.cg-play:fullscreen{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.cg-play:fullscreen .cg-actions{max-width:550px;align-self:center;width:100%}}
@media(max-width:370px){.cg-heading h1{font-size:34px}.cg-empty p{max-width:220px}.cg-actions{display:grid;grid-template-columns:1fr 1fr 44px}.cg-actions .cg-btn-icon:first-of-type{grid-column:3;grid-row:1}.cg-actions .cg-btn-icon:last-of-type{grid-column:3;grid-row:2}.cg-empty-art{margin-bottom:12px}.cg-screen{min-height:225px}}
@media(prefers-reduced-motion:reduce){.cg-app *{animation:none!important;transition:none!important}}
@media(max-width:550px){.cg-entry{align-items:flex-start;flex-direction:column;padding:24px;gap:23px}.cg-entry-copy h2{font-size:25px}.cg-entry-link{width:100%;justify-content:space-between}.cg-actions .cg-btn-icon:nth-child(3){margin-left:0}}
@media(max-width:820px) and (orientation:portrait){.cg-touch.cg-running .cg-screenbox{container-type:inline-size}.cg-touch.cg-running .cg-screen{aspect-ratio:3/4;min-height:0;height:calc(66.6667cqw + 204px)}.cg-touch .cg-play:fullscreen .cg-screenbox{width:min(100%,calc((100dvh - 294px)*1.5))}.cg-touch .cg-play:fullscreen .cg-screen{aspect-ratio:3/4}}
@media(max-width:1050px){.cg-catalog-game{gap:9px;padding:12px 10px}.cg-catalog-art{width:30px;height:37px}.cg-catalog-tools{gap:10px}.cg-catalog-heading h2{font-size:19px}.cg-catalog-go{display:none}}
@media(max-width:820px){.cg-main-column{width:100%;gap:20px}.cg-catalog-list{grid-template-columns:repeat(3,minmax(0,1fr))}.cg-code-choice{grid-column:1/-1}.cg-catalog-go{display:grid}}
@media(max-width:550px){.cg-catalog-heading{gap:10px}.cg-catalog-heading h2{font-size:20px}.cg-catalog-heading .cg-panel-label{font-size:8px;letter-spacing:.09em;margin-bottom:7px}.cg-catalog-tools{gap:7px}.cg-catalog-tools .cg-text-btn{font-size:10px;max-width:60px;line-height:1.5}.cg-catalog-list{grid-template-columns:1fr;gap:8px;max-height:264px}.cg-catalog-game{min-height:76px;padding:13px 14px;gap:13px}.cg-catalog-copy strong{font-size:13px}.cg-catalog-copy small{font-size:11px}.cg-catalog-art{width:34px;height:41px}.cg-catalog-intro{font-size:12px;margin:12px 0 17px}.cg-catalog-footer{gap:8px}.cg-catalog-footer>span{font-size:10px}.cg-catalog-footer .cg-text-btn{font-size:11px}.cg-catalog-message{padding:18px 15px}.cg-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.cg-actions .cg-btn{min-width:0;padding-inline:6px;font-size:10px}.cg-actions .cg-btn-icon{width:44px}.cg-actions [data-open]{grid-column:2;justify-self:end;margin-left:0}.cg-actions [data-fullscreen]{grid-column:3;justify-self:end}.cg-search input{font-size:16px}.cg-code-choice{font-size:12px}}
@media(max-width:370px){.cg-actions .cg-btn-icon:first-of-type{grid-column:2;grid-row:2}.cg-actions .cg-btn-icon:last-of-type{grid-column:3;grid-row:2}}
.cg-saves{width:min(700px,calc(100% - 32px));max-height:88dvh;margin:auto;padding:28px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:20px;font:inherit;box-shadow:0 24px 90px #0003;overscroll-behavior:contain;overflow:auto}.cg-saves::backdrop{background:#11172280;backdrop-filter:blur(4px)}.cg-saves-top{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.cg-saves-top .cg-panel-label{font-size:9px;letter-spacing:.13em;margin:0 0 10px}.cg-saves-top h2{font-size:25px;line-height:1.5;letter-spacing:-.035em;font-weight:500;margin:0}.cg-saves-top p[data-saves-game]{font-size:12px;color:var(--muted);margin:6px 0 0;overflow-wrap:anywhere}.cg-saves-top>.cg-btn{flex-shrink:0}.cg-saves-error{border:1px solid color-mix(in srgb,var(--cg-danger) 30%,var(--line));background:var(--paper);color:var(--cg-danger);padding:12px 14px;font-size:12px;line-height:1.9;border-radius:10px;margin:18px 0 10px;overflow-wrap:anywhere}.cg-saves-loading{font-size:13px;color:var(--muted);line-height:1.9;padding:26px 0 12px}.cg-saves-retry{margin-top:4px}.cg-checkpoint-form{border:1px solid var(--line);background:var(--paper);border-radius:12px;padding:16px;margin-top:22px}.cg-checkpoint-form>label{display:block;font-size:12px;font-weight:550;margin-bottom:10px}.cg-checkpoint-form>div{display:flex;gap:9px}.cg-checkpoint-form input{flex:1;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-size:13px;padding:10px 11px}.cg-checkpoint-form input::placeholder{color:var(--muted)}.cg-checkpoint-form .cg-btn{font-size:11px;flex-shrink:0}.cg-checkpoint-form .cg-helptext{margin-top:8px}.cg-history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.cg-history-heading h3{font-size:13px;font-weight:550;margin:0}.cg-history-heading .cg-text-btn{display:inline-flex;align-items:center;gap:6px}.cg-history-heading svg{height:13px;width:13px}.cg-history{list-style:none;margin:4px 0 0;padding:0;max-height:min(36dvh,360px);overflow:auto;overscroll-behavior:contain;border-block:1px solid var(--line)}.cg-history-item{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line)}.cg-history-item:last-child{border:0}.cg-history-copy{min-width:0;flex:1}.cg-history-copy>strong{display:block;font-size:12px;line-height:1.75;font-weight:500;overflow-wrap:anywhere}.cg-history-copy>small{display:block;color:var(--muted);font-size:10px;line-height:1.7;margin-top:3px}.cg-history-badges{display:flex;flex-wrap:wrap;gap:5px}.cg-history-badges>span{font-size:9px;padding:2px 6px;border:1px solid var(--line);border-radius:5px;margin-top:7px;color:var(--muted)}.cg-history-actions{display:flex;align-items:center;flex-shrink:0;gap:6px}.cg-history-actions .cg-btn{font-size:11px;padding-inline:10px}.cg-history-actions .cg-btn-icon{width:44px}.cg-history-actions svg{width:15px;height:15px}.cg-restore-confirm{padding:15px 16px;border:1px solid var(--line);background:var(--wash);border-radius:12px;margin-top:15px}.cg-restore-confirm p{font-size:12px;line-height:1.9;margin:0 0 12px;overflow-wrap:anywhere}.cg-restore-confirm>div{display:flex;gap:8px}.cg-history-policy{font-size:10px;margin-top:14px}.cg-saves-footer{display:flex;gap:14px;align-items:center;border-top:1px solid var(--line);padding-top:19px;margin-top:20px}.cg-saves-footer>.cg-btn{flex-shrink:0;font-size:11px}.cg-saves-footer>span{font-size:10px;color:var(--muted);line-height:1.8}.cg-saves input:disabled{opacity:.6}
.cg-play:fullscreen{--cg-fs-base:154px}.cg-play:fullscreen .cg-play-heading{display:flex;align-self:center;justify-content:flex-end;width:min(100%,720px);min-height:20px;margin:0 0 8px;flex-shrink:0}.cg-play:fullscreen .cg-game-identity{display:none}.cg-play:fullscreen .cg-sync{color:var(--cg-screen-muted);max-width:none;text-align:right}.cg-play:fullscreen .cg-sync[data-tone=success]{color:#8ed5ae}.cg-play:fullscreen .cg-sync[data-tone=error]{color:#f29aa0}.cg-play:fullscreen .cg-screenbox{width:min(100%,max(120px,calc((100dvh - var(--cg-fs-base) - var(--cg-fs-notice,0px))*1.5)));flex-shrink:0}.cg-play:fullscreen .cg-actions{width:min(100%,720px);align-self:center;flex-shrink:0}.cg-play:fullscreen .cg-flash{display:block;order:-1;width:min(100%,720px);align-self:center;max-height:24dvh;overflow:auto;flex-shrink:0;margin:0 0 12px;padding:10px 13px;font-size:11px;background:#202b3b;color:#e7edf8;border-color:#40506a}.cg-play:fullscreen .cg-flash[data-tone=error]{color:#ffd4d6;border-color:#a56970}.cg-play:fullscreen .cg-flash-actions{margin-top:6px;gap:7px}.cg-play:fullscreen .cg-flash .cg-btn{font-size:11px;padding:8px 10px;min-height:44px}.cg-play:fullscreen .cg-saves .cg-btn{color:var(--ink);background:var(--surface);border-color:var(--line)}.cg-play:fullscreen .cg-saves .cg-btn-primary{color:var(--paper);background:var(--ink);border-color:var(--ink)}
@media(max-width:820px) and (orientation:portrait){.cg-touch .cg-play:fullscreen{--cg-fs-base:350px}.cg-touch .cg-play:fullscreen .cg-screenbox{width:min(100%,max(120px,calc((100dvh - var(--cg-fs-base) - var(--cg-fs-notice,0px))*1.5)))}}
@media(max-width:550px){.cg-saves{padding:21px 18px;border-radius:16px;width:calc(100% - 20px);max-height:92dvh}.cg-saves-top h2{font-size:22px}.cg-saves-top .cg-panel-label{font-size:8px}.cg-checkpoint-form{padding:13px;margin-top:18px}.cg-checkpoint-form>div{flex-direction:column}.cg-checkpoint-form input{font-size:16px}.cg-checkpoint-form .cg-btn{width:100%}.cg-history-item{gap:10px;flex-wrap:wrap;padding-block:14px}.cg-history-copy{flex-basis:100%}.cg-history-actions{width:100%;justify-content:flex-end}.cg-history{max-height:34dvh}.cg-history-copy>strong{font-size:13px}.cg-history-copy>small{font-size:11px}.cg-saves-footer{align-items:flex-start;flex-direction:column;gap:10px}.cg-history-policy{font-size:11px}.cg-play:fullscreen .cg-play-heading{min-height:20px}.cg-play:fullscreen .cg-flash{font-size:11px;max-height:24dvh}.cg-play:fullscreen{--cg-fs-base:166px}}
.cg-catalog-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 17px}.cg-filter{border:1px solid var(--line);border-radius:22px;padding:9px 16px;min-height:44px;background:var(--surface);color:var(--muted);font:inherit;font-size:11px;cursor:pointer;transition:background .18s,color .18s,border-color .18s}.cg-filter[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}.cg-filter-favorites{display:inline-flex;align-items:center;gap:6px;margin-left:auto}.cg-filter-favorites svg{height:14px;width:14px}.cg-platform-note{font-size:12px;line-height:1.9;color:var(--muted);border-left:2px solid var(--line);padding-left:12px;margin:0 0 18px}.cg-catalog-item{position:relative}.cg-catalog-item .cg-catalog-game{padding-right:48px;min-height:100px}.cg-catalog-item .cg-catalog-art{position:relative;width:48px;height:64px;overflow:hidden;border-radius:7px}.cg-catalog-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}.cg-catalog-item .cg-catalog-go{display:none}.cg-favorite{position:absolute;right:3px;top:3px;height:44px;width:44px;display:grid;place-items:center;border:0;background:transparent;color:var(--muted);border-radius:10px;cursor:pointer;transition:background .18s,color .18s}.cg-favorite:hover{background:var(--wash)}.cg-favorite svg{height:16px;width:16px;stroke-width:1.4}.cg-favorite[aria-pressed=true]{color:var(--blue)}.cg-favorite[aria-pressed=true] svg{fill:currentColor}.cg-favorite:disabled{opacity:.45;cursor:default}.cg-recent{padding:0 0 18px;margin-bottom:19px;border-bottom:1px solid var(--line)}.cg-recent>p{font-size:10px;letter-spacing:.07em;color:var(--muted);margin:0 0 8px}.cg-recent>div{display:flex;gap:7px;flex-wrap:wrap}.cg-recent-game{display:flex;align-items:center;gap:7px;max-width:100%;border:1px solid var(--line);background:var(--paper);color:var(--ink);min-height:44px;border-radius:9px;padding:8px 12px;font:inherit;font-size:11px;cursor:pointer}.cg-recent-game>span{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cg-recent-game svg{height:12px;width:12px}.cg-recent-game:hover{background:var(--wash)}.cg-recent-game:disabled{opacity:.5;cursor:default}.cg-devices{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding-top:11px;border-top:1px solid var(--line);color:var(--muted)}.cg-audio{display:flex;align-items:center;gap:6px;min-width:0}.cg-audio .cg-btn{border:0;background:transparent;color:var(--muted);width:44px}.cg-audio input{display:block;width:110px;max-width:100%;min-height:44px;margin:0;accent-color:var(--blue)}.cg-gamepad{position:relative;font-size:11px;min-width:0}.cg-gamepad>summary{display:flex;align-items:center;justify-content:flex-end;gap:7px;list-style:none;min-height:44px;padding:5px 0;cursor:pointer}.cg-gamepad>summary::-webkit-details-marker{display:none}.cg-gamepad>summary svg{width:18px;height:18px}.cg-gamepad>summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cg-gamepad>div{position:absolute;z-index:8;bottom:calc(100% + 8px);right:0;width:min(270px,78vw);background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 40px #0002;padding:17px}.cg-gamepad p{font-size:12px;line-height:1.8;margin:0 0 12px;color:var(--muted);overflow-wrap:anywhere}.cg-gamepad label{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin-top:14px}.cg-gamepad input{display:block;width:100%;min-height:44px;accent-color:var(--blue);margin:0}.cg-gamepad small{display:block;color:var(--muted);font-size:10px;line-height:1.8}.cg-gamepad .cg-btn{width:100%;font-size:11px}.cg-play:fullscreen{--cg-fs-base:220px}.cg-play:fullscreen .cg-devices{width:min(100%,720px);align-self:center;flex-shrink:0;color:var(--cg-screen-muted);border-color:#40506a;margin-top:8px;padding-top:5px}.cg-play:fullscreen [data-platform-keys]{display:none}.cg-play:fullscreen .cg-audio .cg-btn{color:var(--cg-screen-muted);border:0;background:transparent}.cg-play:fullscreen .cg-gamepad>div{color:var(--ink)}.cg-play:fullscreen .cg-gamepad .cg-btn{color:var(--ink);background:var(--surface);border-color:var(--line)}
@media(max-width:1050px){.cg-catalog-item .cg-catalog-art{width:40px;height:54px}.cg-catalog-item .cg-catalog-game{min-height:94px;padding-right:40px}.cg-favorite{right:0}.cg-catalog-copy strong{font-size:12px}.cg-catalog-item .cg-catalog-copy small{font-size:9px}}
@media(max-width:550px){.cg-catalog-item .cg-catalog-art{width:45px;height:60px}.cg-catalog-item .cg-catalog-game{min-height:94px;padding-right:48px}.cg-catalog-item .cg-catalog-copy small{font-size:10px}.cg-filter{padding-inline:14px}.cg-filter-favorites{margin-left:auto}.cg-catalog-filters{gap:6px;margin-bottom:15px}.cg-recent-game{font-size:11px}.cg-audio input{width:94px}.cg-devices{gap:10px}.cg-gamepad{font-size:10px}.cg-saves-footer>.cg-btn{width:100%}.cg-play:fullscreen{--cg-fs-base:230px}}
@media(max-width:820px) and (orientation:portrait){.cg-touch .cg-play:fullscreen{--cg-fs-base:414px}}
/* PSP is 480 x 272. Its portrait runner reserves 300px for both sticks and buttons. */
.cg-app[data-system=psp] .cg-screen{aspect-ratio:30/17;min-height:0;height:auto}.cg-app[data-system=psp].cg-touch.cg-running .cg-screenbox{container-type:inline-size}.cg-app[data-system=psp].cg-touch.cg-running .cg-screen{aspect-ratio:30/17;height:auto}.cg-app[data-system=psp] .cg-play:fullscreen .cg-screenbox{width:min(100%,max(120px,calc((100dvh - var(--cg-fs-base) - var(--cg-fs-notice,0px))*30/17)))}
@container(max-width:575px){.cg-app[data-system=psp].cg-touch.cg-running .cg-screen{aspect-ratio:auto;height:calc(56.666667cqw + 300px)}}
@media(orientation:portrait){.cg-app[data-system=psp].cg-touch .cg-play:fullscreen{--cg-fs-base:510px}.cg-app[data-system=psp].cg-touch .cg-play:fullscreen .cg-screenbox{width:min(100%,575px,max(280px,calc((100dvh - var(--cg-fs-base) - var(--cg-fs-notice,0px))*30/17)))}}
@media(orientation:landscape){.cg-app[data-system=psp].cg-touch .cg-play:fullscreen .cg-screen{height:auto;aspect-ratio:30/17}}
