/* NOBK Online forums (/forums/), loaded after site.css + topbar.css. Uses the theme variables,
   so every board takes its game's colours. */
.forum { padding-top: 22px; padding-bottom: 60px; }
.ftabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 22px; scrollbar-width: thin; }
.ftab { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 12px 8px 11px; white-space: nowrap; text-decoration: none;
  font: 700 15px/1 var(--head); letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ftab span { overflow: hidden; text-overflow: ellipsis; }
.ftab img { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.ftab small { font: 600 11px/1 var(--body); color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 3px 7px; letter-spacing: 0; }
.ftab:hover { color: var(--text); }
.ftab.on { color: var(--text); border-bottom-color: var(--accent); }
.fhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.fhead h1 { margin: 0; }
.fhead .lead { margin: 6px 0 0; }

/* type tag left of the title */
.ftype { flex: none; display: inline-block; width: 104px; box-sizing: border-box; text-align: center; padding: 5px 8px; border-radius: 6px;
  font: 800 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.t-crash { background: #e4202a; color: #fff; }
.t-bug { background: #f59e2a; color: #1a1004; }
.t-suggestion { background: #2f6fd6; color: #fff; }
.t-feedback { background: #3d3d46; color: #f2f2f4; }
.t-question { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

.flist { padding: 0; overflow: hidden; }
.frow { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.frow:first-child { border-top: 0; }
.frow:hover { background: var(--panel-2); }
.frow.pinned { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.fmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ftitle { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.fat { display: inline-flex; align-items: center; gap: 3px; }
.fic { display: inline-flex; vertical-align: -2px; margin-right: 5px; color: var(--accent); }
.forum svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.frep { flex: none; width: 140px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.frep b { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; }
.frep small { font-size: 11.5px; color: var(--muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }
.flist .empty { padding: 30px 18px; }

/* thread */
.fback { display: inline-block; margin-bottom: 12px; color: var(--muted); font-weight: 600; text-decoration: none; }
.fback:hover { color: var(--text); }
.fthead { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.fthead h1 { margin: 0; text-transform: none; letter-spacing: 0; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; overflow-wrap: anywhere; }
.fpost { padding: 16px 20px; margin-bottom: 12px; }
.fpost.first { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.fpost header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.fwho { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.fwho a { color: var(--text); text-decoration: none; }
.fwho a:hover { color: var(--accent-2); }
.fwho .avatar { width: 28px; height: 28px; }
.fstaff { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); border-radius: 5px; padding: 3px 6px; }
.facts { margin-left: auto; display: flex; gap: 12px; }
.flink { background: none; border: 0; padding: 4px 0; color: var(--muted); font: 600 12.5px var(--body); cursor: pointer; }
.flink:hover { color: var(--accent-2); }
.fbody { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.fbody a { color: var(--accent-2); }
.fcount { font-size: 18px; margin: 24px 0 12px; }
.fimgs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.fimgs a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.fimgs img { display: block; max-width: min(100%, 420px); max-height: 300px; width: auto; height: auto; }
.flog { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text); text-decoration: none; }
.flog > svg { width: 20px; height: 20px; }
.fln { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fln b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fln small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.fln .bad { color: #ff6b74; } .fln .warn { color: #f5b94a; }
.fvid { margin-top: 12px; max-width: 640px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.fvid iframe { width: 100%; height: 100%; border: 0; display: block; }

/* forms (site.css gives every label / input a top margin) */
.fform label, .fform input, .fform select, .fform textarea, .fbar > * { margin: 0; }
.fbar label.btn { display: inline-flex; font-size: 13px; }
.fform { display: grid; gap: 14px; padding: 18px 20px; }
.frow2 { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.frow2 > label { flex: 0 1 240px; }
.frow2 > div { flex: 1 1 420px; }
.ffield { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.flabel { font-size: 13px; font-weight: 700; padding: 0; }
.fform input[type="url"], .fform input:not([type]), .fform select, .fform textarea { width: 100%; box-sizing: border-box; }
.fform textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.ftypes { display: flex; flex-wrap: wrap; gap: 8px; }
.ftpick { position: relative; display: inline-flex; cursor: pointer; }
.ftpick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ftpick span { display: inline-flex; align-items: center; justify-content: center; min-width: 104px; height: 40px; padding: 0 12px; border-radius: 8px;
  font: 800 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; opacity: .5; box-sizing: border-box; border: 2px solid transparent; }
.ftpick.t-crash span { background: #e4202a; color: #fff; } .ftpick.t-bug span { background: #f59e2a; color: #1a1004; }
.ftpick.t-suggestion span { background: #2f6fd6; color: #fff; } .ftpick.t-feedback span { background: #3d3d46; color: #f2f2f4; }
.ftpick.t-question span { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.ftpick input:checked + span { opacity: 1; border-color: var(--text); }
.ftpick input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.ftpick:hover span { opacity: .85; }
.fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fbar .btn.primary { margin-left: auto; }
.fbar label.btn { cursor: pointer; }
.fatt { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 8px 6px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; }
.fchip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.fchip small { color: var(--muted); }
.fchip.up { opacity: .7; }
.fchip button { background: none; border: 0; color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; padding: 0 4px; }
.fchip button:hover { color: var(--accent-2); }
.fvids { display: grid; gap: 10px; }
.fvids:empty { display: none; }
.fhint { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.fform .ferr { margin: 0; color: #ff6b74; font-weight: 600; }

@media (max-width: 980px) { .ftabs { grid-auto-columns: max-content; } .ftab { padding: 12px 12px 11px; } }
@media (max-width: 640px) {
  .frow { flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; }
  .fmain { flex-basis: calc(100% - 110px); }
  .frep { width: auto; flex-direction: row; align-items: center; margin-left: 104px; }
  .frep small { display: none; }
  .ftitle { white-space: normal; }
  .fpost { padding: 14px; }
  .ftpick span { min-width: 0; }
}
