.ifp,.ifp-round{box-sizing:border-box;min-width:0;max-width:100%;color:#e8edf5}
.ifp{margin:22px 0;padding:18px;border:1px solid #354153;border-radius:12px;background:#101722;scroll-margin-top:90px}
.ifp *,.ifp-round *{box-sizing:border-box;min-width:0}
.ifp h2{font-size:22px;margin:0 0 14px}.ifp h3,.ifp-round h4{font-size:18px}
.ifp h4,.ifp-round h4{margin:20px 0 11px}.ifp h5,.ifp-round h5{font-size:15px;margin:0 0 9px}
.ifp p,.ifp-round p{overflow-wrap:anywhere;line-height:1.6}
.ifp-note{font-size:13px;color:#b4bfd0;line-height:1.6;margin:12px 0}
.ifp a,.ifp-round a{color:#b4d7ff;text-underline-offset:3px}
.ifp-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.ifp-tabs button{font:inherit;cursor:pointer;color:#e8edf5;background:#232d3d;border:1px solid #4c5a70;border-radius:9px;min-height:44px}
.ifp-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:9px 12px;font-size:14px;font-weight:650}
.ifp-tabs button[aria-pressed=true]{border-color:#f3ca70;background:#5b4829;color:#fff5dc;box-shadow:inset 0 0 0 1px #f3ca7055}
.ifp button:focus-visible,.ifp-round button:focus-visible,.ifp summary:focus-visible,.ifp-round summary:focus-visible,.ifp-scroll:focus-visible{outline:3px solid #80c6ff;outline-offset:3px}
.ifp button:disabled,.ifp-round button:disabled{cursor:default;opacity:.75}
.ifp-art{object-fit:contain;flex:0 0 40px;display:inline-block;vertical-align:middle;max-width:40px;max-height:40px}
.ifp-slot-icon{width:40px;height:40px;flex:0 0 40px;border:1px solid #bca467;background:linear-gradient(145deg,#6d5427,#202a3b);border-radius:10px;display:inline-flex;align-items:center;justify-content:center;font-size:28px;color:#ffe5a5;vertical-align:middle}
.ifp-card{border:1px solid #3c495d;border-radius:12px;background:#1a2332;padding:18px;min-width:0;margin:16px 0}
.ifp-card>h3{display:flex;align-items:center;gap:10px;margin:0 0 17px}
.ifp-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0}
.ifp-kpis>div{padding:12px;border:1px solid #39485d;border-radius:9px;background:#111a26}
.ifp-kpis dt{font-size:12px;color:#bdc7d8;margin-bottom:8px;line-height:1.4}
.ifp-kpis dd{font-size:23px;font-weight:700;color:#efcd7c;margin:0;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ifp-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:16px 0}
.ifp-choice{border:1px solid #43526a;border-top-width:4px;border-radius:10px;background:#121b28;padding:14px;min-width:0}
.ifp-choice[data-color=Red]{border-top-color:#f27681}.ifp-choice[data-color=Blue]{border-top-color:#74b7ff}.ifp-choice[data-color=Green]{border-top-color:#69d2ac}.ifp-choice[data-color=Yellow]{border-top-color:#f4d36e}
.ifp-choice h4,.ifp-choice h5{margin:0 0 12px}.ifp-choice>.ifp-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.ifp-choice>.ifp-kpis>div{padding:9px}.ifp-choice>.ifp-kpis dd{font-size:19px}.ifp-choice-value{font-size:30px;font-weight:750;color:#f1d284;font-variant-numeric:tabular-nums}
.ifp-fold,.ifp-round{border:1px solid #3c4b61;border-radius:10px;background:#141e2d;margin:14px 0;padding:0 12px}
.ifp-fold>summary,.ifp-round>summary{cursor:pointer;min-height:48px;padding:13px 0;font-weight:650;line-height:1.5;list-style:disclosure-closed}
.ifp-fold[open]>summary{list-style:disclosure-open}
.ifp-round>summary{display:flex;gap:12px;align-items:center;list-style:none}
.ifp-round>summary:after{content:'＋';margin-left:auto;font-size:18px;color:#efd28d;padding:0 3px}
.ifp-round[open]>summary:after{content:'−'}
.ifp-round>summary>span{display:block}.ifp-round>summary strong,.ifp-round>summary small{display:block}
.ifp-round>summary small{font-size:12px;font-weight:400;color:#b8c3d4;margin-top:3px}
.ifp-top-detail{border-top:1px solid #38475c;padding-top:2px}.ifp-top-detail>h4{display:flex;align-items:center;gap:10px}
.ifp-top-detail .ifp-kpis dd{font-size:18px}
.ifp-scroll{display:block;max-width:100%;overflow:auto;overscroll-behavior-inline:contain;margin:15px 0;min-width:0}
.ifp-scroll table{display:table;width:100%;min-width:500px;border-collapse:collapse;font-size:13px;margin:0}
.ifp-scroll caption{text-align:left;font-size:12px;color:#b7c3d5;margin-bottom:9px;caption-side:top}
.ifp-scroll th,.ifp-scroll td{text-align:left;vertical-align:top;padding:10px 8px;border:0;border-bottom:1px solid #39485c;white-space:normal;overflow-wrap:anywhere}
.ifp-scroll thead th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#b4c0d2}
.ifp-tabs button .bonus-mention>.result-mark,.ifp-card>h3 .bonus-mention>.result-mark,.ifp-round>summary .bonus-mention>.result-mark{display:none}
/* Native history keeps its six-column base row and a separate full-width detail row. */
#history-explorer .history-result-table tr.ifp-history-row{display:table-row;outline:0;background:transparent}
#history-explorer .history-result-table td.ifp-history-cell{display:table-cell;padding:0 6px 10px;width:auto;border:0;max-width:100%;min-width:0;white-space:normal}
#history-explorer .ifp-history-cell>.ifp-round{width:100%;margin:0;max-width:100%}
/* Legacy mobile history rules target descendant tables; restore this scoped ledger. */
#history-explorer .ifp-history-cell .ifp-scroll table{display:table;width:100%;min-width:500px;border-collapse:collapse;table-layout:auto}
#history-explorer .ifp-history-cell .ifp-scroll thead{display:table-header-group;position:static;width:auto;height:auto;padding:0;overflow:visible;clip-path:none;white-space:normal}
#history-explorer .ifp-history-cell .ifp-scroll tbody{display:table-row-group;width:auto}
#history-explorer .ifp-history-cell .ifp-scroll tr{display:table-row;grid-template-columns:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;outline:0}
#history-explorer .ifp-history-cell .ifp-scroll th,#history-explorer .ifp-history-cell .ifp-scroll td{display:table-cell;width:auto;min-width:0;padding:10px 8px;border:0;border-bottom:1px solid #39485c;text-align:left;white-space:normal}
@media(max-width:700px){
 .ifp{padding:13px;margin:18px 0;scroll-margin-top:145px}.ifp-card{padding:12px}.ifp h2{font-size:20px}
 .ifp-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.ifp-kpis>div{padding:10px}.ifp-kpis dd{font-size:20px}
 .ifp-tabs{gap:7px}.ifp-tabs button{padding:8px 10px;font-size:13px}.ifp-tabs .ifp-art,.ifp-tabs .ifp-slot-icon{width:30px;height:30px;max-width:30px;max-height:30px;flex-basis:30px;font-size:23px}
 .ifp-round{padding:0 10px}.ifp-round .ifp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ifp-note{font-size:12px}
 #history-explorer .history-result-table tr.ifp-history-row{display:block;grid-template-columns:none;margin:0 0 12px;padding:0;border:0;border-radius:0;max-width:100%}
 #history-explorer .history-result-table td.ifp-history-cell{display:block;padding:0;width:100%;max-width:100%;border:0}
}
@media(max-width:560px){.ifp-choices{grid-template-columns:minmax(0,1fr)}.ifp-top-detail .ifp-kpis dd{font-size:16px}.ifp-card>h3{font-size:17px}.ifp-round>summary{gap:9px}}
@media(prefers-reduced-motion:reduce){.ifp *,.ifp-round *{scroll-behavior:auto!important;transition:none!important}}

.ifp-choice[data-fish="Lil' Blues"]{border-top-color:#69b6ff}.ifp-choice[data-fish="Big Oranges"]{border-top-color:#f3b35b}.ifp-choice[data-fish="Huge Reds"]{border-top-color:#ed7b8c}
.ifp-fish-head{display:flex;gap:10px;align-items:center}.ifp-fish-head .ifp-art{width:48px;height:48px;max-width:48px;max-height:48px;flex-basis:48px}
.ifp-equation{display:flex;flex-wrap:wrap;align-items:stretch;gap:9px;margin:16px 0}.ifp-equation>div{flex:1 1 150px;border:1px solid #3c4b61;border-radius:10px;padding:13px;background:#111a26}.ifp-equation small,.ifp-equation strong{display:block}.ifp-equation small{font-size:12px;color:#bdc7d8;margin-bottom:8px}.ifp-equation strong{font-size:25px;color:#efcd7c;font-variant-numeric:tabular-nums}.ifp-equation p{font-size:12px;color:#b4bfd0;margin:8px 0 0}

.ifp .ifp-anomaly,.ifp-round .ifp-anomaly{border-left:3px solid #e8b670;padding:10px;background:#403420;border-radius:0 7px 7px 0;color:#f5deb3}

/* Fish detail already supplies its own artwork; suppress automatic mention art. */
.ifp-fish-head .bonus-mention>.result-mark{display:none!important}
