/* The campfire: private discussions and the site's social links. */
.forum-list { display: grid; gap: 14px; }
.forum-row {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 20px; align-items: center; padding: 22px;
  background: linear-gradient(120deg, #26291f, var(--panel) 45%);
  border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; color: var(--text);
}
.forum-row:hover { color: var(--text); border-color: var(--gold); }
.forum-symbol { color: var(--gold); font-size: 2rem; text-align: center; }
.forum-summary, .forum-post > *, .forum-post header > * { min-width: 0; }
.forum-summary > b { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; margin-bottom: 8px; }
.forum-summary small { display: block; }
.forum-summary .chips { margin-bottom: 10px; }
.forum-count { text-align: center; min-width: 44px; }
.forum-count > * { display: block; }
.forum-count b { color: var(--gold); font-size: 1.4rem; }
.forum-editor { min-height: 240px; }
.forum-post header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 22px; }
.forum-post header a { margin-left: auto; font-size: .78rem; }
.forum-post p:last-child { margin-bottom: 0; }
.forum-owner { border-left: 3px solid var(--gold); }
.forum-owner header b { color: var(--gold); }
.site-footer .social-links { flex-basis: 100%; gap: 12px; }
.site-footer .social-links a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 24px; color: var(--text);
}
.social-links svg { flex: none; }
.site-footer .social-links a:hover { border-color: var(--gold); color: var(--gold); background: #242b25; }

/* Hero motion also works without the optional page enhancements. */
.hero-atmosphere { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-atmosphere span { display: none; position: absolute; bottom: -12px; width: 4px; height: 4px; border-radius: 50%; background: #ffe6a8; box-shadow: 0 0 12px 3px #dfbc7750; }
.hero-atmosphere span:nth-child(1) { left: 12%; animation-delay: -2s; }
.hero-atmosphere span:nth-child(2) { left: 32%; animation-delay: -7s; animation-duration: 13s; }
.hero-atmosphere span:nth-child(3) { left: 51%; animation-delay: -4s; }
.hero-atmosphere span:nth-child(4) { left: 68%; animation-delay: -9s; animation-duration: 14s; }
.hero-atmosphere span:nth-child(5) { left: 82%; animation-delay: -1s; }
.hero-atmosphere span:nth-child(6) { left: 93%; animation-delay: -6s; animation-duration: 12s; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art { animation: hero-drift 22s ease-in-out infinite alternate; }
  .hero-atmosphere span { display: block; animation-name: ember-rise; animation-duration: 11s; animation-timing-function: linear; animation-iteration-count: infinite; }
  .hero-content > * { animation: arrive .75s ease-out both; }
  .hero-content h1 { animation-delay: .1s; }
  .hero-content .hero-lead { animation-delay: .2s; }
  .hero-content .actions { animation-delay: .3s; }
  .hero-content .hero-meta { animation-delay: .4s; }
  .button, button, .prize-card, .race-emblem, .forum-row, .social-links a {
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
  }
  .button:active, button:active { transform: translateY(1px); }
  @media (hover: hover) and (pointer: fine) {
    .button:hover, .prize-card:hover, .forum-row:hover, .social-links a:hover { transform: translateY(-3px); box-shadow: 0 8px 24px #0003; }
    .race-row:hover .race-emblem { transform: translateY(-6px) rotate(3deg); }
  }
}
@keyframes hero-drift { from { transform: scale(1.02); } to { transform: scale(1.08) translateX(-1%); } }
@keyframes ember-rise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .75; } 75% { opacity: .4; } 100% { transform: translate(-24px, -580px); opacity: 0; } }
@keyframes arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere { display: none; }
}
@media (max-width: 640px) {
  .site-footer .social-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 380px; }
  .site-footer .social-links a { flex-direction: column; justify-content: center; gap: 4px; min-width: 0; padding: 10px 4px; border-radius: 12px; }
  .forum-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 18px; }
  .forum-symbol { display: none; }
  .forum-count { font-size: .8rem; }
  .forum-post header a { margin-left: 0; min-height: 44px; display: inline-flex; align-items: center; }
}

/* A shared visual rhythm on every page, including touch screens. */
.page-shell { position: relative; background-image: radial-gradient(ellipse at 20% 0, #dfbc770b, transparent 55%); }
.page-shell::before { content: ""; position: absolute; top: 0; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, transparent, #dfbc7790, transparent); }
.page-shell h1 { color: #f4ead7; text-shadow: 0 3px 28px #dfbc771a; }
.page-shell > h1::after, .board-head h1::after, .release-heading h1::after { content: ""; display: block; width: 72px; height: 3px; margin-top: 18px; background: linear-gradient(90deg, var(--gold), #a78bfa); transform-origin: left; }
.panel, .forum-row, .release-entry, .feedback-topic, .step-card { box-shadow: 0 14px 35px #0002, inset 0 1px 0 #ffffff05; }
.panel:focus-within { border-color: #8d794b; box-shadow: 0 0 0 1px #dfbc7722, 0 16px 40px #0003; }
.reading-progress { position: fixed; top: 0; left: 0; z-index: 20; width: 100%; height: 3px; background: linear-gradient(90deg, #a78bfa, #dfbc77, #ffe9b1); box-shadow: 0 0 10px #dfbc7780; transform-origin: left; transform: scaleX(0); pointer-events: none; }
.site-header nav a { position: relative; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { transform: scaleX(1); }
.button:active, button:active { box-shadow: 0 0 0 4px #dfbc7733; }
@media (prefers-reduced-motion: no-preference) {
  .page-shell { animation: page-arrive .65s cubic-bezier(.2,.7,.2,1) both; }
  main .motion-card { transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease, border-color .2s ease; transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms; }
  .motion-pending { opacity: 0; transform: translateY(24px); }
  .motion-visible { opacity: 1; }
  .site-header nav a::after { transition: transform .22s ease; }
  .panel, input, select, textarea { transition: border-color .2s ease, box-shadow .2s ease; }
  .page-shell > .eyebrow::before { content: ""; display: inline-block; width: 24px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 12px; animation: gold-line .8s ease both; }
  .page-shell > h1::after, .board-head h1::after, .release-heading h1::after { animation: heading-line .8s .12s ease both; }
}
@keyframes page-arrive { from { opacity: .1; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gold-line { from { width: 0; opacity: 0; } to { width: 24px; opacity: 1; } }
@keyframes heading-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
html.animations-paused *, html.animations-paused *::before, html.animations-paused *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.animations-paused .motion-pending { opacity: 1; transform: none; }

.leaderboard tbody td:nth-child(2) { text-transform: capitalize; }

/* Alpha Desk: clear actions and individual onboarding steps. */
.desk-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:24px 0; }
.desk-stats .panel { margin:0; padding:22px; text-decoration:none; color:var(--text); }
.desk-stats span { display:block; color:var(--muted); font-size:.8rem; }
.desk-stats b { display:block; font-size:2.2rem; color:var(--gold); }
.desk-filters { display:flex; flex-wrap:wrap; gap:16px; align-items:end; margin:30px 0 12px; }
.desk-filters label { flex:1 1 210px; min-width:0; margin:0; }
.desk-filters input,.desk-filters select { width:100%; height:3.25rem; }
.desk-filters>button { height:3.25rem; margin:0; }
.desk-filters>a { display:inline-flex; align-items:center; height:3.25rem; padding:0; }
.tester-heading,.tester-next { display:flex; justify-content:space-between; align-items:start; gap:18px; }
.tester-heading>div,.tester-next>div { min-width:0; }
.tester-heading h2 { margin-bottom:10px; }
.tester-heading .status,.tester-next .chip { flex-shrink:0; }
.tester-next { padding:18px; margin:20px 0; border-left:3px solid var(--gold); background:#272a23; }
.tester-next p { margin:5px 0 0; }
.tester-next .eyebrow { font-size:.62rem; }
.tester-steps { list-style:none; padding:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.tester-steps li { margin:0; padding:15px; border:1px solid var(--line); background:#111b1d; border-radius:5px; font-size:.78rem; }
.tester-steps li>* { display:block; }
.tester-steps b { margin:8px 0; color:var(--text); }
.tester-steps .step-state { font-size:.65rem; text-transform:uppercase; letter-spacing:1px; color:var(--gold); }
.tester-steps .step-done { border-top:3px solid var(--green); }
.tester-steps .step-done .step-state { color:var(--green); }
.tester-steps .step-optional { opacity:.75; }
.desk-details { margin:18px 0; border-top:1px solid var(--line); padding-top:15px; }
.desk-details summary { cursor:pointer; color:var(--gold); padding:8px 0; }
.desk-details[open] summary { margin-bottom:15px; }
.owner-notes { font-size:.78rem; color:var(--muted); }
.tester-card { scroll-margin-top:20px; }
@media(max-width:1050px) { .tester-steps { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:650px) { .desk-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } .tester-steps { grid-template-columns:1fr; } .tester-heading,.tester-next { flex-wrap:wrap; } .tester-card { padding:20px; } .desk-stats .panel { padding:15px; } }

.admin-nav a[aria-current="page"] { color:var(--gold); border-bottom:2px solid var(--gold); }
