/* TerraSkein modes: Hunting (default — no rules here change it) · Fishing (light blue + gold) · Ice Fishing (white + gold).
   html.mode-hunt|mode-fish|mode-ice is set by the inline head script + modes.js. Page bodies stay dark gold in every mode. */
/* ---------- Profile: three photo mode tiles under the license tile ---------- */
.modeBox{margin:4px 0 14px}
.modeHd{display:flex;align-items:baseline;gap:8px;margin:2px 0 8px}.modeHd b{color:#e2c35a;font-size:17px}.modeHd span{color:#a8a58f;font-size:12px}
.modeRow{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.mTile{position:relative;height:118px;border-radius:14px;overflow:hidden;border:1.5px solid #5a4a1c;background:#000 center/cover;box-shadow:0 3px 10px #0008;cursor:pointer;padding:0;margin:0;width:auto;font:inherit}
.mTile::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0000 35%,#000d 100%)}
.mTile .mName{position:absolute;left:8px;right:6px;bottom:7px;z-index:1;font-weight:800;font-size:14.5px;color:#f3e3a6;line-height:1.1;text-shadow:0 1px 3px #000;text-align:left}
.mTile .mSw{position:absolute;left:8px;top:8px;z-index:1;display:flex;gap:3px}.mTile .mSw i{width:11px;height:11px;border-radius:50%;border:1px solid #fff9;display:block}
.mTile:not(.on){filter:saturate(.75) brightness(.8)}
.mTile.on{border:3px solid #e2c35a;box-shadow:0 0 0 1px #000,0 0 14px #e2c35a88}
.mTile .mOn{position:absolute;right:6px;top:6px;z-index:1;padding:3px 8px;border-radius:999px;background:linear-gradient(#f0d266,#c9a227);color:#1a1208;font-size:11px;font-weight:800}
.mTile:not(.on) .mOn{display:none}
/* ---------- which tabs / buttons show in each mode ---------- */
nav button[data-v="catches-view"],nav button[data-v="spots-view"],nav button[data-v="traps-view"],nav button[data-v="ftrophy-view"]{display:none}
html:is(.mode-fish,.mode-ice) nav button[data-v="trophy-view"]{display:none!important}html:is(.mode-fish,.mode-ice) nav button[data-v="ftrophy-view"]{display:flex;order:7}
html.mode-fish nav button:is([data-v="signs-view"],[data-v="gear-view"]),html.mode-ice nav button:is([data-v="signs-view"],[data-v="gear-view"],[data-v="spots-view"]){display:none!important}
html.mode-fish nav button:is([data-v="catches-view"],[data-v="spots-view"]),html.mode-ice nav button:is([data-v="catches-view"],[data-v="traps-view"]){display:flex}
html:is(.mode-fish,.mode-ice) nav button[data-v="map-view"]{order:1}html:is(.mode-fish,.mode-ice) nav button[data-v="friends-view"]{order:2}
html:is(.mode-fish,.mode-ice) nav button[data-v="laws-view"]{order:3}html.mode-ice nav button[data-v="traps-view"]{order:4}
html:is(.mode-fish,.mode-ice) nav button[data-v="catches-view"]{order:5}html.mode-fish nav button[data-v="spots-view"]{order:6}
html:is(.mode-fish,.mode-ice) nav button[data-v="trophy-view"]{order:7}html:is(.mode-fish,.mode-ice) nav button[data-v="profile-view"]{order:8}
.modeBtn{display:none!important}
html.mode-fish .modeBtn.fishOnly,html.mode-ice .modeBtn.iceOnly{display:inline-flex!important}
html:is(.mode-fish,.mode-ice) :is(#trackBtn,#jumpBtn,#lanesWrap){display:none!important}
html:is(.mode-fish,.mode-ice) #profile-view :is(label:has(#pGun),#pCalL,.pAniLab,#laneCard,.card:has(#pProx),.card:has(#pPublic)){display:none!important}
html:is(.mode-fish,.mode-ice) .pin .gun{display:none}
/* hunting lane warnings stay on the Hunting layer */
html:is(.mode-fish,.mode-ice) #mapWarn .warn[data-mw]{display:none}
/* ---------- map layers: Leaflet's default panes are the Hunting layer ---------- */
html:is(.mode-fish,.mode-ice) #map:not(.lyr-hunt) :is(.leaflet-overlay-pane,.leaflet-shadow-pane,.leaflet-marker-pane,.leaflet-tooltip-pane,.leaflet-trail-pane){display:none}
html:is(.mode-fish,.mode-ice) #map.lyr-hunt :is(.leaflet-overlay-pane,.leaflet-shadow-pane,.leaflet-marker-pane,.leaflet-tooltip-pane,.leaflet-trail-pane){opacity:.45;filter:saturate(.6)}
/* ---------- mode action buttons (sit in #actRow like Tracking / Jumped!) ---------- */
#actRow>.modeBtn{gap:6px;font-size:16px}
#actRow>.modeBtn img{width:42px;height:34px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 1px 2px #0008)}
#actRow>.modeBtn.pri{background:linear-gradient(#f3d873,#c9a227);color:#1a1208;border:2px solid #fff}
html.mode-fish #actRow>.modeBtn.sec{background:#eaf6fd;color:#174a6a;border:2px solid #c9a227}
html.mode-ice #actRow>.modeBtn.pri{background:#fff;color:#24333d;border:2px solid #c9a227}
#actRow>.modeBtn.alert{background:radial-gradient(circle at 50% 35%,#ff7a2a,#e0561a);color:#fff;border:2px solid #fff}
#actRow>.modeBtn.alert.on{animation:flagPulse 1.2s ease-in-out infinite}
@keyframes flagPulse{50%{box-shadow:0 0 0 6px #ff6a0055,0 0 22px #ff6a00}}
/* placeholder views for tabs filled by later stages */
.modeSoon{padding:14px;border-radius:14px;border:1px solid #4a4220;background:#15180f;color:#cfc8a8}
.modeSoon img{width:84px;height:64px;object-fit:contain;float:right;margin:0 0 6px 8px}
/* ---------- FISHING theme: light blue + gold ---------- */
html.mode-fish header{background:linear-gradient(180deg,#eaf6fd,#c4e4f6)!important;border-bottom:2px solid #c9a227!important}
html.mode-fish header :is(.brand,h1){color:#9a7310!important;text-shadow:none!important}html.mode-fish .zoneLine{color:#2f6585!important;text-shadow:none!important}
html.mode-fish header :is(.sunBox,.sunTimes,.sunBox *){color:#8a6510!important;text-shadow:none!important}html.mode-fish header .hdrTemp{color:#174a6a!important;text-shadow:none!important}
html.mode-fish nav{background:linear-gradient(180deg,#e3f2fb,#cfe8f7)!important;border-top:2px solid #c9a227!important}
html.mode-fish nav button{color:#2f6585!important;filter:none!important;text-shadow:none!important}html.mode-fish nav button.on{color:#9a7310!important}
html.mode-fish :is(.statusbar button,#partySel,#myStatusChip,.mapControl button,#whoSees){background:rgba(236,247,253,.95)!important;color:#174a6a!important;border:1.5px solid #c9a227!important;text-shadow:none!important}
html.mode-fish #chatFab{background:linear-gradient(#eaf6fd,#eaf6fd) padding-box,linear-gradient(#f0d266,#c9a227) border-box!important;color:#174a6a!important}
/* ---------- ICE theme: white + gold ---------- */
html.mode-ice header{background:linear-gradient(180deg,#ffffff,#eef2f5)!important;border-bottom:2px solid #c9a227!important}
html.mode-ice header :is(.brand,h1){color:#9a7310!important;text-shadow:none!important}html.mode-ice .zoneLine{color:#4b5d6a!important;text-shadow:none!important}
html.mode-ice header :is(.sunBox,.sunTimes,.sunBox *){color:#8a6510!important;text-shadow:none!important}html.mode-ice header .hdrTemp{color:#24333d!important;text-shadow:none!important}
html.mode-ice nav{background:#fff!important;border-top:2px solid #c9a227!important}
html.mode-ice nav button{color:#4b5d6a!important;filter:none!important;text-shadow:none!important}html.mode-ice nav button.on{color:#9a7310!important}
html.mode-ice :is(.statusbar button,#partySel,#myStatusChip,.mapControl button,#whoSees){background:rgba(255,255,255,.96)!important;color:#24333d!important;border:1.5px solid #c9a227!important;text-shadow:none!important}
html.mode-ice #chatFab{background:linear-gradient(#fff,#fff) padding-box,linear-gradient(#f0d266,#c9a227) border-box!important;color:#24333d!important}
/* ---------- Fishing laws ---------- */
.fzRow{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0 0}.fzRow>span{width:44px;font-size:12px;color:#a8a58f}
.fzChip{width:auto;margin:0;padding:6px 11px;border-radius:999px;border:1.5px solid #5a4a1c;background:#1b1d12;color:#e8e2c4;font-size:13px;font-weight:700}
.fzChip.on{background:linear-gradient(#f0d266,#c9a227);color:#1a1208;border-color:#f0d266}
.fzNote{margin:8px 0 0;font-size:12px}
.fLim{width:100%;border-collapse:collapse;font-size:12.5px;margin-top:6px}.fLim th{text-align:left;color:#e2c35a;font-size:11.5px;padding:4px 4px;border-bottom:1px solid #4a4220}
.fLim td{padding:6px 4px;border-bottom:1px solid #2a2a1c;vertical-align:top}.fLim td:first-child{font-weight:700;width:36%}.fLim tr.closed td{color:#ff9a7a}
.fWater{border-color:#c9a227}.fWater>b{font-size:17px;color:#f3e3a6}.lawsRow.special{border-left:3px solid #e2c35a;padding-left:8px}
.fCaution{color:#ffb020;font-size:12px;margin:2px 0}
.fCodes summary{cursor:pointer;list-style:none}.fCodes summary::-webkit-details-marker{display:none}.fCodes summary b::after{content:' ▾';color:#a8a58f}
/* ---------- each mode's own map layer: fishing / ice panes (Layers dropdown can overlay them faded) ---------- */
html.mode-hunt #map:not(.lyr-fish) :is(.leaflet-fishMk-pane,.leaflet-fishOv-pane),html.mode-ice #map:not(.lyr-fish) :is(.leaflet-fishMk-pane,.leaflet-fishOv-pane){display:none}
html.mode-hunt #map:not(.lyr-ice) :is(.leaflet-iceMk-pane,.leaflet-iceOv-pane,.leaflet-frost-pane),html.mode-fish #map:not(.lyr-ice) :is(.leaflet-iceMk-pane,.leaflet-iceOv-pane,.leaflet-frost-pane){display:none}
html:not(.mode-fish) #map.lyr-fish :is(.leaflet-fishMk-pane,.leaflet-fishOv-pane),html:not(.mode-ice) #map.lyr-ice :is(.leaflet-iceMk-pane,.leaflet-iceOv-pane){opacity:.45;filter:saturate(.6)}
html:not(.mode-ice) #map.lyr-ice .leaflet-frost-pane{opacity:.4}
.leaflet-frost-pane{opacity:.88}.leaflet-frost-pane .leaflet-tile{transition:none!important;opacity:1!important;filter:none!important}.leaflet-frost-pane .leaflet-tile-container{filter:none}
/* fishing map markers (realistic cutouts in a white bubble, gold ring) */
.fMk{display:flex;flex-direction:column;align-items:center}
.fMk .bub{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#fff;border:3px solid #c9a227;box-shadow:0 2px 8px #000a}
.fMk .bub img{width:40px;height:30px;object-fit:contain}.fMk.photo .bub img{width:100%;height:100%;object-fit:cover}
.fMk .lbl{margin-top:2px;padding:1px 7px;border-radius:8px;font:800 11px/1.3 system-ui,sans-serif;white-space:nowrap;max-width:110px;overflow:hidden;text-overflow:ellipsis;background:#eaf6fd;color:#174a6a;border:1px solid #c9a227;box-shadow:0 1px 4px #0008}
.fMk.spot.thin .bub{border-color:#d62828;box-shadow:0 0 0 3px #d6282855,0 2px 8px #000a}.fMk.spot.thin .lbl{background:#d62828;color:#fff;border-color:#fff}
.fMk.spot.nobite .bub{border-color:#7a8a96}
/* sticky popups + forms */
.fPop .fpIco{width:34px;height:24px;object-fit:contain;vertical-align:middle}
.fpPhoto{width:100%;max-height:240px;object-fit:cover;border-radius:12px;margin:4px 0 8px;display:block}
.fpNote{background:#0003;border-radius:10px;padding:8px 10px;margin:8px 0}.fpActs{gap:8px;flex-wrap:wrap;margin-top:10px}.fpActs button{flex:1;margin:0;min-width:96px}
.fSpGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:4px 0 10px}
.fSp{margin:0;padding:6px 4px;border-radius:12px;border:1.5px solid #4a4220;background:#1b1d12;color:#e8e2c4;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px;font-weight:700;line-height:1.15;min-height:74px}
.fSp img{width:64px;height:38px;object-fit:contain;filter:drop-shadow(0 1px 2px #000a)}.fSp.on{border:2.5px solid #f0d266;background:#2c2711;box-shadow:0 0 10px #e2c35a55}
.fSp.alert{border-color:#d62828}.fSp.alert.on{border-color:#ff5a4a;background:#3a1210}
.fRow2{gap:10px;align-items:flex-start}.fRow2>*{flex:1;min-width:0}.fWhere{margin:10px 0;font-size:14px;color:#cfc8a8}.fWhere a{color:#f0d266}
/* Catches / Spots lists */
.fScope{gap:6px;margin:10px 0}
.fList{display:flex;flex-direction:column;gap:8px;margin:6px 0 14px}
.fItem{display:flex;align-items:center;gap:12px;text-align:left;margin:0;width:100%;padding:8px 12px 8px 8px;color:inherit;font:inherit}
.fThumb{width:72px;height:52px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 1px 2px #000a)}.fThumb.photo{object-fit:cover;border-radius:10px;filter:none}
.fTx{display:flex;flex-direction:column;min-width:0}.fTx b{font-size:16px;color:#f3e3a6}.fTx small{color:#a8a58f;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fGroup{display:flex;align-items:center;gap:8px;margin:14px 0 4px;color:#e2c35a;font-size:16px}.fGroup img{width:40px;height:30px;object-fit:contain}.fGroup small{color:#a8a58f;font-weight:400}
.fTroTiles .trophyTile img{object-fit:contain}
.fReg.clamp{max-height:10.5em;overflow:hidden;-webkit-mask-image:linear-gradient(#000 65%,transparent);mask-image:linear-gradient(#000 65%,transparent)}.fRegMore{width:auto;margin:6px 0 2px;padding:6px 12px}
/* ---------- Layers dropdown ---------- */
.lyrChip{position:absolute;left:12px;top:100px;z-index:700}
.lyrChip>button{padding:7px 12px;border-radius:999px;font-weight:700;font-size:14px;margin:0;width:auto;background:#141a0ef0;color:#f0d266;border:1.5px solid #c9a227;box-shadow:0 2px 8px #0008}
html.mode-fish .lyrChip>button{background:#eaf6fdf2;color:#174a6a}html.mode-ice .lyrChip>button{background:#fffffff2;color:#24333d}
.lyrMenu{position:absolute;left:0;top:42px;width:268px;border-radius:16px;padding:10px;box-shadow:0 8px 30px #0009;background:#16200f;color:#f1ead3;border:2px solid #c9a227}
html:is(.mode-fish,.mode-ice) .lyrMenu{background:#fff;color:#24333d}
.lyrHd{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.lyrHd h4{margin:2px 4px;font-size:13px;letter-spacing:.4px;text-transform:uppercase;color:#c9a227}.lyrX{width:40px;height:40px;font-size:26px;line-height:38px}
.lyrItem{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:12px;margin:0 0 5px;width:100%;text-align:left;font:inherit;color:inherit;background:#ffffff0d;border:1px solid #ffffff1f}
html:is(.mode-fish,.mode-ice) .lyrItem{background:#f4f7f9;border-color:#dfe5ea}
.lyrItem:disabled{opacity:1}.lyrItem.lock{background:#c9a22722;border-color:#e2c35a}html:is(.mode-fish,.mode-ice) .lyrItem.lock{background:#fbf5df}
.lyrItem img{width:40px;height:34px;object-fit:contain}.lyrItem .lt{flex:1;min-width:0}.lyrItem .lt b{display:block;font-size:14.5px}.lyrItem .lt span{display:block;font-size:11px;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lyrItem .cb{width:26px;height:26px;border-radius:7px;display:grid;place-items:center;font-weight:900;font-size:16px;background:transparent;border:2px solid #c9a227;color:#9a7310;flex-shrink:0}.lyrItem .cb.on{background:linear-gradient(#f3d873,#c9a227);color:#1a1208}
.lyrNote{font-size:11.5px;padding:2px 6px 4px;opacity:.8;margin:2px 0}
.lyrOpts{display:flex;gap:6px;padding:2px 4px 4px;flex-wrap:wrap}.lyrOpts button{width:auto;margin:0;font-size:12px;padding:5px 10px;border-radius:999px;background:transparent;color:inherit;border:1px solid #c9a22788}
.lyrOpts button.on{background:linear-gradient(#f3d873,#c9a227);color:#1a1208;border-color:#c9a227;font-weight:700}
#map-view:has(#tapHint:not([hidden])) .lyrChip{display:none}
/* ---------- traps / flags ---------- */
.fMk.trap .bub img{width:34px;height:40px}
.fMk.flagUp .bub{border-color:#ff6a00;animation:flagPulse 1.2s ease-in-out infinite}.fMk.flagUp .lbl{background:#ff6a00;color:#fff;border-color:#fff}
.flagUpBtn{background:radial-gradient(circle at 50% 35%,#ff7a2a,#e0561a)!important;color:#fff!important;border:2px solid #fff!important}
.fTrapActs{gap:8px;margin:8px 0}.fTrapActs button{flex:1;margin:0;display:flex;align-items:center;justify-content:center;gap:6px}.fTrapActs img{width:34px;height:28px;object-fit:contain}
.fItem.flagged{border-color:#ff6a00;box-shadow:0 0 0 1px #ff6a00,0 0 12px #ff6a0055}.fItem.flagged .fTx small:first-of-type{color:#ffb070;font-weight:700}
.fItem.thin{border-color:#d62828}.thinBtn{border-color:#d62828!important;color:#ff8a7a!important}
.warn.modeWarn{background:#7a1010;border-color:#ff3b30}
#map-view:has(#lyrChip) #mapWarn{top:142px}#map-view:has(#lyrChip) #gpsHint:not([hidden])~#mapWarn{top:154px}
