/* Community pages: Most Wanted (list, a game), the account page, the credits. Tokens from tokens.css. */
.community-head { position: relative; padding-top: clamp(32px, 6vw, 56px); }
.community-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.community-head h1 { margin-bottom: .3em; }
.account-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; min-height: 36px; }
.account-name { display: inline-flex; align-items: center; gap: 6px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-empty { display: inline-grid; place-items: center; background: var(--raised); border: 1px solid var(--border); font-weight: 600; font-size: .8rem; color: var(--text2); }
.comment-head .avatar { width: 24px; height: 24px; }
.badge.supporter { color: var(--accent2); border-color: color-mix(in srgb, var(--accent2) 45%, var(--border)); }
.platform-tag { display: inline-block; font: 600 .75rem/1 var(--font); padding: 5px 8px; border-radius: 6px; background: var(--raised); border: 1px solid var(--border); color: var(--text); white-space: nowrap; }
.mw-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.mw-toolbar .search { flex: 1 1 240px; }
.sort, .tool-row select, .field select { font: inherit; font-size: .9rem; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); min-height: 44px; padding: 0 12px; }
.sort { border-radius: var(--r); padding: 0 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.filter { font: 500 .85rem/1 var(--font); color: var(--text2); background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.filter[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.filter .n { font-size: .75rem; font-variant-numeric: tabular-nums; color: var(--text2); }
.wish-list { display: grid; gap: 12px; margin-top: 16px; }
.wish-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); transition: border-color .2s; }
.wish-card:hover { border-color: var(--border-strong); }
.wish-card.is-pending { border-style: dashed; }
.wish-cover .cover { width: 64px; }
.wish-cover .art-title { font-size: .5rem; }
.wish-cover .art-tag { display: none; }
.wish-main { min-width: 0; }
.wish-main h3 { margin: 6px 0 4px; font-size: 1.05rem; }
.wish-main h3 a { color: var(--text); text-decoration: none; }
.wish-main h3 a:hover { color: var(--accent); }
.wish-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.year { font-weight: 400; font-size: .85em; }
.needs { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 4px 0 0; font-size: .85rem; color: var(--text2); }
.need { font-size: .74rem; padding: 3px 7px; border-radius: 6px; background: color-mix(in srgb, var(--accent2) 12%, var(--surface)); color: var(--text); }
.vote-box { display: flex; align-items: center; gap: 12px; }
.vote-numbers { display: grid; justify-items: end; line-height: 1.15; }
.vote-count { font: 650 1.25rem/1 var(--font); letter-spacing: -0.02em; }
.vote-label { font-size: .72rem; color: var(--text2); }
.vote-score { font: .75rem var(--font); font-variant-numeric: tabular-nums; color: var(--text2); }
.vote-button { min-width: 74px; min-height: 40px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 .9rem/1 var(--font); cursor: pointer; }
.vote-button[aria-pressed="true"] { border-color: var(--accent); color: var(--on-accent); background: var(--accent); }
.vote-button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 560px) {
  .wish-card { grid-template-columns: 52px minmax(0, 1fr); }
  .wish-cover .cover { width: 52px; }
  .wish-card .vote-box { grid-column: 1 / -1; justify-content: space-between; }
  .vote-numbers { justify-items: start; grid-auto-flow: column; gap: 6px; align-items: baseline; }
}
.empty { padding: 24px 0; }
.wish-head { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; margin-top: 12px; }
.wish-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 .4em; }
@media (max-width: 560px) { .wish-head { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } }
.wish-text p { margin: 0 0 .8em; }
.wish-section { margin-top: 40px; }
.requests { display: grid; gap: 14px; }
.request-card { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 10px; scroll-margin-top: 80px; }
.request-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.request-head h3 { margin: 0; font-size: 1.05rem; }
.request-head .grow { flex: 1; }
.request-card p { margin: 0; }
.history summary { cursor: pointer; font-size: .88rem; color: var(--text2); }
.timeline { list-style: none; margin: 10px 0 0; display: grid; gap: 10px; border-left: 2px solid var(--border); padding: 0 0 0 14px; }
.timeline p { margin: 4px 0 0; font-size: .9rem; color: var(--text2); }
.comments { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.comment { border: 1px solid var(--border); border-radius: var(--r); background: var(--card); padding: 12px 14px; }
.comment.deleted { background: transparent; border-style: dashed; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.comment-body p { margin: 0 0 .6em; overflow-wrap: anywhere; }
.comment-tools { display: flex; flex-wrap: wrap; gap: 12px; }
.link-button { border: 0; background: none; padding: 0; color: var(--text2); font: 500 .82rem var(--font); cursor: pointer; }
.link-button:hover { color: var(--text); text-decoration: underline; }
.link-button.danger, .button.danger { color: var(--bad); }
textarea, .tool-row input, .field input { font: inherit; font-size: .92rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 10px; width: 100%; }
textarea { resize: vertical; min-height: 90px; }
.comment-form { display: grid; gap: 10px; }
.comment-form .actions, .request-card .actions { margin-top: 0; }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tool-row input { flex: 1 1 160px; width: auto; min-height: 36px; padding: 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: block; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: .85rem; font-weight: 500; }
.chip input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.field-row { display: grid; gap: 12px; grid-template-columns: 2fr 1fr; }
.suggest-dialog { width: min(620px, calc(100vw - 24px)); }
.combo { position: relative; }
.autocomplete { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); box-shadow: 0 12px 30px rgb(0 0 0 / .3); max-height: 260px; overflow: auto; }
.autocomplete li { padding: 7px 9px; border-radius: 6px; cursor: pointer; font-weight: 400; }
.autocomplete li:hover, .autocomplete li:focus { background: var(--hover); outline: none; }
.similar { font-size: .9rem; font-weight: 400; }
.similar p { margin: 0 0 4px; }
.similar-list li { margin: 4px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; padding: 10px 18px; border-radius: var(--r); background: var(--card); color: var(--text); border: 1px solid var(--border); box-shadow: 0 10px 30px rgb(0 0 0 / .3); font-size: .9rem; }
.toast.error { border-color: var(--bad); }
.toast.warn { border-color: var(--warn); }

/* Account page: linked sign-ins, supporter status */
.account-card { margin-top: 16px; }
.account-card h2, .account-stored h2 { font-size: 1.1rem; margin: 0 0 6px; }
.identity-list { margin: 12px 0 0; display: grid; gap: 0; }
.identity-row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.identity-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.identity-who .linked { color: var(--ok); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.identity-row .tool-row { justify-content: flex-end; }
.account-name a { color: inherit; text-decoration: none; }
.account-name a:hover { text-decoration: underline; }
@media (max-width: 560px) { .identity-row { grid-template-columns: 1fr; } .identity-row .tool-row { justify-content: flex-start; } }

/* Fix pages: the customized-download gate, shared presets, the changed count */
.gate { display: grid; gap: 8px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.share-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.share-link { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.share-link input { flex: 1; min-width: 0; }
.changed-count { white-space: nowrap; }
.ask .field { display: grid; gap: 4px; margin: 10px 0; }
.ask .field select { min-height: 38px; }

/* Credits (/credits/): stats, then the roll; "Kept alive by" on fix pages */
.credits-stats { display: grid; gap: 14px; margin-top: 22px; }
.credits-goal { display: grid; gap: 6px; }
.credits-bar { height: 10px; border-radius: 999px; background: var(--raised); border: 1px solid var(--border); overflow: hidden; }
.credits-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.credits-goal-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; font-variant-numeric: tabular-nums; }
.credits-platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin: 0; }
.credits-platforms li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-sm); }
.credits-platforms b { font-size: 1.3rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.credits-wrap { padding-bottom: 72px; }
.credits-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.credits-tools input { flex: 1 1 220px; max-width: 320px; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: var(--r); min-height: 40px; padding: 0 14px; }
.credits-viewport { position: relative; border-radius: var(--r); outline-offset: 4px; }
.credits.rolling .credits-viewport { height: min(70vh, 640px); overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.credits.rolling .credits-roll { animation: credits-roll var(--duration, 60s) linear var(--delay, 0s) infinite; will-change: transform; }
.credits.rolling .credits-viewport:hover .credits-roll, .credits.rolling .credits-viewport:focus-within .credits-roll, .credits.rolling .credits-viewport:focus .credits-roll { animation-play-state: paused; }
@keyframes credits-roll { from { transform: translateY(var(--from, 100%)); } to { transform: translateY(var(--to, -100%)); } }
.credits-tier { text-align: center; margin: 0 auto 44px; max-width: 900px; }
.credits-tier h2 { font-size: .9375rem; font-weight: 600; color: var(--text2); letter-spacing: 0; margin: 0 0 14px; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.credits-tier h2::after { content: ""; width: 36px; height: 3px; border-radius: 3px; background: var(--tier, var(--accent)); }
.credits-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0; }
.credits-names li { font-size: 1.05rem; color: var(--text); }
.credits-tier:first-child .credits-names li { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.credits-thanks { text-align: center; color: var(--text2); margin: 24px 0 0; font-size: 1.05rem; }
.kept-alive-wrap { padding: 8px 0 36px; }
.kept-alive { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; color: var(--text2); font-size: .8125rem; text-decoration: none; }
.kept-alive:hover .kept-alive-head { color: var(--text); text-decoration: underline; }
.kept-alive-head { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .credits-roll { animation: none !important; } }
.community-head + .section, .community-head + .credits-wrap { padding-top: 28px; }

/* Most Wanted as a shelf of covers: cover, title, votes */
.wish-list { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 26px 16px; }
@media (max-width: 420px) { .wish-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }
.wish-card, .wish-card:hover { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; box-shadow: none; }
.wish-card.is-pending .cover { outline: 1.5px dashed var(--warn); outline-offset: 2px; }
.wish-cover .cover, .wish-card .wish-cover .cover { width: 100%; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; }
.wish-cover:hover .cover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }
.wish-main h3 { margin: 4px 0 2px; font-size: 1rem; line-height: 1.25; }
.wish-meta { gap: 4px; }
.needs { gap: 4px; }
.need { font-size: .7rem; }
.wish-card .vote-box, .wish-card .vote-box:only-child { margin-top: auto; justify-content: space-between; grid-column: auto; }
.wish-card .vote-numbers { justify-items: start; grid-auto-flow: row; }
.wish-head-cover .cover { width: 100%; border-radius: var(--r); overflow: hidden; }
.wish-cover { display: block; }
.wish-card, .wish-card:hover { align-items: stretch; }

/* Most Wanted page: the name is on the cover; votes pinned to the bottom so the rows line up */
.wish-card .wish-main { display: grid; gap: 4px; align-content: start; min-height: 64px; }
.wish-year { margin: 0; }
.wish-card .vote-box { margin-top: auto; }

/* Credits: every supporter at once, as a cloud (credits.js paintCloud) */
.credits-wrap { max-width: var(--wrap) !important; }
.credits.cloud-page { display: grid; gap: 14px; }
.cloud-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.cloud-tier { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--pill); border: 1px solid var(--border); background: var(--card); color: var(--text); font: 600 .82rem/1 var(--font); cursor: pointer; }
.cloud-tier .n { color: var(--text2); font-weight: 500; font-variant-numeric: tabular-nums; }
.cloud-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tier, var(--accent)); box-shadow: 0 0 8px var(--tier, var(--accent)); }
.cloud-tier[aria-pressed="false"] { opacity: .45; }
.cloud-tier[aria-pressed="false"] .cloud-dot { box-shadow: none; }
.cloud { position: relative; height: min(72vh, 640px); min-height: 420px; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--border);
  background: radial-gradient(60% 70% at 50% 50%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), #0B0B0F; outline-offset: 3px; }
:root:not([data-theme="dark"]) .cloud { background: radial-gradient(60% 70% at 50% 50%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%), #F7F7F9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cloud { background: radial-gradient(60% 70% at 50% 50%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), #0B0B0F; } }
@media (max-width: 560px) { .cloud { height: 680px; } }
.cloud-name { position: absolute; white-space: nowrap; font-weight: 650; line-height: 1.15; letter-spacing: -0.01em; color: color-mix(in srgb, var(--tier) 72%, #FFFFFF); text-shadow: 0 0 16px color-mix(in srgb, var(--tier) 35%, transparent);
  opacity: 0; transition: opacity .5s ease, transform .3s var(--ease), color .2s, filter .2s; cursor: default; }
:root:not([data-theme="dark"]) .cloud-name { color: color-mix(in srgb, var(--tier) 62%, #101014); text-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cloud-name { color: color-mix(in srgb, var(--tier) 72%, #FFFFFF); text-shadow: 0 0 16px color-mix(in srgb, var(--tier) 35%, transparent); } }
.cloud.ready .cloud-name { opacity: 1; }
.cloud.drift .cloud-name { animation: cloud-drift 9s ease-in-out var(--d, 0s) infinite alternate; }
@keyframes cloud-drift { from { transform: translate(0, 0); } to { transform: translate(var(--dx, 2px), var(--dy, 2px)); } }
.cloud .cloud-name.dim { opacity: .14; }
.cloud.focusing .cloud-name:not(.on) { opacity: .3; }
.cloud .cloud-name.on { opacity: 1; transform: scale(1.12); z-index: 2; filter: brightness(1.15); }
.cloud .cloud-name.match { outline: 2px solid var(--tier); outline-offset: 2px; border-radius: 4px; }
.cloud-tip { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 8px)); padding: 6px 10px; border-radius: var(--r-sm); background: var(--card); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .82rem; font-weight: 600; white-space: nowrap; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .cloud.drift .cloud-name { animation: none; } }
.cloud-list:not(.visually-hidden) { display: grid; gap: 8px; }

/* Credits order: title, the cloud (above the fold on desktop), then the goal and the platforms, one width */
.credits-head { padding-top: clamp(24px, 4vw, 40px); }
.credits-head h1 { margin-bottom: .15em; }
.credits-head .lead { margin: 0; max-width: none; }
.credits-wrap { padding-top: 16px; padding-bottom: 0; }
.credits.cloud-page { gap: 10px; }
.credits.cloud-page .credits-tools { margin: 0; }
.cloud { height: clamp(420px, calc(100vh - 380px), 620px); }
@media (max-width: 560px) { .cloud { height: 680px; } }
.credits-stats-wrap { padding-top: 28px; }
.credits-stats-wrap .credits-stats { margin-top: 0; }
.credits-thanks { margin: 12px 0 0; }

