/* Game pages, /<game>/ (2026-10-06; /games/<game>/ until 2026-10-14). Built by tools/build-game-pages.mjs; loaded after arcade.css, which
   supplies the night shell (nav, footer, tokens) and every game's title lettering (.t-keep, .t-hills ...).
   Direction: the store shelf opened up. Left rail: the game's box art and the one action, Launch game, which
   stays in reach while you read. Right: the title in the game's own lettering, a short pitch, then the change
   log, set like a patch-notes post (label, posted date, title, version line, Additions / Tweaks / Bug fixes),
   with likes, dislikes and comments under each update. Coral stays the only site colour. */

.gp-main { padding-top: 1.1rem; }
.gp-back {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .1rem; margin-bottom: 1rem;
  color: var(--muted); font-size: .88rem; font-weight: 700; text-decoration: none; transition: color .15s;
}
.gp-back svg { width: 1rem; height: 1rem; }
.gp-back:hover { color: var(--text); }

.gp-grid {
  display: grid; grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); gap: 0 clamp(1.6rem, 4vw, 3.5rem);
  grid-template-areas: "rail body" "log body"; grid-template-rows: auto 1fr;
  align-items: start;
}
/* 2026-10-14: the change log sits under Launch game (left), the high scores under the text about the game (right) */
.gp-rail { grid-area: rail; }
.gp-body { grid-area: body; }
.gp-grid > .gp-log { grid-area: log; }
.gp-rail-in { display: grid; gap: .9rem; }

.gp-art {
  display: block; overflow: hidden; border-radius: 8px; background: #0d1015; aspect-ratio: 16 / 10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 26px 50px -26px rgba(0, 0, 0, .95);
}
.gp-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

.gp-launch {
  display: flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3.6rem; padding: 0 1.4rem;
  border-radius: 6px; background: var(--coral); color: #12151b; text-decoration: none;
  font-weight: 900; font-style: italic; font-stretch: 72%; text-transform: uppercase; font-size: 1.55rem; letter-spacing: .01em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 14px 28px -14px rgba(240, 85, 74, .85);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .2s;
}
.gp-launch svg { width: 1.35rem; height: 1.35rem; flex: none; transition: transform .35s var(--ease); }
.gp-launch:hover { background: #f4675d; transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 20px 34px -14px rgba(240, 85, 74, .95); }
.gp-launch:hover svg { transform: translateX(3px); }
.gp-launch:active { transform: translateY(0); }
.gp-launch:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.gp-facts { margin: 0; color: var(--muted); font-size: .86rem; text-align: center; }
.gp-live { justify-self: center; color: #b9e9c7; font-size: .84rem; font-weight: 700; }

/* ---------------------------------------------------------------- title and pitch */
.gp-title {
  margin: 0; line-height: .95; text-wrap: balance;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  text-shadow: 0 3px 0 rgba(0, 0, 0, .5), 0 8px 30px rgba(0, 0, 0, .6);
}
.gp-title.t-hills small { font-size: .42em; }
.gp-title.t-pyre, .gp-title.t-query { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.gp-tagline { margin: .9rem 0 0; color: var(--text); font-size: 1.12rem; font-weight: 700; line-height: 1.35; max-width: 40ch; text-wrap: balance; }
.gp-about { margin-top: 1.1rem; max-width: 66ch; color: #c9ced7; font-size: 1rem; line-height: 1.65; }
.gp-about p { margin: 0 0 .9em; }
.gp-about p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- change log */
.gp-log { margin-top: clamp(2.2rem, 4vw, 3rem); scroll-margin-top: 5rem; min-width: 0; }
.log-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem;
  padding-bottom: .8rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line);
}
.log-head h2 {
  margin: 0; font-weight: 900; font-style: italic; font-stretch: 72%; text-transform: uppercase;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: .9; letter-spacing: -.005em;
}
.log-current { margin: 0; font-size: 1rem; color: var(--text); font-variant-numeric: tabular-nums; }
.log-current b { font-weight: 800; }
.log-when { color: var(--muted); }
.gp-older { margin: 0 0 1.2rem; }
.gp-older b { font-variant-numeric: tabular-nums; }
.gp-older .notice-arrow, .gp-older svg { width: 1.1rem; height: 1.1rem; flex: none; margin-left: auto; color: var(--muted); }

/* one update, set like a patch-notes post */
.upd { overflow: hidden; border-radius: 8px; background: #1c2129; border: 1px solid #2c333f; }
.upd-banner { position: relative; height: clamp(7rem, 16vw, 10.5rem); overflow: hidden; }
.upd-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.upd-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 33, 41, 0) 30%, #1c2129 100%); }
.upd-body { padding: clamp(1.2rem, 3vw, 1.9rem) clamp(1.1rem, 3vw, 2rem) clamp(1.3rem, 3vw, 1.8rem); }
.upd-label {
  display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin: 0;
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.upd-label b { color: var(--coral); font-weight: 900; }
.upd--major .upd-label b { color: #12151b; background: var(--coral); padding: .12rem .45rem .08rem; border-radius: 3px; margin-top: -.12rem; }
.upd-title { margin: .55rem 0 0; font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; line-height: 1.12; color: #fff; text-wrap: balance; letter-spacing: -.01em; }
.upd-sub { margin: .35rem 0 0; color: var(--muted); font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.upd-summary { margin: 1.1rem 0 0; max-width: 66ch; color: #d6dae1; font-size: 1rem; line-height: 1.6; }
.upd-notes { max-width: 70ch; }
.upd-notes h4 { margin: 1.7rem 0 .6rem; font-size: 1.06rem; font-weight: 800; color: #fff; }
.upd-notes ul { margin: 0; padding-left: 1.35rem; color: #d6dae1; font-size: 1rem; line-height: 1.55; }
.upd-notes li { margin: .5rem 0; padding-left: .15rem; }
.upd-notes li::marker { color: #7d8697; }
.upd-notes ul ul { margin-top: .35rem; list-style-type: circle; }
.upd-notes ul ul li { margin: .32rem 0; }
.upd-notes ul ul ul { list-style-type: square; }

/* ---------------------------------------------------------------- likes, dislikes, comments */
.talk { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid #2c333f; }
.talk-votes { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.vote {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.6rem; padding: 0 1rem 0 .8rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: inherit; font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .25s var(--ease);
}
.vote svg { width: 1.2rem; height: 1.2rem; }
.vote:hover:not(:disabled) { border-color: #59637a; background: var(--panel-2); }
.vote:active:not(:disabled) { transform: scale(.96); }
.vote[aria-pressed="true"] { border-color: var(--coral); background: var(--coral-soft); color: #fff; }
.vote[aria-pressed="true"] svg path { fill: currentColor; fill-opacity: .25; }
.vote:disabled { cursor: default; opacity: .6; }
.vote.is-pop svg { animation: vote-pop .45s var(--ease); }
@keyframes vote-pop { 0% { transform: scale(1); } 35% { transform: scale(1.3) rotate(-8deg); } 100% { transform: scale(1); } }
.talk-status { margin: 0 0 0 .3rem; color: var(--muted); font-size: .86rem; }

.talk-h { margin: 1.8rem 0 .8rem; font-size: 1.06rem; font-weight: 800; color: #fff; }
.talk-h span { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.talk-form { display: grid; gap: .55rem; }
.talk-form textarea, .talk-form input {
  width: 100%; box-sizing: border-box; border-radius: 6px; border: 1px solid var(--line); background: #141820; color: var(--text);
  font: inherit; font-size: 1rem; caret-color: var(--coral); transition: border-color .2s;
}
.talk-form textarea { min-height: 5.4rem; padding: .75rem .85rem; resize: vertical; line-height: 1.5; }
.talk-form input { min-height: 2.75rem; padding: 0 .85rem; }
.talk-form textarea::placeholder, .talk-form input::placeholder { color: #8d94a2; }
.talk-form textarea:focus-visible, .talk-form input:focus-visible { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.talk-row { display: flex; gap: .55rem; }
.talk-row input { flex: 1 1 auto; min-width: 0; max-width: 18rem; }
.talk-post {
  flex: none; min-height: 2.75rem; padding: 0 1.2rem; margin-left: auto; border-radius: 6px; border: 1px solid #59637a;
  background: var(--panel-2); color: #fff; font: inherit; font-weight: 800; font-size: .92rem; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.talk-post:hover:not(:disabled) { border-color: var(--coral); background: #3a2a2d; }
.talk-post:disabled { opacity: .55; cursor: default; }
.talk-fine { margin: 0; color: #8d94a2; font-size: .8rem; font-variant-numeric: tabular-nums; }
.talk-fine.is-low { color: #f39b93; }

.talk-list { list-style: none; margin: 1.3rem 0 0; padding: 0; }
.talk-list > li { padding: .95rem 0; border-top: 1px solid #2a303b; }
.talk-list > li.is-new { animation: talk-in .6s var(--ease); }
@keyframes talk-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.c-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.c-name { font-weight: 800; color: #fff; font-size: .95rem; }
.c-when { color: #8d94a2; font-size: .8rem; }
.c-text { margin: .3rem 0 0; color: #d6dae1; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.c-tools { display: flex; gap: .9rem; margin-top: .35rem; }
.c-tools button { padding: .2rem 0; border: 0; background: none; color: #8d94a2; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.c-tools button:hover { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
.talk-empty { color: var(--muted); font-size: .92rem; padding: .4rem 0; border: 0 !important; }

/* a rude word: still there, but unreadable */
.rude {
  filter: blur(4.5px); user-select: none; -webkit-user-select: none; border-radius: 3px;
  background: rgba(240, 85, 74, .14); padding: 0 .1em;
}

/* ---------------------------------------------------------------- previous updates */
.gp-history { margin-top: 2.4rem; }
.gp-history h3 { margin: 0 0 .7rem; font-size: 1.2rem; font-weight: 800; color: #fff; }
.hist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hist li { border-bottom: 1px solid #2a303b; }
.hist a {
  display: grid; grid-template-columns: 6.2rem minmax(0, 1fr) auto; align-items: baseline; gap: .2rem 1rem;
  padding: .78rem .6rem; margin: 0 -.6rem; border-radius: 6px; text-decoration: none; transition: background-color .15s;
}
.hist a:hover { background: rgba(255, 255, 255, .045); }
.hist a:hover .h-title { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: .22em; }
.h-ver { font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.h-title { color: #d6dae1; }
.h-tag {
  display: inline-block; margin-left: .35rem; padding: .05rem .38rem; border-radius: 3px; vertical-align: .1em;
  font-style: normal; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid #59637a; color: var(--muted);
}
.h-tag--major { border-color: var(--coral); color: var(--coral); }
.h-date { color: #8d94a2; font-size: .86rem; font-variant-numeric: tabular-nums; }
.hist-none { color: var(--muted); }

/* ---------------------------------------------------------------- all-time high scores (2026-10-14) */
/* Under the text about the game (moved there 2026-10-14): a record board, one category at a time behind three tabs, the number set in the game's
   own title lettering so it reads like part of the game. Records read 0 until a real player beats one. */
.gp-scores {
  margin-top: clamp(1.6rem, 3vw, 2.2rem); max-width: 34rem; padding: 1rem 1.1rem 1.2rem; border-radius: 8px; background: #1c2129; border: 1px solid #2c333f;
  scroll-margin-top: 6rem;
}
.sc-h {
  margin: 0 0 .8rem; font-weight: 900; font-style: italic; font-stretch: 72%; text-transform: uppercase;
  font-size: 1.4rem; line-height: .95; letter-spacing: -.005em; color: #fff;
}
.sc-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; padding: .25rem;
  border-radius: 6px; background: #13171e; border: 1px solid #2c333f;
}
.sc-tab {
  min-height: 2.5rem; padding: .3rem .35rem; border: 0; border-radius: 4px; background: transparent; color: var(--muted);
  font: inherit; font-size: .8rem; font-weight: 800; line-height: 1.12; cursor: pointer; text-wrap: balance;
  transition: color .15s, background-color .2s, box-shadow .25s var(--ease);
}
.sc-tab:hover { color: var(--text); background: #222833; }
.sc-tab[aria-selected="true"] { color: #fff; background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--coral), 0 2px 6px -2px rgba(0, 0, 0, .6); }
.sc-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sc-panel { padding-top: 1.05rem; text-align: center; }
.gp-scores .sc-value {
  margin: 0; font-size: clamp(3rem, 5.2vw, 4.4rem); line-height: 1; font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .5), 0 10px 26px rgba(0, 0, 0, .55); overflow-wrap: anywhere;
}
.gp-scores.sc-empty .sc-value { opacity: .5; }
.sc-label { margin: .5rem 0 0; color: var(--text); font-size: .95rem; font-weight: 700; }
.sc-when { margin: .2rem 0 0; color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 860px) {
  .gp-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "rail" "body" "log"; grid-template-rows: auto; gap: 1.4rem; }
  .gp-rail-in { max-width: 34rem; }
  .gp-title { font-size: clamp(2.3rem, 10vw, 3.4rem); }
  .gp-title.t-pyre, .gp-title.t-query { font-size: clamp(1.7rem, 8vw, 2.6rem); }
}
@media (max-width: 520px) {
  .gp-launch { font-size: 1.35rem; min-height: 3.3rem; }
  .hist a { grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0 .8rem; padding: .62rem .6rem; }
  .h-date { font-size: .8rem; }
  .h-date { grid-column: 2; }
  .talk-row { flex-wrap: wrap; }
  .talk-row input { max-width: none; flex-basis: 100%; }
  .talk-post { width: 100%; }
  .upd-label { font-size: .72rem; }
}

/* ---------------------------------------------------------------- /games/ : every game's latest update */
.hub-head { margin-top: .4rem; }
.hub-head h1 { margin: 0; font-weight: 900; font-style: italic; font-stretch: 72%; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: .9; }
.hub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.hub-row {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; align-items: center; gap: 1.1rem;
  padding: .55rem 1rem .55rem .55rem; border-radius: 8px; background: #1c2129; border: 1px solid #2c333f;
  text-decoration: none; transition: border-color .2s, background-color .2s;
}
.hub-row:hover { border-color: #59637a; background: #212731; }
.hub-row img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 5px; display: block; }
.hub-text { display: grid; gap: .15rem; min-width: 0; }
.hub-name { font-weight: 800; color: #fff; font-size: 1.05rem; }
.hub-name b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; margin-left: .25rem; }
.hub-upd { color: #c9ced7; font-size: .93rem; }
.hub-upd .h-tag { margin: 0 .2rem 0 0; }
@media (max-width: 520px) {
  .hub-row { grid-template-columns: 5.4rem minmax(0, 1fr); gap: .8rem; }
  .hub-row .h-date { grid-column: 2; }
}
