/* Game-night surfaces: readable at a distance, compact setup, generous tap targets. */
.fp { --fp-line: #66467e; --fp-muted: #cbb5dd; max-width: 1600px; margin: auto; padding: 22px; color: #fff5ff; }
.fp * { box-sizing: border-box; }
.fp .fp-hero { display: flex; justify-content: space-between; gap: 26px; align-items: center; padding: 30px; border: 1px solid #795294; border-radius: 20px; background: radial-gradient(ellipse at top right, #62328b, transparent 65%), #281b36; margin-bottom: 20px; }
.fp h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.2; margin: 10px 0 14px; }
.fp h2 { font-size: 21px; margin: 0 0 16px; }
.fp h3 { font-size: 17px; margin: 14px 0 10px; }
.fp p { line-height: 1.65; }
.fp .fp-eyebrow { color: #dfb7fa; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.fp .fp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fp .fp-tags span { border: 1px solid #9c71b9; border-radius: 20px; padding: 5px 10px; font-size: 12px; }
.fp .fp-hero-art { flex: 0 0 auto; font: 800 56px system-ui; color: #e4c4ff; transform: rotate(-8deg); border: 2px solid #ba89e6; border-radius: 18px; padding: 18px; box-shadow: 9px 9px 0 #160f21; }
.fp .fp-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.fp .fp-panel { min-width: 0; border: 1px solid var(--fp-line); border-radius: 16px; padding: 22px; background: #261c34; }
.fp .fp-main { min-width: 0; }
.fp .fp-panel + .fp-panel { margin-top: 20px; }
.fp .fp-field { display: block; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.fp .fp-field > span { display: block; margin-bottom: 8px; }
.fp input, .fp textarea, .fp select { display: block; width: 100%; min-height: 44px; padding: 10px 12px; color: #f7efff; background: #17111f; border: 1px solid #806092; border-radius: 8px; font: 15px/1.5 system-ui; }
.fp textarea { resize: vertical; min-height: 110px; }
.fp button, .fp .fp-file { color: #fff; background: #3a274d; border: 1px solid #9873b4; border-radius: 10px; padding: 12px 16px; min-height: 46px; font: 600 14px system-ui; cursor: pointer; margin: 0; scroll-margin-top: 110px; }
.fp button:hover, .fp .fp-file:hover { background: #593574; }
.fp button:disabled { opacity: .44; cursor: not-allowed; }
.fp button.fp-primary { background: #8b4ec2; border-color: #c892f0; font-weight: 800; }
.fp button.fp-good { background: #276857; border-color: #66c8ad; }
.fp button.fp-warm { background: #683c48; border-color: #c58a95; }
.fp .fp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.fp .fp-actions:last-child { margin-bottom: 0; }
.fp .fp-file { display: inline-flex; align-items: center; position: relative; }
.fp .fp-file input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; clip-path: inset(50%); pointer-events: none; }
.fp :focus-visible, .fp .fp-file:focus-within { outline: 3px solid #e2b3ff; outline-offset: 3px; }
.fp [hidden] { display: none !important; }
.fp .fp-note { font-size: 13px; color: var(--fp-muted); line-height: 1.65; }
.fp .fp-status { padding: 14px 18px; margin: 18px 0; border: 1px solid #715084; border-radius: 11px; background: #2e203b; min-height: 50px; font-size: 14px; }
.fp .fp-error { border-color: #ee9eae; color: #ffd2dd; }
.fp details { border-top: 1px solid #5b426e; margin-top: 20px; padding-top: 18px; }
.fp summary { cursor: pointer; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.fp .fp-stage { background: radial-gradient(ellipse at 50% 0, #3d2655, transparent 70%), #1d152a; border: 1px solid #7b5299; border-radius: 19px; padding: 24px; }
.fp .fp-stage-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.fp .fp-pill { border: 1px solid #8a60a9; border-radius: 20px; background: #39234e; padding: 7px 13px; color: #e4caf9; font-size: 12px; }
.fp .fp-stage-title { text-align: center; font-size: clamp(22px, 2vw, 30px); margin: 15px 0 24px; }
.fp .fp-options { display: grid; grid-template-columns: 1fr 46px 1fr; gap: 10px; align-items: stretch; }
.fp button.fp-option { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; gap: 18px; padding: 28px; min-height: 260px; border-radius: 16px; background: linear-gradient(145deg, #642d5b, #3c2340); border: 1px solid #c57ba9; }
.fp button.fp-option:last-child { background: linear-gradient(145deg, #285c63, #203b4c); border-color: #73b8bf; }
.fp .fp-option-letter { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #ffffff60; border-radius: 10px; font-size: 17px; }
.fp .fp-option-text { font-size: clamp(19px, 1.8vw, 26px); line-height: 1.4; overflow-wrap: anywhere; }
.fp .fp-or { display: grid; place-items: center; font-size: 12px; color: #cfb6e3; font-weight: 800; }
.fp .fp-results { margin: 20px 0; padding: 18px; border: 1px solid #6a4d80; background: #20162d; border-radius: 12px; }
.fp .fp-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fp .fp-result-line { padding: 12px; border: 1px solid #725186; border-radius: 9px; }
.fp meter { display: block; width: 100%; height: 16px; margin-top: 8px; accent-color: #c78ff2; }
.fp .fp-round-controls { justify-content: center; }
.fp .fp-round-controls .fp-primary { min-width: 190px; font-size: 17px; }
.fp .fp-collection { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.fp .fp-small-card { background: #1c1427; border: 1px solid #644579; border-radius: 11px; padding: 16px; min-width: 0; }
.fp .fp-small-card p { font-size: 14px; margin: 10px 0; overflow-wrap: anywhere; }
.fp .fp-small-card button { min-height: 38px; padding: 8px 11px; font-size: 12px; }
.fp .fp-timer { font: 800 clamp(30px, 4vw, 48px)/1 system-ui; font-variant-numeric: tabular-nums; color: #f8dfaa; }
.fp .fp-timer.fp-urgent { color: #ffa5b9; }
.fp .fp-prompt { min-height: 250px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; border: 1px solid #9871b4; border-radius: 16px; background: #2e1c43; margin: 16px 0; }
.fp .fp-prompt strong { font-size: clamp(26px, 3.4vw, 48px); line-height: 1.3; overflow-wrap: anywhere; }
.fp .fp-prompt small { color: #d8bfeb; margin-top: 16px; }
.fp .fp-prompt.fp-covered { background: repeating-linear-gradient(135deg, #342044, #342044 18px, #2c1b3c 18px, #2c1b3c 36px); }
.fp .fp-prompt.fp-covered strong { font-size: 26px; }
.fp .fp-progress { width: 100%; height: 9px; accent-color: #d8a0ff; display: block; }
.fp .fp-play-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fp .fp-play-actions button { min-height: 58px; font-size: 18px; }
.fp .fp-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.fp .fp-score { padding: 17px; background: #20162d; border: 1px solid #624879; border-radius: 12px; text-align: center; }
.fp .fp-score.fp-active { border-color: #dab0ff; background: #412759; }
.fp .fp-score strong { display: block; font: 800 32px system-ui; margin-top: 8px; }
.fp .fp-table { overflow: auto; max-height: 340px; margin-top: 15px; border: 1px solid #634979; border-radius: 9px; }
.fp table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 14px; }
.fp th, .fp td { text-align: left; padding: 13px; border-bottom: 1px solid #4a355c; overflow-wrap: anywhere; }
.fp th { background: #39254d; position: sticky; top: 0; }
.fp .fp-guide { margin-top: 22px; }
.fp .fp-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fp:fullscreen { max-width: none; background: #16101f; overflow: auto; padding: 24px; }
.fp:fullscreen .fp-hero, .fp:fullscreen .fp-guide { display: none; }
@media(max-width:1050px) {
  .fp .fp-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 14px; }
  .fp .fp-options { grid-template-columns: 1fr; }
  .fp button.fp-option { min-height: 140px; padding: 22px; }
  .fp .fp-hero-art { display: none; }
}
@media(max-width:760px) {
  .fp { padding: 12px; }
  .fp .fp-hero { padding: 24px; }
  .fp .fp-layout { grid-template-columns: minmax(0, 1fr); }
  .fp .fp-main { grid-row: 1; }
  .fp .fp-panel, .fp .fp-stage { padding: 18px; }
  .fp .fp-options { grid-template-columns: 1fr; }
  .fp .fp-option-text { font-size: 20px; }
  .fp .fp-guide-grid { grid-template-columns: 1fr; gap: 12px; }
  .fp .fp-round-controls > button { flex: 1 1 42%; min-width: 0; }
  .fp .fp-collection { grid-template-columns: minmax(0, 1fr); }
}
@media(prefers-reduced-motion:no-preference) {
  .fp button { transition: background .15s, border-color .15s; }
  .fp .fp-option:hover { border-color: #f5ceff; }
}

.fp #fpSetup { scroll-margin-top: 105px; }
.fp .fp-settings-link { display: none; }
.fp .fp-main > .fp-panel { margin-top: 20px; }
@media(max-width:760px) { .fp .fp-settings-link { display: inline-block; padding: 8px 0 16px; } }

.fp #fpStage { scroll-margin-top: 105px; }
