/* Add-on features: calendar, alerts, graphics, widget panel, PRO form, roundup, contact, social. Uses the tokens from app.css. */

/* Buttons and menus */
.fx-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center }
.fx-btn {
  display: inline-flex; align-items: center; gap: 7px; font: 600 13px/1 var(--body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 14px; cursor: pointer; text-decoration: none; list-style: none; white-space: nowrap
}
.fx-btn:hover { border-color: var(--accent); color: var(--ink) }
.fx-btn::-webkit-details-marker { display: none }
.fx-ico { width: 17px; height: 17px; flex: none }
.fx-menu { position: relative }
.fx-menu[open] > .fx-btn { border-color: var(--accent) }
.fx-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(290px, 86vw); display: grid; gap: 2px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow)
}
.fx-pop a { display: grid; gap: 2px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink) }
.fx-pop a:hover { background: var(--raise); color: var(--ink) }
.fx-pop small { color: var(--muted); font-size: 12px }
@media (max-width: 560px) { .fx-pop { left: 0; right: auto } }

.fx-bell[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) }
.fx-bell .on { display: none }
.fx-bell[aria-pressed="true"] .on { display: inline }
.fx-bell[aria-pressed="true"] .off { display: none }
.fx-hint { margin: 8px 0; padding: 10px 12px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); font-size: 13px; max-width: 520px }

/* Game page tools */
.fx-gametools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 8px 0 0 }
.fx-report { font-size: 13px; color: var(--muted) }

/* Widget panel on club pages */
.fx-widget details summary { cursor: pointer; list-style: none }
.fx-widget details summary::-webkit-details-marker { display: none }
.fx-widget details summary h2 { display: inline-flex; align-items: baseline; gap: 8px }
.fx-widget details summary h2::after { content: "Show"; font: 600 13px/1 var(--body); color: var(--accent); text-transform: none; letter-spacing: 0 }
.fx-widget details[open] summary h2::after { content: "Hide" }
.fx-snippet { width: 100%; max-width: 760px; font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); resize: vertical }
.fx-widget code, .fx-url { font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; overflow-wrap: anywhere }

/* PRO score form: big thumb targets */
.fx-pro { max-width: 640px }
.fx-pro-games { display: grid; gap: 6px; margin: 10px 0 }
.fx-pro-games a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--ink) }
.fx-pro-games a[aria-current] { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent) }
.fx-pro-games small { color: var(--muted) }
.fx-pro-form { display: grid; gap: 14px; margin-top: 10px }
.fx-pro-comp { margin: 0; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between }
.fx-pro-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.fx-pro-side { display: grid; gap: 8px; text-align: center; min-width: 0 }
.fx-pro-name { font: 800 20px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; overflow-wrap: anywhere; min-height: 2.2em; display: grid; align-items: end }
.fx-pro-score { font: 800 48px/1 var(--display); font-variant-numeric: tabular-nums }
.fx-pro-score small { font: 600 16px var(--body); color: var(--muted) }
.fx-pro-btns { display: grid; gap: 8px }
.fx-big { font: 700 18px/1 var(--body); padding: 18px 10px; border-radius: 12px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; min-height: 58px; touch-action: manipulation }
.fx-big:active { transform: scale(.98) }
.fx-big.alt { background: var(--raise); color: var(--ink); border: 1px solid var(--line-strong) }
.fx-big:disabled { opacity: .45; cursor: default }
.fx-pro-undo { display: flex; gap: 6px; justify-content: center }
.fx-small { font: 600 13px/1 var(--body); padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer }
.fx-pro-status { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.fx-pro-type summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px }
.fx-pro-typed { display: grid; gap: 10px; margin-top: 10px }
.fx-pro-typed label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600 }
.fx-pro-typed input, .fx-pro-typed select { font: 18px var(--body); padding: 8px; width: 3.4em; text-align: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink) }
.fx-pro-typed select { width: auto }
.fx-check { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 600 }
tr.fx-revoked td { opacity: .5 }

/* Roundup */
.fx-roundup { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start }
@media (max-width: 820px) { .fx-roundup { grid-template-columns: 1fr; gap: 0 } }
.fx-dayhead { font: 800 16px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 18px 0 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line) }
.fx-day:first-of-type .fx-dayhead { margin-top: 4px }
.fx-rank { display: inline-block; width: 22px; color: var(--muted); font-variant-numeric: tabular-nums }

/* Contact and about */
.fx-narrow { max-width: 640px }
.fx-form { display: grid; gap: 14px; margin-top: 12px }
.fx-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px }
.fx-form legend { font-weight: 700; margin-bottom: 6px }
.fx-form label { display: grid; gap: 5px; font-weight: 600; font-size: 14px }
.fx-form label small { color: var(--muted); font-weight: 500 }
.fx-form .fx-radio { display: flex; gap: 8px; align-items: center; font-weight: 500 }
.fx-form input:not([type=radio]):not([type=checkbox]), .fx-form textarea {
  font: 16px var(--body); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2); color: var(--ink); width: 100%
}
.fx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
@media (max-width: 560px) { .fx-form-row { grid-template-columns: 1fr } }
.fx-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden }
.fx-done { opacity: .6 }
.fx-about h2 { margin-top: 26px }
.fx-about ul { padding-left: 20px }
.fx-about li { margin-bottom: 8px }
.fx-placeholder { border: 2px dashed var(--star); border-radius: 10px; padding: 12px 16px; background: var(--surface) }
.fx-placeholder-tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--star) }

/* Social graphics */
.fx-social-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 12px 0 }
.fx-social-index h3 { margin-top: 0 }
.fx-social-index ul { margin: 0; padding-left: 18px; display: grid; gap: 6px }
.fx-social-set h3 small { font-weight: 500 }
.fx-social-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) }
.fx-social-grid.fx-x { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) }
.fx-social-grid figure { margin: 0; display: grid; gap: 8px }
.fx-social-grid img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2) }
.fx-social-grid figcaption { display: flex; gap: 12px; align-items: center; font-size: 13px }
