/* Company, engine, software, series and hardware pages, and the blank
   drafts of new pages: the game page's language (site.css, "Game
   catalogue") with each type's own hero. Laid out from the type's template
   (internal/community, wikitemplates.go); the editors' controls are in
   community-wiki.css. */

/* the hero */
.gr-hero--ent .gr-head h1{ margin-bottom: 6px; }
.gr-ent__lede{ margin: 0 0 10px; color: var(--text-dim); font-size: 1.02rem; max-width: 52ch; }
.gr-art--mono{ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.gr-art--mono span{ font: 700 3rem/1 var(--display); letter-spacing: .03em; background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gr-art--mono small{ font: 600 .72rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
/* a company's, engine's or program's mark: square, set in a ring of circuit */
.gr-art--logo{ aspect-ratio: 1; position: relative; }
.gr-art--logo::before{ content: ""; position: absolute; inset: 0; background-image: var(--circuit); background-size: 120px; opacity: .22; }
.gr-art--logo::after{ content: ""; position: absolute; inset: 14%; border: 1px solid rgba(41,170,225,.45); border-radius: 50%; box-shadow: 0 0 40px -6px rgba(0,174,239,.55) inset; }
.gr-hero--company .gr-art, .gr-hero--engine .gr-art, .gr-hero--software .gr-art{ align-self: center; }
/* an engine's version badge */
.gr-art--engine small{ padding: 3px 8px; color: #04060d; background: var(--cyan); letter-spacing: .08em; text-transform: none; font-size: .78rem; }
.gr-art--software::after{ border-radius: 22%; }
/* hardware stands on a lit stage */
.gr-art--stage{ background: radial-gradient(ellipse at 50% 92%, rgba(41,170,225,.55), transparent 55%), radial-gradient(circle at 50% 40%, #1a2a4a, #0c1222 75%); }
.gr-art--stage img{ object-fit: contain; padding: 10%; filter: drop-shadow(0 18px 18px rgba(0,0,0,.55)); }

/* the figures in a hero's strip */
.gr-stats{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; flex: 1 1 100%; }
.gr-stat{ position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: rgba(4,6,13,.55); border: 1px solid var(--line-strong);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.gr-stat strong{ font: 700 1.55rem/1.1 var(--display); background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gr-stat span{ font: 600 .66rem/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }

/* chips in a hero */
.gr-ranked--hero{ margin: 4px 0 0; }
.gr-ranked__plain{ display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 12px; border: 1px dashed var(--line); color: var(--text-dim); font: 600 .78rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.gr-ranked__plain span{ color: var(--text-faint); }
.gr-chips--refs span{ display: inline-block; padding: 4px 10px; font-family: var(--display); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); border: 1px dashed var(--line); }
.gr-hero .gr-chips--refs{ margin-top: 4px; }
/* a series' entries as a strip of covers */
.gr-coverstrip{ list-style: none; display: flex; gap: 6px; margin: 12px 0 0; padding: 0; overflow-x: auto; }
.gr-coverstrip__tile{ position: relative; display: grid; place-items: center; width: 46px; aspect-ratio: 3/4; overflow: hidden; font: 700 .8rem/1 var(--display); color: #fff;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); transition: transform .15s ease; }
.gr-coverstrip__tile img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gr-coverstrip a:hover .gr-coverstrip__tile{ transform: translateY(-2px); }
/* a piece of hardware's line: what came before and after */
.gr-line{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 0; font-size: .88rem; }
.gr-line > span{ display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); background: rgba(4,6,13,.45); }
.gr-line small{ font: 600 .62rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.gr-line__this{ border-color: var(--cyan) !important; color: #fff; font-weight: 600; }
.gr-line__prev::after{ content: "→"; color: var(--cyan); margin-left: 4px; }
.gr-line__next::before{ content: "→"; color: var(--cyan); margin-right: 4px; }

/* sections */
.gr-ent .gr-body > h2:first-child{ margin-top: 8px; }
.gr-req{ display: inline-block; margin-left: 8px; padding: 1px 6px; vertical-align: middle; font: 600 .62rem/1.5 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #ffd27a; border: 1px solid rgba(255,210,122,.55); }
.gr-field--auto{ padding: 12px 16px; color: var(--text-faint); font-size: .9rem; background: rgba(12,18,34,.6); border: 1px dashed var(--line); }
.gr-facts th{ width: 190px; }
.gr-points{ padding-left: 1.2em; }
.gr-points li{ margin: 0 0 8px; }
.gr-cards--ent{ grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.gr-cards--ent .gr-card{ display: flex !important; }
@media (max-width: 760px){ .gr-cards--ent .gr-card:nth-child(n+7){ display: none !important; } }
.gr-showall{ margin: 10px 0 18px; }
.gr-showall > summary{ cursor: pointer; font: 600 .78rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); padding: 10px 0; }

/* a company's history as a timeline */
.gr-timeline{ list-style: none; margin: 0 0 24px; padding: 0 0 0 18px; border-left: 2px solid var(--line-strong); }
.gr-timeline li{ position: relative; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding: 8px 0; }
.gr-timeline li::before{ content: ""; position: absolute; left: -24px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); }
.gr-timeline__when{ font: 700 .82rem/1.6 var(--display); letter-spacing: .06em; color: var(--cyan); }
.gr-timeline__what{ color: var(--text-body); }
/* its key people as cards */
.gr-people{ list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gr-people li{ display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; background: var(--panel); border-top: 2px solid var(--line-strong); }
.gr-people__mono{ grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font: 700 .9rem/1 var(--display); color: #fff; background: linear-gradient(160deg, #1663c5, #0b1530); }
.gr-people__name{ font: 600 1rem/1.3 var(--display); color: #fff; }
.gr-people__role{ font-size: .85rem; color: var(--text-dim); }

/* a series' games in order */
.gr-series{ list-style: none; margin: 0 0 24px; padding: 0; counter-reset: entry; }
.gr-series li{ counter-increment: entry; }
.content .gr-series__item{ display: grid; grid-template-columns: 4.2em 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 10px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.content .gr-series__item:hover{ background: rgba(25,115,209,.08); }
.gr-series__year{ font: 700 .9rem/1 var(--display); color: var(--cyan); letter-spacing: .04em; }
.gr-series__art{ position: relative; display: grid; place-items: center; width: 46px; aspect-ratio: 3/4; overflow: hidden; font: 700 .8rem/1 var(--display); color: #fff;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.gr-series__art img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gr-series__body{ display: flex; flex-direction: column; min-width: 0; }
.gr-series__title{ font: 600 1rem/1.3 var(--display); color: #fff; }
.gr-series__meta{ font-size: .82rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-series__score{ min-width: 3em; padding: 6px 8px; text-align: center; font: 700 .95rem/1 var(--display); color: #fff; border: 1px solid var(--cyan); background: rgba(4,6,13,.6); }

/* a draft of a new page */
.gr-draft__title{ min-height: 1.1em; outline: none; border-bottom: 2px dashed rgba(41,170,225,.45); cursor: text; }
.gr-draft__title:empty::before{ content: attr(data-placeholder); color: var(--text-faint); }
.gr-draft__title:focus{ border-bottom-color: var(--cyan); }
.gr-draft__help .sidebar-list li{ display: block; font-size: .88rem; color: var(--text-dim); padding: 8px 0; }

/* the page-type chooser and the drafts list */
.gr-create{ max-width: 860px; margin: 0 auto; padding: 24px 0 48px; }
.gr-create__types{ list-style: none; margin: 18px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.gr-create__type{ display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.gr-create__type:hover{ border-color: var(--cyan); background: var(--panel-2); }
.gr-create__type strong{ font: 700 1.1rem/1.2 var(--display); color: #fff; }
.gr-create__type span{ font-size: .88rem; color: var(--text-dim); }

@media (max-width: 760px){
  .gr-hero--ent .gr-art{ width: 120px; }
  .gr-hero--ent .gr-art--mono span{ font-size: 2rem; }
  .gr-stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-stat strong{ font-size: 1.25rem; }
  .gr-timeline li{ grid-template-columns: 1fr; gap: 2px; }
  .content .gr-series__item{ grid-template-columns: 3.4em 38px minmax(0, 1fr) auto; gap: 10px; }
  .gr-series__art{ width: 38px; }
  .gr-facts th{ width: 120px; }
}
/* the series list numbers its entries by year, not by the article's list counter */
.content .gr-series li::before, .content .gr-series li::marker{ content: none; display: none; }
.content .gr-series li{ padding: 0; margin: 0; }
.content .gr-timeline > li{ padding-left: 0; }
.content .gr-timeline > li::before{ content: ""; position: absolute; left: -24px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); color: transparent; }
.gr-draft__title--locked{ border-bottom-color: transparent; cursor: default; }
