/* Fiche d'une île Fortnite : contenu et statistiques des fiches de fortnite.gg, dans le thème de MapRanks (11/10/2026) */
.fiche { --warn: #ff9f0a; max-width: 1160px; }
:root[data-theme="light"] .fiche { --warn: #c76a00; }
.fiche .loading { color: var(--muted); }

.isl-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.isl-top .isl-cover { margin: 0; align-self: start; }
.isl-info { padding: 18px 18px 16px; border-radius: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.isl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.isl-tags span, .isl-tags a { height: 26px; padding: 0 10px; border-radius: 999px; background: var(--pill); font: 600 12px/26px var(--font); text-transform: capitalize; }
.isl-tags a:hover { background: var(--hover); box-shadow: inset 0 0 0 1px var(--line); }
.isl-info .gp-facts { margin: 0; padding: 0; border-top: 0; }
.isl-desc { font: 500 14px/21px var(--font); color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.isl-desc.open { display: block; }
.isl-more { font: 600 13px/1 var(--font); color: var(--fg); margin-top: 6px; }
.isl-code { font: inherit; display: inline-flex; gap: 6px; align-items: center; }
.isl-code svg { width: 14px; height: 14px; color: var(--muted); }
.isl-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--faint); }
.fiche .stat dd { display: flex; align-items: center; gap: 8px; }
.isl-rk { font: 600 12px/20px var(--font); letter-spacing: 0; color: var(--muted); background: var(--pill); border-radius: 999px; padding: 0 8px; }

.isl-card { padding: 20px 20px 16px; }
.fiche .isl-now { margin-top: 0; }
.isl-plot { position: relative; }
.isl-plot canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.isl-plot-main { height: 320px; margin-top: 14px; }
.isl-plot-rank { height: 230px; }
.isl-plot-s { height: 190px; margin-top: 4px; }
.isl-plot.is-empty::after { content: "Not enough data yet · MapRanks is collecting it"; position: absolute; inset: 0; display: grid; place-items: center; font: 500 14px var(--font); color: var(--muted); text-align: center; padding: 0 20px; }
.isl-legend { display: flex; justify-content: center; gap: 18px; font: 500 12px/16px var(--font); color: var(--muted); margin-top: 6px; }
.isl-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--accent); vertical-align: middle; margin-right: 6px; }
.isl-legend i.dot { height: 0; background: none; border-top: 2px dotted var(--muted); }
.isl-hide { font: 600 13px/1 var(--font); color: var(--muted); }
.isl-hide:hover { color: var(--fg); }

.isl-table { margin-top: 14px; }
.isl-table.off { display: none; }
.isl-scroll { max-height: 400px; overflow: auto; overscroll-behavior: contain; border-radius: 12px; }
.isl-t { width: 100%; border-collapse: separate; border-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.isl-t th { position: sticky; top: 0; z-index: 1; background: var(--panel-solid); text-align: right; font: 600 12px/16px var(--font); color: var(--muted); padding: 9px 10px; cursor: pointer; user-select: none; }
.isl-t th.on { color: var(--fg); }
.isl-t th:first-child, .isl-t td:first-child { text-align: left; }
.isl-t td { padding: 7px 10px; text-align: right; font: 600 14px/18px var(--font); border-top: 1px solid var(--faint); }
.isl-t td:first-child { color: var(--muted); font-weight: 500; }
.isl-t tbody tr:hover td { background: var(--hover); }
.isl-t tfoot td { position: sticky; bottom: 0; background: var(--panel-solid); border-top: 1px solid var(--line); font-weight: 700; }
.isl-t tfoot td:first-child { color: var(--fg); font-weight: 600; }
.isl-empty { color: var(--muted); font: 500 14px/20px var(--font); padding: 8px 0; }
.isl-info-i { color: var(--muted); font: 500 13px var(--font); cursor: help; }

.isl-rankline { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font: 500 14px/20px var(--font); color: var(--muted); margin-bottom: 4px; }
.isl-rankline b { color: var(--fg); font-weight: 600; }
.isl-rankpill { height: 28px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--fg); font: 600 13px/28px var(--font); }

.isl-bench-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.isl-b { padding: 16px 16px 12px; border-radius: 18px; min-width: 0; }
.isl-b-t { font: 500 13px/18px var(--font); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.isl-b-v { display: flex; align-items: center; gap: 8px; font: 700 22px/28px var(--display); letter-spacing: -0.4px; margin-top: 2px; }
.isl-b-bar { position: relative; display: flex; gap: 3px; height: 6px; margin: 30px 2px 10px; }
.isl-b-bar i { height: 100%; border-radius: 99px; }
.isl-b-bar i:nth-of-type(1) { flex: 50; }
.isl-b-bar i:nth-of-type(2) { flex: 40; }
.isl-b-bar i:nth-of-type(3) { flex: 10; }
.isl-b-bar b { position: absolute; left: var(--p); top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--fg); transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--panel-solid); }
.isl-b-bar span { position: absolute; left: var(--p); bottom: 12px; transform: translateX(-50%); font: 600 12px/14px var(--font); white-space: nowrap; }
.isl-b-ref { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.isl-b-ref span { font: 500 11px/22px var(--font); color: var(--muted); background: var(--pill); border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.isl-b-ref b { color: var(--fg); font-weight: 600; }

.isl-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.isl-panel { padding: 16px 18px 14px; border-radius: 18px; min-width: 0; }
.isl-sum { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.isl-sum b { font: 700 24px/30px var(--display); letter-spacing: -0.5px; }
.isl-cap { display: block; font: 500 12px/16px var(--font); color: var(--muted); }
.isl-sum .isl-cap { display: inline; }
.isl-b-wait { font: 500 12px/16px var(--font); color: var(--muted); margin-top: 26px; }
.isl-passes { margin-top: 10px; max-height: 260px; overflow: auto; }
.isl-passes li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-top: 1px solid var(--faint); font: 500 14px/18px var(--font); }
.isl-passes li:first-child { border-top: 0; }
.isl-passes span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.isl-passes b { font-weight: 600; white-space: nowrap; }
.isl-badge-name { font: 600 17px/22px var(--display); margin-top: 10px; overflow-wrap: anywhere; }
.isl-boxes-flat { margin-top: 14px; }
.isl-note { color: var(--muted); font: 500 12px/18px var(--font); margin-top: 32px; max-width: 760px; }

@media (max-width: 1100px) {
  .isl-bench-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .isl-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .isl-grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .isl-card { padding: 16px 14px 12px; }
  .isl-plot-main { height: 260px; }
  .isl-bench-grid { grid-template-columns: minmax(0, 1fr); }
}
