/*
 * [INPUT]: MagicPath 视觉规范（#F8F8F3 纸底、#182B2C 墨青、#EE6B4B 珊瑚橙、#225E55 森林绿、Inter 字体与 860/620 断点）。
 * [OUTPUT]: 全站游戏页与求解器页共用的 MagicPath 外壳样式（顶栏、页脚、同意横幅、广告预留位、通关跨游戏导流区与阅读指南容器）。
 * [POS]: src 的共享外壳样式表，构建后输出至 dist/fp-shell.css，被 /queens/、/tango/、/pips/、/queens-solver/、/crossmath/、/crossmath-solver/ 引用。
 * [PROTOCOL]: 变更时更新此头部，然后检查 CLAUDE.md
 */
html, body { margin: 0; }
.fp-site {
  --ink: #182B2C;
  --muted: #657470;
  --paper: #F8F8F3;
  --surface: #FFFFFF;
  --line: #D9E1DB;
  --coral: #EE6B4B;
  --forest: #225E55;
  --lime: #E8F2B5;
  --accent: #225E55;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.fp-site * { box-sizing: border-box; }
.fp-site button { font: inherit; cursor: pointer; }
.fp-site button:focus-visible, .fp-site a:focus-visible, .fp-site input:focus-visible, .fp-site select:focus-visible { outline: 3px solid #D8784B; outline-offset: 2px; }
.fp-width { max-width: 1170px; padding: 0 28px; margin: 0 auto; }

.fp-header { background: rgba(248, 248, 243, .98); border-bottom: 1px solid var(--line); }
.fp-head-inner { height: 56px; display: flex; align-items: center; gap: 36px; }
.fp-logo { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 20px; font-weight: 850; letter-spacing: -1.2px; line-height: 1; color: var(--ink); text-decoration: none; }
.fp-logo-light { font-weight: 550; }
.fp-mark { width: 34px; height: 34px; flex: none; display: block; }
.fp-mark-small { width: 26px; height: 26px; }
.fp-header nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.fp-header nav a { display: inline-flex; align-items: center; min-height: 36px; color: #626F69; font-size: 13px; font-weight: 670; padding: 7px 12px; border-radius: 7px; text-decoration: none; white-space: nowrap; }
.fp-header nav a.active { color: var(--ink); background: #E9EEE8; }
.fp-header nav a:hover { color: var(--forest); }
.fp-head-note { margin-left: auto; font-size: 11px; letter-spacing: .03em; color: #96A39B; font-style: italic; white-space: nowrap; }
.preview { font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6E5835; background: #F5ECD4; border: 1px solid #DFCFA3; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }

.analytics-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--muted); }
.analytics-settings h2 { font-size: 14px; color: var(--ink); margin: 0; }
.analytics-settings[hidden] { display: none; }
.analytics-settings > div { display: flex; flex-wrap: wrap; gap: 8px; }
.analytics-settings p { margin: 0; margin-right: auto; }
.analytics-settings button { min-height: 36px; padding: 6px 14px; border-radius: 8px; border: 1px solid #C8D3CA; background: #EFF3EC; color: var(--ink); font-size: 13px; font-weight: 700; }
#analytics-allow { background: var(--forest); border-color: var(--forest); color: #FFFDF7; }
.analytics-settings button:disabled { opacity: .45; cursor: not-allowed; }

.fp-ad-slot { margin: 22px 0; min-height: 90px; display: flex; align-items: center; justify-content: center; background: #F1F3ED; border: 1px dashed #CBD7CE; border-radius: 12px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.fp-ad-slot:empty { display: none; }

.fp-daily-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #C5D67D; }
.fp-daily-next-meta { font-size: 12px; font-weight: 760; color: #334942; }
.fp-daily-next-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 999px; background: #FFFDF7; border: 1px solid #A9BE58; color: var(--ink); font-size: 12px; font-weight: 780; text-decoration: none; white-space: nowrap; }
.fp-daily-next-link:hover { border-color: var(--forest); color: var(--forest); }

.fp-subhero { padding: 26px 0 20px; border-bottom: 1px solid var(--line); }
.fp-eyebrow { display: flex; align-items: center; gap: 8px; font-weight: 850; color: var(--forest); font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.fp-eyebrow-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--coral); transform: rotate(-12deg); flex: none; }
.fp-subhero h1 { font-weight: 850; letter-spacing: -1.8px; line-height: 1.1; font-size: clamp(26px, 3.2vw, 38px); margin: 8px 0 8px; }
.fp-subhero p { color: #65736E; font-size: 14px; line-height: 1.5; margin: 0; max-width: 72ch; }

.fp-footer { margin-top: 44px; border-top: 1px solid #DCE3DD; padding: 19px 0 25px; font-size: 11px; color: #8B9990; }
.fp-footer > .fp-width { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.fp-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.fp-footer a { color: #66776D; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; }
.fp-footer a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .fp-head-note { display: none; }
}
@media (max-width: 620px) {
  .fp-width { padding: 0 16px; }
  .fp-head-inner { height: 52px; gap: 10px; justify-content: space-between; }
  .fp-logo { font-size: 17px; letter-spacing: -1px; }
  .fp-mark { height: 29px; width: 29px; }
  .fp-header nav { gap: 0; }
  .fp-header nav a { font-size: 11px; padding: 6px 7px; }
  .fp-subhero { padding: 16px 0 14px; }
  .fp-subhero p { font-size: 12px; }
  .fp-footer > .fp-width { display: block; }
  .fp-footer > .fp-width > span { display: block; margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-site * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
