/* Forum and guides (specs/forums-and-guides.md). One stylesheet, served once and cached, so a
   long topic never repeats its CSS per post. Colour tokens come from standard_navigation.html.
   Mobile first in spirit: every row works at 360px, tap targets are 40px or more, and nothing
   wide scrolls the page. */

.fm { --fm-glass: rgba(20,22,26,0.86); --fm-glass-2: rgba(28,31,35,0.92); --fm-line: rgba(255,255,255,0.08);
  --fm-line-2: rgba(255,255,255,0.14); --fm-wash: rgba(212,165,116,0.14); --fm-edge: rgba(212,165,116,0.45);
  --fm-good: #7FB069; --fm-warn: #E5B57F; --fm-bad: #E5484D; --fm-radius: 14px; --fm-body: #D9DAE0; }
.fm a { color: inherit; }
.fm :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.fm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- page head */
.fm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.fm-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 6px; }
.fm-eyebrow::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--accent); }
.fm-head h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.15; }
.fm-lede { color: var(--text-2); font-size: 14px; margin-top: 6px; max-width: 640px; }
.fm-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fm-crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.fm-crumbs a { color: var(--text-2); }
.fm-crumbs a:hover { color: var(--accent); }
.fm-crumbs span[aria-hidden] { opacity: .5; }

/* ---------------------------------------------------------------- buttons and inputs */
.fm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--accent); background: var(--accent); color: #0E0F11 !important; font-size: 13px; font-weight: 700; letter-spacing: .2px;
  cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s, border-color .15s; text-decoration: none; }
.fm-btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.fm-btn:active { transform: translateY(1px); }
.fm-btn[disabled] { opacity: .5; cursor: default; }
.fm-btn-ghost { background: rgba(255,255,255,0.06); border-color: var(--fm-line-2); color: var(--text) !important; font-weight: 600; }
.fm-btn-ghost:hover { background: rgba(255,255,255,0.11); border-color: var(--border-hover); }
.fm-btn-quiet { background: transparent; border-color: transparent; color: var(--text-2) !important; font-weight: 600; }
.fm-btn-quiet:hover { background: rgba(255,255,255,0.07); color: var(--text) !important; }
.fm-btn-danger { background: transparent; border-color: rgba(229,72,77,.5); color: #F2A3A5 !important; }
.fm-btn-danger:hover { background: rgba(229,72,77,.14); }
.fm-btn-sm { min-height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.fm-btn-icon { width: 40px; padding: 0; }
.fm-input, .fm-select, .fm-textarea { width: 100%; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--fm-line-2);
  background: rgba(14,15,17,0.7); color: var(--text); font: inherit; font-size: 14px; transition: border-color .15s; }
.fm-textarea { padding: 10px 12px; min-height: 120px; resize: vertical; line-height: 1.55; }
.fm-input:focus, .fm-select:focus, .fm-textarea:focus { outline: none; border-color: var(--accent); }
.fm-select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.fm-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.fm-search { position: relative; min-width: 220px; flex: 1 1 260px; max-width: 360px; }
.fm-search input { padding-left: 38px; }
.fm-search::before { content: ''; position: absolute; left: 13px; top: 50%; width: 12px; height: 12px; border: 2px solid var(--text-3); border-radius: 50%; transform: translateY(-62%); pointer-events: none; }
.fm-search::after { content: ''; position: absolute; left: 24px; top: 24px; width: 2px; height: 6px; background: var(--text-3); transform: rotate(-45deg); pointer-events: none; }

/* ---------------------------------------------------------------- tabs, chips, pills */
.fm-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 2px 10px; margin-bottom: 8px; }
.fm-tabs::-webkit-scrollbar { display: none; }
.fm-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--fm-line);
  background: var(--fm-glass); color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.fm-tab:hover { color: var(--text); border-color: var(--border-hover); }
.fm-tab.on { background: var(--fm-wash); border-color: var(--accent); color: var(--text); }
.fm-tab img { width: 18px; height: 18px; object-fit: contain; }
.fm-modes .fm-tab svg { width: 15px; height: 15px; flex: none; stroke: var(--accent); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* Multi-select chips: they wrap instead of scrolling, so every mode stays in view. */
.fm-modes { flex-wrap: wrap; overflow: visible; padding: 2px 0 0; margin: 0; }
.fm-tab img.fm-cover { width: 16px; height: 24px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }
.fm-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #0E0F11; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.fm-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .3px;
  border: 1px solid var(--fm-line-2); color: var(--text-2); background: rgba(255,255,255,0.04); white-space: nowrap; }
.fm-pill img { width: 14px; height: 14px; object-fit: contain; }
.fm-pill-accent { color: var(--accent); border-color: var(--fm-edge); background: var(--fm-wash); }
.fm-pill-good { color: #A8D69A; border-color: rgba(127,176,105,.45); background: rgba(127,176,105,.12); }
.fm-pill-warn { color: var(--fm-warn); border-color: rgba(229,181,127,.45); background: rgba(229,181,127,.12); }
.fm-pill-muted { color: var(--text-3); }
.fm-pill-gold { color: #F5D90A; border-color: rgba(245,217,10,.45); background: rgba(245,217,10,.10); }

/* ---------------------------------------------------------------- layout */
.fm-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 24px; align-items: start; }
.fm-layout > * { min-width: 0; }
.fm-rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.fm-panel { background: var(--fm-glass); border: 1px solid var(--fm-line); border-radius: var(--fm-radius); padding: 18px; }
.fm-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.fm-panel-head h2, .fm-panel-head h3 { font-size: 12px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--text-3); }
.fm-panel-head a { font-size: 12px; color: var(--accent); }
.fm-section-title { font-size: 12px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--text-3); margin: 26px 0 12px; }

/* ---------------------------------------------------------------- spaces */
.fm-spaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fm-space { position: relative; display: flex; gap: 14px; padding: 16px; border-radius: var(--fm-radius); background: var(--fm-glass); border: 1px solid var(--fm-line);
  transition: border-color .15s, transform .15s, background .15s; }
.fm-space:hover { border-color: var(--fm-edge); background: var(--fm-glass-2); transform: translateY(-1px); }
.fm-space-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--fm-wash); border: 1px solid var(--fm-edge); }
.fm-space-icon img { width: 30px; height: 30px; object-fit: contain; }
.fm-space-icon-lg { flex-basis: 56px; width: 56px; height: 56px; }
/* A game space shows its box art at the box's own shape, not squeezed into the square. */
.fm-space-icon:has(> .fm-cover) { flex-basis: 36px; width: 36px; height: 54px; padding: 0; overflow: hidden; border-radius: 6px; background: #1C1F23; }
.fm-space-icon-lg:has(> .fm-cover) { flex-basis: 48px; width: 48px; height: 72px; border-radius: 8px; }
.fm-space-icon img.fm-cover { width: 100%; height: 100%; object-fit: cover; }
.fm-space-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fm-space-name { font-size: 15px; font-weight: 700; color: var(--text); }
.fm-space-desc { font-size: 12.5px; color: var(--text-2); margin-top: 2px; line-height: 1.4; }
.fm-space-meta { font-size: 11.5px; color: var(--text-3); margin-top: 8px; }

/* ---------------------------------------------------------------- topic rows */
.fm-list { background: var(--fm-glass); border: 1px solid var(--fm-line); border-radius: var(--fm-radius); overflow: hidden; }
.fm-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--fm-line); flex-wrap: wrap; }
.fm-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--fm-line); transition: background .12s; }
.fm-row:last-child { border-bottom: 0; }
.fm-row:hover { background: rgba(255,255,255,0.035); }
.fm-row-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text-2); line-height: 1.35; }
.fm-row-title a { color: inherit; }
.fm-row-title a::after { content: ''; position: absolute; inset: 0; }
.fm-row { position: relative; }
.fm-row.unread .fm-row-title { color: var(--text); font-weight: 700; }
.fm-row.unread .fm-row-title::before { content: ''; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(212,165,116,.18); }
.fm-row-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.fm-row-meta .fm-pill { position: relative; z-index: 1; }
.fm-row-excerpt { font-size: 13px; color: var(--text-3); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.fm-row-stats { display: flex; gap: 18px; align-items: center; color: var(--text-3); font-size: 12px; text-align: right; }
.fm-stat b { display: block; color: var(--text); font-size: 15px; font-weight: 700; }
.fm-row-last { display: flex; align-items: center; gap: 8px; min-width: 110px; justify-content: flex-end; }
.fm-pinned-icon { width: 14px; height: 14px; color: var(--accent); flex: 0 0 auto; }
.fm-empty { padding: 40px 20px; text-align: center; color: var(--text-3); }
.fm-empty-title { color: var(--text); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.fm-more { display: flex; justify-content: center; padding: 14px; }

/* ---------------------------------------------------------------- people */
.fm-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #2A2D33; flex: 0 0 auto; display: inline-block; }
.fm-avatar-initial { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #3A3D45, #2A2D33); color: var(--text); font-weight: 700; font-size: 14px; }
.fm-name { font-weight: 700; color: var(--text); position: relative; z-index: 1; }
.fm-name:hover { text-decoration: underline; }
.fm-clan { color: var(--accent); font-weight: 600; }
.fm-deleted { color: var(--text-3); font-style: italic; }
.fm-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 9px; font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  background: rgba(255,255,255,0.08); color: var(--text-2); }
.fm-badge-guide { background: rgba(245,217,10,.14); color: #F5D90A; }
.fm-badge-op { background: var(--fm-wash); color: var(--accent); }
.fm-badge-mod { background: rgba(62,142,247,.16); color: #8DB8FA; }

/* ---------------------------------------------------------------- topic page */
.fm-topic-head { background: var(--fm-glass); border: 1px solid var(--fm-line); border-radius: var(--fm-radius); padding: 22px 24px; margin-bottom: 16px; }
.fm-topic-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.2; overflow-wrap: anywhere; }
.fm-topic-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.fm-topic-bar { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--fm-line); }
.fm-topic-bar .fm-meta { font-size: 12.5px; color: var(--text-3); display: flex; gap: 14px; flex-wrap: wrap; }
.fm-matchup { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.fm-crest { width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--fm-line-2); display: flex; align-items: center; justify-content: center; }
.fm-crest img { width: 44px; height: 44px; object-fit: contain; }
.fm-crest-initial { font-size: 20px; font-weight: 800; color: var(--text-2); }
.fm-matchup-vs { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--text-3); }
.fm-matchup-text { display: flex; flex-direction: column; gap: 2px; margin-left: 4px; }
.fm-matchup-text b { font-size: 15px; }
.fm-matchup-text span { font-size: 12.5px; color: var(--text-3); }

.fm-staleness { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-top: 14px; font-size: 13px; line-height: 1.45; }
.fm-staleness b { display: block; font-size: 13.5px; }
.fm-staleness.current, .fm-staleness.valid { background: rgba(127,176,105,.10); border: 1px solid rgba(127,176,105,.35); color: #C9E4BE; }
.fm-staleness.changed { background: rgba(229,181,127,.10); border: 1px solid rgba(229,181,127,.4); color: #F2D3AC; }
.fm-staleness.old, .fm-staleness.outdated { background: rgba(255,255,255,.05); border: 1px solid var(--fm-line-2); color: var(--text-2); }
.fm-staleness-icon { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; color: #0E0F11; margin-top: 1px; }
.current .fm-staleness-icon, .valid .fm-staleness-icon { background: var(--fm-good); }
.changed .fm-staleness-icon { background: var(--fm-warn); }
.old .fm-staleness-icon, .outdated .fm-staleness-icon { background: var(--text-3); }
.fm-changed-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.fm-posts { display: flex; flex-direction: column; gap: 12px; }
.fm-post { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 18px 20px; background: var(--fm-glass); border: 1px solid var(--fm-line); border-radius: var(--fm-radius); scroll-margin-top: 90px; }
.fm-post.fm-answer { border-color: rgba(127,176,105,.55); box-shadow: 0 0 0 1px rgba(127,176,105,.25) inset; }
.fm-post.fm-hidden-post { opacity: .7; }
.fm-post.fm-flash { animation: fm-flash 1.6s ease-out; }
@keyframes fm-flash { 0% { box-shadow: 0 0 0 3px rgba(212,165,116,.55); } 100% { box-shadow: 0 0 0 0 rgba(212,165,116,0); } }
.fm-post .fm-avatar { width: 48px; height: 48px; }
.fm-post-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.fm-post-head .fm-time, .fm-post-head .fm-edited { color: var(--text-3); font-size: 12px; }
.fm-post-num { margin-left: auto; color: var(--text-3); font-size: 12px; position: relative; z-index: 1; }
.fm-post-num:hover { color: var(--accent); }
.fm-post-content { margin-top: 8px; min-width: 0; }
.fm-post-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.fm-post-actions { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.fm-act { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border-radius: 8px; border: 0; background: transparent; color: var(--text-3); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fm-act:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.fm-act svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fm-removed { padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px dashed var(--fm-line-2); color: var(--text-3); font-size: 13px; font-style: italic; }
.fm-answer-tag { display: inline-flex; align-items: center; gap: 6px; color: #A8D69A; font-size: 12px; font-weight: 700; white-space: nowrap; flex: none; }
.fm-answer-tag svg { width: 14px; height: 14px; flex: none; }
.fm-gap { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-3); font-size: 12px; padding: 4px 0; }
.fm-gap::before, .fm-gap::after { content: ''; flex: 1; height: 1px; background: var(--fm-line); }
.fm-new-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; z-index: 60;
  transition: opacity .2s, transform .2s; }
.fm-new-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.fm-pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.fm-page { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--fm-line); background: var(--fm-glass); color: var(--text-2); font-size: 13px; font-weight: 600; }
.fm-page.on { border-color: var(--accent); color: var(--text); background: var(--fm-wash); }
.fm-page:hover { border-color: var(--border-hover); color: var(--text); }

/* ---------------------------------------------------------------- reactions */
.fm-reacts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fm-react { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 15px; border: 1px solid var(--fm-line-2); background: rgba(255,255,255,0.04);
  color: var(--text-2); font-size: 12.5px; font-weight: 700; cursor: pointer; transition: border-color .12s, background .12s, transform .12s; }
.fm-react:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.08); }
.fm-react:active { transform: scale(.94); }
.fm-react.mine { border-color: var(--accent); background: var(--fm-wash); color: var(--text); }
.fm-react img { width: 18px; height: 18px; }
.fm-react-add { width: 30px; padding: 0; justify-content: center; color: var(--text-3); }
.fm-react-add svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.fm-quick { display: inline-flex; gap: 2px; padding: 2px; border-radius: 16px; background: rgba(255,255,255,0.04); }
.fm-quick button { width: 30px; height: 30px; border-radius: 15px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .12s, background .12s; }
.fm-quick button:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px) scale(1.12); }
.fm-quick img { width: 19px; height: 19px; }
.fm-pop-who { font-size: 12px; color: var(--text-2); max-width: 240px; }

/* ---------------------------------------------------------------- post body */
.fm-body { color: var(--fm-body); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.fm-body > :first-child { margin-top: 0; }
.fm-body > :last-child { margin-bottom: 0; }
.fm-body p { margin: 0 0 14px; }
.fm-body h2 { font-size: 21px; font-weight: 700; color: var(--text); margin: 26px 0 10px; line-height: 1.3; }
.fm-body h3 { font-size: 18px; font-weight: 700; color: var(--text); margin: 22px 0 8px; line-height: 1.3; }
.fm-body h4 { font-size: 16px; font-weight: 700; color: var(--text); margin: 18px 0 6px; }
.fm-body ul, .fm-body ol { margin: 0 0 14px; padding-left: 24px; }
.fm-body li { margin: 0 0 5px; }
.fm-body strong { color: var(--text); font-weight: 650; }
.fm-body a:not(.fm-card):not(.fm-btn):not(.fm-zoom) { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(212,165,116,.4); text-underline-offset: 2px; }
.fm-body a:not(.fm-card):not(.fm-btn):not(.fm-zoom):hover { text-decoration-color: var(--accent); }
.fm-body hr { border: 0; border-top: 1px solid var(--fm-line-2); margin: 22px 0; }
.fm-body p, .fm-body ul, .fm-body ol, .fm-body h2, .fm-body h3, .fm-body h4 { max-width: 76ch; }
.fm-emoji { width: 1.35em; height: 1.35em; vertical-align: -0.3em; margin: 0 .05em; display: inline-block; }
.fm-body p:only-child > .fm-emoji:only-child { width: 2.6em; height: 2.6em; }
.fm-emote { object-fit: contain; }
.fm-mention { color: var(--accent) !important; font-weight: 700; text-decoration: none !important; background: var(--fm-wash); padding: 0 5px; border-radius: 5px; }
.fm-quote { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--accent); background: rgba(255,255,255,0.035); border-radius: 0 10px 10px 0; color: #C5C7CE; }
.fm-quote-head { font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.fm-quote-head a { color: var(--text-2) !important; text-decoration: none !important; }
.fm-quote .fm-body, .fm-quote p:last-child { margin-bottom: 0; }
.fm-spoiler { margin: 0 0 14px; border: 1px solid var(--fm-line-2); border-radius: 10px; background: rgba(255,255,255,0.03); }
.fm-spoiler summary { cursor: pointer; padding: 10px 14px; font-weight: 700; color: var(--text-2); font-size: 13.5px; list-style: none; }
.fm-spoiler summary::-webkit-details-marker { display: none; }
.fm-spoiler summary::before { content: '\25B8'; display: inline-block; margin-right: 8px; transition: transform .15s; }
.fm-spoiler[open] summary::before { transform: rotate(90deg); }
.fm-spoiler-body { padding: 0 14px 12px; }
.fm-figure { margin: 4px 0 16px; }
.fm-figure img { display: block; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--fm-line); background: #14161A; }
.fm-figure figcaption { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }

/* game object chips: inline, tappable, open a card */
.fm-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px 0 3px; margin: 0 1px; vertical-align: -6px; border-radius: 13px;
  border: 1px solid var(--fm-line-2); background: rgba(255,255,255,0.06); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; max-width: 100%; }
.fm-chip:hover { border-color: var(--fm-edge); background: var(--fm-wash); }
.fm-chip img { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; background: #1C1F23; }
.fm-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-chip:not(:has(img)) { padding-left: 9px; }
.fm-k-hero { border-color: rgba(245,217,10,.35); }
.fm-k-building { border-color: rgba(62,142,247,.35); }
.fm-k-power { border-color: rgba(142,78,198,.45); }
.fm-k-upgrade { border-color: rgba(70,167,88,.4); }

/* the object card (popover on desktop, sheet on phones) */
.fm-objcard { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; min-width: 260px; max-width: 340px; }
.fm-objcard-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #1C1F23; border: 1px solid var(--fm-line-2); }
.fm-objcard-name { font-weight: 800; font-size: 15px; color: var(--text); line-height: 1.25; }
.fm-objcard-kind { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
.fm-objcard-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fm-objstat { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 6px 8px; }
.fm-objstat span { display: block; font-size: 10px; color: var(--text-3); font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.fm-objstat b { font-size: 14px; color: var(--text); }
.fm-objcard-desc { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.fm-objcard-foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

/* ---------------------------------------------------------------- cards */
.fm-card { display: flex; gap: 14px; align-items: center; margin: 4px 0 16px; padding: 12px; border-radius: 12px; border: 1px solid var(--fm-line-2);
  background: rgba(14,15,17,0.55); color: var(--text); max-width: 640px; text-decoration: none !important; }
a.fm-card:hover { border-color: var(--fm-edge); background: rgba(212,165,116,0.07); }
.fm-card-missing { color: var(--text-3); font-size: 13px; font-style: italic; }
.fm-card-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #1C1F23; flex: 0 0 auto; }
.fm-round { border-radius: 50%; }
.fm-card-text { display: flex; flex-direction: column; min-width: 0; }
.fm-card-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--accent); }
.fm-card-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.fm-card-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.fm-card-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.fm-replay { align-items: stretch; padding: 0; overflow: hidden; }
.fm-replay-map { flex: 0 0 168px; position: relative; background: #14161A; }
.fm-replay-map img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-replay-noimg { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, #16181B 0 12px, #1A1C20 12px 24px); }
.fm-replay-body { padding: 12px 14px; min-width: 0; flex: 1; }
.fm-teams { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.fm-team { display: flex; flex-direction: column; gap: 4px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,0.04); min-width: 0; }
.fm-team.fm-won { background: rgba(127,176,105,.10); box-shadow: 0 0 0 1px rgba(127,176,105,.3) inset; }
.fm-vs { font-size: 11px; font-weight: 800; color: var(--text-3); letter-spacing: 1px; }
.fm-player { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.fm-player img { width: 20px; height: 20px; object-fit: contain; flex: 0 0 auto; }
.fm-player-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-win { width: 12px; height: 12px; border-radius: 3px; background: #F5D90A; clip-path: polygon(10% 30%, 30% 50%, 50% 15%, 70% 50%, 90% 30%, 80% 90%, 20% 90%); flex: 0 0 auto; }
.fm-delta { font-size: 11px; font-weight: 800; }
.fm-delta.up { color: #A8D69A; }
.fm-delta.down { color: #F2A3A5; }

.fm-video { position: relative; aspect-ratio: 16 / 9; max-width: 720px; margin: 4px 0 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--fm-line-2);
  background: radial-gradient(ellipse at center, #23262C 0%, #121316 75%); }
.fm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fm-video-play { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: pointer; }
.fm-play-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--accent); position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .15s; }
.fm-play-icon::after { content: ''; position: absolute; left: 27px; top: 21px; border-left: 20px solid #0E0F11; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.fm-video-play:hover .fm-play-icon { transform: scale(1.06); }
.fm-video-label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.fm-video-link { position: absolute; right: 10px; bottom: 8px; font-size: 11.5px; color: var(--text-3) !important; text-decoration: none !important; }

/* ---------------------------------------------------------------- maps */
.fm-map { margin: 4px 0 18px; max-width: 760px; }
.fm-map-frame { position: relative; aspect-ratio: 3470 / 2600; border-radius: 12px; overflow: hidden; border: 1px solid var(--fm-line-2); background: #101114; }
.fm-map-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.fm-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fm-halo { stroke: rgba(0,0,0,.55); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fm-map-label { fill: #F1F1F2; font-weight: 800; paint-order: stroke; stroke: rgba(0,0,0,.8); stroke-width: 10px; stroke-linejoin: round; font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif; }
.fm-marker { cursor: pointer; transition: opacity .2s; }
.fm-marker text { font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif; pointer-events: none; }
.fm-marker.pulse circle { animation: fm-pulse 1.2s ease-out 2; transform-box: fill-box; transform-origin: center; }
@keyframes fm-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.6); } 100% { transform: scale(1); } }
.fm-map figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 8px; font-size: 13px; }
.fm-map-name { font-weight: 700; color: var(--text); }
.fm-map-players { color: var(--text-3); font-size: 12px; }
.fm-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; padding: 0 !important; font-size: 13px; color: var(--text-2); }
.fm-legend li { display: flex; align-items: center; gap: 8px; margin: 0; }
.fm-swatch { width: 12px; height: 12px; border-radius: 4px; flex: 0 0 auto; }

/* ---------------------------------------------------------------- build orders */
.fm-build { margin: 4px 0 18px; max-width: 640px; border: 1px solid var(--fm-line-2); border-radius: 12px; overflow: hidden; background: rgba(14,15,17,0.5); }
.fm-build-head { padding: 10px 14px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--fm-line); background: rgba(212,165,116,0.06); }
.fm-steps { list-style: none; margin: 0 !important; padding: 0 !important; counter-reset: none; }
.fm-step { position: relative; display: grid; grid-template-columns: 28px 40px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 14px; margin: 0 !important; border-bottom: 1px solid var(--fm-line); transition: background .15s; }
.fm-step:last-child { border-bottom: 0; }
.fm-step.hl { background: rgba(212,165,116,0.12); }
.fm-step-n { font-size: 12px; font-weight: 800; color: var(--text-3); text-align: center; }
.fm-step-icon { width: 40px; height: 40px; padding: 0; border-radius: 10px; border: 1px solid var(--fm-line-2); background: #1C1F23; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fm-step-icon img { width: 100%; height: 100%; object-fit: cover; }
.fm-step-free { cursor: default; background: repeating-linear-gradient(135deg, #1C1F23 0 6px, #202328 6px 12px); }
.fm-step-main { display: flex; flex-direction: column; min-width: 0; }
.fm-step-what { font-weight: 700; color: var(--text); font-size: 14px; line-height: 1.3; }
.fm-step-extra, .fm-step-note { font-size: 12.5px; color: var(--text-3); line-height: 1.35; }
.fm-step-at { font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 700; color: var(--text-2); background: rgba(255,255,255,0.06); padding: 3px 8px; border-radius: 6px; }
.fm-step-marker { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #0E0F11; font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fm-step:not([data-marker]) .fm-step-marker { display: none; }
.fm-step[data-marker] { cursor: pointer; }

/* ---------------------------------------------------------------- guides */
.fm-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.fm-gcard { position: relative; display: flex; flex-direction: column; border-radius: var(--fm-radius); overflow: hidden; background: var(--fm-glass); border: 1px solid var(--fm-line); transition: border-color .15s, transform .15s; }
.fm-gcard:hover { border-color: var(--fm-edge); transform: translateY(-2px); }
.fm-gcard.featured { border-color: rgba(245,217,10,.45); }
.fm-gcard-top { position: relative; height: 112px; display: flex; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(135deg, rgba(212,165,116,0.16), rgba(20,22,26,0.2)); border-bottom: 1px solid var(--fm-line); overflow: hidden; }
.fm-gcard-top > img.fm-gcard-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: saturate(.85); }
.fm-gcard-top::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,15,17,.75), rgba(14,15,17,.05)); }
.fm-gcard-crests { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.fm-gcard-crests img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.fm-gcard-crests .fm-crest-initial { width: 52px; height: 52px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); }
.fm-gcard-crests .fm-matchup-vs { color: var(--text-2); text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.fm-gcard-flag { position: absolute; z-index: 1; left: 10px; top: 10px; display: flex; gap: 6px; }
.fm-gcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fm-gcard-title { font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--text); }
.fm-gcard-title a::after { content: ''; position: absolute; inset: 0; }
.fm-gcard-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.fm-gcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--text-3); }
.fm-score { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text-2); }
.fm-score-bar { width: 54px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1); overflow: hidden; }
.fm-score-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-muted), var(--accent)); }

.fm-filters { display: flex; flex-direction: column; gap: 14px; }
.fm-filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fm-tile { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 76px; min-height: 76px; padding: 8px; border-radius: 12px;
  border: 1px solid var(--fm-line-2); background: rgba(255,255,255,0.04); color: var(--text-2); font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color .12s, background .12s, transform .12s; text-align: center; }
.fm-tile:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.08); color: var(--text); }
.fm-tile.on { border-color: var(--accent); background: var(--fm-wash); color: var(--text); box-shadow: 0 0 0 1px var(--accent) inset; }
.fm-tile img { width: 40px; height: 40px; object-fit: contain; }
.fm-tile img.fm-cover { width: 32px; height: 48px; object-fit: cover; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.10); }
.fm-tile-wide { min-width: 140px; min-height: 64px; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 14px; }
.fm-tile-wide img { width: 30px; height: 30px; }
.fm-tile-wide img.fm-cover { width: 28px; height: 42px; }
.fm-tile small { display: block; font-weight: 500; color: var(--text-3); font-size: 11.5px; margin-top: 2px; }
.fm-tiles { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- composer */
.fm-composer { background: var(--fm-glass); border: 1px solid var(--fm-line); border-radius: var(--fm-radius); }
.fm-composer-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.fm-composer-title input { font-size: 20px; font-weight: 700; min-height: 48px; }
.fm-toolbar { position: sticky; top: 64px; z-index: 5; display: flex; gap: 2px; flex-wrap: wrap; align-items: center; padding: 6px; border-bottom: 1px solid var(--fm-line); background: var(--fm-glass-2); border-radius: var(--fm-radius) var(--fm-radius) 0 0; }
.fm-tool { display: inline-flex; align-items: center; gap: 6px; min-width: 36px; height: 36px; padding: 0 9px; border-radius: 8px; border: 0; background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.fm-tool:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.fm-tool svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.fm-tool-sep { width: 1px; height: 22px; background: var(--fm-line-2); margin: 0 4px; }
.fm-tool .fm-tool-label { display: inline; }
.fm-editor { display: flex; flex-direction: column; gap: 10px; }
.fm-block { position: relative; border-radius: 10px; transition: box-shadow .15s; }
.fm-block-text { min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; color: var(--fm-body); font-size: 15px; line-height: 1.65; outline: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.fm-block-text:hover { border-color: var(--fm-line); }
.fm-block-text:focus { border-color: var(--fm-line-2); background: rgba(14,15,17,0.35); }
.fm-block-text:empty::before { content: attr(data-placeholder); color: var(--text-3); pointer-events: none; }
.fm-block-text .fm-chip, .fm-block-text .fm-mention, .fm-block-text .fm-emote { user-select: all; }
.fm-block-widget { border: 1px solid var(--fm-line-2); background: rgba(14,15,17,0.45); padding: 10px; }
.fm-block-widget:hover { border-color: var(--border-hover); }
.fm-block-widget .fm-card, .fm-block-widget .fm-map, .fm-block-widget .fm-build, .fm-block-widget .fm-figure, .fm-block-widget .fm-video { margin: 0; }
.fm-block-bar { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.fm-block-kind { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--text-3); margin-right: auto; }
.fm-block-btn { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fm-block-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.fm-block-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fm-add-block { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 0; }
.fm-composer-foot { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--fm-line); }
.fm-saved { font-size: 12px; color: var(--text-3); }
.fm-error { color: #F2A3A5; font-size: 13px; font-weight: 600; }
.fm-hint { font-size: 12px; color: var(--text-3); }
.fm-preview-pane { padding: 16px; border-top: 1px solid var(--fm-line); }
.fm-reply-dock { margin-top: 16px; }
.fm-reply-closed { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--fm-glass); border: 1px solid var(--fm-line); border-radius: var(--fm-radius); color: var(--text-2); font-size: 14px; }
.fm-reply-closed .fm-btn { margin-left: auto; }
.fm-dropzone { outline: 2px dashed var(--accent); outline-offset: -6px; }
.fm-uploading { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; }
.fm-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--accent); animation: fm-spin .8s linear infinite; }
@keyframes fm-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- popovers, sheets, dialogs */
.fm-pop { position: absolute; z-index: 200; background: var(--fm-glass-2); border: 1px solid var(--fm-line-2); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.55); padding: 12px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fm-pop-in .14s ease-out; }
@keyframes fm-pop-in { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }
.fm-backdrop { position: fixed; inset: 0; z-index: 190; background: rgba(0,0,0,.5); animation: fm-fade .15s ease-out; }
@keyframes fm-fade { from { opacity: 0; } }
.fm-sheet { position: fixed; z-index: 200; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, calc(100vw - 32px)); max-height: min(86vh, 860px); display: flex; flex-direction: column;
  background: #17191D; border: 1px solid var(--fm-line-2); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: fm-pop-in .16s ease-out; }
.fm-sheet-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--fm-line); }
.fm-sheet-head h2 { font-size: 17px; font-weight: 700; margin-right: auto; }
.fm-sheet-body { padding: 16px 18px; overflow: auto; -webkit-overflow-scrolling: touch; }
.fm-sheet-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--fm-line); flex-wrap: wrap; }
.fm-close { width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255,255,255,0.06); color: var(--text-2); cursor: pointer; font-size: 18px; line-height: 1; }
.fm-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.fm-menu { display: flex; flex-direction: column; min-width: 200px; padding: 6px; }
.fm-menu button, .fm-menu a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: 13.5px; text-align: left; cursor: pointer; }
.fm-menu button:hover, .fm-menu a:hover { background: rgba(255,255,255,0.08); }
.fm-menu .danger { color: #F2A3A5; }
.fm-menu hr { border: 0; border-top: 1px solid var(--fm-line); margin: 4px 0; }
.fm-toast { position: fixed; z-index: 300; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 12px 18px; border-radius: 12px; background: #23262C; border: 1px solid var(--fm-line-2);
  color: var(--text); font-size: 13.5px; font-weight: 600; box-shadow: 0 14px 40px rgba(0,0,0,.5); animation: fm-pop-in .16s ease-out; max-width: calc(100vw - 32px); }
.fm-toast.err { border-color: rgba(229,72,77,.5); }

/* pickers */
.fm-picker-search { margin-bottom: 12px; }
.fm-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.fm-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px; border-radius: 12px; border: 1px solid transparent; background: rgba(255,255,255,0.04);
  color: var(--text); font-size: 12px; font-weight: 650; cursor: pointer; text-align: center; line-height: 1.25; min-height: 96px; }
.fm-pick:hover, .fm-pick:focus-visible { border-color: var(--fm-edge); background: var(--fm-wash); }
.fm-pick img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #1C1F23; }
.fm-pick-list { display: flex; flex-direction: column; gap: 8px; }
.fm-pick-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 1px solid var(--fm-line); background: rgba(255,255,255,0.03); cursor: pointer; text-align: left; color: var(--text); width: 100%; }
.fm-pick-row:hover, .fm-pick-row:focus-visible { border-color: var(--fm-edge); background: var(--fm-wash); }
.fm-pick-row img.fm-pick-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; background: #1C1F23; flex: 0 0 auto; }
.fm-maps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fm-map-pick { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; border: 1px solid var(--fm-line); background: rgba(255,255,255,0.03); color: var(--text); cursor: pointer; text-align: left; font-size: 12.5px; font-weight: 650; }
.fm-map-pick:hover, .fm-map-pick:focus-visible, .fm-map-pick.on { border-color: var(--accent); background: var(--fm-wash); }
.fm-map-pick img { width: 100%; aspect-ratio: 3470 / 2600; object-fit: cover; border-radius: 8px; background: #101114; }
.fm-map-pick small { color: var(--text-3); font-weight: 500; }
.fm-emoji-pop { width: 340px; max-width: calc(100vw - 24px); padding: 10px; }
.fm-emoji-cats { display: flex; gap: 2px; margin: 8px 0; overflow-x: auto; scrollbar-width: none; }
.fm-emoji-cats button { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fm-emoji-cats button.on, .fm-emoji-cats button:hover { background: rgba(255,255,255,0.09); }
.fm-emoji-cats img { width: 20px; height: 20px; }
.fm-emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; height: 260px; overflow-y: auto; align-content: start; }
.fm-emoji-grid button { aspect-ratio: 1; border: 0; border-radius: 8px; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 3px; }
.fm-emoji-grid button:hover, .fm-emoji-grid button:focus-visible { background: rgba(255,255,255,0.10); }
.fm-emoji-grid img { width: 26px; height: 26px; }
.fm-emoji-group { grid-column: 1 / -1; font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--text-3); padding: 8px 4px 4px; }
.fm-emoji-name { font-size: 12px; color: var(--text-2); min-height: 18px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-suggest { position: absolute; z-index: 210; min-width: 240px; max-width: 320px; max-height: 340px; overflow: auto; padding: 6px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.fm-tile-icon { display: inline-flex; width: 28px; height: 28px; flex: none; color: var(--accent, #D4A574); }
.fm-tile-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fm-suggest button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; text-align: left; font-size: 13.5px; }
.fm-suggest button.on, .fm-suggest button:hover { background: var(--fm-wash); }
.fm-suggest img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }

/* map editor */
.fm-mapedit { display: flex; flex-direction: column; gap: 10px; }
.fm-mapedit-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fm-mapedit-tools .fm-tool.on { background: var(--fm-wash); color: var(--text); box-shadow: 0 0 0 1px var(--accent) inset; }
.fm-colors { display: flex; gap: 6px; align-items: center; }
.fm-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); cursor: pointer; padding: 0; }
.fm-color.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.fm-mapedit .fm-map-frame { touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.fm-mapedit .fm-map-frame.erase { cursor: not-allowed; }
.fm-mapedit .fm-map-frame.move { cursor: grab; }
.fm-legend-edit { display: flex; flex-direction: column; gap: 6px; }
.fm-legend-edit .fm-legend-row { display: flex; gap: 8px; align-items: center; }

/* build editor */
.fm-buildedit { display: flex; flex-direction: column; gap: 6px; }
.fm-buildedit-row { display: grid; grid-template-columns: 22px 44px minmax(0, 1fr) 84px minmax(0, 1.2fr) 56px 34px; gap: 8px; align-items: center; padding: 6px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--fm-line); }
.fm-buildedit-row.drag { opacity: .5; }
.fm-buildedit-row.over { box-shadow: 0 -2px 0 var(--accent); }
.fm-handle { cursor: grab; color: var(--text-3); text-align: center; font-size: 16px; user-select: none; touch-action: none; }
.fm-buildedit-row .fm-input { min-height: 36px; font-size: 13px; padding: 0 8px; }
.fm-buildedit-obj { width: 44px; height: 44px; border-radius: 10px; border: 1px dashed var(--fm-line-2); background: #1C1F23; cursor: pointer; padding: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 20px; }
.fm-buildedit-obj img { width: 100%; height: 100%; object-fit: cover; }

/* wizard */
.fm-wizard { display: flex; flex-direction: column; gap: 22px; }
.fm-step-card { background: var(--fm-glass); border: 1px solid var(--fm-line); border-radius: var(--fm-radius); padding: 18px; }
.fm-step-card h2 { font-size: 15px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.fm-step-card h2 .fm-step-n { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #0E0F11; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.fm-step-card p { color: var(--text-3); font-size: 13px; margin-bottom: 12px; }
.fm-step-card.done { opacity: .85; }
.fm-step-card.locked { opacity: .45; pointer-events: none; }
.fm-summary { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 16px; background: var(--fm-wash); border: 1px solid var(--fm-edge); border-radius: 12px; }

/* votes and suggestions */
.fm-vote { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; margin-top: 12px; border-radius: var(--fm-radius); background: var(--fm-glass); border: 1px solid var(--fm-line); }
.fm-vote-q { font-weight: 700; color: var(--text); margin-right: auto; }
.fm-vote button.on { border-color: var(--accent); background: var(--fm-wash); }
.fm-reasons { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.fm-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fm-diff > div { min-width: 0; padding: 12px; border-radius: 12px; border: 1px solid var(--fm-line); background: rgba(14,15,17,.45); max-height: 60vh; overflow: auto; }
.fm-diff h4 { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }

.fm-credit { font-size: 12px; color: var(--text-3); margin-top: 12px; }
.fm-attrib { font-size: 11px; color: var(--text-3); margin-top: 24px; text-align: center; }
.fm-attrib a { color: var(--text-3); text-decoration: underline; }

/* ---------------------------------------------------------------- polls */
.fm-poll { margin: 4px 0 18px; max-width: 640px; padding: 14px; border-radius: 12px; border: 1px solid var(--fm-line-2); background: rgba(14,15,17,0.5); }
.fm-poll-head { margin-bottom: 10px; }
.fm-poll-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--accent); }
.fm-poll-q { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.35; margin-top: 2px; }
.fm-poll-opts { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 6px; }
.fm-poll-opts li { margin: 0; }
.fm-poll-opt { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--fm-line-2);
  background: rgba(255,255,255,0.03); color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; overflow: hidden; transition: border-color .12s, background .12s; }
.fm-poll-opt:hover:not([disabled]) { border-color: var(--border-hover); background: rgba(255,255,255,0.06); }
.fm-poll-opt[disabled] { cursor: default; }
.fm-poll-opt > * { position: relative; }
.fm-poll-opt > .fm-poll-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255,255,255,0.07); transition: width .35s ease-out; }
.fm-poll-opt.top > .fm-poll-bar { background: rgba(212,165,116,0.18); }
.fm-poll-opt.mine { border-color: var(--accent); }
.fm-poll-check { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--fm-line-2); }
.fm-poll[data-multi="1"] .fm-poll-check { border-radius: 5px; }
.fm-poll-opt.mine .fm-poll-check { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #17191D; }
.fm-poll-opt img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; flex: 0 0 auto; }
.fm-poll-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fm-poll-pct { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 800; color: var(--text-2); }
.fm-poll-opt.top .fm-poll-pct { color: var(--accent); }
.fm-poll-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--text-3); }
.fm-poll-hidden { font-style: italic; }
.fm-poll-send { margin-left: auto; }
.fm-poll.closed .fm-poll-opt { opacity: .85; }

/* ---------------------------------------------------------------- ranked lists */
.fm-rank { margin: 4px 0 18px; max-width: 680px; }
.fm-rank-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.fm-medal { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 900; color: #0E0F11;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.35); flex: 0 0 auto; }
.fm-medal-gold { background: linear-gradient(145deg, #FFE27A, #D9A62E); }
.fm-medal-silver { background: linear-gradient(145deg, #F1F3F6, #A9AFB8); }
.fm-medal-bronze { background: linear-gradient(145deg, #F0B98A, #B06D3B); }
.fm-rank-list { list-style: none; margin: 0 !important; padding: 0 !important; border: 1px solid var(--fm-line-2); border-radius: 12px; overflow: hidden; background: rgba(14,15,17,0.5); }
.fm-rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0 !important; border-bottom: 1px solid var(--fm-line); }
.fm-rank-row:last-child { border-bottom: 0; }
.fm-rank-row.fm-top3 { background: rgba(212,165,116,0.05); }
.fm-rank-n { flex: 0 0 28px; text-align: center; font-size: 13px; font-weight: 800; color: var(--text-3); font-variant-numeric: tabular-nums; }
.fm-rank-n.fm-medal { color: #0E0F11; }
.fm-rank-img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: #1C1F23; flex: 0 0 auto; }
.fm-rank-img.fm-map-thumb { width: 56px; height: 42px; border-radius: 8px; }
span.fm-rank-img { display: inline-flex; align-items: center; justify-content: center; }
.fm-rank-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fm-rank-name { font-weight: 700; color: var(--text) !important; font-size: 14.5px; text-decoration: none !important; overflow-wrap: anywhere; }
a.fm-rank-name:hover { text-decoration: underline !important; }
.fm-linkish { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.fm-linkish:hover { color: var(--accent) !important; }
.fm-rank-note { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.fm-rank-value { font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 700; color: var(--text-2); background: rgba(255,255,255,0.06); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.fm-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; margin-bottom: 10px; }
.fm-step-p { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.fm-step-p .fm-rank-note { max-width: 100%; }
.fm-podium-img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #1C1F23; border: 1px solid var(--fm-line-2); }
.fm-podium-img.fm-map-thumb { width: 86px; height: 64px; }
span.fm-podium-img { display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.fm-place-1 .fm-podium-img { width: 80px; height: 80px; border-color: rgba(245,217,10,.5); }
.fm-podium-block { display: block; width: 100%; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03)); border: 1px solid var(--fm-line); }
.fm-place-1 .fm-podium-block { height: 64px; background: linear-gradient(180deg, rgba(245,217,10,.20), rgba(245,217,10,.04)); border-color: rgba(245,217,10,.3); }
.fm-place-2 .fm-podium-block { height: 44px; }
.fm-place-3 .fm-podium-block { height: 30px; }
.fm-tiers { display: flex; flex-direction: column; border: 1px solid var(--fm-line-2); border-radius: 12px; overflow: hidden; background: rgba(14,15,17,0.5); }
.fm-tier { display: grid; grid-template-columns: 56px minmax(0, 1fr); border-bottom: 1px solid var(--fm-line); }
.fm-tier:last-child { border-bottom: 0; }
.fm-tier-label { display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; color: #0E0F11; }
.fm-tier-S .fm-tier-label { background: #E5484D; }
.fm-tier-A .fm-tier-label { background: #F76B15; }
.fm-tier-B .fm-tier-label { background: #F5D90A; }
.fm-tier-C .fm-tier-label { background: #46A758; }
.fm-tier-D .fm-tier-label { background: #3E8EF7; }
.fm-tier-items { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; min-height: 64px; align-items: center; }
.fm-tier-item { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 80px; text-align: center; font-size: 12px; }
.fm-tier-item .fm-rank-name { font-size: 12px; line-height: 1.25; text-align: center; }
.fm-tier-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #1C1F23; }
.fm-tier-img.fm-map-thumb { width: 64px; height: 48px; }
span.fm-tier-img { display: inline-flex; align-items: center; justify-content: center; }

/* ---------------------------------------------------------------- replay reviews */
.fm-moments { margin: 4px 0 18px; max-width: 680px; border: 1px solid var(--fm-line-2); border-radius: 12px; overflow: hidden; background: rgba(14,15,17,0.5); }
.fm-moments-head { padding: 10px 14px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--fm-line); background: rgba(212,165,116,0.06); }
.fm-moment-list { list-style: none; margin: 0 !important; padding: 6px 0 !important; }
.fm-moment { position: relative; display: grid; grid-template-columns: 56px 18px minmax(0, 1fr); gap: 8px; padding: 8px 14px; margin: 0 !important; }
.fm-moment::before { content: ''; position: absolute; left: calc(14px + 56px + 8px + 8px); top: 0; bottom: 0; width: 2px; background: var(--fm-line-2); }
.fm-moment:first-child::before { top: 18px; }
.fm-moment:last-child::before { bottom: calc(100% - 18px); }
.fm-moment:only-child::before { display: none; }
.fm-moment-at { font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 800; color: var(--text-2); text-align: right; padding-top: 2px; }
.fm-moment-dot { position: relative; z-index: 1; width: 14px; height: 14px; margin: 3px 2px 0; border-radius: 50%; border: 3px solid #17191D; background: var(--text-3); }
.fm-tag-good .fm-moment-dot { background: var(--fm-good); }
.fm-tag-mistake .fm-moment-dot { background: var(--fm-bad); }
.fm-tag-key .fm-moment-dot { background: var(--accent); }
.fm-moment-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fm-moment-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.fm-tag-good .fm-moment-tag { color: #A8D69A; }
.fm-tag-mistake .fm-moment-tag { color: #F2A3A5; }
.fm-tag-key .fm-moment-tag { color: var(--accent); }
.fm-moment-cat { font-size: 11px; color: var(--text-3); }
.fm-moment-main p { margin: 2px 0 0 !important; font-size: 14px; line-height: 1.5; }
.fm-review-state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; margin-top: 14px; border: 1px solid var(--fm-line-2); background: rgba(255,255,255,0.04); }
.fm-review-state > svg { width: 22px; height: 22px; flex: 0 0 auto; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fm-review-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 240px; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.fm-review-text b { color: var(--text); font-size: 13.5px; }
.fm-review-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fm-review-actions .on { border-color: var(--accent); background: var(--fm-wash); }
.fm-review-state.requested { border-color: rgba(229,181,127,.45); background: rgba(229,181,127,.08); }
.fm-review-state.claimed { border-color: rgba(62,142,247,.45); background: rgba(62,142,247,.08); }
.fm-review-state.reviewed { border-color: rgba(127,176,105,.45); background: rgba(127,176,105,.08); }
.fm-post.fm-review-post { border-color: rgba(127,176,105,.45); }
.fm-badge-review { background: rgba(127,176,105,.16); color: #A8D69A; }
.fm-explain { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--fm-radius); background: var(--fm-wash); border: 1px solid var(--fm-edge); font-size: 13px; color: var(--text-2); line-height: 1.5; }
.fm-explain > svg { width: 22px; height: 22px; flex: 0 0 auto; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.fm-explain b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }

/* ---------------------------------------------------------------- tips of the week */
.fm-tips-hero { margin-bottom: 18px; padding: 16px; border-radius: var(--fm-radius); border: 1px solid rgba(245,217,10,.3);
  background: linear-gradient(135deg, rgba(245,217,10,.08), rgba(20,22,26,0.86) 55%); }
.fm-tips-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fm-tips-head .fm-eyebrow { color: #F5D90A; }
.fm-tips-head .fm-eyebrow::before { background: #F5D90A; }
.fm-tips-head a { font-size: 12px; color: var(--accent); }
.fm-tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.fm-tip-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--fm-line); background: rgba(14,15,17,0.55); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.fm-tip-card:hover { border-color: rgba(245,217,10,.45); transform: translateY(-1px); }
.fm-tip-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fm-tip-crest { width: 30px; height: 30px; object-fit: contain; }
.fm-tip-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; }
.fm-tip-text { font-size: 13px; color: var(--text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fm-tip-by { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 12px; color: var(--text-3); }
.fm-tip-by .fm-avatar { width: 22px; height: 22px; }
.fm-tip-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; margin-top: 14px; border: 1px solid rgba(245,217,10,.3); background: rgba(245,217,10,.06); font-size: 13px; color: var(--text-2); }
.fm-tip-banner .fm-btn { margin-left: auto; }

/* ---------------------------------------------------------------- roles, titles, archive, reports */
.fm-role { cursor: help; }
.fm-role-moderator { background: rgba(62,142,247,.16); color: #8DB8FA; }
.fm-role-strategist { background: rgba(142,78,198,.18); color: #C9A6EA; }
.fm-role-reviewer { background: rgba(18,165,148,.16); color: #7DD9CC; }
.fm-role-helper { background: rgba(127,176,105,.16); color: #A8D69A; }
.fm-user-title { font-size: 12px; color: var(--text-3); font-style: italic; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-flag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; border: 1px solid rgba(229,181,127,.45); background: rgba(229,181,127,.12);
  color: var(--fm-warn); font-size: 11px; font-weight: 800; cursor: pointer; }
.fm-flag:hover { background: rgba(229,181,127,.2); }
.fm-flag svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fm-removed { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.fm-removed-note { font-style: normal; color: var(--text-2); }
.fm-merged-link { display: inline-block; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fm-removed a { font-style: normal; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.fm-report-row { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--fm-line); }
.fm-check { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.fm-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.fm-doors { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.fm-doors a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.fm-doors a:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.fm-doors svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
[data-fm-bookmark].on { border-color: var(--accent); background: var(--fm-wash); }
[data-fm-bookmark] svg, [data-fm-alert] svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* the pages built from data: moderation, team, yours */
.fm-mod-card { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.fm-mod-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-mod-head a { color: var(--text); }
.fm-mod-text { margin: 0; font-size: 14px; color: var(--fm-body); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 9em; overflow: hidden; }
.fm-person-line { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.fm-person-line b { color: var(--text); }
.fm-team-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--fm-line); }
.fm-team-row a { color: inherit; }
.fm-log-row { display: grid; grid-template-columns: 150px 140px auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--fm-line); font-size: 13px; }
.fm-log-row:last-child { border-bottom: 0; }
.fm-log-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-spark { display: flex; align-items: flex-end; gap: 2px; height: 72px; padding: 6px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--fm-line); }
.fm-spark span { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--accent), var(--accent-muted)); }

/* poll, ranking and moments editors */
.fm-polledit { display: flex; flex-direction: column; gap: 6px; }
.fm-polledit-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 34px; gap: 8px; align-items: center; }
.fm-buildedit-row.fm-rankedit-row { grid-template-columns: 26px 44px minmax(0, 1fr) 96px minmax(0, 1.2fr) 34px 34px; }
.fm-momentedit-row { display: grid; grid-template-columns: 72px 120px 120px minmax(0, 1fr) 34px; gap: 8px; align-items: center; padding: 6px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--fm-line); border-left-width: 3px; }
.fm-momentedit-row .fm-input, .fm-momentedit-row .fm-select { min-height: 36px; font-size: 13px; padding-left: 8px; }
.fm-momentedit-row .fm-input.bad { border-color: var(--fm-bad); }
.fm-momentedit-row.fm-tag-good { border-left-color: var(--fm-good); }
.fm-momentedit-row.fm-tag-mistake { border-left-color: var(--fm-bad); }
.fm-momentedit-row.fm-tag-key { border-left-color: var(--accent); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1060px) {
  .fm-layout { grid-template-columns: minmax(0, 1fr); }
  .fm-rail { position: static; }
}
@media (max-width: 760px) {
  .fm-head h1 { font-size: 24px; }
  .fm-topic-head { padding: 16px; }
  .fm-topic-head h1 { font-size: 21px; }
  .fm-row { grid-template-columns: 34px minmax(0, 1fr); padding: 12px; gap: 10px; }
  .fm-row .fm-avatar { width: 34px; height: 34px; }
  .fm-row-stats { grid-column: 2; justify-content: flex-start; text-align: left; gap: 14px; }
  .fm-stat b { display: inline; font-size: 12px; margin-right: 3px; }
  .fm-row-last { display: none; }
  .fm-post { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 10px; }
  .fm-post > .fm-post-avatar { display: none; }
  .fm-post-head .fm-avatar-inline { display: inline-flex !important; width: 28px; height: 28px; }
  .fm-post-actions { margin-left: 0; width: 100%; justify-content: space-between; }
  .fm-act .fm-act-label { display: none; }
  .fm-replay { flex-direction: column; }
  .fm-replay-map { flex-basis: auto; aspect-ratio: 3470 / 2600; max-height: 180px; }
  .fm-objcard-stats { grid-template-columns: repeat(2, 1fr); }
  .fm-step { grid-template-columns: 22px 36px minmax(0, 1fr) auto; padding: 8px 10px; }
  .fm-step-icon { width: 36px; height: 36px; }
  .fm-step-marker { grid-column: 4; }
  .fm-tool .fm-tool-label { display: none; }
  .fm-toolbar { top: 56px; }
  .fm-buildedit-row { grid-template-columns: 22px 44px minmax(0, 1fr) 34px; }
  .fm-buildedit-row .fm-b-at, .fm-buildedit-row .fm-b-note, .fm-buildedit-row .fm-b-marker { grid-column: 2 / -1; }
  .fm-sheet { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .fm-diff { grid-template-columns: 1fr; }
  .fm-search { max-width: none; }
  .fm-emoji-grid { grid-template-columns: repeat(7, 1fr); }
  .fm-guides { grid-template-columns: minmax(0, 1fr); }
  .fm-podium { gap: 6px; }
  .fm-podium-img, .fm-place-1 .fm-podium-img { width: 52px; height: 52px; }
  .fm-tier { grid-template-columns: 40px minmax(0, 1fr); }
  .fm-tier-item { width: 68px; }
  .fm-moment { grid-template-columns: 44px 18px minmax(0, 1fr); padding: 8px 10px; }
  .fm-moment::before { left: calc(10px + 44px + 8px + 8px); }
  .fm-log-row { grid-template-columns: minmax(0, 1fr) auto; }
  .fm-log-row .fm-log-detail { grid-column: 1 / -1; white-space: normal; }
  .fm-buildedit-row.fm-rankedit-row { grid-template-columns: 26px 44px minmax(0, 1fr) 34px 34px; }
  .fm-rankedit-row .fm-b-at, .fm-rankedit-row .fm-b-note, .fm-rankedit-row .fm-b-marker { grid-column: 2 / -1; }
  .fm-momentedit-row { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr) 34px; }
  .fm-momentedit-row > .fm-input:not(:first-child) { grid-column: 1 / -1; grid-row: 2; }
  .fm-poll-send { margin-left: 0; }
}
@media (pointer: coarse) {
  .fm-act { min-height: 40px; }
  .fm-react { height: 34px; }
  .fm-chip { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .fm *, .fm *::before, .fm *::after { animation: none !important; transition: none !important; }
}
.fm-post-head .fm-avatar-inline { display: none; }
