/* One theme: pure black, after apple.com's dark pages. The logo is the only colour on the page; the interface is
   black, white and grey. Control shapes and sizes are Apple's, measured on apple.com (2026-10-01):
   buttons are capsules (44 / 36 / 24px tall), fields are 56px tall with a 12px radius, tabs sit in a capsule platter. */
:root {
  color-scheme: dark;
  /* surfaces: page / one step up (tile, row hover, platter) / two steps up (hover on a tile) / small marks drawn on a surface */
  --bg: #000000; --bg2: #1d1d1f; --bg3: #2a2a2d; --chip: rgb(255 255 255 / .1);
  /* text: body / secondary (also placeholders) / nav links. On --bg: 19:1, 5.8:1, 12:1 */
  --fg: #f5f5f7; --muted: #86868b; --nav: rgb(245 245 247 / .8); --link: #f5f5f7;
  /* the one hairline: dividers and field borders */
  --line: #424245;
  /* primary button and selected state */
  --btn: #f5f5f7; --btn-fg: #000000; --btn-hover: #ffffff;
  /* radius scale: small marks / fields, thumbs, row hover / tiles. Buttons, chips and tabs are capsules. */
  --r-s: 6px; --r-m: 12px; --r-l: 18px; --r-pill: 980px;
  /* type scale: every font-size in this file is one of these */
  --t-xs: 12px; --t-m: 14px; --t-body: 17px; --t-l: 21px; --t-title: 40px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: var(--t-body)/1.47059 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration-color: var(--muted); text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
a, button, input, select, textarea, summary { touch-action: manipulation; }
/* one focus ring for every interactive element, keyboard only */
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
b, strong { font-weight: 600; }
::placeholder { color: var(--muted); opacity: 1; }
.wrap { max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.wrap.wide { max-width: 980px; }
/* header and footer follow the content width on wide pages, so left edges line up */
body:has(> main.wide) .bar, body:has(> main.wide) .foot { max-width: 980px; }
.top { overflow-x: clip; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 16px; }
.brand, nav a { white-space: nowrap; }
/* brand lockup: mark + parent brand (semibold) + community name (regular). A sibling community changes the last word only. */
.brand { display: flex; align-items: center; gap: 8px; flex: none; font-size: var(--t-l); font-weight: 400; line-height: 1; text-decoration: none; }
.brand b { font-weight: 600; }
.logo { display: block; flex: none; width: 28px; height: 28px; }
nav { display: flex; align-items: center; gap: 24px; font-size: var(--t-xs); }
nav a { text-decoration: none; color: var(--nav); }
nav a:not(.btn) { padding: 8px 0; }
nav a:hover { color: var(--fg); }
nav a.btn { color: var(--btn-fg); }
main { padding-bottom: 48px; min-height: 60vh; }
.foot { padding-bottom: 32px; color: var(--muted); font-size: var(--t-xs); line-height: 1.8; }
.foot::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 16px; }
/* two lines: this site's links (on phones the header text links are hidden, so these are the way to Launches, Assets and About), then the EarthOnline communities */
.foot p { margin: 0; }
.foot p + p { margin-top: 8px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--fg); }

/* buttons: capsule. regular 17px / 44px tall, .small 14px / 36px, in the header 12px / 24px */
.btn { display: inline-block; border: 1px solid transparent; background: var(--btn); color: var(--btn-fg); font: inherit; font-weight: 400; font-size: var(--t-body); line-height: 1.17648; padding: 11px 21px; border-radius: var(--r-pill); cursor: pointer; text-align: center; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--btn-hover); }
.btn.small { font-size: var(--t-m); line-height: 1.28577; padding: 8px 15px; }
nav .btn.small { font-size: var(--t-xs); line-height: 1.33337; padding: 3px 10px; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn.ghost:hover { background: var(--bg2); }

.hero { padding: 48px 0 8px; }
.hero h1 { font-size: var(--t-title); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em; }
.hero p { margin: 0; color: var(--muted); text-wrap: pretty; }
.sec { display: flex; align-items: baseline; gap: 8px; font-size: var(--t-l); line-height: 1.19048; margin: 48px 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sec .date { color: var(--muted); font-size: var(--t-m); font-weight: 400; }
.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 16px; padding: 12px 6px; margin: 0 -6px; border-radius: var(--r-m); }
.row:hover { background: var(--bg2); }
.row-link { flex: none; line-height: 0; border-radius: var(--r-m); text-decoration: none; }
.row-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row h3 { margin: 0; font-size: var(--t-body); line-height: 1.3; }
.row h3 a { text-decoration: none; }
.rank { color: var(--muted); font-weight: 400; }
.tagline { margin: 2px 0 0; color: var(--muted); font-size: var(--t-m); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; font-size: var(--t-m); }
/* padding grows the tap target, the negative margin keeps the layout where it was */
.play { color: var(--fg); text-decoration: none; padding: 6px 8px 6px 0; margin: -6px -4px -6px 0; }
.play:hover { text-decoration: underline; }
.chip { background: var(--chip); color: var(--muted); border-radius: var(--r-pill); padding: 1px 9px; font-size: var(--t-xs); }
.thumb { position: relative; width: 64px; height: 64px; border-radius: var(--r-m); overflow: hidden; background: var(--chip); display: grid; place-items: center; }
.thumb.lg { width: 72px; height: 72px; }
.thumb span { font-size: 26px; font-weight: 600; color: var(--muted); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the initial is the fallback only: never let it show through a transparent image */
.thumb:has(img) span, .cover:has(img) span, .apic:has(img) span, .acover:has(img) span { visibility: hidden; }
.vote { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 54px; height: 60px; border: 1px solid var(--line); background: transparent; color: var(--fg); border-radius: var(--r-m); font: inherit; font-size: var(--t-m); line-height: 1.28577; cursor: pointer; }
.vote:hover { background: var(--chip); }
.vote.on { border-color: var(--btn); background: var(--btn); color: var(--btn-fg); }
.vote b { font-weight: 600; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 48px 0 24px; }
.empty h1 { margin: 0 0 12px; font-size: var(--t-title); line-height: 1.1; letter-spacing: -.02em; color: var(--fg); }
.empty p { margin: 0; }

.crumb { margin: 24px 0 16px; font-size: var(--t-m); }
.crumb a { display: inline-block; padding: 6px 0; margin: -6px 0; }
.game-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 24px; }
.game-title { min-width: 0; overflow-wrap: anywhere; }
.game-title h1 { margin: 0; font-size: var(--t-title); line-height: 1.1; letter-spacing: -.02em; }
.game-title .tagline { font-size: var(--t-body); margin-top: 4px; }
.cover { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: var(--bg2); display: grid; place-items: center; }
.cover span { font-size: 72px; font-weight: 600; color: var(--muted); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.actions { display: flex; align-items: center; gap: 12px; margin: 24px 0 32px; }
/* next to the primary capsule the vote is the secondary one: same height, outlined */
.actions .vote { width: auto; min-width: 64px; height: 44px; padding: 0 21px; flex-direction: row; gap: 8px; border-color: var(--fg); border-radius: var(--r-pill); font-size: var(--t-body); }
.actions .vote.on { border-color: var(--btn); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: start; }
.desc { min-width: 0; overflow-wrap: anywhere; }
.desc p { margin: 0 0 16px; }
.facts { margin: 0; font-size: var(--t-m); border-left: 1px solid var(--line); padding-left: 20px; }
.facts div { margin-bottom: 16px; }
.facts div:last-child { margin-bottom: 0; }
.facts dt { color: var(--muted); font-size: var(--t-xs); }
.facts dd { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.muted { color: var(--muted); }

.prose { padding-top: 48px; overflow-wrap: anywhere; }
.prose h1 { font-size: var(--t-title); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; }
.prose h2 { font-size: var(--t-l); line-height: 1.19048; margin: 36px 0 8px; }
.prose.narrow { max-width: 600px; }
.prose code { background: var(--chip); padding: 1px 6px; border-radius: var(--r-s); font: inherit; font-size: var(--t-m); }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: var(--t-m); font-weight: 600; }
.form label em { font-weight: 400; font-style: normal; color: var(--muted); }
.form label i { font-style: normal; }
.form small { font-size: var(--t-xs); font-weight: 400; color: var(--muted); }
/* fields: 56px tall, 12px radius, hairline border */
input, textarea, select { font: inherit; font-size: var(--t-body); font-weight: 400; line-height: 1.23536; color: var(--fg); background: rgb(255 255 255 / .04); border: 1px solid var(--line); border-radius: var(--r-m); width: 100%; }
input, select { height: 56px; padding: 0 16px; }
textarea { padding: 16px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6 8 10.5 12.5 6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 16px; }
/* text fields: nothing changes on click-in, the caret marks focus */
input:focus-visible, textarea:focus-visible { outline: none; }
select:focus-visible { outline-offset: -1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { align-self: flex-start; margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: var(--bg2); border-radius: var(--r-m); padding: 14px 16px; }

.pend-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 16px; }
.pend { display: flex; gap: 20px; justify-content: space-between; background: var(--bg2); border-radius: var(--r-l); padding: 20px; }
.pend h3 { margin: 0 0 4px; font-size: var(--t-body); }
.pend p { margin: 4px 0; }
.pend .kv { font-size: var(--t-m); word-break: break-all; }
.pend-info { min-width: 0; flex: 1; }
.pend-act { display: flex; flex-direction: column; gap: 8px; flex: none; width: 190px; font-size: var(--t-m); }
.pend-act label { display: flex; flex-direction: column; gap: 4px; }

@media (max-width: 640px) {
  :root { --t-title: 28px; }
  .hero, .prose { padding-top: 32px; }
  .empty { padding-top: 32px; }
  .sec { margin-top: 40px; }
  .row { gap: 12px; }
  .thumb { width: 54px; height: 54px; }
  .vote { width: 48px; height: 54px; }
  .cols { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .facts { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .facts div { margin-bottom: 0; }
  .two { grid-template-columns: 1fr; }
  .pend { flex-direction: column; }
  .pend-act { width: 100%; }
  nav { gap: 16px; }
  nav a:not(.btn):first-child { display: none; }
}

/* ---- assets ---- */
.asearch { display: flex; align-items: center; gap: 8px; margin: 24px 0 16px; }
.asearch input[type=search] { flex: 1; min-width: 0; }
.asearch select { width: auto; max-width: 220px; }
/* in a row of fields the button takes the fields' height (Apple's 56px form button), still a capsule */
.asearch .btn { flex: none; padding: 17px 31px; }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
/* tab nav: a capsule platter, the selected tab is the inverted capsule inside it */
.seg { display: flex; padding: 6px; border-radius: var(--r-pill); background: var(--bg2); }
.tab { text-decoration: none; font-size: var(--t-body); line-height: 44px; color: var(--fg); padding: 0 22px; border-radius: var(--r-pill); white-space: nowrap; }
.tab.on { background: var(--fg); color: var(--bg); }
.tabs .count { margin-left: auto; font-size: var(--t-m); font-variant-numeric: tabular-nums; }
.agrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.acard { min-width: 0; display: flex; }
.acard a { flex: 1; min-width: 0; display: block; text-decoration: none; border-radius: var(--r-l); overflow: hidden; background: var(--bg2); }
.acard a:hover { background: var(--bg3); }
.apic, .acover { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.apic span, .acover span { font-size: 40px; font-weight: 600; color: var(--muted); }
.apic img, .acover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ainfo { padding: 10px 14px 14px; min-width: 0; }
.ainfo b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-size: var(--t-m); font-weight: 600; line-height: 1.28577; overflow: hidden; overflow-wrap: anywhere; }
.ainfo small { color: var(--muted); font-size: var(--t-xs); }
.pager { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 0; font-size: var(--t-m); font-variant-numeric: tabular-nums; }
.acover { aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; background: var(--bg2); }
.acover img { object-fit: contain; }
.atitle { margin: 24px 0 0; font-size: var(--t-title); line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.asset .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.asset .chip { text-decoration: none; }
.asset .chip:hover { color: var(--fg); }
.asset .license { margin-top: 16px; font-size: var(--t-m); }
.asset .btn small { font-size: var(--t-m); font-weight: 400; }
.extra { margin: -16px 0 24px; font-size: var(--t-m); color: var(--muted); }
.extra summary { cursor: pointer; }
.extra ul { margin: 8px 0 0; padding-left: 20px; }
.extra a { color: var(--muted); }
/* header on phones: the brand keeps its full size on one line, the nav gives way first (text links, then the button) */
@media (max-width: 439px) { nav a:not(.btn) { display: none; } }
@media (max-width: 369px) { nav { display: none; } }
@media (max-width: 640px) {
  .agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .asearch { flex-wrap: wrap; }
  .asearch input[type=search] { flex: 1 1 100%; }
  nav a:not(.btn):nth-child(3) { display: none; }
  .asearch select { max-width: none; flex: 1; }
  .seg { padding: 4px; }
  .tab { font-size: var(--t-m); line-height: 36px; padding: 0 15px; }
}
