#trailCamLayer[hidden],#trailCamSpots[hidden],#trailCamMessage[hidden],#trailCamPanel[hidden]{display:none!important}
#trailCamLayer{position:absolute;inset:0;z-index:16;pointer-events:none;color:#fcebd0;font-family:inherit}
#trailCamSpots{position:absolute;inset:0;pointer-events:none}
#trailCamSpots .trailcam-clue{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;border:2px solid #f8df91;border-radius:50%;background:radial-gradient(circle,#789560e8,#24472cdd);box-shadow:0 0 0 9px #f5d97455,0 8px 18px #102a1acc;color:#fff5d4;font:700 24px Georgia;padding:4px 10px;min-width:40px;min-height:40px;touch-action:manipulation}
.trailcam-clue small{position:absolute;white-space:nowrap;top:100%;left:50%;transform:translateX(-50%);font:700 10px system-ui;color:#fff8e6;text-shadow:0 1px 3px #071a0e;background:#284b2dc9;border-radius:9px;padding:2px 5px}
.trailcam-anchor{position:absolute;transform:translate(-50%,-50%);pointer-events:none;width:68px;height:68px;display:grid;place-items:center}.trailcam-target{z-index:2;border:2px solid #f7d776;border-radius:50%;background:#284b2dcc;padding:5px;color:#fff2bd;font-size:24px;box-shadow:0 0 18px 7px #eacc7599}.trailcam-cone{position:absolute;bottom:40%;left:50%;transform-origin:50% 100%;width:0;height:0;border-left:56px solid transparent;border-right:56px solid transparent;border-top:135px solid #ffdf6850;filter:drop-shadow(0 0 3px #e5ba65)}
#trailCamPanel{position:absolute;left:clamp(84px,16%,132px);bottom:12px;width:min(370px,calc(100% - 110px));max-height:min(62%,410px);overflow:hidden;pointer-events:auto;background:linear-gradient(140deg,#355836f5,#203b2cf7);border:2px solid #d7c18a;border-radius:21px;box-shadow:0 12px 30px #14241ac7,inset 0 1px 0 #f5e6b66e;padding:10px 12px;color:#fff3d6!important;font-size:13px;line-height:1.32}
#trailCamPanel header{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}#trailCamPanel strong{font:700 19px Georgia;color:#fff1c8}#trailCamPanel p{margin:5px 0 8px;color:#fff2d4!important}#trailCamPanel small{display:block;font-size:10px;color:#e8d6aa!important}#trailCamPanel button,#trailCamPanel select{color:#fff2d1!important;background:linear-gradient(#5b7848,#345334);border:1px solid #d5c18c;border-radius:10px;padding:7px 9px;font:700 12px system-ui;min-height:35px;touch-action:manipulation}#trailCamPanel button:disabled{opacity:.55}#trailCamPanel header button{font-size:19px;min-height:29px;padding:0 10px;border-radius:50%}.trailcam-scroll{max-height:min(48vh,330px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.trailcam-actions,.trailcam-guesses{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0}.trailcam-row{display:flex;justify-content:space-between;align-items:center;gap:5px;border-top:1px solid #b5bb8370;padding:6px 0}.trailcam-row span{min-width:0}.trailcam-row button{flex:none}.trailcam-aim{display:grid;gap:7px}.trailcam-aim label{display:flex;align-items:center;gap:8px;justify-content:space-between;font-size:11px}.trailcam-aim input{width:55%;accent-color:#f7cc72}.trailcam-aim #trailCamDrag{font-size:27px;width:54px;height:49px;touch-action:none}.trailcam-aim #trailCamDrag.dragging{filter:drop-shadow(0 0 7px #ffd37f)}.trailcam-frame{display:flex;align-items:center;gap:8px;width:100%;text-align:left;margin:4px 0}.trailcam-frame img{width:48px;height:42px;object-fit:contain;border-radius:5px}.trailcam-frame small{margin-top:2px}.trailcam-preview{height:130px;background-position:center;background-size:cover;border:3px solid #dfc58a;border-radius:12px;display:grid;place-items:center}.trailcam-preview img{width:140px;height:125px;object-fit:contain;filter:drop-shadow(1px 5px 2px #102318)}.trailcam-frame img.unknown,.trailcam-preview img.unknown{filter:brightness(0) drop-shadow(1px 3px 2px #9eae80)}#trailCamMessage{position:absolute;left:clamp(84px,16%,132px);top:18%;max-width:min(320px,60%);pointer-events:none;padding:6px 9px;border-radius:11px;background:#203b2ce8;border:1px solid #c7ba82;color:#fff3d7!important;font:600 11px/1.25 system-ui;text-shadow:0 1px 1px #172817}.trailcam-discovery #pet{animation:trailCamBounce .45s ease-in-out 2}@keyframes trailCamBounce{50%{transform:translateY(-8px)}}
@media(max-width:530px){#trailCamPanel{left:68px;bottom:8px;width:calc(100% - 80px);max-height:55%;padding:8px 9px;font-size:11px}#trailCamPanel strong{font-size:16px}#trailCamPanel button{min-height:30px;padding:5px 7px}#trailCamMessage{left:75px;top:15%;font-size:10px}.trailcam-scroll{max-height:31vh}.trailcam-preview{height:100px}.trailcam-preview img{height:95px;width:100px}}
body.cover-screen-active #trailCamPanel{left:65px;bottom:5px;width:min(165px,32%);max-height:73%;border-radius:11px;padding:4px 5px;font-size:8px}body.cover-screen-active #trailCamPanel header{margin-bottom:2px}body.cover-screen-active #trailCamPanel strong{font-size:11px}body.cover-screen-active #trailCamPanel p,body.cover-screen-active #trailCamPanel small{font-size:8px}body.cover-screen-active #trailCamPanel button{font-size:8px;min-height:22px;padding:2px 4px;border-radius:5px}body.cover-screen-active #trailCamPanel header button{font-size:13px}body.cover-screen-active .trailcam-scroll{max-height:35vh}body.cover-screen-active .trailcam-preview{height:57px}body.cover-screen-active .trailcam-preview img{height:55px;width:60px}body.cover-screen-active .trailcam-frame img{height:22px;width:25px}body.cover-screen-active .trailcam-row{padding:2px 0}body.cover-screen-active .trailcam-aim{gap:2px}body.cover-screen-active .trailcam-aim #trailCamDrag{height:25px;width:29px;font-size:14px}body.cover-screen-active #trailCamMessage{left:66px;top:2px;max-width:30%;font-size:7px;padding:2px 4px}body.cover-screen-active .trailcam-clue small{display:none}

#world.trailcam-check #petwrap{animation:trailCamApproach .8s ease-in-out}@keyframes trailCamApproach{0%{translate:-12px 0}55%{translate:4px -4px}100%{translate:0 0}}
/* Small setup tray leaves the camera and detection cone visible in the scene. */
#trailCamLayer:has(.trailcam-aim) #trailCamPanel{left:auto;right:8px;bottom:8px;width:min(220px,43%);max-height:190px;padding:6px 8px;border-radius:13px}
#trailCamLayer:has(.trailcam-aim) #trailCamPanel header{margin:0}
#trailCamLayer:has(.trailcam-aim) #trailCamPanel strong{font-size:14px}
#trailCamLayer:has(.trailcam-aim) .trailcam-aim{gap:2px;grid-template-columns:42px 1fr;align-items:center}
#trailCamLayer:has(.trailcam-aim) .trailcam-aim label,#trailCamLayer:has(.trailcam-aim) .trailcam-aim button[data-tc=place]{grid-column:1/-1}
#trailCamLayer:has(.trailcam-aim) #trailCamDrag{width:38px;height:40px;padding:2px;display:grid;place-items:center}
.trailcam-camera{position:relative;display:inline-grid;place-items:center;width:26px;height:33px;border:2px solid #e1c890;border-radius:5px;background:linear-gradient(140deg,#586a3d 0 24%,#7c6240 25% 40%,#3f5434 41% 65%,#766943 66%);box-shadow:inset 2px 2px 2px #afae73,1px 3px 3px #10221c;color:#233123;font-size:6px}
.trailcam-camera i{position:absolute;top:4px;right:3px;font-size:5px}.trailcam-camera b{position:absolute;top:12px;font-size:16px;color:#172c27;text-shadow:0 0 1px #e9d8a0}
.trailcam-target:has(.trailcam-camera){background:transparent;border:none;box-shadow:none;padding:0}.trailcam-target .trailcam-camera{width:31px;height:39px}
.trailcam-cone{border-left-width:48px;border-right-width:48px;border-top-width:115px;bottom:auto;top:45%;transform-origin:50% 0}
@media(max-width:530px){#trailCamLayer:has(.trailcam-aim) #trailCamPanel{width:min(170px,37%);max-height:180px}#trailCamLayer:has(.trailcam-aim) #trailCamPanel strong{font-size:12px}#trailCamLayer:has(.trailcam-aim) #trailCamPanel p{display:none}}
/* Phone setup uses a two-row tray; no controls extend below the scene. */
@media(max-width:530px){
 #trailCamLayer:has(.trailcam-aim) #trailCamPanel{left:70px;right:7px;bottom:7px;width:auto;max-height:none;min-height:0;padding:5px 7px;overflow:visible}
 #trailCamLayer:has(.trailcam-aim) #trailCamPanel header{display:flex;align-items:center;justify-content:space-between;height:21px;margin:0 0 3px}
 #trailCamLayer:has(.trailcam-aim) #trailCamPanel strong{font-size:12px;line-height:1}
 #trailCamLayer:has(.trailcam-aim) #trailCamPanel header button{min-height:20px;height:20px;font-size:14px;padding:0 6px}
 #trailCamLayer:has(.trailcam-aim) .trailcam-aim{display:grid;grid-template-columns:33px minmax(0,1fr) auto;gap:3px 6px;align-items:center}
 #trailCamLayer:has(.trailcam-aim) #trailCamDrag{grid-row:1/3;width:29px;height:33px;padding:1px}
 #trailCamLayer:has(.trailcam-aim) #trailCamDrag .trailcam-camera{transform:scale(.8)}
 #trailCamLayer:has(.trailcam-aim) .trailcam-aim>span{grid-column:2/4;font-size:9px;line-height:1}
 #trailCamLayer:has(.trailcam-aim) .trailcam-aim label{grid-column:auto;display:flex;gap:3px;font-size:9px;white-space:nowrap}
 #trailCamLayer:has(.trailcam-aim) .trailcam-aim label:has(#trailCamAngle){grid-column:2/4;grid-row:2}
 #trailCamLayer:has(.trailcam-aim) #trailCamAngle{width:100%;min-width:0;height:18px}
 #trailCamLayer:has(.trailcam-aim) .trailcam-aim label:has(#trailCamSkin){grid-column:1/3;grid-row:3}
 #trailCamLayer:has(.trailcam-aim) #trailCamSkin{height:25px;min-height:25px;padding:1px 4px;max-width:110px;font-size:9px}
 #trailCamLayer:has(.trailcam-aim) #trailCamPlace{grid-column:3;grid-row:3;min-height:25px;height:25px;padding:2px 7px;font-size:10px}
}

.trailcam-sticker{width:38px;height:45px;object-fit:contain;filter:drop-shadow(0 2px 3px #1c2418)}.trailcam-target:has(.trailcam-sticker){background:none;border:0;box-shadow:none;padding:0}.trailcam-target .trailcam-sticker{width:42px;height:50px}.trailcam-anchor{overflow:visible}.trailcam-cone{top:50%;left:50%;width:160px;height:140px;border:0;background:linear-gradient(#fbe78970,#e8e98308);clip-path:polygon(50% 0,100% 100%,0 100%);transform-origin:50% 0;translate:-50% 0;pointer-events:none;z-index:1}.trailcam-target{position:relative;z-index:2}
/* Saved cameras remain in their scenes after Trail Cam closes. */
#trailCamPlacedLayer{position:absolute;inset:0;z-index:8;pointer-events:none}
.trailcam-placed{position:absolute;transform:translate(-50%,-50%);pointer-events:auto}
.trailcam-mounted{width:40px;height:48px;padding:2px;border:0;background:none;filter:drop-shadow(0 2px 3px #11251a);touch-action:manipulation}
.trailcam-mounted img{display:block;width:100%;height:100%;object-fit:contain}
.trailcam-mounted-menu{position:absolute;top:0;left:33px;z-index:3;display:flex;gap:3px;padding:3px;border:1.5px solid #ead49b;border-radius:9px;background:#29432e;box-shadow:0 3px 9px #122017aa;white-space:nowrap}
.trailcam-mounted-menu.to-left{left:auto;right:34px}
.trailcam-mounted-menu button{min-height:34px;padding:3px 7px;border:1px solid #d8bf85;border-radius:6px;background:#48663a;color:#fff2d5;font:700 11px 'DM Sans',sans-serif}
body.cover-screen-active .trailcam-mounted{width:25px;height:30px}
body.cover-screen-active .trailcam-mounted-menu{left:24px;top:-2px}
body.cover-screen-active .trailcam-mounted-menu.to-left{left:auto;right:24px}
body.cover-screen-active .trailcam-mounted-menu button{min-height:25px;padding:2px 4px;font-size:9px}
/* The filmstrip is a compact set of photo cards rather than a tall list. */
#trailCamLayer:has(.trailcam-film-grid) #trailCamPanel{width:min(440px,calc(100% - 110px));max-height:min(72%,480px);padding:8px 10px}
#trailCamLayer:has(.trailcam-film-grid) #trailCamPanel header{margin:0 0 5px}
.trailcam-film-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:min(58vh,395px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:1px}
.trailcam-film-grid .trailcam-frame{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;min-width:0;width:100%;min-height:0;margin:0;padding:5px;text-align:center;box-sizing:border-box}
.trailcam-film-grid .trailcam-frame img{width:100%;height:54px;object-fit:contain}
.trailcam-film-grid .trailcam-frame span{display:block;width:100%;min-width:0;font-size:11px;line-height:1.15;overflow-wrap:anywhere}
.trailcam-film-grid .trailcam-frame small{font-size:9px;line-height:1.2;margin-top:2px}
.trailcam-film-grid>p{grid-column:1/-1}
@media(max-width:530px){#trailCamLayer:has(.trailcam-film-grid) #trailCamPanel{left:66px;width:calc(100% - 76px);max-height:66%;padding:6px 7px}.trailcam-film-grid{gap:4px;max-height:52vh}.trailcam-film-grid .trailcam-frame{padding:4px 2px}.trailcam-film-grid .trailcam-frame img{height:43px}.trailcam-film-grid .trailcam-frame span{font-size:9px}.trailcam-film-grid .trailcam-frame small{font-size:8px}}
body.cover-screen-active #trailCamLayer:has(.trailcam-film-grid) #trailCamPanel{left:65px;width:min(165px,32%);max-height:73%;padding:4px 5px}
body.cover-screen-active .trailcam-film-grid{gap:2px;max-height:35vh}
body.cover-screen-active .trailcam-film-grid .trailcam-frame{padding:2px}
body.cover-screen-active .trailcam-film-grid .trailcam-frame img{width:100%;height:23px}
body.cover-screen-active .trailcam-film-grid .trailcam-frame span{font-size:7px}
body.cover-screen-active .trailcam-film-grid .trailcam-frame small{font-size:6px}
/* The sightings grid occupies the tray; only a small close control remains. */
#trailCamLayer:has(.trailcam-film-grid) #trailCamPanel{position:absolute;height:auto;min-height:0;max-height:76%;padding:6px;overflow:visible}
#trailCamLayer:has(.trailcam-film-grid) #trailCamPanel .trailcam-film-close{position:absolute;top:3px;right:3px;z-index:2;margin:0;height:23px}
#trailCamLayer:has(.trailcam-film-grid) #trailCamPanel .trailcam-film-close button{width:23px;height:23px;min-height:23px;padding:0;font-size:16px;line-height:20px}
#trailCamLayer:has(.trailcam-film-grid) .trailcam-film-grid{padding:22px 1px 1px;max-height:min(64vh,450px);align-content:start}
@media(max-width:530px){#trailCamLayer:has(.trailcam-film-grid) #trailCamPanel{left:64px;width:calc(100% - 72px);max-height:72%}#trailCamLayer:has(.trailcam-film-grid) .trailcam-film-grid{max-height:57vh}}

.trailcam-frame img.wildlife-photo,.trailcam-preview img.wildlife-photo{object-fit:cover;filter:none}.trailcam-preview img.wildlife-photo{width:100%;height:100%;min-height:0;border-radius:8px}.trailcam-credit{margin:5px 0}.trailcam-credit a{color:inherit}

#trailCamLayer:has(.trailcam-film-grid) #trailCamPanel {
  display:flex; flex-direction:column; top:auto; bottom:7px;
  left:8px; width:min(520px,calc(100% - 16px)); max-height:calc(100% - 16px);
  padding:6px; overflow:hidden;
}
#trailCamLayer:has(.trailcam-film-grid) .trailcam-film-grid {
  min-height:0; max-height:none; padding:37px 1px 1px;
}
#trailCamLayer:has(.trailcam-film-grid) #trailCamPanel .trailcam-film-close button {
  width:34px; height:34px; min-height:34px; font-size:21px;
}
.trailcam-card { min-width:0; display:grid; gap:3px; align-content:start; }
#trailCamPanel .trailcam-film-grid .trailcam-frame { padding:3px; }
#trailCamPanel .trailcam-film-grid .trailcam-frame img {
  aspect-ratio:4/3; width:100%; height:auto; object-fit:contain;
  background:#172b22;
}
#trailCamPanel .trailcam-review { text-align:left; font-size:11px; }
#trailCamPanel .trailcam-review small { white-space:normal; }

/* Trail Cam shares Photo Pose's packGamePanel and its anchor beneath Needs. */
#activityControlsDock:has(.trailcam-host){position:relative;z-index:45}
body:not(.cover-screen-active) #activityControlsDock > #packGamePanel.trailcam-host{position:absolute;inset:0 0 auto;overflow:hidden}
body.cover-screen-active > #packGamePanel.trailcam-host{display:block!important;position:fixed;inset:auto 4px max(3px,env(safe-area-inset-bottom));width:auto;z-index:100;background:var(--wood-surface,#344b35);border:2px solid var(--wood-line,#b99160);border-radius:12px;padding:5px;box-sizing:border-box}
#packGamePanel.trailcam-host > :not(#trailCamPanel){display:none!important}
#packGamePanel #trailCamPanel{position:static;display:flex;flex-direction:column;inset:auto;width:100%;max-height:var(--trail-room,45dvh);min-height:0;padding:0;border:0;border-radius:8px;box-shadow:none;box-sizing:border-box;font:inherit;font-size:13px}
body.cover-screen-active #packGamePanel #trailCamPanel{max-height:56dvh}
#trailCamPanel .trailcam-toolbar{display:flex;align-items:center;flex:none;gap:6px;padding:4px 6px}
#trailCamPanel .trailcam-toolbar button:last-child{margin-left:auto}
#packGamePanel #trailCamPanel button{min-height:34px;font-size:12px}
#trailCamPanel .trailcam-body{padding:2px 7px 7px;min-height:0;overflow:auto;overscroll-behavior:contain}
#packGamePanel #trailCamPanel :is(.trailcam-scroll,.trailcam-film-grid){max-height:none;overflow:visible}
#packGamePanel #trailCamPanel .trailcam-preview{height:auto}
#packGamePanel #trailCamPanel :is(.trailcam-preview img,.trailcam-body>img){display:block;width:100%;height:auto;max-height:42dvh;object-fit:contain}
#packGamePanel #trailCamMessage{display:block;position:static;max-width:none;margin-top:4px;font:inherit;font-size:12px}
#packGamePanel #trailCamMessage:empty{display:none}
.trailcam-journal{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:4px}
.trailcam-journal img{max-width:100%;object-fit:contain}
