.cg-shell {
  color-scheme: dark;
  font: 16px/1.55 system-ui, sans-serif;
  color: #f8f3ff;
  --accent: #ffd87a;
  --border: #493b60;
}
.cg-shell, .cg-shell * { box-sizing: border-box; }
body.cg-body { margin: 0; background: #100b1e; }
.cg-shell { width: min(1060px, 100% - 2rem); margin: 2rem auto 4rem; }
.cg-shell a { color: var(--accent); text-underline-offset: .18em; }
.cg-shell h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: .99; letter-spacing: -.05em; margin: .25em 0; }
.cg-shell h2, .cg-shell h3 { line-height: 1.2; }
.cg-shell section, .cg-hero { margin-block: 1.5rem; }
.cg-hero, .cg-card { border: 1px solid var(--border); border-radius: 1rem; background: #1b142c; }
.cg-hero { display: grid; grid-template-columns: 1.04fr 1fr; overflow: hidden; }
.cg-hero > div { align-self: center; padding: clamp(1.5rem, 5vw, 3rem); }
.cg-hero img { display: block; width: 100%; height: 100%; max-height: 390px; object-fit: cover; }
.cg-card { padding: 1.3rem; overflow-wrap: anywhere; }
.cg-card h2, .cg-card h3 { margin-top: 0; }
.cg-card form { max-width: 34rem; }
.cg-card label { display: grid; gap: .35rem; margin-block: 1rem; font-weight: 600; }
.cg-card input, .cg-card textarea {
  width: 100%; padding: .65rem; border: 1px solid #8974a9; border-radius: .45rem;
  background: #100b1e; color: inherit; font: inherit;
}
.cg-shell button, .cg-shell .cg-button {
  display: inline-block; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .45rem;
  background: var(--accent); color: #231739; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none;
}
.cg-shell :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.cg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.cg-message { border-left: 3px solid var(--accent); padding: .65rem 1rem; background: #1b142c; }
.cg-game { display: block; width: 100%; min-height: 360px; aspect-ratio: 16 / 10; border: 1px solid var(--border); background: #000; }
@media (max-width: 650px) {
  .cg-hero { grid-template-columns: 1fr; }
  .cg-hero img { height: auto; }
}

.cg-hub { width: min(1192px, calc(100% - 48px)); margin: 1.5rem auto 2rem; }
.cg-hub .cg-hero { border-color: #e5b954; box-shadow: 0 0 20px #f5c45626; }
.cg-hub .cg-hero h2 { font-size: clamp(1.7rem, 4vw, 3rem); color: #ffe6a2; margin: .2em 0; }
.cg-hub .cg-hero img { max-height: 305px; object-position: center 25%; }
.cg-hub-upload { margin-top: 1rem; }
.cg-hub-upload summary { cursor: pointer; color: #ffe6a2; font-weight: 800; }
.cg-hub-upload #submit { margin-bottom: 0; }
.cg-shell button[aria-pressed="true"] { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 720px) { .cg-hub { width: calc(100% - 36px); } }
