/* Copyright (c) 2026 Lavish Leaf Inc. All rights reserved. See LICENSE. */
/* File:       fairways-progress.css
   Purpose:    The look of the stats page, levels, rating, achievements, the leaderboard, and the share window.
   Defines:    Classes that begin fp- and fsh-, and others used by fairways-profile.js and fairways-share.js.
   Depends on: fairways.css (its :root colors and its shared classes), which must come first.
   Loaded:     4th and last stylesheet in index.html.
   Guide:      ARCHITECTURE.md (this folder). The notes below this header are the file's own history and design reasons. */
/* Fairways: the stats page, levels, rating, and online play (owner, 2026-11-03). Built by fairways-profile.js (statsPage and bindStatsPage).
   Uses the colors of fairways.css (:root) and its classes where they fit: fw-stats-tbl, st-wrap, fw-btn, fw-seg, ach. */
.fp { display: grid; gap: 10px; }
.fp-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.fp-card { padding: 9px 12px; border: 1px solid var(--brass-dk); border-radius: 10px; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-content: start; background: rgba(211, 166, 76, .05); }
.fp-card b { font: 700 1.05rem var(--display); color: var(--brass-lt); }
.fp-card > span { color: var(--parch); font-weight: 700; align-self: center; }
.fp-card small { grid-column: 1 / -1; color: var(--muted); line-height: 1.35; }
.fp-bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: #2b4652; overflow: hidden; }
.fp-bar i { display: block; height: 100%; background: var(--brass-lt); }
.fp-sparkrow { grid-column: 1 / -1; }
.fp-spark { display: block; max-width: 100%; height: auto; }
.fp-spark polyline { fill: none; stroke: var(--brass-lt); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.fp-tabs { margin: 2px 0; }
.fp-tabs button { flex: 1 1 90px; }
.fp-panel { display: grid; gap: 6px; }
.fp-panel[hidden] { display: none; }
.fp-line { margin: 2px 0; color: var(--parch); }
.fp-note { margin: 2px 0 4px; font-size: .78rem; color: var(--muted); }
.fp-kv { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3px 12px; margin: 4px 0; font-size: .86rem; max-width: 440px; }      /* round 52 (owner): on the full-width stats page each number stays beside its words */
.fp-kv dt { color: var(--parch-dim); }
.fp-kv dd { margin: 0; color: var(--parch); text-align: right; }
.fp-kv small { color: var(--muted); }
.fp-fold { border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .02); }
.fp-fold > summary { cursor: pointer; padding: 8px 12px; font: 700 .9rem var(--display); color: var(--parch); list-style: none; display: flex; align-items: baseline; gap: 8px; }
.fp-fold > summary::-webkit-details-marker { display: none; }
.fp-fold > summary::before { content: '\25B8'; color: var(--brass); transition: transform .15s; }
.fp-fold[open] > summary::before { transform: rotate(90deg); }
.fp-fold > summary small { font: 600 .74rem var(--ui); color: var(--muted); }
.fp-fold > summary:focus-visible { outline: 2px solid var(--brass-lt); outline-offset: 2px; border-radius: 8px; }
.fp-fold-in { padding: 0 12px 10px; }
.fp-fold .fp-fold { margin: 6px 0; }
.fp-places { display: grid; gap: 4px; margin: 4px 0; }
.fp-pl { display: grid; grid-template-columns: 36px 1fr 34px 40px; align-items: center; gap: 8px; font-size: .84rem; color: var(--parch); }
.fp-pl i { display: block; height: 10px; border-radius: 5px; background: var(--brass); min-width: 2px; }
.fp-pl b { text-align: right; } .fp-pl small { color: var(--muted); text-align: right; }
.ach.t4 .ach-t { background: #b9e4f2; }
.ach.t4.got { background: rgba(185, 228, 242, .14); }
.fp-online { border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 6px; }
.fp-online h4 { margin: 0; }
.fp-h5 { margin: 6px 0 0; font: 700 .92rem var(--display); color: var(--parch); }
.fp-acct { display: grid; gap: 6px; }
.fp-acct[hidden], .fp-online [hidden] { display: none; }
.fp-nick { display: inline-flex; align-items: center; gap: 8px; color: var(--parch-dim); font-size: .86rem; }
.fp-nick input { background: var(--deep); border: 1px solid var(--line); border-radius: 8px; color: var(--parch); padding: 8px 10px; font: 600 .9rem var(--ui); min-width: 0; width: 13em; }
.fp-nick input:focus { outline: 2px solid var(--brass-lt); outline-offset: 1px; }
.fp-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-stats-tbl tr.fp-me th, .fw-stats-tbl tr.fp-me td { color: var(--gold); font-weight: 800; }
@media (max-width: 560px) {
  .fp-kv { grid-template-columns: 1fr; } .fp-kv dd { text-align: left; margin-bottom: 4px; }
  .fp-nick { display: flex; flex-wrap: wrap; } .fp-nick input { width: 100%; }
}

/* ---------- round 22 (owner, 2026-11-03): a stats page that feels like a game */
.fp-card.fp-lvl, .fp-card.fp-rat { grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; padding: 12px 14px; background: radial-gradient(ellipse at 0% 0%, rgba(211, 166, 76, .18), rgba(211, 166, 76, .03) 60%); }
.fp-card.fp-lvl > div, .fp-card.fp-rat > div { display: grid; gap: 3px; min-width: 0; } .fp-card.fp-lvl > div > span, .fp-card.fp-rat > div > span { color: var(--parch); font-weight: 700; }
.fp-ring { position: relative; display: inline-grid; place-items: center; width: 74px; height: 74px; flex: none; }
.fp-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fp-ring circle { fill: none; stroke-width: 7; } .fp-ring .tr { stroke: #24404b; } .fp-ring .fl { stroke: var(--green, #5be07d); stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.fp-ring.gold .fl { stroke: #f0c85c; filter: drop-shadow(0 0 4px rgba(240, 200, 92, .6)); }
.fp-ring b { position: relative; font: 900 1.35rem/1 var(--display); color: #fff; margin-top: -6px; } .fp-ring small { position: absolute; bottom: 15px; font: 700 .58rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fp-ring.big { width: 96px; height: 96px; } .fp-ring.big b { font-size: 1.8rem; }
.fp-badge { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 16px; transform: rotate(45deg) scale(.82); background: linear-gradient(135deg, #f0d48a, #a77a2c); border: 2px solid #06121a; box-shadow: 0 0 0 3px rgba(211, 166, 76, .35); }
.fp-badge > * { transform: rotate(-45deg); } .fp-badge i { position: absolute; top: 9px; font-size: .9rem; color: #5a3d0e; } .fp-badge b { font: 900 1.1rem var(--display); color: #15110a; margin-top: 12px; }
.fp-sec { display: grid; gap: 6px; } .fp-h4 { margin: 6px 0 0; font: 700 1.05rem var(--display); color: var(--brass-lt); }
.fp-fight { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.fp-fc { display: grid; gap: 6px; align-content: start; justify-items: center; padding: 10px 12px 12px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); text-align: center; }
.fp-fc h5 { margin: 0; font: 700 .98rem var(--display); color: var(--parch); letter-spacing: .04em; } .fp-fc h5 i { color: var(--brass-lt); margin-right: 4px; }
.fp-big { margin: 0; font: 700 .9rem var(--ui); color: var(--parch); }
.fp-meter { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-align: left; font-size: .8rem; color: var(--parch-dim); }
.fp-meter b { color: #fff; } .fp-meter b small { color: var(--muted); font-weight: 600; }
.fp-meter > i { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: #24404b; overflow: hidden; } .fp-meter > i em { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brass), #f0c85c); }
.fp-why { grid-column: 1 / -1; margin: 0; font-size: .7rem; color: var(--muted); line-height: 1.3; }
.fp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.fp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #0b171d; border: 1px solid #1d3641; font-size: .72rem; color: var(--parch-dim); } .fp-chip i { color: var(--brass-lt); font-size: .7rem; } .fp-chip b { color: #fff; }
.fp-caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
.fp-caps span { display: grid; justify-items: center; gap: 1px; padding: 6px 2px; border-radius: 10px; background: #0b171d; border: 1px solid #1d3641; font-size: .7rem; color: var(--muted); }
.fp-caps i { color: var(--brass-lt); } .fp-caps b { font: 900 1.4rem/1.1 var(--display); color: #fff; }
.fp-luck { margin: 0; font: 900 1.4rem var(--display); color: var(--parch); } .fp-luck.up { color: #9ff0b4; } .fp-luck.down { color: #ff9f7a; }
.fp-scale { position: relative; width: 100%; height: 30px; margin: 12px 0 16px; border-radius: 6px; background: linear-gradient(90deg, #6b2a22, #24404b 45%, #24404b 55%, #1f5a35); }
.fp-scale span { position: absolute; bottom: -15px; font-size: .64rem; color: var(--muted); } .fp-scale span:first-of-type { left: 0; } .fp-scale span:last-of-type { right: 0; }
.fp-scale i { position: absolute; top: -4px; bottom: -4px; width: 0; } .fp-scale i.fair { border-left: 2px dashed rgba(255, 255, 255, .55); }
.fp-scale i.you::before, .fp-scale i.foe::before { content: ''; position: absolute; top: 4px; left: -7px; width: 14px; height: 22px; border-radius: 7px; background: #f0c85c; box-shadow: 0 0 8px rgba(240, 200, 92, .8); } .fp-scale i.foe::before { background: #9aa6ad; box-shadow: none; width: 10px; left: -5px; top: 7px; height: 16px; }
.fp-scale i b { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font: 800 .68rem var(--ui); color: #f0c85c; } .fp-scale i.foe b { top: auto; bottom: -16px; color: #9aa6ad; }
/* achievements */
.fp-ach-show { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--brass-dk); background: radial-gradient(ellipse at 50% 0%, rgba(240, 200, 92, .2), transparent 60%), linear-gradient(#10242d, #0a1a21); box-shadow: inset 0 0 0 1px rgba(240, 200, 92, .15); }
.fp-ach-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .fp-ach-top h4 { margin: 0; font: 900 1.25rem var(--title); color: #ffe08a; } .fp-ach-top p { margin: 2px 0 6px; font-size: .8rem; color: var(--parch-dim); }
.fp-tiers { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-honors { margin: 8px 0 0; font-size: .9rem; color: var(--parch-dim, #b9ae90); } .fp-honors i { color: var(--brass-lt, #f0cf85); margin-right: 4px; } .fp-honors b { color: #fff; }      /* round 53 */
.fp-tier { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: #0b171d; border: 1px solid #1d3641; font-size: .74rem; color: var(--parch-dim); } .fp-tier b { font: 900 1rem var(--display); color: #fff; } .fp-tier b small { font-size: .7rem; color: var(--muted); }
.fp-tier .fp-medal { width: 26px; height: 26px; font-size: .7rem; }
.fp-h5 i { color: #f0c85c; margin-right: 4px; }
.fp-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.fp-at { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid #1d3641; opacity: .62; filter: saturate(.4); }
.fp-at.got { opacity: 1; filter: none; border-color: color-mix(in srgb, var(--mc, #d3a64c) 70%, transparent); background: linear-gradient(110deg, color-mix(in srgb, var(--mc, #d3a64c) 20%, transparent), rgba(255, 255, 255, .02)); }
.fp-at > div { display: grid; gap: 1px; min-width: 0; } .fp-at b { font: 800 .86rem var(--ui); color: #fff; } .fp-at span { font-size: .74rem; color: var(--parch-dim); line-height: 1.3; } .fp-at small { font-size: .66rem; color: var(--brass-lt); font-weight: 700; letter-spacing: .03em; }
.fp-at.big { opacity: 1; filter: none; } .fp-at.big .fp-medal { width: 48px; height: 48px; font-size: 1.15rem; }
.fp-medal { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: .9rem; color: rgba(0, 0, 0, .55); background: radial-gradient(circle at 35% 30%, #7c8a91, #3b464c); border: 2px solid #06121a; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); overflow: hidden; }
.fp-at.t1, .fp-tier.t1, .fp-medal.t1 { --mc: #cd8a4f; } .fp-at.t2, .fp-tier.t2, .fp-medal.t2 { --mc: #c7d0d6; } .fp-at.t3, .fp-tier.t3, .fp-medal.t3 { --mc: #f0c85c; } .fp-at.t4, .fp-tier.t4, .fp-medal.t4 { --mc: #b9e4f2; }
.fp-medal.got { background: radial-gradient(circle at 35% 30%, #fff, var(--mc) 45%, color-mix(in srgb, var(--mc) 55%, #000)); color: #2a1d08; box-shadow: 0 0 0 2px color-mix(in srgb, var(--mc) 50%, transparent), 0 0 14px color-mix(in srgb, var(--mc) 55%, transparent); }
.fp-medal.got::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .75) 50%, transparent 60%); animation: fpShine 3.4s ease-in-out infinite; }
@keyframes fpShine { 0% { transform: translateX(-60%); } 50%, 100% { transform: translateX(60%); } }
.lite .fp-medal.got::after { animation: none; display: none; }
@media (prefers-reduced-motion: reduce) { .fp-medal.got::after { animation: none; } .fp-ring .fl { transition: none; } }
@media (max-width: 560px) { .fp-wall { grid-template-columns: 1fr; } .fp-ach-top { justify-content: center; text-align: center; } .fp-tiers { justify-content: center; } }
/* sharing (round 39): the share window over any other window, and the share buttons on the stats page and on earned achievements */
.fw-share { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 10, 10, .72); }
.fsh-card { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #2e2e2e; border: 2px solid #c4953b; border-radius: 16px; padding: 18px 18px 14px; color: #f1ead8; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
.fsh-card h3 { margin: 0 34px 12px 0; font: 700 1.2rem/1.2 var(--head, 'Cinzel', serif); color: #e6b93f; }
.fsh-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #3d3d3d; color: #f1ead8; cursor: pointer; }
.fsh-img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid #3d3d3d; background: #252525; }
.fsh-text { margin: 10px 0; font-size: .92rem; line-height: 1.4; color: #d8d1bf; } .fsh-text span { color: #6FD65F; word-break: break-all; }
.fsh-main { display: flex; flex-wrap: wrap; gap: 8px; }
.fsh-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fsh-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: #3d3d3d; color: #f1ead8; text-decoration: none; font-weight: 800; font-size: .9rem; }
.fsh-link:hover, .fsh-link:focus-visible { background: #4a4a4a; }
.fsh-xm { font: 900 1rem/1 Arial, sans-serif; }
/* round 46: the picture while it is drawn, the link in its own box, and the places to post */
.fsh-pic { position: relative; aspect-ratio: 1200 / 630; border-radius: 10px; background: #252525; border: 1px solid #3d3d3d; overflow: hidden; } .fsh-pic .fsh-img { border: 0; border-radius: 0; }
.fsh-wait[hidden] { display: none; }
.fsh-wait { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #b9b2a2; font-weight: 800; }
.fsh-url { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .85rem; color: #b9b2a2; } .fsh-url input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid #4a4a4a; background: #252525; color: #6FD65F; font: 700 .85rem/1.2 var(--plain, sans-serif); }
.fsh-h { margin: 12px 0 0; font: 700 .9rem/1.2 var(--head, "Cinzel", serif); color: #e6b93f; }
.fsh-note { margin: 10px 0 0; font-size: .8rem; color: #b9b2a2; } .fsh-done { margin: 8px 0 0; color: #6FD65F; font-weight: 800; }
.fp-share-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin: 8px 0 4px; }      /* round 47: the sign-in box beside Share my stats */
.fp-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; flex: 1 1 260px; }
.fp-quick:empty { display: none; }
.fp-who { color: var(--parch); font-weight: 700; display: grid; gap: 1px; } .fp-who i { color: var(--brass-lt); margin-right: 4px; } .fp-who small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.fp-badge.un i { position: static; font-size: 1.7rem; color: #5a3d0e; }      /* round 47: the symbol alone, centered in the diamond */
.fp-at { position: relative; } .fp-at-share { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .35); color: #f1ead8; cursor: pointer; opacity: .75; } .fp-at-share:hover, .fp-at-share:focus-visible { opacity: 1; background: rgba(0, 0, 0, .55); }

/* round 47 challenges */
.fq { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.fq-col { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--brass-dk, #6b5427); background: radial-gradient(ellipse at 0% 0%, rgba(211, 166, 76, .14), rgba(211, 166, 76, .03) 60%); display: grid; gap: 7px; align-content: start; }
.fq-head { display: flex; align-items: center; gap: 8px; } .fq-head i { color: #ffd27a; } .fq-head b { font: 700 1.08rem var(--display); color: var(--brass-lt, #f0d48a); } .fq-head span { margin-left: auto; color: var(--parch, #e8dcc0); font-weight: 800; font-size: .85rem; }
.fq-left { color: var(--muted, #9ab); font-size: .78rem; margin-top: -3px; }
.fq-item { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; align-items: center; }
.fq-name { color: #e7eef2; font-weight: 700; font-size: .9rem; line-height: 1.25; } .fq-n { color: #ffd27a; font-weight: 800; font-size: .82rem; font-variant-numeric: tabular-nums; }
.fq-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #223c47; overflow: hidden; display: block; } .fq-bar em { display: block; height: 100%; background: linear-gradient(90deg, #d3a64c, #ffd27a); border-radius: 3px; }
.fq-item.done .fq-name { color: #9ff0b4; } .fq-item.done .fq-name i { color: #6fd65f; } .fq-item.done .fq-bar em { background: #4ab73c; }
.fp-quests { margin: 12px 0; } .fp-quests h4 { margin: 0 0 8px; } .fp-quests h4 i { color: #ffd27a; margin-right: 4px; }
.fq-foot { text-align: center; color: var(--muted, #9ab); font-size: .85rem; margin: 8px 0 0; }

/* round 48: Leaderboard beside Share my stats */
.fp-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* round 49: the leaderboard's filters and categories */
.fp-board { display: grid; gap: 6px; }
.fp-bcat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 700 .86rem var(--ui); color: var(--parch); }
.fp-bcat select { background: var(--deep); border: 1px solid var(--line); border-radius: 8px; color: var(--parch); padding: 7px 10px; font: 600 .9rem var(--ui); min-width: 0; max-width: 100%; }
.fp-bcat select:focus { outline: 2px solid var(--brass-lt); outline-offset: 1px; }
.fp-you { margin: 2px 0; color: var(--parch); font-size: .9rem; } .fp-you b { color: var(--gold); }
.fp-btbl td.fp-bwho { text-align: left; } .fp-btbl td.fp-bwho small { color: var(--muted); font-weight: 600; }
.fp-btbl td.fp-bstat { font: 700 1.08rem var(--display); color: var(--brass-lt); font-variant-numeric: lining-nums tabular-nums; }

/* ---- Round 51 (owner, 2026-11-10): the leaderboard as a table sorted by a click on any column heading, in three groups of columns */
.fp-bgrp { margin-top: 2px; }
.fp-bwrap { max-height: min(70vh, 640px); overflow: auto; border-radius: 10px; border: 1px solid #23414c; }
.fp-btbl { min-width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: lining-nums tabular-nums; }
.fp-btbl thead th { position: sticky; top: 0; z-index: 2; background: #10242d; border-bottom: 1px solid #2f4b57; padding: 0; white-space: nowrap; }
.fp-btbl thead th button { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; padding: 9px 10px; cursor: pointer; font: 700 .86rem var(--display); letter-spacing: .03em; color: var(--brass-lt); }
.fp-btbl thead th button i { font-size: .78em; opacity: .45; }
.fp-btbl thead th button:hover i, .fp-btbl thead th.fp-bsorted button i { opacity: 1; }
.fp-btbl thead th button:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; border-radius: 6px; }
.fp-btbl thead th.fp-bsorted { background: #183541; }
.fp-btbl thead th.fp-brank, .fp-btbl thead th.fp-bwho { padding: 9px 10px; font: 700 .86rem var(--display); color: var(--brass-lt); }
.fp-btbl th.fp-brank { width: 3em; text-align: center; color: var(--parch-dim); }
.fp-btbl .fp-bwho { position: sticky; left: 0; z-index: 1; background: #0d1d24; text-align: left; white-space: nowrap; max-width: 15em; overflow: hidden; text-overflow: ellipsis; }
.fp-btbl thead .fp-bwho { z-index: 3; background: #10242d; }
.fp-btbl tbody td, .fp-btbl tbody th { padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, .05); font-weight: 400; color: #d6e2e6; text-align: center; }
.fp-btbl tbody td.fp-bsorted { font: 700 1rem var(--display); color: var(--brass-lt); background: rgba(211, 166, 76, .06); }
.fp-btbl tbody tr:nth-child(even) td:not(.fp-bwho) { background-color: rgba(255, 255, 255, .02); }
.fp-btbl tbody tr:hover td, .fp-btbl tbody tr:hover th { background-color: rgba(211, 166, 76, .08); }
.fp-btbl tbody tr:nth-child(-n+3) .fp-brank { color: var(--gold); font-weight: 800; }
.fp-btbl tbody tr.fp-me td, .fp-btbl tbody tr.fp-me th { background-color: rgba(242, 199, 92, .13); color: #ffe7a6; }
.fp-btbl tbody tr.fp-me .fp-bwho { box-shadow: inset 3px 0 0 var(--gold); }
.fp-youtag { font-style: normal; font: 800 .66rem var(--plain); letter-spacing: .08em; text-transform: uppercase; color: #1b1408; background: var(--gold); border-radius: 999px; padding: 1px 7px; vertical-align: 2px; }
.fp-btbl tbody tr.fp-unq td, .fp-btbl tbody tr.fp-unq th { color: #9fb2b9; }
.fp-btbl tbody tr.fp-gap td { text-align: left; font: italic 400 .84rem var(--plain); color: var(--muted); background: rgba(0, 0, 0, .25); }
.fp-prov { color: var(--muted); }
@media (max-width: 600px) { .fp-btbl .fp-nar { display: none; } .fp-btbl thead th button { padding: 8px 6px; font-size: .78rem; } .fp-btbl tbody td, .fp-btbl tbody th { padding: 7px 6px; } .fp-btbl .fp-bwho { max-width: 9em; } }

/* Round 51 (owner, phone): heights from the visible part of the screen (see fairways.css, round 51) */
.fsh-card { max-height: calc(100dvh - 32px); }
.fp-bwrap { max-height: min(70dvh, 640px); }

/* Round 53 (owner): the account's controls under "Signed in as"; Privacy and Sign out with Leaderboard and Share my stats */
.fp-signed { display: grid; gap: 8px; min-width: 0; margin: 8px 0 4px; }      /* round 54: the buttons' row, then the account box */
.fp-signed .fp-share-row { margin: 0; }
.fp-signed .fp-acct { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.fp-signed .fp-acct .fp-note { margin: 0; }
.fp-nickrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fp-share-btns .fw-btn[hidden] { display: none; }
/* Round 53: the mode's records under its computer table, each ending in an Overall line */
.fp-h5.fp-sub { margin: 10px 0 2px; }
.fw-stats-tbl tr.fp-total th, .fw-stats-tbl tr.fp-total td { border-top: 1px solid var(--brass-dk); border-bottom: 0; color: var(--brass-lt); font-weight: 800; }
/* Round 53: Personal bests and Nemesis are cards of Battles, sieges, and luck; their lists read left to right */
.fp-fc.fp-fc-list .fp-kv { width: 100%; max-width: none; text-align: left; margin: 2px 0 0; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.fp-fc.fp-fc-list .sub { margin: 4px 0 0; }
.fp-fight { grid-template-columns: repeat(3, minmax(0, 1fr)); }      /* round 53: six cards, in even rows of three (two on a tablet, one on a phone) */
@media (max-width: 900px) { .fp-fight { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fp-fight { grid-template-columns: 1fr; } }
/* Round 53 (owner, fourth list): the consent box at every sign-in (the Google button stays closed until the policy box is ticked), the Email choices, the profile's own
   small windows (over the reading window, under the privacy window at 260), and the leaderboard's captain names as buttons */
.fp-popwin { z-index: 250; }
.fp-consent { display: grid; gap: 8px; margin: 6px 0; min-width: 0; text-align: left; justify-items: start; }
.fp-consent .fp-news, .fp-news-acct { justify-self: stretch; text-align: left; }
.fp-ck { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; font-size: .88rem; color: var(--parch); cursor: pointer; line-height: 1.35; }
.fp-ck input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.fp-ck.fp-accept { font-weight: 800; }
.fp-news { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 10px; margin: 0; display: grid; gap: 7px; min-width: 0; }
.fp-news legend { padding: 0 6px; font: 700 .8rem var(--ui); color: var(--brass-lt); }
.fp-news .fp-note { margin: 0; }
.fp-gate { transition: opacity .15s; }
.fp-gate[inert] { opacity: .4; pointer-events: none; filter: grayscale(.7); }
.fp-gatewrap { display: inline-block; min-height: 32px; }
.fp-gatewhy { margin: 0; }
.fp-gatewhy[hidden], [data-fp-signmsg][hidden], .fp-newsg[hidden], [data-fp-askmsg][hidden] { display: none; }
.fp-consent.fp-need .fp-accept { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.fp-newsg { display: grid; gap: 6px; }
.fp-btbl .fp-bname { background: none; border: 0; padding: 2px 0; margin: 0; font: inherit; font-weight: 800; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(240, 207, 133, .35); text-underline-offset: 3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.fp-btbl .fp-bname:hover { color: var(--brass-lt); text-decoration-color: currentColor; }
.fp-btbl .fp-bname:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.fp-capt .fp-head { margin-bottom: 6px; }
.fp-capt .fp-wall { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
