.fp-redesign {
  background: var(--surface2);
  container-type: inline-size;
}

.fp-redesign .fp-scene { height: clamp(190px, 18cqw, 260px); }
.fp-redesign .fp-scene-banner { object-position: center 53%; }
.fp-redesign .fp-scene-overlay {
  background: linear-gradient(90deg, #183f6299, #183f6240 35%, transparent 67%);
}
.fp-hero-copy {
  position: relative;
  padding: clamp(18px, 4cqw, 54px);
  color: white;
}
.fp-hero-copy h1 {
  margin: 10px 0 6px;
  font-size: clamp(1.4rem, 3cqw, 2.35rem);
  line-height: 1.12;
}
.fp-hero-copy p { margin: 0; max-width: 35ch; font-size: .95rem; }
.fp-hero-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--surface);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 800;
}

.fp-redesign .fp-body {
  grid-template-columns: minmax(0, 1fr) minmax(235px, 25%);
  max-width: 1560px;
  gap: clamp(12px, 2cqw, 26px);
  padding: clamp(12px, 2cqw, 26px) clamp(12px, 2cqw, 26px) 80px;
}
.fp-running-page .fp-main-col { gap: 18px; }
.fp-running-page .fp-hero-copy { padding: clamp(20px, 3.8cqw, 48px); }
.fp-running-page .fp-hero-copy h1 { font-size: clamp(1.4rem, 2.1cqw, 1.75rem); }
.fp-running-page .fp-hero-copy p { font-size: .86rem; }
.fp-running-page .fp-tip .fp-card-body {
  min-height: 116px;
  padding-right: 38%;
  background-image: url('../assets/helmut-fischermeister.webp');
  background-position: right bottom;
  background-size: 122px auto;
}
.fp-running-page .fp-tip .fp-card-body > p { background: transparent; }
.fp-running-page .fp-main-col > .fp-card > .fp-card-hdr { background: transparent; border-bottom: 0; padding: 12px 18px 0; }
.fp-running-page .fp-main-col > .fp-card > .fp-card-body { padding: 12px 18px 16px; }
.fp-tackle-rod { display: flex; align-items: center; gap: 9px; }
.fp-tackle-rod > span { font-size: 1.55rem; }
.fp-tackle-rod small, .fp-tackle-rod strong { display: block; }
.fp-tackle-rod small { color: var(--text2); font-size: .7rem; }
.fp-tackle-rod strong { font-size: .85rem; }
.fp-tackle-stock { list-style: none; padding: 6px 0; margin: 8px 0; font-size: .77rem; }
.fp-tackle-stock li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid var(--border); }
.fp-tackle-card .btn { width: 100%; }
.fp-catch-preview .fp-design-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.fp-catch-preview .fp-catch-tile { min-height: 145px; grid-template-rows: 58px auto auto auto; align-content: center; font-size: .73rem; overflow-wrap: anywhere; }
.fp-catch-image { display: grid; place-items: center; width: min(90%, 110px); height: 58px; }
.fp-catch-image img { width: 100%; height: 58px; object-fit: contain; }
.fp-catch-rarity { border-radius: 99px; padding: 2px 6px; background: var(--primary-l); }
.fp-catch-more { color: var(--primary); background: none; border-color: transparent; box-shadow: none; }
.fp-all-catches { margin: 0 18px; }
.fp-all-catches:not([open]) { display: none; }
.fp-all-catches summary { cursor: pointer; font-size: .8rem; font-weight: 700; }
.fp-all-catches ul {
  columns: 2;
  column-gap: 24px;
  margin: 8px 0 14px;
  padding-inline: 26px 12px;
  font-size: .8rem;
}
.fp-all-catches li { break-inside: avoid; padding-block: 2px; }
.fp-catch-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 18px 18px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface2);
  font-size: .78rem;
}
.fp-catch-note > span { display: grid; flex: 0 0 44px; height: 44px; place-items: center; border-radius: 50%; color: var(--primary); background: var(--primary-l); font-size: 1.6rem; }
.fp-catch-note small { display: block; margin-top: 4px; color: var(--text2); }
.fp-redesign .fp-side-col { grid-column: auto; }
.fp-session-feature {
  display: grid;
  justify-items: stretch;
  gap: 10px;
  padding: clamp(12px, 2cqw, 24px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--sh-sm);
}
.fp-redesign .fp-main-col:has(.fp-session-feature:not(.fp-session-live)) { gap: clamp(16px, 2cqw, 26px); }
.fp-redesign .fp-back-footer { background: none; border: 0; padding: 0 20px 20px; }
.fp-redesign .fp-body:has(+ .fp-back-footer) { padding-bottom: 18px; }
.fp-session-feature .fp-helmut-card {
  position: relative;
  top: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border: 0;
  background: none;
  box-shadow: none;
  min-height: 160px;
}
.fp-helmut-scene {
  width: min(94%, 760px);
  height: clamp(164px, 16cqw, 205px);
  object-fit: contain;
  object-position: center bottom;
  align-self: end;
}
.fp-session-feature .fp-helmut-bubble {
  position: absolute;
  inset: 9% 51% auto auto;
  width: min(40%, 280px);
  min-height: 0;
  margin: 0;
  padding: 9px 13px;
  border-radius: 20px;
  color: var(--text);
  background: var(--surface2);
  font-style: normal;
  font-size: clamp(.72rem, 1.25cqw, .92rem);
  box-shadow: var(--sh-sm);
}
.fp-helmut-speaker { display: block; color: var(--primary); }
.fp-session-feature:not(.fp-session-live) .fp-helmut-speaker { font-size: 1.1em; }
.fp-session-feature:not(.fp-session-live) .fp-helmut-bubble::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 43%;
  border: 9px solid transparent;
  border-left-color: var(--border);
}
.fp-session-lake {
  display: none;
  width: 100%;
  height: 100%;
  max-height: 195px;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.fp-session-live .fp-session-card { border: 0; box-shadow: none; background: transparent; }
.fp-session-live { padding: 11px 15px; gap: 14px; background: var(--surface2); }
.fp-session-live .fp-card-hdr { justify-content: flex-start; background: none; padding: 10px 0 13px; }
.fp-session-live .fp-card-title { font-size: 1.05rem; }
.fp-session-live .fp-chip-active { background: var(--green-l); color: var(--green); border-color: currentColor; }
.fp-session-live .fp-chip-dot { display: none; }
.fp-session-live .fp-card-body { padding: 11px 0 0; }
.fp-live-location { padding: 0; font-size: .78rem; color: var(--text2); }
.fp-session-live .fp-session-meta { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 0 0 6px; }
.fp-live-stat { display: flex; gap: 6px; align-items: start; min-width: 0; font-size: .72rem; }
.fp-live-stat + .fp-live-stat { border-inline-start: 1px solid var(--border); padding-inline-start: 8px; }
.fp-live-stat small { display: block; color: var(--text2); margin-bottom: 2px; font-size: .68rem; }
.fp-session-live .fp-timer-track { display: none; }
.fp-session-live .fp-collect-btn { margin-top: 8px; }
.fp-session-live .fp-collect-btn[hidden] { display: none; }
.fp-live-guide {
  display: grid;
  align-self: stretch;
  align-content: end;
  gap: 5px;
  min-width: 0;
  min-height: 146px;
  background: url('../assets/helmut-session.webp') no-repeat right bottom / auto 110%;
}
.fp-live-guide-art {
  display: flex;
  align-items: center;
  min-height: 104px;
}
.fp-live-guide-art p {
  position: relative;
  z-index: 1;
  width: min(63%, 195px);
  margin: 0;
  margin-inline-start: auto;
  margin-inline-end: min(24%, 82px);
  padding: 9px 10px 7px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--primary-l);
  font-size: .72rem;
  line-height: 1.35;
}
.fp-live-guide-art strong {
  position: absolute;
  top: 0;
  left: 9px;
  transform: translateY(-58%);
  padding: 0 9px;
  border-radius: 99px;
  background: var(--primary-l);
  color: var(--primary);
}
.fp-live-guide-art p::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 42%;
  border: 6px solid transparent;
  border-left-color: var(--border);
}
.fp-live-cancel {
  justify-self: end;
  width: min(100%, 175px);
  min-height: 34px;
  background: var(--primary-l);
  color: var(--primary);
  position: relative;
}
.fp-live-cancel span { margin-inline-end: 5px; }
.fp-live-cancel[hidden] { display: none; }
.fp-quest-modal {
  width: min(94vw, 560px);
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-lg);
}
.fp-quest-modal::backdrop { background: #14264888; backdrop-filter: blur(4px); }
.fp-book-modal {
  width: min(96vw, 1460px);
  max-width: none;
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-lg);
}
.fp-book-modal::backdrop { background: #14264888; backdrop-filter: blur(4px); }
.fp-book-hero {
  position: relative;
  display: grid;
  min-height: clamp(135px, 17vw, 192px);
  place-items: center;
  text-align: center;
  padding: 14px 58px;
  background: url('../assets/angel-see.webp') center 48% / cover;
}
.fp-book-hero > div {
  position: relative;
  padding: 6px clamp(16px, 4vw, 46px) 12px;
  border: 2px solid #e2c396;
  border-radius: 48% 48% 14px 14px;
  background: #fff3dbf5;
  color: #493323;
  box-shadow: 0 3px 12px #45332242;
}
.fp-book-hero::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: min(36%, 420px);
  background: url('../assets/helmut-steg.webp') no-repeat left bottom / contain;
  pointer-events: none;
}
.fp-book-hero h2 { margin: 0; font: 700 clamp(1.5rem, 4vw, 3rem)/1.08 Georgia, serif; }
.fp-book-hero p { margin: 5px 0 0; font: 700 clamp(.7rem, 1.5vw, 1rem) Georgia, serif; }
.fp-book-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; }
.fp-book-layout {
  display: grid;
  grid-template-columns: minmax(160px, 19fr) minmax(0, 53fr) minmax(215px, 28fr);
  gap: 14px;
  padding: 16px;
  background: var(--surface2);
}
.fp-book-sidebar, .fp-book-results { min-width: 0; }
.fp-book-sidebar { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.fp-book-filters { display: grid; gap: 4px; }
.fp-book-filters .btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; text-align: start; }
.fp-book-filters .btn[aria-pressed=true], .fp-book-entry[aria-pressed=true] { background: var(--primary-l); border-color: var(--primary); }
.fp-book-filters small { white-space: nowrap; }
.fp-book-collection, .fp-book-detail {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.fp-book-collection { display: grid; gap: 8px; text-align: center; }
.fp-book-collection progress { width: 100%; accent-color: var(--primary); }
.fp-book-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fp-book-toolbar input, .fp-book-toolbar select {
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
}
.fp-book-toolbar input { flex: 1 1 150px; }
.fp-book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 106px), 1fr)); gap: 8px; }
.fp-book-entry {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  min-height: 112px;
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .78rem;
  text-align: center;
  overflow-wrap: anywhere;
}
button.fp-book-entry { cursor: pointer; }
.fp-book-entry[aria-pressed=true] { box-shadow: inset 0 0 0 1px var(--primary); }
.fp-book-icon { display: grid; place-items: center; height: 52px; width: 100%; font-size: 2rem; }
.fp-book-icon img { width: min(90%, 95px); height: 52px; object-fit: contain; }
.fp-book-locked { background: var(--surface2); color: var(--text2); }
.fp-book-locked .fp-book-icon { filter: grayscale(1); opacity: .45; }
.fp-book-rarity { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--primary-l); font-size: .72rem; }
.fp-book-rarity-uncommon { background: var(--green-l); color: var(--green); }
.fp-book-rarity-rare, .fp-book-rarity-legendary { color: var(--primary); }
.fp-book-list { grid-template-columns: 1fr; }
.fp-book-list .fp-book-entry { grid-template-columns: 50px minmax(0, 1fr) auto; min-height: 52px; justify-items: start; align-items: center; text-align: start; padding: 4px 10px; }
.fp-book-list .fp-book-icon, .fp-book-list .fp-book-icon img { height: 38px; }
.fp-book-detail { text-align: center; align-self: start; min-width: 0; }
.fp-book-detail-art { display: grid; place-items: center; height: 145px; border-radius: 12px; background: var(--primary-l); font-size: 4rem; }
.fp-book-detail-art img { width: min(85%, 220px); height: 125px; object-fit: contain; }
.fp-book-detail h3 { margin: 10px 0 4px; font: 700 clamp(1.2rem, 2.2vw, 1.9rem) Georgia, serif; }
.fp-book-detail p, .fp-book-empty { color: var(--text2); font-size: .85rem; line-height: 1.45; }
.fp-book-detail dl { margin: 12px 0 0; text-align: start; font-size: .82rem; }
.fp-book-detail dl div { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid var(--border); }
.fp-book-detail dd { margin: 0; font-weight: 700; }
@media (max-width: 960px) {
  .fp-book-layout { grid-template-columns: minmax(0, 1fr) minmax(200px, 32%); }
  .fp-book-sidebar { grid-column: 1 / -1; flex-direction: row; }
  .fp-book-filters { display: flex; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .fp-book-layout { grid-template-columns: 1fr; }
  .fp-book-sidebar { flex-direction: column; gap: 8px; }
  .fp-book-filters .btn { min-height: 36px; }
  .fp-book-detail { grid-row: 2; }
  .fp-book-detail-art { height: 96px; }
  .fp-book-detail-art img { height: 86px; }
}
.fp-session-feature:not(.fp-session-live) .fp-session-card {
  border: 0;
  box-shadow: none;
}
.fp-session-feature:not(.fp-session-live) .fp-session-card .fp-card-hdr { display: none; }
.fp-session-feature .fp-session-idle { padding: 8px 0 0; }
.fp-session-feature .fp-session-idle-title { font-size: clamp(1.15rem, 2.4cqw, 1.65rem); }
.fp-session-feature .fp-session-idle-sub {
  max-width: 45ch;
  margin: 8px auto 0;
  font-size: clamp(.86rem, 1.45cqw, 1.06rem);
  line-height: 1.45;
}
.fp-setup-trigger { justify-self: center; min-height: 44px; width: min(100%, 350px); }
.fp-session-divider { display: flex; align-items: center; gap: 12px; margin: 8px 8%; }
.fp-session-divider::before, .fp-session-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.fp-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
  gap: 8px;
}
.fp-quick-links .btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: start;
  gap: 9px;
  min-height: 84px;
  padding: 10px 12px;
  background: var(--surface);
}
.fp-quick-links .btn > span:first-child { font-size: clamp(1.35rem, 3cqw, 2.65rem); }
.fp-quick-links .btn > span:nth-child(2) { flex: 1; min-width: 0; }
.fp-quick-links small { display: block; margin-top: 4px; font-weight: 500; color: var(--text2); }
.fp-highlight-tiles > div {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  align-content: center;
  text-align: start;
  padding: 12px;
}
.fp-highlight-tiles > div > span { grid-row: 1 / 3; margin-inline-end: 5px; }
.fp-highlight-tiles > div > small { line-height: 1.4; }
.fp-tip { background: var(--surface2); }
.fp-tip p { margin: 5px 0 10px; font-size: .8rem; color: var(--text2); }
.fp-tip .fp-card-body { min-height: 112px; padding-right: 32%; background: url('../assets/helmut-steg.webp') no-repeat right -18px bottom / 210px auto; }
.fp-tip .fp-card-body > strong, .fp-tip .fp-card-body > p { position: relative; }
.fp-tip .fp-card-body > p { max-width: 24ch; background: var(--surface2); }
.fp-design-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 108px), 1fr));
  gap: 8px;
}
.fp-design-tiles > div {
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 12px 6px;
  text-align: center;
  font-size: .8rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.fp-design-tiles span { font-size: 1.7rem; }
.fp-design-tiles small { color: var(--text2); }
.fp-side-drawer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-sm);
  padding: 0 10px;
}
.fp-side-drawer > summary {
  padding: 12px 4px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 750;
}
.fp-side-drawer > summary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  min-height: 46px;
}
.fp-side-drawer > summary::after { content: '⌄'; }
.fp-side-drawer[open] > summary::after { content: '⌃'; }
.fp-side-drawer > p { color: var(--text2); margin: 2px 4px 8px; font-size: .8rem; }
.fp-book-card .fp-card-hdr { justify-content: flex-start; align-items: center; min-height: 64px; }
.fp-book-card .fp-card-hdr > span { font-size: 1.5rem; }
.fp-book-card .fp-card-hdr small { display: block; color: var(--text2); margin-top: 3px; font-size: .68rem; }
.fp-side-drawer[open] { padding-bottom: 10px; }
.fp-book-progress { display: grid; gap: 5px; margin-bottom: 12px; font-size: .76rem; }
.fp-book-progress span { display: flex; justify-content: space-between; gap: 8px; }
.fp-book-progress progress { width: 100%; height: 8px; accent-color: var(--primary); }

/* Shop and role pickers use the shared overlay above the setup. */
.fp-setup.modal-bg {
  z-index: 990;
  align-items: center;
  padding: 12px;
}
.fp-setup .fp-setup-sheet {
  max-width: 930px;
  max-height: 90dvh;
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.fp-setup-guide {
  position: relative;
  height: clamp(180px, 25vw, 240px);
  overflow: hidden;
  background: var(--surface2);
}
.fp-setup-guide img {
  display: block;
  width: 100%;
  /* Keep the blank bottom edge of the source outside the banner. */
  height: 111%;
  object-fit: cover;
  object-position: right 43%;
}
.fp-setup-guide p {
  position: absolute;
  inset: auto auto 16px clamp(12px, 4vw, 38px);
  width: min(60%, 290px);
  margin: 0;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: .9rem;
  text-align: start;
  box-shadow: var(--sh-sm);
}
.fp-setup .modal-hdr p { margin: 4px 0 0; color: var(--text2); font-size: .8rem; }
.fp-setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 26%);
  gap: 12px;
  padding: 12px;
  align-items: start;
}
.fp-setup-summary dl { margin: 0; font-size: .8rem; }
.fp-setup-summary dt { color: var(--text2); }
.fp-setup-summary dd { margin: 0 0 8px; font-weight: 750; }
.fp-setup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fp-setup-actions .btn { flex: 1 1 135px; min-height: 40px; width: auto; }
.fp-setup .fp-bait-grid { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
.fp-setup .fp-bait-card, .fp-setup .fp-dur-card {
  color: var(--text);
  font-family: inherit;
  min-width: 0;
  overflow-wrap: anywhere;
}

@container (min-width: 920px) {
  .fp-session-live {
    grid-template-columns: minmax(95px, 23fr) minmax(0, 46fr) minmax(0, 31fr);
    align-items: center;
  }
  .fp-session-live .fp-session-meta {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 12px;
  }
  .fp-live-stat + .fp-live-stat { padding-inline-start: 12px; }
  .fp-session-live .fp-session-lake:not([hidden]) { display: block; }
  .fp-session-live .fp-session-lake { height: 135px; object-position: 57% 45%; }
}
@container (max-width: 710px) {
  .fp-redesign .fp-body { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 470px) {
  .fp-all-catches ul { columns: 1; }
  .fp-session-feature .fp-helmut-bubble { inset: 5% 43% auto auto; width: 52%; font-size: .73rem; }
  .fp-quick-links, .fp-highlight-tiles { grid-template-columns: 1fr; }
  .fp-quick-links .btn { min-height: 58px; }
  .fp-catch-preview .fp-design-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .fp-setup-layout { grid-template-columns: minmax(0, 1fr); }
  .fp-setup-guide p { width: min(55%, 250px); font-size: .75rem; }
}
